
    /* SIR Institutional Styles */

    * {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

:root {
    --sir-blue: #1f4e8c;
    --sir-emerald: #10b981;
    --sir-dark-blue: #123a6b;
    --sir-light-bg: #f8fafc;
    --sir-border: #e2e8f0;
    --slide-duration: 6000ms;
    --slide-speed:     700ms;

      /* Layer heights — single source of truth */
      --h-lang:   45px;
      --h-logo:   100px;
      --h-nav:    55px;
      --h-total:  200px; /* 45 + 100 + 55 */

      /* Mobile collapses logo bar */
      --h-mobile: 135px; /* 45 + 90 */
    }

    body {
      font-family: 'Montserrat', sans-serif;
      color: #2d3748;
      padding-top: var(--h-total); /* desktop offset */
    }

    h1, h2, h3, h4, h5, h6 {
      font-family: 'Montserrat', sans-serif;
      font-weight: 600;
    }

    /* ========== LAYER 1 — LANGUAGE TOPBAR ========== */
    .lang-topbar {
      background: #1e2b3c;
      color: white;
      height: var(--h-lang);
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 1030;
      border-bottom: 2px solid var(--sir-emerald);
    }

    .lang-topbar .inner {
      max-width: 1400px;
      margin: 0 auto;
      padding: 0 1.5rem;
      height: 100%;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .lang-globe {
      font-size: 1.1rem;
      color: rgba(255,255,255,0.7);
      margin-right: 0.5rem;
      flex-shrink: 0;
    }

    .lang-pills {
      display: flex;
      gap: 0.25rem;
      flex-wrap: nowrap;
      overflow: hidden;
    }

    .lang-pill {
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
      padding: 0.25rem 0.8rem;
      border-radius: 30px;
      background: rgba(255,255,255,0.1);
      color: rgba(255,255,255,0.9);
      text-decoration: none;
      font-size: 0.8rem;
      font-weight: 500;
      transition: all 0.2s;
      border: none;
      white-space: nowrap;
      cursor: pointer;
    }

    .lang-pill:hover,
    .lang-pill.active {
      background: var(--sir-emerald);
      color: white;
    }

    .lang-pill .lcode {
      font-size: 0.65rem;
      opacity: 0.7;
      text-transform: uppercase;
      margin-left: 0.25rem;
    }

    .lang-dropdown-wrap {
      margin-left: auto;
      flex-shrink: 0;
    }

    .lang-dropdown-btn {
      background: rgba(255,255,255,0.1);
      border: none;
      color: white;
      padding: 0.25rem 0.9rem;
      border-radius: 30px;
      font-size: 0.8rem;
      display: flex;
      align-items: center;
      gap: 0.25rem;
      cursor: pointer;
      transition: all 0.2s;
      white-space: nowrap;
    }

    .lang-dropdown-btn:hover {
      background: var(--sir-emerald);
    }

    .lang-dropdown-menu {
      width: 280px;
      padding: 0.5rem 0;
    }

    .lang-dropdown-search {
      padding: 0.75rem;
    }

    .lang-dropdown-search input {
      width: 100%;
      padding: 0.5rem;
      border: 1px solid var(--sir-border);
      border-radius: 4px;
      font-size: 0.9rem;
    }

    .lang-item {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.5rem 1rem;
      cursor: pointer;
      transition: all 0.2s;
    }

    .lang-item:hover {
      background: var(--sir-light-bg);
    }

    .lang-item .lang-code {
      font-size: 0.7rem;
      font-weight: 600;
      color: #94a3b8;
      min-width: 35px;
    }

    /* Hide Google Translate branding */
    .goog-logo-link,
    .goog-te-gadget span { display: none !important; }
    .goog-te-gadget      { color: transparent !important; font-size: 0 !important; }
    .goog-te-combo       { display: none; }
    #google_translate_element { display: none; }

    /* ========== LAYER 2 — LOGO BAR ========== */
    .logo-bar {
      background: white;
      height: var(--h-logo);
      position: fixed;
      top: var(--h-lang);
      left: 0;
      width: 100%;
      z-index: 1029;
      border-bottom: 1px solid var(--sir-border);
    }

    .logo-bar .inner {
      max-width: 1400px;
      margin: 0 auto;
      padding: 0 1.5rem;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
    }

    .sir-logo-wrap {
      display: flex;
      align-items: center;
      gap: 1rem;
      text-decoration: none;
      flex-shrink: 0;
    }

    .sir-logo-img {
  height: 170px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

    .sir-logo-text-wrap {
      display: flex;
      flex-direction: column;
    }

    .sir-logo-name {
      font-family: 'Montserrat', sans-serif;
      font-weight: 700;
      color: var(--sir-blue);
      font-size: 1.3rem;
      line-height: 1.2;
    }

    .sir-logo-tagline {
      font-size: 0.75rem;
      color: #6c757d;
    }

    .logo-bar-right {
      display: flex;
      align-items: center;
      gap: 1rem;
      flex-shrink: 0;
    }

    .header-search {
      position: relative;
      display: flex;
      align-items: center;
    }

    .header-search i {
      position: absolute;
      left: 12px;
      color: #94a3b8;
      font-size: 0.9rem;
      z-index: 1;
    }

    .header-search input {
      padding: 0.6rem 1rem 0.6rem 2.2rem;
      border: 1px solid var(--sir-border);
      border-radius: 30px;
      font-size: 0.9rem;
      width: 260px;
      transition: all 0.2s;
    }

    .header-search input:focus {
      outline: none;
      border-color: var(--sir-blue);
      box-shadow: 0 0 0 3px rgba(31,78,140,0.1);
    }

    .sir-cta-btn {
      background: var(--sir-blue);
      color: white;
      padding: 0.6rem 1.25rem;
      border-radius: 4px;
      font-weight: 600;
      font-size: 0.9rem;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      transition: all 0.3s;
      white-space: nowrap;
    }

    .sir-cta-btn:hover {
      background: var(--sir-dark-blue);
      color: white;
    }
/* Logo Container Styles */
.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sir-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-main {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f4e8c;
  letter-spacing: -0.3px;
}

.logo-tagline {
  font-size: 0.7rem;
  font-weight: 600;
  color: #10b981;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

.logo-tagline::before {
  content: "✓";
  margin-right: 4px;
  font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .logo-container {
    gap: 8px;
  }

  .sir-logo-img {
    width: 35px;
    height: 35px;
  }

  .logo-main {
    font-size: 1rem;
  }

  .logo-tagline {
    font-size: 0.6rem;
  }
}

@media (max-width: 480px) {
  .logo-main {
    font-size: 0.85rem;
  }

  .logo-tagline {
    font-size: 0.55rem;
  }
}

    /* ========== LAYER 3 — MAIN NAVBAR ========== */
    .sir-navbar {
      background: white;
      height: var(--h-nav);
      position: fixed;
      top: calc(var(--h-lang) + var(--h-logo));
      left: 0;
      width: 100%;
      z-index: 1028;
      border-bottom: 3px solid var(--sir-blue);
      box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

    .sir-navbar .inner {
      max-width: 1400px;
      margin: 0 auto;
      padding: 0 1.5rem;
      height: 100%;
    }

    .nav-list {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      align-items: center;
      gap: 0.35rem;
      height: 100%;
      flex-wrap: nowrap;
      overflow: hidden;
    }

    .nav-item {
      position: relative;
      height: 100%;
      display: flex;
      align-items: center;
      flex-shrink: 0;
    }

    .nav-link-btn {
      background: #2d3748;
      border: none;
      color: white;
      font-weight: 500;
      font-size: 0.88rem;
      padding: 0.4rem 0.85rem;
      border-radius: 7px;
      transition: all 0.2s;
      cursor: pointer;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
      white-space: nowrap;
    }

    .nav-link-btn:hover,
    .nav-link-btn.active {
      background: var(--sir-blue);
      color: white;
    }

    .nav-link-btn i { font-size: 0.8rem; }

    /* Dropdown */
    .nav-item.dropdown { position: relative; }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  min-width: 240px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s;
  z-index: 1050;
  pointer-events: none;
  border: 1px solid var(--sir-border);
}
    .nav-item.dropdown {
  position: relative;
}

.nav-item.dropdown:hover .nav-dropdown,
.nav-dropdown:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

    .nav-dropdown a {
      display: block;
      padding: 0.6rem 1.2rem;
      color: #2d3748;
      text-decoration: none;
      font-size: 0.9rem;
      transition: all 0.2s;
    }

    .nav-dropdown a:hover {
      background: var(--sir-light-bg);
      color: var(--sir-blue);
      padding-left: 1.5rem;
    }

    .nav-dropdown-divider {
      height: 1px;
      background: var(--sir-border);
      margin: 0.5rem 0;
    }

    .nav-auth {
      margin-left: auto;
      display: flex;
      gap: 0.5rem;
    }

    /* Mobile Toggle */
    .mobile-toggle {
      background: none;
      border: none;
      font-size: 1.8rem;
      color: var(--sir-blue);
      cursor: pointer;
      display: none;
      padding: 0;
      line-height: 1;
    }

    /* ========== MOBILE NAV DRAWER ========== */
    .mobile-nav {
      position: fixed;
      top: var(--h-mobile);
      left: -300px;
      width: 280px;
      height: calc(100vh - var(--h-mobile));
      background: white;
      box-shadow: 2px 0 10px rgba(0,0,0,0.1);
      transition: left 0.3s;
      z-index: 1040;
      overflow-y: auto;
      padding: 1rem;
    }

    .mobile-nav.active { left: 0; }

    /* Overlay when mobile nav is open */
    .mobile-nav-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.4);
      z-index: 1039;
      top: var(--h-mobile);
    }

    .mobile-nav-overlay.active { display: block; }

    .mobile-section-label {
      display: block;
      padding: 1rem 0 0.5rem;
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--sir-blue);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      border-bottom: 1px solid var(--sir-border);
      margin-bottom: 0.5rem;
    }

    .mobile-nav a {
      display: block;
      padding: 0.7rem 1rem;
      color: #2d3748;
      text-decoration: none;
      font-size: 0.95rem;
      border-radius: 6px;
      transition: all 0.2s;
    }

    .mobile-nav a:hover {
      background: var(--sir-light-bg);
      color: var(--sir-blue);
    }

    /* Mobile search bar (hidden on desktop) */
    .mobile-search-bar {
      display: none;
      padding: 0.6rem 1rem;
      background: var(--sir-light-bg);
      border-bottom: 1px solid var(--sir-border);
    }

    .mobile-search-bar .input-group {
      border-radius: 30px;
      overflow: hidden;
    }

    .mobile-search-bar input {
      border: 1px solid var(--sir-border);
      border-right: none;
      padding: 0.5rem 1rem;
      font-size: 0.9rem;
      background: white;
    }

    .mobile-search-bar input:focus {
      outline: none;
      box-shadow: none;
      border-color: var(--sir-blue);
    }

    .mobile-search-bar button {
      background: var(--sir-blue);
      border: none;
      color: white;
      padding: 0 1rem;
      cursor: pointer;
    }

    /* ========================================
       RESPONSIVE BREAKPOINTS
    ======================================== */

    /* ---- XL (≥1200px): full layout, wide search ---- */
    @media (min-width: 1200px) {
      .header-search input { width: 280px; }
    }

    /* ---- LG (992px–1199px): compact nav ---- */
    @media (min-width: 993px) and (max-width: 1199px) {
      .nav-link-btn { font-size: 0.82rem; padding: 0.35rem 0.65rem; }
      .header-search input { width: 200px; }
      .sir-cta-btn  { font-size: 0.85rem; padding: 0.55rem 1rem; }
    }

    /* ---- MD (768px–992px): hide desktop nav, show mobile toggle ---- */
    @media (max-width: 992px) {
      body { padding-top: var(--h-mobile); }

      /* Hide desktop-only elements */
      .sir-navbar     { display: none; }
      .lang-pill .lcode { display: none; }
      .header-search  { display: none; }
      .mobile-search-bar { display: block; }

      /* Show mobile toggle */
      .mobile-toggle  { display: block; }

      /* Logo bar shrinks */
      .logo-bar       { height: 90px; top: var(--h-lang); }
      .sir-logo-img   { height: 130px; }
    }

    /* ---- SM (576px–767px): slim lang bar ---- */
    @media (max-width: 768px) {
      .lang-pills       { display: none; }
      .sir-logo-tagline { display: none; }
      .sir-logo-img     { height: 100px; }
      .sir-cta-btn span { display: none; } /* hide text, keep icon */
      .sir-cta-btn      { padding: 0.6rem 0.85rem; }

      /* CTA icon-only on very small screens */
      .sir-cta-btn i    { font-size: 1.1rem; }
    }

    /* ---- XS (<480px): tightest layout ---- */
    @media (max-width: 480px) {
      :root { --h-lang: 40px; }
      .lang-topbar    { height: 40px; }
      .logo-bar       { height: 80px; top: 40px; }
      .lang-globe     { display: none; }
      .lang-dropdown-btn { padding: 0.2rem 0.7rem; font-size: 0.75rem; }
      .sir-logo-img   { height: 80px; }
    }

    /* ---- Existing button/badge/card styles (unchanged) ---- */
    .sir-btn-primary {
      background: var(--sir-blue);
      color: white;
      padding: 0.6rem 1.5rem;
      border-radius: 4px;
      font-weight: 600;
      font-size: 0.95rem;
      border: 2px solid var(--sir-blue);
      transition: all 0.3s;
      display: inline-block;
      text-decoration: none;
    }
    .sir-btn-primary:hover {
      background: var(--sir-dark-blue);
      border-color: var(--sir-dark-blue);
      color: white;
    }
    .sir-btn-outline {
      background: transparent;
      color: var(--sir-blue);
      padding: 0.6rem 1.5rem;
      border-radius: 4px;
      font-weight: 600;
      font-size: 0.95rem;
      border: 2px solid var(--sir-blue);
      transition: all 0.3s;
      display: inline-block;
      text-decoration: none;
    }
    .sir-btn-outline:hover {
      background: var(--sir-blue);
      color: white;
    }
    .sir-verified-badge {
      background: var(--sir-emerald);
      color: white;
      padding: 0.25rem 1rem;
      border-radius: 20px;
      font-size: 0.8rem;
      font-weight: 600;
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
    }
    .sir-hero {
      background: linear-gradient(135deg, var(--sir-blue) 0%, var(--sir-dark-blue) 100%);
      color: white;
      padding: 6rem 0;
      position: relative;
      overflow: hidden;
    }
    .sir-hero::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30 Z' fill='rgba(255,255,255,0.02)'/%3E%3C/svg%3E");
      background-size: 60px 60px;
      opacity: 0.3;
    }
    .sir-trust-bar {
      background: var(--sir-light-bg);
      padding: 3rem 0;
      border-top: 1px solid var(--sir-border);
      border-bottom: 1px solid var(--sir-border);
    }
    .sir-stat { text-align: center; }
    .sir-stat-number {
      font-size: 2.5rem;
      font-weight: 700;
      color: var(--sir-blue);
      font-family: 'Montserrat', sans-serif;
      line-height: 1.2;
    }
    .sir-stat-label {
      color: #4a5568;
      font-weight: 500;
      font-size: 0.95rem;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .sir-section-header { text-align: center; margin-bottom: 8rem; }
    .sir-section-header h2 {
      font-size: 2.2rem;
      color: var(--sir-blue);
      margin-bottom: 1rem;
      position: relative;
      display: inline-block;
    }
    .sir-section-header h2:after {
      content: '';
      position: absolute;
      bottom: -10px;
      left: 50%;
      transform: translateX(-50%);
      width: 80px;
      height: 4px;
      background: var(--sir-emerald);
    }
    .sir-section-header .subtitle {
      color: var(--sir-emerald);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 2px;
      font-size: 0.9rem;
      display: block;
      margin-bottom: 0.5rem;
    }
    .sir-card {
      background: white;
      border: 1px solid var(--sir-border);
      border-radius: 8px;
      overflow: hidden;
      transition: all 0.3s;
      height: 100%;
    }
    .sir-card:hover {
      box-shadow: 0 10px 30px rgba(0,0,0,0.1);
      transform: translateY(-5px);
    }
    .sir-card-body { padding: 1.5rem; }
    .sir-icon-circle {
      width: 70px;
      height: 70px;
      background: rgba(31, 78, 140, 0.1);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 1.5rem;
    }
    .sir-icon-circle i { font-size: 2rem; color: var(--sir-blue); }
    .sir-step { text-align: center; position: relative; }
    .sir-step-number {
      width: 60px;
      height: 60px;
      background: var(--sir-blue);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 1rem;
      color: white;
      font-weight: 700;
      font-size: 1.5rem;
      border: 3px solid white;
      box-shadow: 0 5px 15px rgba(31, 78, 140, 0.2);
    }
    .sir-footer {
      background: #1a2b3c;
      color: white;
      padding: 4rem 0 2rem;
    }
    .sir-footer a {
      color: #a0c0e0;
      text-decoration: none;
      transition: color 0.3s;
    }
    .sir-footer a:hover { color: white; }
    .sir-footer h4 {
      color: white;
      font-size: 1.1rem;
      margin-bottom: 1.5rem;
      text-transform: uppercase;
      letter-spacing: 1px;
    }


    /* Hero Section */


/* ── Container ── */
.sir-hero-slider {
  position: relative;
  height: 88vh;
  min-height: 620px;
  max-height: 960px;
  overflow: hidden;
  background: #0a1628;
}

/* ── Track ── */
.hero-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ── Individual slide ── */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity var(--slide-speed) ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* Ken-Burns zoom on active slide */
.hero-slide.active {
  animation: kenBurns calc(var(--slide-duration) + var(--slide-speed)) ease forwards;
}

@keyframes kenBurns {
  from { transform: scale(1.0); }
  to   { transform: scale(1.07); }
}

/* ── Dark overlay ── */
.slide-overlay {
  position: absolute;
  inset: 0;
  /* Rich layered gradient: heavy left-bottom, lighter right */
  background:
    linear-gradient(
      105deg,
      rgba(10, 22, 40, 0.82) 0%,
      rgba(10, 22, 40, 0.55) 55%,
      rgba(10, 22, 40, 0.25) 100%
    );
}

/* ── Content wrapper ── */
.slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 2rem;
  padding-bottom: 5rem; /* space for bottom bar */
}

/* ── Eyebrow tag ── */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--sir-emerald);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.35rem 1rem;
  border-radius: 3px;
  margin-bottom: 1.25rem;

  /* Stagger animation */
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
}

.hero-slide.active .hero-eyebrow {
  opacity: 1;
  transform: translateY(0);
}

/* ── Headline ── */
.hero-headline {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: white;
  line-height: 1.12;
  margin-bottom: 1.2rem;

  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease 0.2s, transform 0.55s ease 0.2s;
}

.hero-headline em {
  font-style: normal;
  color: var(--sir-emerald);
}

.hero-slide.active .hero-headline {
  opacity: 1;
  transform: translateY(0);
}

/* ── Sub-copy ── */
.hero-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 2rem;

  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease 0.32s, transform 0.55s ease 0.32s;
}

.hero-slide.active .hero-sub {
  opacity: 1;
  transform: translateY(0);
}

/* ── CTA Buttons ── */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;

  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease 0.44s, transform 0.5s ease 0.44s;
}

.hero-slide.active .hero-actions {
  opacity: 1;
  transform: translateY(0);
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--sir-blue);
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: 2px solid var(--sir-blue);
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
  white-space: nowrap;
}

.hero-btn-primary:hover {
  background: var(--sir-dark-blue);
  border-color: var(--sir-dark-blue);
  color: white;
  transform: translateY(-2px);
}

.hero-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: white;
  padding: 0.7rem 1.4rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.55);
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
  white-space: nowrap;
}

.hero-btn-ghost:hover {
  border-color: white;
  background: rgba(255,255,255,0.1);
  color: white;
  transform: translateY(-2px);
}

/* ── Bottom bar ── */
.hero-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.75rem 0;
  background: rgba(10, 22, 40, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.08);
  z-index: 10;
}

/* ── Dots ── */
.hero-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-dot {
  position: relative;
  width: 36px;
  height: 4px;
  border-radius: 2px;
  border: none;
  background: rgba(255,255,255,0.25);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.3s;
}

.hero-dot.active {
  background: rgba(255,255,255,0.35);
  width: 52px;
}

.dot-progress {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 0%;
  background: var(--sir-emerald);
  border-radius: 2px;
}

.hero-dot.active .dot-progress {
  animation: dotFill var(--slide-duration) linear forwards;
}

@keyframes dotFill {
  from { width: 0%; }
  to   { width: 100%; }
}

/* ── Counter ── */
.hero-counter {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

#heroCurrentSlide {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--sir-emerald);
}

.hero-counter .sep,
.hero-counter .total {
  color: rgba(255,255,255,0.45);
}

/* ── Prev / Next ── */
.hero-nav {
  display: flex;
  gap: 0.4rem;
}

.hero-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.35);
  background: transparent;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s;
  font-size: 0.9rem;
}

.hero-nav-btn:hover {
  background: var(--sir-emerald);
  border-color: var(--sir-emerald);
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 991px) {
  .sir-hero-slider {
    height: 80vh;
    min-height: 560px;
  }

  .slide-content {
    padding-bottom: 4.5rem;
  }
}

@media (max-width: 767px) {
  .sir-hero-slider {
    height: auto;
    min-height: 640px;
    max-height: none;
  }

  .slide-content {
    padding-top: 3rem;
    padding-bottom: 5rem;
    justify-content: flex-end;
  }

  /* On mobile, overlay is heavier so text pops */
  .slide-overlay {
    background: linear-gradient(
      180deg,
      rgba(10, 22, 40, 0.25) 0%,
      rgba(10, 22, 40, 0.80) 60%,
      rgba(10, 22, 40, 0.92) 100%
    );
  }

  .hero-headline {
    font-size: clamp(1.75rem, 7vw, 2.4rem);
  }

  .hero-sub {
    font-size: 0.9rem;
    max-width: 100%;
  }

  .hero-btn-primary,
  .hero-btn-ghost {
    padding: 0.6rem 1.1rem;
    font-size: 0.85rem;
  }

  .hero-dot       { width: 28px; }
  .hero-dot.active{ width: 40px; }
  .hero-nav-btn   { width: 32px; height: 32px; }
}

@media (max-width: 480px) {
  .hero-counter { display: none; } /* too cramped on xs */
}


/* ============================================================
   SCROLL-TRIGGERED ANIMATION ENGINE — pure CSS + tiny JS
============================================================ */

.anim-item {
  opacity: 0;
  transition-duration: 0.65s;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0ms);
  transition-property: opacity, transform;
  will-change: opacity, transform;
}

/* FROM positions */
.anim-fade-up    { transform: translateY(45px); }
.anim-slide-left  { transform: translateX(-55px); }
.anim-slide-right { transform: translateX(55px); }

/* TO position — triggered by JS adding .is-visible */
.anim-item.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}


/* ============================================================
   SECTION 4 — HOW IT WORKS
============================================================ */

.sir-how-section {
  background: #f0f5fb;
  position: relative;
  overflow: hidden;
}

.sir-how-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(31,78,140,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,78,140,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.how-steps-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  margin-top: 1.5rem;
}

.how-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 200px;
  text-align: center;
  position: relative;
}

/* ── ICON BOX ── */
.how-step-icon-box {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 18px;
  background: white;
  border: 2px solid rgba(31,78,140,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--sir-blue, #1f4e8c);
  box-shadow: 0 6px 24px rgba(31,78,140,0.1);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
  z-index: 1;
}

/* Animated gradient border on hover */
.how-step-icon-box::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 21px;
  background: linear-gradient(135deg,
    var(--sir-blue, #1f4e8c),
    var(--sir-emerald, #10b981),
    var(--sir-blue, #1f4e8c)
  );
  background-size: 200% 200%;
  animation: gradBorder 3s ease infinite;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}

@keyframes gradBorder {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.how-step-icon-box:hover::after { opacity: 1; }

.how-step-icon-box:hover {
  background: var(--sir-blue, #1f4e8c);
  color: white;
  transform: translateY(-8px) scale(1.06);
  box-shadow: 0 20px 44px rgba(31,78,140,0.24);
  border-color: transparent;
}

/* Step number badge */
.step-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sir-emerald, #10b981);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid white;
  box-shadow: 0 3px 10px rgba(16,185,129,0.45);
  z-index: 2;
}

/* Connector line */
.how-step-connector {
  position: absolute;
  top: 40px;
  left: calc(50% + 40px);
  width: calc(100% - 80px);
  height: 2px;
  overflow: hidden;
}

.how-step-connector span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg,
    rgba(31,78,140,0.2) 0%,
    var(--sir-emerald, #10b981) 50%,
    rgba(31,78,140,0.2) 100%
  );
  background-size: 200% 100%;
  animation: connectorPulse 2.5s ease infinite;
}

@keyframes connectorPulse {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.how-step-connector--hidden { display: none; }

.how-step-body { margin-top: 1.1rem; padding: 0 0.5rem; }
.how-step-body h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: #1a2b3c;
  margin-bottom: 0.35rem;
}
.how-step-body p {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 991px) {
  .how-steps-wrap { flex-wrap: wrap; gap: 2rem 1rem; justify-content: center; }
  .how-step { max-width: 160px; }
  .how-step-connector { display: none; }
}

@media (max-width: 575px) {
  .how-steps-wrap { flex-direction: column; align-items: flex-start; gap: 0; padding: 0 0.5rem; }
  .how-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    max-width: 100%;
    gap: 1.25rem;
    padding-bottom: 2rem;
  }
  .how-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 39px;
    top: 80px;
    width: 2px;
    height: calc(100% - 80px);
    background: linear-gradient(180deg, rgba(31,78,140,0.25), rgba(16,185,129,0.4));
  }
  .how-step-body { margin-top: 0; }
}


/* ============================================================
   SECTION 5 — OUR CORE SERVICES
============================================================ */

.sir-services-section {
  background: white;
  position: relative;
}

.sir-services-section::before,
.sir-services-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.05;
}
.sir-services-section::before {
  width: 500px; height: 500px;
  background: var(--sir-blue, #1f4e8c);
  top: -100px; left: -100px;
}
.sir-services-section::after {
  width: 400px; height: 400px;
  background: var(--sir-emerald, #10b981);
  bottom: -80px; right: -80px;
}

/* ── Card ── */
.svc-card {
  position: relative;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 2rem 1.75rem 1.75rem;
  height: 100%;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.svc-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 55px rgba(31,78,140,0.1);
  border-color: rgba(31,78,140,0.18);
}

/* ── ICON BOX inside service card ── */
.svc-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: rgba(31,78,140,0.07);
  border: 1.5px solid rgba(31,78,140,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: var(--sir-blue, #1f4e8c);
  margin-bottom: 1.25rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.svc-card:hover .svc-icon-box {
  background: var(--sir-blue, #1f4e8c);
  color: white;
  border-color: transparent;
  transform: rotate(-6deg) scale(1.08);
  box-shadow: 0 8px 24px rgba(31,78,140,0.2);
}

/* ── Featured card ── */
.svc-card--featured {
  background: linear-gradient(145deg, var(--sir-blue, #1f4e8c) 0%, var(--sir-dark-blue, #123a6b) 100%);
  border-color: transparent;
}

.svc-card--featured h4 { color: white; }
.svc-card--featured p  { color: rgba(255,255,255,0.82); }

.svc-card--featured .svc-icon-box {
  background: rgba(255,255,255,0.15);
  color: white;
  border-color: rgba(255,255,255,0.2);
}
.svc-card--featured:hover .svc-icon-box {
  background: rgba(255,255,255,0.25);
}
.svc-card--featured .svc-features { border-top-color: rgba(255,255,255,0.15); }
.svc-card--featured .svc-features li { color: rgba(255,255,255,0.85); }
.svc-card--featured .svc-features li i { color: var(--sir-emerald, #10b981); }
.svc-card--featured .svc-link { color: var(--sir-emerald, #10b981); }
.svc-card--featured:hover {
  box-shadow: 0 28px 64px rgba(31,78,140,0.35);
  border-color: transparent;
}

.svc-featured-tag {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--sir-emerald, #10b981);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.28rem 0.75rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.svc-card h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #1a2b3c;
  margin-bottom: 0.6rem;
}

.svc-card p {
  font-size: 0.87rem;
  color: #64748b;
  line-height: 1.68;
  margin-bottom: 1.1rem;
}

.svc-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.07);
  padding-top: 1rem;
}

.svc-features li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.83rem;
  color: #4a5568;
  padding: 0.32rem 0;
}

.svc-features li i {
  color: var(--sir-emerald, #10b981);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sir-blue, #1f4e8c);
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}
.svc-link:hover { gap: 0.75rem; color: var(--sir-emerald, #10b981); }
.svc-link i { font-size: 0.8rem; transition: transform 0.2s; }
.svc-link:hover i { transform: translateX(4px); }


/* ── Legacy Section background ── */
.sir-legacy-section {
  background: var(--sir-blue, #1f4e8c);
  position: relative;
  overflow: hidden;
}

/* Subtle diagonal texture */
.sir-legacy-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30 Z' fill='rgba(255,255,255,0.025)'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  pointer-events: none;
}

/* ── Eyebrow tag ── */
.legacy-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.35rem 1rem;
  border-radius: 30px;
}

/* ── Lead text ── */
.legacy-lead {
  color: rgba(255,255,255,0.82);
  font-size: 1rem;
  line-height: 1.75;
}

/* ── CTA button ── */
.legacy-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  color: var(--sir-blue, #1f4e8c);
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid white;
}

.legacy-cta-btn:hover {
  background: transparent;
  color: white;
  border-color: white;
}

.legacy-cta-btn:hover .bi-arrow-right {
  transform: translateX(4px);
}

.legacy-cta-btn .bi-arrow-right {
  transition: transform 0.25s ease;
}

/* ── List container ── */
.legacy-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Individual list item ── */
.legacy-list-item {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.1rem 1.25rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
  cursor: default;
  position: relative;
}

/* Divider between items */
.legacy-list-item + .legacy-list-item::before {
  content: '';
  position: absolute;
  top: 0; left: 1.25rem; right: 1.25rem;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

.legacy-list-item:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}

.legacy-list-item:hover + .legacy-list-item::before {
  opacity: 0;
}

/* ── Icon box ── */
.legacy-list-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--sir-emerald, #10b981);
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.legacy-list-item:hover .legacy-list-icon {
  background: var(--sir-emerald, #10b981);
  color: white;
  border-color: transparent;
  transform: scale(1.1) rotate(-4deg);
}

/* ── Text body ── */
.legacy-list-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 0.1rem;
}

.legacy-list-body strong {
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
}

.legacy-list-body span {
  color: rgba(255,255,255,0.72);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .sir-legacy-section .col-lg-5 {
    text-align: center;
  }

  .legacy-eyebrow { margin: 0 auto; }

  .legacy-cta-btn { margin: 0 auto; }
}

@media (max-width: 575px) {
  .legacy-list-item { padding: 1rem; }
  .legacy-list-icon { width: 40px; height: 40px; font-size: 1rem; }
  .legacy-list-body strong { font-size: 0.9rem; }
  .legacy-list-body span   { font-size: 0.82rem; }
}

/* ========== CRITICAL MOBILE SLIDER FIX ========== */
@media (max-width: 767px) {
  /* Force the slider container to have explicit height */
  .sir-hero-slider {
    height: 600px !important;
    min-height: 600px !important;
    max-height: 600px !important;
    overflow: hidden !important;
    position: relative !important;
    display: block !important;
  }

  /* Ensure the track takes full height */
  .hero-track {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
  }

  /* Force each slide to be visible and have background image */
  .hero-slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    opacity: 0 !important;
    transition: opacity 0.7s ease !important;
    z-index: 1 !important;
    display: block !important;
  }

  /* Ensure the background-image is applied with high specificity */
  .hero-slide[style*="background-image"] {
    background-size: cover !important;
    background-position: center !important;
  }

  /* Active slide */
  .hero-slide.active {
    opacity: 1 !important;
    z-index: 10 !important;
  }

  /* Make sure overlay is above the background but below content */
  .slide-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(105deg, rgba(10,22,40,0.85) 0%, rgba(10,22,40,0.55) 55%, rgba(10,22,40,0.25) 100%) !important;
    z-index: 2 !important;
  }

  /* Content positioning */
  .slide-content {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 3 !important;
    display: flex !important;
    align-items: center !important;
    padding: 20px !important;
  }

  /* Ensure container inside content is properly sized */
  .slide-content .container {
    width: 100% !important;
    padding: 0 15px !important;
  }

  /* Responsive text sizes */
  .hero-headline {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 15px !important;
  }

  .hero-sub {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
    max-width: 100% !important;
  }

  .hero-eyebrow {
    font-size: 0.75rem !important;
    padding: 5px 12px !important;
    margin-bottom: 15px !important;
  }

  .hero-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .hero-btn-primary,
  .hero-btn-ghost {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 20px !important;
    font-size: 0.9rem !important;
  }

  /* Bottom bar adjustments */
  .hero-bar {
    padding: 10px 0 !important;
    z-index: 20 !important;
  }

  .hero-dot {
    width: 30px !important;
    height: 4px !important;
  }

  .hero-dot.active {
    width: 45px !important;
  }

  .hero-nav-btn {
    width: 32px !important;
    height: 32px !important;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .sir-hero-slider {
    height: 550px !important;
    min-height: 550px !important;
  }

  .hero-headline {
    font-size: 1.8rem !important;
  }

  .hero-sub {
    font-size: 0.85rem !important;
  }

  .hero-counter {
    display: none !important;
  }

  .hero-dot {
    width: 25px !important;
  }

  .hero-dot.active {
    width: 35px !important;
  }
}
