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

:root {
    --primary-color: #003366; /* Deep Blue for contrast */
    --secondary-color: #FFD700; /* Gold for highlights */
    --text-color: #1A1A1A;
    --bg-color: #FFFFFF;
    --alternate-bg: #F4F4F4;
    --link-color: #0056b3;
    --focus-color: #FF8C00; /* Dark Orange for focus indicators */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 18px; /* Larger base font for readability */
}

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

/* Accessibility: Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Focus Indicators */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 3px solid var(--focus-color);
    outline-offset: 2px;
}

/* Header and Navigation */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 0;
}

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

.logo img {
    max-height: 80px;
    width: auto;
}

#menu-toggle {
    display: none;
    background: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    padding: 10px 15px;
    font-weight: bold;
    cursor: pointer;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border-bottom: 2px solid transparent;
}

nav ul li a:hover, nav ul li a:focus {
    border-bottom: 2px solid var(--secondary-color);
}

/* Main Content Sections */
main {
    padding: 40px 0;
}

.content-section {
    padding: 60px 0;
}

.alternate-bg {
    background-color: var(--alternate-bg);
}

h1, h2, h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; border-bottom: 2px solid var(--secondary-color); display: inline-block; margin-bottom: 30px; }

p {
    margin-bottom: 20px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.8)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 0;
}

.hero-section h1 { color: white; }
.tagline { font-size: 1.5rem; font-weight: bold; margin-bottom: 40px; }

/* Audio Player Styles */
.player-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto;
    border: 2px solid var(--secondary-color);
}

.player-btn {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 20px;
}

.volume-control {
    margin: 20px 0;
}

.volume-control label {
    display: block;
    margin-bottom: 10px;
}

/* Grid and Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card, .news-item, .program-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-top: 5px solid var(--primary-color);
}

.image-box img, .card img, .news-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 15px;
}

.image-caption {
    font-style: italic;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

/* Schedule Table */
.schedule-table-container {
    overflow-x: auto;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.schedule-table th, .schedule-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.schedule-table thead th {
    background-color: var(--primary-color);
    color: white;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.btn:hover, .btn:focus {
    background: #004080;
}

/* Footer */
footer {
    background-color: #222;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
    border-bottom: none;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
}

.footer-section a:hover, .footer-section a:focus {
    color: white;
    text-decoration: underline;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    #menu-toggle {
        display: block;
    }

    nav {
        display: none;
        width: 100%;
        margin-top: 20px;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 10px 0;
    }

    h1 { font-size: 2rem; }
}
