/* ===================================
   RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta kolorów - ciepłe, nostalgiczne barwy */
    --color-primary: #8B6F47;
    --color-secondary: #C9A961;
    --color-accent: #D4AF37;
    --color-dark: #2C2416;
    --color-light: #F5F1E8;
    --color-text: #3A3226;
    --color-text-light: #6B5D4F;

    /* Gradienty */
    --gradient-warm: linear-gradient(135deg, #8B6F47 0%, #C9A961 100%);
    --gradient-hero: linear-gradient(to bottom, rgba(44, 36, 22, 0.7), rgba(44, 36, 22, 0.4));

    /* Cienie */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);

    /* Glassmorphism */
    --glass-bg: rgba(245, 241, 232, 0.85);
    --glass-border: rgba(139, 111, 71, 0.2);

    /* Typografia */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lora', serif;
    --font-accent: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-light);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ===================================
   CONTENT PROTECTION
   =================================== */
body.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow selection for inputs */
input,
textarea,
button {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    user-select: text !important;
}

/* Prevent image dragging and context menu */
img {
    pointer-events: none;
    -webkit-user-drag: none;
    user-drag: none;
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-dark);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.2rem;
    font-size: clamp(1rem, 2vw, 1.125rem);
}

.subtitle {
    font-family: var(--font-accent);
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--color-text-light);
    font-weight: 400;
    font-style: italic;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    font-family: var(--font-accent);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-warm);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url('images/hero-bg.jpg') center/cover no-repeat;
    padding: 6rem 2rem 4rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    color: var(--color-light);
}

.hero-text h1 {
    color: var(--color-light);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
}

.hero-text .subtitle {
    color: var(--color-secondary);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-text p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.book-cover {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.5s ease;
    animation: float 6s ease-in-out infinite;
}

.book-cover:hover {
    transform: scale(1.05) rotate(2deg);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.widget-container {
    max-width: 1000px;
    margin: 3rem auto 0;
    width: 100%;
    /* Removed background and padding to match original 3D look */
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-warm);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover {
    background: var(--color-light);
    color: var(--color-primary);
}

/* Hero buttons */
.hero-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===================================
   SECTIONS
   =================================== */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-warm);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
}

.quote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-primary);
    border-left: 4px solid var(--color-accent);
    padding-left: 1.5rem;
    margin: 2rem 0;
    line-height: 1.8;
}

.quote-spaced {
    margin-top: 2rem;
}

.themes {
    list-style: none;
}

.themes li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
}

.themes li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-size: 1.2rem;
}

/* Gallery intro */
.gallery-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--color-text-light);
}

/* ===================================
   EXCERPTS SECTION
   =================================== */
.excerpts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.excerpt-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.excerpt-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.excerpt-card p {
    font-style: italic;
    color: var(--color-text-light);
    line-height: 1.8;
}

/* ===================================
   GALLERY SECTION
   =================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(44, 36, 22, 0.9), transparent);
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    color: var(--color-light);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    color: var(--color-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    animation: zoomIn 0.3s ease;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 1rem;
    font-size: 1.125rem;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===================================
   AUTHOR SECTION
   =================================== */
.author-content {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}

.author-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    float: left;
    margin: 0 2rem 1.5rem 0;
    border: 5px solid rgba(139, 111, 71, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.author-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.author-name {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    clear: none;
}

@media (max-width: 768px) {
    .author-photo {
        width: 150px;
        height: 150px;
        margin: 0 1rem 1rem 0;
    }

    .author-name {
        font-size: 1.5rem;
    }

    .author-content {
        padding: 2rem;
    }
}

/* ===================================
   CTA SECTION
   =================================== */
.cta {
    background: var(--gradient-warm);
    color: white;
    text-align: center;
    padding: 5rem 2rem;
    margin: 0;
    max-width: 100%;
}

.cta h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-subtext {
    margin-top: 2rem;
    font-size: 1rem;
    opacity: 0.9;
}

/* ===================================
   FOOTER
   =================================== */
footer {
    background: var(--color-dark);
    color: var(--color-light);
    text-align: center;
    padding: 2rem;
}

footer p {
    margin: 0;
    font-size: 0.95rem;
}

.footer-subtext {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ===================================
   ANIMATIONS
   =================================== */
.hidden {
    display: none !important;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   LESSONS SECTION (6 Lekcji)
   =================================== */
.lessons-section {
    background: linear-gradient(135deg, rgba(139, 111, 71, 0.03) 0%, rgba(201, 169, 97, 0.03) 100%);
}

.lessons-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--color-text-light);
    font-size: 1.125rem;
}

.lessons-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.lesson-card {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.lesson-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.lesson-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    cursor: pointer;
    transition: background 0.3s ease;
    -webkit-user-select: none;
    user-select: none;
}

.lesson-header:hover {
    background: rgba(139, 111, 71, 0.05);
}

.lesson-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    opacity: 0.6;
    min-width: 60px;
    text-align: center;
}

.lesson-header h3 {
    flex: 1;
    margin: 0;
    color: var(--color-primary);
    font-size: 1.5rem;
}

.lesson-header i {
    color: var(--color-primary);
    transition: transform 0.3s ease;
    font-size: 1.25rem;
}

.lesson-card.active .lesson-header i {
    transform: rotate(180deg);
}

.lesson-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    padding: 0 2rem;
}

.lesson-card.active .lesson-content {
    max-height: 1000px;
    padding: 0 2rem 2rem;
}

.lesson-content p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.lesson-quote {
    border-left: 4px solid var(--color-accent);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--color-primary);
    font-size: 1.125rem;
}

.lesson-content strong {
    color: var(--color-primary);
}

.lessons-summary {
    max-width: 900px;
    margin: 3rem auto 0;
    padding: 2rem;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    text-align: center;
}

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

.lessons-summary p {
    color: var(--color-text-light);
    line-height: 1.8;
}

/* ===================================
   TIMELINE SECTION
   =================================== */
.timeline-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--color-text-light);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--gradient-warm);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    margin-right: 0;
    text-align: left;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
    margin-left: 0;
    text-align: left;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: var(--color-accent);
    border: 4px solid var(--color-light);
    border-radius: 50%;
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

.timeline-marker:hover {
    transform: translateX(-50%) scale(1.3);
    background: var(--color-primary);
}

.timeline-content {
    width: calc(50% - 50px);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.timeline-content h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.timeline-year {
    font-family: var(--font-accent);
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.timeline-text {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.timeline-btn {
    background: var(--gradient-warm);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-accent);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.timeline-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Story Modal */
.story-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.story-modal.active {
    display: flex;
}

.story-modal-content {
    background: var(--color-light);
    max-width: 700px;
    width: 100%;
    padding: 3rem;
    border-radius: 16px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

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

.story-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-primary);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.story-modal-close:hover {
    transform: scale(1.2);
}

/* ===================================
   QUIZ SECTION
   =================================== */
.quiz-section {
    background: linear-gradient(135deg, rgba(139, 111, 71, 0.05) 0%, rgba(201, 169, 97, 0.05) 100%);
    padding: 5rem 2rem;
}

.quiz-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--color-text-light);
    font-size: 1.125rem;
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    min-height: 400px;
}

.quiz-question {
    display: none;
    animation: fadeInSlide 0.5s ease;
}

.quiz-question.active {
    display: block;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

.quiz-question h3 {
    color: var(--color-dark);
    margin-bottom: 2rem;
    font-size: 1.75rem;
    text-align: center;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.quiz-option {
    background: white;
    border: 2px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-family: var(--font-body);
}

.quiz-option:hover:not(.correct):not(.wrong) {
    border-color: var(--color-primary);
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.quiz-option.correct {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    animation: correctAnswer 0.5s ease;
}

.quiz-option.wrong {
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.1);
    animation: wrongAnswer 0.5s ease;
}

@keyframes correctAnswer {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

@keyframes wrongAnswer {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

.option-letter {
    background: var(--gradient-warm);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-accent);
    flex-shrink: 0;
}

.quiz-option.correct .option-letter {
    background: #4CAF50;
}

.quiz-option.wrong .option-letter {
    background: #f44336;
}

.option-text {
    flex: 1;
    font-size: 1.125rem;
    color: var(--color-text);
}

.quiz-feedback {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.quiz-feedback.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.quiz-feedback.correct {
    background: rgba(76, 175, 80, 0.2);
    color: #2e7d32;
}

.quiz-feedback.wrong {
    background: rgba(244, 67, 54, 0.2);
    color: #c62828;
}

.retry-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: var(--font-accent);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.retry-btn:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.retry-btn i {
    margin-right: 0.5rem;
}

/* Quiz Result */
.quiz-result {
    text-align: center;
    padding: 2rem;
}

.quiz-result h3 {
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.quiz-score {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-accent);
    margin: 1rem 0;
}

.quiz-message {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

/* Quiz Navigation */
.quiz-navigation {
    max-width: 800px;
    margin: 2rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.quiz-nav-btn {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-accent);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-nav-btn:hover:not(:disabled) {
    background: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.quiz-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.quiz-progress {
    display: flex;
    gap: 0.5rem;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--glass-border);
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: var(--color-accent);
    transform: scale(1.5);
}

.progress-dot.completed {
    background: var(--color-primary);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--glass-bg);
        backdrop-filter: blur(10px);
        width: 100%;
        padding: 2rem;
        gap: 1rem;
        transition: left 0.3s ease;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        left: 0;
    }

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

@media (max-width: 640px) {
    section {
        padding: 3rem 1.5rem;
    }

    .hero {
        padding: 5rem 1.5rem 3rem;
    }

    .book-cover {
        max-width: 280px;
    }

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

    /* Timeline mobile */
    .timeline::before {
        left: 30px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px;
        margin-right: 0;
    }

    .timeline-marker {
        left: 30px;
    }

    /* Quiz mobile */
    .quiz-container {
        padding: 2rem 1.5rem;
    }

    .quiz-question h3 {
        font-size: 1.5rem;
    }

    .option-text {
        font-size: 1rem;
    }

    .quiz-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .quiz-nav-btn {
        width: 100%;
    }
}