/* ==========================================================================
   1. DESIGN TOKENS & REUSABLE PROPERTIES (#01449D & White Brand System)
   ========================================================================== */
:root {
    /* Brand Palette */
    --brand-primary: #01449d;
    /* Core Brand Blue */
    --brand-primary-dark: #012b66;
    /* Deep Navy for contrast & hover */
    --brand-primary-mid: #013882;
    /* Rich Royal Blue */
    --brand-primary-light: #2568c9;
    /* Lighter Cobalt accent */
    --brand-accent-gold: #e6a82e;
    /* Warm sunflower accent from logo */

    /* Gradients */
    --brand-gradient: linear-gradient(135deg, #012b66 0%, #01449d 60%, #1a5ec2 100%);
    --surface-gradient: linear-gradient(180deg, #f4f8fe 0%, #ffffff 100%);

    /* Surfaces & Backgrounds */
    --bg-white: #ffffff;
    --surface-tint: #f2f6fc;
    /* Soft blue-white tint */
    --surface-tint-hover: #e3ecf9;

    /* Typography Colors */
    --text-dark: #0c1b33;
    --text-body: #3b485e;
    --text-muted: #64748b;

    /* Borders & Shadows */
    --border-subtle: rgba(1, 68, 157, 0.12);
    --border-strong: rgba(1, 68, 157, 0.24);
    --shadow-xs: 0 2px 8px rgba(1, 43, 102, 0.06);
    --shadow-sm: 0 6px 18px rgba(1, 43, 102, 0.08);
    --shadow-md: 0 12px 32px rgba(1, 43, 102, 0.12);
    --shadow-lg: 0 22px 48px rgba(1, 43, 102, 0.16);

    /* Fonts */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Radii & Transitions */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-pill: 999px;
    --transition-base: all 0.28s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Spacing */
    --section-py: 5rem;

    /* Multi-Layered Premium Box Shadows (#01449D Tinted) */
    --shadow-xs: 0 2px 6px rgba(1, 43, 102, 0.04), 0 6px 16px rgba(1, 68, 157, 0.06);
    --shadow-sm: 0 4px 12px rgba(1, 43, 102, 0.05), 0 14px 30px rgba(1, 68, 157, 0.09);
    --shadow-md: 0 8px 20px rgba(1, 43, 102, 0.07), 0 22px 46px rgba(1, 68, 157, 0.14);
    --shadow-lg: 0 14px 30px rgba(1, 43, 102, 0.10), 0 32px 68px rgba(1, 68, 157, 0.20);
    --shadow-glow: 0 12px 32px rgba(1, 68, 157, 0.28);
}

/* ==========================================================================
   2. BASE & REUSABLE UTILITY CLASSES (Shared Across All Sections)
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-body);
    background-color: var(--bg-white);
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.24;
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--brand-primary-dark);
}

.section-padding {
    padding: var(--section-py) 0;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--brand-primary);
    background: var(--surface-tint);
    border: 1px solid var(--border-subtle);
    padding: 0.42rem 1.05rem;
    border-radius: var(--radius-pill);
}

/* Reusable Primary & Outline Buttons (for upcoming sections) */
.btn-brand-primary {
    background: var(--brand-gradient);
    color: var(--bg-white);
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.72rem 1.65rem;
    box-shadow: 0 8px 22px rgba(1, 68, 157, 0.28);
    transition: var(--transition-base);
}

.btn-brand-primary:hover,
.btn-brand-primary:focus {
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(1, 68, 157, 0.36);
    filter: brightness(1.06);
}

.btn-brand-outline {
    background: var(--bg-white);
    color: var(--brand-primary);
    border: 1.5px solid var(--brand-primary);
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.68rem 1.65rem;
    transition: var(--transition-base);
}

.btn-brand-outline:hover {
    background: var(--brand-primary);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   3. TOP UTILITY BAR
   ========================================================================== */
.top-utility-bar {
    background: var(--brand-gradient);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.8rem;
    padding: 0.5rem 0;
    letter-spacing: 0.01em;
}

.utility-tagline {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 500;
}

.utility-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--brand-accent-gold);
    box-shadow: 0 0 0 3px rgba(230, 168, 46, 0.25);
    display: inline-block;
}

.utility-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.utility-link:hover {
    color: var(--bg-white);
}

.utility-socials a {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: var(--bg-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
}

.utility-socials a:hover {
    background: var(--bg-white);
    color: var(--brand-primary-dark);
    transform: translateY(-1px);
}

/* ==========================================================================
   4. STICKY PREMIUM HEADER
   ========================================================================== */
.site-header {
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-xs);
    transition: var(--transition-base);
    z-index: 1030;
}

.site-header .navbar {
    padding: 0.65rem 0;
    transition: var(--transition-base);
}

/* Scrolled Sticky State (Frosted Glass & Compact) */
.site-header.is-scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-md);
    border-bottom-color: rgba(1, 68, 157, 0.1);
}

.site-header.is-scrolled .navbar {
    padding: 0.4rem 0;
}

/* Prominent & Clear Logo */
.brand-logo {
    height: 90px;
    width: 90px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--bg-white);
    box-shadow: 0 6px 18px rgba(1, 43, 102, 0.12);
    transition: var(--transition-base);
    display: block;
}

.brand-logo:hover {
    transform: scale(1.04);
    box-shadow: 0 10px 24px rgba(1, 68, 157, 0.22);
}

.site-header.is-scrolled .brand-logo {
    height: 68px;
    width: 68px;
}

/* Desktop Navigation Links */
.site-header .nav-link {
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--text-dark);
    padding: 0.55rem 1.05rem !important;
    border-radius: var(--radius-pill);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition-base);
}

.site-header .nav-link:hover,
.site-header .nav-link.show {
    color: var(--brand-primary);
    background-color: var(--surface-tint);
}

.site-header .nav-link.active {
    color: var(--brand-primary);
    background-color: var(--surface-tint);
    box-shadow: inset 0 0 0 1px var(--border-strong);
}

/* Sleek Font Awesome Chevron */
.no-default-caret::after {
    display: none !important;
}

.nav-caret {
    font-size: 0.68rem;
    color: var(--text-muted);
    transition: transform 0.25s ease, color 0.25s ease;
    margin-top: 1px;
}

.nav-item.dropdown:hover .nav-caret,
.nav-link.show .nav-caret {
    transform: rotate(180deg);
    color: var(--brand-primary);
}

/* Premium Dropdown Menu */
.premium-dropdown {
    min-width: 300px;
    padding: 0.7rem;
    margin-top: 0.65rem !important;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    background: var(--bg-white);
    animation: dropdownFadeIn 0.22s ease forwards;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.premium-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.7rem 0.85rem;
    border-radius: var(--radius-sm);
    white-space: normal;
    transition: var(--transition-base);
}

.premium-dropdown .dropdown-item:hover,
.premium-dropdown .dropdown-item:focus {
    background-color: var(--surface-tint);
    color: var(--brand-primary-dark);
    transform: translateX(3px);
}

.premium-dropdown .dd-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background-color: var(--surface-tint);
    color: var(--brand-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.98rem;
    transition: var(--transition-base);
}

.premium-dropdown .dropdown-item:hover .dd-icon {
    background: var(--brand-gradient);
    color: var(--bg-white);
    box-shadow: 0 4px 12px rgba(1, 68, 157, 0.28);
}

.premium-dropdown .dropdown-item strong {
    display: block;
    font-size: 0.91rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.25;
}

.premium-dropdown .dropdown-item small {
    display: block;
    font-size: 0.77rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Enable Hover Dropdowns on Desktop */
@media (min-width: 992px) {
    .site-header .nav-item.dropdown:hover>.dropdown-menu {
        display: block;
    }
}

/* ==========================================================================
   5. MOBILE HAMBURGER TOGGLER & OFFCANVAS DRAWER
   ========================================================================== */
.custom-toggler {
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.7rem;
    background: var(--surface-tint);
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: var(--transition-base);
}

.custom-toggler:focus {
    box-shadow: 0 0 0 3px rgba(1, 68, 157, 0.22);
}

.toggler-line {
    display: block;
    width: 22px;
    height: 2.2px;
    background-color: var(--brand-primary-dark);
    border-radius: 2px;
    transition: var(--transition-base);
}

.custom-toggler:hover .toggler-line:nth-child(2) {
    width: 15px;
}

/* Offcanvas Drawer */
.mobile-nav-drawer {
    width: 320px !important;
    max-width: 86vw;
    border-left: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg);
}

.mobile-nav-drawer .offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--surface-gradient);
}

.mobile-drawer-logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: contain;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    display: block;
}

.btn-close-custom {
    margin-left: auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: var(--bg-white);
    color: var(--brand-primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    box-shadow: var(--shadow-xs);
    transition: var(--transition-base);
}

.btn-close-custom:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: var(--bg-white);
    transform: rotate(90deg);
}

.mobile-nav-drawer .offcanvas-body {
    padding: 1.15rem 1.2rem;
}

.mobile-nav-list>li {
    margin-bottom: 0.2rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.8rem 0.95rem;
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--text-dark);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    text-align: left;
    transition: var(--transition-base);
}

.mobile-nav-link span {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.mobile-item-icon {
    width: 18px;
    text-align: center;
    color: var(--brand-primary-light);
    font-size: 0.9rem;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: var(--surface-tint);
    color: var(--brand-primary);
}

.mobile-nav-link.active .mobile-item-icon {
    color: var(--brand-primary);
}

.mobile-collapse-btn .chevron-icon {
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: transform 0.25s ease;
}

.mobile-collapse-btn[aria-expanded="true"] .chevron-icon {
    transform: rotate(180deg);
    color: var(--brand-primary);
}

.mobile-sublist {
    padding: 0.25rem 0 0.5rem 0.85rem;
    border-left: 2px solid var(--surface-tint-hover);
    margin: 0.15rem 0 0.35rem 1.45rem;
}

.mobile-sublist a {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-body);
    border-radius: var(--radius-sm);
}

.mobile-sublist a:hover {
    color: var(--brand-primary);
    background: var(--surface-tint);
}

.mobile-drawer-footer {
    padding-top: 1.1rem;
    border-top: 1px solid var(--border-subtle);
}

.mobile-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--surface-tint);
    border: 1px solid var(--border-subtle);
    color: var(--brand-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mobile-socials a:hover {
    background: var(--brand-gradient);
    border-color: transparent;
    color: var(--bg-white);
    transform: translateY(-2px);
}

/* ==========================================================================
   6. RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 991.98px) {
    .brand-logo {
        height: 70px;
        width: 70px;
    }

    .site-header.is-scrolled .brand-logo {
        height: 58px;
        width: 58px;
    }
}

/* ==========================================================================
   7. PREMIUM FOOTER (Reuses Root Brand Tokens)
   ========================================================================== */
.site-footer {
    background: linear-gradient(160deg, var(--brand-primary-dark) 0%, var(--brand-primary-mid) 58%, var(--brand-primary) 100%);
    color: rgba(255, 255, 255, 0.84);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: "";
    display: block;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, var(--brand-primary-light) 0%, var(--brand-accent-gold) 50%, var(--brand-primary-light) 100%);
}

.footer-main {
    padding: 4.25rem 0 3rem;
}

.footer-logo {
    width: 74px;
    height: 74px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: contain;
    background: var(--bg-white);
    padding: 2px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    display: block;
}

.footer-brand-name {
    font-family: var(--font-heading);
    font-size: 1.28rem;
    font-weight: 700;
    color: var(--bg-white);
    line-height: 1.2;
}

.footer-brand-roles {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.45;
}

.footer-tagline {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.88);
    max-width: 340px;
}

.footer-aegis-badge {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.79rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.85rem;
}

.aegis-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-accent-gold);
    margin-top: 6px;
    flex-shrink: 0;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--bg-white);
    margin-bottom: 1.15rem;
    position: relative;
    padding-bottom: 0.55rem;
}

.footer-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand-accent-gold);
}

.footer-links li {
    margin-bottom: 0.58rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: var(--transition-base);
}

.footer-links a::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.7rem;
    color: var(--brand-accent-gold);
    opacity: 0.75;
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--bg-white);
    transform: translateX(4px);
}

.footer-links a:hover::before {
    opacity: 1;
}

.footer-connect-note {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.76);
    margin-bottom: 1rem;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.65rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.86);
}

.footer-contact i {
    width: 18px;
    text-align: center;
    color: var(--brand-accent-gold);
    font-size: 0.88rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.86);
}

.footer-contact a:hover {
    color: var(--bg-white);
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--bg-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: var(--transition-base);
}

.footer-socials a:hover {
    background: var(--bg-white);
    border-color: var(--bg-white);
    color: var(--brand-primary);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding: 1.25rem 0;
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.72);
}

.footer-motto {
    font-family: var(--font-heading);
    font-style: italic;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
}

.footer-motto i {
    color: var(--brand-accent-gold);
}

@media (max-width: 575.98px) {
    .footer-main {
        padding: 3.25rem 0 2.25rem;
    }

    .footer-logo {
        width: 62px;
        height: 62px;
    }
}

/* Shared Card & Icon Container (Elevated Resting & Hover Shadows) */
.premium-card {
  background: var(--bg-white);
  border: 1px solid rgba(1, 68, 157, 0.10);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.35s ease;
}

.premium-card:hover {
  border-color: rgba(1, 68, 157, 0.26);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.icon-box-brand {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(145deg, #f4f8ff 0%, #e6effc 100%);
  border: 1px solid rgba(1, 68, 157, 0.14);
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(1, 68, 157, 0.08);
  transition: var(--transition-base);
}

.premium-card:hover .icon-box-brand,
.module-card:hover .icon-box-brand {
  background: var(--brand-gradient);
  border-color: transparent;
  color: var(--bg-white);
  box-shadow: var(--shadow-glow);
  transform: scale(1.05);
}

/* Training Module Cards Elevation */
.module-card {
  background: var(--bg-white);
  border: 1px solid rgba(1, 68, 157, 0.10);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  box-shadow: var(--shadow-xs);
  transition: var(--transition-base);
}

.module-card:hover {
  background: var(--bg-white);
  border-color: rgba(1, 68, 157, 0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* SME Index Panel Elevation */
.sme-index-list {
  background: var(--bg-white);
  border: 1px solid rgba(1, 68, 157, 0.10);
  border-radius: var(--radius-md);
  padding: 0.65rem 2.15rem;
  box-shadow: var(--shadow-md);
}