﻿/* --- VARIABLES & GLOBAL STYLES --- */
:root {
    --primary: #2e7d32;
    --secondary: #1b5e20;
    --accent: #81c784;
    --light: #f1f8e9;
    --dark: #333;
    --white: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    margin: 3rem 0;
}

/* --- TYPOGRAPHY & HEADINGS --- */
h1 {
    font-size: 2.2rem;
    margin: 0;
}

h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

    h2::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100px;
        height: 3px;
        background-color: var(--accent);
    }

.rtl h2::after {
    left: auto;
    right: 0;
}

h3 {
    margin-bottom: 1mm;
    margin-top: 2mm;
    color: var(--secondary);
}

/* --- HEADER & NAVIGATION (WITH LOGO) --- */
header {
    background-color: var(--primary);
    color: var(--white);
    padding: 2rem 1rem; /* Added more padding for the logo */
    text-align: center;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    /* Styles for the new logo */
    .header-content img {
        max-height: 100px; /* Control the logo size */
        width: auto;
        margin-bottom: 1rem; /* Space between logo and title */
        border-radius: 50%; /* Makes the logo circular */
        background-color: var(--white); /* White background for transparent images */
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }

.languages {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
    background-color: var(--light);
}

    .languages button {
        background: var(--white);
        border: 1px solid var(--accent);
        padding: 0.5rem 1rem;
        margin: 0 0.5rem;
        cursor: pointer;
        border-radius: 4px;
        transition: all 0.3s;
        font-size: 1rem;
    }

        .languages button:hover, .languages button.active {
            background: var(--accent);
            color: var(--white);
            border-color: var(--secondary);
        }

.navbar {
    background-color: var(--secondary);
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-links {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem 0;
}

    .nav-links li {
        margin: 0 1rem;
    }

    .nav-links a {
        color: var(--white);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s;
        padding: 0.5rem;
    }

        .nav-links a:hover {
            color: var(--accent);
        }

/* --- CONTENT & CARD STYLES --- */
.card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.date-venue {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

    .date-venue > .card {
        flex: 1;
        min-width: 300px;
    }

.topics h3 {
    margin-top: 1.5rem;
}

.rtl {
    direction: rtl;
    text-align: right;
}

/* --- DYNAMIC CONTENT VISIBILITY --- */
.tab-content {
    display: none;
}

    .tab-content.active {
        display: block;
    }

.content-section {
    display: none;
}

    .content-section.visible-section {
        display: block;
        animation: fadeIn 0.5s ease-in-out;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- MOBILE & RESPONSIVE STYLES --- */
.mobile-menu-toggle {
    display: none;
}

#menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    padding: 5px;
}

.dot {
    width: 6px;
    height: 6px;
    background-color: var(--white);
    border-radius: 50%;
    display: block;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    .navbar {
        justify-content: flex-end;
        padding: 0.75rem 1rem;
        min-height: 50px;
    }

    .mobile-menu-toggle {
        display: block;
        position: absolute;
        left: 1rem;
    }

    .nav-links {
        display: none !important; /* Hide by default on mobile */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--secondary);
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }

        .nav-links.show {
            display: flex !important; /* Show when toggled */
        }

        .nav-links li {
            width: 100%;
            text-align: center;
        }

        .nav-links a {
            display: block;
            padding: 1rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }
}



/* --- ANNOUNCEMENT BANNER STYLES --- */
.announcement-banner {
    padding: 1.5rem 2rem;
    margin: 0 auto;
    max-width: 1200px;
    background-color: #fffbe6; /* Light yellow background */
    border: 1px solid #ffe58f; /* Yellow border */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-top: 2rem;
    margin-bottom: -1rem; /* Pull the main container up slightly */
}

    .announcement-banner h2 {
        color: #9a7d32; /* Dark yellow/brown text */
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

        .announcement-banner h2::after {
            display: none; /* Hide the default underline for this specific h2 */
        }

    .announcement-banner p {
        font-size: 1.1rem;
        color: #5c4b1d;
    }

/* Style for the updated date inside the main content */
.updated-date {
    color: var(--primary); /* Use the main green color */
    background-color: #e8f5e9; /* Light green highlight */
    padding: 2px 6px;
    border-radius: 4px;
}


/* --- ANNOUNCEMENT BANNER & TOGGLE MAP STYLES --- */

/* Style for the button container */
.button-group {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap; /* Buttons can wrap on small screens */
    gap: 0.75rem; /* Space between buttons */
}

/* Common style for buttons in the group */
.agenda-button, .map-toggle-btn {
    display: inline-block;
    padding: 10px 20px;
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    border: none; /* Make sure button elements don't have a border */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

    .agenda-button:hover, .map-toggle-btn:hover {
        transform: translateY(-2px); /* Slight lift on hover */
    }

/* Specific color for the agenda button */
.agenda-button {
    background-color: var(--primary); /* Main green */
}

    .agenda-button:hover {
        background-color: var(--secondary);
    }

/* Specific color for the map toggle button */
.map-toggle-btn {
    background-color: #546e7a; /* A neutral blue-grey */
}

    .map-toggle-btn:hover {
        background-color: #37474f; /* Darker grey on hover */
    }


/* The map container is hidden by default */
.announcement-map {
    display: none;
    margin-top: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

    /* This class will be added by JavaScript to show the map */
    .announcement-map.map-visible {
        display: block;
        animation: fadeIn 0.5s; /* Use existing fadeIn animation */
    }

/* Responsive map embed container (no changes needed here) */
.map-embed-container {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio */
}

    .map-embed-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }


.call-now-btn {
    background-color: #0288d1; /* A distinct, friendly blue */
}

    .call-now-btn:hover {
        background-color: #01579b; /* Darker blue on hover */
    }

    /* Also add the new class to the shared button styles for hover effects */
    .agenda-button:hover, .map-toggle-btn:hover, .call-now-btn:hover {
        transform: translateY(-2px); /* Slight lift on hover */
    }

/* And ensure it shares the base styles */
.agenda-button, .map-toggle-btn, .call-now-btn {
    display: inline-block;
    padding: 10px 20px;
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center; /* Ensures text is centered */
}
