:root {
    --primary-color: #003875;
    --secondary-color: #00a6d6;
    --accent-color: #ff9800;
    --text-color: #333;
    --light-gray: #e6e2e2;
    --dark-gray: #666;
    --white: #ffffff;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

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

/* Header Styles */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.404);
}

.top-bar {
    background: var(--primary-color);
    padding: 0.5rem 0;
    color: var(--white);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.language-selector button {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-bar {
    display: flex;
    gap: 0.5rem;
}

.search-bar input {
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
    width: 250px;
}

.search-bar button {
    background: var(--secondary-color);
    border: none;
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

/* Menu Styles */
.main-nav {
    background-color: #1B365D; /* Navy background */
    padding: 15px 0;
    font-family: 'Open Sans', sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav .logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff; /* White text */
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-nav .logo a:hover {
    color: #FF6B6B; /* Coral hover effect */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: #ffffff; /* White text */
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 10px 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-links li a:hover {
    background-color: #FF6B6B; /* Coral background on hover */
    color: #ffffff; /* White text on hover */
    border-radius: 4px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,56,117,0.9), rgba(0,56,117,0.9)), url('images/hero-bg.jpg');
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Filter Section */
.filter-section {
    background: var(--light-gray);
    padding: 2rem 0;
}

.filters {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: var(--dark-gray);
}

.filter-group select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 200px;
}

.filter-btn {
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    height: fit-content;
}

/* Events Grid */
.upcoming-events {
    padding: 4rem 0;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.event-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
}

.event-date {
    background: var(--primary-color);
    color: var(--white);
    padding: 1.5rem;
    text-align: center;
    min-width: 100px;
}

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

.event-content {
    padding: 1.5rem;
    flex: 1;
}

.event-type {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.event-details {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.register-btn {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}

/* Recordings Section */
.recordings {
    padding: 4rem 0;
    background: var(--light-gray);
}

.recordings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.recording-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.recording-thumbnail {
    position: relative;
    height: 200px;
}

.recording-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.recording-thumbnail:hover .play-btn {
    opacity: 1;
}

.recording-content {
    padding: 1.5rem;
}

.recording-type {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.recording-meta {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* Footer */
.main-footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-links ul {
    list-style: none;
    margin-top: 1rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
}

.subscribe-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.subscribe-form input {
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
    flex: 1;
}

.subscribe-form button {
    background: var(--accent-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .event-card {
        flex-direction: column;
    }

    .event-date {
        padding: 1rem;
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        min-width: auto;
    }

    .event-date .day {
        font-size: 1.5rem;
    }

    .recording-thumbnail {
        height: 150px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .subscribe-form {
        flex-direction: column;
    }

    /* Mobile Menu Button */
    .mobile-menu-btn {
        display: none;
        background: none;
        border: none;
        color: #ffffff;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #1B365D; /* Navy background */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 20px 0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

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

    .nav-links li {
        text-align: center;
        margin: 10px 0;
    }

    .mobile-menu-btn {
        display: block;
    }
}