/* ============================================================================
   Page-builder block styles. Themed through the same CSS variables as the rest
   of the app, so admin-composed pages inherit each client's theme automatically.
   ============================================================================ */
.blk-page { width: 100%; }
.blk-page section { padding: clamp(40px, 6vw, 72px) clamp(16px, 4vw, 24px); }

/* Hero */
.blk-hero { background: var(--primary-dark); background-size: cover; background-position: center; color: #fff; text-align: center; }
.blk-hero.blk-hero-left { text-align: left; }
.blk-hero-inner { max-width: 900px; margin: 0 auto; }
.blk-hero-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--primary-yellow); margin: 0 0 14px; }
.blk-hero-headline { font-family: var(--font-heading); font-size: clamp(30px, 5vw, 48px); line-height: 1.12; font-weight: 700; margin: 0 0 16px; text-wrap: balance; }
.blk-hero-sub { font-size: clamp(15px, 2vw, 18px); color: rgba(255,255,255,.82); max-width: 60ch; margin: 0 auto 26px; }
.blk-hero.blk-hero-left .blk-hero-sub { margin-left: 0; }
.blk-hero-cta { display: inline-block; background: var(--primary-yellow); color: var(--primary-dark); font-weight: 700; font-size: 15px; padding: 13px 28px; border-radius: 8px; text-decoration: none; transition: background-color .15s; }
.blk-hero-cta:hover { background: var(--yellow-hover); color: #fff; }

/* Rich text */
.blk-richtext-inner { max-width: 760px; margin: 0 auto; color: var(--text-dark); line-height: 1.7; font-size: 16px; }
.blk-richtext-inner h1, .blk-richtext-inner h2, .blk-richtext-inner h3 { font-family: var(--font-heading); color: var(--text-dark); line-height: 1.25; margin: 1.4em 0 .5em; }
.blk-richtext-inner h2 { font-size: 26px; }
.blk-richtext-inner h3 { font-size: 20px; }
.blk-richtext-inner p { margin: 0 0 1em; }
.blk-richtext-inner a { color: var(--primary-yellow); }
.blk-richtext-inner ul, .blk-richtext-inner ol { padding-left: 1.4em; margin: 0 0 1em; }
.blk-richtext-inner img { max-width: 100%; border-radius: 8px; }

/* Feature grid */
.blk-features { background: var(--light-bg, #f8f9fa); }
.blk-features-inner { max-width: 1120px; margin: 0 auto; text-align: center; }
.blk-features-heading { font-family: var(--font-heading); font-size: clamp(24px, 3vw, 32px); font-weight: 700; color: var(--text-dark); margin: 0 0 8px; }
.blk-features-sub { color: var(--text-gray); max-width: 60ch; margin: 0 auto 36px; }
.blk-features-grid { display: grid; gap: 20px; }
.blk-feature-card { background: #fff; border: 1px solid var(--border-color, #e5e5e5); border-radius: 12px; padding: 26px 22px; text-align: left; }
.blk-feature-icon { width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--primary-yellow) 15%, white); color: var(--primary-yellow); font-size: 20px; margin-bottom: 14px; }
.blk-feature-title { font-size: 17px; font-weight: 700; color: var(--text-dark); margin: 0 0 6px; }
.blk-feature-text { font-size: 14px; color: var(--text-gray); line-height: 1.55; margin: 0; }

/* CTA */
.blk-cta { background: var(--primary-dark); color: #fff; text-align: center; }
.blk-cta-inner { max-width: 720px; margin: 0 auto; }
.blk-cta-heading { font-family: var(--font-heading); font-size: clamp(24px, 3vw, 32px); font-weight: 700; margin: 0 0 10px; }
.blk-cta-text { color: rgba(255,255,255,.8); margin: 0 0 24px; }
.blk-cta-btn { display: inline-block; background: var(--primary-yellow); color: var(--primary-dark); font-weight: 700; padding: 13px 30px; border-radius: 8px; text-decoration: none; transition: background-color .15s; }
.blk-cta-btn:hover { background: var(--yellow-hover); color: #fff; }

/* Image */
.blk-image { margin: 0; text-align: center; }
.blk-image img { width: 100%; height: auto; border-radius: 10px; }
.blk-image-cap { font-size: 13px; color: var(--text-gray); margin-top: 8px; }

/* Courses (dynamic) */
.blk-courses-inner { max-width: 1120px; margin: 0 auto; text-align: center; }
.blk-courses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-top: 28px; }
.blk-course-card { display: block; background: #fff; border: 1px solid var(--border-color, #e5e5e5); border-radius: 12px; overflow: hidden; text-decoration: none; text-align: left; transition: transform .15s, box-shadow .15s; }
.blk-course-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.1); }
.blk-course-thumb { height: 130px; background: var(--primary-dark); background-size: cover; background-position: center; }
.blk-course-skel { height: 210px; border-radius: 12px; background: linear-gradient(90deg,#f3f4f6,#e9ebee,#f3f4f6); }
.blk-course-body { padding: 14px 15px 16px; }
.blk-course-cat { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent, var(--primary-yellow)); }
.blk-course-title { font-family: var(--font-heading); font-size: 15px; font-weight: 600; color: var(--text-dark); margin: 6px 0 10px; line-height: 1.3; }
.blk-course-price { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--text-dark); font-variant-numeric: tabular-nums; }

/* Testimonials (dynamic) */
.blk-testi-inner { max-width: 1120px; margin: 0 auto; text-align: center; }
.blk-testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 28px; }
.blk-testi-card { background: #fff; border: 1px solid var(--border-color, #e5e5e5); border-radius: 12px; padding: 22px; margin: 0; text-align: left; }
.blk-testi-stars { color: var(--primary-yellow); letter-spacing: 2px; margin-bottom: 10px; }
.blk-testi-text { font-size: 14px; color: var(--text-dark); line-height: 1.6; margin: 0 0 16px; }
.blk-testi-author { display: flex; align-items: center; gap: 10px; }
.blk-testi-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--primary-dark); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.blk-testi-author small { display: block; color: var(--text-gray); font-size: 12px; }

/* FAQ (dynamic) */
.blk-faq-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.blk-faq-list { margin-top: 26px; text-align: left; }
.blk-faq-item { border: 1px solid var(--border-color, #e5e5e5); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.blk-faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border: none; padding: 16px 18px; font-size: 15px; font-weight: 600; color: var(--text-dark); cursor: pointer; text-align: left; }
.blk-faq-item.open .blk-faq-q { color: var(--primary-yellow); }
.blk-faq-a { padding: 0 18px 16px; color: var(--text-gray); font-size: 14px; line-height: 1.6; }

@media (max-width: 720px) {
    .blk-features-grid { grid-template-columns: 1fr !important; }
}
