/* Header and Layout Styles for BKPSDM Website */

/* Base header styles */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 50;
    transition: all 0.3s ease;
}

/* Landing page specific styles */
body.landing-page #main-header {
    background-color: transparent;
    box-shadow: none;
}

body.landing-page #main-header.scrolled {
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Text styles for landing page header */
body.landing-page .site-title,
body.landing-page .site-subtitle,
body.landing-page .nav-link {
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

body.landing-page #main-header.scrolled .site-title,
body.landing-page #main-header.scrolled .site-subtitle,
body.landing-page #main-header.scrolled .nav-link {
    color: inherit;
    text-shadow: none;
}

/* Style for submenu on landing page */
.landing-page .submenu a {
    color: #333 !important;
    text-shadow: none !important;
}

/* Non-landing page header is always solid */
body:not(.landing-page) #main-header {
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Ensure text is always visible on non-landing pages */
body:not(.landing-page) .site-title,
body:not(.landing-page) .site-subtitle,
body:not(.landing-page) .nav-link {
    color: inherit;
    text-shadow: none;
}

/* Hero section styles */
.hero-section {
    margin-top: 0; /* Default for mobile: no negative margin */
}

@media (min-width: 1024px) {
    .hero-section {
        margin-top: -140px; /* On desktop, move up to overlap with header */
    }
}

body:not(.landing-page) .hero-section {
    margin-top: 0; /* No negative margin on non-landing pages */
}

/* Content padding adjustments */
@media (max-width: 1023px) {
    main {
        padding-top: 180px; /* Larger padding for mobile */
    }
}

@media (min-width: 1024px) {
    main {
        padding-top: 140px; /* Slightly smaller padding for desktop */
    }
}

/* Gradient overlay for carousel text readability */
.carousel-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
}
