﻿/* =========================
   GLOBAL THEME VARIABLES
   ========================= */

:root {
    --primary: #1e40af;
    --primary-hover: #1d4ed8;
    --secondary: #facc15;
    --accent: #38bdf8;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-muted: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --font-main: 'Poppins', system-ui, sans-serif;
    --font-heading: 'Montserrat', system-ui, sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --shadow-soft: 0 10px 30px rgba(0,0,0,.08);
    --shadow-hover: 0 15px 40px rgba(0,0,0,.12);
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.35s cubic-bezier(.4,0,.2,1);
}

/* =========================
   BASE STYLES
   ========================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll; /* PREVENT NAVBAR JUMP */
}

body {
    margin: 0;
    font-family: var(--font-main);
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

main {
    overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    margin: 0 0 0.6em;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

/* Links */
a {
    color: var(--primary);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* Container */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 1.5rem;
}

/* =========================
   BUTTONS
   ========================= */

.btn {
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-md);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

    .btn-primary:hover {
        background: var(--primary-hover);
    }

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

/* =========================
   CARDS
   ========================= */

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 1.5rem;
    transition: var(--transition-smooth);
}

    .card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-hover);
    }

/* =========================
   CARDS
   ========================= */

.card--event {
    background: var(--bg-card);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.card--event:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
}
/* =========================
   NAVBAR (FINAL & STABLE)
   ========================= */

.navbar {
    position: relative;
    overflow: visible;
}

.navbar-nav {
    align-items: center;
}

/* Nav links */
.navbar .nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 0.75rem;
    background: transparent;
}

    /* Underline animation */
    .navbar .nav-link::after {
        content: "";
        position: absolute;
        left: 15%;
        bottom: 3px;
        width: 0;
        height: 2px;
        background: rgba(255,255,255,0.85);
        transition: width 0.25s ease;
    }

    .navbar .nav-link:hover::after,
    .navbar .nav-link:focus::after,
    .navbar .nav-link.active::after {
        width: 70%;
    }

/* NEVER underline dropdown toggle */
/*.navbar .dropdown-toggle::after, */
/*.navbar .dropdown-toggle.active::after {*/
/*    display: none !important;*/
/*} */

/* Allow underline animation on dropdown toggle */
.navbar .dropdown-toggle::after {
    content: "";
    position: absolute;
    left: 15%;
    bottom: 3px;
    width: 0;
    height: 2px;
    transition: width 0.25s ease;
}

/* Hover + active underline */
.navbar .dropdown-toggle:hover::after,
.navbar .dropdown-toggle:focus::after,
.navbar .dropdown-toggle.show::after {
    width: 70%;
}



/* =========================
   DROPDOWN (FLOATING)
   ========================= */

.navbar .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    /* Darker glass for contrast */
    background: rgba(15, 23, 42, 0.55); /* slate-900 glass */
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 14px;
    padding: 0.4rem 0;
    min-width: 220px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
    animation: dropdownFloat 0.2s ease-out;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(8px);
    }
}

/* Dropdown items */
.navbar .dropdown-item {
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    color: #ffffff;
    background: transparent;
    text-align: center;
    letter-spacing: 0.2px;
}
    .navbar .dropdown-item:hover,
    .navbar .dropdown-item:focus {
        background: rgba(255,255,255,0.18);
        color: #ffffff;
    }


/* Divider */
.dropdown-divider {
    border-color: rgba(255,255,255,0.3);
    margin: 0.35rem 0;
}

/* =========================
   FORMS
   ========================= */

.form-group {
    margin-bottom: 1.2rem;
}

label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.4rem;
}

input, textarea, select {
    width: 100%;
    padding: 0.7rem;
    border-radius: var(--radius-sm);
    border: 1px solid #cbd5f5;
    font-family: inherit;
}

    input:focus {
        outline: none;
        border-color: var(--primary);
    }

/* =========================
   TABLES
   ========================= */

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.8rem;
    border-bottom: 1px solid #e5e7eb;
}

th {
    background: var(--bg-muted);
    text-align: left;
}

/* =========================
   ALERTS
   ========================= */

.alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

/* =========================
   UTILITIES
   ========================= */

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.mt-2 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 2rem;
}

.flex {
    display: flex;
    gap: 1rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
/* =========================
   NOTICES
   ========================= */
.notice-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 16px;
}

    .notice-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    }

    .notice-card .card-title {
        color: #0d6efd;
    }

@media (max-width: 991px) {
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        font-size: 1.05rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.7rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.2rem;
    }
}

.global-notice-bar {
    width: 100% !important;
    background-color: #fff3cd !important; /* yellow */
    border-bottom: 1px solid #ffe69c !important;
    color: #856404 !important; /* dark yellow text */
    font-size: 0.9rem; /* slightly smaller text */
    padding: 0.35rem 0 !important; /* slim vertical padding */
    text-align: center !important;
}

    .global-notice-bar .container {
        display: flex !important;
        align-items: center !important;
        flex-wrap: wrap !important;
    }

.global-notice-item {
    display: flex !important;
    align-items: center !important;
    margin-right: 1rem; /* spacing between notices */
}




/* =========================
   FOOTER
   ========================= */

.site-footer {
    background: linear-gradient( 180deg, var(--primary), #1e3a8a );
    color: rgba(255,255,255,0.9);
    padding: 2.5rem 0;
    margin-top: 4rem;
}

    .site-footer .container {
        max-width: 1200px;
    }

    .site-footer p,
    .site-footer div {
        font-size: 0.9rem;
        color: rgba(255,255,255,0.85);
    }

