/* ===================================================
   Fresh Clean Theme - Top Bar & Navbar Styles
   =================================================== */

:root {
    --primary-blue: #1d4ed8;
    --primary-blue-hover: #1e40af;
    --primary-cyan: #0284c7;
    --accent-teal: #0d9488;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-subtle: #f1f5f9;
    --border-light: #e2e8f0;
    --text-dark: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12);
}

/* Top Announcement Bar */
.top-bar {
    background: linear-gradient(90deg, #1e3a8a 0%, #0369a1 100%);
    color: #ffffff;
    font-size: 0.84rem;
    padding: 8px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1001;
    font-weight: 500;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-bar-badge {
    background: #facc15;
    color: #0f172a;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.74rem;
    letter-spacing: 0.5px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-bar-right a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-bar-right a:hover {
    opacity: 0.85;
}

/* Main Navbar */
.navbar {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 8%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 8%;
    box-shadow: var(--shadow-md);
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo-container {
    width: 58px;
    height: 46px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-light);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.brand-wrapper:hover .logo-container {
    transform: scale(1.05);
}

.logo-container img {
    width: 85%;
    height: 85%;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e3a8a;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.brand-tagline {
    font-size: 0.72rem;
    color: var(--primary-cyan);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-weight: 700;
}

/* Nav Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-blue);
    background: #eff6ff;
}

.nav-cta-btn {
    background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
    color: #ffffff !important;
    padding: 10px 22px !important;
    border-radius: 30px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.3);
    transition: all 0.25s ease !important;
}

.nav-cta-btn:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 78, 216, 0.45);
    color: #ffffff !important;
}

/* Hamburger Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 19px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2.5px;
    background-color: #1e3a8a;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: scale(0.5);
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Responsiveness (<= 768px) */
@media (max-width: 900px) {
    .top-bar-left span:not(.top-bar-badge) {
        display: none;
    }
}

@media (max-width: 768px) {
    .top-bar {
        padding: 6px 5%;
        font-size: 0.75rem;
    }

    .navbar {
        padding: 12px 5%;
    }

    .brand-name {
        font-size: 1rem;
    }

    .brand-tagline {
        font-size: 0.65rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;
        padding: 20px 6% 30px;
        gap: 8px;
        border-bottom: 1px solid var(--border-light);
        box-shadow: var(--shadow-lg);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex !important;
        animation: navSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 12px 16px;
        font-size: 1rem;
        color: #334155;
        border-radius: 10px;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: #eff6ff;
        color: var(--primary-blue);
    }

    .nav-cta-btn {
        text-align: center !important;
        margin-top: 10px;
        padding: 14px 20px !important;
    }
}

@keyframes navSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
