/* Shared primary-page language: bright ivory, old gold and ink-brown arches. */
.site-structure-page { background: var(--parchment); }
.page-hero { position: relative; overflow: hidden; padding: 150px 0 82px; background: linear-gradient(135deg, var(--paper), var(--parchment-2)); color: var(--ink); border-bottom: 1px solid rgba(181, 138, 61, .42); }
.page-hero::before, .page-hero::after { content: ""; position: absolute; width: 300px; height: 300px; top: -150px; border: 1px solid rgba(181, 138, 61, .48); border-radius: 50%; box-shadow: 0 0 0 25px rgba(181, 138, 61, .055), 0 0 0 52px rgba(181, 138, 61, .03); }
.page-hero::before { right: 6%; }
.page-hero::after { left: 6%; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--gold); font-weight: 700; margin: 0 0 12px; }
.page-hero h1 { color: var(--ink); font-size: clamp(2.2rem, 5vw, 4rem); }
.page-hero p { max-width: 720px; font-size: 1.18rem; margin: 0; color: #5b4c3e; }
.page-section { padding: 76px 0; }
.page-section.alt { background: linear-gradient(180deg, #eee4d4, var(--parchment-2)); }
.page-section h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.page-section > .wrap > p { max-width: 760px; }
.path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.path-card { display: block; min-height: 220px; padding: 32px 30px; background: var(--paper); border: 1px solid rgba(177,138,69,.35); border-radius: var(--radius); box-shadow: 0 12px 26px rgba(48,42,38,.08); }
.path-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.path-card h2, .path-card h3 { color: var(--burgundy); }
.path-card p { margin: 0 0 16px; color: #4a4030; }
.path-card .link { color: var(--burgundy); font-weight: 700; }
.topic-list { columns: 2; gap: 38px; padding: 0; list-style: none; }
.topic-list li { padding: 10px 28px 10px 0; position: relative; border-bottom: 1px solid rgba(128,95,60,.15); }
.topic-list li::before { content: "•"; position: absolute; right: 6px; color: var(--gold); font-size: 1.35rem; line-height: 1.25; }
.callout { background: linear-gradient(135deg, var(--paper), var(--parchment-2)); color: var(--ink); padding: 40px; border: 1px solid rgba(181,138,61,.55); border-radius: 32px 32px 12px 12px; box-shadow: var(--shadow); }
.callout h2 { color: var(--ink); }
.callout p { color: #5b4c3e; }
.callout .btn { margin-top: 8px; }
.resource-note { margin-top: 25px; padding: 23px; border-right: 4px solid var(--gold); background: var(--paper); }
.page-footer { background: var(--parchment-2); color: var(--ink); border-top: 1px solid rgba(181,138,61,.46); padding: 30px 0; }
.page-footer .wrap { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.page-footer a { color: var(--burgundy); }
@media (max-width: 780px) { .path-grid { grid-template-columns: 1fr; } .topic-list { columns: 1; } .page-hero { padding-top: 125px; } }

/* ---------- Spanish STaM course landing page ---------- */
.course-page { background: #fbf6ed; }
.course-page .section-eyebrow { color: #a3772e; letter-spacing: .08em; }
.course-hero { position: relative; min-height: 760px; display: flex; align-items: center; overflow: hidden; padding: 120px 0 70px; }
.course-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.course-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,253,248,.15) 0%, rgba(250,244,232,.72) 46%, rgba(250,244,232,.98) 75%, #faf4e8 100%); }
.course-hero::after { content: ""; position: absolute; width: 390px; height: 390px; right: -190px; top: 115px; border: 1px solid rgba(181,138,61,.34); border-radius: 50%; box-shadow: 0 0 0 30px rgba(181,138,61,.06), 0 0 0 62px rgba(181,138,61,.03); }
.course-hero-inner { position: relative; z-index: 2; width: 100%; }
.course-hero-copy { max-width: 680px; margin-right: 0; }
.course-hero h1 { font-size: clamp(3.25rem, 7vw, 6.2rem); line-height: .98; margin-bottom: 24px; color: #3d3025; }
.course-hero-lead { max-width: 650px; font-size: clamp(1.15rem, 2vw, 1.42rem); color: #534536; margin: 0 0 22px; line-height: 1.75; }
.course-hero-points { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.course-hero-points span { padding: 7px 16px; border: 1px solid rgba(163,119,46,.45); border-radius: 999px; background: rgba(255,253,248,.7); font-weight: 600; color: #5a4330; }
.course-proof-strip { padding: 0; background: #4c3a2b; color: #fffaf0; }
.course-proof-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.course-proof-grid div { text-align: center; padding: 26px 16px; border-left: 1px solid rgba(255,255,255,.16); }
.course-proof-grid div:last-child { border-left: 0; }
.course-proof-grid strong { display: block; font-size: 2rem; color: #e8d5a7; line-height: 1.1; }
.course-proof-grid span { display: block; margin-top: 6px; font-size: .93rem; }
.course-section { padding: 100px 0; }
.course-section h2 { font-size: clamp(2.15rem, 4vw, 3.5rem); line-height: 1.2; }
.course-intro-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(45px,8vw,110px); align-items: start; }
.course-rich-copy { font-size: 1.14rem; color: #53493d; }
.course-rich-copy p { margin: 0 0 18px; }
.course-foundations { background: #efe3cf; }
.course-foundations-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(38px,7vw,86px); align-items: center; }
.course-foundations-image { position: relative; padding: 18px 18px 0 0; }
.course-foundations-image::before { content: ""; position: absolute; inset: 0 0 18px 18px; border: 1px solid rgba(163,119,46,.5); border-radius: 180px 180px 24px 24px; }
.course-foundations-image img { position: relative; width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: center 44%; border-radius: 180px 180px 24px 24px; box-shadow: 0 24px 45px rgba(61,48,37,.2); }
.course-foundations p:not(.section-eyebrow) { color: #53493d; font-size: 1.08rem; }
.course-check-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.course-check-list li { position: relative; padding: 6px 38px 6px 0; font-weight: 600; }
.course-check-list li::before { content: "✓"; position: absolute; right: 0; top: 4px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #b58a3d; color: #fff; font-size: .82rem; }
.course-diagnosis { background: #fffdf8; }
.course-heading { max-width: 800px; margin-bottom: 44px; }
.course-heading > p:last-child { font-size: 1.12rem; color: #5d5042; }
.course-heading.centered { text-align: center; margin: 0 auto 48px; }
.course-card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.course-card { position: relative; min-height: 240px; padding: 34px; border: 1px solid rgba(181,138,61,.35); border-radius: 90px 90px 22px 22px; background: #faf3e7; box-shadow: 0 15px 32px rgba(61,48,37,.07); }
.course-card span { color: #b58a3d; font-size: .85rem; font-weight: 700; }
.course-card h3 { font-size: 1.55rem; margin-top: 22px; }
.course-card p { color: #5d5042; margin: 0; }
.student-gallery-section { background: #f1e5d4; overflow: hidden; }
.student-gallery { display: grid; grid-template-columns: repeat(12,1fr); grid-auto-rows: 185px; gap: 18px; }
.student-work { grid-column: span 4; margin: 0; overflow: hidden; border: 6px solid #fffdf8; box-shadow: 0 12px 28px rgba(61,48,37,.12); background: #fff; border-radius: 18px; }
.student-work-wide { grid-column: 1/-1; grid-row: span 1; }
.student-work-large { grid-column: span 6; grid-row: span 2; }
.student-work-tall { grid-column: span 3; grid-row: span 2; }
.student-work img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.student-work-wide img { object-fit: contain; padding: 14px; }
.student-work-tall img { object-position: center top; }
.student-work:hover img { transform: scale(1.025); }
.course-testimonial { background: #fffdf8; }
.testimonial-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(38px,7vw,90px); align-items: center; }
.testimonial-copy { position: relative; padding: 22px 0; }
.testimonial-copy h2 { max-width: 640px; }
.testimonial-lead { color: #5d5042; font-size: 1.1rem; max-width: 600px; }
.testimonial-copy blockquote { position: relative; margin: 30px 0 0; padding: 26px 30px 26px 42px; border-right: 3px solid #b58a3d; background: #f4ead9; border-radius: 18px 70px 70px 18px; }
.testimonial-copy blockquote::before { content: "״"; position: absolute; left: 18px; top: 0; color: rgba(181,138,61,.35); font-size: 5rem; line-height: 1; font-weight: 700; }
.testimonial-copy blockquote p { position: relative; margin: 0; color: #4c3a2b; font-size: 1.18rem; font-weight: 600; line-height: 1.8; }
.testimonial-letter { margin: 0; padding: 18px; background: #f0e3cd; border: 1px solid rgba(181,138,61,.45); border-radius: 30px 120px 30px 30px; box-shadow: 0 22px 45px rgba(61,48,37,.15); transform: rotate(-1deg); }
.testimonial-letter img { display: block; width: 100%; border-radius: 18px 92px 18px 18px; }
.course-syllabus { background: #4c3a2b; color: #fffaf0; }
.course-syllabus h2 { color: #fffaf0; }
.course-syllabus-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(40px,8vw,100px); align-items: start; }
.course-syllabus-grid > div > p:last-child { color: #e7dac7; font-size: 1.08rem; }
.course-topics { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
.course-topics li { position: relative; padding: 14px 32px 14px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.course-topics li::before { content: "•"; color: #d8b875; font-size: 1.5rem; position: absolute; right: 6px; top: 9px; }
.course-goal { background: #fffdf8; }
.course-goal-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(38px,7vw,90px); align-items: center; }
.course-goal-copy p:not(.section-eyebrow) { color: #584b3e; font-size: 1.1rem; }
.course-goal-grid img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 170px 170px 26px 26px; box-shadow: 0 20px 42px rgba(61,48,37,.18); }
.course-enrollment { background: #efe3cf; }
.enrollment-panel { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; background: #fffdf8; padding: clamp(30px,5vw,62px); border: 1px solid rgba(181,138,61,.55); border-radius: 110px 110px 26px 26px; box-shadow: 0 24px 55px rgba(61,48,37,.13); }
.enrollment-main p { color: #5d5042; font-size: 1.08rem; }
.time-pills { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
.time-pills span { padding: 10px 20px; border-radius: 999px; background: #4c3a2b; color: #fffaf0; font-weight: 700; direction: ltr; }
.gift-card { padding: 28px; border-radius: 70px 70px 18px 18px; background: #f0e1c5; border: 1px solid rgba(181,138,61,.4); }
.gift-card h3 { font-size: 1.55rem; }
.gift-card p:last-child { margin-bottom: 0; color: #5d5042; }
.price-row { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 24px 0; border-top: 1px solid rgba(181,138,61,.32); border-bottom: 1px solid rgba(181,138,61,.32); }
.price-row div span { display: block; color: #7a6b5d; }
.price-row div strong { display: block; font-size: 2.4rem; color: #4c3a2b; }
.course-payment-note div strong { max-width: 560px; font-size: 1.65rem; line-height: 1.3; }
.price-row p { margin: 0; text-align: left; color: #5d5042; }
.enrollment-panel > .btn { grid-column: 1/-1; justify-self: start; }
.course-audience { background: #fffdf8; }
.course-teacher { position: relative; background: #f1e5d4; text-align: center; overflow: hidden; }
.course-teacher::before,.course-teacher::after { content: ""; position: absolute; width: 280px; height: 280px; border: 1px solid rgba(181,138,61,.3); border-radius: 50%; top: -145px; }
.course-teacher::before { right: 6%; }
.course-teacher::after { left: 6%; }
.course-teacher-inner { position: relative; max-width: 820px; }
.course-teacher h2 { margin-bottom: 6px; }
.course-teacher .teacher-title { font-weight: 700; color: #a3772e; font-size: 1.15rem; }
.course-teacher p:last-child { color: #594c3e; font-size: 1.1rem; }
.course-faq { background: #fffdf8; }
.faq-list { max-width: 900px; margin: 0 auto; border-top: 1px solid rgba(181,138,61,.35); }
.faq-list details { border-bottom: 1px solid rgba(181,138,61,.35); padding: 0 6px; }
.faq-list summary { cursor: pointer; list-style: none; position: relative; padding: 22px 0 22px 50px; font-size: 1.12rem; font-weight: 700; color: #4c3a2b; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; left: 8px; top: 16px; font-size: 1.7rem; font-weight: 400; color: #a3772e; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: -6px 0 24px; color: #5d5042; max-width: 760px; }
.course-final-cta { padding: 105px 0; text-align: center; background: linear-gradient(135deg,#ead9ba,#fbf6ed); }
.course-final-cta h2 { font-size: clamp(2.25rem,5vw,4rem); }
.course-final-cta > .wrap > p:not(.section-eyebrow):not(.limited-note) { font-size: 1.13rem; color: #5b4e40; }
.final-actions { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.phone-link { font-size: 1.25rem; font-weight: 700; color: #4c3a2b; direction: ltr; padding: 10px; }
.limited-note { margin: 24px 0 0; color: #7c6a57; font-weight: 600; }

@media (max-width: 900px) {
  .course-hero { min-height: 690px; }
  .course-hero-shade { background: linear-gradient(90deg,rgba(250,244,232,.5),rgba(250,244,232,.96) 72%); }
  .course-intro-grid,.course-foundations-grid,.course-syllabus-grid,.course-goal-grid,.testimonial-grid { grid-template-columns: 1fr; }
  .course-card-grid { grid-template-columns: 1fr; }
  .course-card { min-height: 0; border-radius: 60px 60px 20px 20px; }
  .student-work { grid-column: span 6; }
  .student-work-wide { grid-column: 1/-1; }
  .student-work-large { grid-column: span 9; }
  .student-work-tall { grid-column: span 3; }
}

@media (max-width: 680px) {
  .course-hero { min-height: 670px; padding-top: 110px; align-items: flex-end; }
  .course-hero-image { object-position: 38% center; }
  .course-hero-shade { background: linear-gradient(180deg,rgba(250,244,232,.18),rgba(250,244,232,.98) 53%); }
  .course-hero h1 { font-size: 3.25rem; }
  .course-hero-lead { font-size: 1.07rem; }
  .course-hero-points span { font-size: .86rem; }
  .course-proof-grid { grid-template-columns: 1fr 1fr; }
  .course-proof-grid div { border-bottom: 1px solid rgba(255,255,255,.16); }
  .course-section { padding: 72px 0; }
  .course-section h2 { font-size: 2.25rem; }
  .course-foundations-image img { border-radius: 110px 110px 20px 20px; }
  .student-gallery { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .student-work,.student-work-wide,.student-work-large,.student-work-tall { grid-column: 1; grid-row: auto; }
  .student-work img { height: auto; max-height: 520px; object-fit: contain; }
  .student-work-wide img { padding: 8px; }
  .testimonial-letter { padding: 10px; border-radius: 22px 72px 22px 22px; transform: none; }
  .testimonial-letter img { border-radius: 14px 54px 14px 14px; }
  .testimonial-copy blockquote { padding: 24px 22px; border-radius: 16px 48px 48px 16px; }
  .course-topics { grid-template-columns: 1fr; }
  .course-goal-grid img { border-radius: 100px 100px 20px 20px; }
  .enrollment-panel { grid-template-columns: 1fr; border-radius: 70px 70px 22px 22px; }
  .gift-card,.price-row,.enrollment-panel > .btn { grid-column: 1; }
  .price-row { align-items: flex-start; flex-direction: column; }
  .price-row p { text-align: right; }
  .enrollment-panel > .btn { justify-self: stretch; text-align: center; }
}

/* Professional improvement page */
.group-callout { max-width: 1080px; }
.group-callout .benefit { color: var(--burgundy); font-size: 1.2rem; font-weight: 700; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn-light { color: var(--burgundy); border: 1px solid rgba(107,31,42,.45); }
.btn-light:hover { background: rgba(107,31,42,.07); color: var(--burgundy); }
.hero-actions { justify-content: center; }
.improvement-intro { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.lesson-note { padding: 30px; background: var(--paper); border: 1px solid rgba(177,138,69,.38); border-radius: 30px 30px 10px 10px; box-shadow: var(--shadow); }
.lesson-note h3 { margin-top: 0; color: var(--burgundy); }
.lesson-note ul { margin: 0; padding-right: 22px; }
.lesson-note li { margin: 10px 0; }
.legal-content { max-width: 860px; }
.legal-content h2 { margin-top: 34px; color: var(--burgundy); }
.legal-content p, .legal-content li { line-height: 1.85; }
.legal-content a { color: var(--burgundy); text-decoration: underline; text-underline-offset: 3px; }
.improvement-result { text-align: center; }
.result-heading { max-width: 760px; margin: 0 auto 30px; }
.result-heading p:last-child { margin: 0; color: #5b4c3e; }
.before-after-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 34px); align-items: start; max-width: 1050px; margin: 0 auto; }
.writing-result { margin: 0; overflow: hidden; background: var(--paper); border: 1px solid rgba(177,138,69,.4); border-radius: 30px 30px 10px 10px; box-shadow: 0 14px 34px rgba(48,42,38,.1); }
.writing-result figcaption { display: flex; align-items: center; gap: 12px; padding: 16px 20px; text-align: right; }
.writing-result figcaption span { display: inline-grid; place-items: center; min-width: 58px; min-height: 34px; padding: 4px 12px; border-radius: 999px; color: var(--burgundy); background: rgba(177,138,69,.16); font-weight: 700; }
.writing-after figcaption span { color: #fff; background: var(--burgundy); }
.writing-result figcaption strong { color: #40342c; font-size: 1.08rem; }
.writing-result img { display: block; width: 100%; height: auto; background: #eee9df; }
.result-note { max-width: 720px; margin: 22px auto 0; color: #6e6156; font-size: .95rem; }
.training-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.training-grid article { padding: 25px; background: var(--paper); border: 1px solid rgba(177,138,69,.3); border-radius: 26px 26px 8px 8px; box-shadow: 0 10px 24px rgba(48,42,38,.07); }
.training-grid h3 { color: var(--burgundy); margin-top: 0; }
.training-grid p { margin-bottom: 0; }
.contact-callout { text-align: center; }
.contact-callout .contact-actions { justify-content: center; }
@media (max-width: 900px) {
  .improvement-intro { grid-template-columns: 1fr; }
  .training-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .contact-actions { flex-direction: column; }
  .contact-actions .btn { width: 100%; text-align: center; }
  .before-after-grid { grid-template-columns: 1fr; }
  .writing-result figcaption { padding: 13px 15px; }
  .training-grid { grid-template-columns: 1fr; }
}

/* Lightweight contextual YouTube video */
.context-video { max-width: 900px; margin: 42px auto; padding: clamp(18px, 3vw, 28px); background: linear-gradient(145deg, #fffdf8, #f3e7d3); border: 1px solid rgba(181,138,61,.36); border-radius: 38px 38px 14px 14px; box-shadow: 0 14px 34px rgba(48,42,38,.09); }
.context-video-copy { margin-bottom: 18px; text-align: center; }
.context-video-copy h2 { margin-bottom: 8px; }
.context-video-copy p { margin: 0 auto; max-width: 720px; color: #5b4c3e; }
.context-video .video-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 26px 26px 10px 10px; background: #2f2822; }
.context-video .video-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.context-video .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.context-video .video-play { position: absolute; inset: 0; width: 100%; border: 0; display: grid; place-items: center; align-content: center; gap: 10px; cursor: pointer; color: #fff; font: inherit; font-size: 1.1rem; font-weight: 700; background: linear-gradient(180deg, transparent 25%, rgba(32,25,20,.78)); }
.context-video .video-play span { display: grid; place-items: center; width: 64px; height: 64px; padding-right: 4px; border-radius: 50%; color: #2d241c; background: #d8b765; box-shadow: 0 10px 28px rgba(0,0,0,.25); }
@media (max-width: 620px) { .context-video { margin: 30px auto; padding: 14px; border-radius: 28px 28px 12px 12px; } .context-video .video-play { font-size: 1rem; } .context-video .video-play span { width: 54px; height: 54px; } }
