/* Base Styles */
:root {
    --primary-color: #000;
    --secondary-color: #333;
    --accent-color: #666;
    --background-color: #fff;
    --header-color: #000;
    --light-gray: #f2f2f2;
    --text-color: #000;
    --medium-gray: #ddd;
    --dark-gray: #888;
    --font-primary: 'Helvetica Neue', Arial, sans-serif;
    --font-secondary: 'Georgia', serif;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--primary-color);
    background-color: var(--background-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--accent-color);
}

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

/* Header Styles - Black background with white text */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--primary-color);
    color: var(--background-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 60px;
    margin-right: 1rem;
}

.logo-text h1 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: var(--background-color);
}

.logo-text h2 {
    font-size: 1rem;
    font-weight: 400;
    color: var(--medium-gray);
}

/* Navigation Styles */
.main-menu {
    display: flex;
    list-style: none;
}

.main-menu li {
    margin-left: 1.5rem;
    position: relative;
}

.main-menu a {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 0.5rem 0;
    display: block;
    color: var(--background-color);
}

.main-menu a:hover {
    color: var(--medium-gray);
}

/* Main Navigation Improvements */
.main-menu>li>a {
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.main-menu>li>a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* Dropdown Menu Improvements */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1;
    border-radius: 4px;
    overflow: hidden;
}

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

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
    white-space: nowrap; /* Prevent text from wrapping */
}

.dropdown-content a:hover {
    background-color: var(--primary-color);
    color: white;
}

.wider-dropdown {
    min-width: 280px;
    right: 0;
    left: auto;
}

/* Align dropdown of the last nav item to the right to prevent overflow */
.main-menu > li:last-child > .dropdown-content {
    right: 0;
    left: auto;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 70vh;
    overflow: hidden;
    background-color: var(--light-gray);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/hero-bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.current {
    opacity: 1;
}

.hero-content {
    width: 100%;
    padding: 0 5%;
    display: flex;
    justify-content: flex-start;
}

.hero-text {
    max-width: 600px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2.5rem;
    border-left: 5px solid var(--primary-color);
}

.hero-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--background-color);
    font-weight: 500;
    border: 2px solid var(--primary-color);
    transition: all var(--transition-speed);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.slide-controls {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
}

.slide-controls button {
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    width: 3rem;
    height: 3rem;
    margin-left: 0.5rem;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.slide-controls button:hover {
    background-color: var(--background-color);
}

/* Latest News Section */
.latest-news {
    padding: 4rem 5%;
    background-color: var(--background-color);
}

.latest-news h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.latest-news h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.news-item {
    border: 1px solid var(--medium-gray);
    transition: transform var(--transition-speed);
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-item h3 {
    padding: 1rem 1rem 0.5rem;
    font-size: 1.2rem;
}

.news-item p {
    padding: 0 1rem 1rem;
    color: var(--secondary-color);
}

.read-more {
    display: block;
    padding: 0.5rem 1rem 1rem;
    font-weight: 500;
    color: var(--primary-color);
}

.read-more:hover {
    text-decoration: underline;
}

/* Featured Content Section */
.featured-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 4rem 5%;
    background-color: var(--light-gray);
}

.feature {
    text-align: center;
    padding: 2rem;
    background-color: var(--background-color);
    border: 1px solid var(--medium-gray);
    transition: transform var(--transition-speed);
}

.feature:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature p {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.feature-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    font-weight: 500;
    transition: all var(--transition-speed);
}

.feature-link:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
}

/* Upcoming Events Section */
.upcoming-events {
    padding: 4rem 5%;
    background-color: var(--background-color);
}

.upcoming-events h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.upcoming-events h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.event {
    display: flex;
    margin-bottom: 1.5rem;
    border: 1px solid var(--medium-gray);
    transition: transform var(--transition-speed);
}

.event:hover {
    transform: translateX(5px);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 1rem;
    background-color: var(--primary-color);
    color: var(--background-color);
}

.event-date .month {
    font-size: 0.9rem;
    font-weight: 500;
}

.event-date .day {
    font-size: 2rem;
    font-weight: 700;
}

.event-details {
    padding: 1rem;
}

.event-details h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.event-meta {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--accent-color);
}

.view-all {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 500;
    color: var(--primary-color);
}

.view-all:hover {
    text-decoration: underline;
}

/* Footer Styles - Black background with white text */
footer {
    background-color: var(--primary-color);
    color: var(--background-color);
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo-img {
    height: 50px;
    margin-right: 1rem;
}

.footer-logo-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    color: var(--background-color);
}

.footer-logo-text h4 {
    font-size: 0.9rem;
    color: var(--medium-gray);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
}

.footer-column {
    margin-right: 3rem;
    margin-bottom: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
    color: var(--background-color);
}

.footer-column h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--background-color);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    font-size: 0.9rem;
    color: var(--medium-gray);
}

.footer-column a:hover {
    color: var(--background-color);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: var(--background-color);
    border-radius: 50%;
    transition: background-color var(--transition-speed);
}

.footer-social a:hover {
    background-color: var(--accent-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--secondary-color);
    font-size: 0.8rem;
    color: var(--medium-gray);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: var(--medium-gray);
}

.footer-legal a:hover {
    color: var(--background-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-text h2 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }

    .logo-container {
        margin-bottom: 1rem;
    }

    .main-menu {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%; /* Ensure main menu takes full width if needed */
    }

    .main-menu li {
        margin: 0; /* Remove individual li margins if 'a' tag handles all spacing */
        width: 100%; /* Make li take full width for block-level 'a' */
        text-align: center; /* Center text if desired */
    }

    .main-menu a { /* Applies to all direct 'a' children in .main-menu li */
        font-size: 0.9rem;
        font-weight: 500;
        letter-spacing: 0.05em;
        padding: 0.8rem 1rem; /* Increased padding for better touch targets */
        display: block;
        color: var(--background-color);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Optional: separator */
    }
    .main-menu li:last-child a {
        border-bottom: none; /* Optional: remove border from last item */
    }

    .main-menu a:hover {
        background-color: rgba(255, 255, 255, 0.1); /* Subtle hover for mobile */
    }
    
    /* Mobile Dropdown Styles */
    .main-menu .dropdown .dropdown-content {
        display: none; /* Hidden by default */
        position: static; /* Overrides desktop absolute positioning */
        background-color: rgba(0,0,0,0.2); /* Slightly different background for distinction */
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        overflow: hidden; /* Clear floats if any, not strictly needed here */
    }

    .main-menu .dropdown .dropdown-content.show {
        display: block; /* Show when .show class is added by JS */
    }

    .main-menu .dropdown .dropdown-content a {
        color: var(--background-color); /* Ensure text color matches mobile menu */
        padding: 0.8rem 1.5rem; /* Indent slightly more or keep consistent */
        /* display: block; is inherited or can be re-declared */
        /* border-top: 1px solid rgba(255,255,255,0.1); Optional: separator for dropdown items */
    }
    
    .main-menu .dropdown .dropdown-content a:hover {
        background-color: rgba(255, 255, 255, 0.15);
    }

    .hero-slider {
        height: 60vh;
    }

    .hero-text {
        padding: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        margin-top: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 50vh;
    }

    .hero-text h2 {
        font-size: 1.5rem;
    }

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

    .featured-content {
        grid-template-columns: 1fr;
    }

    .event {
        flex-direction: column;
    }

    .event-date {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
    }

    .event-date .month {
        margin-right: 0.5rem;
    }
}

/* Logo Link Styles */
.logo-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.logo-link:hover {
    color: var(--background-color);
}