/* ========================================
   HEADER TOP SECTION - Logo and Title
   ======================================== */

.header-top-premium {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1025;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 0.15rem 0;
    border-bottom: 2px solid #d4af37;
    margin: 0;
}

.header-top-premium .container-premium {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Logo and title on the left */
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: left;
    /* Ensure text aligns left */
}

.header-brand-premium {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.header-brand-premium:hover {
    transform: translateY(-2px);
}

.header-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.header-college-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.header-college-info h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #002147;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.header-tagline {
    font-size: 0.85rem;
    color: #d4af37;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.02em;
}

/* ========================================
   NAVBAR - Updated for new layout
   ======================================== */

.navbar-premium {
    position: fixed;
    top: 75px;
    left: 0;
    right: 0;
    z-index: 1020;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: auto;
    padding: 0.5rem 0;
    margin: 0;
}

.navbar-premium.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar-premium .container-premium {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    gap: 2rem;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    width: auto;
}

.navbar-menu li {
    margin: 0;
}

.navbar-link {
    position: relative;
    font-size: 1rem;
    font-weight: 500;
    color: #343a40;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4af37;
    transition: width 0.3s ease;
}

.navbar-link:hover {
    color: #002147;
}

.navbar-link:hover::after {
    width: 100%;
}

.navbar-link.active {
    color: #002147;
}

.navbar-link.active::after {
    width: 100%;
}

.btn-login-nav {
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #002147 0%, #003d82 100%);
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 33, 71, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-login-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 33, 71, 0.3);
    color: #ffffff;
}

/* Mobile Menu Toggle */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.navbar-toggle span {
    width: 25px;
    height: 2px;
    background: #002147;
    transition: all 0.3s ease;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .header-college-info h1 {
        font-size: 1.5rem;
    }

    .header-tagline {
        font-size: 0.85rem;
    }

    .navbar-menu {
        gap: 1.5rem;
    }

    .navbar-link {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .header-top-premium {
        padding: 0.75rem 0;
    }

    .header-brand-premium {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }

    .header-logo {
        width: 45px;
        height: 45px;
        margin-bottom: 0;
    }

    .header-college-info h1 {
        font-size: 1rem;
        margin-bottom: 2px;
        line-height: 1.2;
    }

    .header-tagline {
        font-size: 0.7rem;
        line-height: 1;
    }

    /* CRITICAL: Ensure navbar is visible on mobile */
    .navbar-premium {
        top: 68px;
        padding: 0.4rem 0;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .navbar-premium .container-premium {
        padding: 0 1rem;
        gap: 1rem;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        visibility: visible !important;
    }

    /* Mobile menu - slides in from left */
    .navbar-menu {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #ffffff;
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        width: 100%;
        max-width: 100%;
        display: flex !important;
        visibility: visible !important;
    }

    .navbar-menu.active {
        transform: translateX(0);
    }

    /* CRITICAL: Hamburger menu must be visible */
    .navbar-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        order: 1;
        z-index: 1000;
    }

    .navbar-link {
        font-size: 1.1rem;
    }

    .btn-login-nav {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-top-premium {
        padding: 0.35rem 0;
    }

    .header-brand-premium {
        gap: 0.6rem;
    }

    .header-logo {
        height: 40px;
    }

    .header-college-info h1 {
        font-size: 1rem;
    }

    .header-tagline {
        font-size: 0.7rem;
    }

    .navbar-premium {
        top: 60px;
    }

    .navbar-menu {
        top: 60px;
        padding: 1.5rem 1rem;
    }
}

/* ========================================
   ADJUST MAIN CONTENT MARGIN
   ======================================== */

body {
    padding-top: 0;
    margin-top: 0;
}

@media (max-width: 768px) {
    body {
        padding-top: 0;
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 0;
        margin-top: 0;
    }
}

/* Hero section adjustment */
.hero-premium {
    margin-top: 70px !important;
}

@media (max-width: 768px) {
    .hero-premium {
        margin-top: 60px !important;
    }
}

@media (max-width: 480px) {
    .hero-premium {
        margin-top: 60px !important;
    }
}

/* Main content wrapper spacing */
.main-content-wrapper {
    margin-top: 70px;
}

@media (max-width: 768px) {
    .main-content-wrapper {
        margin-top: 60px;
    }
}

@media (max-width: 480px) {
    .main-content-wrapper {
        margin-top: 60px;
    }
}