/* Basic Reset & Defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* Accessibility: Skip Link */
.skip-link {
    position: absolute;
    top: -40px; /* Hide off-screen */
    left: 0;
    background: #000;
    color: white;
    padding: 8px;
    z-index: 10000;
    text-decoration: none;
}
.skip-link:focus {
    top: 0; /* Show on focus */
}


/* Header */
header {
    background: #004080; /* Example school color */
    color: #fff;
    
    border-bottom: 5px solid #ffa500; /* Accent color */
}

header .top-bar {
    background: #003366;
    padding: 5px 20px;
    text-align: right;
    font-size: 0.9em;
}

header .logo-area {
    display: flex;
    align-items: center;
    padding: 15px 20px;
}

header #logo {
    max-height: 80px;
    margin-right: 20px;
}

header h1 {
    margin: 0;
    font-size: 2em;
}
header .logo-area p {
    margin: 0;
    font-size: 0.9em;
}


/* Navigation */
#main-nav {
    background: #116503; /* Slightly lighter than header */
    padding: 0;
}

#main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* For desktop */
    justify-content: center;
}

#main-nav ul li {
    position: relative; /* For dropdowns */
}

#main-nav ul li a {
    display: block;
    color: #fff;
    padding: 15px 20px;
    text-decoration: none;
}

#main-nav ul li a:hover, #main-nav ul li.active a {
    background: #004080;
}

/* Basic Dropdown Styling */
#main-nav ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #0055A0;
    min-width: 200px;
    z-index: 1000;
    flex-direction: column; /* Stack dropdown items */
}

#main-nav ul li:hover > ul {
    display: block;
}

#main-nav ul ul li a {
    padding: 10px 15px;
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: #004080;
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 1.2em;
    cursor: pointer;
}

/* Main Content Area */
main {
    padding: 20px;
    background: #fff;
    min-height: 60vh; /* Ensure footer isn't too high on short pages */
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
}

section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 5px;
}
section h2 {
    color: #004080;
    margin-bottom: 15px;
    border-bottom: 2px solid #ffa500;
    padding-bottom: 5px;
}

/* Homepage Specific */
#hero-banner {
    text-align: center;
    padding: 0; /* Remove default section padding if image is full-width */
    position: relative;
}
#hero-banner img { display: block; } /* Remove space below image */
.hero-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 20px;
    border-radius: 5px;
}
.hero-text h2 { color: #fff; border-bottom: none; }


#quick-links {
    text-align: center;
}
.quick-link-btn {
    display: inline-block;
    background: #ffa500;
    color: #333;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}
.quick-link-btn:hover {
    background: #cc8400;
    color: #fff;
}

.announcement-item {
    border-bottom: 1px dotted #ccc;
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.announcement-item:last-child {
    border-bottom: none;
}

.gallery-preview {
    display: flex;
    justify-content: space-around;
    gap: 10px;
}
.gallery-preview img {
    width: 30%;
    border: 2px solid #ddd;
    border-radius: 4px;
}

/* About Page */
.profile-pic {
    float: left;
    margin-right: 15px;
    margin-bottom: 10px;
    width: 150px; /* Adjust as needed */
    height: auto;
    border-radius: 50%;
}
.staff-member {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}
.staff-member img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}
.staff-member h3 { margin: 0 0 5px 0; }
.staff-member p { margin: 0; font-size: 0.9em; }


/* Contact Page */
.contact-info, .map-container, .contact-form-section {
    margin-bottom: 20px;
}
.map-container iframe {
    width: 100%;
    max-width: 600px; /* Control max size */
    height: 400px;
    border: 0;
}
#contactForm div {
    margin-bottom: 15px;
}
#contactForm label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
#contactForm input[type="text"],
#contactForm input[type="email"],
#contactForm textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}
#contactForm textarea {
    height: 120px;
    resize: vertical;
}
#contactForm button {
    background: #0066cc;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}
#contactForm button:hover {
    background: #0052a3;
}
.error { color: red; font-weight: bold; }
.success { color: green; font-weight: bold; }


/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0 10px;
    margin-top: 30px;
}
.footer-content {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}
.footer-section {
    flex: 1;
    min-width: 200px; /* Ensure sections don't get too squished */
    margin: 10px;
    text-align: left;
}
.footer-section h4 {
    color: #ffa500;
    margin-bottom: 10px;
}
.footer-section ul {
    list-style: none;
    padding: 0;
}
.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    line-height: 1.8;
}
.footer-section ul li a:hover {
    color: #fff;
}
.footer-section p {
    color: #ccc;
    font-size: 0.9em;
    line-height: 1.8;
}
.copyright {
    border-top: 1px solid #444;
    padding-top: 15px;
    margin-top: 15px;
    font-size: 0.85em;
    color: #aaa;
}
.copyright p { margin: 5px 0; }
.copyright a { color: #ccc; }
.copyright a:hover { color: #fff; }


/* Responsive Design (Basic Example) */
@media (max-width: 768px) {
    header .logo-area {
        flex-direction: column;
        text-align: center;
    }
    header #logo {
        margin-bottom: 10px;
    }

    .menu-toggle {
        display: block; /* Show hamburger on mobile */
        width: 100%;
        text-align: left;
    }

    #main-nav ul {
        display: none; /* Hide nav links by default */
        flex-direction: column; /* Stack them vertically */
        width: 100%;
    }
    #main-nav ul.active {
        display: flex; /* Show when .active class is added by JS */
    }
    #main-nav ul li {
        width: 100%;
        text-align: center;
    }
    #main-nav ul ul { /* Submenu styling for mobile */
        position: static; /* No longer absolute */
        background: #004c90; /* Slightly different bg for subitems */
        width: 100%;
    }
    #main-nav ul li:hover > ul { /* Submenu display on hover (might need click for touch) */
        display: block;
    }


    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-section {
        text-align: center; /* Center text in footer sections on mobile */
        margin-bottom: 20px;
    }
    .gallery-preview {
        flex-direction: column;
        align-items: center;
    }
    .gallery-preview img {
        width: 80%; /* Larger on mobile stack */
        margin-bottom: 10px;
    }
}

/* ADA Compliance: Focus Visible (for keyboard navigation) */
*:focus-visible {
  outline: 3px solid #ffa500; /* Or your preferred focus indicator style */
  outline-offset: 2px;
}