/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Fixed Background Image */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('/images/aavf_icon.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 1;
    z-index: 0;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Main Container Layout */
.main-container {
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
}

/* System Notification - Sticky at top of left container */
.notification-section {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 40px;
    background-color: #ffd700;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    border-bottom: 2px solid #cca300;
}

.notification-content {
    text-align: center;
    font-weight: bold;
    padding: 0 20px;
    font-size: 0.85rem;
}

/* Navigation Bar */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #1a472a;
    color: white;
    z-index: 998;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.nav-logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 15px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo img {
    height: 50px;
    width: auto;
    border-radius: 50%;
}

.nav-menu {
    display: flex;
    gap: 0;
}

.dropdown {
    position: relative;
}

.dropbtn {
    color: white;
    padding: 20px 25px;
    text-decoration: none;
    display: block;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.dropbtn:hover {
    background-color: #2d5a3f;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Main Content */
.main-content {
    margin-top: 0;
    min-height: calc(100vh - 100px);
    padding: 40px 0 50px 0;
    background-color: rgba(255, 255, 255, 0.95);
    position: relative;
    z-index: 1;
}

.main-content h1 {
    color: #1a472a;
    margin-bottom: 30px;
    border-bottom: 3px solid #1a472a;
    padding-bottom: 10px;
}

.about-section {
    margin-bottom: 40px;
}

.about-section h2 {
    color: #2d5a3f;
    margin-bottom: 15px;
}

.about-section h3 {
    color: #2d5a3f;
    margin: 20px 0 10px 0;
}

.about-content {
    line-height: 1.8;
    color: #555;
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.event-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.event-card.has-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    padding: 0;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.event-card.has-image:hover .event-card-overlay {
    background-color: rgba(0, 0, 0, 0.5);
}

.event-card-overlay {
    position: relative;
    z-index: 1;
    padding: 20px;
    transition: background-color 0.3s;
}

.event-card.has-image .event-card-overlay {
    background-color: rgba(0, 0, 0, 0.6);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-card.has-image h3 {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.event-card.has-image .event-date,
.event-card.has-image .event-location,
.event-card.has-image .event-description {
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.event-card h3 {
    color: #1a472a;
    margin-bottom: 10px;
}

.event-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.event-location {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.event-description {
    color: #555;
    line-height: 1.6;
}

/* News List */
.news-list {
    margin-top: 30px;
}

.news-article {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.news-article h2 {
    color: #1a472a;
    margin-bottom: 10px;
}

.news-meta {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-style: italic;
}

.news-content {
    color: #555;
    line-height: 1.8;
}

/* Footer */
.footer {
    background-color: #1a472a;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 0;
    position: relative;
    z-index: 1;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
}

.modal-content h2 {
    color: #1a472a;
    margin-bottom: 20px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a472a;
    box-shadow: 0 0 5px rgba(26, 71, 42, 0.3);
}

.btn-submit {
    background-color: #1a472a;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #2d5a3f;
}

.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: all 0.3s ease;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        width: 100%;
        height: 100vh;
    }

    .hamburger {
        display: flex;
    }

    .nav-container {
        flex-wrap: wrap;
        position: relative;
    }

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

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

    .dropdown {
        width: 100%;
    }

    .dropbtn {
        width: 100%;
        text-align: left;
    }

    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        background-color: #2d5a3f;
    }

    .dropdown-content a {
        color: white;
        padding-left: 40px;
    }

    .dropdown-content a:hover {
        background-color: #1a472a;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .nav-logo a {
        font-size: 1rem;
    }

    .nav-logo img {
        height: 35px;
    }
}

/* Image Modal */
#imageModal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(128, 128, 128, 0.5);
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.image-modal-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 20px;
}

#modalImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: default;
}
