﻿/* Header + logo */
.site-header {
    text-align: center;
    margin-bottom: 0.5rem;
    background: transparent;
}

/* White box around logo */
.nav-logo {
    display: inline-block;
    background: white;
    padding: 1.5rem;
    margin: 1rem auto;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Keep the logo at its natural size, but scale down on small viewports */
.nav-logo img {
    display: block;
    margin: 0;
    height: auto; /* preserve natural height */
    width: auto; /* preserve natural width */
    max-width: 100%; /* allow it to scale down on narrow screens */
}

/* Main nav (unchanged layout otherwise) */
.main-nav {
    background: #fff;
    border-bottom: 2px solid #800000;
    font-family: Arial, sans-serif;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: #800000;
    cursor: pointer;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

    .nav-menu li {
        position: relative;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 0.75rem;
        color: #800000;
        text-decoration: none;
        font-weight: bold;
        transition: background 0.2s, color 0.2s;
    }

        .nav-menu a:hover,
        .nav-menu .has-submenu:hover > a {
            background: #800000;
            color: #fff;
        }

.has-submenu > a:after {
    content: " ▼";
    font-size: 0.7em;
}

.submenu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: #fff;
    border: 1px solid #800000;
    min-width: 180px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu {
    display: block;
}

.submenu li a {
    padding: 0.75rem 1rem;
    color: #800000;
    font-weight: normal;
}

    .submenu li a:hover {
        background: #800000;
        color: #fff;
    }

    .hero-section {
        background: linear-gradient(135deg, #720000 0%, #d10101 100%);
        color: white;
        padding: 30px 40px;
        border-radius: 20px;
        box-shadow: 0 10px 40px rgba(0, 64, 128, 0.2);
        text-align: center;
        margin-bottom: 20px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        font-weight: 700;
        margin: 0 0 10px 0;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    }

    .hero-subtitle {
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: 1.5rem;
        color: white;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    }

    .hero-date {
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: 1.5rem;
        color: white;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    }

    .hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    }

/* Mobile Styles */
@media (max-width: 800px) {
    .nav-container {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-toggle {
        display: block;
        margin-left: auto;
        margin-top: 0.5rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        display: none;
        width: 100%;
    }

        .nav-menu.open {
            display: flex;
        }

        .nav-menu li {
            width: 100%;
        }

    .submenu {
        position: static;
        border: none;
        box-shadow: none;
        min-width: 0;
    }

    .has-submenu > a:after {
        content: " ▶";
        float: right;
    }

    .has-submenu.open > .submenu {
        display: flex;
        flex-direction: column;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }
        
    .hero-section {
        padding: 40px 20px;
    }
}
