/* =====================
   ROOT & GLOBAL
===================== */
:root {
    --primary: #0A3D62;
    --primary-light: #1E6091;
    --secondary: #2EC4B6;

    --dark: #0B1320;
    --text-dark: #1F2A37;
    --text-muted: #6B7280;

    --bg-light: #F4F9FC;
    --bg-white: #FFFFFF;

    --radius-lg: 16px;
    --radius-md: 12px;

    --shadow-soft: 0 8px 24px rgba(10, 61, 98, 0.08);
    --shadow-hover: 0 16px 36px rgba(10, 61, 98, 0.14);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background-color: #fff;
    line-height: 1.65;
    font-size: 16.5px;
    padding-top: 84px; /* adjust if navbar height changes */
}

/* =====================
   HEADER / NAVBAR
===================== */
/* =====================
   FIXED FLOATING HEADER
===================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;

    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    color: #ffffff;

    /* Floating depth (no harsh edge) */
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.12);

    transition:
        background 0.3s ease,
        box-shadow 0.3s ease;
}

/* =====================
   SOFT BLEND INTO CONTENT (NOT A BAR, NOT A BORDER)
                            ===================== */
.main-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -24px;      /* pushes blend INTO next section */
    height: 24px;

    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.65),
        rgba(255, 255, 255, 0)
    );

    pointer-events: none;
}

/* =====================
   SCROLLED STATE (WHITE CARD)
===================== */
.main-header.scrolled {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}



/* =====================
   NAV LINKS
===================== */
.main-header .nav-link {
    color: #EAF4FB !important;
    font-weight: 500;
    position: relative;
}

.main-header .nav-link:hover,
.main-header .nav-link.active {
    color: #FFD166 !important;
}

/* Active underline */
.main-header .nav-link.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: currentColor;
}


/* =====================
   HAMBURGER
===================== */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link {
        padding: 14px 0;
        font-size: 1.05rem;
        text-align: center;
    }

    .navbar-toggler {
        border: none;
        padding: 0.5rem 0.6rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.18);
        backdrop-filter: blur(6px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.45);
    }

    .navbar-toggler-icon {
        background-image: none !important;
        width: 28px;
        height: 28px;
        position: relative;
    }

    .navbar-toggler-icon::before,
    .navbar-toggler-icon::after,
    .navbar-toggler-icon span {
        content: '';
        position: absolute;
        left: 3px;
        right: 3px;
        height: 3px;
        background-color: #ffffff;
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .navbar-toggler-icon::before { top: 6px; }
    .navbar-toggler-icon span { top: 13px; }
    .navbar-toggler-icon::after { bottom: 6px; }
}

/* =====================
   BRAND
===================== */
.brand-logo {
    width: 44px;
    height: 44px;
    background: #ffffff;
    padding: 4px;
    border-radius: 6px;
}


.brand-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff !important;
}

.brand-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    color: #FFD166;
}

.main-header.scrolled .brand-title {
    color: var(--primary);
}

.main-header.scrolled .brand-subtitle {
    color: var(--secondary);
}

/* =====================
   HERO SECTION
===================== */
.hero-section {
    background: linear-gradient(135deg, #0A3D62, #1E6091, #2EC4B6);
    padding: clamp(60px, 8vw, 100px) 0;
    color: #fff;
    overflow: hidden;
}

.hero-section h1 {
    font-size: clamp(2.1rem, 4vw, 3.1rem);
    font-weight: 800;
    line-height: 1.2;
}

.hero-section p {
    max-width: 420px;
    margin: 20px 0 28px;
    line-height: 1.7;
    opacity: 0.95;
}

/* Hide hero image on very small screens */
@media (max-width: 480px) {
    .hero-img {
        display: none;
    }
}

/* =====================
   SECTIONS
===================== */
.section {
    padding: clamp(60px, 8vw, 90px) 0;
}

.section + .section {
    margin-top: 10px;
}

.section.alt {
    background: var(--bg-light);
}

.section-title {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-subtitle {
    max-width: 720px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =====================
   CARDS
===================== */
.info-card,
.event-card,
.member-card {
    background: var(--bg-white);
    padding: 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    height: 100%;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover,
.event-card:hover,
.member-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.info-card:active {
    transform: scale(0.98);
}

/* =====================
   EVENTS
===================== */
.event-date {
    display: inline-block;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 8px;
}

/* =====================
   MEMBERS
===================== */


/* =====================
   MEMBER CARD – MODERN BORDER
===================== */
.member-card {
    position: relative;
    border: 1px solid rgba(10, 61, 98, 0.08);
    overflow: hidden;
}

.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;

    background: linear-gradient(
        90deg,
        var(--secondary),
        var(--primary-light)
    );
}

.member-card:hover {
    border-color: rgba(46, 196, 182, 0.35);
    box-shadow:
        0 16px 36px rgba(10, 61, 98, 0.16),
        0 0 0 1px rgba(46, 196, 182, 0.35);
}

/* Member content */
.member-card img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}

.member-card span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* =====================
   FORMS (GLOBAL SAFETY)
===================== */
input,
select,
textarea,
button {
    min-height: 44px;
}

/* =====================
   FOOTER
===================== */
.footer {
    background: var(--primary-light);
    color: #CFE6F3;
    padding: 28px 0;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
}

/* =====================
   ACCESSIBILITY
===================== */
a {
    text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(46, 196, 182, 0.5);
    outline-offset: 3px;
}

/* =====================
   MOBILE OPTIMIZATION
===================== */
@media (max-width: 767px) {
    .hero-section {
        text-align: center;
    }

    .hero-section p {
        margin-left: auto;
        margin-right: auto;
    }
}

/* =====================
   HERO MOBILE SPACING FIX
===================== */
@media (max-width: 991.98px) {
    .hero-section .col-lg-6 + .col-lg-6 {
        margin-top: 32px; /* space between CTA and slider */
    }
}


@media (max-width: 575px) {
    .hero-section .col-lg-6 + .col-lg-6 {
        margin-top: 40px;
    }
}


/* =====================================
   FIXED AUTO IMAGE SLIDER (FINAL)
===================================== */
/* ===========================
   SLIDER CORE
=========================== */
.slider-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.slider-track {
    display: flex;
    transition: transform 0.7s ease-in-out;
    will-change: transform;
}

.slide {
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 12px;
}

/* Mobile */
@media (max-width: 767px) {
    .slide img {
        max-height: 200px;
    }
}

/* ===========================
   DOTS
=========================== */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(10, 61, 98, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #2EC4B6;
    transform: scale(1.2);
}
