/* ============================================================
   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; */
  padding: 0.6rem 1rem;
}

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

/* ---------- 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; } */
.top-bar {
  position: relative;
  width: 100vw;           /* Force full viewport width */
  left: 50%;
  right: 50%;
  margin-left: -50vw;     /* Break out of any constrained parent containers */
  margin-right: -50vw;
  overflow: hidden;
  white-space: nowrap;
  background-color: #0b6623; 
  color: #ffffff;
  padding: 8px 0;
}

.marquee-track {
  display: inline-block;
  white-space: nowrap;
  /* Use 'vw' instead of '%' so it starts completely off the right edge of the screen */
  animation: scroll-left 15s linear infinite;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@keyframes scroll-left {
  0% {
    transform: translateX(100vw); /* Start fully outside the right edge of the viewport */
  }
  100% {
    transform: translateX(-100%); /* Slide completely past the left edge */
  }
}

/* ---------- Header ---------- */
/* ============================================================
   HEADER + NAV + MOBILE MENU (Phone Friendly)
   ============================================================ */

.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: 80px;
  gap: 1.5rem !important;
}

/* Logo */
.logo img {
  width: 95px;
  height: 95px;
  object-fit: contain;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* ============================================================
   DESKTOP NAV
   ============================================================ */
.main-nav {
  display: none;
  align-items: center;
  gap: 0.15rem;
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
    flex: 1;
    justify-content: center;
    max-width: 700px;
    margin: 0 auto;
  }

  .header-top {
    display: contents; /* so logo sits normally in the flex row */
  }
}

.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;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.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);
}

/* ============================================================
   DROPDOWNS (Desktop)
   ============================================================ */
.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);
}

.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-with-image {
  min-width: 520px;
  padding: 0;
  overflow: hidden;
}
.dropdown-with-image.wide {
  min-width: 900px;
}

.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;
}

.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;
}

.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;
}

/* ============================================================
   MOBILE MENU – Final Fixed Version
   ============================================================ */

/* Overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 100 !important;               /* lower than menu */
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.mobile-overlay.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* Hamburger */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 42px;
  height: 42px;
  z-index: 1002;
  position: relative;
}

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

.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);
}

/* ===== Phone & Tablet ===== */
@media (max-width: 1023px) {

  /* .mobile-overlay { 
    display: block; 
  } */

  .mobile-overlay {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 100 !important;               /* lower than menu */
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.mobile-overlay.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}
  .header-inner {
    height: auto;
    flex-wrap: wrap;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    gap: 0.75rem;
  }

  /* Top row only: Logo + Hamburger */
  .header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .mobile-toggle {
    display: flex;
  }

  /* Buttons go under the logo */
  .header-actions {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 0.75rem;
  }

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

  /* ---------- MENU DRAWER ---------- */
  .main-nav {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;          /* stick to the right edge */
    left: auto !important;
    width: min(320px, 85vw) !important;
    height: 100vh !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: 5.5rem 0 2.5rem !important;
    background: #ffffff !important;
    z-index: 1001 !important;
    overflow-y: auto !important;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);

    /* Fully hidden off-screen */
    transform: translateX(100%) !important;
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.35s;

    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  /* OPEN STATE – no gap */
  .main-nav.open {
    transform: translateX(0) !important;
    visibility: visible;
  }

  /* OPEN STATE */
  /* .main-nav.open {
    transform: translateX(calc(92vw - 100%)) !important;
    visibility: visible;

  } */

  /* .main-nav.open {
    transform: translateX(calc(100vw - 100%)) !important;
    transform: translate3d(0, 0, 0) !important;
  } */

  /* Links */
  .main-nav > a,
  .nav-item > .nav-link {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.05rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    border-radius: 0;
    background: transparent;
  }

  .nav-chevron {
    font-size: 0.7rem;
    color: #94a3b8;
    transition: transform 0.25s ease;
  }

  .nav-item.open > .nav-link .nav-chevron {
    transform: rotate(180deg);
    color: var(--blue);
  }

  /* Accordion dropdowns */
  .dropdown-menu {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: none !important;
    width: 100% !important;
    min-width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background: #f8fafc !important;
  }

  .nav-item.open > .dropdown-menu {
    display: block !important;
  }

  .dropdown-inner {
    flex-direction: column !important;
    min-height: auto !important;
  }

  .dropdown-left {
    padding: 0.6rem 1.2rem 0.9rem !important;
  }

  .dropdown-left.multi-col {
    display: block !important;
  }

  .dropdown-left.multi-col .dropdown-col {
    border-right: none !important;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 0 !important;
    margin-bottom: 0.4rem;
  }

  .dropdown-left.multi-col .dropdown-col:last-child {
    border-bottom: none;
  }

  /* Images inside mobile dropdowns */
  .dropdown-right {
    display: block !important;
    width: 100% !important;
    height: 130px;
    order: -1;
  }

  .dropdown-right img {
    width: 100%;
    height: 130px;
    object-fit: cover;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .mobile-toggle {
    display: none !important;
  }
  .header-top {
    display: contents;
  }
}

/* ---------- 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( #393B9D, #16834A);
  color: var(--white);
  padding: 4rem 0; /* Reduced top/bottom padding for mobile */
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh; /* Adapts to mobile browser address bars safely */
  display: flex;
  align-items: center;
}

/* Background video – subtle, behind content */
.hero-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;          
}

/* Optional very light overlay only if text needs extra contrast */
.hero-bg-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(57,59,157,0.55) 0%, rgba(22,131,74,0.45) 100%);
}

/* Keep content above the video */
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem; /* Tighter gap on mobile */
  align-items: center;
  width: 100%;
}

/* Tablets and Desktops */
@media (min-width: 1024px) {
  .hero {
    height: 100vh; /* Lock to full viewport only on large screens where it fits */
    padding: 0;    /* Let flex center vertically */
   }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.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.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero h1 span {
  color: #86efac;
}

.hero-lead {
  font-size: 1rem; /* Slightly reduced for better mobile reading */
  color: rgba(255,255,255,0.9);
  max-width: 32rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.hero-stats strong {
  display: block;
  font-size: 1.5rem; /* Scaled down slightly for small viewports */
  font-weight: 700;
}

.hero-stats span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-width: 320px; /* Smaller footprint on mobile screens */
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4);
}

@media (min-width: 1024px) {
  .hero-image img {
    max-width: 420px;
  }
}

/* ---------- 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: 90px;
  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: 75px;
  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 ---------- */
.anniversary-banner {
  position: relative;
  background: linear-gradient(135deg, #393B9D, #2a2c7a, #16834A);
  color: var(--white);
  padding: 5rem 0;
  overflow: hidden;
}

/* Background video layer */
/* .anniversary-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.anniversary-bg-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1.5; 
} */

/* Video container */
/* .hero-bg-video, */
.anniversary-bg-video {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

/* Video itself */
/* .hero-bg-video video, */
.anniversary-bg-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 1.5; 
}

/* Mobile: keep cover behavior, avoid letterboxing */
@media (max-width: 768px) {
  /* .hero-bg-video video, */
  .anniversary-bg-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    /* Prevent iOS from forcing weird scaling */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
}

/* Soft brand overlay on top of video */
.anniversary-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(57,59,157,0.85), rgba(42,44,122,0.8), rgba(22,131,74,0.75));
}

/* Keep content above video */
.anniversary-banner .container {
  position: relative;
  z-index: 1;
}

.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 */
/* Ensure the parent wrapper stacks elements vertically on mobile */
.footer-brand { /* Adjust this selector to match your parent container around the tagline and socials */
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Aligns tagline and icons to the left */
}

.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; }
