/* ============================================================
   NILOWV Official Website Styles
   Brand Colors: #393B9D (Blue) | #16834A (Green) | White | Black
   ============================================================ */
:root {
  --blue: #393B9D;
  --blue-dark: #2d2f80;
  --green: #16834A;
  --green-light: #1a9a58;
  --dark: #0f172a;
  --slate: #64748b;
  --light: #f8fafc;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: #1e293b;
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Ensure header container padding doesn't add to max-width */
.site-header, .header-inner, .container {
  box-sizing: border-box;
  max-width: 90%;
}

/* ---------- Top Bar ---------- */
.top-bar {
  background: var(--green);
  color: var(--white);
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.top-bar span { display: inline-flex; align-items: center; gap: 0.5rem; }

/* ---------- Header ---------- */
/* ============================================================
   HEADER – Optimized
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;                
  gap: 1.25rem;
} */

/* Header inner layout spacing */
.header-inner {
  box-sizing: border-box;
  width: 100% !important; /* Fills the entire 80% parent container */
  max-width: 100% !important;
  display: flex;
  align-items: center;
  justify-content: space-between !important; /* Pushes Logo to far left, Nav to center, Buttons to far right */
  gap: 1rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  text-decoration: none;
}
.logo img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}
.logo-text {
  display: none;
}
@media (min-width: 640px) {
  .logo-text { display: block; }
}
.logo-name {
  display: block;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--blue);
  line-height: 1.2;
}
.logo-tagline {
  display: block;
  font-size: 0.68rem;
  color: var(--slate);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Main Navigation */
/* .main-nav {
  display: none;
  align-items: center;
  gap: 0.15rem;
} */
/* Navigation items spacing */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-evenly; /* Evenly spaces individual nav links */
  flex: 1;                       /* Allows nav bar to expand and fill available space */
  max-width: 700px;              /* Keeps nav items neatly proportioned */
  margin-left: auto;
}

@media (min-width: 1024px) {
  .main-nav { display: flex; }
}
.main-nav > a,
.nav-item > .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.7rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
  border-radius: 8px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.main-nav > a:hover,
.main-nav > a.active,
.nav-item > .nav-link:hover,
.nav-item > .nav-link.active {
  color: var(--blue);
  background: rgba(57, 59, 157, 0.06);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  margin-left: auto;
  justify-content: flex-end !important;
  align-items: flex-end !important;
}

/* Mobile Toggle */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
}

/* Mobile menu open state */
.main-nav.open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 80px;                    /* match your header height */
  left: 0;
  right: 0;
  background: #fff;
  padding: 1rem 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 12px 30px -8px rgba(15, 23, 42, 0.12);
  gap: 0.25rem;
  z-index: 99;
}

/* Optional: Animate the hamburger into an X */
.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #334155;
  border-radius: 2px;
  transition: 0.3s ease;
}

@media (min-width: 1024px) {
  .mobile-toggle { display: none; }
}
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #334155;
  border-radius: 2px;
  transition: 0.3s;
}

/* Mobile menu open state */
.main-nav.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  background: #fff;
  padding: 1rem 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 12px 30px -8px rgba(15, 23, 42, 0.12);
  gap: 0.25rem;
  z-index: 99;
}

/* ============================================================
   DROPDOWN NAVIGATION (with image support)
   ============================================================ */
.nav-item {
  position: relative;
}
.nav-chevron {
  font-size: 0.6rem;
  opacity: 0.7;
  transition: transform 0.25s ease;
}
.nav-item:hover .nav-chevron {
  transform: rotate(180deg);
}

/* ---------- Standard Dropdown ---------- */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 270px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 50px -12px rgba(15, 23, 42, 0.18);
  border: 1px solid #e2e8f0;
  padding: 0.6rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 200;
}
.nav-item:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px);
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.dropdown-link i {
  width: 18px;
  text-align: center;
  color: var(--blue);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.dropdown-link:hover {
  background: #f1f5f9;
  color: var(--blue);
}

/* ---------- Mega Dropdown (with images) ---------- */
.mega-dropdown {
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 780px;
  max-width: 920px;
  padding: 0;
  overflow: hidden;
}
.nav-item:hover > .mega-dropdown {
  transform: translateX(-50%) translateY(4px);
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 1.35rem 1.35rem 0.6rem;
}

.mega-col {
  padding: 0 0.85rem;
}
.mega-col:not(:last-child) {
  border-right: 1px solid #f1f5f9;
}

.mega-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--green);
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.mega-col h4 i {
  font-size: 0.8rem;
}

/* Mega link with optional image */
.mega-link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0.5rem;
  border-radius: 10px;
  margin-bottom: 0.2rem;
  text-decoration: none;
  transition: background 0.15s;
}
.mega-link:hover {
  background: #f8fafc;
}

/* Image thumbnail (optional) */
.mega-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f1f5f9;
}

/* Icon fallback (when no image) */
.mega-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(57, 59, 157, 0.08);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.mega-link strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
}
.mega-link small {
  display: block;
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 0.15rem;
  line-height: 1.35;
}

.mega-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 0.85rem 1.5rem;
  text-align: center;
}
.mega-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}
.mega-cta:hover {
  color: var(--green);
}

/* ============================================================
   DROPDOWN WITH IMAGE ON THE RIGHT (used by ALL dropdowns)
   ============================================================ */
.dropdown-with-image {
  min-width: 520px;
  padding: 0;
  overflow: hidden;
}
.dropdown-with-image.wide {
  min-width: 950px;
}

.dropdown-inner {
  display: flex;
  min-height: 280px;
}

.dropdown-left {
  flex: 1;
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.dropdown-left.multi-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 1.4rem 0.5rem 1.4rem 1.2rem;
}
.dropdown-left.multi-col .dropdown-col {
  padding: 0 0.9rem;
}
.dropdown-left.multi-col .dropdown-col:not(:last-child) {
  border-right: 1px solid #f1f5f9;
}

.dropdown-left h4 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--green);
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Individual item */
.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0.5rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s;
}
.dropdown-item:hover {
  background: #f8fafc;
}
.item-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(57, 59, 157, 0.08);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}
.item-content strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
}
.item-content span {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.12rem;
}

/* Right image panel */
.dropdown-right {
  width: 210px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.dropdown-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dropdown-right-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.75) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.1rem;
}
.dropdown-right-overlay span {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

/* Mobile */
@media (max-width: 1023px) {
  .dropdown-with-image,
  .dropdown-with-image.wide {
    min-width: 100%;
  }
  .dropdown-inner {
    flex-direction: column;
    min-height: auto;
  }
  .dropdown-right {
    display: none; /* hide image on mobile for cleanliness */
  }
  .dropdown-left.multi-col {
    grid-template-columns: 1fr;
  }
  .dropdown-left.multi-col .dropdown-col:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 0.6rem;
    padding-bottom: 0.6rem;
  }
}

/* ============================================================
   MOBILE DROPDOWN ADJUSTMENTS
   ============================================================ */
@media (max-width: 1023px) {
  .dropdown-menu,
  .mega-dropdown {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    min-width: 100%;
    max-width: 100%;
    display: none;
    padding: 0.2rem 0 0.4rem 0.75rem;
    background: transparent;
  }
  .nav-item.open > .dropdown-menu,
  .nav-item.open > .mega-dropdown {
    display: block;
  }
  .mega-grid {
    grid-template-columns: 1fr;
    padding: 0.4rem 0;
  }
  .mega-col {
    border-right: none !important;
    padding: 0.4rem 0;
  }
  .mega-col:not(:last-child) {
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 0.4rem;
    padding-bottom: 0.6rem;
  }
  .mega-footer {
    text-align: left;
    padding: 0.6rem 0;
    background: transparent;
    border-top: none;
  }
  .nav-chevron {
    margin-left: auto;
  }
  .mega-thumb {
    width: 40px;
    height: 40px;
  }
}

/* =========================================================
   Mobile Header Layout & Spacing Fix
   ========================================================= */
@media (max-width: 768px) {
  .site-header {
    position: relative;
    z-index: 100;
    width: 100%;
    background-color: #ffffff;
    height: auto !important;
  }

  /* OVERRIDE THE 100px FIXED HEIGHT */
  .header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    height: auto !important; /* Fixes height collapse */
    padding: 12px 16px;
    gap: 8px 0;
  }

  .main-nav {
      display: none; /* Hide navigation links on small screens */
    }

  .logo {
    order: 1;
  }

  .mobile-toggle {
    order: 2;
  }

  /* Full-width row for buttons below logo and toggle */
  .header-actions {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .header-actions .btn {
    flex: 1;
    text-align: center;
    justify-content: center;
  }

  /* Prevent hero content from tucking under fixed position elements */
  .hero {
    clear: both;
    position: relative;
  }
}

/* Hide desktop navigation and display mobile hamburger up to 1200px */
@media (min-width: 1200px) {
  .main-nav {
    display: flex;
  }
  .mobile-toggle {
    display: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(57,59,157,0.3);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-green {
  background: var(--green);
  color: var(--white);
}
.btn-green:hover { background: var(--green-light); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.45);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-sm { padding: 0.55rem 1.25rem; font-size: 0.875rem; }
.btn-white {
  background: var(--white);
  color: var(--blue);
}
.btn-white:hover { background: #f0fdf4; }


/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #393B9D 0%, #2a2c7a 50%, #16834A 100%);
  color: var(--white);
  padding: 5rem 0 6rem;
  overflow: hidden;
}

/* Background floating container */
.hero-bg-animated {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  pointer-events: none; /* Prevents logo from blocking clicks on buttons/links */
  z-index: 0; /* Keep behind main text content */
  transform: translateY(-50%);
}

.hero-bg-animated img {
  width: 280px; /* Adjust size to fit your design */
  height: auto;
  opacity: 0.12; /* Subtle background watermark effect */
  animation: rollInOut 16s linear infinite;
  border-radius: 50%; /* Optional: make the background logo circular */
}

/* Keyframe definition for rolling in and out */
@keyframes rollInOut {
  0% {
    transform: translateX(-100%) rotate(-360deg);
    opacity: 0;
  }
  15% {
    opacity: 0.15;
  }
  50% {
    transform: translateX(50vw) rotate(0deg);
    opacity: 0.2;
  }
  85% {
    opacity: 0.15;
  }
  100% {
    transform: translateX(100vw) rotate(360deg);
    opacity: 0;
  }
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero h1 span { color: #86efac; }
.hero-lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  max-width: 32rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.hero-stats strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
}
.hero-stats span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
}
.hero-image {
  display: flex;
  justify-content: center;
  /* background-color: #fff;
  border-radius: 1rem; */
}
.hero-image img {
  max-width: 420px;
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4);
}

.hero-image video {
  width: 100%;
  height: auto;
  border-radius: 8px; 
  object-fit: cover;
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid #e2e8f0;
  padding: 2.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: center;
}
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
}
.stat-value.green { color: var(--green); }
.stat-label {
  font-size: 0.875rem;
  color: var(--slate);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* ============================================================
   OUR PARTNERS – Infinite Horizontal Marquee
   ============================================================ */
.partners-section {
  padding: 5rem 0 4rem;
  background: #f8fafc;
  overflow: hidden;
}

.partners-section .section-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3rem;
}

.partners-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.partners-track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  animation: partners-scroll 40s linear infinite;
}

.partners-track:hover {
  animation-play-state: paused; /* pause on hover for better UX */
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  padding: 0 0.5rem;
  opacity: 0.75;
  transition: opacity 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.partner-logo:hover {
  opacity: 1;
  transform: scale(1.06);
}

.partner-logo img {
  max-height: 55px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter 0.3s ease;
}

.partner-logo:hover img {
  filter: grayscale(0%);
}

/* Infinite scroll animation */
@keyframes partners-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%); /* moves exactly half because we duplicated the logos */
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .partners-track {
    gap: 2.2rem;
    animation-duration: 28s;
  }
  .partner-logo {
    height: 55px;
  }
  .partner-logo img {
    max-height: 42px;
    max-width: 110px;
  }
}

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--light); }
.section-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3.5rem;
}
.section-label {
  display: inline-block;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}
.section-header p {
  color: var(--slate);
  font-size: 1.1rem;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -8px rgba(57,59,157,0.15);
}
.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark);
}
.card p { font-size: 0.9rem; color: var(--slate); line-height: 1.6; }
.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.card .icon.blue { background: rgba(57,59,157,0.1); color: var(--blue); }
.card .icon.green { background: rgba(22,131,74,0.1); color: var(--green); }

/* ---------- Mission Box ---------- */
.mission-box {
  background: var(--blue);
  color: var(--white);
  border-radius: 1.25rem;
  padding: 2.5rem;
}
.mission-box h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}
.mission-box p { color: rgba(255,255,255,0.9); margin-bottom: 1.25rem; }
.mission-values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1.25rem;
}
.mission-values span {
  background: rgba(255,255,255,0.15);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

/* ---------- Two Column Layout ---------- */
.two-col {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .two-col { grid-template-columns: 1fr 1fr; }
}

/* ---------- Anniversary Banner ---------- */
.anniversary-banner {
  background: linear-gradient(135deg, #393B9D, #2a2c7a, #16834A);
  color: var(--white);
  padding: 5rem 0;
}
.anniversary-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1.25rem;
}
.check-list { margin: 1.5rem 0 2rem; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: rgba(255,255,255,0.9);
}
.check-list .check {
  width: 22px;
  height: 22px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.check-list .check svg { width: 12px; height: 12px; }

/* ============================================================
   PARTNER CTA SECTION
   ============================================================ */
.partner-cta-box {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border-radius: 20px;
  padding: 3rem 2.5rem;
  box-shadow: 0 10px 40px -12px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
}

.partner-cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  color: var(--dark);
  margin: 0.75rem 0 1rem;
  line-height: 1.25;
}

.partner-cta-box .lead {
  color: var(--slate);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.partner-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.partner-cta-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
}

.partner-cta-actions .btn i {
  font-size: 1.15rem;
}

/* Outline button variant */
.btn-outline-dark {
  background: transparent;
  color: var(--dark);
  border: 2px solid #cbd5e1;
  transition: all 0.2s ease;
}
.btn-outline-dark:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: var(--blue);
}

.partner-cta-contact {
  border-top: 1px solid #e2e8f0;
  padding-top: 1.5rem;
}

.partner-cta-contact p {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  color: #334155;
}

.partner-cta-contact a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}
.partner-cta-contact a:hover {
  text-decoration: underline;
}

.partner-cta-contact i {
  color: var(--blue);
  margin-right: 0.3rem;
}

.partner-note {
  font-size: 0.75rem !important;
  color: var(--green-dark) !important;
  max-width: 28rem;
  margin: 0.75rem auto !important;
  line-height: 1.55;
  /* background-color: var(--green-light); */
  border-radius: 5px;
  padding: 0.5rem 0.75rem;
  text-align: center;
}

.partner-cta-contact small {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Responsive */
@media (max-width: 575px) {
  .partner-cta-box {
    padding: 2.25rem 1.4rem;
  }
  .partner-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .partner-cta-actions .btn {
    justify-content: center;
  }
}

/* ============================================================
   NILOWV IN THE MEDIA – Horizontal scroll on mobile/tablet
   ============================================================ */
.media-section {
  background: #fff;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

/* ----- Horizontal scroll on small screens ----- */
@media (max-width: 991px) {
  .media-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1.1rem;
    padding-bottom: 1rem;
    margin-left: -1.25rem;          /* edge-to-edge feel */
    margin-right: -1.25rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;

    /* Hide scrollbar but keep functionality */
    scrollbar-width: none;          /* Firefox */
  }

  .media-grid::-webkit-scrollbar {
    display: none;                  /* Chrome, Safari, Edge */
  }

  .media-card {
    flex: 0 0 85%;                  /* card width on mobile */
    max-width: 320px;
    scroll-snap-align: start;
  }
}

/* Slightly wider cards on tablets */
@media (min-width: 640px) and (max-width: 991px) {
  .media-card {
    flex: 0 0 45%;
    max-width: 340px;
  }
}

/* Desktop keeps normal grid */
@media (min-width: 992px) {
  .media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    overflow: visible;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

/* ---- Card styles (unchanged) ---- */
.media-card {
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.4rem 1.5rem 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -10px rgba(57, 59, 157, 0.12);
  border-color: rgba(57, 59, 157, 0.25);
}

.media-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 0.75rem;
}

.media-logo-wrap {
  height: 32px;
  display: flex;
  align-items: center;
}

.media-logo {
  max-height: 28px;
  max-width: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter 0.25s ease;
}

.media-card:hover .media-logo {
  filter: grayscale(0%);
}

.media-date {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 500;
  white-space: nowrap;
}

.media-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
  margin-bottom: 0.55rem;
}

.media-card p {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.55;
  flex-grow: 1;
  margin-bottom: 1.1rem;
}

.media-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s ease, color 0.2s ease;
}

.media-card:hover .media-link {
  gap: 0.55rem;
  color: var(--green);
}

.media-footer {
  text-align: center;
}

.media-footer .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

/* ============================================================
   FOOTER – Aligned with Optimized Header
   ============================================================ */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 4.5rem 0 0;
  font-size: 0.9rem;
}

/* Grid */
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

/* Brand */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-bottom: 1.1rem;
}
.footer-logo img {
  width: 170px;
  height: 170px;
  object-fit: cover;
  background: #fff;
  border-radius: 50%;
  padding: 0px;
}
.footer-logo-text strong {
  display: block;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}
.footer-logo-text span {
  display: block;
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 500;
}
.footer-tagline {
  line-height: 1.65;
  margin-bottom: 1.4rem;
  max-width: 280px;
}

/* Social Icons */
.footer-social {
  display: flex;
  gap: 0.65rem;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  font-size: 0.95rem;
}
.footer-social a:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-2px);
}

/* Columns */
.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1.15rem;
  letter-spacing: 0.02em;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin-bottom: 0.55rem;
}
.footer-col ul a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.9rem;
}
.footer-col ul a:hover {
  color: #fff;
}

/* Contact items */
.footer-contact-item {
  display: flex;
  gap: 0.7rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}
.footer-contact-item i {
  color: var(--blue);
  font-size: 0.95rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.footer-contact-item p {
  margin: 0;
  line-height: 1.55;
  font-size: 0.9rem;
}
.footer-contact-item a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-contact-item a:hover {
  color: #fff;
}

/* Newsletter */
.footer-newsletter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.5rem;
}
.newsletter-text h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}
.newsletter-text p {
  font-size: 0.875rem;
  margin: 0;
  color: #94a3b8;
}
.newsletter-input-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.newsletter-input-group input[type="email"] {
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #fff;
  font-size: 0.9rem;
  min-width: 240px;
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-input-group input:focus {
  border-color: var(--blue);
}
.newsletter-input-group .btn {
  border-radius: 999px;
  padding: 0.75rem 1.4rem;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Bottom Bar */
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 1.5rem 0 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
}
.footer-bottom-left p {
  margin: 0 0 0.3rem;
  font-size: 0.85rem;
  color: #64748b;
}
.footer-motto {
  color: var(--green) !important;
  font-weight: 600;
  font-size: 0.9rem !important;
}
.footer-bottom-right {
  text-align: right;
}
.footer-legal {
  margin-bottom: 0.4rem;
}
.footer-legal a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-legal a:hover {
  color: #fff;
}
.footer-legal span {
  margin: 0 0.4rem;
  color: #475569;
}
.footer-credit {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0;
}
.footer-credit a {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-credit a:hover {
  color: var(--blue);
}

/* Responsive */
@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-newsletter {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .newsletter-input-group {
    flex-direction: column;
  }
  .newsletter-input-group input {
    min-width: 100%;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-bottom-right {
    text-align: center;
  }
  .footer-social {
    justify-content: center;
  }
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, #393B9D, #2a2c7a);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.75rem;
}
.page-hero p {
  max-width: 36rem;
  margin: 0 auto;
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.text-blue { color: var(--blue); }
.text-green { color: var(--green); }
.fw-600 { font-weight: 600; }
.lead { font-size: 1.1rem; color: var(--slate); line-height: 1.7; }
