:root {
  --cp-primary: #08b6d1;
  --cp-secondary: #6d5dfc;
  --cp-accent: #d4af37;
  --cp-dark: #07111f;
  --cp-text: #162033;
  --cp-muted: #64748b;
  --cp-border: #e3ebf5;
  --cp-surface: #ffffff;
  --cp-soft: #f3fbff;
  --cp-radius-sm: 14px;
  --cp-radius: 24px;
  --cp-radius-lg: 36px;
  --cp-shadow: 0 28px 90px rgba(7, 17, 31, .14);
  --cp-shadow-soft: 0 14px 40px rgba(7, 17, 31, .08);
  --cp-container: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Noto Sans Myanmar", Pyidaungsu, Padauk, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--cp-text);
  background:
    radial-gradient(circle at 4% 18%, rgba(8, 182, 209, .10), transparent 28%),
    radial-gradient(circle at 92% 18%, rgba(109, 93, 252, .10), transparent 30%),
    linear-gradient(180deg, #f8fcff 0%, #ffffff 45%, #f6fbff 100%);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--cp-secondary); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto !important; clip-path: none; display: block; height: auto; left: 12px; top: 12px; width: auto; z-index: 100000; background: #fff; padding: 10px 14px; border-radius: 10px; }
.cp-container { width: min(100% - 32px, var(--cp-container)); margin-inline: auto; }
.cp-site-header { position: sticky; top: 0; z-index: 999; background: rgba(255,255,255,.90); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(226,232,240,.86); }
.admin-bar .cp-site-header { top: 32px; }
.cp-header-inner { min-height: 78px; display: flex; align-items: center; gap: 18px; }
.cp-brand { flex: 1 0 auto; min-width: 0; }
.cp-logo-text { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; }
.cp-logo-mark { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; }
.cp-logo-mark img { width: 42px; height: 42px; object-fit: contain; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { width: auto; max-width: 210px; height: 58px; object-fit: contain; }
.cp-logo-text strong { display: block; font-size: 18px; line-height: 1.15; color: var(--cp-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-logo-text small { display: block; font-size: 12px; color: var(--cp-muted); max-width: 320px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-navigation { display: flex; align-items: center; }
.cp-menu, .cp-footer-menu { list-style: none; margin: 0; padding: 0; }
.cp-menu { display: flex; align-items: center; gap: 4px; }
.cp-menu a { display: inline-flex; align-items: center; padding: 10px 12px; border-radius: 999px; color: #334155; font-weight: 850; font-size: 14px; }
.cp-menu a:hover, .cp-menu .current-menu-item > a { background: #eef9ff; color: var(--cp-secondary); }
.cp-menu .sub-menu { position: absolute; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .18s ease; list-style: none; padding: 10px; margin: 0; background: #fff; border: 1px solid var(--cp-border); border-radius: 16px; box-shadow: var(--cp-shadow-soft); }
.cp-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.cp-header-actions { display: flex; align-items: center; gap: 10px; }
.cp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 999px; border: 1px solid transparent; font-weight: 900; line-height: 1.2; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease; cursor: pointer; }
.cp-btn:hover { transform: translateY(-1px); }
.cp-btn-primary { color: #fff; background: linear-gradient(135deg, var(--cp-primary), var(--cp-secondary)); box-shadow: 0 14px 30px rgba(109,93,252,.23); }
.cp-btn-primary:hover { color: #fff; box-shadow: 0 18px 36px rgba(109,93,252,.30); }
.cp-btn-ghost { color: var(--cp-dark); background: rgba(255,255,255,.82); border-color: var(--cp-border); box-shadow: 0 8px 22px rgba(15,23,42,.05); }
.cp-btn-light { color: var(--cp-dark); background: #fff; }
.cp-mobile-toggle { display: none; width: 42px; height: 42px; border: 0; border-radius: 14px; background: #eef9ff; padding: 9px; }
.cp-mobile-toggle span:not(.screen-reader-text) { display: block; height: 2px; background: var(--cp-dark); margin: 5px 0; border-radius: 999px; }
.cp-en, .cp-my { display: block; }
.cp-my { color: #556174; font-size: .62em; line-height: 1.55; letter-spacing: 0; margin-top: .24em; }
.cp-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(8,182,209,.10); color: #078ca3; font-weight: 950; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.cp-hero { padding: 78px 0 56px; overflow: hidden; }
.cp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: 38px; align-items: center; }
.cp-hero h1 { margin: 18px 0 18px; font-size: clamp(44px, 6vw, 76px); line-height: .96; letter-spacing: -.065em; color: var(--cp-dark); max-width: 870px; }
.cp-hero h1 .cp-my { font-size: .45em; letter-spacing: -.025em; color: #334155; }
.cp-hero p { max-width: 720px; color: #5e6b7e; font-size: 18px; }
.cp-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 28px 0 18px; }
.cp-trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cp-trust-row span { display: inline-flex; align-items: center; padding: 9px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--cp-border); color: #334155; font-weight: 800; font-size: 13px; box-shadow: 0 8px 18px rgba(15,23,42,.04); }
.cp-hero-note { font-size: 14px !important; color: #7a8699 !important; }
.cp-hero-panel { min-height: 520px; padding: 28px; border-radius: 36px; background: radial-gradient(circle at 8% 12%, rgba(8,182,209,.34), transparent 28%), linear-gradient(145deg, #07111f, #111b31 70%, #1e1b4b); color: #fff; box-shadow: var(--cp-shadow); border: 1px solid rgba(255,255,255,.10); }
.cp-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.cp-panel-top span { color: rgba(255,255,255,.68); font-weight: 800; }
.cp-panel-top strong { background: rgba(255,255,255,.10); padding: 8px 12px; border-radius: 999px; }
.cp-mock-paper { padding: 22px; border-radius: 28px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.13); }
.cp-paper-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.cp-paper-head span { color: rgba(255,255,255,.70); }
.cp-paper-row { display: flex; justify-content: space-between; gap: 18px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.12); }
.cp-paper-row span { color: rgba(255,255,255,.82); }
.cp-paper-row b { color: #fff; }
.cp-mini-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.cp-mini-cards div { padding: 18px; border-radius: 20px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.12); }
.cp-mini-cards strong { display: block; font-size: 26px; line-height: 1; }
.cp-mini-cards span { color: rgba(255,255,255,.70); font-size: 13px; }
.cp-section { padding: 76px 0; }
.cp-section-head { max-width: 780px; margin: 0 auto 34px; text-align: center; }
.cp-section-head h2 { margin: 14px 0 12px; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.02; letter-spacing: -.055em; color: var(--cp-dark); }
.cp-section-head h2 .cp-my { font-size: .50em; line-height: 1.55; letter-spacing: -.015em; }
.cp-section-head p { margin: 0; color: #64748b; font-size: 17px; }
.cp-left-head { text-align: left; margin: 0; }
.cp-soft-section { background: linear-gradient(180deg, rgba(8,182,209,.08), rgba(109,93,252,.07)); }
.cp-course-grid, .cp-feature-grid, .cp-pricing-grid, .cp-syllabus-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.cp-feature-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cp-course-card, .cp-feature-card, .cp-price-card, .cp-syllabus-card, .cp-check-card, .cp-plan-item, .cp-faq-item, .cp-page-card, .cp-post-card, .cp-empty-state { background: rgba(255,255,255,.92); border: 1px solid var(--cp-border); border-radius: var(--cp-radius); box-shadow: var(--cp-shadow-soft); }
.cp-course-card, .cp-feature-card, .cp-price-card, .cp-syllabus-card { padding: 26px; }
.cp-course-tag, .cp-badge { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: #eef9ff; color: #078ca3; font-size: 12px; font-weight: 950; letter-spacing: .03em; }
.cp-course-card h3, .cp-feature-card h3, .cp-price-card h3, .cp-syllabus-card h3 { margin: 16px 0 10px; color: var(--cp-dark); font-size: 24px; line-height: 1.18; }
.cp-course-card p, .cp-feature-card p, .cp-price-card p, .cp-syllabus-card p { color: #64748b; }
.cp-course-meta { margin: 16px 0; padding-top: 14px; border-top: 1px solid var(--cp-border); color: #475569; font-weight: 800; font-size: 14px; }
.cp-split-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: center; }
.cp-check-card { padding: 30px; }
.cp-check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.cp-check-list li { position: relative; padding: 14px 16px 14px 46px; border-radius: 16px; background: #f8fbff; border: 1px solid #e9f1fb; color: #334155; font-weight: 800; }
.cp-check-list li::before { content: "✓"; position: absolute; left: 16px; top: 13px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 999px; background: #dcfce7; color: #15803d; font-weight: 950; }
.cp-feature-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, var(--cp-primary), var(--cp-secondary)); color: #fff; font-weight: 950; font-size: 14px; letter-spacing: -.02em; }
.cp-dark-band { background: #07111f; color: #e2e8f0; }
.cp-dark-band .cp-section-head h2, .cp-dark-band .cp-flow-step h3 { color: #fff; }
.cp-dark-band .cp-section-head p, .cp-dark-band .cp-flow-step p { color: #b7c4d6; }
.cp-dark-band .cp-kicker { background: rgba(255,255,255,.10); color: #7dd3fc; }
.cp-flow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cp-flow-step { padding: 24px; border-radius: 22px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.10); }
.cp-flow-step span { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 14px; background: linear-gradient(135deg, var(--cp-primary), var(--cp-secondary)); color: #fff; font-weight: 950; }
.cp-flow-step h3 { margin: 16px 0 8px; }
.cp-pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; }
.cp-pill-list li { padding: 9px 12px; border-radius: 999px; background: #f2f8ff; border: 1px solid #e4edf8; color: #334155; font-weight: 800; font-size: 14px; }
.cp-plan-timeline { display: grid; gap: 16px; max-width: 920px; margin: 0 auto; }
.cp-plan-item { display: grid; grid-template-columns: 110px 1fr; gap: 20px; align-items: start; padding: 22px; }
.cp-plan-item > span { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 18px; background: linear-gradient(135deg, var(--cp-primary), var(--cp-secondary)); color: #fff; font-weight: 950; }
.cp-plan-item h3 { margin: 2px 0 6px; color: var(--cp-dark); }
.cp-plan-item p { margin: 0; color: #64748b; }
.cp-pricing-section { background: #fff; }
.cp-pricing-grid { width: min(100%, 880px); margin: 0 auto; grid-template-columns: 1.1fr .9fr; }
.cp-featured-price { border-color: rgba(109,93,252,.45); box-shadow: 0 28px 74px rgba(109,93,252,.18); }
.cp-price { margin: 12px 0; font-size: 42px; font-weight: 950; color: var(--cp-dark); letter-spacing: -.05em; }
.cp-price span { font-size: 15px; color: #64748b; letter-spacing: 0; }
.cp-price-card ul { margin: 18px 0 24px; padding-left: 0; list-style: none; }
.cp-price-card li { padding: 9px 0 9px 30px; position: relative; color: #475569; }
.cp-price-card li::before { content: "✓"; position: absolute; left: 0; color: #059669; font-weight: 950; }
.cp-why { background: linear-gradient(180deg, rgba(8,182,209,.08), rgba(109,93,252,.08)); }
.cp-faq-wrap { max-width: 920px; }
.cp-faq-list { display: grid; gap: 12px; }
.cp-faq-item { padding: 0; overflow: hidden; }
.cp-faq-item summary { cursor: pointer; padding: 20px 22px; font-weight: 950; color: var(--cp-dark); }
.cp-faq-item p { margin: 0; padding: 0 22px 22px; color: #64748b; }
.cp-final-cta { padding-top: 24px; }
.cp-cta-box { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding: 42px; border-radius: 34px; color: #fff; background: radial-gradient(circle at top left, rgba(8,182,209,.42), transparent 36%), linear-gradient(135deg, var(--cp-dark), #172554 48%, var(--cp-secondary)); box-shadow: 0 30px 90px rgba(15,23,42,.24); }
.cp-cta-box .cp-kicker { background: rgba(255,255,255,.12); color: #fff; }
.cp-cta-box h2 { margin: 12px 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -.04em; }
.cp-cta-box h2 .cp-my { font-size: .56em; line-height: 1.5; color: rgba(255,255,255,.86); }
.cp-cta-box p { color: rgba(255,255,255,.78); max-width: 700px; }
.cp-page-layout { padding: 54px 0; }
.cp-page-hero { margin-bottom: 28px; }
.cp-page-hero.compact { padding: 34px; border-radius: var(--cp-radius-lg); background: linear-gradient(135deg, rgba(8,182,209,.10), rgba(109,93,252,.10)); border: 1px solid rgba(226,232,240,.9); }
.cp-page-hero.compact h1 { font-size: clamp(32px, 4vw, 52px); }
.cp-page-hero p { color: #64748b; max-width: 760px; }
.cp-page-card { padding: 32px; }
.cp-extra-page-content { margin-block: 32px; padding: 24px; border-radius: 24px; background: #fff; border: 1px solid var(--cp-border); }
.cp-wp-content > *:first-child { margin-top: 0; }
.cp-wp-content a { color: var(--cp-secondary); text-decoration: underline; text-underline-offset: 3px; }
.cp-wp-content h1, .cp-wp-content h2, .cp-wp-content h3 { color: var(--cp-dark); line-height: 1.2; }
.cp-wp-content table { width: 100%; border-collapse: collapse; }
.cp-wp-content th, .cp-wp-content td { border: 1px solid var(--cp-border); padding: 10px; }
.cp-wp-content pre { overflow: auto; padding: 18px; background: #0f172a; color: #e2e8f0; border-radius: 16px; }
.cp-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.cp-post-card { overflow: hidden; }
.cp-post-thumb img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cp-post-card-body { padding: 22px; }
.cp-post-card h2 { margin: 8px 0 10px; line-height: 1.2; }
.cp-post-meta { color: #64748b; font-size: 13px; font-weight: 800; }
.cp-featured-image img { border-radius: 22px; margin: 24px 0; }
.cp-pagination { margin-top: 30px; }
.cp-alert { padding: 18px; margin: 18px 0; border-radius: 18px; border: 1px solid var(--cp-border); }
.cp-alert-warning { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.cp-empty-state { padding: 34px; text-align: center; }
.cp-search-form { display: flex; gap: 10px; align-items: center; max-width: 720px; }
.cp-search-form label { flex: 1; }
.cp-search-form input { width: 100%; padding: 12px 14px; border: 1px solid var(--cp-border); border-radius: 999px; }
.cp-contact-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 26px; }
.cp-contact-list { margin-top: 24px; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--cp-border); }
.cp-contact-grid .cp-page-card h2 { margin: 14px 0 10px; color: #0f172a; font-size: clamp(28px, 3.5vw, 42px); letter-spacing: -.045em; }
.cp-contact-grid .cp-page-card > p { margin-bottom: 22px; color: #64748b; line-height: 1.7; }
.cp-contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cp-contact-form label { display: grid; gap: 8px; color: #334155; font-size: 14px; font-weight: 850; }
.cp-contact-form label span { display: flex; gap: 4px; }
.cp-contact-form label b { color: #ef4444; }
.cp-contact-form input,
.cp-contact-form select,
.cp-contact-form textarea { width: 100%; min-height: 52px; border: 1px solid rgba(15,23,42,.16); border-radius: 14px; padding: 13px 14px; background: #fff; color: #172033; font: inherit; }
.cp-contact-form textarea { min-height: 152px; resize: vertical; }
.cp-contact-form input:focus,
.cp-contact-form select:focus,
.cp-contact-form textarea:focus { outline: 3px solid rgba(88,101,242,.14); border-color: rgba(88,101,242,.72); }
.cp-contact-form-wide { grid-column: 1 / -1; }
.cp-contact-form .cp-btn { justify-self: start; border: 0; cursor: pointer; }
.cp-contact-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.tutor-container, .tutor-wrap, .tutor-dashboard, .tutor-course-details-page, .tutor-course-archive-results-wrap { max-width: var(--cp-container); }
.tutor-card, .tutor-course-card, .tutor-dashboard .tutor-card, .tutor-course-single-content-wrapper { border-radius: var(--cp-radius) !important; border-color: var(--cp-border) !important; box-shadow: var(--cp-shadow-soft) !important; overflow: hidden; }
.tutor-btn, .tutor-button, .tutor-btn-primary { border-radius: 999px !important; font-weight: 800 !important; }
.tutor-btn-primary, .tutor-button-primary { background: linear-gradient(135deg, var(--cp-primary), var(--cp-secondary)) !important; border-color: transparent !important; }
.tutor-dashboard .tutor-dashboard-left-menu { border-radius: var(--cp-radius); overflow: hidden; }
.tutor-dashboard .tutor-dashboard-menu-item-link { border-radius: 12px; }
.cp-dashboard-shell { padding: 4px 0; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .woocommerce .button { border-radius: 999px !important; background: linear-gradient(135deg, var(--cp-primary), var(--cp-secondary)) !important; color: #fff !important; font-weight: 800 !important; }
.woocommerce ul.products li.product, .woocommerce div.product, .woocommerce-cart-form, .woocommerce-checkout-review-order { border-radius: var(--cp-radius); }
.cp-site-footer { margin-top: 0; background: #07111f; color: #e2e8f0; }
.cp-footer-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr; gap: 28px; padding: 54px 0 28px; }
.cp-site-footer h2, .cp-site-footer h3 { color: #fff; margin-top: 0; }
.cp-site-footer p, .cp-site-footer li, .cp-site-footer a { color: #b6c2d1; }
.cp-site-footer ul { list-style: none; padding: 0; margin: 0; }
.cp-site-footer li { margin: 8px 0; }
.cp-disclaimer { font-size: 12px; color: #94a3b8 !important; }
.cp-footer-widgets { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.1); }
.cp-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; color: #94a3b8; font-size: 14px; }
.scheme-blue { --cp-primary: #2563eb; --cp-secondary: #38bdf8; --cp-accent: #f59e0b; }
.scheme-black-gold { --cp-primary: #d4af37; --cp-secondary: #111827; --cp-accent: #f5d76e; --cp-dark: #050505; }
.cp-lms-dark-mode { --cp-surface: #0f172a; --cp-soft: #0b1220; --cp-text: #e5e7eb; --cp-muted: #94a3b8; --cp-border: rgba(148,163,184,.22); background: #020617; }
.cp-lms-dark-mode .cp-site-header { background: rgba(2,6,23,.88); border-bottom-color: rgba(148,163,184,.18); }
.cp-lms-dark-mode .cp-logo-text strong, .cp-lms-dark-mode .cp-menu a, .cp-lms-dark-mode .cp-section-head h2, .cp-lms-dark-mode .cp-course-card h3, .cp-lms-dark-mode .cp-feature-card h3, .cp-lms-dark-mode .cp-price-card h3, .cp-lms-dark-mode .cp-syllabus-card h3, .cp-lms-dark-mode .cp-price, .cp-lms-dark-mode .cp-page-hero h1, .cp-lms-dark-mode .cp-wp-content h1, .cp-lms-dark-mode .cp-wp-content h2, .cp-lms-dark-mode .cp-wp-content h3 { color: #f8fafc; }
.cp-lms-dark-mode .cp-course-card, .cp-lms-dark-mode .cp-feature-card, .cp-lms-dark-mode .cp-price-card, .cp-lms-dark-mode .cp-syllabus-card, .cp-lms-dark-mode .cp-check-card, .cp-lms-dark-mode .cp-plan-item, .cp-lms-dark-mode .cp-faq-item, .cp-lms-dark-mode .cp-page-card, .cp-lms-dark-mode .cp-post-card, .cp-lms-dark-mode .cp-empty-state, .cp-lms-dark-mode .cp-trust-row span { background: #0f172a; }
.cp-lms-dark-mode .cp-btn-ghost, .cp-lms-dark-mode .cp-contact-list { background: #111827; color: #e5e7eb; }
.cp-admin-wrap .cp-admin-card { max-width: 900px; padding: 22px; margin: 18px 0; background: #fff; border: 1px solid #dcdcde; border-radius: 12px; }
@media (max-width: 1100px) {
  .cp-header-actions { display: none; }
  .cp-hero-grid, .cp-split-grid, .cp-contact-grid { grid-template-columns: 1fr; }
  .cp-hero-panel { max-width: 680px; min-height: auto; }
  .cp-course-grid, .cp-feature-grid, .cp-syllabus-grid, .cp-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 782px) {
  .admin-bar .cp-site-header { top: 46px; }
  .cp-header-inner { min-height: 66px; }
  .cp-mobile-toggle { display: block; }
  .cp-navigation { position: absolute; top: 100%; left: 16px; right: 16px; display: none; padding: 14px; border-radius: 20px; background: #fff; box-shadow: var(--cp-shadow); border: 1px solid var(--cp-border); }
  .cp-navigation.is-open { display: block; }
  .cp-menu { display: block; }
  .cp-menu a { display: flex; width: 100%; }
  .cp-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding-left: 16px; }
  .cp-logo-text small { display: none; }
  .cp-hero { padding: 52px 0 42px; }
  .cp-hero h1 { font-size: clamp(38px, 11vw, 56px); }
  .cp-hero h1 .cp-my { font-size: .48em; }
  .cp-hero-panel { border-radius: 30px; padding: 22px; }
  .cp-mini-cards { grid-template-columns: 1fr; }
  .cp-course-grid, .cp-feature-grid, .cp-syllabus-grid, .cp-pricing-grid, .cp-post-grid, .cp-flow-grid { grid-template-columns: 1fr; width: auto; }
  .cp-plan-item { grid-template-columns: 1fr; }
  .cp-cta-box { grid-template-columns: 1fr; padding: 28px; }
  .cp-footer-grid { grid-template-columns: 1fr; }
  .cp-search-form { flex-direction: column; align-items: stretch; }
}
@media (max-width: 480px) {
  .cp-container { width: min(100% - 22px, var(--cp-container)); }
  .cp-section { padding: 52px 0; }
  .cp-page-layout { padding: 34px 0; }
  .cp-page-hero.compact, .cp-page-card { padding: 22px; border-radius: 22px; }
  .cp-contact-form { grid-template-columns: 1fr; }
  .cp-contact-form-wide { grid-column: auto; }
  .cp-btn { width: 100%; }
  .cp-hero-actions { align-items: stretch; }
  .cp-section-head h2 .cp-my, .cp-cta-box h2 .cp-my { font-size: .52em; }
}

/* v1.2.0 CMS editable homepage helpers */
.cp-editable-section {
  position: relative;
}
.cp-question-box {
  padding: 28px;
  border-radius: var(--cp-radius);
  background: #fff;
  border: 1px solid var(--cp-border);
  box-shadow: var(--cp-shadow-soft);
}
.cp-question-box code,
.cp-wp-content code,
.cp-section code {
  padding: .12em .38em;
  border-radius: 8px;
  background: rgba(8, 182, 209, .10);
  color: var(--cp-secondary);
  font-weight: 800;
}

/* Exam question numbering: 1. (a) (i) */
ol.cp-exam-list,
.cp-exam-list > ol {
  list-style: none;
  counter-reset: cp-question;
  margin: 0;
  padding-left: 0;
}
ol.cp-exam-list ol,
.cp-exam-list ol ol {
  list-style: none;
  margin: .55em 0 .85em;
  padding-left: 0;
}
ol.cp-exam-list > li,
.cp-exam-list > ol > li {
  counter-increment: cp-question;
  position: relative;
  padding-left: 2.4em;
  margin: 1em 0;
}
ol.cp-exam-list > li::before,
.cp-exam-list > ol > li::before {
  content: counter(cp-question) ".";
  position: absolute;
  left: 0;
  top: 0;
  min-width: 1.7em;
  color: var(--cp-dark);
  font-weight: 900;
}
ol.cp-exam-list > li > ol,
.cp-exam-list > ol > li > ol {
  counter-reset: cp-part;
}
ol.cp-exam-list > li > ol > li,
.cp-exam-list > ol > li > ol > li {
  counter-increment: cp-part;
  position: relative;
  padding-left: 2.8em;
  margin: .65em 0;
}
ol.cp-exam-list > li > ol > li::before,
.cp-exam-list > ol > li > ol > li::before {
  content: "(" counter(cp-part, lower-alpha) ")";
  position: absolute;
  left: 0;
  top: 0;
  min-width: 2em;
  color: var(--cp-dark);
  font-weight: 900;
}
ol.cp-exam-list > li > ol > li > ol,
.cp-exam-list > ol > li > ol > li > ol {
  counter-reset: cp-subpart;
}
ol.cp-exam-list > li > ol > li > ol > li,
.cp-exam-list > ol > li > ol > li > ol > li {
  counter-increment: cp-subpart;
  position: relative;
  padding-left: 2.8em;
  margin: .45em 0;
}
ol.cp-exam-list > li > ol > li > ol > li::before,
.cp-exam-list > ol > li > ol > li > ol > li::before {
  content: "(" counter(cp-subpart, lower-roman) ")";
  position: absolute;
  left: 0;
  top: 0;
  min-width: 2.1em;
  color: var(--cp-muted);
  font-weight: 850;
}
.cp-exam-list li > p:first-child {
  display: inline;
}
.cp-lms-dark-mode .cp-question-box {
  background: #0f172a;
  border-color: rgba(148,163,184,.22);
}
.cp-lms-dark-mode .cp-section code,
.cp-lms-dark-mode .cp-wp-content code {
  background: rgba(109, 93, 252, .16);
  color: #c4b5fd;
}

/* Math exercise lists from imported HTML: 1. (a) (i) */
.cp-wp-content .content-card,
.cp-section .content-card,
.content-card {
  background: #ffffff;
  border: 1px solid var(--cp-border);
  border-radius: 24px;
  box-shadow: var(--cp-shadow-soft);
  padding: clamp(18px, 3vw, 34px);
  margin: 1.25rem 0;
  overflow: hidden;
}

.cp-wp-content .main-list,
.cp-section .main-list,
ol.main-list {
  list-style: none;
  counter-reset: cp-main-question;
  margin: 0;
  padding-left: 0;
}

.cp-wp-content .main-list > li,
.cp-section .main-list > li,
ol.main-list > li {
  counter-increment: cp-main-question;
  position: relative;
  padding-left: 3.1rem;
  margin: 0 0 1.65rem;
}

.cp-wp-content .main-list > li:last-child,
.cp-section .main-list > li:last-child,
ol.main-list > li:last-child {
  margin-bottom: 0;
}

.cp-wp-content .main-list > li::before,
.cp-section .main-list > li::before,
ol.main-list > li::before {
  content: counter(cp-main-question) ".";
  position: absolute;
  left: 0;
  top: .08em;
  min-width: 2.2rem;
  color: var(--cp-dark);
  font-weight: 900;
  font-size: 1.06em;
  line-height: 1.5;
}

.cp-wp-content .question-text,
.cp-section .question-text,
.question-text {
  color: var(--cp-dark);
  font-weight: 850;
  line-height: 1.55;
  margin: 0 0 .65rem;
}

.cp-wp-content .sub-list,
.cp-section .sub-list,
ol.sub-list,
.cp-wp-content .main-list > li > ol,
.cp-section .main-list > li > ol,
ol.main-list > li > ol {
  list-style: none;
  counter-reset: cp-alpha-part;
  margin: .45rem 0 0;
  padding-left: 0;
}

.cp-wp-content .sub-list > li,
.cp-section .sub-list > li,
ol.sub-list > li,
.cp-wp-content .main-list > li > ol > li,
.cp-section .main-list > li > ol > li,
ol.main-list > li > ol > li {
  counter-increment: cp-alpha-part;
  position: relative;
  padding-left: 3.1rem;
  margin: .58rem 0;
  min-height: 1.65rem;
}

.cp-wp-content .sub-list > li::before,
.cp-section .sub-list > li::before,
ol.sub-list > li::before,
.cp-wp-content .main-list > li > ol > li::before,
.cp-section .main-list > li > ol > li::before,
ol.main-list > li > ol > li::before {
  content: "(" counter(cp-alpha-part, lower-alpha) ")";
  position: absolute;
  left: 0;
  top: .06em;
  min-width: 2.2rem;
  color: var(--cp-dark);
  font-weight: 850;
  line-height: 1.5;
}

.cp-wp-content .sub-list > li > ol,
.cp-section .sub-list > li > ol,
ol.sub-list > li > ol,
.cp-wp-content .main-list > li > ol > li > ol,
.cp-section .main-list > li > ol > li > ol,
ol.main-list > li > ol > li > ol {
  list-style: none;
  counter-reset: cp-roman-subpart;
  margin: .42rem 0 .15rem;
  padding-left: 0;
}

.cp-wp-content .sub-list > li > ol > li,
.cp-section .sub-list > li > ol > li,
ol.sub-list > li > ol > li,
.cp-wp-content .main-list > li > ol > li > ol > li,
.cp-section .main-list > li > ol > li > ol > li,
ol.main-list > li > ol > li > ol > li {
  counter-increment: cp-roman-subpart;
  position: relative;
  padding-left: 3.1rem;
  margin: .4rem 0;
}

.cp-wp-content .sub-list > li > ol > li::before,
.cp-section .sub-list > li > ol > li::before,
ol.sub-list > li > ol > li::before,
.cp-wp-content .main-list > li > ol > li > ol > li::before,
.cp-section .main-list > li > ol > li > ol > li::before,
ol.main-list > li > ol > li > ol > li::before {
  content: "(" counter(cp-roman-subpart, lower-roman) ")";
  position: absolute;
  left: 0;
  top: .06em;
  min-width: 2.2rem;
  color: var(--cp-muted);
  font-weight: 800;
  line-height: 1.5;
}

.cp-wp-content .math-wrap,
.cp-section .math-wrap,
.math-wrap {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: .05rem 0 .2rem;
  line-height: 1.8;
  -webkit-overflow-scrolling: touch;
}

.cp-wp-content .math-wrap .katex,
.cp-section .math-wrap .katex,
.math-wrap .katex,
.cp-wp-content .math-wrap .katex-display,
.cp-section .math-wrap .katex-display,
.math-wrap .katex-display {
  max-width: 100%;
}

.cp-wp-content .sub-list > li > .math-wrap,
.cp-section .sub-list > li > .math-wrap,
ol.sub-list > li > .math-wrap {
  margin-top: -.05rem;
}

@media (max-width: 640px) {
  .cp-wp-content .content-card,
  .cp-section .content-card,
  .content-card {
    padding: 16px;
    border-radius: 18px;
  }
  .cp-wp-content .main-list > li,
  .cp-section .main-list > li,
  ol.main-list > li,
  .cp-wp-content .sub-list > li,
  .cp-section .sub-list > li,
  ol.sub-list > li,
  .cp-wp-content .sub-list > li > ol > li,
  .cp-section .sub-list > li > ol > li,
  ol.sub-list > li > ol > li {
    padding-left: 2.45rem;
  }
  .cp-wp-content .main-list > li::before,
  .cp-section .main-list > li::before,
  ol.main-list > li::before,
  .cp-wp-content .sub-list > li::before,
  .cp-section .sub-list > li::before,
  ol.sub-list > li::before,
  .cp-wp-content .sub-list > li > ol > li::before,
  .cp-section .sub-list > li > ol > li::before,
  ol.sub-list > li > ol > li::before {
    min-width: 1.85rem;
  }
}

.cp-lms-dark-mode .content-card {
  background: #0f172a;
  border-color: rgba(148,163,184,.22);
}
.cp-lms-dark-mode .question-text,
.cp-lms-dark-mode .main-list > li::before,
.cp-lms-dark-mode .sub-list > li::before {
  color: #f8fafc;
}

/* CP Math LMS v1.4.0 visual homepage. No inline <style> required. */
.page .entry-title,
.page-title,
.wp-block-post-title {
    display: none !important;
}

.cp-home-v7 {
    --cp-v7-teal: var(--cp-primary, #11b8c9);
    --cp-v7-purple: var(--cp-secondary, #6d5ef5);
    --cp-v7-gold: var(--cp-accent, #d4af37);
    --cp-v7-dark: var(--cp-dark, #091325);
    --cp-v7-text: #0f172a;
    --cp-v7-muted: #64748b;
    --cp-v7-line: rgba(15, 23, 42, 0.08);
    color: var(--cp-v7-text);
    background: #fff;
}

.cp-home-v7 * {
    box-sizing: border-box;
}

.cp-v7-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(48px, 7vw, 88px) 0 58px;
    background: linear-gradient(180deg, #f8fcff 0%, #f4f8ff 100%);
}

.cp-v7-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.cp-v7-bg .cp-v7-blob-a circle { fill: rgba(17,184,201,0.10); }
.cp-v7-bg .cp-v7-blob-b circle { fill: rgba(109,94,245,0.10); }
.cp-v7-bg .cp-v7-blob-c circle { fill: rgba(17,184,201,0.08); }
.cp-v7-ring circle:first-child { fill: none; stroke-width: 2; stroke: rgba(109,94,245,0.18); }
.cp-v7-ring circle:last-child { fill: rgba(17,184,201,0.72); stroke: 0; }
.cp-v7-symbol { font-size: 42px; font-weight: 800; opacity: .7; }
.cp-v7-symbol-a { fill: rgba(17,184,201,0.36); }
.cp-v7-symbol-b { fill: rgba(109,94,245,0.32); }
.cp-v7-symbol-c { fill: rgba(212,175,55,0.34); }
.cp-v7-line { fill: none; stroke: rgba(17,184,201,0.18); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 14 18; animation: cpV7Dash 18s linear infinite; }
.cp-v7-blob-a { animation: cpV7FloatA 9s ease-in-out infinite; }
.cp-v7-blob-b { animation: cpV7FloatB 12s ease-in-out infinite; }
.cp-v7-blob-c { animation: cpV7FloatC 10s ease-in-out infinite; }
.cp-v7-ring-a { animation: cpV7Rotate 16s linear infinite; transform-origin: 74% 20%; }
.cp-v7-ring-b { animation: cpV7RotateReverse 20s linear infinite; transform-origin: 17% 76%; }
.cp-v7-symbol { animation: cpV7Rise 8s ease-in-out infinite; }
.cp-v7-symbol-b { animation-delay: 1.4s; }
.cp-v7-symbol-c { animation-delay: 2.8s; }

.cp-v7-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(360px, .97fr);
    gap: 34px;
    align-items: center;
}

.cp-v7-hero-copy {
    background: rgba(255,255,255,0.74);
    border: 1px solid rgba(255,255,255,0.72);
    border-radius: 32px;
    padding: clamp(24px, 4vw, 42px);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
}

.cp-v7-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(17, 184, 201, 0.12);
    color: #09889a;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cp-v7-hero-copy h1 {
    margin: 18px 0 16px;
    font-size: clamp(38px, 5vw, 70px);
    line-height: 1.02;
    letter-spacing: -0.055em;
    color: var(--cp-v7-dark);
}

.cp-v7-hero-copy p,
.cp-v7-section-head p,
.cp-v7-card p,
.cp-v7-flow p,
.cp-v7-pricing p,
.cp-v7-faq p,
.cp-v7-final p {
    color: var(--cp-v7-muted);
    line-height: 1.8;
}

.cp-v7-hero-copy p {
    margin: 0;
    font-size: 18px;
}

.cp-v7-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

.cp-v7-center { justify-content: center; }

.cp-v7-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
    color: var(--cp-v7-muted);
    font-size: 14px;
    font-weight: 700;
}

.cp-v7-photo-wrap {
    position: relative;
    min-height: 610px;
}

.cp-v7-photo-card {
    position: relative;
    z-index: 2;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.72);
    border-radius: 34px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.14);
}

.cp-v7-photo-card img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 610px;
    object-fit: cover;
    object-position: center;
}

.cp-v7-floating-badges {
    position: absolute;
    top: 24px;
    right: -14px;
    z-index: 3;
    display: grid;
    gap: 12px;
}

.cp-v7-floating-badges span {
    display: inline-flex;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
    animation: cpV7FloatBadge 6s ease-in-out infinite;
}

.cp-v7-floating-badges span:nth-child(1) { background: #e8fbfd; color: #0c8ea0; }
.cp-v7-floating-badges span:nth-child(2) { background: #f0edff; color: #5846ea; animation-delay: 1.4s; }
.cp-v7-floating-badges span:nth-child(3) { background: #fff6d6; color: #9d7400; animation-delay: 2.8s; }

.cp-v7-progress-card {
    position: absolute;
    left: -10px;
    bottom: 26px;
    z-index: 3;
    width: min(330px, 84%);
    padding: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(10px);
}

.cp-v7-progress-card strong {
    display: block;
    margin-bottom: 10px;
    color: var(--cp-v7-dark);
}

.cp-v7-progress-card div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    color: #475569;
    font-size: 14px;
}

.cp-v7-progress-card div:last-child { border-bottom: 0; }
.cp-v7-progress-card b { color: var(--cp-v7-purple); }

.cp-v7-section {
    padding: clamp(56px, 7vw, 82px) 0;
}

.cp-v7-section-head {
    max-width: 780px;
    margin-bottom: 34px;
}

.cp-v7-section-head h2,
.cp-v7-pricing h2,
.cp-v7-final h2 {
    margin: 16px 0 12px;
    color: var(--cp-v7-dark);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.cp-v7-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.cp-v7-grid-2,
.cp-v7-split,
.cp-v7-pricing {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: center;
}

.cp-v7-card,
.cp-v7-pricing,
.cp-v7-faq details {
    background: #fff;
    border: 1px solid var(--cp-v7-line);
    border-radius: 28px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
}

.cp-v7-card {
    padding: 28px;
}

.cp-v7-card h3,
.cp-v7-flow h3,
.cp-v7-price-box h3 {
    margin: 14px 0 10px;
    color: var(--cp-v7-dark);
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.cp-v7-badge {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(17, 184, 201, 0.11);
    color: #09889a;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cp-v7-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.cp-v7-list li {
    position: relative;
    padding-left: 28px;
    margin: 12px 0;
    color: #334155;
    line-height: 1.65;
}

.cp-v7-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #10b981;
    font-weight: 900;
}

.cp-v7-soft {
    background: radial-gradient(circle at top right, rgba(109, 94, 245, 0.08), transparent 28%), radial-gradient(circle at bottom left, rgba(17, 184, 201, 0.08), transparent 30%), #f8fbff;
}

.cp-v7-dark {
    background: var(--cp-v7-dark);
    color: #fff;
}

.cp-v7-dark .cp-v7-section-head h2,
.cp-v7-dark .cp-v7-section-head p,
.cp-v7-dark .cp-v7-flow h3,
.cp-v7-dark .cp-v7-flow p {
    color: #fff;
}

.cp-v7-dark .cp-v7-section-head p,
.cp-v7-dark .cp-v7-flow p { color: #cbd5e1; }

.cp-v7-flow {
    display: grid;
    gap: 16px;
}

.cp-v7-flow > div {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 18px;
    padding: 22px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 22px;
    background: rgba(255,255,255,0.05);
}

.cp-v7-flow span {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 17px;
    background: linear-gradient(135deg, var(--cp-v7-teal), var(--cp-v7-purple));
    color: #fff;
    font-weight: 900;
}

.cp-v7-pricing {
    padding: clamp(24px, 4vw, 36px);
}

.cp-v7-price-box {
    padding: 30px;
    border-radius: 26px;
    background: linear-gradient(135deg, var(--cp-v7-dark), #111b33);
    color: #fff;
}

.cp-v7-price-box h3,
.cp-v7-price-box p {
    color: #fff;
}

.cp-v7-price-box div {
    margin: 12px 0 10px;
    font-size: 34px;
    font-weight: 900;
}

.cp-v7-faq details {
    padding: 18px 20px;
    margin: 12px 0;
}

.cp-v7-faq summary {
    cursor: pointer;
    color: var(--cp-v7-dark);
    font-weight: 900;
}

.cp-v7-final {
    padding: clamp(34px, 5vw, 58px) 28px;
    border-radius: 36px;
    text-align: center;
    background: radial-gradient(circle at top left, rgba(17,184,201,0.18), transparent 30%), radial-gradient(circle at bottom right, rgba(109,94,245,0.18), transparent 30%), var(--cp-v7-dark);
    color: #fff;
}

.cp-v7-final h2,
.cp-v7-final p { color: #fff; }
.cp-v7-final p { max-width: 760px; margin: 0 auto 26px; color: #cbd5e1; }

@keyframes cpV7FloatA { 0%,100%{ transform: translate(0,0); } 50%{ transform: translate(14px,-12px); } }
@keyframes cpV7FloatB { 0%,100%{ transform: translate(0,0); } 50%{ transform: translate(-18px,12px); } }
@keyframes cpV7FloatC { 0%,100%{ transform: translate(0,0); } 50%{ transform: translate(10px,16px); } }
@keyframes cpV7Rotate { from{ transform: rotate(0deg); } to{ transform: rotate(360deg); } }
@keyframes cpV7RotateReverse { from{ transform: rotate(360deg); } to{ transform: rotate(0deg); } }
@keyframes cpV7Rise { 0%,100%{ transform: translateY(0); opacity:.65; } 50%{ transform: translateY(-12px); opacity:1; } }
@keyframes cpV7FloatBadge { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-8px); } }
@keyframes cpV7Dash { to{ stroke-dashoffset: -240; } }

@media (max-width: 980px) {
    .cp-v7-hero-grid,
    .cp-v7-grid-3,
    .cp-v7-grid-2,
    .cp-v7-split,
    .cp-v7-pricing {
        grid-template-columns: 1fr;
    }
    .cp-v7-photo-wrap { min-height: auto; }
    .cp-v7-photo-card img { min-height: 420px; }
    .cp-v7-floating-badges { right: 8px; top: 8px; }
    .cp-v7-progress-card { left: 14px; bottom: 14px; }
}

@media (max-width: 640px) {
    .cp-v7-hero { padding-top: 44px; }
    .cp-v7-hero-copy,
    .cp-v7-card,
    .cp-v7-pricing,
    .cp-v7-price-box {
        padding: 22px;
        border-radius: 22px;
    }
    .cp-v7-hero-copy h1 { font-size: 42px; }
    .cp-v7-photo-card img { min-height: 340px; }
    .cp-v7-progress-card { position: static; width: 100%; margin-top: 14px; }
    .cp-v7-floating-badges { position: static; grid-template-columns: 1fr; margin-top: 14px; }
    .cp-v7-flow > div { grid-template-columns: 1fr; }
}

/* CP Math LMS v1.5.0 hero/layout fixes: prevent overflow, improve screenshot/live rendering. */
.cp-home-v7 {
    overflow-x: clip;
}

.cp-home-v7 .cp-container {
    width: min(1140px, calc(100% - 40px));
}

.cp-v7-hero {
    padding: clamp(44px, 5.5vw, 72px) 0 54px;
}

.cp-v7-hero-grid {
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
    gap: clamp(24px, 4vw, 46px);
}

.cp-v7-hero-copy {
    min-width: 0;
    overflow: visible;
    padding: clamp(24px, 3.2vw, 36px);
}

.cp-v7-hero-copy h1 {
    max-width: 11.5ch;
    font-size: clamp(36px, 4.1vw, 56px);
    line-height: 1.03;
    letter-spacing: -0.045em;
    text-wrap: balance;
    overflow-wrap: normal;
}

.cp-v7-hero-copy p {
    font-size: clamp(15px, 1.45vw, 17px);
    line-height: 1.75;
}

.cp-v7-trust span,
.cp-v7-kicker,
.cp-v7-badge,
.cp-v7-floating-badges span {
    white-space: normal;
}

.cp-v7-photo-wrap {
    min-height: clamp(430px, 44vw, 520px);
    min-width: 0;
    padding-bottom: 38px;
}

.cp-v7-photo-card {
    height: clamp(360px, 38vw, 470px);
}

.cp-v7-photo-card img {
    min-height: 0;
    height: 100%;
    object-position: center center;
}

.cp-v7-floating-badges {
    right: 22px;
    top: 20px;
    max-width: 210px;
}

.cp-v7-floating-badges span {
    justify-content: center;
    text-align: center;
}

.cp-v7-progress-card {
    left: 24px;
    bottom: 0;
    width: min(330px, calc(100% - 48px));
}

.cp-v7-grid-3,
.cp-v7-grid-2,
.cp-v7-split,
.cp-v7-pricing {
    align-items: stretch;
}

.cp-v7-card {
    min-width: 0;
    overflow: hidden;
}

.cp-v7-card h3,
.cp-v7-flow h3,
.cp-v7-price-box h3 {
    font-size: clamp(20px, 2vw, 24px);
    overflow-wrap: anywhere;
}

.cp-v7-card p,
.cp-v7-list li {
    overflow-wrap: anywhere;
}

@media (max-width: 980px) {
    .cp-home-v7 .cp-container {
        width: min(920px, calc(100% - 32px));
    }
    .cp-v7-hero-copy h1 {
        max-width: 100%;
        font-size: clamp(36px, 7vw, 56px);
    }
    .cp-v7-photo-wrap {
        min-height: auto;
        padding-bottom: 0;
    }
    .cp-v7-photo-card {
        height: auto;
    }
    .cp-v7-photo-card img {
        min-height: 420px;
    }
}

@media (min-width: 981px) and (max-width: 1240px) {
    .cp-v7-grid-3 {
        gap: 18px;
    }
    .cp-v7-card {
        padding: 24px;
    }
}

@media (max-width: 720px) {
    .cp-home-v7 .cp-container {
        width: min(100% - 24px, 680px);
    }
    .cp-v7-hero-copy h1 {
        font-size: clamp(34px, 10vw, 44px);
    }
    .cp-v7-photo-card img {
        min-height: 310px;
    }
    .cp-v7-floating-badges {
        position: static;
        display: grid;
        grid-template-columns: 1fr;
        max-width: none;
        margin-top: 12px;
    }
    .cp-v7-progress-card {
        position: static;
        width: 100%;
        margin-top: 12px;
    }
}

/* CP Math LMS v1.6.0 face-safe hero: no labels cover the student photo. */
.cp-home-v7 .cp-v7-hero-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: center;
}

.cp-home-v7 .cp-v9-photo-wrap {
    min-height: 0;
    padding-bottom: 0;
}

.cp-home-v7 .cp-v9-photo-card {
    height: clamp(330px, 34vw, 430px);
    border-radius: 32px;
}

.cp-home-v7 .cp-v9-photo-card img {
    min-height: 0;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.cp-home-v7 .cp-v9-visual-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(240px, 1.05fr);
    gap: 14px;
    align-items: stretch;
    margin-top: 16px;
}

.cp-home-v7 .cp-v9-subject-chips {
    display: grid;
    gap: 10px;
}

.cp-home-v7 .cp-v9-subject-chips span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 16px;
    font-weight: 900;
    font-size: 13px;
    line-height: 1.25;
    text-align: center;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    animation: cpV7FloatBadge 6s ease-in-out infinite;
}

.cp-home-v7 .cp-v9-subject-chips span:nth-child(1) {
    background: #e8fbfd;
    color: #0c8ea0;
}

.cp-home-v7 .cp-v9-subject-chips span:nth-child(2) {
    background: #f0edff;
    color: #5846ea;
    animation-delay: 1.4s;
}

.cp-home-v7 .cp-v9-subject-chips span:nth-child(3) {
    background: #fff6d6;
    color: #9d7400;
    animation-delay: 2.8s;
}

.cp-home-v7 .cp-v9-progress-card {
    position: static;
    width: 100%;
    height: 100%;
    margin: 0;
    z-index: 1;
}

.cp-home-v7 .cp-v9-progress-card strong {
    font-size: 20px;
}

@media (min-width: 981px) and (max-width: 1220px) {
    .cp-home-v7 .cp-v7-hero-copy h1 {
        font-size: clamp(34px, 3.9vw, 50px);
        max-width: 12.5ch;
    }

    .cp-home-v7 .cp-v9-photo-card {
        height: 390px;
    }
}

@media (max-width: 980px) {
    .cp-home-v7 .cp-v7-hero-grid {
        grid-template-columns: 1fr;
    }

    .cp-home-v7 .cp-v9-photo-card {
        height: auto;
    }

    .cp-home-v7 .cp-v9-photo-card img {
        min-height: 420px;
        height: auto;
        object-position: center center;
    }

    .cp-home-v7 .cp-v9-visual-panel {
        grid-template-columns: 1fr;
    }

    .cp-home-v7 .cp-v9-subject-chips {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .cp-home-v7 .cp-v9-photo-card img {
        min-height: 320px;
    }

    .cp-home-v7 .cp-v9-subject-chips {
        grid-template-columns: 1fr;
    }
}

/* v1.7.0 Free Course Direct Section */
.cp-v10-free-section {
    background:
        radial-gradient(circle at 12% 18%, rgba(17,184,201,0.10), transparent 28%),
        radial-gradient(circle at 90% 70%, rgba(109,94,245,0.08), transparent 30%),
        #f8fbff;
}

.cp-v10-free-head {
    max-width: 860px;
}

.cp-v10-free-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.cp-v10-free-card {
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(15,23,42,0.08);
    border-radius: 28px;
    padding: 26px;
    box-shadow: 0 20px 60px rgba(15,23,42,0.08);
    overflow: hidden;
}

.cp-v10-free-thumb {
    display: block;
    margin: -26px -26px 18px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eaf9fb;
}

.cp-v10-free-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cp-v10-free-label {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(17,184,201,0.12);
    color: #07879a;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.cp-v10-free-card h3 {
    margin: 14px 0 10px;
    font-size: clamp(22px, 2vw, 28px);
    line-height: 1.16;
    letter-spacing: -.03em;
    overflow-wrap: anywhere;
}

.cp-v10-free-card h3 a {
    color: inherit;
}

.cp-v10-free-card p {
    min-height: 58px;
    color: #64748b;
    line-height: 1.75;
    margin: 0 0 18px;
}

.cp-v10-price-free {
    margin-top: 12px;
    width: 100%;
}

@media (max-width: 960px) {
    .cp-v10-free-grid {
        grid-template-columns: 1fr;
    }

    .cp-v10-free-card p {
        min-height: 0;
    }
}

/* v11 manual login/payment approval */
.cp-header-actions { display: flex; align-items: center; gap: 10px; }
.cp-btn-light { background: rgba(255,255,255,0.92); color: #0f172a; border: 1px solid rgba(15,23,42,.1); }
.cp-v11-paid-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.cp-v11-paid-card { background: #fff; border: 1px solid rgba(15,23,42,.08); border-radius: 28px; padding: 28px; box-shadow: 0 18px 50px rgba(15,23,42,.07); }
.cp-v11-paid-card h3 { margin: 14px 0 10px; font-size: 24px; line-height: 1.25; letter-spacing: -.02em; }
.cp-v11-price { margin: 12px 0 18px; font-size: 32px; line-height: 1.1; font-weight: 900; color: #0f172a; }
.cp-v11-flow-card { background: linear-gradient(135deg,#07111f,#111827); color: #fff; }
.cp-v11-flow-card h3, .cp-v11-flow-card .cp-v11-price { color: #fff; }
.cp-v11-flow-card .cp-v7-list li, .cp-v11-flow-card p { color: #cbd5e1; }
.cp-v11-steps { margin: 18px 0 24px; padding-left: 20px; color: #cbd5e1; line-height: 1.7; }
.cp-v11-steps li { margin: 7px 0; }

.cp-login-shell, .cp-payment-page { max-width: 1180px; margin: 48px auto; padding: 0 20px; }
.cp-login-shell { max-width: 760px; background: #fff; border: 1px solid rgba(15,23,42,.08); border-radius: 28px; padding: 32px; box-shadow: 0 18px 60px rgba(15,23,42,.08); }
.cp-login-shell h2, .cp-payment-page h1, .cp-payment-page h2 { letter-spacing: -.03em; }
.cp-login-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

.cp-student-login-form { display: grid; gap: 14px; margin-top: 18px; }
.cp-student-login-form label { display: grid; gap: 8px; font-weight: 800; color: #334155; }
.cp-student-login-form input[type="text"], .cp-student-login-form input[type="password"] { width: 100%; min-height: 50px; border: 1px solid rgba(15,23,42,.16); border-radius: 14px; padding: 12px 14px; font: inherit; background: #fff; }
.cp-student-login-form input:focus { outline: 3px solid rgba(64,87,227,.16); border-color: rgba(64,87,227,.65); }
.cp-form-card { background: #f8fbff; border: 1px solid rgba(15,23,42,.08); border-radius: 22px; padding: 20px; }
.cp-remember-row { display: flex !important; flex-direction: row; align-items: center; gap: 10px !important; font-weight: 700 !important; }
.cp-remember-row input { width: 18px; height: 18px; }
.cp-login-shell .cp-submit-wide { width: 100%; justify-content: center; text-align: center; }
.cp-login-shell .cp-payment-alert .cp-login-actions { margin-top: 12px; }
@media (max-width: 640px) {
  .cp-login-shell { margin: 18px auto; padding: 18px; border-radius: 20px; }
  .cp-form-card { padding: 14px; border-radius: 18px; }
  .cp-login-actions .cp-btn { width: 100%; justify-content: center; }
}

.cp-register-inline { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(15,23,42,.08); }
.cp-small-note { color: #64748b; font-size: 14px; }
.cp-payment-hero { background: radial-gradient(circle at top left, rgba(17,184,201,.15), transparent 32%), radial-gradient(circle at bottom right, rgba(109,94,245,.14), transparent 32%), #fff; border: 1px solid rgba(15,23,42,.08); border-radius: 32px; padding: 40px; box-shadow: 0 18px 60px rgba(15,23,42,.08); margin-bottom: 24px; }
.cp-payment-hero h1 { margin: 14px 0 12px; font-size: clamp(34px, 5vw, 58px); line-height: 1.05; color: #0f172a; }
.cp-payment-hero p { max-width: 820px; color: #64748b; font-size: 18px; line-height: 1.75; }
.cp-payment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 24px 0; }
.cp-payment-course { background: #fff; border: 1px solid rgba(15,23,42,.08); border-radius: 24px; padding: 24px; box-shadow: 0 14px 40px rgba(15,23,42,.06); }
.cp-payment-course.is-selected { outline: 3px solid rgba(17,184,201,.25); border-color: rgba(17,184,201,.7); }
.cp-payment-course > span { display: inline-flex; padding: 7px 10px; border-radius: 999px; background: rgba(17,184,201,.1); color: #0c8799; font-size: 12px; letter-spacing: .08em; font-weight: 900; }
.cp-payment-course h2 { margin: 14px 0 8px; font-size: 24px; }
.cp-payment-price { font-size: 30px; font-weight: 900; margin-bottom: 18px; }
.cp-payment-form-card, .cp-payment-history, .cp-payment-login-required { background: #fff; border: 1px solid rgba(15,23,42,.08); border-radius: 28px; padding: 28px; box-shadow: 0 18px 50px rgba(15,23,42,.07); margin-top: 24px; }
.cp-payment-instructions { background: #f8fbff; border: 1px solid rgba(15,23,42,.08); border-radius: 18px; padding: 18px; margin: 18px 0; color: #334155; }
.cp-payment-form { display: grid; gap: 12px; }
.cp-payment-form input[type=file], .cp-payment-form select, .cp-payment-form textarea { width: 100%; border: 1px solid rgba(15,23,42,.14); border-radius: 14px; padding: 12px 14px; background: #fff; font: inherit; }
.cp-payment-alert { border-radius: 18px; padding: 16px 18px; margin: 18px 0; font-weight: 700; }
.cp-payment-success { background: #ecfdf5; color: #047857; border: 1px solid rgba(16,185,129,.25); }
.cp-payment-warning { background: #fffbeb; color: #92400e; border: 1px solid rgba(245,158,11,.25); }
.cp-payment-error { background: #fef2f2; color: #b91c1c; border: 1px solid rgba(239,68,68,.25); }
.cp-payment-history table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 14px; }
.cp-payment-history th, .cp-payment-history td { padding: 12px; border-bottom: 1px solid rgba(15,23,42,.08); text-align: left; }
.cp-status { display: inline-flex; border-radius: 999px; padding: 5px 9px; font-size: 12px; font-weight: 900; }
.cp-status-pending { background: #fff7ed; color: #c2410c; }
.cp-status-approved { background: #ecfdf5; color: #047857; }
.cp-status-rejected { background: #fef2f2; color: #b91c1c; }
.cp-admin-card { background:#fff; border:1px solid #dcdcde; border-radius:14px; padding:22px; margin:18px 0; max-width:1200px; }

@media (max-width: 960px) {
  .cp-v11-paid-grid, .cp-payment-grid { grid-template-columns: 1fr; }
  .cp-payment-hero, .cp-login-shell, .cp-payment-form-card, .cp-payment-history, .cp-payment-login-required { padding: 22px; border-radius: 22px; }
}

/* CP Math LMS v1.9.0 polish: parent/student landing, compact titles, clean header/footer. */
.cp-home-v12 {
    --cp-v12-text: #0f172a;
    --cp-v12-muted: #64748b;
}

.cp-home-v12 .cp-container {
    width: min(1120px, calc(100% - 36px));
}

.cp-v12-hero {
    padding: clamp(42px, 5vw, 68px) 0 clamp(44px, 5vw, 64px);
}

.cp-v12-hero-grid {
    grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr);
    gap: clamp(24px, 4vw, 44px);
}

.cp-v12-hero-copy {
    padding: clamp(24px, 3vw, 34px);
}

.cp-v12-hero-copy h1 {
    max-width: 12.5ch;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.04;
    letter-spacing: -.045em;
    margin: 16px 0 14px;
}

.cp-v12-hero-copy p,
.cp-v12-section-head p {
    font-size: clamp(14px, 1.35vw, 16px);
    line-height: 1.72;
}

.cp-v12-my-note {
    margin-top: 10px !important;
    color: #5f6f86 !important;
}

.cp-v12-section {
    padding: clamp(48px, 6vw, 72px) 0;
}

.cp-v12-section-head {
    max-width: 760px;
    margin-bottom: 28px;
}

.cp-v12-section-head h2,
.cp-v12-final h2 {
    font-size: clamp(26px, 3.3vw, 42px) !important;
    line-height: 1.12 !important;
    letter-spacing: -.035em !important;
    text-wrap: balance;
}

.cp-v12-grid-3,
.cp-v12-paid-grid,
.cp-v12-free-grid {
    gap: 18px;
}

.cp-v12-card,
.cp-v12-free-card {
    padding: clamp(20px, 2.5vw, 26px) !important;
    border-radius: 24px !important;
}

.cp-v12-card h3,
.cp-v12-free-card h3,
.cp-v12-flow h3,
.cp-v12-flow-card h3 {
    font-size: clamp(18px, 1.7vw, 22px) !important;
    line-height: 1.22 !important;
    letter-spacing: -.02em !important;
}

.cp-v12-card p,
.cp-v12-card li,
.cp-v12-free-card p,
.cp-v12-flow p,
.cp-v12-faq p {
    font-size: 14px;
    line-height: 1.68;
}

.cp-v12-flow > div {
    grid-template-columns: 58px 1fr;
    padding: 20px;
}

.cp-v12-flow p {
    overflow-wrap: normal;
    word-break: normal;
}

.cp-v12-photo-card {
    height: clamp(310px, 32vw, 410px) !important;
}

.cp-v12-photo-card img {
    height: 100% !important;
    min-height: 0 !important;
    object-fit: cover;
    object-position: center center;
}

.cp-v12-visual-panel {
    grid-template-columns: minmax(0, .9fr) minmax(230px, 1.1fr) !important;
    align-items: stretch;
}

.cp-v12-subject-chips span {
    min-height: 42px !important;
    font-size: 12px !important;
}

.cp-v12-progress-card strong {
    font-size: 18px !important;
}

.cp-v12-progress-card div {
    font-size: 13px;
}

.cp-v12-final {
    padding: clamp(32px, 5vw, 48px) 24px !important;
}

/* Header: keep one line on desktop and avoid duplicate action labels. */
.cp-header-inner {
    min-height: 70px;
    gap: 14px;
}
.cp-brand {
    flex: 0 1 320px;
}
.cp-logo-mark {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 14px;
}
.cp-logo-text strong {
    font-size: 16px;
    max-width: 260px;
}
.cp-logo-text small {
    max-width: 260px;
    font-size: 11px;
}
.cp-navigation {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
}
.cp-menu {
    flex-wrap: nowrap;
    white-space: nowrap;
}
.cp-menu a {
    padding: 9px 10px;
    font-size: 13px;
}
.cp-header-actions {
    flex: 0 0 auto;
    gap: 8px;
}
.cp-header-actions .cp-btn {
    padding: 10px 14px;
    font-size: 13px;
    white-space: nowrap;
}

/* Footer: one-line desktop, responsive mobile. */
.cp-site-footer.cp-v12-footer {
    margin-top: 0;
    background: #07111f;
    color: #dbe5f1;
    padding: 0;
}
.cp-footer-one-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 0;
    min-height: 76px;
}
.cp-footer-brand-line,
.cp-footer-contact-line,
.cp-footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.cp-footer-brand-line {
    flex: 1 1 280px;
}
.cp-footer-brand-line strong {
    color: #fff;
    font-size: 15px;
    white-space: nowrap;
}
.cp-footer-brand-line span,
.cp-footer-contact-line span,
.cp-footer-contact-line a,
.cp-footer-links a {
    color: #aebbd0;
    font-size: 13px;
    white-space: nowrap;
}
.cp-footer-links {
    flex: 0 0 auto;
}
.cp-footer-links a {
    padding: 7px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,.05);
}
.cp-footer-links a:hover,
.cp-footer-contact-line a:hover {
    color: #fff;
}
.cp-footer-contact-line {
    justify-content: flex-end;
    flex: 1 1 270px;
}
.cp-footer-disclaimer-line {
    border-top: 1px solid rgba(255,255,255,.09);
    padding: 12px 0 16px;
    color: #8795ab;
    font-size: 12px;
    line-height: 1.55;
    text-align: center;
}

@media (max-width: 1180px) {
    .cp-brand { flex-basis: 260px; }
    .cp-logo-text strong, .cp-logo-text small { max-width: 210px; }
    .cp-menu a { font-size: 12px; padding-inline: 8px; }
    .cp-header-actions .cp-btn { padding-inline: 12px; }
}

@media (max-width: 980px) {
    .cp-v12-hero-grid,
    .cp-v12-grid-3,
    .cp-v12-grid-2,
    .cp-v12-paid-grid,
    .cp-v12-free-grid {
        grid-template-columns: 1fr !important;
    }
    .cp-v12-hero-copy h1 {
        max-width: 100%;
        font-size: clamp(32px, 7vw, 46px);
    }
    .cp-v12-photo-card {
        height: auto !important;
    }
    .cp-v12-photo-card img {
        min-height: 360px !important;
        height: auto !important;
    }
    .cp-v12-visual-panel {
        grid-template-columns: 1fr !important;
    }
    .cp-v12-subject-chips {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
    .cp-footer-one-line {
        flex-wrap: wrap;
        align-items: flex-start;
    }
    .cp-footer-brand-line,
    .cp-footer-contact-line {
        flex: 1 1 100%;
        justify-content: flex-start;
    }
    .cp-footer-links {
        flex-wrap: wrap;
    }
}

@media (max-width: 820px) {
    .cp-mobile-toggle { display: block; }
    .cp-navigation {
        position: absolute;
        left: 16px;
        right: 16px;
        top: calc(100% + 8px);
        display: none;
        background: rgba(255,255,255,.98);
        border: 1px solid var(--cp-border);
        border-radius: 18px;
        box-shadow: var(--cp-shadow-soft);
        padding: 10px;
        justify-content: flex-start;
    }
    .cp-navigation.is-open { display: block; }
    .cp-menu { display: grid; gap: 2px; white-space: normal; }
    .cp-header-actions { margin-left: auto; }
}

@media (max-width: 640px) {
    .cp-home-v12 .cp-container { width: min(100% - 24px, 640px); }
    .cp-v12-hero-copy { padding: 20px; }
    .cp-v12-section-head { text-align: left; }
    .cp-v12-section-head h2 { font-size: clamp(25px, 8vw, 34px) !important; }
    .cp-v12-flow > div { grid-template-columns: 1fr; }
    .cp-v12-subject-chips { grid-template-columns: 1fr !important; }
    .cp-v12-photo-card img { min-height: 300px !important; }
    .cp-logo-text strong { max-width: 170px; }
    .cp-logo-text small { display: none; }
    .cp-header-actions .cp-btn-ghost { display: none; }
    .cp-footer-one-line {
        display: grid;
        gap: 14px;
        padding: 22px 0;
    }
    .cp-footer-brand-line,
    .cp-footer-contact-line,
    .cp-footer-links {
        display: grid;
        gap: 8px;
    }
    .cp-footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cp-footer-links a {
        text-align: center;
    }
    .cp-footer-brand-line strong,
    .cp-footer-brand-line span,
    .cp-footer-contact-line span,
    .cp-footer-contact-line a,
    .cp-footer-links a {
        white-space: normal;
    }
}

@media (max-width: 820px) {
    .cp-header-actions { display: flex !important; }
}
@media (max-width: 480px) {
    .cp-header-actions .cp-btn { padding: 9px 11px; font-size: 12px; }
    .cp-logo-mark { width: 40px; height: 40px; flex-basis: 40px; }
    .cp-logo-text strong { max-width: 145px; font-size: 14px; }
}

/* CP Math LMS v2.1.0 / v14 final polish */
.cp-home-v13 .cp-v13-hero-copy h1,
.cp-home-v13 .cp-v12-hero-copy h1 {
    max-width: 13ch !important;
    font-size: clamp(32px, 3.8vw, 50px) !important;
    line-height: 1.06 !important;
    letter-spacing: -.042em !important;
}
.cp-home-v13 .cp-v13-section-head h2,
.cp-home-v13 .cp-v12-section-head h2,
.cp-home-v13 .cp-v13-final h2,
.cp-home-v13 .cp-v12-final h2 {
    font-size: clamp(24px, 2.8vw, 36px) !important;
    line-height: 1.14 !important;
    letter-spacing: -.03em !important;
}
.cp-home-v13 .cp-v13-card h3,
.cp-home-v13 .cp-v12-card h3,
.cp-home-v13 .cp-v13-free-card h3,
.cp-home-v13 .cp-v12-free-card h3,
.cp-home-v13 .cp-v13-flow h3,
.cp-home-v13 .cp-v12-flow h3 {
    font-size: clamp(17px, 1.55vw, 21px) !important;
    line-height: 1.25 !important;
}
.cp-v13-note {
    margin-top: 10px !important;
    color: #5f6f86 !important;
    font-size: 14px !important;
    line-height: 1.75 !important;
}
.cp-home-v13 .cp-v13-actions .cp-btn {
    padding: 11px 16px;
    font-size: 14px;
}
.cp-home-v13 .cp-v13-trust span {
    font-size: 12px;
}
.cp-v13-photo-card {
    height: clamp(310px, 30vw, 390px) !important;
}
.cp-v13-photo-card img {
    height: 100% !important;
    width: 100%;
    object-fit: cover;
    object-position: center center;
}
.cp-v13-visual-panel {
    margin-top: 14px !important;
    grid-template-columns: minmax(0, 1fr) minmax(240px, .9fr) !important;
}
.cp-v13-subject-chips span {
    font-size: 12px !important;
    min-height: 40px !important;
}
.cp-v13-progress-card {
    min-height: auto !important;
}
.cp-v13-progress-card strong {
    font-size: 17px !important;
}
.cp-v13-progress-card div {
    font-size: 13px !important;
}
.cp-v13-section {
    padding: clamp(44px, 5.6vw, 66px) 0 !important;
}
.cp-v13-card {
    padding: clamp(18px, 2.2vw, 24px) !important;
}
.cp-v13-paid-grid {
    align-items: stretch;
}
.cp-v13-faq details summary {
    font-size: 15px;
}
.cp-v13-final {
    padding: clamp(30px, 4.5vw, 44px) 24px !important;
}

/* Keep footer compact on desktop and clean on mobile. */
.cp-site-footer.cp-v12-footer .cp-footer-one-line {
    display: grid !important;
    grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr);
    align-items: center;
    gap: 16px;
    padding: 18px 0 !important;
}
.cp-site-footer.cp-v12-footer .cp-footer-brand-line,
.cp-site-footer.cp-v12-footer .cp-footer-links,
.cp-site-footer.cp-v12-footer .cp-footer-contact-line {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.cp-site-footer.cp-v12-footer .cp-footer-links {
    justify-content: center;
}
.cp-site-footer.cp-v12-footer .cp-footer-contact-line {
    justify-content: flex-end;
}
.cp-site-footer.cp-v12-footer .cp-footer-brand-line strong,
.cp-site-footer.cp-v12-footer .cp-footer-brand-line span,
.cp-site-footer.cp-v12-footer .cp-footer-contact-line span,
.cp-site-footer.cp-v12-footer .cp-footer-contact-line a,
.cp-site-footer.cp-v12-footer .cp-footer-links a {
    white-space: nowrap;
    font-size: 12.5px;
}
.cp-site-footer.cp-v12-footer .cp-footer-links a {
    padding: 6px 8px;
}
.cp-site-footer.cp-v12-footer .cp-footer-disclaimer-line {
    font-size: 11.5px;
}

@media (max-width: 980px) {
    .cp-home-v13 .cp-v13-hero-copy h1,
    .cp-home-v13 .cp-v12-hero-copy h1 {
        max-width: 100% !important;
        font-size: clamp(31px, 7vw, 44px) !important;
    }
    .cp-v13-visual-panel {
        grid-template-columns: 1fr !important;
    }
    .cp-site-footer.cp-v12-footer .cp-footer-one-line {
        grid-template-columns: 1fr !important;
        justify-items: start;
        gap: 12px;
    }
    .cp-site-footer.cp-v12-footer .cp-footer-links,
    .cp-site-footer.cp-v12-footer .cp-footer-contact-line {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}
@media (max-width: 640px) {
    .cp-home-v13 .cp-v13-section-head h2,
    .cp-home-v13 .cp-v12-section-head h2,
    .cp-home-v13 .cp-v13-final h2,
    .cp-home-v13 .cp-v12-final h2 {
        font-size: clamp(23px, 7.3vw, 31px) !important;
    }
    .cp-v13-photo-card img {
        min-height: 280px !important;
        object-position: center top;
    }
    .cp-home-v13 .cp-v13-actions .cp-btn {
        width: 100%;
    }
    .cp-site-footer.cp-v12-footer .cp-footer-brand-line,
    .cp-site-footer.cp-v12-footer .cp-footer-contact-line,
    .cp-site-footer.cp-v12-footer .cp-footer-links {
        display: grid !important;
        gap: 8px;
    }
    .cp-site-footer.cp-v12-footer .cp-footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }
    .cp-site-footer.cp-v12-footer .cp-footer-links a {
        text-align: center;
    }
    .cp-site-footer.cp-v12-footer .cp-footer-brand-line strong,
    .cp-site-footer.cp-v12-footer .cp-footer-brand-line span,
    .cp-site-footer.cp-v12-footer .cp-footer-contact-line span,
    .cp-site-footer.cp-v12-footer .cp-footer-contact-line a,
    .cp-site-footer.cp-v12-footer .cp-footer-links a {
        white-space: normal;
    }
}

/* v14: registered-only free lessons and moderated lesson comments */
.cp-access-notice,
.cp-lms-comments {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.cp-access-notice h2,
.cp-lms-comments h2 {
  margin: 12px 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.cp-access-notice p,
.cp-lms-comments-head p {
  color: #64748b;
  line-height: 1.75;
  margin: 0 0 18px;
}

.cp-v14-actions {
  gap: 12px;
}

.cp-lms-comments {
  margin-top: 32px;
}

.cp-comment-list {
  margin: 20px 0 28px;
  padding-left: 0;
  list-style: none;
}

.cp-comment-list .comment {
  margin: 0 0 14px;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: #f8fbff;
}

.cp-comment-list .comment-author,
.cp-comment-list .comment-meta {
  font-size: 14px;
}

.cp-comment-list .comment-meta a {
  color: #64748b;
}

.cp-comment-list .comment-content {
  color: #334155;
  line-height: 1.7;
}

.cp-lms-comments .comment-respond {
  background: #f8fbff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  padding: 22px;
}

.cp-lms-comments .comment-reply-title {
  margin: 0 0 10px;
  font-size: 22px;
}

.cp-lms-comments textarea,
.cp-lms-comments input[type="text"],
.cp-lms-comments input[type="email"],
.cp-lms-comments input[type="url"] {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
}

.cp-lms-comments .submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 22px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, var(--cp-primary, #05b6d4), var(--cp-secondary, #6d5dfc));
}

@media (max-width: 640px) {
  .cp-access-notice,
  .cp-lms-comments,
  .cp-lms-comments .comment-respond {
    padding: 18px;
    border-radius: 18px;
  }
}

/* v15: compact parent/student homepage + duplicate header guard + one-line footer */
.cp-home-v15 .cp-container {
  width: min(1100px, calc(100% - 36px));
}
.cp-home-v15 .cp-v15-hero {
  padding: clamp(36px, 4.8vw, 60px) 0 clamp(40px, 4.8vw, 58px) !important;
}
.cp-home-v15 .cp-v15-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr) !important;
  gap: clamp(22px, 3.4vw, 38px) !important;
  align-items: center !important;
}
.cp-home-v15 .cp-v15-hero-copy {
  padding: clamp(22px, 2.8vw, 32px) !important;
}
.cp-home-v15 .cp-v15-hero-copy h1,
.cp-home-v15 .cp-v12-hero-copy h1,
.cp-home-v15 .cp-v7-hero-copy h1 {
  max-width: 14ch !important;
  font-size: clamp(28px, 3.15vw, 42px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.035em !important;
  margin: 14px 0 12px !important;
}
.cp-home-v15 .cp-v15-hero-copy p,
.cp-home-v15 .cp-v12-hero-copy p,
.cp-home-v15 .cp-v15-section-head p,
.cp-home-v15 .cp-v12-section-head p,
.cp-home-v15 .cp-v15-card p,
.cp-home-v15 .cp-v15-card li,
.cp-home-v15 .cp-v15-flow p,
.cp-home-v15 .cp-v15-faq p {
  font-size: 14px !important;
  line-height: 1.68 !important;
}
.cp-v15-note {
  margin-top: 10px !important;
  color: #5f6f86 !important;
}
.cp-home-v15 .cp-v15-section {
  padding: clamp(38px, 5vw, 58px) 0 !important;
}
.cp-home-v15 .cp-v15-section-head {
  max-width: 720px !important;
  margin-bottom: 24px !important;
}
.cp-home-v15 .cp-v15-section-head h2,
.cp-home-v15 .cp-v12-section-head h2,
.cp-home-v15 .cp-v15-final h2,
.cp-home-v15 .cp-v12-final h2,
.cp-home-v15 .cp-v15-access-notice h2 {
  font-size: clamp(22px, 2.35vw, 32px) !important;
  line-height: 1.16 !important;
  letter-spacing: -0.025em !important;
  margin: 12px 0 10px !important;
  text-wrap: balance;
}
.cp-home-v15 .cp-v15-card,
.cp-home-v15 .cp-v12-card,
.cp-home-v15 .cp-v15-free-card,
.cp-home-v15 .cp-v12-free-card,
.cp-home-v15 .cp-v15-access-notice {
  padding: clamp(18px, 2.1vw, 24px) !important;
  border-radius: 22px !important;
}
.cp-home-v15 .cp-v15-card h3,
.cp-home-v15 .cp-v12-card h3,
.cp-home-v15 .cp-v15-free-card h3,
.cp-home-v15 .cp-v12-free-card h3,
.cp-home-v15 .cp-v15-flow h3,
.cp-home-v15 .cp-v12-flow h3,
.cp-home-v15 .cp-v15-faq summary {
  font-size: clamp(16px, 1.45vw, 19px) !important;
  line-height: 1.26 !important;
  letter-spacing: -0.012em !important;
}
.cp-home-v15 .cp-v15-actions,
.cp-home-v15 .cp-v7-actions {
  gap: 10px !important;
}
.cp-home-v15 .cp-v15-actions .cp-btn,
.cp-home-v15 .cp-v7-actions .cp-btn,
.cp-home-v15 .cp-btn {
  padding: 10px 15px !important;
  font-size: 13px !important;
  min-height: 42px !important;
}
.cp-home-v15 .cp-v15-trust,
.cp-home-v15 .cp-v7-trust {
  gap: 8px !important;
}
.cp-home-v15 .cp-v15-trust span,
.cp-home-v15 .cp-v7-trust span,
.cp-home-v15 .cp-v7-kicker,
.cp-home-v15 .cp-v7-badge,
.cp-home-v15 .cp-v10-free-label {
  font-size: 11px !important;
}
.cp-v15-photo-wrap {
  min-height: auto !important;
  padding-bottom: 0 !important;
}
.cp-v15-photo-card {
  height: clamp(300px, 29vw, 380px) !important;
}
.cp-v15-photo-card img {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
}
.cp-v15-visual-panel {
  margin-top: 14px !important;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .85fr) !important;
  gap: 12px !important;
}
.cp-v15-subject-chips span {
  min-height: 38px !important;
  font-size: 11.5px !important;
  padding: 10px 12px !important;
}
.cp-v15-progress-card {
  min-height: auto !important;
  padding: 14px !important;
}
.cp-v15-progress-card strong {
  font-size: 16px !important;
}
.cp-v15-progress-card div {
  font-size: 12px !important;
  padding: 8px 0 !important;
}
.cp-v15-paid-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch;
}
.cp-home-v15 .cp-v11-price {
  font-size: clamp(25px, 3vw, 34px) !important;
}
.cp-v15-final {
  padding: clamp(28px, 4vw, 40px) 22px !important;
}

/* Header: prevent repeated action labels when old menus still contain Dashboard/Login/Logout. */
.cp-header-actions:empty {
  display: none !important;
}
.cp-header-actions .cp-btn {
  white-space: nowrap;
}

/* Footer: one clean row on desktop, stacked and readable on mobile. */
.cp-site-footer.cp-v15-footer .cp-footer-one-line {
  display: grid !important;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr) !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 16px 0 !important;
  min-height: 64px !important;
}
.cp-site-footer.cp-v15-footer .cp-footer-brand-line,
.cp-site-footer.cp-v15-footer .cp-footer-links,
.cp-site-footer.cp-v15-footer .cp-footer-contact-line {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  min-width: 0 !important;
  flex-wrap: nowrap !important;
}
.cp-site-footer.cp-v15-footer .cp-footer-links {
  justify-content: center !important;
}
.cp-site-footer.cp-v15-footer .cp-footer-contact-line {
  justify-content: flex-end !important;
}
.cp-site-footer.cp-v15-footer .cp-footer-brand-line strong,
.cp-site-footer.cp-v15-footer .cp-footer-brand-line span,
.cp-site-footer.cp-v15-footer .cp-footer-contact-line span,
.cp-site-footer.cp-v15-footer .cp-footer-contact-line a,
.cp-site-footer.cp-v15-footer .cp-footer-links a {
  white-space: nowrap !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
}
.cp-site-footer.cp-v15-footer .cp-footer-links a {
  padding: 6px 8px !important;
}
.cp-site-footer.cp-v15-footer .cp-footer-disclaimer-line {
  font-size: 11px !important;
  padding: 10px 0 14px !important;
}

@media (max-width: 1040px) {
  .cp-home-v15 .cp-v15-hero-grid,
  .cp-home-v15 .cp-v15-grid-3,
  .cp-home-v15 .cp-v12-grid-3,
  .cp-home-v15 .cp-v15-grid-2,
  .cp-home-v15 .cp-v12-grid-2,
  .cp-v15-paid-grid,
  .cp-home-v15 .cp-v12-paid-grid,
  .cp-home-v15 .cp-v15-free-grid,
  .cp-home-v15 .cp-v12-free-grid {
    grid-template-columns: 1fr !important;
  }
  .cp-home-v15 .cp-v15-hero-copy h1,
  .cp-home-v15 .cp-v12-hero-copy h1,
  .cp-home-v15 .cp-v7-hero-copy h1 {
    max-width: 100% !important;
    font-size: clamp(28px, 6vw, 40px) !important;
  }
  .cp-v15-photo-card {
    height: auto !important;
  }
  .cp-v15-photo-card img {
    min-height: 330px !important;
    height: auto !important;
    object-position: center top !important;
  }
  .cp-v15-visual-panel {
    grid-template-columns: 1fr !important;
  }
  .cp-v15-subject-chips {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .cp-site-footer.cp-v15-footer .cp-footer-one-line {
    grid-template-columns: 1fr !important;
    justify-items: start !important;
    gap: 12px !important;
  }
  .cp-site-footer.cp-v15-footer .cp-footer-links,
  .cp-site-footer.cp-v15-footer .cp-footer-contact-line {
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
  }
}
@media (max-width: 640px) {
  .cp-home-v15 .cp-container {
    width: min(100% - 24px, 640px) !important;
  }
  .cp-home-v15 .cp-v15-hero-copy,
  .cp-home-v15 .cp-v12-hero-copy {
    padding: 18px !important;
  }
  .cp-home-v15 .cp-v15-section-head h2,
  .cp-home-v15 .cp-v12-section-head h2,
  .cp-home-v15 .cp-v15-final h2,
  .cp-home-v15 .cp-v12-final h2 {
    font-size: clamp(21px, 6.7vw, 29px) !important;
  }
  .cp-v15-photo-card img {
    min-height: 280px !important;
  }
  .cp-v15-subject-chips {
    grid-template-columns: 1fr !important;
  }
  .cp-home-v15 .cp-v15-actions .cp-btn,
  .cp-home-v15 .cp-v7-actions .cp-btn,
  .cp-home-v15 .cp-btn {
    width: 100% !important;
  }
  .cp-site-footer.cp-v15-footer .cp-footer-brand-line,
  .cp-site-footer.cp-v15-footer .cp-footer-contact-line,
  .cp-site-footer.cp-v15-footer .cp-footer-links {
    display: grid !important;
    gap: 8px !important;
  }
  .cp-site-footer.cp-v15-footer .cp-footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
  }
  .cp-site-footer.cp-v15-footer .cp-footer-links a {
    text-align: center !important;
  }
  .cp-site-footer.cp-v15-footer .cp-footer-brand-line strong,
  .cp-site-footer.cp-v15-footer .cp-footer-brand-line span,
  .cp-site-footer.cp-v15-footer .cp-footer-contact-line span,
  .cp-site-footer.cp-v15-footer .cp-footer-contact-line a,
  .cp-site-footer.cp-v15-footer .cp-footer-links a {
    white-space: normal !important;
  }
}

/* v16: compact one-line process rows on desktop + visitor count. */
.cp-home-v16 .cp-v16-section-head h2,
.cp-home-v16 .cp-v15-section-head h2,
.cp-home-v16 .cp-v12-section-head h2,
.cp-home-v16 .cp-v15-final h2,
.cp-home-v16 .cp-v12-final h2 {
  font-size: clamp(21px, 2.1vw, 30px) !important;
  line-height: 1.16 !important;
}

.cp-home-v16 .cp-v15-hero-copy h1,
.cp-home-v16 .cp-v12-hero-copy h1,
.cp-home-v16 .cp-v7-hero-copy h1 {
  font-size: clamp(27px, 2.9vw, 40px) !important;
  line-height: 1.08 !important;
  max-width: 14.5ch !important;
}

.cp-v16-visitor-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.cp-v16-visitor-strip > div {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.cp-v16-visitor-strip strong {
  color: #0f172a;
  font-size: 14px;
}

.cp-v16-process-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 18px;
}

.cp-v16-process-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.cp-v16-process-summary strong {
  color: #ffffff;
  font-size: 19px;
  line-height: 1;
}

.cp-v16-process-summary span {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: right;
}

.cp-home-v16 .cp-v16-flow {
  display: grid !important;
  gap: 12px !important;
}

.cp-home-v16 .cp-v16-flow > div {
  display: grid !important;
  grid-template-columns: 54px minmax(150px, 220px) minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 16px !important;
  min-height: 72px !important;
  padding: 14px 18px !important;
  border-radius: 18px !important;
}

.cp-home-v16 .cp-v16-flow > div > span {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 46px !important;
  height: 46px !important;
  border-radius: 15px !important;
  font-size: 13px !important;
}

.cp-home-v16 .cp-v16-flow > div > h3 {
  grid-column: 2 !important;
  grid-row: 1 !important;
  margin: 0 !important;
  color: #fff !important;
  font-size: clamp(15px, 1.25vw, 18px) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em !important;
  white-space: nowrap !important;
}

.cp-home-v16 .cp-v16-flow > div > p {
  grid-column: 3 !important;
  grid-row: 1 !important;
  margin: 0 !important;
  color: #cbd5e1 !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

.cp-site-footer.cp-v16-footer .cp-footer-one-line {
  grid-template-columns: minmax(220px, 1fr) auto minmax(300px, 1fr) !important;
}

.cp-site-footer.cp-v16-footer .cp-footer-contact-line {
  gap: 10px !important;
}

@media (max-width: 1040px) {
  .cp-home-v16 .cp-v16-flow > div {
    grid-template-columns: 50px minmax(130px, 190px) minmax(0, 1fr) !important;
    gap: 12px !important;
  }
  .cp-home-v16 .cp-v16-flow > div > h3 {
    white-space: normal !important;
  }
}

@media (max-width: 820px) {
  .cp-v16-process-summary {
    grid-template-columns: 1fr;
  }
  .cp-v16-process-summary > div {
    justify-content: space-between;
  }
  .cp-home-v16 .cp-v16-flow > div {
    grid-template-columns: 50px minmax(0, 1fr) !important;
    align-items: start !important;
    min-height: auto !important;
    padding: 16px !important;
  }
  .cp-home-v16 .cp-v16-flow > div > span {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
  }
  .cp-home-v16 .cp-v16-flow > div > h3 {
    grid-column: 2 !important;
    grid-row: 1 !important;
    white-space: normal !important;
  }
  .cp-home-v16 .cp-v16-flow > div > p {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }
  .cp-site-footer.cp-v16-footer .cp-footer-one-line {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 520px) {
  .cp-home-v16 .cp-v16-flow > div {
    grid-template-columns: 1fr !important;
  }
  .cp-home-v16 .cp-v16-flow > div > span,
  .cp-home-v16 .cp-v16-flow > div > h3,
  .cp-home-v16 .cp-v16-flow > div > p {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
  .cp-v16-visitor-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .cp-v16-visitor-strip > div {
    justify-content: center;
  }
}


/* v2.6.0: Plain Tutor LMS lesson layout, mobile first.
   Keep the homepage design, but let Tutor LMS course/lesson pages use the full
   available width with small, predictable padding. */
body.cp-math-lms-theme .tutor-container,
body.cp-math-lms-theme .tutor-wrap,
body.cp-math-lms-theme .tutor-dashboard,
body.cp-math-lms-theme .tutor-course-details-page,
body.cp-math-lms-theme .tutor-course-archive-results-wrap,
body.cp-math-lms-theme .tutor-course-single-content-wrapper,
body.cp-math-lms-theme .tutor-single-course-content-wrapper,
body.cp-math-lms-theme .tutor-lesson-wrapper,
body.cp-math-lms-theme .tutor-quiz-wrapper {
  width: 100% !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.cp-math-lms-theme .tutor-course-single-content-wrapper,
body.cp-math-lms-theme .tutor-course-single-content,
body.cp-math-lms-theme .tutor-lesson-content,
body.cp-math-lms-theme .tutor-lesson-content-area,
body.cp-math-lms-theme .tutor-single-lesson-wrap,
body.cp-math-lms-theme .tutor-course-topic-single-body,
body.cp-math-lms-theme .tutor-course-details-content,
body.cp-math-lms-theme .tutor-dashboard-content,
body.cp-math-lms-theme .tutor-quiz-wrapper {
  padding-left: clamp(8px, 1.8vw, 18px) !important;
  padding-right: clamp(8px, 1.8vw, 18px) !important;
  max-width: none !important;
}

body.cp-math-lms-theme .tutor-card,
body.cp-math-lms-theme .tutor-course-card,
body.cp-math-lms-theme .tutor-dashboard .tutor-card,
body.cp-math-lms-theme .tutor-course-single-content-wrapper,
body.cp-math-lms-theme .tutor-course-single-sidebar-wrapper,
body.cp-math-lms-theme .tutor-course-topic-single-header,
body.cp-math-lms-theme .tutor-lesson-content-area {
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.cp-math-lms-theme .tutor-lesson-content,
body.cp-math-lms-theme .tutor-lesson-content-area,
body.cp-math-lms-theme .tutor-course-topic-single-body,
body.cp-math-lms-theme .tutor-single-page-top-bar,
body.cp-math-lms-theme .tutor-course-topic-single-header {
  background: #fff !important;
}

body.cp-math-lms-theme .tutor-lesson-content img,
body.cp-math-lms-theme .tutor-course-topic-single-body img,
body.cp-math-lms-theme .tutor-course-single-content-wrapper img {
  max-width: 100% !important;
  height: auto !important;
}

body.cp-math-lms-theme .tutor-lesson-content table,
body.cp-math-lms-theme .tutor-course-topic-single-body table,
body.cp-math-lms-theme .tutor-course-single-content-wrapper table {
  max-width: 100% !important;
}

body.cp-math-lms-theme .tutor-lesson-content .content-card,
body.cp-math-lms-theme .tutor-course-topic-single-body .content-card,
body.cp-math-lms-theme .tutor-course-single-content-wrapper .content-card {
  max-width: none !important;
  width: 100% !important;
}

@media (max-width: 782px) {
  body.cp-math-lms-theme .tutor-course-single-content-wrapper,
  body.cp-math-lms-theme .tutor-course-single-content,
  body.cp-math-lms-theme .tutor-lesson-content,
  body.cp-math-lms-theme .tutor-lesson-content-area,
  body.cp-math-lms-theme .tutor-single-lesson-wrap,
  body.cp-math-lms-theme .tutor-course-topic-single-body,
  body.cp-math-lms-theme .tutor-course-details-content,
  body.cp-math-lms-theme .tutor-dashboard-content,
  body.cp-math-lms-theme .tutor-quiz-wrapper {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  body.cp-math-lms-theme .tutor-course-single-sidebar-wrapper,
  body.cp-math-lms-theme .tutor-sidebar,
  body.cp-math-lms-theme .tutor-course-single-sidebar {
    width: 100% !important;
    max-width: none !important;
  }

  body.cp-math-lms-theme .tutor-course-topic-single-header,
  body.cp-math-lms-theme .tutor-single-page-top-bar {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}
