@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Nunito:wght@400;600;700;800&family=Quicksand:wght@500;600;700&display=swap');

/* ONE stylesheet for every lesson and guide. GENERATED by tools/build-lessons.js:

   articles.css + footer_styles.css + tools/lessons/lessons-extra.css.

   Edit those files and run the script again. */

500;600;700;800&display=swap');

/* ===============================================
   DESIGN TOKENS
   Minimal, trust-first palette for a serious language
   institute: one navy, one blue, functional green/red only.
   =============================================== */

:root {
    --ink: #0f1b2d;
    --navy: #142b46;
    --navy-dark: #0c1c30;
    --blue: #2f6fed;
    --blue-dark: #1f4fc4;
    --blue-tint: #eef3fd;
    --text-primary: #14212f;
    --text-secondary: #4b5b6b;
    --text-light: #8493a1;
    --bg-primary: #ffffff;
    --bg-secondary: #f6f8fb;
    --bg-tertiary: #eef1f5;
    --border-light: #e3e8ee;
    --border-medium: #ccd5df;
    --green: #1b8a5a;
    --green-tint: #eaf7f1;
    --red: #c0362c;
    --red-tint: #fbeeed;
    --gold: #a9762f;
    --gold-tint: #f8f2e8;
    --gradient-primary: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    --max-width: 1200px;
    --border-radius: 8px;
    --border-radius-lg: 14px;
    --border-radius-xl: 18px;
    --shadow-sm: 0 1px 2px 0 rgba(15, 27, 45, 0.06);
    --shadow-md: 0 2px 8px -2px rgba(15, 27, 45, 0.10);
    --shadow-lg: 0 8px 24px -6px rgba(15, 27, 45, 0.14);
    --shadow-xl: 0 16px 40px -8px rgba(15, 27, 45, 0.18);
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.35s ease;
}

/* ===============================================
   RESET & BASE
   =============================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.65;
    color: var(--text-primary);
    background: var(--bg-secondary);
    overflow-x: hidden;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===============================================
   NAVIGATION
   =============================================== */

.nav-cta-btn {
    background: var(--navy);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.nav-cta-btn:hover {
    background: var(--navy-dark);
}

/* ===============================================
   HERO BANNER
   =============================================== */

.hero-banner {
    width: calc(100% + 4rem);
    margin-left: -2rem;
    margin-top: 0;
    margin-bottom: 0;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    overflow: hidden;
    position: relative;
    padding: 3.25rem 2.5rem 2.75rem;
    background: var(--gradient-primary);
    color: white;
}

.hero-text {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 0.35rem 0.9rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 0.9rem;
    color: white;
}

.hero-banner .hero-title {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem !important;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: white !important;
    margin: 0 0 0.6rem !important;
}

.hero-banner .hero-title em {
    font-style: normal;
    font-weight: 800;
    color: white !important;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.45);
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}

.hero-banner .hero-sub {
    font-size: 1.05rem !important;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.82) !important;
    margin: 0 !important;
}

/* ===============================================
   LEVEL BADGE
   =============================================== */

.level-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gold-tint);
    color: var(--gold);
    border: 1px solid rgba(169, 118, 47, 0.25);
    padding: 0.4rem 1.1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 1.5rem;
}

/* ===============================================
   STAT STRIP
   =============================================== */

.stat-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem 1.75rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
}

.stat-box {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 0.75rem 0.5rem;
}

.stat-number {
    font-family: 'Inter', sans-serif;
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1;
    color: var(--navy);
}

.stat-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 0.4rem;
}

/* ===============================================
   CALLOUT BOX
   All variants share one restrained system: a tinted
   background and a colored left border, no color soup.
   =============================================== */

.callout {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius);
    margin: 1.75rem 0;
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--blue);
    background: var(--bg-primary);
}

.callout.teal   { border-left-color: var(--blue); background: var(--blue-tint); }
.callout.purple { border-left-color: var(--navy); background: var(--bg-secondary); }
.callout.yellow { border-left-color: var(--gold); background: var(--gold-tint); }
.callout.red    { border-left-color: var(--red);  background: var(--red-tint); }

.callout-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.callout-body { flex: 1; }

.callout-body strong {
    display: block;
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.callout-body p {
    margin: 0 !important;
    font-size: 1rem !important;
}

/* ===============================================
   COMPARISON TABLE
   =============================================== */

.compare-wrap {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.98rem;
}

.compare-table thead tr {
    background: var(--navy);
    color: white;
}

.compare-table th {
    padding: 0.9rem 1.25rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.95rem;
}

.compare-table td {
    padding: 0.9rem 1.25rem;
    vertical-align: top;
    line-height: 1.6;
}

.compare-table tbody tr:nth-child(odd)  { background: var(--bg-secondary); }
.compare-table tbody tr:nth-child(even) { background: white; }
.compare-table tbody tr:hover { background: var(--blue-tint); }

.tag-native {
    display: inline-block;
    background: var(--green-tint);
    color: var(--green);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
}

.tag-esl {
    display: inline-block;
    background: var(--red-tint);
    color: var(--red);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
}

/* ===============================================
   INLINE ARTICLE IMAGE
   =============================================== */

.article-image {
    width: calc(100% + 4rem);
    margin: 2.5rem -2rem;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ===============================================
   IDIOM CARDS
   =============================================== */

.idiom-list {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.idiom-card {
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.idiom-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-medium);
}

.idiom-number {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    background: var(--navy);
}

.idiom-phrase {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
}

.idiom-expand {
    font-size: 0.9rem;
    color: var(--blue);
    font-weight: 700;
    transition: transform var(--transition-base);
}

.idiom-card.open .idiom-expand { transform: rotate(180deg); }

.idiom-body {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease, padding .25s ease;
    background: white;
}

.idiom-card.open .idiom-body {
    max-height: 600px;
    padding: 1.5rem;
}

.idiom-def {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    padding: 0.9rem 1.1rem;
    background: var(--blue-tint);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--blue);
}

.idiom-def span {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: var(--blue-dark);
    display: block;
    margin-bottom: 0.3rem;
}

.example-block { margin-bottom: 1rem; }

.example-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.4rem;
}

.example-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ex-native, .ex-esl {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 0.98rem;
    line-height: 1.6;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.6rem 0.9rem;
    border-radius: var(--border-radius);
}

.ex-native { background: var(--green-tint); border-left: 3px solid var(--green); }
.ex-esl    { background: var(--red-tint);   border-left: 3px solid var(--red); }

.ex-badge {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.5rem;
    border-radius: 5px;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.ex-native .ex-badge { background: rgba(27, 138, 90, 0.16); color: var(--green); }
.ex-esl    .ex-badge { background: rgba(192, 54, 44, 0.14); color: var(--red); }

.when-box {
    margin-top: 1.1rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.9rem 1.1rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--navy);
}

.when-icon { font-size: 1.1rem; flex-shrink: 0; }

.when-text { font-size: 0.95rem; font-weight: 600; color: var(--text-secondary); }
.when-text strong { color: var(--navy); font-weight: 700; }

/* ===============================================
   TIP STRIP
   =============================================== */

.tip-strip {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--gold-tint);
    border: 1px solid rgba(169, 118, 47, 0.25);
    border-radius: var(--border-radius-lg);
    padding: 1.15rem 1.75rem;
    margin: 2.5rem 0;
}

.tip-strip .tip-icon { font-size: 1.6rem; flex-shrink: 0; }

.tip-strip p {
    margin: 0 !important;
    font-size: 1rem !important;
    color: var(--gold) !important;
    font-weight: 600 !important;
}

/* ===============================================
   PROGRESS BAR
   =============================================== */

.progress-label { font-size: 0.9rem; font-weight: 700; color: var(--text-secondary); }

.progress-bar {
    height: 6px;
    background: var(--border-light);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    border-radius: 6px;
    background: var(--blue);
    transition: width .3s ease;
}

/* ===============================================
   CTA BOX
   =============================================== */

.cta-box {
    margin: 3rem 0 2rem;
    padding: 2.5rem 2rem;
    text-align: center;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg);
    color: white;
}

.cta-box h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.7rem !important;
    font-weight: 800 !important;
    margin: 0 0 0.75rem !important;
    border: none !important;
    color: white !important;
    padding: 0 !important;
}

.cta-box h2::before { display: none !important; }

.cta-box p {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 1.02rem !important;
    margin-bottom: 1.5rem !important;
}

.cta-btn {
    display: inline-block;
    background: white;
    color: var(--navy);
    font-weight: 700;
    padding: 0.85rem 2.25rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition-base);
    border-bottom: none;
}

.cta-btn:hover {
    background: var(--blue-tint);
    color: var(--navy-dark);
    border-bottom: none;
}

/* ===============================================
   SECTION DIVIDER
   =============================================== */

.divider {
    width: 100%;
    height: 1px;
    background: var(--border-light);
    margin: 3rem 0;
    border: none;
}

/* ===============================================
   DIPLOMA SECTION
   =============================================== */

.diploma-section {
    margin: 3rem 0;
    padding: 2.5rem 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    text-align: center;
    overflow: hidden;
}

.diploma-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    margin-bottom: 0.4rem !important;
}

.diploma-subtitle {
    font-size: 1rem !important;
    color: var(--text-secondary) !important;
    margin-bottom: 1.8rem !important;
    font-weight: 400 !important;
}

.diploma-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.diploma-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    object-fit: contain;
}

.diploma-shine {
    display: none;
}

/* ===============================================
   SOCIAL NETWORKS
   Calm and flat: no glow, no pulse.
   =============================================== */

.social-networks-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.social-networks-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: all 0.25s ease;
}

.social-networks-container.active .social-networks-buttons {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.social-network-button {
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.social-network-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.social-network-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;
    transition: transform 0.2s ease;
}

.social-networks-trigger {
    width: 48px;
    height: 48px;
    background: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
    position: relative;
}

.social-networks-trigger:hover {
    background: var(--navy-dark);
}

.social-networks-trigger img {
    width: 15px;
    height: 15px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 0.2s ease;
}

.social-networks-container.active .social-networks-trigger img {
    transform: rotate(45deg);
}

.social-networks-container.active .social-network-button:nth-child(1) { animation: slideIn 0.25s ease 0.05s both; }
.social-networks-container.active .social-network-button:nth-child(2) { animation: slideIn 0.25s ease 0.09s both; }
.social-networks-container.active .social-network-button:nth-child(3) { animation: slideIn 0.25s ease 0.13s both; }
.social-networks-container.active .social-network-button:nth-child(4) { animation: slideIn 0.25s ease 0.17s both; }
.social-networks-container.active .social-network-button:nth-child(5) { animation: slideIn 0.25s ease 0.21s both; }

@keyframes slideIn {
    from { opacity: 0; transform: translateY(12px) scale(0.9); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===============================================
   ARTICLE LAYOUT
   =============================================== */

main {
    margin-top: 76px;
    padding: 3rem 0;
    background: var(--bg-secondary);
}

.content {
    max-width: 750px;
    margin: 0 auto;
    padding: 0 2rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
}

.content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--navy);
    border-radius: var(--border-radius-lg) 0 0 var(--border-radius-lg);
}

.image-banner-link {
    display: block;
    text-decoration: none;
    position: relative;
    cursor: pointer;
}

.image-banner {
    width: calc(100% + 4rem);
    margin-left: -2rem;
    margin-top: -2rem;
    margin-bottom: 0;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1 / 1;
    height: auto;
    max-height: none;
}

.image-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.3s ease;
}

.image-banner-link:hover .image-banner img {
    transform: scale(1.02);
}

.image-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 27, 45, 0) 0%, rgba(15, 27, 45, 0.1) 40%, rgba(15, 27, 45, 0) 100%);
    pointer-events: none;
    transition: background 0.25s ease;
}

.image-banner-link:hover .image-banner::after {
    background: linear-gradient(to bottom, rgba(15, 27, 45, 0.15) 0%, rgba(15, 27, 45, 0.2) 40%, rgba(15, 27, 45, 0.65) 100%);
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 3rem 2rem;
    text-align: center;
    z-index: 2;
}

.banner-overlay .banner-title {
    font-size: 3.2rem !important;
    font-weight: 800;
    color: white !important;
    margin: 0 0 0.6rem 0 !important;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.banner-overlay .banner-subtitle {
    font-size: 1.35rem !important;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.92) !important;
    margin: 0 !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

/* Typography */
.content h1 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    margin-top: 2rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 3.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.content h2::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 48px;
    height: 2px;
    background: var(--blue);
}

.content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2.25rem;
    margin-bottom: 1.1rem;
}

.content p {
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 400;
}

.content a {
    color: var(--blue);
    text-decoration: none;
    border-bottom: 1px solid var(--blue);
    transition: var(--transition-base);
    font-weight: 500;
}

.content a:hover {
    color: var(--blue-dark);
    border-bottom-color: var(--blue-dark);
}

/* ===============================================
   PROFILE CARD
   =============================================== */

.profile-card {
    display: flex;
    gap: 2rem;
    background: var(--bg-secondary);
    padding: 2.25rem;
    border-radius: var(--border-radius-lg);
    margin: 3rem 0;
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--navy);
    align-items: center;
}

.profile-picture {
    flex-shrink: 0;
}

.profile-picture img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-md);
    border: 3px solid white;
}

.profile-info h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.profile-info h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--blue);
    margin-bottom: 1rem;
}

.profile-info p {
    font-size: 0.98rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.7;
}

/* ===============================================
   TEXT HIGHLIGHTING
   =============================================== */

.text-highlight {
    background-color: #fde68a;
    padding: 2px 0;
    border-radius: 2px;
}

.character-card p {
    user-select: none;
}

/* ===============================================
   PROS AND CONS
   =============================================== */

pros, cons {
    display: block;
    padding: 1.25rem 1.75rem;
    border-radius: var(--border-radius);
    margin: 1.75rem 0;
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
}

pros {
    background: var(--green-tint);
    color: var(--green);
    border-left: 3px solid var(--green);
}

pros::before {
    content: '✓';
    position: absolute;
    left: -13px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--green);
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
}

cons {
    background: var(--red-tint);
    color: var(--red);
    border-left: 3px solid var(--red);
}

cons::before {
    content: '✗';
    position: absolute;
    left: -13px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--red);
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
}

f {
    font-weight: 700;
    color: var(--navy);
}

/* ===============================================
   CLASS VIDEO BOX
   =============================================== */

.class-video-box {
    margin: 3rem 0;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    background: var(--bg-secondary);
    overflow: hidden;
}

.video-toggle {
    width: 100%;
    background: var(--navy);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-base);
    font-family: 'Inter', sans-serif;
}

.video-toggle:hover {
    background: var(--navy-dark);
}

.video-content {
    display: none;
    padding: 1.75rem;
    background: white;
}

.video-content.active {
    display: block;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-note {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 500;
}

.video-toggle-icon {
    font-size: 0.9rem;
    transition: var(--transition-base);
}

/* ===============================================
   OTHER SECTIONS
   =============================================== */

.subtitle {
    font-size: 1.2rem !important;
    color: var(--blue) !important;
    text-align: center;
    font-weight: 600 !important;
    margin-bottom: 2rem !important;
    font-style: normal;
}

.intro-box {
    background: var(--blue-tint);
    border-left: 3px solid var(--blue);
    padding: 1.4rem 1.75rem;
    border-radius: var(--border-radius);
    margin: 2rem 0 3rem 0;
}

.intro-box p {
    margin: 0 !important;
    font-size: 1.08rem !important;
    line-height: 1.7 !important;
}

/* Character Sections */
.character-section {
    margin: 4rem 0;
    scroll-margin-top: 100px;
}

.character-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
    background: var(--navy);
    position: relative;
}

.character-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition-base);
}

.character-card:hover .character-photo img {
    transform: scale(1.03);
}

.character-icon {
    display: none;
}

.character-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    padding: 1.75rem;
    transition: var(--transition-base);
}

.character-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-medium);
}

.character-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

/* Practice Section */
.practice-section {
    margin: 2rem 0 4rem 0;
    padding: 2.25rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
}

.practice-section h2 {
    margin-top: 0 !important;
    color: var(--navy);
}

.question-box {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
}

.question-box h3 {
    color: var(--navy);
    margin-top: 0 !important;
    font-size: 1.15rem;
}

.question-box ol {
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.question-box li {
    margin: 1rem 0;
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Vocabulary Section */
.vocab-section {
    margin: 4rem 0;
    padding: 2.25rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
}

.vocab-section h2 {
    margin-top: 0 !important;
    color: var(--navy);
}

.vocab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.vocab-card {
    background: white;
    padding: 1.4rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--blue);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vocab-card:hover {
    box-shadow: var(--shadow-sm);
}

.vocab-word {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.vocab-def {
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Character Questions - Expandable */
.character-questions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.question-toggle {
    width: 100%;
    background: var(--navy);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-base);
    font-family: 'Inter', sans-serif;
}

.question-toggle:hover {
    background: var(--navy-dark);
}

.question-toggle.active {
    background: var(--navy-dark);
}

.toggle-icon {
    font-size: 0.9rem;
    transition: var(--transition-base);
}

.questions-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: var(--bg-secondary);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.questions-content ol {
    margin: 0;
    padding: 1.5rem 2rem 1.5rem 3rem;
}

.questions-content li {
    margin: 1rem 0;
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 400;
}

/* Phrasal verb / EN-ES table styling */
.content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.5rem 0 2.5rem 0;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.content table thead tr {
    background: var(--navy);
}

.content table th {
    color: #ffffff;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.9rem 1.1rem;
    text-align: left;
    font-weight: 700;
    white-space: nowrap;
}

.content table td {
    padding: 0.9rem 1.1rem;
    vertical-align: top;
    font-size: 0.94rem !important;
    line-height: 1.55;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.content table tbody tr:nth-child(even) { background: var(--bg-secondary); }
.content table tbody tr:hover { background: var(--blue-tint); }
.content table tbody tr:last-child td { border-bottom: none; }

.content table td:first-child {
    font-weight: 700;
    color: var(--navy);
    white-space: nowrap;
}

.content table td.es-cell {
    color: var(--blue-dark);
    font-weight: 600;
}

.content table td.es-cell .flag { margin-right: 0.35rem; }
.content table em { font-style: italic; color: var(--text-light); }

@media (max-width: 640px) {
    .content table { display: block; overflow-x: auto; white-space: nowrap; }
    .content table td:first-child { white-space: nowrap; }
}

/* ===============================================
   QR SECTION
   =============================================== */

.qr-section {
    margin: 0 0 4rem 0;
    padding: 2.25rem 2rem;
    background: var(--bg-secondary);
    border: 1px dashed var(--border-medium);
    border-radius: var(--border-radius-lg);
    text-align: center;
}

.qr-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    margin-bottom: 0.4rem !important;
}

.qr-subtitle {
    font-size: 1rem !important;
    color: var(--text-secondary) !important;
    margin-bottom: 1.8rem !important;
    font-weight: 400 !important;
}

.qr-wrapper {
    display: inline-block;
    padding: 12px;
    background: white;
    border-radius: var(--border-radius);
    margin-bottom: 1.6rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.qr-wrapper img,
.qr-wrapper canvas {
    display: block;
    border-radius: 6px;
}

.qr-steps {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.qr-step {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.qr-num {
    width: 24px;
    height: 24px;
    background: var(--blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.qr-url {
    display: inline-block;
    font-size: 0.85rem !important;
    color: var(--blue) !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
    margin: 0 !important;
    text-decoration: none;
    border-bottom: 1px solid var(--blue);
    transition: var(--transition-base);
    padding-bottom: 2px;
}

.qr-url:hover {
    color: var(--blue-dark) !important;
    border-bottom-color: var(--blue-dark);
}

/* ===============================================
   RESPONSIVE
   =============================================== */

@media (max-width: 768px) {
    .hero-banner .hero-title { font-size: 1.85rem !important; }
    .idiom-phrase { font-size: 1.1rem; }
    .stat-strip { gap: 0.5rem; }
    .compare-table th,
    .compare-table td { padding: 0.7rem 0.9rem; font-size: 0.88rem; }

    .qr-steps {
        flex-direction: column;
        align-items: center;
        gap: 0.85rem;
    }

    .qr-title { font-size: 1.1rem !important; }

    .social-networks-container {
        bottom: 20px;
        right: 20px;
    }

    .social-network-button {
        width: 44px;
        height: 44px;
    }

    .social-network-button img {
        width: 22px;
        height: 22px;
    }

    .social-networks-trigger {
        width: 44px;
        height: 44px;
    }

    .social-networks-trigger img {
        width: 15px;
        height: 15px;
    }

    .content {
        padding: 0 1.5rem;
        max-width: 100%;
    }

    .image-banner {
        margin-top: -1.5rem;
        margin-left: -1.5rem;
        width: calc(100% + 3rem);
    }

    .banner-overlay {
        padding: 2rem 1.8rem 1.8rem;
    }

    .banner-overlay .banner-title {
        font-size: 2.3rem !important;
    }

    .banner-overlay .banner-subtitle {
        font-size: 1.15rem !important;
    }

    .content h1 {
        font-size: 1.6rem;
        margin-top: 1.5rem;
    }

    .content h2 {
        font-size: 1.4rem;
        margin-top: 2.75rem;
    }

    .content h3 {
        font-size: 1.15rem;
    }

    .content p {
        font-size: 1.02rem;
        margin-bottom: 1rem;
        line-height: 1.75;
    }

    .profile-card {
        flex-direction: column;
        text-align: center;
        padding: 1.75rem 1.5rem;
    }

    .profile-picture {
        display: flex;
        justify-content: center;
    }

    .profile-info h2 {
        font-size: 1.25rem;
    }

    .profile-info h4 {
        font-size: 0.98rem;
    }

    pros, cons {
        padding: 1.1rem 1.4rem;
        font-size: 1rem;
    }

    .character-photo {
        width: 76px;
        height: 76px;
    }

    .question-toggle {
        font-size: 0.98rem;
        padding: 0.85rem 1.2rem;
    }

    .questions-content ol {
        padding: 1.2rem 1.4rem 1.2rem 2.4rem;
    }

    .questions-content li {
        font-size: 1.15rem;
    }
}

@media (max-width: 480px) {
    .hero-banner .hero-title { font-size: 1.5rem !important; }
    .stat-number { font-size: 1.7rem; }

    .banner-overlay .banner-title {
        font-size: 1.9rem !important;
    }

    .banner-overlay .banner-subtitle {
        font-size: 1.05rem !important;
    }

    .character-photo {
        width: 64px;
        height: 64px;
    }
}

/* ===============================================
   SIMPLE PAST / DID ARTICLE: ADD TO articles.css
   (uses your existing tokens; paste before the RESPONSIVE section)
   =============================================== */

/* --- Formula cards --- */
.formula-grid { display: grid; gap: 1rem; margin: 2rem 0; }

.formula-card {
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    padding: 1.25rem 1.5rem;
    background: var(--bg-primary);
}

.formula-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.65rem;
}

.formula-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.05rem;
}

.fs {
    padding: 0.35rem 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.fs-aux  { background: var(--navy); border-color: var(--navy); color: #fff; }

.fs-past,
.fs-base { font-size: 1.3rem; padding: 0.45rem 1rem; }

.fs-past { background: var(--green-tint); border: 2px solid var(--green); color: var(--green); }
.fs-base { background: var(--blue-tint);  border: 2px solid var(--blue);  color: var(--blue-dark); }

.formula-example { margin: 0.75rem 0 0 !important; font-size: 1rem !important; }
.formula-example f { font-size: 1.1rem; }

/* --- Sound groups (/t/, /d/, /ɪd/) --- */
.sound-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2.5rem 0 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--blue);
    background: var(--blue-tint);
}

.sound-head.d  { border-left-color: var(--green); background: var(--green-tint); }
.sound-head.id { border-left-color: var(--gold);  background: var(--gold-tint); }

.sound-pill {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--navy);
    min-width: 3.4rem;
    text-align: center;
}

.sound-head p { margin: 0 !important; font-size: 0.98rem !important; line-height: 1.6 !important; }

/* --- Letter cards --- */
.letter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 0.9rem;
}

.letter-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 1.15rem;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    background: #fff;
    transition: var(--transition-base);
}

.letter-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-medium); }

.letter-badge {
    flex-shrink: 0;
    min-width: 46px;
    height: 46px;
    padding: 0 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1.15rem;
    background: var(--blue-tint);
    color: var(--blue-dark);
}

.letter-card.d  .letter-badge { background: var(--green-tint); color: var(--green); }
.letter-card.id .letter-badge { background: var(--gold-tint);  color: var(--gold); }

.letter-verbs { font-size: 0.95rem; line-height: 1.85; color: var(--text-secondary); }
.letter-verbs f { color: var(--navy); }

.letter-tip {
    margin: 0.35rem 0 0 !important;
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
    color: var(--text-light) !important;
}

/* Footer Styles */

/* Ensures the footer sticks to the bottom */
.site-footer {
  flex-shrink: 0; /* Ensures the footer doesn't shrink */
  width: 100%;
  background-color: #27385c; /* Dark background for the footer */
  color: white; /* White text color */
  padding: 20px 0; /* Padding around the footer content */
  position: relative;
  bottom: 0;
}

.footer-container {
  display: flex;
  flex-direction: column; /* Stack children vertically */
  align-items: center; /* Center-align the content */
  justify-content: center; /* Center content vertically */
  max-width: 100%; /* Maximum width of the footer content */
  margin: auto; /* Center the footer container */
}

.footer-links {
  display: flex;
  flex-direction: row; /* Layout links in a row */
  justify-content: center; /* Center links horizontally */
  padding-bottom: 10px; /* Space below the links */
}

.footer-links a {
  color: white; /* White text color for links */
  text-decoration: none; /* No underline for links */
  margin: 0 15px; /* Spacing between links */
}

.footer-links a:hover {
  text-decoration: underline; /* Underline on hover for visual feedback */
}

.footer-logo {
  display: flex; /* Align items in a row */
  justify-content: center; /* Center items horizontally */
  align-items: center; /* Center items vertically */
  gap: 20px; /* Space between logos */
  margin-bottom: 10px; /* Keeps the existing bottom margin */
}


.footer-logo img {
  max-height: 30px; /* Maximum height of the logo */
  
}

.footer-bottom {
  text-align: center; /* Center-align the bottom text */
  font-size: 0.8rem; /* Smaller font size for the bottom text */
}



/* =====================================================================
   LESSONS — look between the home page and the app (innerenglish.app):
   app level colors, rounded cards, Quicksand titles, Nunito text.
   Appended after articles.css + site-header.css + footer_styles.css
   by tools/build-lessons.js → public/css/lessons.css (one file).
   ===================================================================== */

:root {
    /* App level colors (same as the student dashboard / Kardex). */
    --lvl-a1: #00ACC1;
    --lvl-a1p: #0097A7;
    --lvl-a2: #00838F;
    --lvl-b1: #1CA0FF;
    --lvl-b2: #1A6DFF;
    --lvl-c1: #9C68CC;
    --lvl: var(--lvl-a1);
    --lvl-dark: #00707e;
    --lvl-tint: #e3f7fa;
    --navy: #1b3550;
    --blue: var(--lvl);
    --blue-dark: var(--lvl-dark);
    --blue-tint: var(--lvl-tint);
    --gradient-primary: linear-gradient(135deg, var(--lvl) 0%, var(--lvl-dark) 100%);
    --border-radius-lg: 18px;
}

body.lvl-a1p { --lvl: var(--lvl-a1p); --lvl-dark: #006874; --lvl-tint: #e0f4f6; }
body.lvl-a2  { --lvl: var(--lvl-a2);  --lvl-dark: #005b63; --lvl-tint: #dff0f1; }
body.lvl-b1  { --lvl: var(--lvl-b1);  --lvl-dark: #0a6fc0; --lvl-tint: #e4f2ff; }
body.lvl-b2  { --lvl: var(--lvl-b2);  --lvl-dark: #0f46b0; --lvl-tint: #e5edff; }
body.lvl-c1  { --lvl: var(--lvl-c1);  --lvl-dark: #6b3fa0; --lvl-tint: #f1e9f9; }

body.lesson {
    font-family: 'Nunito', 'Inter', sans-serif;
    background: #eef6f8;
}

.lesson h1, .lesson h2, .lesson h3,
.lesson .hero-title, .lesson .stat-number, .lesson .formula-label {
    font-family: 'Quicksand', 'Nunito', sans-serif;
}

.lesson .content {
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
    border-radius: 22px;
    box-shadow: 0 6px 24px -10px rgba(0, 80, 95, 0.25);
}
.lesson .content::before { display: none; }

.lesson .hero-banner { border-radius: 22px 22px 0 0; }
.lesson .hero-badge { background: rgba(255, 255, 255, 0.2); }

/* Breadcrumb */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0 0 1rem;
    padding-top: 1.2rem;
}
.breadcrumb a { color: var(--lvl-dark); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.lesson-cover {
    margin: 1.5rem 0 0.5rem;
    text-align: center;
}
.lesson-cover img {
    width: 100%;
    max-width: 360px;
    border-radius: 18px;
    box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.25);
}

.lesson .level-badge {
    background: var(--lvl-tint);
    color: var(--lvl-dark);
    border-color: transparent;
}

.lesson .stat-box { border-radius: 16px; }
.lesson .formula-card { border-radius: 16px; }
.lesson .compare-wrap { border-radius: 14px; }
.lesson .callout { border-radius: 14px; }

/* "Practica en la app": looks like the app's lesson buttons */
.app-practice {
    margin: 2rem 0;
    padding: 1.25rem;
    border-radius: 18px;
    background: var(--gradient-primary);
    color: #fff;
}
.app-practice h2 {
    color: #fff;
    margin: 0 0 0.25rem;
    font-size: 1.35rem;
}
.app-practice p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1rem;
    font-size: 0.95rem;
}
.app-exercise {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 1rem;
    margin-bottom: 0.6rem;
    border-radius: 14px;
    background: #fff;
    color: var(--lvl-dark) !important;
    font-weight: 700;
    text-decoration: none !important;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.app-exercise:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.3);
}
.app-exercise .ex-num {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--lvl);
    color: #fff;
    font-size: 0.9rem;
}
.app-exercise .ex-title { flex: 1; }
.app-exercise .ex-go { font-size: 0.85rem; opacity: 0.8; white-space: nowrap; }

/* Share */
.share-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 1.75rem 0;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: var(--bg-secondary);
}
.share-bar strong { margin-right: 0.25rem; font-size: 0.95rem; }
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none !important;
    cursor: pointer;
}
.share-btn.wa { background: #25D366; }
.share-btn.fb { background: #1877F2; }
.share-btn.copy, .share-btn.native { background: var(--navy); }
.share-btn:hover { opacity: 0.88; }

/* More lessons of the level */
.related h2 { margin-bottom: 0.75rem; }
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.6rem;
    margin-bottom: 2rem;
}
.related-grid a {
    display: block;
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
    background: var(--lvl-tint);
    color: var(--lvl-dark) !important;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none !important;
}
.related-grid a:hover { filter: brightness(0.96); }
.related-grid a[aria-current="page"] {
    background: var(--lvl);
    color: #fff !important;
}

/* Free class / level test invitation */
.lesson .invite-box {
    text-align: center;
    margin: 2.5rem 0 1rem;
    padding: 1.75rem 1.25rem;
    border-radius: 18px;
    background: var(--bg-secondary);
}
.lesson .invite-box .cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1rem;
}
.lesson .cta-btn.secondary {
    background: #fff;
    color: var(--lvl-dark) !important;
    border: 2px solid var(--lvl);
}

@media (max-width: 600px) {
    .lesson .content { margin: 0.75rem; padding: 0 1.1rem; }
    .lesson .hero-banner { width: calc(100% + 2.2rem); margin-left: -1.1rem; padding: 2.25rem 1.4rem 2rem; }
    .app-exercise .ex-go { display: none; }
}

/* Guides (level test, vocabulary test): more formal, navy accent */
body.lvl-guide { --lvl: #2A5298; --lvl-dark: #1E3C72; --lvl-tint: #e8eef8; }

.test-cta {
    text-align: center;
    margin: 1.75rem 0 2rem;
}
.test-cta .cta-btn {
    display: inline-block;
    padding: 0.95rem 1.8rem;
    font-size: 1.05rem;
}
.test-cta p {
    margin: 0.6rem 0 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

.faq { margin: 2rem 0; }
.faq details {
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 0.9rem 1.1rem;
    margin-bottom: 0.6rem;
    background: #fff;
}
.faq summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--text-primary);
    list-style-position: inside;
}
.faq details[open] summary { color: var(--lvl-dark); margin-bottom: 0.4rem; }
.faq details p { margin: 0; color: var(--text-secondary); }

.lesson figure { margin: 0; }
.lang-switch { text-align: center; margin: 0 0 2rem; }
.lang-switch a { color: var(--lvl-dark); font-weight: 700; }

/* Icons (SVG, no emojis) */
.ic { display: inline-block; vertical-align: -0.2em; flex: 0 0 auto; }
.lesson .callout-icon { display: flex; align-items: flex-start; padding-top: 0.15rem; }
.lesson .callout.teal .callout-icon   { color: var(--lvl-dark); }
.lesson .callout.purple .callout-icon { color: var(--navy); }
.lesson .callout.yellow .callout-icon { color: var(--gold); }
.lesson .callout.red .callout-icon    { color: var(--red); }
.lesson .tip-icon { color: var(--gold); display: flex; }
.lesson .ex-badge { display: inline-flex; align-items: center; gap: 0.25rem; }
.lesson .ex-badge .ic { width: 15px; height: 15px; }
.lesson .level-badge { display: inline-flex; align-items: center; gap: 0.4rem; }
.lesson .level-badge .ic { width: 16px; height: 16px; }

/* Cover image inside the hero (text left, image right; on phones above) */
.lesson .hero-banner.has-media {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1.75rem;
}
.lesson .hero-media { margin: 0; }
.lesson .hero-media img {
    display: block;
    width: 190px;
    height: 190px;
    object-fit: cover;
    border-radius: 18px;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.45);
    transform: rotate(2.5deg);
}
.lesson .level-badge { margin-top: 1.25rem; }

@media (max-width: 640px) {
    .lesson .hero-banner.has-media {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }
    .lesson .hero-media { order: -1; justify-self: start; }
    .lesson .hero-media img { width: 120px; height: 120px; transform: rotate(-2deg); border-width: 3px; }
}

/* =====================================================================
   BRIGHTER, EASIER TO READ (user feedback: monotone, small, "cloudy")
   ===================================================================== */
body.lesson {
    background: linear-gradient(180deg, var(--lvl-tint) 0%, #f7fbfc 420px, #f7fbfc 100%);
}
.lesson .content {
    background: #ffffff !important;
    box-shadow: 0 10px 40px -18px rgba(0, 70, 85, 0.35);
}

/* Bigger, darker text */
.lesson .content p,
.lesson .content li,
.lesson .compare-table td,
.lesson .formula-example,
.lesson .callout-body p {
    font-size: 1.15rem;
    line-height: 1.75;
    color: #1d2a35;
}
.lesson .intro-box p { font-size: 1.2rem; color: #14212f; }
.lesson .breadcrumb { font-size: 0.9rem; }

/* Titles with the level color */
.lesson .content h2 {
    font-size: 1.85rem;
    color: var(--lvl-dark);
    border-bottom: 0;
    padding-bottom: 0;
    padding-left: 0.85rem;
    border-left: 5px solid var(--lvl);
    line-height: 1.25;
}
.lesson .content h2::before { display: none; }
.lesson .hero-banner .hero-title { font-size: 2.4rem; }
.lesson .hero-sub { font-size: 1.15rem; }

/* Highlighted words: colored, not just bold */
.lesson f {
    color: var(--lvl-dark);
    background: var(--lvl-tint);
    padding: 0 0.25em;
    border-radius: 4px;
    font-weight: 700;
}

/* Tables: level-color header, clear rows */
.lesson .compare-wrap { box-shadow: 0 4px 16px -8px rgba(0, 0, 0, 0.18); }
.lesson .compare-table thead tr { background: var(--lvl); }
.lesson .compare-table th { font-size: 1rem; letter-spacing: 0.02em; }
.lesson .compare-table td:first-child { font-weight: 800; color: var(--lvl-dark); }
.lesson .compare-table tbody tr:nth-child(odd) { background: #ffffff; }
.lesson .compare-table tbody tr:nth-child(even) { background: var(--lvl-tint); }

/* Callouts with real color */
.lesson .callout { border-width: 0; border-left-width: 6px; border-left-style: solid; }
.lesson .callout.teal   { background: #e3f7fa; border-left-color: #00ACC1; }
.lesson .callout.purple { background: #efe9fb; border-left-color: #7e57c2; }
.lesson .callout.yellow { background: #fff6dc; border-left-color: #f2b01e; }
.lesson .callout.red    { background: #fdecea; border-left-color: #e5534b; }
.lesson .callout.purple .callout-icon { color: #7e57c2; }
.lesson .callout.yellow .callout-icon { color: #c98a00; }
.lesson .callout.red .callout-icon    { color: #e5534b; }
.lesson .callout-body strong { font-size: 1.15rem; color: #14212f; }
.lesson .callout .ic { width: 26px; height: 26px; }

/* Formula cards: white with a colored top */
.lesson .formula-card {
    background: #ffffff;
    border: 1px solid #d9eef2;
    border-top: 5px solid var(--lvl);
    box-shadow: 0 4px 14px -8px rgba(0, 0, 0, 0.18);
}
.lesson .formula-label { font-size: 1.1rem; color: var(--lvl-dark); font-weight: 700; }
.lesson .fs { font-size: 1.05rem; }

/* Yes / no */
.lesson .ex-native, .lesson .ex-esl { font-size: 1.12rem; border-left-width: 6px; }

/* Free class box: Spanish, warm, real buttons */
.lesson .invite-box {
    background: linear-gradient(135deg, #fff7e6 0%, #ffffff 100%);
    border: 2px solid #ffd27a;
}
.lesson .invite-box h2 {
    border-left: 0;
    padding-left: 0;
    text-align: center;
    color: #14212f;
}
.lesson .invite-box h2::before, .lesson .invite-box h2::after { display: none; }
.lesson .invite-box .cta-btn {
    display: inline-block;
    padding: 0.95rem 1.7rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 1.05rem;
    text-decoration: none !important;
    border: 0;
    background: #ff8a00;
    color: #ffffff !important;
    box-shadow: 0 6px 16px -6px rgba(255, 138, 0, 0.6);
}
.lesson .invite-box .cta-btn:hover { background: #f07c00; }
.lesson .invite-box .cta-btn.secondary {
    background: #ffffff;
    color: var(--lvl-dark) !important;
    border: 2px solid var(--lvl);
    box-shadow: none;
}

/* Test guides: their big button */
.lesson .test-cta .cta-btn {
    background: var(--lvl);
    color: #ffffff !important;
    border-radius: 999px;
    box-shadow: 0 8px 20px -8px var(--lvl);
}

@media (max-width: 600px) {
    .lesson .content h2 { font-size: 1.5rem; }
    .lesson .hero-banner .hero-title { font-size: 1.9rem; }
    .lesson .content p, .lesson .content li, .lesson .compare-table td { font-size: 1.08rem; }
}

/* "Practica en la app": white title/text on the color, real buttons */
.lesson .app-practice h2 {
    color: #ffffff;
    border-left: 0;
    padding-left: 0;
    margin-top: 0;
    font-size: 1.6rem;
}
.lesson .app-practice > p { color: rgba(255, 255, 255, 0.95); font-size: 1.08rem; }
.lesson .app-exercise { font-size: 1.1rem; padding: 0.8rem 0.9rem 0.8rem 1rem; }
.lesson .app-exercise .ex-title { color: #14212f; font-weight: 700; }
.lesson .app-exercise .ex-go {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    background: #ff8a00;
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    opacity: 1;
    box-shadow: 0 4px 12px -4px rgba(255, 138, 0, 0.6);
}
.lesson .app-exercise:hover .ex-go { background: #f07c00; }
.lesson .app-exercise .ex-go .ic { width: 14px; height: 14px; }
@media (max-width: 600px) {
    .lesson .app-exercise .ex-go { display: inline-flex; padding: 0.5rem 0.9rem; font-size: 0.95rem; }
}

/* ES | EN switch (same idea as My Profile in the app) */
.lesson-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 1.1rem;
    margin-bottom: 1rem;
}
.lesson-topbar .breadcrumb { margin: 0; padding: 0; }
.lang-toggle {
    flex: 0 0 auto;
    display: inline-flex;
    padding: 3px;
    border-radius: 999px;
    background: var(--lvl-tint);
    border: 1px solid rgba(0, 0, 0, 0.06);
}
.lang-toggle a, .lang-toggle span {
    min-width: 44px;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    text-align: center;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-decoration: none !important;
}
.lang-toggle a { color: var(--lvl-dark) !important; }
.lang-toggle a:hover { background: rgba(255, 255, 255, 0.7); }
.lang-toggle .on {
    background: var(--lvl);
    color: #ffffff;
    box-shadow: 0 2px 6px -2px rgba(0, 0, 0, 0.3);
}
@media (max-width: 600px) {
    .lesson-topbar { align-items: flex-start; }
    .lesson-topbar .breadcrumb { font-size: 0.8rem; }
}

/* The same ES | EN switch at the end of the article */
.lesson .lang-switch { display: flex; justify-content: center; margin: 0 0 2rem; }
.lesson .lang-switch .lang-toggle { transform: scale(1.1); }


/* Header in the home page style (lessons, guides, material gratis).
   Source file: tools/lessons/header.css → public/css/header.css and css/lessons.css */
/* =====================================================================
   HEADER — same style as the home page (index.html)
   ===================================================================== */
.lh {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #E3E9F5;
    font-family: 'Nunito', system-ui, sans-serif;
}
.lh-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    height: 76px;
}
.lh-logo { flex: none; }
.lh-logo img { height: 52px; width: auto; display: block; }
.lh-nav { display: flex; gap: 4px; margin-left: auto; }
.lh-nav a {
    text-decoration: none;
    font-weight: 700;
    color: #4A5672;
    padding: 8px 12px;
    border-radius: 999px;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}
.lh-nav a:hover { background: #F2F6FF; color: #1A6DFF; }
.lh-actions { flex: none; display: flex; align-items: center; gap: 12px; }
.lh-student {
    white-space: nowrap;
    font-weight: 800;
    text-decoration: none;
    color: #1F2A44;
    padding: 10px 16px;
    border-radius: 999px;
    border: 2px solid #E3E9F5;
}
.lh-student:hover { border-color: #1A6DFF; color: #1A6DFF; }
.lh-free {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 12px 22px;
    border-radius: 999px;
    background: #15A34A;
    color: #fff !important;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 5px 0 #118A3E;
    transition: transform 0.2s, box-shadow 0.2s;
}
.lh-free:hover { transform: translateY(-1px); }
.lh-free:active { transform: translateY(3px); box-shadow: 0 2px 0 #118A3E; }
.lh-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.lh-burger span {
    display: block;
    width: 26px;
    height: 3px;
    background: #1F2A44;
    border-radius: 2px;
    margin: 5px 0;
    transition: 0.3s;
}
.lh-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.lh-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.lh-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.lh-menu { display: none; }

@media (max-width: 1240px) { .lh-student { display: none; } }
@media (max-width: 1060px) {
    .lh-nav { display: none; }
    .lh-actions { margin-left: auto; }
    .lh-burger { display: block; }
    .lh-menu {
        position: fixed;
        inset: 76px 0 auto 0;
        background: #fff;
        border-bottom: 1px solid #E3E9F5;
        box-shadow: 0 24px 60px rgba(22, 32, 58, 0.18);
        padding: 12px 24px 24px;
        flex-direction: column;
        gap: 4px;
        z-index: 49;
        font-family: 'Nunito', system-ui, sans-serif;
    }
    .lh-menu.open { display: flex; }
    .lh-menu a {
        text-decoration: none;
        font-weight: 800;
        font-size: 1.1rem;
        color: #16203A;
        padding: 12px 6px;
        border-bottom: 1px solid #E3E9F5;
    }
    .lh-menu a.lh-menu-student { border: 0; color: #1A6DFF; }
}
@media (max-width: 560px) {
    .lh-wrap { height: 68px; padding: 0 16px; gap: 12px; }
    .lh-logo img { height: 44px; }
    .lh-free { padding: 10px 16px; font-size: 0.95rem; }
    .lh-menu { top: 68px; }
}
.lh-nav a[aria-current="page"] { background: #F2F6FF; color: #1A6DFF; }

/* Material icons in the menu (same as the app's side menu) */
.lh-nav a, .lh-menu a { display: inline-flex; align-items: center; gap: 0.5rem; }
.lh-nav .mi { width: 19px; height: 19px; opacity: 0.85; }
.lh-student { display: inline-flex; align-items: center; gap: 0.4rem; }

/* Phones / tablets: menu button on the LEFT and a drawer from the left,
   like the app. */
@media (max-width: 1060px) {
    .lh-burger { display: block; order: -1; margin: 0 -4px 0 -8px; }
    .lh-actions { margin-left: auto; }
    .lh-menu {
        display: flex;
        position: fixed;
        inset: 0 auto 0 0;
        width: min(320px, 85vw);
        padding: 18px 14px 24px;
        border: 0;
        border-radius: 0 22px 22px 0;
        box-shadow: 8px 0 40px rgba(22, 32, 58, 0.25);
        transform: translateX(-105%);
        transition: transform 0.28s ease;
        z-index: 60;
        overflow-y: auto;
    }
    .lh-menu.open { transform: translateX(0); }
    .lh-menu a {
        gap: 0.9rem;
        padding: 13px 12px;
        border: 0;
        border-radius: 14px;
        font-size: 1.12rem;
        font-weight: 700;
    }
    .lh-menu a:hover, .lh-menu a[aria-current="page"] { background: #F2F6FF; color: #1A6DFF; }
    .lh-menu .mi { width: 24px; height: 24px; color: #4A5672; flex: none; }
    .lh-menu a:hover .mi, .lh-menu a[aria-current="page"] .mi { color: #1A6DFF; }
    .lh-menu .lh-menu-logo { padding: 4px 8px 14px; margin-bottom: 6px; border-bottom: 1px solid #E3E9F5; border-radius: 0; }
    .lh-menu .lh-menu-logo:hover { background: none; }
    .lh-menu .lh-menu-logo img { height: 46px; width: auto; }
    .lh-menu a.lh-menu-student { margin-top: 10px; border-top: 1px solid #E3E9F5; border-radius: 0 0 14px 14px; color: #1A6DFF; }
    .lh-menu a.lh-menu-student .mi { color: #1A6DFF; }
    .lh-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        z-index: 55;
        opacity: 0;
        transition: opacity 0.28s ease;
    }
    .lh-overlay.open { opacity: 1; }
}
@media (min-width: 1061px) {
    .lh-menu, .lh-overlay { display: none !important; }
}

/* Less in the bar: no "Soy estudiante" button (it's a menu link), and no
   logo when the drawer exists (the drawer shows it). */
.lh-student { display: none !important; }
.lh-nav { gap: 2px; }
.lh-nav a { padding: 8px 10px; }
@media (max-width: 1060px) {
    .lh-logo { display: none; }
}

/* Drawer logo: bigger and centered */
@media (max-width: 1060px) {
    .lh-menu .lh-menu-logo { justify-content: center; padding: 6px 8px 16px; }
    .lh-menu .lh-menu-logo img { height: auto; width: 210px; max-width: 80%; }
}
