/* Swiper Override for Progress */
.swiper-pagination-bullet-active {
    background-color: #febe10 !important;
    /* Tailwind primary-500 */
    width: 24px !important;
    border-radius: 99px !important;
    transition: width 0.3s ease;
}

/* Scroll Reveal Classes */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Nav link weight */
.nav-link {
    font-weight: 600;
}

/* Header scroll — blur fade */
#header {
    position: fixed;
}

#header::before {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 50%, transparent 100%);
    transition: backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease;
    z-index: -1;
    pointer-events: none;
}

#header.header-scrolled::before {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
/* Readmore Button */
.readmore-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 9999px;
    border: 1px solid #fcd34d;
    color: #b45309;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}
.readmore-btn:hover {
    background: #fffbeb;
}
.readmore-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}
.readmore-btn svg.rotated {
    transform: rotate(180deg);
}

/* ========================================
   QUIZ MODAL
   ======================================== */
.quiz-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.quiz-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.quiz-modal-content {
    position: relative;
    background: #fff;
    border-radius: 1.5rem;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px 28px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    animation: quizModalIn 0.3s ease-out;
}
@keyframes quizModalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.quiz-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    transition: background 0.2s;
}
.quiz-modal-close:hover {
    background: #e5e5e5;
    color: #333;
}
.quiz-modal-header {
    text-align: center;
    margin-bottom: 24px;
}
.quiz-modal-badge {
    display: inline-block;
    background: #fef3c7;
    color: #b45309;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}
.quiz-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
    line-height: 1.2;
}
.quiz-modal-desc {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}
.quiz-modal-progress {
    height: 6px;
    background: #f1f5f9;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 8px;
}
.quiz-modal-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #febe10, #f59e0b);
    border-radius: 99px;
    width: 0%;
    transition: width 0.4s ease;
}
.quiz-modal-counter {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 20px;
}
.quiz-modal-card {
    text-align: center;
}
.quiz-modal-question {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    margin: 0 0 24px;
    min-height: 56px;
}
.quiz-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.quiz-modal-btn {
    flex: 1;
    max-width: 160px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}
.quiz-modal-yes {
    background: #febe10;
    color: #1a1a2e;
    border-color: #febe10;
}
.quiz-modal-yes:hover {
    background: #f59e0b;
    border-color: #f59e0b;
}
.quiz-modal-no {
    background: #f1f5f9;
    color: #475569;
    border-color: #e2e8f0;
}
.quiz-modal-no:hover {
    background: #e2e8f0;
}
.quiz-modal-result {
    text-align: center;
}
.quiz-modal-result-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}
.quiz-modal-result-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 8px;
}
.quiz-modal-result-text {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 12px;
}
.quiz-modal-disclaimer {
    font-size: 0.75rem;
    color: #94a3b8;
    font-style: italic;
    margin: 0 0 20px;
}
.quiz-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}
.quiz-modal-restart {
    background: none;
    border: 1px solid #e2e8f0;
    padding: 10px 24px;
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}
.quiz-modal-restart:hover {
    background: #f8fafc;
    color: #334155;
}

/* ========================================
   CONTENT LINKS (p içindeki linkler)
   ======================================== */
main p a,
.quiz-modal-content p a,
.quiz-modal-result-text a {
    color: #b45309;
    text-decoration: none;
    border-bottom: 1px solid rgba(180,83,9,0.25);
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
main p a:hover,
.quiz-modal-content p a:hover,
.quiz-modal-result-text a:hover {
    color: #92400e;
    border-bottom-color: #92400e;
    background: rgba(254,190,16,0.08);
    border-radius: 2px;
}
