/* ═══ SEO plan components: breadcrumbs, FAQs, tutors, landing pages, prices ═══
   Loaded on every page from includes/header.php. Uses the site's teal palette. */

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Breadcrumbs (visible + BreadcrumbList schema) */
.seo-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0 0 18px; padding: 0; list-style: none; font: 500 .9rem/1.4 'Inter', sans-serif; color: #64748b; }
.seo-crumbs li { display: inline-flex; align-items: center; }
.seo-crumbs li + li::before { content: '›'; margin: 0 8px; color: #94a3b8; }
.seo-crumbs a { color: #0f766e; text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.seo-crumbs a:hover { text-decoration: underline; }
.seo-crumbs [aria-current] { color: #334155; }

/* Long-form content blocks (course guide, landing sections) */
.cd-prose { font: 400 1.0625rem/1.75 'Inter', sans-serif; color: #334155; }
.cd-prose h2 { font: 700 clamp(1.4rem, 2.4vw, 1.8rem)/1.25 'Outfit', sans-serif; color: #0f172a; margin: 0 0 14px; }
.cd-prose h3 { font: 700 1.2rem/1.3 'Outfit', sans-serif; color: #0f172a; margin: 26px 0 10px; }
.cd-prose p, .cd-prose ul, .cd-prose ol, .cd-prose table { margin: 0 0 16px; }
.cd-prose ul, .cd-prose ol { padding-left: 1.3em; }
.cd-prose li { margin: 0 0 6px; }
.cd-prose a { color: #0f766e; text-decoration: underline; text-underline-offset: 3px; }
.cd-prose img { max-width: 100%; height: auto; border-radius: 16px; }
.cd-prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.cd-prose th, .cd-prose td { padding: 10px 12px; border: 1px solid #e2e8f0; text-align: left; }
.cd-prose th { background: #f0fdfa; color: #0f172a; }

/* FAQs */
.cd-faqs { display: grid; gap: 10px; }
.cd-faqs details { border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; }
.cd-faqs summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; min-height: 48px; position: relative; font: 600 1.02rem/1.45 'Outfit', sans-serif; color: #0f172a; }
.cd-faqs summary::-webkit-details-marker { display: none; }
.cd-faqs summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font: 600 1.4rem/1 'Inter', sans-serif; color: #0d9488; }
.cd-faqs details[open] summary::after { content: '–'; }
.cd-faqs summary:focus-visible { outline: 3px solid #5eead4; outline-offset: 2px; border-radius: 16px; }
.cd-faqs details p { margin: 0; padding: 0 18px 18px; font: 400 1rem/1.65 'Inter', sans-serif; color: #475569; }

/* Tutor mini cards */
.cd-tutors { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.cd-tutor { display: flex; align-items: center; gap: 14px; padding: 14px; min-height: 48px; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; color: #0f172a; text-decoration: none; transition: border-color .2s, transform .2s; }
.cd-tutor:hover { border-color: #5eead4; transform: translateY(-2px); }
.cd-tutor strong { display: block; font: 700 1rem 'Outfit', sans-serif; }
.cd-tutor small { display: block; color: #64748b; font: 500 .88rem 'Inter', sans-serif; }
.cd-tutor-photo, .tp-photo { flex: none; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #ccfbf1; color: #0f766e; font: 800 1.3rem 'Outfit', sans-serif; }
.cd-tutor-photo img, .tp-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Related article list */
.seo-post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.seo-post-list a { display: block; height: 100%; padding: 18px; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; color: #0f172a; text-decoration: none; transition: border-color .2s, transform .2s; }
.seo-post-list a:hover { border-color: #5eead4; transform: translateY(-2px); }
.seo-post-list strong { display: block; font: 700 1.05rem/1.35 'Outfit', sans-serif; margin: 0 0 6px; }
.seo-post-list small { display: block; color: #64748b; font: 400 .92rem/1.5 'Inter', sans-serif; }
.cd-articles .seo-post-list { margin-top: 8px; }

/* Landing / country / tutor pages */
.lp-main { display: grid; gap: clamp(28px, 4vw, 44px); max-width: 920px; }
.lp-intro { font-size: 1.1rem; }
.lp-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 0; padding: 16px 18px; list-style: none; border: 1px solid #ccfbf1; border-radius: 18px; background: #f0fdfa; font: 500 .95rem/1.4 'Inter', sans-serif; color: #334155; }
.lp-trust li { display: inline-flex; align-items: center; gap: 8px; }
.lp-trust svg { width: 18px; height: 18px; color: #0d9488; flex: none; }
.lp-sec-img { display: block; width: 100%; max-height: 420px; object-fit: cover; margin: 0 0 18px; }
.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.lp-chips li { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; background: #f0fdfa; border: 1px solid #ccfbf1; color: #0f766e; font: 600 .88rem 'Inter', sans-serif; }
.lp-chips svg { width: 15px; height: 15px; }
.lp-note { display: flex; gap: 8px; align-items: center; color: #475569; margin: 14px 0 0; }
.lp-note svg { width: 18px; height: 18px; color: #0d9488; }
.lp-courses { margin-top: 6px; }
.lp-price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; margin-top: 14px; }
.lp-price { display: flex; flex-direction: column; gap: 4px; padding: 20px; border: 1px solid #e2e8f0; border-radius: 18px; background: #fff; }
.lp-price strong { font: 800 1.9rem/1.1 'Outfit', sans-serif; color: #0f172a; }
.lp-price span { color: #334155; font-weight: 600; }
.lp-price small { color: #64748b; font-size: .92rem; line-height: 1.45; }
.lp-price-free { background: #f0fdfa; border-color: #99f6e4; }
.lp-price-free strong { color: #0f766e; font-size: 1.5rem; }
.lp-reviews { display: grid; gap: 12px; margin: 0 0 16px; padding: 0; list-style: none; }
.lp-reviews li { padding: 18px 20px; border: 1px solid #e2e8f0; border-radius: 18px; background: #fff; }
.lp-reviews p { margin: 0 0 10px; font: 400 1.02rem/1.65 'Inter', sans-serif; color: #334155; }
.lp-reviews span { color: #64748b; font-size: .92rem; }
.lp-cta { text-align: center; padding: clamp(28px, 5vw, 48px) 20px; border-radius: 28px; background: linear-gradient(135deg, #0f766e, #0d9488); color: #fff; }
.lp-cta h2 { margin: 0 0 8px; font: 800 clamp(1.5rem, 3vw, 2rem)/1.2 'Outfit', sans-serif; color: #fff; }
.lp-cta p { margin: 0 auto 20px; max-width: 52ch; color: #ccfbf1; }
.lp-cta .hm-hero-actions { justify-content: center; }
.lp-cta .hm-btn-primary { background: #fff; color: #0f766e; }
.lp-cta .hm-btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }

/* Currency selector */
.lh-cur { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 0; }
.lh-cur-label { color: #64748b; font: 500 .92rem 'Inter', sans-serif; margin-right: 4px; }
.lh-cur a { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid #cbd5e1; color: #334155; font: 600 .9rem 'Inter', sans-serif; text-decoration: none; }
.lh-cur a.is-on { background: #0d9488; border-color: #0d9488; color: #fff; }

/* Tutor directory + profile */
.tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; margin: 0 0 40px; padding: 0; list-style: none; }
.tp-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; height: 100%; padding: 26px 20px; border: 1px solid #e2e8f0; border-radius: 22px; background: #fff; color: #0f172a; text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.tp-card:hover { border-color: #5eead4; transform: translateY(-3px); box-shadow: 0 16px 30px -20px rgba(15, 118, 110, .5); }
.tp-card .tp-photo { width: 96px; height: 96px; margin-bottom: 8px; font-size: 2rem; }
.tp-card h2 { margin: 0; font: 700 1.15rem 'Outfit', sans-serif; }
.tp-subject { margin: 0; color: #0f766e; font-weight: 600; }
.tp-cred { margin: 0; color: #64748b; font-size: .92rem; }
.tp-badge { display: inline-flex; align-items: center; gap: 6px; color: #047857; font: 600 .85rem 'Inter', sans-serif; }
.tp-badge svg { width: 16px; height: 16px; }
.tp-more { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; color: #0d9488; font-weight: 600; }
.tp-more svg { width: 16px; height: 16px; }
.tp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.tp-photo-lg { width: 160px; height: 160px; font-size: 3.4rem; }

/* ═══ Mobile usability (DEV-15): tap targets ≥ 44px, body text ≥ 16px ═══ */
@media (max-width: 768px) {
    body { font-size: 16px; }
    .lf-nav a, .lf-legal a { display: inline-flex; align-items: center; min-height: 44px; margin: 0 !important; }
    .lf-nav { gap: 0; }
    .seo-crumbs a { min-height: 44px; }
    .hm-link, .bl-clear, .bt-link { display: inline-flex; align-items: center; min-height: 44px; }
}
:focus-visible { outline: 3px solid #5eead4; outline-offset: 2px; }

/* DEV-15: lift the small labels found by the mobile audit to ≥ 12px, links to ≥ 44px tall */
@media (max-width: 768px) {
    .announcement-item, .announcement-item strong, .brand-tagline, .hm-kicker, .cc-tag, .cc-lessons, .cc-body li,
    .hm-filter-count, .country-badge, .lf-copyright, .lf-nav a, .lf-legal a, .hm-eb-paper-tag, .hm-plan-ribbon,
    .hm-avatar, .bl-card-cat, .bl-feat-badge, .cd-enrol-ribbon, .bt-rail-label, .bt-legend, .hm-sci-label,
    .lf-newsletter-form button, .main-content small, .main-footer small { font-size: 12px !important; }
    .lf-trial-link, .bp-cta-link, .mo-more-btn { display: inline-flex; align-items: center; min-height: 44px; }
}
