/* Canvas Corporate 3 - Theme Stylesheet for Lambda Nu Platform */
:root {
  --primary-color: #0d6efd;
  --primary-dark: #0b5ed7;
  --secondary-color: #2c3e50;
  --accent-color: #1abc9c;
  --text-dark: #222222;
  --text-muted: #6c757d;
  --bg-light: #f8f9fa;
  --border-color: #e9ecef;
  --header-height: 80px;
  --transition-speed: 0.2s;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#wrapper {
  position: relative;
  width: 100%;
}

/* ========================================================
   HEADER & NAVIGATION (Canvas Corporate 3 Style)
======================================================== */
#header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  z-index: 1030;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#header-wrap {
  position: relative;
  width: 100%;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0;
  position: static;
}

#logo {
  display: flex;
  align-items: center;
}

.logo-brand {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #111827;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-brand .brand-badge {
  background: linear-gradient(135deg, #0d6efd, #0dcaf0);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 700;
}

/* Primary Menu */
.primary-menu {
  display: flex;
  align-items: stretch;
  height: 100%;
  position: static;
}

.menu-container {
  display: flex;
  align-items: stretch;
  height: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  position: static;
}

.menu-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.menu-link {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 1.25rem;
  color: #333333;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

.menu-link:hover,
.menu-item:hover > .menu-link {
  color: var(--primary-color);
  background-color: rgba(13, 110, 253, 0.04);
}

/* FEATURES STYLE: Vertical Cascading Dropdown (Up to 5 levels) */
.sub-menu-container {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 250px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--primary-color);
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1050;
  pointer-events: none;
}

.menu-item:hover > .sub-menu-container,
.sub-menu-container:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.sub-menu-container .menu-link {
  height: auto;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #4b5563;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: transparent;
}

.sub-menu-container .menu-link:hover {
  background-color: #f8fafc;
  color: var(--primary-color);
  padding-left: 1.5rem;
}

/* 2nd, 3rd, 4th, 5th level cascade flyout */
.sub-menu-container .menu-item {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}

.sub-menu-container .sub-menu-container {
  top: -3px;
  left: 100%;
  border-top: 1px solid var(--border-color);
  border-left: 3px solid var(--primary-color);
}

/* PAGES STYLE: Mega-Menu (Dynamic 1-12 columns) */
.menu-item.mega-menu {
  position: static;
}

.mega-menu-content {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-top: 3px solid var(--primary-color);
  border-bottom: 1px solid var(--border-color);
  padding: 2.25rem 0 2.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1050;
  pointer-events: none;
}

.menu-item.mega-menu:hover .mega-menu-content,
.mega-menu-content:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-menu-column {
  border-right: 1px solid #edf2f7;
  padding: 0 1.5rem;
}

.mega-menu-column:last-child {
  border-right: none;
}

.mega-menu-title {
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #e2e8f0;
}

.mega-menu-title a {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0f172a;
  text-decoration: none;
  display: inline-block;
  transition: color var(--transition-speed);
}

.mega-menu-title a:hover {
  color: var(--primary-color);
}

.mega-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-menu-list > li {
  margin-bottom: 0.4rem;
}

.mega-menu-item-link {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  transition: all var(--transition-speed) ease;
}

.mega-menu-item-link:hover {
  color: var(--primary-color);
  background-color: #f1f5f9;
  padding-left: 0.85rem;
}

.mega-menu-sub-list {
  list-style: none;
  padding-left: 1.5rem;
  margin: 0.25rem 0 0.5rem 0;
  border-left: 2px solid #e2e8f0;
}

.mega-menu-sub-list a {
  font-size: 0.82rem;
  color: #64748b;
  text-decoration: none;
  display: block;
  padding: 0.2rem 0;
  transition: color var(--transition-speed);
}

.mega-menu-sub-list a:hover {
  color: var(--primary-color);
}

/* Mobile Menu Trigger Hamburger */
.primary-menu-trigger {
  display: none;
}

.cnvs-hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  font-size: 1.5rem;
  color: #1f2937;
}

/* ========================================================
   HERO BANNER & SLIDER
======================================================== */
.hero-slider-section {
  position: relative;
  background-color: #0f172a;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
}

.hero-slide {
  position: relative;
  width: 100%;
  min-height: 480px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  padding: 3rem 0;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #e2e8f0;
  margin-bottom: 2rem;
  max-width: 600px;
  line-height: 1.6;
}

/* ========================================================
   PRODUCT CARDS
======================================================== */
.product-card {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.product-card-img-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.product-card-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform var(--transition-speed) ease;
}

.product-card:hover .product-card-img {
  transform: scale(1.05);
}

.product-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #1e293b;
}

.product-card-desc {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 1.25rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================================
   ARTICLE & PAGE CONTENT
======================================================== */
.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #334155;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  color: #0f172a;
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: 1rem;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1.5rem 0;
}

.article-body table {
  width: 100%;
  margin-bottom: 1.5rem;
  border-collapse: collapse;
}

.article-body table th,
.article-body table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
}

.article-body table th {
  background-color: #f8fafc;
  font-weight: 600;
}

/* ========================================================
   FOOTER (Canvas Style)
======================================================== */
#footer {
  background-color: #0f172a;
  color: #cbd5e1;
  padding: 4.5rem 0 2rem 0;
  border-top: 1px solid #1e293b;
}

.footer-widget h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

#footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: color var(--transition-speed);
}

#footer a:hover {
  color: #38bdf8;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ========================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
======================================================== */
@media (max-width: 991.98px) {
  .header-row {
    height: auto;
    min-height: var(--header-height);
    padding: 0.5rem 0;
  }

  .primary-menu-trigger {
    display: block;
  }

  .primary-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0;
    overflow-y: auto;
    display: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 1060;
  }

  .primary-menu.active {
    display: flex;
  }

  .menu-container {
    flex-direction: column;
    width: 100%;
    height: auto;
  }

  .menu-item {
    width: 100%;
    height: auto;
    display: block;
  }

  .menu-link {
    padding: 0.85rem 1.5rem;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .sub-menu-container,
  .mega-menu-content {
    position: static !important;
    width: 100% !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    border: none !important;
    background: #f8fafc !important;
    padding: 0.75rem 1.5rem !important;
    display: none !important;
    pointer-events: auto !important;
  }

  .menu-item.open > .sub-menu-container,
  .menu-item.open > .mega-menu-content {
    display: block !important;
  }

  .mega-menu-column {
    border-right: none !important;
    padding: 0.75rem 0 !important;
    border-bottom: 1px solid #e2e8f0;
  }

  .mega-menu-column:last-child {
    border-bottom: none;
  }

  .sub-menu-container .sub-menu-container {
    position: static !important;
    top: auto;
    left: auto;
    border-left: 2px solid var(--primary-color) !important;
    padding-left: 1rem !important;
  }

  .hero-title {
    font-size: 2rem;
  }
}
