:root {
    --primary-gradient: linear-gradient(135deg,#050E3C 0%, #CF0F0F 100%);
    --dark-gradient: linear-gradient(135deg, #000000 0%, #8B0000 100%);
    --red-accent: #CF0F0F;
    --dark-blue: #050E3C;
    --light-bg: #f8f9fa;
    --card-shadow: 0 10px 30px rgba(207, 15, 15, 0.1);
    /* Navbar offset (JS updates it) */
    --nav-offset: 72px;
}


/* ✅ When jumping to #id, keep space for fixed navbar */
[id] {
    scroll-margin-top: calc(var(--nav-offset) + 12px);
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--light-bg);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: var(--nav-offset);
    overflow-x: hidden;
}

/* =========================
   Navbar (fixed + smaller)
========================= */
.navbar {
    background: var(--primary-gradient) !important;
    box-shadow: 0 4px 20px rgba(5, 14, 60, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
    padding: 0.45rem 0;
}

    .navbar.navbar-scrolled {
        box-shadow: 0 10px 35px rgba(0,0,0,.18);
    }

.navbar-brand {
    font-weight: 800;
    font-size: 1.35rem;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .navbar-brand img {
        display: block;
        width: 62px;
        height: 62px;
        min-width: 62px;
        max-width: 62px;
        object-fit: contain;
        border-radius: 50%;
        filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.28));
        transition: transform 0.2s ease;
    }

    .navbar-brand:hover img {
        transform: scale(1.05);
    }

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.35rem 0.85rem;
    margin: 0 0.15rem;
    border-radius: 25px;
    position: relative;
}

    .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(-1px);
    }

    .navbar-nav .nav-link.active {
        background: rgba(255, 255, 255, 0.2);
        color: white !important;
    }

        .navbar-nav .nav-link.active::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 50%;
            transform: translateX(-50%);
            width: 28%;
            height: 3px;
            background: white;
            border-radius: 2px;
        }

/* Dropdown Menu */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(207, 15, 15, 0.1);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.dropdown-item {
    color: var(--dark-blue);
    padding: 0.75rem 1.5rem;
}

    .dropdown-item:hover {
        background: rgba(207, 15, 15, 0.1);
        color: var(--red-accent);
        transform: translateX(5px);
    }

/* Main Content */
.container {
    max-width: 1200px;
}

.main-content {
    flex: 1 0 auto;
    padding: 2rem 0;
}

/* Cards */
.card {
    background: white;
    border: none;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

    .card:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 20px 40px rgba(207, 15, 15, 0.2);
    }

.card-header {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 1.5rem;
    font-weight: 600;
}

.leadership-card {
    border-left: 5px solid transparent;
    position: relative;
    overflow: hidden;
}

    .leadership-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background: var(--primary-gradient);
        opacity: 0;
    }

    .leadership-card:hover::before {
        opacity: 1;
    }

.gold-tier {
    border-color: #ffd700 !important;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

.silver-tier {
    border-color: #c0c0c0 !important;
    box-shadow: 0 5px 15px rgba(192, 192, 192, 0.2);
}

.bronze-tier {
    border-color: #cd7f32 !important;
    box-shadow: 0 5px 15px rgba(205, 127, 50, 0.2);
}

/* Buttons */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
    border-radius: 30px;
    padding: 0.75rem 1.8rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(207, 15, 15, 0.3);
    }

    .btn-primary::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    }

    .btn-primary:hover::after {
        left: 100%;
    }

.btn-outline-primary {
    border: 2px solid var(--red-accent);
    color: var(--red-accent);
    border-radius: 30px;
    padding: 0.75rem 1.8rem;
    font-weight: 600;
}

    .btn-outline-primary:hover {
        background: var(--red-accent);
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(207, 15, 15, 0.2);
    }

/* Footer */
.footer {
    background: var(--dark-gradient);
    color: white;
    margin-top: auto;
    padding: 3rem 0 1.5rem;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

    .footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 5px;
        background: var(--primary-gradient);
    }

    .footer h5 {
        font-weight: 700;
        margin-bottom: 1.5rem;
        position: relative;
        padding-bottom: 10px;
    }

        .footer h5::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 40px;
            height: 3px;
            background: var(--red-accent);
        }

    .footer a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        display: inline-block;
    }

        .footer a:hover {
            color: white;
            transform: translateX(5px);
        }

    .footer .list-unstyled li {
        margin-bottom: 0.8rem;
    }

/* Hero Section */
.hero-section {
    background: var(--primary-gradient);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

    .hero-section::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: url('/img/sot-logo.png');
        background-repeat: no-repeat;
        background-position: center;
        background-size: 300px;
        opacity: 0.1;
    }

/* Alerts */
.alert {
    border: none;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border-left: 4px solid #28a745;
    color: #155724;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border-left: 4px solid #dc3545;
    color: #721c24;
}

/* Form Controls */
.form-control, .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--red-accent);
        box-shadow: 0 0 0 0.25rem rgba(207, 15, 15, 0.25);
        transform: translateY(-2px);
    }

/* Animations */




/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 5px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--dark-gradient);
    }

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(207, 15, 15, 0.3);
    border-radius: 50%;
    border-top-color: var(--red-accent);
}


/* Hero Search */
.sot-heroSearch {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    align-items: center;
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 16px;
    padding: 10px 12px;
    backdrop-filter: blur(10px);
    max-width: 720px;
}

    .sot-heroSearch i {
        color: rgba(255,255,255,.85);
    }

    .sot-heroSearch input {
        flex: 1;
        border: none;
        outline: none;
        background: transparent;
        color: #fff;
        font-weight: 700;
    }

        .sot-heroSearch input::placeholder {
            color: rgba(255,255,255,.70);
        }

    .sot-heroSearch button {
        border: none;
        border-radius: 14px;
        background: #e11d2e;
        color: #fff;
        padding: 10px 14px;
        font-weight: 900;
    }

/* =========================
   NAV SEARCH (icon -> expand)
========================= */
.nav-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-search-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.08);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .nav-search-btn:hover {
        transform: translateY(-1px);
        background: rgba(255,255,255,.12);
        border-color: rgba(255,255,255,.35);
    }

.nav-search-form {
    display: none;
    align-items: center;
    gap: 8px;
}

.nav-search.is-open .nav-search-form {
    display: flex;
}

.nav-search.is-open .nav-search-btn {
    display: none;
}

.nav-search-input {
    width: 300px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.10);
    color: #fff;
}

    .nav-search-input::placeholder {
        color: rgba(255,255,255,.70);
    }

.nav-search-go {
    border-radius: 12px;
    padding: 8px 12px;
}

.nav-search-close {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.08);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .nav-search-close:hover {
        background: rgba(255,255,255,.12);
    }

@media (max-width: 1200px) {
    .nav-search-input {
        width: 230px;
    }
}

/* Responsive tweaks */
@media (max-width: 768px) {
    :root {
        --nav-offset: 74px;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

        .navbar-brand img {
            width: 52px;
            height: 52px;
            min-width: 52px;
            max-width: 52px;
        }

    .hero-section {
        padding: 60px 0;
    }

    .footer {
        text-align: center;
    }

        .footer h5::after {
            left: 50%;
            transform: translateX(-50%);
        }
}

@media (max-width: 576px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .card {
        margin-bottom: 1.5rem;
    }
}
