/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    padding-top: 0;
}

/* ===== STICKY NAVBAR STYLES ===== */
.navbar {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
    transition: all 0.3s ease;
}

/* Optional: Add shadow on scroll effect */
.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 0.8rem 2rem;
}

/* Logo Area */
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-area img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffd700;
    transition: all 0.3s ease;
}

/* Shrink logo on scroll */
.navbar.scrolled .logo-area img {
    width: 38px;
    height: 38px;
}

.logo-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.navbar.scrolled .logo-name {
    font-size: 1rem;
}

/* Desktop Navigation Center */
.nav-center {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-center a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 0;
    position: relative;
}

.nav-center a:hover {
    color: #ffd700;
}

.nav-center a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffd700;
    transition: width 0.3s ease;
}

.nav-center a:hover::after {
    width: 100%;
}

/* Desktop Right Buttons */
.nav-right {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0;
}

.nav-right button {
    background: #ffd700;
    color: #1e3c72;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-right button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: #ffed4e;
}

/* Hamburger Menu (Hidden on Desktop) */
.hamburger-menu {
    display: none;
    cursor: pointer;
    flex-shrink: 0;
}

#menuToggle {
    font-size: 28px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

#menuToggle:hover {
    color: #ffd700;
}

/* ===== MOBILE DRAWER STYLES ===== */
.nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    z-index: 2000;
    transition: right 0.3s ease-in-out;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.nav-drawer.active {
    right: 0;
}

/* Drawer Header */
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    z-index: 10;
}

.drawer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.drawer-logo img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffd700;
    flex-shrink: 0;
}

.drawer-logo span {
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    line-height: 1.3;
    word-break: normal;
    white-space: normal;
}

/* Close button - NO BACKGROUND */
.close-drawer {
    color: white;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    flex-shrink: 0;
}

.close-drawer:hover {
    transform: rotate(90deg);
    color: #ffd700;
    background: transparent !important;
}

.close-drawer:active {
    transform: scale(0.95);
    background: transparent !important;
}

/* Drawer Navigation Links */
.nav-drawer a {
    color: white;
    text-decoration: none;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.nav-drawer a:hover {
    background: rgba(255, 215, 0, 0.1);
    border-left-color: #ffd700;
    padding-left: 1.8rem;
}

/* Drawer Buttons */
.nav-drawer button {
    background: #ffd700;
    color: #1e3c72;
    border: none;
    padding: 10px 20px;
    margin: 0.5rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-align: center;
}

.nav-drawer button:hover {
    transform: translateX(5px);
    background: #ffed4e;
}

/* ===== OVERLAY STYLES ===== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: none;
    backdrop-filter: blur(3px);
}

.overlay.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        right: -100%;
    }
    to {
        right: 0;
    }
}

.nav-drawer.active {
    animation: slideIn 0.3s ease;
}

/* ===== MOBILE RESPONSIVE STYLES ===== */

/* Tablet Devices (1024px and below) - Desktop Mode No Changes */
@media (max-width: 1024px) {
    .navbar {
        padding: 0.8rem 1.5rem;
    }
    
    .nav-center {
        gap: 1.5rem;
    }
    
    .logo-name {
        font-size: 1rem;
    }
    
    .nav-right button {
        padding: 6px 16px;
        font-size: 0.85rem;
    }
}

/* Mobile Devices (768px and below) */
@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 1.2rem;
    }
    
    /* Hide desktop navigation and show hamburger */
    .nav-center {
        display: none;
    }
    
    .nav-right {
        display: none;
    }
    
    .hamburger-menu {
        display: block;
    }
    
    /* INCREASED: Logo image size on mobile */
    .logo-area img {
        width: 48px !important;
        height: 48px !important;
    }
    
    /* INCREASED: College name text size on mobile */
    .logo-name {
        font-size: 1rem !important;
        white-space: normal;
        word-break: normal;
        max-width: none;
        line-height: 1.2;
        display: inline-block;
        font-weight: bold;
    }
    
    /* Keep navbar sticky on mobile */
    .navbar {
        position: sticky;
        top: 0;
    }
    
    /* Drawer adjustments */
    .nav-drawer {
        width: 85%;
        max-width: 320px;
    }
    
    .drawer-header {
        padding: 1.2rem;
    }
    
    /* INCREASED: Drawer logo image size */
    .drawer-logo img {
        width: 48px !important;
        height: 48px !important;
    }
    
    /* INCREASED: Drawer college name text size */
    .drawer-logo span {
        font-size: 1rem !important;
        line-height: 1.3;
        font-weight: bold;
    }
    
    /* Close button - ensure no background on mobile too */
    .close-drawer {
        font-size: 28px;
        width: 40px;
        height: 40px;
        background: transparent !important;
    }
}

/* Small Mobile Devices (600px and below) */
@media (max-width: 600px) {
    .navbar {
        padding: 0.7rem 1rem;
    }
    
    .logo-area {
        gap: 10px;
    }
    
    /* INCREASED: Logo image size on small mobile */
    .logo-area img {
        width: 45px !important;
        height: 45px !important;
    }
    
    /* INCREASED: College name text size on small mobile */
    .logo-name {
        font-size: 0.95rem !important;
        white-space: normal;
        line-height: 1.2;
        max-width: 200px;
    }
    
    #menuToggle {
        font-size: 28px;
    }
    
    /* Drawer adjustments for small screens */
    .nav-drawer {
        width: 85%;
        max-width: 300px;
    }
    
    .drawer-header {
        padding: 1rem;
    }
    
    /* INCREASED: Drawer logo image size */
    .drawer-logo img {
        width: 45px !important;
        height: 45px !important;
    }
    
    /* INCREASED: Drawer college name text size */
    .drawer-logo span {
        font-size: 0.95rem !important;
    }
    
    .close-drawer {
        font-size: 26px;
        width: 38px;
        height: 38px;
    }
    
    .nav-drawer a {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .nav-drawer button {
        margin: 0.4rem 1.2rem;
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}

/* Medium Mobile Devices (480px and below) */
@media (max-width: 480px) {
    .navbar {
        padding: 0.6rem 0.8rem;
    }
    
    .logo-area {
        gap: 10px;
    }
    
    /* INCREASED: Logo image size on medium mobile */
    .logo-area img {
        width: 42px !important;
        height: 42px !important;
    }
    
    /* INCREASED: College name text size on medium mobile */
    .logo-name {
        font-size: 0.9rem !important;
        white-space: normal;
        line-height: 1.2;
        max-width: 180px;
    }
    
    #menuToggle {
        font-size: 26px;
    }
    
    /* Drawer adjustments */
    .nav-drawer {
        width: 85%;
        max-width: 280px;
    }
    
    .drawer-header {
        padding: 0.9rem;
    }
    
    /* INCREASED: Drawer logo image size */
    .drawer-logo img {
        width: 42px !important;
        height: 42px !important;
    }
    
    /* INCREASED: Drawer college name text size */
    .drawer-logo span {
        font-size: 0.9rem !important;
    }
    
    .close-drawer {
        font-size: 24px;
        width: 36px;
        height: 36px;
    }
    
    .nav-drawer a {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .nav-drawer button {
        margin: 0.3rem 1.2rem;
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* Extra Small Devices (375px and below) */
@media (max-width: 375px) {
    .logo-area img {
        width: 38px !important;
        height: 38px !important;
    }
    
    /* INCREASED: College name text size on extra small */
    .logo-name {
        font-size: 0.85rem !important;
        max-width: 160px;
    }
    
    .drawer-logo img {
        width: 38px !important;
        height: 38px !important;
    }
    
    .drawer-logo span {
        font-size: 0.85rem !important;
    }
    
    .nav-drawer {
        width: 90%;
    }
}

/* Landscape Mode for Mobile */
@media (max-width: 800px) and (orientation: landscape) {
    .navbar {
        padding: 0.5rem 1rem;
    }
    
    .logo-area img {
        width: 40px !important;
        height: 40px !important;
    }
    
    .logo-name {
        font-size: 0.9rem !important;
        white-space: normal;
    }
    
    .nav-drawer {
        overflow-y: auto;
    }
    
    .nav-drawer a {
        padding: 0.6rem 1rem;
    }
    
    .drawer-header {
        padding: 0.8rem;
    }
    
    .drawer-logo img {
        width: 40px !important;
        height: 40px !important;
    }
    
    .drawer-logo span {
        font-size: 0.9rem !important;
    }
}

/* ===== ADDITIONAL UTILITIES ===== */

/* Prevent body scroll when drawer is open */
body.drawer-open {
    overflow: hidden;
}

/* Smooth transitions for all interactive elements */
.navbar, .nav-drawer, .overlay, button, a {
    transition: all 0.3s ease;
}

/* Focus styles for accessibility */
.nav-center a:focus,
.nav-drawer a:focus,
button:focus {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
}

/* Custom scrollbar for drawer */
.nav-drawer::-webkit-scrollbar {
    width: 4px;
}

.nav-drawer::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.nav-drawer::-webkit-scrollbar-thumb {
    background: #ffd700;
    border-radius: 4px;
}

/* Hover effects for desktop only */
@media (hover: hover) {
    .nav-center a:hover::after {
        width: 100%;
    }
    
    .close-drawer:hover {
        transform: rotate(90deg);
        color: #ffd700;
        background: transparent !important;
    }
    
    .nav-drawer a:hover {
        background: rgba(255, 215, 0, 0.1);
        border-left-color: #ffd700;
        padding-left: 1.8rem;
    }
    
    .nav-drawer button:hover {
        transform: translateX(5px);
    }
}

/* Active state for touch devices */
@media (hover: none) {
    .nav-center a:active,
    .nav-drawer a:active,
    button:active {
        opacity: 0.7;
        transform: scale(0.98);
    }
    
    .close-drawer:active {
        transform: scale(0.95);
        background: transparent !important;
    }
}

/* Ensure close button never has background on any device */
.close-drawer,
.close-drawer:hover,
.close-drawer:active,
.close-drawer:focus {
    background: transparent !important;
    background-color: transparent !important;
    outline: none !important;
}