/* Quiz Page Styles */
.quiz-container {
    max-width: 800px;
    margin: 0 auto;
}

.quiz-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.quiz-progress .progress-bar {
    flex: 1;
    height: 6px;
    background: #f2d074;
    border-radius: 100px;
    overflow: hidden;
}

.quiz-progress .progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #CE1126, #FCD116, #006B3F);
    border-radius: 100px;
    transition: width 0.5s ease;
}

.quiz-progress .progress-text {
    font-size: 0.875rem;
    color: #78716c;
    font-weight: 500;
    min-width: 60px;
}

.quiz-question {
    display: none;
    animation: fadeUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

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

.quiz-question .question-number {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #CE1126;
    margin-bottom: 0.5rem;
}

.quiz-question .question-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 2rem;
    color: #241a1a;
}

.quiz-question .options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-question .option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 2px solid #f5f5f4;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.quiz-question .option:hover {
    border-color: #FCD116;
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.quiz-question .option.selected {
    border-color: #FCD116;
    background: rgba(252, 209, 22, 0.12);
}

.quiz-question .option.correct {
    border-color: #006B3F;
    background: rgba(0, 107, 63, 0.1);
}

.quiz-question .option.incorrect {
    border-color: #CE1126;
    background: rgba(206, 17, 38, 0.1);
}

.quiz-question .option .option-letter {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f2d074;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: #241a1a;
    flex-shrink: 0;
    transition: all 0.3s;
}

.quiz-question .option.selected .option-letter {
    background: #FCD116;
    color: #241a1a;
}

.quiz-question .option.correct .option-letter {
    background: #006B3F;
    color: #fff;
}

.quiz-question .option.incorrect .option-letter {
    background: #CE1126;
    color: #fff;
}

.quiz-question .option .option-text {
    font-weight: 400;
    font-size: 1rem;
    color: #241a1a;
    line-height: 1.5;
}

.quiz-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e7e5e4;
}

.quiz-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.quiz-btn-primary {
    background: #241a1a;
    color: #fdfaf2;
}

.quiz-btn-primary:hover {
    background: #CE1126;
}

.quiz-btn-primary:disabled {
    background: #e7e5e4;
    color: #a8a29e;
    cursor: not-allowed;
}

.quiz-btn-secondary {
    background: transparent;
    color: #241a1a;
    border: 2px solid #e7e5e4;
}

.quiz-btn-secondary:hover {
    border-color: #241a1a;
}

.quiz-result {
    display: none;
    text-align: center;
    padding: 3rem 2rem;
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.quiz-result.active {
    display: block;
    animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.quiz-result .result-score {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #CE1126, #FCD116, #006B3F);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.quiz-result .result-score .number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #fff;
    line-height: 1;
}

.quiz-result .result-score .label {
    font-size: 0.625rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.quiz-result .result-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.quiz-result .result-message {
    color: #78716c;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.quiz-result .result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.quiz-result .result-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Gallery Page Styles */
.gallery-hero {
    min-height: 60vh;
}

.gallery-section {
    padding: 5rem 0;
    background: var(--cream);
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.gallery-filters .filter-btn {
    padding: 0.75rem 1.5rem;
    background: #fff;
    border: 1px solid #e7e5e4;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s;
}

.gallery-filters .filter-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.gallery-filters .filter-btn.active {
    background: var(--dark);
    border-color: var(--dark);
    color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.gallery-section .gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 0.75rem;
    cursor: pointer;
}

.gallery-section .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.gallery-section .gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.85) 0%, rgba(26, 26, 26, 0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity 0.4s;
}

.gallery-section .gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-section .gallery-overlay .iconify {
    font-size: 1.75rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.gallery-section .gallery-overlay h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.125rem;
    color: #fff;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.gallery-section .gallery-overlay p {
    font-size: 0.75rem;
    color: var(--white-70);
}

.gallery-fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (max-width: 480px) {
    .quiz-container {
        padding: 0 0.5rem;
    }
    
    .quiz-question .question-text {
        font-size: 1.25rem;
    }
    
    .quiz-question .option {
        padding: 1rem;
    }
    
    .quiz-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .quiz-btn {
        width: 100%;
        justify-content: center;
    }
    
    .quiz-result {
        padding: 2rem 1rem;
    }
    
    .result-score {
        width: 100px !important;
        height: 100px !important;
    }
    
    .result-score .number {
        font-size: 2rem !important;
    }
}

@media (max-width: 320px) {
    .quiz-question .question-text {
        font-size: 1.1rem;
    }
    
    .option-text {
        font-size: 0.85rem;
    }
}

@media (min-width: 640px) and (max-width: 767px) {
    .quiz-container {
        max-width: 600px;
    }
    
    .quiz-question .question-text {
        font-size: 1.5rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .quiz-container {
        max-width: 700px;
    }
    
    .quiz-question {
        padding: 1rem;
    }
}