/* =====================================================
   HORIZON INTERNATIONAL ACADEMY — FINAL 2026 UI SYSTEM
   Premium Dark Green + Gold Institutional Design
   ===================================================== */

   @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

   /* ===================================================================
      VARIABLES
      =================================================================== */
   :root {
     /* IDBS 2026 brand palette — indigo -> blue -> cyan, with green accent.
        Variable names kept as --green-* / --gold so no other rule needs touching. */
     --green-900: #171C54;   /* deepest indigo  */
     --green-800: #20257A;
     --green-700: #292A96;   /* brand indigo    */
     --green-600: #1663B7;   /* brand blue      */
     --green-500: #1B76C4;
     --green-400: #4A93D6;
     --green-300: #8FBEE9;
     --green-200: #C2DCF4;
     --green-100: #E2EEFA;

     /* accent — was gold, now the brand green (names kept for compatibility) */
     --gold:       #42B966;
     --gold-light: #83DF98;

     /* new brand tokens */
     --brand-indigo:     #292A96;
     --brand-indigo-dk:  #171C54;
     --brand-blue:       #1663B7;
     --brand-cyan:       #08A9D4;
     --brand-cyan-lt:    #74E1F4;
     --brand-green:      #42B966;
     --brand-green-dk:   #27984C;
     --brand-green-lt:   #83DF98;
     --brand-ink:        #29334E;
     --brand-mute:       #60708E;
     --brand-line:       #E7ECF5;
     --brand-tint:       #F4F8FD;

     --white:     #f4f7fb;
     --gray-100:  #e8edf4;
     --gray-400:  #9aabbf;
     --gray-600:  #5a6c82;

     --text-dark: #0d1722;
     --text-body: #2c3e4a;
   
     --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
     --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.3);
     --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.45);
   
     --radius-sm: 6px;
     --radius-md: 12px;
     --radius-lg: 20px;
   
     --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
   
     --navbar-height: 72px;
     --social-bar-height: 38px;
   }
   
   /* ===================================================================
      RESET
      =================================================================== */
   *,
   *::before,
   *::after {
     box-sizing: border-box;
     margin: 0;
     padding: 0;
   }
   
   /* ===================================================================
      BASE
      =================================================================== */
   body {
     font-family: 'DM Sans', sans-serif;
     background-color: #eef4ff;
     background-image: linear-gradient(135deg, #e4eeff 0%, #ffffff 48%, #fffdf0 100%);
     background-attachment: fixed;
     background-repeat: no-repeat;
     background-size: cover;
     color: var(--text-body);
     line-height: 1.7;
     overflow-x: hidden;
     animation: fadeIn 0.6s ease;
   }
   
   /* Safe text clamp – no Tailwind plugin needed */
   .clamp-2 {
     display: -webkit-box;
     -webkit-line-clamp: 2;
     -webkit-box-orient: vertical;
     overflow: hidden;
   }
   
   .clamp-3 {
     display: -webkit-box;
     -webkit-line-clamp: 3;
     -webkit-box-orient: vertical;
     overflow: hidden;
   }
   
   /* ===================================================================
      TYPOGRAPHY
      =================================================================== */
   h1, h2, h3, h4 {
     font-family: 'Playfair Display', serif;
     color: var(--green-800);
     letter-spacing: -0.02em;
   }
   
   a {
     text-decoration: none;
     color: var(--green-500);
     transition: all 0.25s ease;
   }
   
   a:hover  { color: var(--green-300); }
   a:active { transform: scale(0.97); }
   
   /* ===================================================================
      SITE HEADER WRAPPER - FIXED STACKING CONTEXT
      =================================================================== */
   .site-header {
     position: relative;  /* Changed from sticky to relative */
     z-index: 1000;
     width: 100%;
     background: var(--green-800);
   }
   
   /* ===================================================================
      NAVBAR - HIGHEST Z-INDEX
      =================================================================== */
   .navbar {
     background-color: #171C54;
     position: relative;
     z-index: 1002;
    
   }
   
   .navbar__inner {
     max-width: 1400px;
     margin: 0 auto;
     padding: 0 24px;
     height: var(--navbar-height);
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 16px;
   }
   
   /* ---- Logo ---- */
   .navbar__logo {
     display: flex;
     align-items: center;
     gap: 12px;
     text-decoration: none;
   }

   .navbar__logo img {
     height: 52px;
     display: block;
     transition: opacity 0.3s ease;
     flex-shrink: 0;
   }

   .navbar__logo:hover img { opacity: 0.85; }

   .navbar__brand {
     display: flex;
     flex-direction: column;
     line-height: 1;
   }

   .navbar__brand-name {
     font-family: 'Playfair Display', serif;
     font-size: 26px;
     font-weight: 700;
     letter-spacing: 0.02em;
     color: var(--white);
   }

   .navbar__brand-sub {
     font-size: 12px;
     font-weight: 600;
     letter-spacing: 0.28em;
     text-transform: uppercase;
     color: var(--gold);
     margin-top: 4px;
   }

   @media (max-width: 480px) {
     .navbar__brand-name { font-size: 21px; }
     .navbar__logo img   { height: 44px; }
   }
   
   /* ===================================================================
      NAV MENU — DESKTOP
      =================================================================== */
   .nav-menu {
     display: flex;
     list-style: none;
     align-items: center;
     gap: 4px;
     position: relative;
     z-index: 1003;
     margin: 0;
     padding: 0;
   }
   
   .nav-menu > li {
     position: relative;
   }
   
   .nav-menu > li > a {
     display: block;
     color: var(--gray-100);
     padding: 8px 14px;
     font-size: 14px;
     font-weight: 600;
     position: relative;
     border-radius: var(--radius-sm);
     transition: color 0.25s ease, background 0.25s ease;
     white-space: nowrap;
   }
   
   /* Underline animation */
   .nav-menu > li > a::after {
     content: '';
     position: absolute;
     bottom: 4px;
     left: 10px;
     width: 0;
     height: 2px;
     background: var(--green-300);
     transition: width 0.3s ease;
   }
   
   .nav-menu > li > a:hover { color: var(--white); }
   .nav-menu > li > a:hover::after { width: calc(100% - 20px); }
   
   /* ===================================================================
      DROPDOWN — COMPLETE FIX
      =================================================================== */
   .nav-dropdown { 
     position: relative;
   }
   
   .dropdown-arrow {
     font-size: 10px;
     margin-left: 4px;
     display: inline-block;
     transition: transform 0.25s ease;
   }
   
   .nav-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }
   
   /* CRITICAL: Create bridge to eliminate gap */
   .nav-dropdown > a {
     display: block;
     position: relative;
   }
   
   /* Bridge from menu item down to dropdown */
   .nav-dropdown > a::after {
     content: '';
     position: absolute;
     bottom: -15px;
     left: 0;
     width: 100%;
     height: 15px;
     background: transparent;
     z-index: 1005;
   }
   
   /* Dropdown menu styling */
   .dropdown-menu {
     position: absolute;
     top: 100%;
     left: 0;
     list-style: none;
     background: #292A96;
     border-radius: 8px;
     min-width: 240px;
     box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.35);
     border: 1px solid rgba(255, 255, 255, 0.1);
     opacity: 0;
     visibility: hidden;
     transform: translateY(-5px);
     transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
     z-index: 10000 !important;
     margin: 0;
     padding: 8px 0;
     pointer-events: none;
   }
   
   /* Show dropdown on hover */
   .nav-dropdown:hover .dropdown-menu {
     opacity: 1;
     visibility: visible;
     transform: translateY(0);
     pointer-events: auto;
   }
   
   /* Keep dropdown visible when hovering over it */
   .dropdown-menu:hover {
     opacity: 1;
     visibility: visible;
     transform: translateY(0);
     pointer-events: auto;
   }
   
   /* Bridge from dropdown up to menu item */
   .dropdown-menu::before {
     content: '';
     position: absolute;
     top: -15px;
     left: 0;
     width: 100%;
     height: 15px;
     background: transparent;
     z-index: 1005;
   }
   
   .dropdown-menu li {
     list-style: none;
     margin: 0;
     padding: 0;
   }
   
   .dropdown-menu a {
     display: block;
     padding: 10px 18px;
     color: #e5e7eb;
     font-size: 14px;
     font-weight: 500;
     text-decoration: none;
     border-left: 3px solid transparent;
     transition: background 0.2s ease, padding-left 0.2s ease, border-color 0.2s ease;
     white-space: nowrap;
   }
   
   .dropdown-menu a:hover {
     background: #1B76C4;
     padding-left: 24px;
     border-left-color: #42B966;
     color: white;
   }
   
   /* ===================================================================
      CTA BUTTON
      =================================================================== */
   .nav-cta > a {
     background: var(--gold) !important;
     color: var(--green-900) !important;
     font-weight: 700 !important;
     border-radius: 8px !important;
     padding: 8px 20px !important;
     transition: background 0.3s ease, box-shadow 0.3s ease !important;
   }
   
   .nav-cta > a::after { display: none !important; }
   
   .nav-cta > a:hover {
     background: var(--gold-light) !important;
     box-shadow: 0 0 20px rgba(247, 206, 60, 0.55) !important;
   }
   
   /* ===================================================================
      HAMBURGER TOGGLE BUTTON
      =================================================================== */
   .nav-toggle {
     display: none;
     flex-direction: column;
     justify-content: center;
     gap: 5px;
     background: transparent;
     border: none;
     cursor: pointer;
     padding: 6px;
     border-radius: var(--radius-sm);
     transition: background 0.2s ease;
     flex-shrink: 0;
   }
   
   .nav-toggle:hover { background: rgba(255, 255, 255, 0.08); }
   
   .nav-toggle__bar {
     display: block;
     width: 26px;
     height: 2px;
     background: var(--white);
     border-radius: 2px;
     transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
     transform-origin: center;
   }
   
   /* Animated X when open */
   .nav-toggle.is-open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
   .nav-toggle.is-open .nav-toggle__bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
   .nav-toggle.is-open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
   
   /* ===================================================================
      SOCIAL BAR — LOWER Z-INDEX (stays behind dropdown)
      =================================================================== */
   .social-bar {
     background: #1B76C4;
     border-bottom: 1px solid rgba(0, 0, 0, 0.10);
     padding: 0 24px;
     height: var(--social-bar-height);
     display: flex;
     align-items: center;
     position: relative;
     z-index: 5 !important;
   }
   
   .social-bar__inner {
     max-width: 1400px;
     width: 100%;
     margin: 0 auto;
     display: flex;
     align-items: center;
     gap: 14px;
     justify-content: flex-end;
   }
   
   .social-bar__label {
     color: #ffffff;
     font-size: 12px;
     font-weight: 500;
     white-space: nowrap;
     letter-spacing: 0.02em;
   }
   
   .social-links {
     display: flex;
     align-items: center;
     gap: 10px;
   }
   
   .social-link {
     display: flex;
     align-items: center;
     justify-content: center;
     width: 28px;
     height: 28px;
     border-radius: 50%;
     transition: background 0.25s ease, transform 0.25s ease;
   }
   
   .social-link:hover {
     background: rgba(0, 0, 0, 0.12);
     transform: translateY(-2px);
   }
   
   .social-bar img {
     width: 20px;
     height: 20px;
     object-fit: contain;
     opacity: 0.75;
     transition: opacity 0.25s ease;
     display: block;
   }
   
   .social-link:hover img { 
     opacity: 1; 
   }
   
   /* ===================================================================
      HERO / SLIDESHOW
      =================================================================== */
   .slideshow {
     position: relative;
     overflow: hidden;
     max-height: 580px;
   }
   
   .slideshow img {
     width: 100%;
     height: 580px;
     object-fit: cover;
   }
   
   .slideshow::after {
     content: '';
     position: absolute;
     inset: 0;
     background: linear-gradient(to bottom, rgba(7, 31, 27, 0.4), rgba(7, 31, 27, 0.85));
   }
   
   /* ===================================================================
      CARDS
      =================================================================== */
   .category-card,
   .course-card,
   .video-card,
   .post-card {
     transition: transform 0.35s ease, box-shadow 0.35s ease;
   }
   
   .category-card:hover,
   .course-card:hover,
   .video-card:hover,
   .post-card:hover {
     transform: translateY(-8px) scale(1.01);
     box-shadow: var(--shadow-lg);
   }


   /* ===================================================================
   EVENTS GRID & CARDS
   =================================================================== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.event-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: 1px solid #f0f0f0;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(37,99,235,0.12);
  border-color: #E2EEFA;
}

.event-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
  background: #F2F7FD;
}

.event-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.event-card:hover .event-img img {
  transform: scale(1.05);
}

.event-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #1663B7;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.event-body {
  padding: 16px;
}

.event-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card:hover .event-title {
  color: #1663B7;
}

.event-excerpt {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.event-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #9ca3af;
  margin-bottom: 12px;
}

.event-meta-dot {
  width: 3px;
  height: 3px;
  background: #d1d5db;
  border-radius: 50%;
}

.event-readmore {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #1663B7;
  text-decoration: none;
  transition: gap 0.2s;
}

.event-readmore:hover {
  gap: 8px;
  color: #292A96;
}

/* ===================================================================
 SECTION HEADERS
 =================================================================== */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1663B7;
  background: #F2F7FD;
  padding: 4px 16px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 12px;
}

.section-rule {
  width: 60px;
  height: 4px;
  background: #42B966;
  border-radius: 2px;
  margin: 0 auto 16px;
}

.section-subtitle {
  color: #6b7280;
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ===================================================================
 VIEW ALL BUTTON
 =================================================================== */
.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1663B7;
  color: white;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 40px;
  text-decoration: none;
  margin-top: 40px;
  transition: all 0.2s;
}

.view-all-btn:hover {
  background: #292A96;
  transform: translateY(-2px);
  color: white;
}

/* ===================================================================
 TAB BUTTONS (Programs Section)
 =================================================================== */
.tab-btn {
  transition: all 0.2s ease;
  cursor: pointer;
}

.tab-btn.active {
  background-color: #1663B7;
  color: white;
  border-color: #1663B7;
}

.tab-count {
  font-size: 0.65rem;
  background: rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 1px 7px;
  margin-left: 4px;
}

.tab-btn:not(.active) .tab-count {
  background: #F2F7FD;
  color: #1663B7;
}

/* ===================================================================
 COURSE CARDS (Additional styles)
 =================================================================== */
.course-card {
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px -8px rgba(0,0,0,0.13);
}

.course-card .card-img {
  transition: transform 0.5s ease;
}

.course-card:hover .card-img {
  transform: scale(1.07);
}

.cat-badge {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

/* ===================================================================
 RATING STARS
 =================================================================== */
.rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.star-filled {
  color: #facc15;
}

.star-empty {
  color: #e5e7eb;
}

/* ===================================================================
 LINE CLAMP UTILITIES
 =================================================================== */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===================================================================
 RESPONSIVE BREAKPOINTS FOR EVENTS GRID
 =================================================================== */
@media (max-width: 1200px) {
  .events-grid {
      grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .events-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
  }
  .section-title {
      font-size: 1.6rem;
  }
  .event-img {
      height: 150px;
  }
}

@media (max-width: 480px) {
  .events-grid {
      grid-template-columns: 1fr;
  }
}
   
   /* ===================================================================
      ANIMATIONS
      =================================================================== */
   @keyframes fadeIn {
     from { opacity: 0; transform: translateY(8px); }
     to   { opacity: 1; transform: translateY(0); }
   }
   
   @keyframes slideDown {
     from { opacity: 0; transform: translateY(-10px); }
     to   { opacity: 1; transform: translateY(0); }
   }
   
   /* ===================================================================
      MOBILE — max-width: 992px
      =================================================================== */
   @media (max-width: 992px) {
   
     /* Show hamburger */
     .nav-toggle { display: flex; }
   
     /* Hide desktop menu by default */
     .nav-menu {
       display: none;
       position: absolute;
       top: var(--navbar-height);
       left: 0;
       width: 100%;
       background: var(--green-900);
       flex-direction: column;
       align-items: stretch;
       gap: 0;
       padding: 8px 0 16px;
       border-bottom: 2px solid var(--green-700);
       box-shadow: var(--shadow-md);
       animation: slideDown 0.3s ease;
       z-index: 9999;
     }
   
     /* Show when toggled open */
     .nav-menu.open { display: flex; }
   
     /* Mobile nav links — full width, larger tap targets */
     .nav-menu > li > a {
       padding: 14px 24px;
       font-size: 15px;
       border-radius: 0;
       border-bottom: 1px solid rgba(255, 255, 255, 0.05);
       display: flex;
       align-items: center;
       justify-content: space-between;
     }
   
     .nav-menu > li > a::after { display: none; }
   
     /* Mobile dropdown — static, hidden by default */
     .dropdown-menu {
       position: static;
       opacity: 1;
       transform: none;
       pointer-events: auto;
       box-shadow: none;
       border-radius: 0;
       border: none;
       border-top: 1px solid rgba(255, 255, 255, 0.05);
       background: rgba(0, 0, 0, 0.25);
       display: none;
       padding: 4px 0;
       min-width: unset;
       width: 100%;
       z-index: auto;
     }
   
     /* Show dropdown when parent has .open */
     .nav-dropdown.open .dropdown-menu { display: block; }
   
     /* Rotate arrow when open on mobile */
     .nav-dropdown.open .dropdown-arrow { transform: rotate(180deg); }
   
     .dropdown-menu a {
       padding: 11px 36px;
       font-size: 14px;
       border-left: none;
     }
   
     .dropdown-menu a:hover { padding-left: 44px; }
   
     /* CTA full width on mobile */
     .nav-cta { padding: 12px 16px; }
   
     .nav-cta > a {
       display: block;
       text-align: center;
       width: 100%;
       padding: 12px 20px !important;
       border-radius: var(--radius-sm) !important;
     }
   
     /* Social bar — hide label on small screens to save space */
     .social-bar__label { display: none; }
   
     .social-bar { padding: 0 16px; }
     
     /* Remove bridge elements on mobile */
     .nav-dropdown > a::after,
     .dropdown-menu::before {
       display: none;
     }
   }
   
   /* ===================================================================
      EXTRA SMALL — max-width: 480px
      =================================================================== */
   @media (max-width: 480px) {
     .navbar__inner { padding: 0 16px; }
   
     .navbar__logo img { height: 46px; }
   
     .social-bar img { width: 18px; height: 18px; }
   
     .social-links { gap: 6px; }
   }
/* =====================================================================
   IDBS 2026 — ACADEMY HEADER + HERO
   Adapted from the "course_institution" reference design.
   Palette: indigo #292A96 -> blue #1663B7 -> cyan #08A9D4, green #42B966
   Appended last so it wins over the older rules above.
   ===================================================================== */

/* ---------- 1. STICKY WHITE HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 8px 28px rgba(23, 28, 84, .16);
}

.navbar {
  background: #fff;
  border-bottom: 1px solid var(--brand-line);
}

.navbar__inner { height: 74px; gap: 20px; }

/* ---------- 2. BRAND SEAL ---------- */
.navbar__seal {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 16px;
  border: 1px solid #D8E0F0;
  background: linear-gradient(145deg, #F7FAFF, #EDF5FF);
  box-shadow: 0 7px 20px rgba(41, 42, 150, .12);
  position: relative;
  transition: box-shadow .25s ease, transform .25s ease;
}
.navbar__seal::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(41, 42, 150, .28);
  border-radius: 11px;
  pointer-events: none;
}
.navbar__logo:hover .navbar__seal {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(41, 42, 150, .22);
}
.navbar__seal img { height: 38px; width: auto; opacity: 1 !important; }

.navbar__brand-name { color: var(--brand-indigo-dk); font-size: 24px; }
.navbar__brand-sub  { color: var(--brand-mute); letter-spacing: .26em; font-size: 11px; }

/* ---------- 3. NAV LINKS — light bar, underline sweep ---------- */
.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-ink);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 13px;
  border-radius: 10px;
}
.nav-menu > li > a:hover { color: var(--brand-blue); background: transparent; }

.nav-menu > li > a::after {
  height: 3px;
  bottom: 2px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand-indigo), var(--brand-cyan), var(--brand-green));
}

/* icon chips */
.nav-ico {
  width: 23px;
  height: 23px;
  flex-shrink: 0;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: #EEF2FF;
  color: var(--brand-indigo);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  transition: background .2s ease, color .2s ease;
}
.nav-menu > li > a:hover .nav-ico {
  background: linear-gradient(145deg, var(--brand-indigo), var(--brand-blue));
  color: #fff;
}

.dropdown-arrow { color: var(--brand-green); font-size: 10px; }

/* ---------- 4. DROPDOWNS — white cards ---------- */
.dropdown-menu {
  background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 24px 50px -18px rgba(23, 28, 84, .32);
}
.dropdown-menu a {
  color: var(--brand-ink);
  border-left: 0;
  border-radius: 9px;
  font-weight: 600;
}
.dropdown-menu a:hover {
  background: #ECF9F0;
  color: #1F843E;
  padding-left: 18px;
  border-left: 0;
}

/* ---------- 5. APPLY CTA — green pill ---------- */
.nav-cta > a {
  background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-dk) 100%) !important;
  color: #fff !important;
  border-radius: 11px !important;
  padding: 11px 22px !important;
  box-shadow: 0 10px 24px rgba(39, 152, 76, .27) !important;
}
.nav-cta > a:hover {
  background: linear-gradient(135deg, #36AA59, #1F843E) !important;
  box-shadow: 0 13px 28px rgba(39, 152, 76, .34) !important;
  transform: translateY(-2px);
}
.nav-cta > a .nav-ico { display: none; }

/* ---------- 6. HAMBURGER ---------- */
.nav-toggle__bar { background: var(--brand-indigo) !important; }

/* ---------- 7. SOCIAL BAR — deep indigo, REAL brand logos ---------- */
.social-bar { background: var(--brand-indigo-dk); border-bottom: 0; }
.social-bar__label { color: #DFE8FF; }

/* white chip so each logo keeps its own brand colours */
.social-link {
  width: 30px;
  height: 30px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .22);
  transition: transform .2s ease, box-shadow .2s ease;
}
.social-link:hover {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .34);
}
/* never recolour the logos — show them as-is */
.social-bar img {
  width: 19px;
  height: 19px;
  opacity: 1;
  filter: none;
  object-fit: contain;
}

/* mobile: nav panel drops from the white bar */
@media (max-width: 992px) {
  .nav-menu {
    background: #fff;
    border: 1px solid #E5EAF4;
    box-shadow: 0 20px 40px -16px rgba(23, 28, 84, .28);
  }
  .nav-menu > li > a { color: var(--brand-ink); }
  .nav-menu > li > a:hover { background: #ECF9F0; color: #1F843E; }
}

/* =====================================================================
   8. HERO BANNER
   ===================================================================== */
.idbs-hero {
  position: relative;
  height: 600px;
  min-height: 600px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 16%, rgba(8, 169, 212, .26), transparent 28%),
    radial-gradient(circle at 12% 82%, rgba(66, 185, 102, .19), transparent 26%),
    radial-gradient(circle at 90% 70%, rgba(41, 42, 150, .32), transparent 28%),
    linear-gradient(rgba(23, 28, 84, .28), rgba(10, 18, 73, .76)),
    linear-gradient(125deg, #292A96 0%, #1663B7 48%, #08A9D4 100%);
}

/* optional photo layer — sits under the gradient wash */
.idbs-hero__media { position: absolute; inset: 0; z-index: -2; }
.idbs-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.idbs-hero__media img.is-active { opacity: .30; }

/* faint engineering grid */
.idbs-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  /* the grid fades out toward the edges instead of tiling flat to the corners */
  -webkit-mask-image: radial-gradient(circle, #000, transparent 72%);
          mask-image: radial-gradient(circle, #000, transparent 72%);
}

/* circuit nodes */
.idbs-hero__circuit {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .9;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 45%, transparent 0 3px, rgba(143, 231, 255, .30) 4px, transparent 5px),
    radial-gradient(circle at 68% 58%, transparent 0 3px, rgba(137, 232, 157, .32) 4px, transparent 5px);
}
.idbs-hero__circuit::before,
.idbs-hero__circuit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(178, 235, 255, .18);
  border-radius: 50%;
}
.idbs-hero__circuit::before { width: 380px; height: 380px; left: 6%;  top: 12%; }
.idbs-hero__circuit::after  { width: 300px; height: 300px; right: 8%; bottom: 8%; }

/* floating glyphs */
.idbs-hero__tech {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  font-size: 46px;
  color: rgba(255, 255, 255, .14);
  pointer-events: none;
  user-select: none;
}
.idbs-hero__tech--left  { left: 4%; }
.idbs-hero__tech--right { right: 4%; }
.idbs-hero__tech span { animation: idbsFloat 7s ease-in-out infinite; }
.idbs-hero__tech span:nth-child(2) { animation-delay: 1.4s; }
.idbs-hero__tech span:nth-child(3) { animation-delay: 2.8s; }
@keyframes idbsFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

/* content */
.idbs-hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 20px;
  max-width: 860px;
}

.idbs-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, .36);
  background: rgba(23, 28, 84, .30);
  border-radius: 999px;
  color: #E0F8FF;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.idbs-hero__kicker i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 0 5px rgba(66, 185, 102, .18);
}

.idbs-hero__content h1 {
  margin: 0 0 18px;
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 6vw, 66px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
  text-shadow: 0 10px 35px rgba(13, 20, 75, .26);
}
.idbs-hero__content h1 span { color: #83DF98; }

.idbs-hero__content p {
  margin: 0 auto 30px;
  max-width: 620px;
  color: #E7F4FF;
  font-size: clamp(15px, 2vw, 19px);
  line-height: 1.6;
}

.idbs-hero__buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.idbs-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.idbs-hero__btn:hover { transform: translateY(-3px); }
.idbs-hero__btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-green), var(--brand-green-dk));
  box-shadow: 0 13px 30px rgba(14, 65, 39, .28);
}
.idbs-hero__btn--secondary {
  color: var(--brand-indigo-dk);
  background: #fff;
  border: 2px solid #fff;
}
.idbs-hero__btn--secondary:hover {
  background: #fff;
  color: var(--brand-blue);
  box-shadow: 0 13px 30px rgba(0, 0, 0, .22);
}

/* slide dots */
.idbs-hero__dots {
  position: absolute;
  bottom: 26px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 9px;
}
.idbs-hero__dots i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .42);
  cursor: pointer;
  transition: width .3s ease, background .3s ease;
}
.idbs-hero__dots i.is-active {
  width: 28px;
  background: linear-gradient(90deg, var(--brand-green), var(--brand-cyan));
}

@media (max-width: 820px) {
  .idbs-hero { height: 500px; min-height: 500px; }
  .idbs-hero__tech { display: none; }
  .idbs-hero__circuit::before,
  .idbs-hero__circuit::after { display: none; }
}


/* =====================================================================
   9. MEGA MENU WIDGETS
   Ported from the reference design (course_institution_home_no_arrows.html):
   .nav-item / .has-mega / .mega-menu / .mega-intro / .mega-links /
   .mega-feature / .compact-mega — same structure, same proportions.
   Only addition: category thumbnails inside .mega-links i.
   ===================================================================== */

.nav-menu { gap: 1px; overflow: visible; }

.nav-item {
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
}

/* ---- top-level pill (reference .academy-nav .nav-item>a) ---- */
.nav-menu .nav-item > a {
  height: 46px;
  padding: 0 12px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #27324B;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.012em;
  position: relative;
  transition: background .2s, color .2s, transform .2s;
}
.nav-menu .nav-item > a::after { display: none; }

.nav-menu .nav-item > a:hover,
.nav-menu .nav-item:hover > a,
.nav-menu .nav-item:focus-within > a {
  color: #1F843E;
  background: #ECF9F0;
  box-shadow: inset 0 0 0 1px rgba(66, 185, 102, .22);
  transform: translateY(-1px);
}

.nav-menu .nav-item > a.active { color: #1F843E; background: #ECF9F0; }
.nav-menu .nav-item > a.active::before {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 5px;
  height: 2px;
  border-radius: 4px;
  background: linear-gradient(90deg, #42B966, #27984C);
}

/* icon chip */
.nav-icon {
  width: 23px;
  height: 23px;
  flex-shrink: 0;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: #EEF2FF;
  color: #292A96;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  transition: .2s;
}
.nav-item:hover .nav-icon,
.nav-item:focus-within .nav-icon,
.nav-menu a.active .nav-icon {
  color: #fff;
  background: linear-gradient(145deg, #42B966, #27984C);
  box-shadow: 0 5px 12px rgba(39, 152, 76, .22);
}

.chev { font-size: 14px; color: #42B966; transition: transform .2s; }
.nav-item:hover .chev,
.nav-item:focus-within .chev { transform: rotate(180deg); color: #27984C; }

/* ---- the panel (reference .mega-menu) ---- */
.mega-menu {
  position: absolute;
  top: calc(100% - 3px);
  left: 50%;
  transform: translate(-50%, 12px);
  width: 710px;
  padding: 13px;
  border: 1px solid #E1E7F1;
  border-radius: 20px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 24px 70px rgba(23, 28, 84, .18);
  display: grid;
  grid-template-columns: 1.05fr 1.5fr .9fr;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: .22s;
  z-index: 10000;
}

.nav-item:hover > .mega-menu,
.nav-item:focus-within > .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 4px);
}

.mega-menu::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 13px;
  height: 13px;
  background: #fff;
  border-left: 1px solid #E1E7F1;
  border-top: 1px solid #E1E7F1;
  transform: translateX(-50%) rotate(45deg);
}

/* the programs panel carries thumbnails, so it needs a little more room */
.programs-mega { width: 900px; }

/* ---- column 1: dark intro card ---- */
.mega-intro {
  position: relative;
  padding: 22px;
  border-radius: 15px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(8, 169, 212, .32), transparent 30%),
    linear-gradient(145deg, #171C54, #292A96);
}
.mega-symbol {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, .12);
  color: #7FE4F5;
  font-size: 18px;
}
.mega-intro small {
  display: block;
  margin-top: 17px;
  color: #82DDF0;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .16em;
}
.mega-intro h3 { margin: 5px 0 7px; font-size: 20px; color: #fff; font-weight: 800; }
.mega-intro p  { margin: 0 0 13px; color: #D9E2F5; font-size: 12px; line-height: 1.55; }
.mega-intro > a { color: #8EE6A2; font-size: 12px; font-weight: 900; }

/* ---- column 2: the link grid ---- */
.mega-links { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; align-content: start; }

.mega-links > a,
.compact-mega > a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border-radius: 13px;
  color: #27324B;
  text-decoration: none;
  transition: .18s;
}
.mega-links > a:hover,
.compact-mega > a:hover { background: #ECF9F0; color: #1F843E; transform: translateX(2px); }

.mega-links i,
.compact-mega i {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #EEF2FF, #E5FAF0);
  color: #292A96;
  font-style: normal;
  font-size: 16px;
  font-weight: 900;
}
.mega-links > a:hover i,
.compact-mega > a:hover i {
  background: linear-gradient(145deg, #42B966, #27984C);
  color: #fff;
}

/* thumbnail sits inside the same 36px chip */
.mega-links i img,
.compact-mega i img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.mega-links > a:hover i img { transform: scale(1.1); }

.mega-links span,
.compact-mega span { display: flex; flex-direction: column; min-width: 0; }
.mega-links b, .compact-mega b { font-size: 12px; font-weight: 800; }
.mega-links small, .compact-mega small { font-size: 10px; color: #77839A; margin-top: 2px; }

/* ---- column 3: feature card ---- */
.mega-feature {
  padding: 19px;
  border-radius: 15px;
  background: linear-gradient(145deg, #EFFAF3, #E8F8FE);
  border: 1px solid #D9EFE3;
}
.mega-feature > span {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: #facc15;          /* same yellow as the rating stars */
  font-size: 8px;
  letter-spacing: .15em;
  color: #171C54;
  font-weight: 900;
  text-transform: uppercase;
}
.mega-feature__img {
  display: block;
  width: 100%;
  height: 92px;
  margin-top: 9px;
  border-radius: 11px;
  overflow: hidden;
  background: linear-gradient(145deg, #292A96, #08A9D4);
}
.mega-feature__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mega-feature strong { display: block; font-size: 14px; line-height: 1.35; color: #171C54; margin: 7px 0; }
.mega-feature p { font-size: 11px; color: #64748B; margin: 0 0 8px; line-height: 1.5; }
.mega-feature a { font-size: 11px; color: #1663B7; font-weight: 900; text-decoration: none; }

/* ---- compact single-column panels ---- */
.compact-mega {
  display: flex;
  flex-direction: column;
  gap: 4px;
  grid-template-columns: none;
  width: 330px;
  padding: 11px;
}
.compact-mega::before { left: 40px; }

/* "Soon" placeholders */
.mega-links > a.is-soon,
.compact-mega > a.is-soon { cursor: default; opacity: .6; }
.mega-links > a.is-soon:hover,
.compact-mega > a.is-soon:hover { background: #F3F7FF; color: #27324B; transform: none; }
.mega-links > a.is-soon:hover i,
.compact-mega > a.is-soon:hover i { background: linear-gradient(145deg, #EEF2FF, #E5FAF0); color: #292A96; }
.mega-soon {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #E4E9F3;
  color: #77839A;
  font-size: 8.5px;
  font-weight: 900;
  font-style: normal;
  letter-spacing: .06em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* ---- keep panels inside the viewport on mid-size screens ---- */
@media (max-width: 1300px) {
  .programs-mega { width: min(900px, calc(100vw - 40px)); }
  .mega-menu     { width: min(710px, calc(100vw - 40px)); }
}

/* ---- mobile: panels flatten into the drawer ---- */
@media (max-width: 992px) {
  .nav-menu { max-height: calc(100vh - var(--navbar-height) - 20px); overflow-y: auto; }
  .nav-item { display: block; height: auto; }
  .nav-menu .nav-item > a { height: auto; padding: 12px 20px; border-radius: 0; }

  .mega-menu,
  .programs-mega,
  .compact-mega {
    position: static;
    width: auto;
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    margin: 0 12px 10px;
    padding: 10px;
    border-radius: 12px;
    box-shadow: none;
    background: #F7FAFF;
  }
  .mega-menu::before { display: none; }
  .mega-intro   { display: none; }
  .mega-feature { display: none; }
  .mega-links   { grid-template-columns: 1fr 1fr; }
  .nav-item:hover > .mega-menu { transform: none; }
}

@media (max-width: 520px) {
  .mega-links { grid-template-columns: 1fr; }
}

/* =====================================================================
   10. FOOTER
   Ground stays true black (client's call); everything raised off it uses
   the deep indigo end of the brand ramp so the footer reads as part of
   the palette rather than "black plus neutral grey".
   ===================================================================== */
.ftr {
  --ftr-ink:      #FFFFFF;
  --ftr-body:     #AEB8CE;   /* cool, indigo-leaning — not a neutral grey */
  --ftr-muted:    #6F7B94;
  --ftr-line:     rgba(255, 255, 255, .10);
  --ftr-panel:    #0B0F2E;   /* raised surface */
  --ftr-link-hv:  #74E1F4;   /* the cyan already used in the header */
  --ftr-accent:   #42B966;

  background: #000;
  color: var(--ftr-body);
  padding: 64px 0 26px;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.7;
}

.ftr__inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

.ftr__grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1.3fr 1.6fr;
  gap: 44px;
  align-items: start;
}

/* ---------- brand block ---------- */
.ftr-brand__name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--ftr-ink);
  margin: 0;
}
.ftr-brand__rule { height: 1px; background: var(--ftr-line); margin: 14px 0; }

.ftr-brand__est { font-size: 12.5px; color: var(--ftr-muted); margin: 0 0 14px; }

.ftr-brand__blurb { margin: 0 0 16px; max-width: 42ch; }

.ftr-brand__tagline {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 16px;
  line-height: 1.5;
  color: #E7F4FF;
  margin: 0 0 20px;
  max-width: 30ch;
}

/* ---------- social ---------- */
.ftr-social { display: flex; gap: 10px; }
.ftr-social a {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 9px;
  border: 1px solid var(--ftr-line);
  color: var(--ftr-body);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.ftr-social a:hover { color: var(--ftr-ink); border-color: rgba(255,255,255,.30); background: rgba(255,255,255,.06); }
.ftr-social svg { width: 17px; height: 17px; display: block; }

/* ---------- column headings + lists ---------- */
.ftr-h {
  font-size: 13px;
  font-weight: 700;
  color: var(--ftr-ink);
  margin: 0 0 14px;
  letter-spacing: 0;
}

.ftr-list { list-style: none; margin: 0; padding: 0; }
.ftr-list li + li { margin-top: 9px; }
.ftr-list a, .ftr-contact a {
  color: var(--ftr-body);
  text-decoration: none;
  transition: color .2s ease;
}
.ftr-list a:hover, .ftr-contact a:hover {
  color: var(--ftr-link-hv);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- contact ---------- */
.ftr-contact { font-style: normal; margin: 0; }
.ftr-contact p { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 11px; }
.ftr-contact svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 4px; color: var(--ftr-muted); }

/* ---------- visitor strip ---------- */
.ftr-stats { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--ftr-line); }
.ftr-stats__row { display: flex; flex-wrap: wrap; gap: 18px 26px; }
.ftr-stat b {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--ftr-accent);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.ftr-stat span { font-size: 12px; color: var(--ftr-muted); }
.ftr-stat--total b { font-size: 22px; color: var(--ftr-ink); }

/* ---------- newsletter panel — the one raised surface ---------- */
.ftr-news {
  background: var(--ftr-panel);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 22px;
}
.ftr-news p { margin: 0 0 14px; font-size: 13.5px; color: var(--ftr-body); }
.ftr-news form { display: flex; flex-direction: column; gap: 10px; }
.ftr-news input {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-size: 14px;
  color: #171C54;
  background: #fff;
  border: 1px solid #D5DEEC;
  border-radius: 10px;
}
.ftr-news input::placeholder { color: #8A97AE; }
.ftr-news input:focus { outline: 2px solid var(--ftr-link-hv); outline-offset: 1px; border-color: transparent; }
.ftr-news button {
  padding: 11px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #171C54;
  background: #fff;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s ease;
}
.ftr-news button:hover { background: #E7F4FF; }
.ftr-news__msg { font-size: 13px; margin-bottom: 10px; }

/* ---------- baseline ---------- */
.ftr__base {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--ftr-line);
  text-align: center;
  font-size: 12.5px;
  color: var(--ftr-muted);
}
.ftr__base span { display: block; margin-top: 4px; }

@media (max-width: 1000px) {
  .ftr__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .ftr-brand { grid-column: 1 / -1; }
  .ftr-news  { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .ftr { padding: 48px 0 22px; }
  .ftr__grid { grid-template-columns: 1fr; gap: 32px; }
  .ftr-brand__name { font-size: 24px; }
}

/* =====================================================================
   11. HOME CTA — "Ready to turn your ambition into achievement?"
   Ported from the reference design's .cta / .cta-box: same 30px radius,
   same 62px padding, same corner ring, same brand gradient.
   Display face swapped to Playfair so it matches the hero.
   ===================================================================== */
.idbs-cta { padding: 64px 0 24px; }
.idbs-cta__inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

.idbs-cta__box {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 35px;
  padding: 62px;
  border-radius: 30px;
  color: #fff;
  background: linear-gradient(120deg, #171C54 0%, #292A96 48%, #1663B7 77%, #27984C 100%);
  box-shadow: 0 30px 80px rgba(7, 21, 43, .22);
}

/* the oversized corner ring from the reference */
.idbs-cta__box::after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  right: -95px;
  top: -115px;
  border-radius: 50%;
  border: 60px solid rgba(255, 255, 255, .035);
  pointer-events: none;
}

.idbs-cta__copy { position: relative; z-index: 2; }

.idbs-cta h2 {
  margin: 0 0 12px;
  max-width: 650px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: #fff;
}

.idbs-cta p {
  margin: 0;
  max-width: 560px;
  color: #B7CADC;
  font-size: 16px;
  line-height: 1.6;
}

.idbs-cta__actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

.idbs-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.idbs-cta__btn:hover { transform: translateY(-3px); }

.idbs-cta__btn--primary {
  color: #171C54;
  background: #fff;
  box-shadow: 0 13px 30px rgba(0, 0, 0, .22);
}
.idbs-cta__btn--primary:hover { background: #E7F4FF; }

.idbs-cta__btn--ghost {
  color: #fff;
  background: rgba(255, 255, 255, .10);
  border: 2px solid rgba(255, 255, 255, .55);
}
.idbs-cta__btn--ghost:hover { background: rgba(255, 255, 255, .18); border-color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .idbs-cta__btn, .idbs-cta__btn:hover { transition: none; transform: none; }
}

@media (max-width: 980px) {
  .idbs-cta__box { flex-direction: column; align-items: flex-start; }
  .idbs-cta h2 { font-size: 36px; }
}

@media (max-width: 620px) {
  .idbs-cta { padding: 44px 0 16px; }
  .idbs-cta__box { padding: 38px 25px; border-radius: 22px; }
  .idbs-cta h2 { font-size: 30px; }
  .idbs-cta__box::after { display: none; }
  .idbs-cta__actions { width: 100%; }
  .idbs-cta__btn { flex: 1; }
}

/* =====================================================================
   12. SECTION PANELS
   The hero's background language — brand-tinted radial blooms over a
   gradient, with a masked grid on top — dialled right down so it reads
   as a tint behind content rather than decoration competing with it.
   ===================================================================== */

.idbs-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 6%,  rgba(8, 169, 212, .075), transparent 26%),
    radial-gradient(circle at 4% 94%,  rgba(66, 185, 102, .065), transparent 24%),
    linear-gradient(#FFFFFF, #F2F7FD);
}

/* same masked grid as the hero, at a fraction of the contrast */
.idbs-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(41, 42, 150, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 42, 150, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(circle, #000, transparent 72%);
          mask-image: radial-gradient(circle, #000, transparent 72%);
}

/* alternate: gradient runs the other way so stacked panels don't band */
.idbs-panel--alt {
  background:
    radial-gradient(circle at 8% 8%,   rgba(41, 42, 150, .07), transparent 26%),
    radial-gradient(circle at 92% 88%, rgba(8, 169, 212, .07), transparent 26%),
    linear-gradient(#F2F7FD, #FFFFFF);
}

/* plain white section that still carries the blooms, no grid */
.idbs-panel--clean {
  background:
    radial-gradient(circle at 92% 12%, rgba(8, 169, 212, .06), transparent 24%),
    radial-gradient(circle at 6% 88%,  rgba(66, 185, 102, .05), transparent 22%),
    #FFFFFF;
}
.idbs-panel--clean::before { display: none; }

/* dark band — the hero treatment at full strength, for the stats strip */
.idbs-panel--dark {
  color: #fff;
  background:
    radial-gradient(circle at 50% 12%, rgba(8, 169, 212, .24), transparent 30%),
    radial-gradient(circle at 10% 88%, rgba(66, 185, 102, .18), transparent 28%),
    linear-gradient(120deg, #171C54 0%, #292A96 55%, #1663B7 100%);
}
.idbs-panel--dark::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
}

/* a hairline seam between stacked panels, so edges read as intentional */
.idbs-panel + .idbs-panel { border-top: 1px solid rgba(41, 42, 150, .07); }
