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

:root {
    --bg: #f1f5f9;
    --surface: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --navy: #1e3a8a;
    --indigo: #6366f1;
    --purple: #a855f7;
    --pink: #ec4899;
    --gradient: linear-gradient(90deg, #6366f1, #a855f7, #ec4899);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hidden {
    display: none !important;
}

/* ------------- Navigation ------------- */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 80px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s ease;
}

.site-nav.scrolled {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.nav-inner {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    flex-shrink: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--indigo), var(--purple));
    color: #fff;
    font-weight: 900;
    font-size: 1.1rem;
}

.brand-word {
    font-weight: 800;
    font-size: 1.2rem;
    color: #111827;
    letter-spacing: -0.01em;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: #374151;
}

.nav-links a:not(.demo-button) {
    transition: color 0.2s ease;
}

.nav-links a:not(.demo-button):hover {
    color: var(--navy);
}

.demo-button {
    background: #111827;
    color: #ffffff !important;
    padding: 0.5rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.demo-button:hover {
    opacity: 0.9;
}

.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #111827;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    max-height: 0;
    overflow: hidden;
    background: var(--surface);
    border-top: 1px solid var(--border);
    transition: max-height 0.35s ease;
}

.mobile-menu.open {
    max-height: 320px;
}

.mobile-menu a {
    display: block;
    padding: 0.9rem 1.5rem;
    font-weight: 500;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.mobile-menu .mobile-cta {
    background: #111827;
    color: #fff;
    font-weight: 600;
}

/* ------------- Hero ------------- */

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc, #ffffff);
    padding: 128px 0 80px;
}

.hero .container {
    position: relative;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    pointer-events: none;
    animation: float 12s ease-in-out infinite;
}

.blob-1 {
    width: 340px;
    height: 340px;
    background: #a855f7;
    top: -80px;
    left: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: #ec4899;
    top: 60px;
    right: -60px;
    animation-delay: -4s;
}

.blob-3 {
    width: 380px;
    height: 380px;
    background: #6366f1;
    bottom: -140px;
    left: 35%;
    animation-delay: -8s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-28px) translateX(14px); }
}

.hero-content {
    max-width: 768px;
    text-align: center;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.1);
    color: #4338ca;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
}

.hero-title {
    font-size: clamp(2.5rem, 6.5vw, 4.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: var(--navy);
}

.gradient-text {
    background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-sub {
    margin: 1.5rem auto 0;
    max-width: 640px;
    font-size: 1.25rem;
    line-height: 1.7;
    color: #6b7280;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary,
.btn-white,
.btn-outline-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s ease;
}

.btn-primary {
    background: #111827;
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.25);
}

.btn-secondary {
    background: #ffffff;
    color: #111827;
    border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.hero-trust {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2.25rem;
    flex-wrap: wrap;
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-weight: 500;
    font-size: 0.95rem;
}

.trust-item svg {
    width: 20px;
    height: 20px;
    color: #22c55e;
}

/* ------------- Subjects ------------- */

.materias {
    background: #f9fafb;
    padding: 96px 0;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--navy);
    position: relative;
    display: inline-block;
    padding-bottom: 14px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--indigo), var(--purple));
}

.section-header p {
    margin-top: 1rem;
    color: #6b7280;
    font-size: 1.05rem;
    max-width: 640px;
}

.section-header.centered {
    text-align: center;
}

.section-header.centered h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-header.centered p {
    margin-left: auto;
    margin-right: auto;
}

.tab-switcher {
    display: inline-flex;
    background: #ffffff;
    border-radius: 16px;
    padding: 0.375rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    margin: 2.25rem 0 2.5rem;
    width: auto;
}

.tab {
    padding: 0.625rem 1.75rem;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.tab.active {
    background: linear-gradient(90deg, var(--indigo), var(--purple));
    color: #fff;
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}

.subject-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.subject-grid.active {
    animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.subject-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.subject-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.subject-card .subject-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

.subject-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.subject-card p {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.subject-link {
    font-weight: 600;
    font-size: 0.95rem;
}

/* ------------- Features ------------- */

.features {
    background: #ffffff;
    padding: 96px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.feature-label {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.1);
    color: #4338ca;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.features-copy h2 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--navy);
    line-height: 1.15;
}

.features-copy > p {
    margin-top: 1rem;
    color: #6b7280;
    font-size: 1.05rem;
    max-width: 560px;
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
    display: grid;
    gap: 1.25rem;
}

.feature-list li {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
}

.check-circle {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
}

.check-circle svg {
    width: 14px;
    height: 14px;
}

.feature-list strong {
    display: block;
    font-weight: 700;
    color: #111827;
}

.feature-list p {
    color: #6b7280;
    font-size: 0.95rem;
}

.features-visual .glass-card {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    padding: 1rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1);
}

.features-visual img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    border-radius: 14px;
}

.mini-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    margin-top: 4rem;
}

.mini-feature .mini-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.75rem;
    margin: 0 auto 1rem;
    background: #f3f4f6;
}

.mini-feature h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.4rem;
}

.mini-feature p {
    color: #6b7280;
    font-size: 0.95rem;
    max-width: 280px;
    margin: 0 auto;
}

/* ------------- FAQ ------------- */

.faq {
    background: #f9fafb;
    padding: 96px 0;
}

.faq-inner {
    max-width: 768px;
}

.faq-list {
    margin-top: 2.5rem;
    display: grid;
    gap: 1rem;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    color: #111827;
    font-weight: 600;
    font-size: 1.05rem;
    text-align: left;
}

.faq-chevron {
    width: 20px;
    height: 20px;
    color: #6b7280;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-answer-inner {
    padding: 0 1.5rem 1.5rem;
    color: #6b7280;
    font-size: 0.98rem;
}

/* ------------- CTA ------------- */

.cta {
    position: relative;
    overflow: hidden;
    background: #111827;
    padding: 96px 0;
}

.cta-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.35;
    pointer-events: none;
}

.cta-glow-1 {
    background: #6366f1;
    top: -150px;
    left: -100px;
    animation: float 14s ease-in-out infinite;
}

.cta-glow-2 {
    background: #a855f7;
    bottom: -180px;
    right: -80px;
    animation: float 12s ease-in-out infinite;
    animation-delay: -5s;
}

.cta-content {
    position: relative;
    text-align: center;
    max-width: 800px;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.cta-content p {
    margin-top: 0.75rem;
    color: #cbd5e1;
    font-size: 1.15rem;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-white {
    background: #ffffff;
    color: #111827;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255, 255, 255, 0.15);
}

.btn-outline-white {
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}

.btn-outline-white:hover {
    background: #ffffff;
    color: #111827;
    transform: translateY(-2px);
}

.cta-caption {
    display: block;
    margin-top: 1.5rem;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* ------------- Footer ------------- */

.site-footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}

.footer-brand p {
    margin-top: 1rem;
    color: #6b7280;
    font-size: 0.95rem;
    max-width: 340px;
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--navy);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid #f3f4f6;
    text-align: center;
}

.footer-bottom p {
    color: #6b7280;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #111827;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.social-links a:hover {
    background: var(--navy);
    color: #fff;
}

.social-links svg {
    width: 16px;
    height: 16px;
}

/* ------------- Scroll reveal ------------- */

.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* ------------- Blog / article (kept for content pages) ------------- */

.section {
    padding: 4rem 0;
}

.article {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 4rem 0;
}

.article-cover {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 1.5rem;
}

.article h1 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--navy);
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.card img {
    height: 180px;
    object-fit: cover;
}

.card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.card h3 {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--navy);
}

.card p {
    color: var(--muted);
    font-size: 0.95rem;
    flex: 1;
}

.card time {
    color: var(--muted);
    font-size: 0.85rem;
}

.tag {
    align-self: flex-start;
    background: #eef2ff;
    color: #4338ca;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 1.5rem;
}

.breadcrumb {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.breadcrumb a {
    color: var(--navy);
}

.blockquote, .lead {
    font-size: 1.1rem;
    color: var(--muted);
    border-left: 3px solid var(--indigo);
    padding-left: 1rem;
    margin: 1rem 0;
}

.article-body {
    line-height: 1.8;
}

.article-body h2, .article-body h3, .article-body h4 {
    color: var(--navy);
    margin: 1.5rem 0 0.5rem;
}

.article-body p {
    margin-bottom: 1rem;
}

.article-body img {
    border-radius: 12px;
    margin: 1rem 0;
}

.js-hidden {
    display: none;
}

.load-more-ctn {
    text-align: center;
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    background: #111827;
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    border: none;
}

.btn-outline {
    background: transparent;
    color: #111827;
    border: 1px solid var(--border);
    transition: background-color 0.2s ease;
}

.btn-outline:hover {
    background: #f3f4f6;
}

/* ------------- Responsive ------------- */

@media (min-width: 640px) {
    .subject-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mini-features {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-bottom {
        flex-direction: row;
        text-align: left;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }

    .nav-toggle {
        display: none;
    }

    .mobile-menu {
        display: none;
    }

    .subject-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-bottom {
    }
}

/* ------------- Lesson / article detail page ------------- */

.lesson-hero {
    background: linear-gradient(180deg, #dbeafe 0%, #ffffff 100%);
    padding: 112px 0 48px;
    text-align: center;
}

@media (min-width: 768px) {
    .lesson-hero {
        padding: 160px 0 64px;
    }
}

.lesson-hero .container {
    max-width: 896px;
}

.breadcrumb-pill {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.375rem;
    background: #dbeafe;
    color: #1e40af;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}

.breadcrumb-pill svg {
    width: 18px;
    height: 18px;
    color: #2563eb;
}

.crumb-sep {
    color: #1e40af;
    opacity: 0.5;
}

.crumb {
    color: #1e40af;
    transition: color 0.2s ease;
}

.crumb:hover {
    color: #172554;
}

.crumb.current {
    color: #172554;
    font-weight: 700;
}

.lesson-title {
    font-size: clamp(2.5rem, 5.5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.text-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lesson-meta-desc {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 768px;
    margin: 0 auto 1rem;
    line-height: 1.7;
}

.lesson-meta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #374151;
    font-weight: 500;
    font-size: 0.95rem;
}

.lesson-meta-row svg {
    width: 18px;
    height: 18px;
    color: #2563eb;
}

.lesson-body {
    background: #ffffff;
    padding: 64px 0 96px;
}

.lesson-body .container {
    max-width: 896px;
}

.lesson-content {
    counter-reset: h2-counter h3-counter;
    max-width: 768px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.8;
    color: #374151;
}

@media (min-width: 768px) {
    .lesson-content {
        font-size: 1.0625rem;
    }
}

@media (min-width: 1024px) {
    .lesson-content {
        font-size: 1.125rem;
    }
}

.lesson-content p {
    margin-bottom: 1.75rem;
    line-height: 1.9;
}

.lesson-content h2 {
    counter-increment: h2-counter;
    counter-reset: h3-counter;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 800;
    color: #111827;
    margin: 3rem 0 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

@media (min-width: 768px) {
    .lesson-content h2 {
        font-size: 2rem;
    }
}

.lesson-content h2::before {
    content: counter(h2-counter);
    flex-shrink: 0;
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.3);
}

.lesson-content h3 {
    counter-increment: h3-counter;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.375rem;
    font-weight: 700;
    color: #1f2937;
    margin: 2.75rem 0 1rem;
}

.lesson-content h3::before {
    content: counter(h2-counter) "." counter(h3-counter);
    flex-shrink: 0;
    display: inline-grid;
    place-items: center;
    min-width: 40px;
    height: 36px;
    padding: 0 0.5rem;
    border-radius: 10px;
    background: #dbeafe;
    color: #2563eb;
    font-size: 0.95rem;
    font-weight: 700;
}

.lesson-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 2rem 0 0.75rem;
    border-left: 4px solid #3b82f6;
    padding-left: 1rem;
}

@media (min-width: 768px) {
    .lesson-content h4 {
        font-size: 1.5rem;
    }
}

.lesson-content ul,
.lesson-content ol {
    margin-left: 2rem;
    margin-bottom: 1.75rem;
    padding-left: 2rem;
}

.lesson-content ul {
    list-style: none;
}

.lesson-content ul > li {
    position: relative;
    color: #4b5563;
    margin-bottom: 0.75rem;
}

.lesson-content ul > li::before {
    content: '\2192';
    position: absolute;
    left: -1.75rem;
    color: #2563eb;
    font-weight: 700;
}

.lesson-content ol {
    list-style: none;
    counter-reset: lesson-ol;
}

.lesson-content ol > li {
    counter-increment: lesson-ol;
    position: relative;
    color: #4b5563;
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.lesson-content ol > li::before {
    content: counter(lesson-ol);
    position: absolute;
    left: -2.1rem;
    top: 0.25rem;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-grid;
    place-items: center;
}

.lesson-content strong {
    font-weight: 700;
    color: #111827;
    background: linear-gradient(to bottom, transparent 50%, #dbeafe 50%);
    padding: 0 0.15em;
}

.lesson-content em {
    font-style: italic;
    color: #374151;
}

.lesson-content a {
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 2px solid #93c5fd;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.lesson-content a:hover {
    color: #1d4ed8;
    border-bottom-color: #1d4ed8;
}

.lesson-content blockquote {
    position: relative;
    margin: 2rem 0;
    padding: 1.5rem 1.75rem;
    border-left: 4px solid #2563eb;
    background: linear-gradient(180deg, #f0f9ff, #e0f2fe);
    border-radius: 1rem;
    font-style: italic;
    color: #1e40af;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.lesson-content blockquote::before {
    content: '\201C';
    position: absolute;
    top: -0.5rem;
    left: 0.75rem;
    font-size: 4rem;
    color: #2563eb;
    opacity: 0.3;
    font-family: Georgia, 'Times New Roman', serif;
}

.lesson-content blockquote p {
    margin-bottom: 0;
}

.lesson-content img {
    max-width: 100%;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
    margin: 1.5rem 0;
    transition: transform 0.3s ease;
}

.lesson-content img:hover {
    transform: scale(1.02);
}

.lesson-content figure {
    margin: 2rem 0;
    background: #f9fafb;
    border-radius: 1rem;
    padding: 1rem;
}

.lesson-content figure img {
    margin: 0;
    border-radius: 0.75rem;
}

.lesson-content figcaption {
    text-align: center;
    font-size: 0.875rem;
    font-style: italic;
    color: #6b7280;
    padding: 0.75rem 0 0.25rem;
}

.lesson-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    margin: 2rem 0;
    font-size: 0.95rem;
}

.lesson-content thead th {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.9rem 1rem;
    text-align: left;
}

.lesson-content tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
}

.lesson-content tbody tr:nth-child(even) {
    background: #f9fafb;
}

.lesson-content tbody tr:hover {
    background: #f0f9ff;
    transition: background-color 0.2s ease;
}

.lesson-content code {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    border-radius: 0.375rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.875em;
    padding: 0.125em 0.375em;
}

.lesson-content pre {
    background: linear-gradient(135deg, #1f2937, #111827);
    color: #f9fafb;
    border-radius: 1rem;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.lesson-content pre code {
    background: transparent;
    border: none;
    color: inherit;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1.7;
}

.lesson-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2563eb, transparent);
    margin: 4rem 0;
    position: relative;
}

.lesson-content hr::before {
    content: '\25CC';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 0 0.4rem;
    color: #2563eb;
    font-size: 0.9rem;
    line-height: 1;
}

.lesson-content .info-box,
.lesson-content .warning-box,
.lesson-content .success-box {
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.lesson-content .info-box {
    background: linear-gradient(135deg, #ecfeff, #cffafe);
    border-left: 4px solid #06b6d4;
    color: #155e75;
}

.lesson-content .warning-box {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

.lesson-content .success-box {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-left: 4px solid #10b981;
    color: #065f46;
}

.lesson-content .wp-block-embed__wrapper,
.lesson-content .video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.lesson-content .wp-block-embed__wrapper iframe,
.lesson-content .video-wrapper iframe,
.lesson-content iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ------------- Lesson nav (prev / next) ------------- */

.lesson-nav {
    background: #f9fafb;
    padding: 3rem 0 4rem;
}

.lesson-nav .container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 896px;
}

@media (min-width: 640px) {
    .lesson-nav .container {
        flex-direction: row;
        justify-content: space-between;
    }

    .lesson-nav-card.next {
        margin-left: auto;
    }
}

.lesson-nav-card {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.lesson-nav-card .lesson-nav-arrow {
    display: grid;
    place-items: center;
}

.lesson-nav-card .lesson-nav-arrow svg {
    width: 20px;
    height: 20px;
}

.lesson-nav-card.prev {
    background: #dbeafe;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.lesson-nav-card.prev:not(.disabled):hover {
    background: #bfdbfe;
    transform: translateY(-2px);
}

.lesson-nav-card.next {
    background: #2563eb;
    border: 1px solid #2563eb;
    color: #ffffff;
}

.lesson-nav-card.next:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    transform: translateY(-2px);
}

.lesson-nav-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.lesson-nav-card.disabled.next {
    background: #93c5fd;
    border-color: #93c5fd;
}

/* ------------- Fill in the blanks block ------------- */

.bw-wrap {
    margin: 2.5rem 0;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    font-size: 1rem;
    color: #374151;
}

.bw-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

.bw-badge {
    flex-shrink: 0;
    padding: 0.25rem 0.6rem;
    border-radius: 0.375rem;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bw-card-title {
    color: #fff;
    font-weight: 600;
    line-height: 1.4;
}

.bw-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(16, 185, 129, 0.08);
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
    font-size: 0.85rem;
    color: #047857;
}

.bw-hint svg {
    flex-shrink: 0;
    color: #10b981;
}

.bw-body {
    padding: 1.5rem;
}

.bw-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    counter-reset: none;
}

.lesson-content .bw-list {
    counter-reset: none;
}

.lesson-content .bw-list > li {
    counter-increment: none;
    padding-left: 0;
}

.lesson-content .bw-list > li::before {
    content: none;
}

.bw-row {
    display: flex;
    align-items: flex-start;
}

.bw-num {
    flex-shrink: 0;
    min-width: 1.75rem;
    height: 1.75rem;
    margin-top: 0.2rem;
    margin-right: 0.9rem;
    border-radius: 999px;
    background: #f3f4f6;
    border: 1.5px solid #e5e7eb;
    color: #9ca3af;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-grid;
    place-items: center;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.bw-row.bw-answered .bw-num {
    background: rgba(16, 185, 129, 0.12);
    border-color: #10b981;
    color: #047857;
}

.bw-sentence {
    flex: 1;
    line-height: 2;
    color: #212937;
}

.bw-input {
    border: 2px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.3rem 0.6rem;
    margin: 0 0.25rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e3a8a;
    background: #fff;
    vertical-align: middle;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.bw-input.bw-short {
    width: 7.5rem;
}

.bw-input.bw-long {
    width: 12rem;
}

.bw-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.bw-input.bw-correct {
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.1) !important;
    color: #047857 !important;
}

.bw-input.bw-wrong {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.08) !important;
    color: #b91c1c !important;
}

.bw-feedback {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 1.5rem 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.bw-feedback.bw-perfect {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #047857;
}

.bw-feedback.bw-partial {
    background: rgba(239, 68, 68, 0.07);
    border: 1px solid rgba(239, 68, 68, 0.22);
    color: #b91c1c;
}

.bw-feedback[hidden] {
    display: none;
}

.bw-score {
    margin-left: auto;
    padding: 0.1rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.bw-perfect .bw-score {
    background: rgba(16, 185, 129, 0.2);
    color: #047857;
}

.bw-partial .bw-score {
    background: rgba(239, 68, 68, 0.15);
    color: #b91c1c;
}

.bw-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 1rem 1.5rem 1.25rem;
    border-top: 1px solid #e5e7eb;
}

.bw-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 2.75rem;
    padding: 0 1.5rem;
    border-radius: 0.625rem;
    border: none;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s, transform 0.12s;
}

.bw-btn:active {
    transform: translateY(1px);
}

.bw-retry {
    background: #111827;
    color: #fff;
}

.bw-retry:hover {
    background: #1f2937;
}

.bw-submit {
    background: #2563eb;
    color: #fff;
    min-width: 9rem;
}

.bw-submit:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

@media (max-width: 600px) {
    .bw-card-header,
    .bw-hint,
    .bw-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .bw-footer {
        flex-direction: column;
        align-items: stretch;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .bw-btn {
        justify-content: center;
        width: 100%;
    }

    .bw-feedback {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .bw-input.bw-short,
    .bw-input.bw-long {
        max-width: 100%;
    }
}

/* -------- Dropdown quiz block -------- */

/* -------- Dropdown quiz block -------- */

.dq-wrap {
    width: 100%;
    margin: 2.5rem 0;
    border: 1px solid #e5e9f0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(27, 67, 122, 0.07);
    font-family: inherit;
    color: #212937;
}

.dq-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.125rem 1.5rem;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

.dq-badge {
    flex-shrink: 0;
    padding: 0.3rem 0.7rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.dq-header-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.dq-instructions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: rgba(16, 185, 129, 0.08);
    border-bottom: 1px solid rgba(16, 185, 129, 0.18);
    font-size: 0.82rem;
    color: #0f766e;
    line-height: 1.4;
}

.dq-instructions svg {
    flex-shrink: 0;
    color: #10b981;
}

.dq-form {
    background: #fff;
}

.dq-body {
    padding: 1.5rem 1rem 0.5rem;
}

.dq-sentence-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
    counter-reset: none;
}

.lesson-content .dq-sentence-list {
    counter-reset: none;
}

.lesson-content .dq-sentence-list > li {
    counter-increment: none;
    padding-left: 0;
}

.lesson-content .dq-sentence-list > li::before {
    content: none;
}

.dq-row {
    display: flex;
    align-items: flex-start;
}

.dq-num {
    flex-shrink: 0;
    min-width: 1.75rem;
    height: 1.75rem;
    margin-top: 0.2rem;
    margin-right: 0.75rem;
    border-radius: 50%;
    background: #f4f6f9;
    border: 1.5px solid #e5e9f0;
    color: #9aa3b2;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-grid;
    place-items: center;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.dq-row.dq-answered .dq-num {
    background: rgba(16, 185, 129, 0.12);
    border-color: #10b981;
    color: #0f766e;
}

.dq-row.dq-correct .dq-num {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #0f766e;
}

.dq-row.dq-incorrect .dq-num {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

.dq-sentence {
    flex: 1;
    font-size: 1rem;
    line-height: 1.9;
    color: #212937;
}

.dq-blank {
    display: inline-block;
    vertical-align: middle;
    position: relative;
}

.dq-select {
    appearance: none;
    -webkit-appearance: none;
    padding: 0.3rem 2rem 0.3rem 0.75rem;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1d4ed8;
    background-color: #f4f6f9;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231d4ed8' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    border: 2px solid #e5e9f0;
    cursor: pointer;
    min-width: 8rem;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.dq-select.dq-default {
    color: #9aa3b2;
    font-weight: 500;
    border-style: dashed;
    border-color: #9aa3b2;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239aa3b2' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

.dq-select:hover {
    border-color: #2563eb;
}

.dq-select:focus {
    outline: none;
    border-color: #2563eb;
    border-style: solid;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    background-color: #fff;
}

.dq-select.dq-correct-ans {
    border: 2px solid #10b981 !important;
    border-style: solid !important;
    background-color: rgba(16, 185, 129, 0.1) !important;
    color: #0f766e !important;
    animation: dq-pop 0.3s ease;
}

.dq-select.dq-incorrect-ans {
    border: 2px solid #ef4444 !important;
    border-style: solid !important;
    background-color: rgba(239, 68, 68, 0.08) !important;
    color: #ef4444 !important;
}

.dq-hint {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.74rem;
    font-weight: 600;
    color: #ef4444;
}

.dq-feedback {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 1.5rem 1rem;
    padding: 0.8rem 1rem;
    border-radius: 0.625rem;
    font-size: 0.88rem;
    font-weight: 600;
}

.dq-feedback[hidden] {
    display: none;
}

.dq-feedback.dq-fb-perfect {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #0f766e;
}

.dq-feedback.dq-fb-partial {
    background: rgba(239, 68, 68, 0.07);
    border: 1px solid rgba(239, 68, 68, 0.22);
    color: #ef4444;
}

.dq-score-pill {
    margin-left: auto;
    padding: 0.1rem 0.6rem;
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.dq-fb-perfect .dq-score-pill {
    background: rgba(16, 185, 129, 0.2);
    color: #0f766e;
}

.dq-fb-partial .dq-score-pill {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.dq-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.625rem;
    flex-wrap: wrap;
    padding: 1rem 1.5rem 1.25rem;
    border-top: 1px solid #e5e9f0;
}

.dq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    height: 2.75rem;
    padding: 0 1.4rem;
    border-radius: 0.625rem;
    border: none;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.12s;
}

.dq-btn:active {
    transform: translateY(1px);
}

.dq-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.dq-btn-retry {
    background: #111827;
    color: #fff;
}

.dq-btn-retry:hover:not(:disabled) {
    background: #1f2937;
    box-shadow: 0 4px 14px rgba(17, 24, 39, 0.25);
}

.dq-btn-submit {
    background: #1d4ed8;
    color: #fff;
    min-width: 8.75rem;
}

.dq-btn-submit:hover:not(:disabled) {
    background: #2563eb;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

@keyframes dq-pop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.07);
    }
    100% {
        transform: scale(1);
    }
}

@media (max-width: 600px) {
    .dq-header {
        padding: 0.875rem 1rem;
    }

    .dq-instructions {
        padding: 0.625rem 1rem;
    }

    .dq-body {
        padding: 1.125rem 1rem 0.5rem;
    }

    .dq-footer {
        flex-direction: column;
        align-items: stretch;
        padding: 0.875rem 1rem 1.125rem;
    }

    .dq-btn {
        width: 100%;
    }

    .dq-feedback {
        margin: 0 1rem 0.875rem;
    }

    .dq-select {
        min-width: 6.25rem;
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dq-select.dq-correct-ans {
        animation: none;
    }

    .dq-btn,
    .dq-select {
        transition: none;
    }
}
