/* ============================================
   ELCT NWD — Theme Variables & Base Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Colors */
    --color-primary:    #002678;
    --color-hover:      #0dcaf0;
    --color-heading:    #002678;
    --color-text:       #233142;
    --color-bg:         #ffffff;
    --color-bg-light:   #f8f9fc;
    --color-border:     #e2e6ed;
    --color-muted:      #6c757d;
    --color-white:      #ffffff;
    --color-dark:       #1a1a2e;

    /* Font */
    --font-family:      'Poppins', sans-serif;

    /* Spacing */
    --section-spacing:  80px;
    --card-radius:      12px;
    --btn-radius:       50px;

    /* Shadows */
    --shadow-sm:        0 2px 8px rgba(0,0,0,0.06);
    --shadow-md:        0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg:        0 8px 32px rgba(0,0,0,0.10);
}

/* ============================================
   RESET & BASE
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-heading);
    font-weight: 700;
    line-height: 1.3;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-hover);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   SECTION SPACING
   ============================================ */

.section {
    padding-top: var(--section-spacing);
    padding-bottom: var(--section-spacing);
}

.section-light {
    background-color: var(--color-bg-light);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--color-muted);
    margin-bottom: 2.5rem;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary-custom {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-primary);
    border-radius: var(--btn-radius);
    padding: 10px 28px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-custom:hover {
    background-color: var(--color-hover);
    border-color: var(--color-hover);
    color: var(--color-white);
}

.btn-outline-custom {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: var(--btn-radius);
    padding: 10px 28px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-custom:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-give {
    background-color: var(--color-hover);
    color: var(--color-dark);
    border: none;
    border-radius: var(--btn-radius);
    padding: 8px 22px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.25s ease;
}

.btn-give:hover {
    background-color: #0bb5d4;
    color: var(--color-white);
}

/* ============================================
   CARDS
   ============================================ */

.card-custom {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    overflow: hidden;
}

.card-custom:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-custom .card-body {
    padding: 1.5rem;
}

.card-custom .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-heading);
}

.card-custom .card-text {
    font-size: 0.9rem;
    color: var(--color-text);
}

/* ============================================
   NAVBAR — TOP BAR
   ============================================ */

.top-bar {
    background-color: var(--color-primary);
    padding: 6px 0;
    font-size: 0.8rem;
}

.top-bar a {
    color: rgba(255,255,255,0.85);
    transition: color 0.2s;
}

.top-bar a:hover {
    color: var(--color-hover);
}

/* ============================================
   NAVBAR — MAIN
   ============================================ */

.navbar-main {
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1050;
}

.navbar-main .navbar-brand img {
    height: 52px;
}

.navbar-main .navbar-brand span {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--color-heading);
    line-height: 1.2;
}

.navbar-main .navbar-brand small {
    font-size: 0.72rem;
    color: var(--color-muted);
    font-weight: 400;
}

.navbar-main .nav-link {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 20px 16px !important;
    transition: color 0.2s;
    position: relative;
}

.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
    color: var(--color-primary);
}

.navbar-main .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 3px;
    background: var(--color-hover);
    border-radius: 3px 3px 0 0;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.navbar-main .nav-link:hover::after,
.navbar-main .nav-link.active::after {
    transform: scaleX(1);
}

/* ============================================
   MEGA MENU (Desktop)
   ============================================ */

.mega-dropdown {
    position: static;
}

.mega-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--color-white);
    border: none;
    border-top: 3px solid var(--color-hover);
    border-radius: 0 0 var(--card-radius) var(--card-radius);
    box-shadow: var(--shadow-lg);
    padding: 2rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
    z-index: 1060;
}

.mega-dropdown:hover .mega-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-intro h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 0.5rem;
}

.mega-menu-intro p {
    font-size: 0.85rem;
    color: var(--color-muted);
    line-height: 1.6;
}

.mega-menu-group h6 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-hover);
}

.mega-menu-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-group ul li {
    margin-bottom: 6px;
}

.mega-menu-group ul li a {
    font-size: 0.88rem;
    color: var(--color-text);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    padding: 3px 0;
}

.mega-menu-group ul li a i {
    font-size: 0.7rem;
    color: var(--color-hover);
    transition: transform 0.2s;
}

.mega-menu-group ul li a:hover {
    color: var(--color-primary);
    padding-left: 4px;
}

.mega-menu-group ul li a:hover i {
    transform: translateX(3px);
}

.mega-menu-feature {
    background: var(--color-bg-light);
    border-radius: var(--card-radius);
    padding: 1.25rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mega-menu-feature i {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.mega-menu-feature h6 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 0.25rem;
}

.mega-menu-feature p {
    font-size: 0.78rem;
    color: var(--color-muted);
    margin-bottom: 0;
}

.mega-menu-bottom {
    border-top: 1px solid var(--color-border);
    margin-top: 1.25rem;
    padding-top: 1rem;
}

.mega-menu-bottom a {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mega-menu-bottom a:hover {
    color: var(--color-hover);
}

/* ============================================
   MOBILE OFF-CANVAS
   ============================================ */

.offcanvas-mobile {
    width: 100% !important;
    max-width: 100%;
    background: var(--color-white);
}

.offcanvas-mobile .offcanvas-header {
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.25rem;
}

.offcanvas-mobile .offcanvas-body {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.mobile-nav-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.mobile-nav-list .accordion-item {
    border: none;
    border-bottom: 1px solid var(--color-border);
}

.mobile-nav-list .accordion-button {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-heading);
    padding: 1rem 1.25rem;
    background: none;
    box-shadow: none;
}

.mobile-nav-list .accordion-button:not(.collapsed) {
    color: var(--color-primary);
    background-color: var(--color-bg-light);
}

.mobile-nav-list .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23002678'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.mobile-nav-list .accordion-body {
    padding: 0.5rem 1.25rem 1rem;
}

.mobile-nav-list .accordion-body a {
    display: block;
    padding: 8px 0;
    font-size: 0.92rem;
    color: var(--color-text);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.mobile-nav-list .accordion-body a:hover {
    color: var(--color-primary);
    padding-left: 6px;
}

.mobile-nav-list .mobile-single-link {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-heading);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
}

.mobile-nav-list .mobile-single-link:hover {
    color: var(--color-primary);
    background-color: var(--color-bg-light);
}

.mobile-bottom-area {
    border-top: 1px solid var(--color-border);
    padding: 1.25rem;
    background: var(--color-bg-light);
}

.mobile-bottom-area .btn {
    width: 100%;
    margin-bottom: 0.5rem;
}

/* ============================================
   FOOTER
   ============================================ */

.footer-main {
    background-color: var(--color-dark);
    color: rgba(255,255,255,0.75);
    padding: 60px 0 0;
}

.footer-main h5 {
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-main h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--color-hover);
    border-radius: 2px;
}

.footer-main a {
    color: rgba(255,255,255,0.7);
    font-size: 0.88rem;
    transition: all 0.2s;
}

.footer-main a:hover {
    color: var(--color-hover);
    padding-left: 4px;
}

.footer-main ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-main ul li {
    margin-bottom: 8px;
}

.footer-main p {
    font-size: 0.88rem;
    line-height: 1.7;
}

.footer-bottom {
    background-color: rgba(0,0,0,0.2);
    padding: 1rem 0;
    margin-top: 40px;
    font-size: 0.82rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    margin-right: 8px;
    transition: all 0.25s;
    font-size: 0.9rem;
}

.footer-social a:hover {
    background: var(--color-hover);
    color: var(--color-white);
    padding-left: 0;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, #001a5c 100%);
    color: var(--color-white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(13,202,240,0.08);
}

.hero-section h1 {
    color: var(--color-white);
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.hero-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-section .btn-hero-primary {
    background: var(--color-hover);
    color: var(--color-dark);
    border: none;
    border-radius: var(--btn-radius);
    padding: 12px 32px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s;
}

.hero-section .btn-hero-primary:hover {
    background: #0bb5d4;
    color: var(--color-white);
}

.hero-section .btn-hero-outline {
    background: transparent;
    color: var(--color-white);
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: var(--btn-radius);
    padding: 12px 32px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s;
}

.hero-section .btn-hero-outline:hover {
    border-color: var(--color-white);
    background: rgba(255,255,255,0.1);
}

/* ============================================
   CUSTOM FORMS
   ============================================ */

.form-group-custom {
    position: relative;
}

.form-label-custom {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 0.5rem;
    letter-spacing: 0.2px;
}

.form-label-custom i {
    color: var(--color-hover);
    font-size: 0.8rem;
}

.form-control-custom {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-text);
    background-color: var(--color-bg-light);
    border: 2px solid var(--color-border);
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-control-custom::placeholder {
    color: #b0b7c3;
    font-weight: 400;
}

.form-control-custom:focus {
    border-color: var(--color-primary);
    background-color: var(--color-white);
    box-shadow: 0 0 0 4px rgba(0, 38, 120, 0.08);
}

.form-control-custom.is-invalid {
    border-color: #dc3545;
}

.form-control-custom.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.08);
}

select.form-control-custom {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23002678'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    padding-right: 40px;
}

textarea.form-control-custom {
    resize: vertical;
    min-height: 100px;
}

.form-error-custom {
    font-size: 0.78rem;
    color: #dc3545;
    margin-top: 0.35rem;
    padding-left: 2px;
    font-weight: 500;
}

.alert-custom {
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.alert-custom-success {
    background: rgba(25, 135, 84, 0.08);
    border: 1px solid rgba(25, 135, 84, 0.2);
    color: #198754;
}

.btn-amount {
    background: var(--color-bg-light);
    border: 2px solid var(--color-border);
    border-radius: 8px;
    padding: 6px 16px;
    font-family: var(--font-family);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-heading);
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-amount:hover {
    border-color: var(--color-primary);
    background: rgba(0, 38, 120, 0.05);
    color: var(--color-primary);
}

.donation-card {
    cursor: pointer;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.donation-card:hover {
    border-color: var(--color-hover);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991.98px) {
    .mega-dropdown-menu {
        display: none !important;
    }
    .navbar-main .nav-link::after {
        display: none;
    }
    .section {
        padding-top: 50px;
        padding-bottom: 50px;
    }
    .hero-section {
        padding: 60px 0;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
}



@media (max-width: 767.98px) {
    .section-title {
        font-size: 1.5rem;
    }
    .hero-section h1 {
        font-size: 1.75rem;
    }
}

/* ============================================
   HERO MAIN (Homepage Slider Hero)
   ============================================ */

.hero-main {
    position: relative;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-color: var(--color-primary); /* fallback */
    padding-top: 80px;
    padding-bottom: 120px; /* extra room for overlapping card */
    overflow: visible;
}

.hero-main-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(0, 26, 92, 0.78) 0%,
        rgba(0, 38, 120, 0.62) 100%
    );
    pointer-events: none;
}

/* ---- Intro text ---- */

.hero-intro {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 auto 48px;
    color: #fff;
}

.hero-intro-eyebrow {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-hover);
    margin-bottom: 10px;
}

.hero-intro-title {
    color: #fff;
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero-intro-sub {
    font-size: 1.05rem;
    opacity: 0.88;
    margin-bottom: 0;
    line-height: 1.7;
}

/* ============================================
   HERO SLIDER CARD
   ============================================ */

.hsc-card {
    position: relative;
    z-index: 10;
    width: 90%;
    margin: 0 auto;
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    /* pull card down into next section */
    margin-bottom: -150px;
    background: #000;
}

/* ---- Slide track & individual slides ---- */

.hsc-track {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hsc-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.7s ease;
    /* Fallback gradient when image is missing */
    background-color: var(--color-primary);
}

.hsc-slide.hsc-active {
    opacity: 1;
    z-index: 2;
}

.hsc-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 18, 70, 0.82) 0%,
        rgba(0, 18, 70, 0.28) 60%,
        transparent 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 40px 48px;
}

.hsc-slide-content {
    color: #fff;
    max-width: 560px;
}

.hsc-slide-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hsc-slide-subtitle {
    font-size: 0.95rem;
    opacity: 0.88;
    margin-bottom: 20px;
    line-height: 1.6;
}

.hsc-btn {
    background: var(--color-hover);
    color: var(--color-dark);
    border: none;
    border-radius: var(--btn-radius);
    padding: 10px 28px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.25s, color 0.25s;
}

.hsc-btn:hover {
    background: #fff;
    color: var(--color-primary);
}

/* ---- Bottom Navigation ---- */

.hsc-nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    background: #fff;
    padding: 0 16px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

.hsc-nav::-webkit-scrollbar {
    display: none;
}

.hsc-nav-item {
    flex: 0 0 auto;
    background: none;
    border: none;
    outline: none;
    font-family: var(--font-family);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-muted);
    padding: 18px 20px 14px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.hsc-nav-item:hover {
    color: var(--color-primary);
}

.hsc-nav-item.hsc-nav-active {
    color: var(--color-primary);
    border-bottom-color: var(--color-hover);
}

/* ---- Dots ---- */

.hsc-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding-left: 16px;
    flex-shrink: 0;
}

.hsc-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-border);
    transition: background 0.25s, transform 0.25s;
}

.hsc-dot.hsc-dot-active {
    background: var(--color-primary);
    transform: scale(1.3);
}

/* Compensate overlap in next section */
.hero-main + .section {
    padding-top: calc(var(--section-spacing) + 80px);
}

/* ============================================
   RESPONSIVE — Hero Main & Slider Card
   ============================================ */

@media (max-width: 1199.98px) {
    .hero-intro-title {
        font-size: 2.75rem;
    }
}

@media (max-width: 991.98px) {
    .hero-main {
        padding-top: 60px;
        padding-bottom: 100px;
    }
    .hsc-card {
        width: 90%;
        margin-bottom: -60px;
    }
    .hero-intro-title {
        font-size: 2.25rem;
    }
    .hsc-track {
        height: 340px;
    }
    .hsc-slide-title {
        font-size: 1.6rem;
    }
    .hsc-slide-overlay {
        padding: 28px 32px;
    }
    .hero-main + .section {
        padding-top: calc(50px + 60px);
    }
}

@media (max-width: 767.98px) {
    .hero-main {
        padding-top: 48px;
        padding-bottom: 80px;
    }
    .hsc-card {
        width: 100%;
        border-radius: 16px;
        margin-bottom: -40px;
    }
    .hero-intro-title {
        font-size: 1.85rem;
    }
    .hero-intro-sub {
        font-size: 0.92rem;
    }
    .hsc-track {
        height: 280px;
    }
    .hsc-slide-title {
        font-size: 1.25rem;
    }
    .hsc-slide-overlay {
        padding: 20px 20px;
    }
    .hsc-nav-item {
        font-size: 0.7rem;
        padding: 14px 12px 10px;
        letter-spacing: 0.8px;
    }
    .hero-main + .section {
        padding-top: calc(50px + 40px);
    }
}

/* ============================================
   SPLIT FEATURE SECTION
   ============================================ */

.split-feature {
    width: 100%;
    overflow: hidden;
}

.split-feature__inner {
    display: flex;
    min-height: 560px;
}

/* ---- Left panel ---- */

.split-feature__panel {
    flex: 0 0 50%;
    width: 50%;
}

.split-feature__panel--content {
    position: relative;
    background: linear-gradient(145deg, #002678 0%, #003494 50%, #00509e 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Subtle topographic / contour texture overlay */
.split-feature__texture {
    position: absolute;
    inset: 0;
    background-image:
        repeating-radial-gradient(
            circle at 30% 40%,
            rgba(255,255,255,0.03) 0px,
            rgba(255,255,255,0.03) 1px,
            transparent 1px,
            transparent 28px
        ),
        repeating-radial-gradient(
            circle at 70% 75%,
            rgba(13,202,240,0.05) 0px,
            rgba(13,202,240,0.05) 1px,
            transparent 1px,
            transparent 44px
        );
    pointer-events: none;
}

.split-feature__content {
    position: relative;
    z-index: 2;
    padding: 72px 64px;
    width: 100%;
}

.split-feature__eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--color-hover);
    margin-bottom: 16px;
}

.split-feature__title {
    color: #ffffff;
    font-size: 2.4rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.15;
    letter-spacing: -0.3px;
    margin-bottom: 24px;
}

.split-feature__text {
    margin-bottom: 36px;
}

.split-feature__text p {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.97rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.split-feature__text p:last-child {
    margin-bottom: 0;
}

.split-feature__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    color: var(--color-heading);
    font-family: var(--font-family);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    padding: 13px 30px;
    border-radius: var(--btn-radius);
    border: 2px solid transparent;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.split-feature__btn:hover {
    background: var(--color-hover);
    color: var(--color-dark);
    border-color: var(--color-hover);
    transform: translateY(-2px);
}

.split-feature__btn i {
    transition: transform 0.2s ease;
}

.split-feature__btn:hover i {
    transform: translateX(4px);
}

/* ---- Right panel ---- */

.split-feature__panel--image {
    position: relative;
    overflow: hidden;
}

.split-feature__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ============================================
   SPLIT FEATURE — RESPONSIVE
   ============================================ */

@media (max-width: 991.98px) {
    .split-feature__inner {
        flex-direction: column;
        min-height: auto;
    }

    .split-feature__panel {
        flex: none;
        width: 100%;
    }

    .split-feature__panel--content {
        order: 1;
    }

    .split-feature__panel--image {
        order: 2;
        height: 320px;
        position: relative;
    }

    .split-feature__img {
        position: absolute;
    }

    .split-feature__content {
        padding: 56px 40px;
    }

    .split-feature__title {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .split-feature__panel--image {
        height: 280px;
    }

    .split-feature__content {
        padding: 44px 28px;
    }

    .split-feature__title {
        font-size: 1.65rem;
    }

    .split-feature__text p {
        font-size: 0.92rem;
    }
}

/* ============================================
   ORGANIZATIONAL CHART
   ============================================ */

.org-chart-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1.5rem;
    text-align: center;
    cursor: grab;
}

.org-chart-wrapper:active {
    cursor: grabbing;
}

.org-scroll-hint {
    display: none;
    font-size: 0.78rem;
    font-style: italic;
    color: var(--color-muted);
    margin-bottom: 1rem;
}

.org-chart {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 3rem 3rem;
}

/* ---- Explicit vertical connector ---- */

.org-connector-v {
    width: 2px;
    height: 28px;
    background: var(--color-primary);
    flex-shrink: 0;
}

/* ---- Node box ---- */

.org-node {
    background: var(--color-white);
    border: 2px solid var(--color-primary);
    border-radius: 12px;
    padding: 10px 22px;
    text-align: center;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 0.84rem;
    color: var(--color-primary);
    min-width: 148px;
    box-shadow: var(--shadow-sm);
    line-height: 1.45;
    white-space: nowrap;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    cursor: default;
}

.org-node:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.org-node small {
    display: block;
    font-weight: 400;
    font-size: 0.73rem;
    margin-top: 2px;
    color: var(--color-muted);
}

/* Tier variants */

.org-node--tier1 {
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 0.92rem;
    padding: 13px 32px;
    border-radius: 14px;
}

.org-node--tier1 small {
    color: rgba(255, 255, 255, 0.75);
}

.org-node--tier2 {
    background: #003494;
    color: var(--color-white);
    border-color: #003494;
    padding: 11px 28px;
}

.org-node--bishop {
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 0.95rem;
    padding: 14px 44px;
    border-radius: 14px;
    letter-spacing: 0.3px;
}

/* ---- Group: flex row of branches ---- */

.org-group {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* ---- Branch: column with connector decorations ---- */

.org-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 16px;
    position: relative;
}

/* Vertical stub: horizontal bar → node top */
.org-branch::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 28px;
    background: var(--color-primary);
}

/* Horizontal bar contribution per branch */
.org-branch::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-primary);
}

.org-branch:first-child::after { left: 50%; }
.org-branch:last-child::after  { right: 50%; }
.org-branch:only-child::after  { display: none; }

/* Push direct child node below the connector area */
.org-branch > .org-node {
    margin-top: 28px;
}

/* ============================================
   ORGANIZATIONAL CHART — RESPONSIVE
   ============================================ */

/* Large desktop: slight tightening */
@media (max-width: 1399.98px) {
    .org-branch {
        padding: 0 12px;
    }
}

/* Tablet: compact but still horizontal, scrollable */
@media (max-width: 991.98px) {
    .org-scroll-hint {
        display: block;
    }

    .org-chart {
        padding: 1.5rem 1rem 2.5rem;
    }

    .org-branch {
        padding: 0 8px;
    }

    .org-node {
        min-width: 108px;
        font-size: 0.76rem;
        padding: 7px 10px;
    }

    .org-node--tier1  { padding: 10px 18px; font-size: 0.8rem; }
    .org-node--tier2  { padding: 9px 18px; }
    .org-node--bishop { padding: 10px 24px; font-size: 0.86rem; }
}

/* Mobile: shrink nodes, scroll horizontally — connectors stay intact */
@media (max-width: 575.98px) {
    .org-scroll-hint {
        display: block;
    }

    .org-chart {
        padding: 1rem 0.5rem 2rem;
    }

    .org-branch {
        padding: 0 5px;
    }

    .org-node {
        min-width: 82px;
        font-size: 0.68rem;
        padding: 6px 8px;
        border-radius: 8px;
        white-space: normal;
        line-height: 1.35;
    }

    .org-node--tier1  { padding: 8px 12px; font-size: 0.72rem; }
    .org-node--tier2  { padding: 7px 12px; }
    .org-node--bishop { padding: 8px 18px; font-size: 0.76rem; }

    .org-connector-v {
        height: 18px;
    }
}
