/* Global Styles */
:root {
    --primary-color: #166534;
    --secondary-color: #16a34a;
    --accent-color: #059669;
    --light-color: #f0fdf4;
    --dark-color: #0f172a;
    --text-color: #334155;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    line-height: 1.3;
}

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

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: var(--box-shadow);
}

.btn:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-secondary.disabled {
    border-color: #aaa;
    color: #888;
    cursor: not-allowed;
}

.btn-secondary.disabled:hover {
    background: transparent;
    color: #888;
    transform: none;
    box-shadow: var(--box-shadow);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: #666;
    font-size: 1.1rem;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

header h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 10;
}

header .tagline {
    font-size: 1.3rem;
    opacity: 0.9;
    position: relative;
    z-index: 10;
}

header .speaker {
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 0.5rem;
    opacity: 0.9;
    position: relative;
    z-index: 10;
    font-style: italic;
}

/* Navigation */
#navbar {
    background: white;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e2e8f0;
}

#navbar ul {
    display: flex;
    justify-content: center;
}

#navbar li {
    padding: 1rem;
}

#navbar a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

#navbar a:hover,
#navbar a.active {
    color: var(--primary-color);
    background-color: rgba(30, 64, 175, 0.1);
}

/* Hero Section */
.hero {
    background: url('https://source.unsplash.com/random/1600x900/?bible,purpose') no-repeat center center/cover;
    height: 70vh;
    position: relative;
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(22, 101, 52, 0.8), rgba(5, 150, 105, 0.8));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

/* Lessons Section */
.lessons-section {
    padding: 5rem 0;
    background-color: white;
}

.lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.lesson-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    padding: 2rem;
    border: 1px solid #e2e8f0;
}

.lesson-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.lesson-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.lesson-icon i {
    font-size: 2rem;
    color: white;
}

.lesson-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.lesson-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.lesson-content li {
    margin-bottom: 0.5rem;
}

.lesson-takeaway {
    background-color: rgba(22, 101, 52, 0.1);
    padding: 1rem;
    border-left: 4px solid var(--accent-color);
    margin-top: 1rem;
}

.final-words {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 2rem;
    border-radius: var(--border-radius);
    color: white;
    margin-top: 3rem;
}

.final-words h3 {
    color: white;
    font-size: 1.8rem;
}

.final-words ul {
    padding-left: 1.5rem;
    list-style-type: disc;
}

.final-words li {
    margin-bottom: 0.5rem;
}

/* Audio Section */
.audio-section {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.audio-player {
    max-width: 800px;
    margin: 0 auto;
}

.player-container {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.player-container h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.custom-audio-player {
    width: 100%;
    margin-bottom: 1rem;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    flex-wrap: wrap;
}

.play-button {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.play-button:hover {
    background: var(--secondary-color);
}

.progress-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 150px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}

.progress {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    width: 0%;
    transition: width 0.1s linear;
}

.time-display {
    font-size: 0.8rem;
    color: #666;
    text-align: right;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-container i {
    color: var(--primary-color);
}

.volume-container input[type="range"] {
    width: 80px;
    cursor: pointer;
}

.audio-note {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 15px;
}

.fallback-link {
    margin-top: 10px;
    font-size: 0.9rem;
}

.fallback-link a {
    color: var(--primary-color);
    text-decoration: underline;
}

.fallback-link a:hover {
    color: var(--secondary-color);
}

/* Mobile responsive adjustments for audio player */
@media (max-width: 576px) {
    .player-controls {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .progress-container {
        width: 100%;
        order: 3;
    }

    .volume-container {
        width: 100%;
        justify-content: center;
        order: 2;
    }

    .play-button {
        order: 1;
        width: 50px;
        height: 50px;
    }

    .play-button i {
        font-size: 1.2rem;
    }

    .volume-container input[type="range"] {
        width: 60%;
        max-width: 200px;
    }
}

/* Resources Section */
.resources-section {
    padding: 5rem 0;
    background-color: white;
    position: relative;
}

/* Coming Soon overlay removed to make resources accessible
.resources-section::before {
    content: 'Coming Soon';
    position: absolute;
    top: 120px;
    left: 0;
    width: 100%;
    height: calc(100% - 120px);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: bold;
    z-index: 100;
    text-transform: uppercase;
    letter-spacing: 3px;
}
*/

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

.resource-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.resource-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(22, 101, 52, 0.1), rgba(5, 150, 105, 0.1));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
}

.resource-icon i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.resource-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.resource-card p {
    margin-bottom: 1.5rem;
    color: #666;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

footer p {
    margin-bottom: 1rem;
}

.scripture {
    font-style: italic;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.8;
}

/* Responsive Styles */
@media (max-width: 768px) {

    .lessons-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    #navbar ul {
        flex-direction: column;
        text-align: center;
    }

    #navbar li {
        padding: 0.5rem;
    }

    .hero {
        height: 50vh;
    }
}

/* Notification Overlay */
.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notification-overlay.show {
    opacity: 1;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background-color: var(--dark-color);
    color: white;
    padding: 30px 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    font-size: 1.4rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    max-width: 90%;
    width: auto;
    min-width: 300px;
    border: 2px solid var(--accent-color);
}

.toast-notification div {
    line-height: 1.5;
}

.toast-notification strong {
    font-size: 1.8rem;
    color: var(--accent-color);
    display: block;
    margin-bottom: 5px;
}

.toast-notification i {
    color: var(--accent-color);
    font-size: 2.5rem;
}

.toast-notification.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lesson-card,
.resource-card {
    animation: fadeIn 0.6s ease-out forwards;
}

.lesson-card:nth-child(1) {
    animation-delay: 0.1s;
}

.lesson-card:nth-child(2) {
    animation-delay: 0.2s;
}

.lesson-card:nth-child(3) {
    animation-delay: 0.3s;
}

.lesson-card:nth-child(4) {
    animation-delay: 0.4s;
}

.lesson-card:nth-child(5) {
    animation-delay: 0.5s;
}

.lesson-card:nth-child(6) {
    animation-delay: 0.6s;
}

.lesson-card:nth-child(7) {
    animation-delay: 0.7s;
}

.lesson-card:nth-child(8) {
    animation-delay: 0.8s;
}

.lesson-card:nth-child(9) {
    animation-delay: 0.9s;
}

.lesson-card:nth-child(10) {
    animation-delay: 1s;
}

.lesson-card:nth-child(11) {
    animation-delay: 1.1s;
}

.lesson-card:nth-child(12) {
    animation-delay: 1.2s;
}