/* ========== CRITICAL FIX: REMOVE SUBHEADER GAP ========== */
/* Stronger selectors to beat inline styles */
html body {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

@media (max-width: 1024px) {
    html body {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
}

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

@media (max-width: 640px) {
    html body {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
}

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

@media (max-width: 360px) {
    html body {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
}

/* ========== HEADER STYLES - Optimized & Fixed ========== */
/* This file contains ONLY header-related styles */
/* Link this file in all your HTML pages to share the same header design */

/* ========== HEADER GLASS EFFECT ========== */
.header-glass {
    background: linear-gradient(45deg, 
        rgba(128, 0, 0, 0.9) 0%, 
        rgba(90, 0, 0, 0.85) 50%,
        rgba(128, 0, 0, 0.9) 100%);
    backdrop-filter: blur(25px) saturate(200%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 4px 40px rgba(0, 0, 0, 0.4),
        0 8px 60px rgba(128, 0, 0, 0.3),
        inset 0 0 24px rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-glass.scrolled {
    box-shadow: 0 8px 50px rgba(0, 0, 0, 0.6);
}

/* ========== LOGO CONTAINER ========== */
.logo-container-adjusted {
    display: flex;
    align-items: center;
    margin-left: 1.5rem;
}

.logo-link-adjusted {
    display: block;
    text-decoration: none;
}

.logo-adjusted {
    width: 150px;
    height: auto;
    display: block;
    filter: 
        drop-shadow(0 4px 8px rgba(0, 0, 0, 0.8))
        drop-shadow(0 8px 16px rgba(128, 0, 0, 0.6))
        drop-shadow(0 0 20px rgba(0, 0, 0, 0.4));
    transition: all 0.3s ease;
}

.logo-link-adjusted:hover .logo-adjusted {
    transform: scale(1.08);
    filter: 
        drop-shadow(0 6px 12px rgba(0, 0, 0, 0.9))
        drop-shadow(0 12px 24px rgba(128, 0, 0, 0.8))
        drop-shadow(0 0 25px rgba(0, 0, 0, 0.5));
}

/* ========== HAMBURGER MENU BUTTON ========== */
.hamburger-right {
    background: rgba(128, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 1rem;
}

.hamburger-right:hover {
    background: rgba(128, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.hamburger-bars {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.hamburger-bars .bar {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    margin: 3px 0;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.hamburger-right:hover .bar {
    background: #c0c0c0;
}

/* ========== SIDE MENU PANEL ========== */
.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.side-menu.active {
    display: block;
}

.menu-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 350px;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(128, 0, 0, 0.97) 0%, 
        rgba(90, 0, 0, 0.95) 50%,
        rgba(128, 0, 0, 0.97) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.menu-title-area {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.menu-main-title {
    font-family: 'Noto Sans Sinhala', sans-serif;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 0.5rem;
}

.menu-sub-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.menu-category {
    margin-bottom: 1.5rem;
}

.category-title {
    color: #c0c0c0;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(192, 192, 192, 0.3);
}

.category-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(-5px);
}

.item-icon {
    margin-right: 0.8rem;
    font-size: 1.1rem;
}

.menu-contact {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-link {
    display: block;
    padding: 0.9rem;
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.9), rgba(255, 255, 255, 0.9));
    color: #800000;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.contact-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ========== RESPONSIVE STYLES FOR HEADER ========== */
@media (max-width: 1024px) {
    .logo-adjusted {
        width: 180px;
    }
    .logo-container-adjusted {
        margin-left: 1.25rem;
    }
}

@media (max-width: 768px) {
    .logo-adjusted {
        width: 160px;
    }
    .logo-container-adjusted {
        margin-left: 1rem;
    }
    .hamburger-right {
        width: 45px;
        height: 45px;
        margin-right: 0.75rem;
    }
    .menu-panel {
        width: 300px;
        padding: 1.25rem;
    }
}

@media (max-width: 640px) {
    .logo-adjusted {
        width: 140px;
    }
    .logo-container-adjusted {
        margin-left: 0.75rem;
    }
}

@media (max-width: 480px) {
    .logo-adjusted {
        width: 120px;
    }
    .logo-container-adjusted {
        margin-left: 0.5rem;
    }
    .menu-panel {
        width: 280px;
    }
}

@media (max-width: 360px) {
    .logo-adjusted {
        width: 100px;
    }
}
/* Remove all body padding-top that was for subheader */
body {
    padding-top: 0 !important;
}

/* Override any media query rules */
@media (max-width: 1024px) {
    body {
        padding-top: 0 !important;
    }
}
@media (max-width: 768px) {
    body {
        padding-top: 0 !important;
    }
}
@media (max-width: 640px) {
    body {
        padding-top: 0 !important;
    }
}
@media (max-width: 480px) {
    body {
        padding-top: 0 !important;
    }
}
@media (max-width: 360px) {
    body {
        padding-top: 0 !important;
    }
}