:root {
    --primary-dark-bg: #2e2e2e;
    --dark-text: #2e2e2e;
    --light-text: #fff;
    --accent-green: #5F9F72;
    --accent-green-darker: #4A8C60;
    --light-bg-body: #f8f9fa;
    --card-bg: #fff;
    --quiz-button-color: #198754; 
    --quiz-button-hover-color: #156d44;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-bg-body);
    color: var(--dark-text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* padding-top removed; handled by common.css */
}

/* --- FIX: Navbar styling removed --- */
/* The .navbar block was causing the overlap by forcing position: fixed. 
   We now let common.css handle the navbar styling. */

/* Listening Section Specific Styles */
.listening-section {
    padding: 40px 15px; /* Reduced from 80px since navbar is no longer fixed */
    background-color: var(--light-bg-body);
    flex-grow: 1;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-text);
    text-align: center;
}

.content-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    padding: 30px;
    margin-bottom: 30px;
}
.btn-primary {
    background-color: var(--quiz-button-color) !important;
    border-color: var(--quiz-button-color) !important;
}

.btn-primary:hover {
    background-color: var(--quiz-button-hover-color) !important;
    border-color: var(--quiz-button-hover-color) !important;
}

.level-select-btn {
    background-color: var(--accent-green);
    color: var(--light-text);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    margin: 5px;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.level-select-btn:hover {
    background-color: var(--accent-green-darker);
    transform: translateY(-2px);
}

.level-select-btn.active {
    background-color: var(--primary-dark-bg);
    border: 2px solid var(--accent-green);
}

.file-list-item {
    cursor: pointer;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.file-list-item:hover {
    background-color: #f0f0f0;
}
.file-list-item.active {
    background-color: #e0ffe0; 
    font-weight: bold;
    color: cadetblue;
}

.audio-player-container {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}
.audio-player-container audio {
    width: 100%;
    max-width: 600px;
}

.transcript-section {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 20px;
}
.transcript-text {
    white-space: pre-wrap;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    background-color: #f8f8f8;
    padding: 15px;
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
}

/* Footer Styling - kept for local overrides if needed */
.footer {
    background-color: var(--primary-dark-bg);
    color: var(--light-text);
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
    margin-top: auto;
}

.footer p {
    margin-bottom: 5px;
}

.footer .social-icons a {
    color: var(--light-text);
    font-size: 1.2rem;
    margin: 0 8px;
    transition: color 0.3s ease;
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .listening-section {
        padding: 30px 15px;
    }
    .section-title {
        font-size: 2rem;
    }
}
@media (max-width: 576px) {
    .listening-section {
        padding: 20px 10px;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .content-card {
        padding: 20px;
    }
}