/*
Theme Name:   Astra Child
Theme URI:    https://hollywoodenglish.club
Description:  Child theme for Hollywood English Club
Author:       Murray Walker
Author URI:   https://hollywoodenglish.club
Template:     astra
Version:      1.0.0
Text Domain:  astra-child
*/

/* ============================================
   HOLLYWOOD ENGLISH CLUB — CUSTOM STYLES
   ============================================ */

/* ── Lessons grid — prevent orphaned last item stretching full width ── */
.blog .site-content .ast-archive-description ~ .ast-container .ast-article-post,
.blog .site-content .ast-archive-description ~ .ast-container .ast-article-inner-wrap,
.archive .ast-article-post {
    max-width: 100%;
}

.blog .posts-container.ast-grid-view,
.archive .posts-container.ast-grid-view {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
}

.blog .posts-container.ast-grid-view .ast-article-post,
.archive .posts-container.ast-grid-view .ast-article-post {
    width: 100% !important;
    max-width: 100% !important;
}

@media (max-width: 768px) {
    .blog .posts-container.ast-grid-view,
    .archive .posts-container.ast-grid-view {
        grid-template-columns: repeat(1, 1fr) !important;
    }
}

/* ── Post title size ── */
.single .entry-title,
.single h1.entry-title,
.single .ast-post-format- .entry-title,
body.single h1.entry-title,
body.single-post h1.entry-title,
body.single-post .entry-title {
    font-size: 28px !important;
    line-height: 1.3 !important;
    --ast-heading-font-size: 28px;
}

@media (max-width: 768px) {
    .single .entry-title,
    .single h1.entry-title,
    body.single-post h1.entry-title {
        font-size: 22px !important;
        --ast-heading-font-size: 22px;
    }
}

/* --- Brand colours & tokens --- */
:root {
    --hec-red:      #C8102E;
    --hec-red-dark: #a50d25;
    --hec-black:    #111111;
    --hec-white:    #ffffff;
    --hec-grey:     #f5f5f5;
    --hec-grey-mid: #888888;
    --hec-radius:   6px;
    --hec-max-w:    1100px;
    --hec-section-pad: 80px 24px;
}

/* --- Resets for our pages --- */
.hec-site-header ~ * {
    box-sizing: border-box;
}

/* ============================================
   SHARED UTILITY
   ============================================ */

.hec-container {
    max-width: var(--hec-max-w);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.hec-section {
    padding: var(--hec-section-pad);
}

.hec-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 52px;
}

.hec-section-sub {
    color: var(--hec-grey-mid);
    font-size: 18px;
    max-width: 640px;
    margin: 12px auto 0;
    text-align: center;
}

/* ============================================
   BUTTONS
   ============================================ */

.hec-btn {
    display: inline-block;
    padding: 14px 30px;
    background: var(--hec-red);
    color: var(--hec-white) !important;
    border: 2px solid var(--hec-red);
    border-radius: var(--hec-radius);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.hec-btn:hover {
    background: var(--hec-red-dark);
    border-color: var(--hec-red-dark);
    color: var(--hec-white) !important;
}

.hec-btn--outline {
    background: transparent;
    color: var(--hec-red) !important;
}

.hec-btn--outline:hover {
    background: var(--hec-red);
    color: var(--hec-white) !important;
}

.hec-btn--sm {
    padding: 10px 22px;
    font-size: 14px;
}

.hec-btn--outline-sm {
    background: transparent;
    color: var(--hec-red) !important;
    border: 2px solid var(--hec-red);
    padding: 8px 18px;
    font-size: 13px;
}

.hec-btn--outline-sm:hover {
    background: var(--hec-red);
    color: var(--hec-white) !important;
}

.hec-glossary-download {
    margin: 16px 0 8px;
}

/* ============================================
   HEADER
   ============================================ */

.hec-site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--hec-white);
    border-bottom: 1px solid #eee;
}

.hec-header-inner {
    max-width: none;
    margin: 0;
    padding: 16px 32px 16px 8%;
    height: auto;
    display: flex;
    align-items: center;
    gap: 32px;
}

.hec-header-logo img {
    display: block;
    height: 64px;
    width: auto;
}

.hec-header-logo {
    margin-right: auto;
}

.hec-header-nav {
    display: flex;
    gap: 28px;
}

.hec-header-nav a {
    color: var(--hec-black);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.15s;
}

.hec-header-nav a:hover {
    color: var(--hec-red);
}

.hec-header-cta {
    flex-shrink: 0;
}

/* Hamburger */
.hec-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}

.hec-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--hec-black);
    border-radius: 2px;
    transition: 0.2s;
}

/* Mobile nav */
.hec-mobile-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    background: var(--hec-white);
    border-top: 1px solid #eee;
    padding: 16px 24px 20px;
}

.hec-mobile-nav.is-open {
    display: flex;
}

.hec-mobile-nav a {
    color: var(--hec-black);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.hec-mobile-nav .hec-btn {
    margin-top: 12px;
    text-align: center;
}

@media (max-width: 768px) {
    .hec-header-nav,
    .hec-header-cta {
        display: none;
    }
    .hec-menu-toggle {
        display: flex;
    }
}

/* ============================================
   FOOTER
   ============================================ */

.hec-site-footer {
    background: #f7f7f7;
    border-top: 1px solid #e0e0e0;
    padding: 48px 24px 32px;
}

.hec-footer-inner {
    max-width: var(--hec-max-w);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.hec-footer-logo img {
    height: 52px;
    width: auto;
}

.hec-footer-tagline {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.hec-footer-nav {
    display: flex;
    gap: 28px;
}

.hec-footer-nav a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s;
}

.hec-footer-nav a:hover {
    color: var(--hec-red);
}

.hec-footer-email,
.hec-footer-yt {
    color: #555;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.15s;
}

.hec-footer-email:hover,
.hec-footer-yt:hover {
    color: var(--hec-red);
}

.hec-footer-copy {
    color: #999;
    font-size: 12px;
    margin: 0;
}

/* ============================================
   GLOBAL — Red headings for content sections
   ============================================ */

.hec-struggles h2,
.hec-lessons-preview h2,
.hec-about-text h2,
.hec-steps-section h2,
.hec-lead-magnet-form h2 {
    color: var(--hec-red);
}

/* ============================================
   HOMEPAGE — Hero
   ============================================ */

.hec-hero {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 520px;
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.hec-hero .hec-container {
    margin-left: 0;
    padding-left: 8%;
}

.hec-hero-text {
    max-width: 480px;
}

.hec-hero h1 {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0 0 20px;
}

.hec-hero-line1 {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 900;
    color: var(--hec-red);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hec-hero-line2 {
    font-size: clamp(20px, 3vw, 34px);
    font-weight: 800;
    color: var(--hec-red);
    line-height: 1.2;
}

.hec-hero-sub {
    color: #fff;
    font-size: 16px;
    max-width: 440px;
    line-height: 1.65;
    margin: 0 0 28px;
}

.hec-hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hec-btn--ghost {
    background: transparent;
    color: #fff !important;
    border-color: #fff;
}

.hec-btn--ghost:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff !important;
}

@media (max-width: 768px) {
    .hec-hero {
        min-height: 400px;
        background-position: right center;
    }
    .hec-hero-text {
        max-width: 100%;
    }
}

/* ============================================
   HOMEPAGE — Struggles
   ============================================ */

.hec-struggles {
    background: var(--hec-white);
}

.hec-struggles h2 {
    text-align: center;
    font-size: clamp(22px, 3vw, 32px);
    color: var(--hec-red);
}

/* Struggle list — vertical stack, image left + text right */
.hec-struggle-list {
    max-width: 860px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.hec-struggle-item {
    display: flex;
    align-items: flex-start;
    gap: 28px;
}

.hec-struggle-item img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    flex-shrink: 0;
}

.hec-struggle-item h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.4;
}

.hec-struggle-item p {
    font-size: 15px;
    color: #555;
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 600px) {
    .hec-struggle-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ============================================
   HOMEPAGE — Method
   ============================================ */

.hec-method {
    background: var(--hec-black);
    color: var(--hec-white);
}

.hec-method-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: stretch;
}

.hec-method h2 {
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 800;
    color: var(--hec-white);
    line-height: 1.25;
    margin-bottom: 24px;
}

.hec-method p {
    font-size: 17px;
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 16px;
}

.hec-method-image {
    display: flex;
    align-items: stretch;
}

.hec-method-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    border-radius: 10px;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .hec-method-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

/* ============================================
   HOMEPAGE — Lesson examples
   ============================================ */

.hec-lessons-preview {
    background: var(--hec-white);
}

.hec-lessons-preview h2 {
    text-align: center;
    font-size: clamp(22px, 3vw, 34px);
}

.hec-lesson-card {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hec-lesson-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hec-lesson-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 24px 28px 12px;
}

.hec-lesson-card p {
    font-size: 15px;
    color: #555;
    margin: 0 28px 24px;
    line-height: 1.6;
    flex: 1;
}

.hec-lesson-card .hec-btn {
    margin: 0 28px 28px;
    align-self: flex-start;
}

/* ============================================
   HOMEPAGE — About
   ============================================ */

.hec-about {
    background: var(--hec-grey);
    padding: 56px 24px;
}

.hec-about-inner {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 56px;
    align-items: center;
    max-width: var(--hec-max-w);
    margin: 0 auto;
}

.hec-about-text h2 {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
    margin-bottom: 16px;
}

.hec-about-text p {
    font-size: 16px;
    color: #444;
    line-height: 1.65;
    margin-bottom: 12px;
}

.hec-about-photo img {
    width: 100%;
    max-width: 320px;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hec-about-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .hec-about-photo {
        order: -1;
    }
}

/* ============================================
   HOMEPAGE — 3 Steps
   ============================================ */

.hec-steps-section {
    background: var(--hec-white);
}

.hec-steps-section h2 {
    text-align: center;
    font-size: clamp(24px, 3vw, 36px);
}

.hec-step {
    text-align: center;
    padding: 32px 24px;
}

.hec-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--hec-red);
    color: var(--hec-white);
    font-size: 22px;
    font-weight: 800;
    margin: 0 auto 20px;
}

.hec-step h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 12px;
}

.hec-step p {
    font-size: 15px;
    color: #555;
    line-height: 1.65;
}

/* ============================================
   HOMEPAGE — Parallax banner
   ============================================ */

.hec-parallax-banner {
    position: relative;
    background-size: cover;
    background-position: center 30%;
    background-attachment: fixed;
    min-height: 440px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 8%;
}

.hec-parallax-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.hec-parallax-tagline {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: clamp(18px, 2.2vw, 32px);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: left;
    line-height: 1.3;
    margin: 0;
}

.hec-nowrap {
    white-space: nowrap;
}

/* ============================================
   HOMEPAGE — Lead Magnet
   ============================================ */

.hec-lead-magnet {
    background: var(--hec-white) !important;
}

.hec-lead-magnet-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 720px;
    margin: 0 auto;
}

.hec-lead-magnet-image {
    width: 100%;
}

.hec-lead-magnet-image img {
    width: 100%;
    border-radius: 10px;
    display: block;
}

.hec-lead-magnet-form {
    width: 100%;
}

.hec-lead-magnet-form h2 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    margin-bottom: 16px;
}

.hec-lead-magnet-form p {
    font-size: 16px;
    color: #555;
    line-height: 1.65;
    margin-bottom: 12px;
}

/* Checklist with red tick marks */
.hec-checklist {
    list-style: none;
    padding: 0;
    margin: 16px 0 20px;
}

.hec-checklist li {
    padding: 5px 0 5px 30px;
    position: relative;
    font-size: 15px;
    line-height: 1.55;
    color: #444;
}

.hec-checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--hec-red);
    font-weight: 700;
    font-size: 16px;
}

/* lead magnet is already single column — no breakpoint needed */

/* ============================================
   GLOBAL — Button / CTA consistency
   ============================================
   Overrides Astra, Elementor, and WPForms
   buttons to a single brand red everywhere.
   ============================================ */

/* Astra header "WATCH ON YOUTUBE" button */
.ast-custom-button {
    background-color: var(--hec-red) !important;
    border-color: var(--hec-red) !important;
    border-radius: 6px !important;
    color: var(--hec-white) !important;
}

/* Elementor page buttons (WATCH LESSON, JOIN FREE COURSE, etc.) */
.elementor-button,
.elementor-button-link {
    background-color: var(--hec-red) !important;
    border-color: var(--hec-red) !important;
    border-radius: 6px !important;
    color: var(--hec-white) !important;
    transition: background-color 0.2s ease !important;
}

/* WPForms submit button */
.wpforms-submit,
.wpforms-form .wpforms-submit {
    background-color: var(--hec-red) !important;
    border-color: var(--hec-red) !important;
    border-radius: 6px !important;
    color: var(--hec-white) !important;
}

/* Hover states — all buttons */
.ast-custom-button:hover,
.elementor-button:hover,
.elementor-button-link:hover,
.wpforms-submit:hover,
.wpforms-form .wpforms-submit:hover {
    background-color: #a50d25 !important;
    border-color: #a50d25 !important;
    color: var(--hec-white) !important;
}

/* ============================================
   DOWNLOAD PAGE — Lesson card grid
   ============================================ */

.hec-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.hec-card {
    background: var(--hec-white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: var(--hec-black);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hec-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    color: var(--hec-black);
    text-decoration: none;
}

.hec-card img {
    width: 100%;
    height: auto;
    display: block;
}

.hec-card-title {
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

/* ============================================
   DOWNLOAD PAGE — Page wrapper
   ============================================ */

.hec-download-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* ============================================
   DOWNLOAD PAGE — Hero / thank-you section
   ============================================ */

.hec-download-hero {
    text-align: center;
    padding: 100px 24px 48px;
}

.hec-download-hero h1 {
    font-size: clamp(26px, 4vw, 42px);
    color: var(--hec-black);
    margin-bottom: 12px;
}

.hec-subtext {
    color: #555;
    font-size: 18px;
    margin-top: 8px;
    margin-bottom: 0;
}

.hec-download-btn {
    display: inline-block;
    margin: 28px auto 0;
    padding: 16px 36px;
    background: var(--hec-red);
    color: var(--hec-white) !important;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.hec-download-btn:hover {
    background: #a50d25;
}

/* ============================================
   DOWNLOAD PAGE — Lessons section
   ============================================ */

.hec-lessons-section {
    padding-top: 64px;
    text-align: center;
}

.hec-lessons-section h2 {
    font-size: clamp(22px, 3vw, 32px);
    margin-bottom: 10px;
}

.hec-lessons-subtext {
    color: #555;
    font-size: 17px;
    margin-bottom: 40px;
}

/* (old hardcoded footer styles removed — now using .hec-site-footer) */

/* ============================================
   SINGLE LESSON PAGE
   ============================================ */

.hec-single-lesson {
    padding: 60px 0 80px;
}

.hec-lesson-inner {
    max-width: 780px;
}

.hec-lesson-header {
    margin-bottom: 36px;
}

.hec-lesson-title {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 900;
    color: var(--hec-red);
    line-height: 1.2;
    margin: 0 0 16px;
}

.hec-lesson-intro {
    font-size: 18px;
    color: #555;
    line-height: 1.65;
    margin: 0;
}

/* Responsive video embed */
.hec-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin-bottom: 48px;
    border-radius: 10px;
    overflow: hidden;
}

.hec-video-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

.hec-lesson-thumb img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 40px;
}

/* Lesson content body */
.hec-lesson-content {
    font-size: 16px;
    line-height: 1.75;
    color: #333;
    font-family: Arial, 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
}

.hec-lesson-content h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--hec-red);
    margin: 48px 0 16px;
    padding-top: 8px;
    border-top: 2px solid #f0f0f0;
}

.hec-lesson-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--hec-black);
    margin: 32px 0 12px;
    scroll-margin-top: 120px;
}

.hec-lesson-content p {
    margin-bottom: 16px;
}

.hec-lesson-content ul,
.hec-lesson-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.hec-lesson-content li {
    margin-bottom: 8px;
}

.hec-lesson-content strong {
    color: var(--hec-black);
    font-weight: 700;
}

.hec-lesson-content em {
    color: #555;
}

/* Auto-generated TOC */
.hec-toc {
    background: var(--hec-grey);
    border-radius: 8px;
    padding: 20px 24px 20px 24px;
    margin: 24px 0 40px;
}

.hec-toc-title {
    font-weight: 800;
    font-size: 15px;
    color: var(--hec-black);
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hec-toc-list {
    columns: 2;
    column-gap: 32px;
    margin: 0;
    padding-left: 20px;
}

.hec-toc-list li {
    margin-bottom: 6px;
    font-size: 14px;
    break-inside: avoid;
    color: var(--hec-red);
    font-weight: 500;
}

.hec-toc-list li a {
    color: var(--hec-red);
    text-decoration: none;
    font-weight: 500;
}

.hec-toc-list li a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .hec-toc-list {
        columns: 1;
    }
}

/* Example sentences — blockquote style */
.hec-lesson-content blockquote {
    border-left: 3px solid var(--hec-red);
    margin: 20px 0;
    padding: 12px 20px;
    background: #fafafa;
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: #444;
}

/* Worksheet download */
.hec-worksheet-cta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 48px 0;
    padding: 28px 32px;
    background: #fff8f0;
    border: 2px solid var(--hec-red);
    border-radius: 10px;
    flex-wrap: wrap;
}

.hec-worksheet-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.hec-worksheet-text {
    flex: 1;
    min-width: 200px;
}

.hec-worksheet-text strong {
    font-size: 17px;
    display: block;
    margin-bottom: 4px;
    color: var(--hec-black);
}

.hec-worksheet-text p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Bottom CTA */
.hec-lesson-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 56px 0 40px;
    padding: 32px;
    background: var(--hec-grey);
    border-radius: 10px;
}

.hec-lesson-cta p {
    font-weight: 700;
    font-size: 17px;
    margin: 0;
    flex: 1;
    min-width: 180px;
}

.hec-btn--ghost-dark {
    background: transparent;
    color: var(--hec-black) !important;
    border-color: var(--hec-black);
}

.hec-btn--ghost-dark:hover {
    background: var(--hec-black);
    color: var(--hec-white) !important;
}

/* Prev / Next navigation */
.hec-lesson-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 32px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

.hec-lesson-nav a {
    color: var(--hec-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    max-width: 45%;
    line-height: 1.4;
    transition: opacity 0.15s;
}

.hec-lesson-nav a:hover {
    opacity: 0.75;
}

.hec-lesson-nav-next {
    text-align: right;
    margin-left: auto;
}

/* Mini lead magnet footer on lesson pages */
.hec-lead-magnet-footer {
    background: var(--hec-black);
}

.hec-lead-magnet-footer h2 {
    color: var(--hec-white) !important;
    margin-bottom: 12px;
}

.hec-lead-magnet-footer p {
    color: #ccc;
    margin-bottom: 24px;
}

/* ============================================
   ARCHIVE / LESSONS PAGE
   ============================================ */

/* Kill Astra's built-in page title banner that creates the white gap */
.ast-archive-description,
.archive .ast-archive-description,
.site-above-header-wrap,
.ast-breadcrumbs-wrapper {
    display: none !important;
}

.hec-archive-page {
    padding: 60px 0 80px;
}

.hec-archive-header {
    text-align: center;
    margin-bottom: 52px;
}

.hec-archive-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 900;
    color: var(--hec-red);
    margin: 0 0 12px;
}

.hec-archive-desc {
    color: var(--hec-grey-mid);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* Lesson card h2 inside archive */
.hec-archive-grid .hec-lesson-card h2 {
    font-size: 17px;
    font-weight: 700;
    margin: 20px 24px 10px;
    line-height: 1.4;
}

.hec-archive-grid .hec-lesson-card h2 a {
    color: var(--hec-black);
    text-decoration: none;
}

.hec-archive-grid .hec-lesson-card h2 a:hover {
    color: var(--hec-red);
}

.hec-archive-grid .hec-lesson-card p {
    font-size: 15px;
    color: #555;
    margin: 0 24px 16px;
    line-height: 1.6;
    flex: 1;
}

.hec-archive-grid .hec-lesson-card .hec-btn {
    margin: 0 24px 24px;
    align-self: flex-start;
}

/* Lesson thumbnail */
.hec-archive-grid .hec-lesson-card a img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

/* Pagination */
.hec-pagination {
    margin-top: 52px;
    text-align: center;
}

.hec-pagination .nav-links a,
.hec-pagination .nav-links span {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: var(--hec-radius);
    color: var(--hec-black);
    text-decoration: none;
    font-size: 14px;
}

.hec-pagination .nav-links .current {
    background: var(--hec-red);
    color: #fff;
    border-color: var(--hec-red);
}

.hec-pagination .nav-links a:hover {
    border-color: var(--hec-red);
    color: var(--hec-red);
}
