/* ===================================
   HEADER STYLES - Clean Rebuild
   =================================== */

/* Ticker/Marquee Bar */
.header-ticker {
    background-color: #11396a;
    color: #81ca00;
    padding: 8px 0;
    overflow: hidden;
    font-family: 'Quicksand', sans-serif;
}

.ticker-content {
    display: flex;
    align-items: center;
    animation: ticker-scroll 20s linear infinite;
    white-space: nowrap;
}

.ticker-content:hover {
    animation-play-state: paused;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.ticker-text {
    font-size: 16px;
    font-weight: 700;
    padding: 0 50px;
}

.ticker-text span {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.9;
}

/* Main Header */
.gnps-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
    flex-shrink: 0;
}

.header-logo {
    height: 70px;
    width: auto;
}

.header-school-name {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #11396a;
    line-height: 1.2;
}

.header-school-name small {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #666;
}

/* Desktop Navigation */
.header-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.header-nav-item {
    position: relative;
}

.header-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    text-decoration: none;
    color: #333;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 15px;
    border-radius: 6px;
    transition: all 0.25s ease;
}

.header-nav-link:hover,
.header-nav-link:focus {
    color: #11396a;
    background-color: rgba(17, 57, 106, 0.05);
}

.header-nav-link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.25s ease;
}

.header-nav-item:hover .header-nav-link svg {
    transform: rotate(180deg);
}

/* Desktop Dropdown */
.header-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    min-width: 240px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    border: 1px solid #eee;
    overflow: hidden;
}

.header-nav-item:hover .header-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-dropdown-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.header-dropdown-link {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #444;
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.header-dropdown-link:hover,
.header-dropdown-link:focus {
    background-color: rgba(129, 202, 0, 0.1);
    color: #81ca00;
    padding-left: 25px;
}

/* Enquire Button - Desktop */
.header-enquire-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #81ca00;
    color: #11396a;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.25s ease;
    margin-left: 15px;
    border: none;
    cursor: pointer;
}

.header-enquire-btn:hover {
    background-color: #6ba300;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(129, 202, 0, 0.4);
}

/* Mobile Hamburger */
.header-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.25s ease;
}

.header-hamburger:hover {
    background-color: rgba(17, 57, 106, 0.1);
}

.header-hamburger-line {
    width: 24px;
    height: 2px;
    background-color: #11396a;
    border-radius: 2px;
    transition: all 0.25s ease;
}

.header-hamburger-line:nth-child(2) {
    margin: 5px 0;
}

/* Mobile Nav Overlay */
.header-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.header-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Navigation Drawer */
.header-mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background-color: #11396a;
    z-index: 1002;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.header-mobile-nav.active {
    transform: translateX(0);
}

.header-mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: #0d2a4a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-mobile-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-mobile-logo img {
    width: 40px;
    height: 40px;
}

.header-mobile-logo span {
    color: #ffffff;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 14px;
}

.header-mobile-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.25s ease;
}

.header-mobile-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.header-mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 10px 0;
    overflow-y: auto;
    flex: 1;
}

.header-mobile-nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 15px;
    transition: background-color 0.2s ease;
}

.header-mobile-nav-link:hover {
    background-color: rgba(129, 202, 0, 0.15);
}

.header-mobile-nav-link svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.header-mobile-nav-link.active svg {
    transform: rotate(180deg);
}

/* Mobile Dropdown */
.header-mobile-dropdown {
    background-color: rgba(0, 0, 0, 0.2);
    display: none;
}

.header-mobile-dropdown.active {
    display: block;
}

.header-mobile-dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-mobile-dropdown-link {
    display: block;
    padding: 12px 20px 12px 45px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.header-mobile-dropdown-link:hover {
    background-color: rgba(129, 202, 0, 0.2);
    color: #81ca00;
    padding-left: 50px;
}

.header-mobile-footer {
    padding: 20px;
    background-color: #0d2a4a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.header-mobile-enquire {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background-color: #81ca00;
    color: #11396a;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.header-mobile-enquire:hover {
    background-color: #ffffff;
}

/* ===================================
   RESPONSIVE STYLES
   =================================== */

@media (max-width: 992px) {
    .header-nav {
        display: none;
    }
    
    .header-enquire-btn-desktop {
        display: none;
    }
    
    .header-hamburger {
        display: flex;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 10px 15px;
    }
    
    .header-logo {
        height: 55px;
    }
    
    .header-school-name {
        font-size: 14px;
    }
    
    .header-school-name small {
        font-size: 10px;
    }
    
    .ticker-text {
        font-size: 14px;
        padding: 0 40px;
    }
}

@media (max-width: 480px) {
    .header-school-name {
        display: none;
    }
}
