/*
 * Shared page components — page-hero, surface panels, toolbar,
 * search boxes, grids, wide CTA, stats, features, articles.
 * Used across courses, videos, blog, about, pricing, community, etc.
 */

/* ── Page hero ────────────────────────────────────────────── */
.page-hero { padding: 54px 0 30px; text-align: center; }
.page-hero--left { text-align: left; }
.page-hero .section-kicker { margin-bottom: 10px; }
.page-hero h1 { font-size: 48px; line-height: 1.08; letter-spacing: -1.8px; margin: 0 auto 14px; max-width: 820px; overflow-wrap: break-word; word-wrap: break-word; }
.page-hero p { max-width: 720px; margin: 0 auto; color: var(--muted); font-size: 18px; overflow-wrap: break-word; word-wrap: break-word; }
.page-shell { padding-bottom: 56px; }

/* ── Surface panels ───────────────────────────────────────── */
.surface { border: 1px solid var(--line); border-radius: var(--radius-md); background: linear-gradient(180deg, rgba(11,20,35,0.96), rgba(7,14,25,0.96)); box-shadow: var(--shadow); }
.surface-pad { padding: 24px; }

/* ── Toolbar (search + filters) ───────────────────────────── */
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.search-box { flex: 1 1 280px; min-width: 240px; position: relative; }
.search-box input, .form-control-dark, .form-select-dark, textarea.form-control-dark { width: 100%; min-height: 46px; border: 1px solid #243147; border-radius: 10px; background: #07101d; color: #fff; padding: 0 14px; outline: none; }
.search-box input { padding-left: 42px; }
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #8590a0; }
.search-box input:focus, .form-control-dark:focus, .form-select-dark:focus, textarea.form-control-dark:focus { border-color: #ff3c7f; box-shadow: 0 0 0 3px rgba(255,60,127,0.12); }
.filter-chips-scroll { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; flex: 1 1 100%; min-width: 0; max-width: 100%; padding-bottom: 4px; }
.filter-chips-scroll::-webkit-scrollbar { display: none; }
.filter-chip { display: inline-flex; align-items: center; border: 1px solid #26344b; background: #08111f; color: #c7ced8; min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.filter-chip.active, .filter-chip:hover { border-color: #ff3c7f; color: #fff; background: rgba(255,31,109,0.1); }

/* ── Page grid ────────────────────────────────────────────── */
.page-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

/* ── Meta row ─────────────────────────────────────────────── */
.meta-row { display: flex; gap: 12px; flex-wrap: wrap; color: #aab4c2; font-size: 13px; margin-bottom: 12px; }

/* ── Card actions ─────────────────────────────────────────── */
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid #182437; }
.price { font-size: 19px; font-weight: 800; }

/* ── Pagination ───────────────────────────────────────────── */
.pagination-row { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.pagination-row a { width: 44px; height: 44px; border: 1px solid #243148; border-radius: 9px; display: grid; place-items: center; color: #c9d0da; font-size: 14px; }
.pagination-row a.active { background: linear-gradient(90deg, #f51266, #ff7a2f); border-color: transparent; color: #fff; }

/* ── Wide CTA ─────────────────────────────────────────────── */
.wide-cta { margin-top: 36px; padding: 28px 30px; display: flex; justify-content: space-between; align-items: center; gap: 24px; border: 1px solid #4a2743; border-radius: 18px; background: radial-gradient(circle at 80% 20%, rgba(255,64,135,0.15), transparent 30%), linear-gradient(135deg, #0a1324, #0b0b1e); }
.wide-cta h2 { font-size: 28px; margin: 0 0 8px; overflow-wrap: break-word; word-wrap: break-word; }
.wide-cta p { color: var(--muted); margin: 0; }

/* ── Stat grid ────────────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #08111f; text-align: center; }
.stat-card strong { display: block; font-size: 30px; }
.stat-card span { color: var(--muted); font-size: 14px; }

/* ── Feature list ─────────────────────────────────────────── */
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.feature-card { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #08111f; }
.feature-card .icon { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,31,109,0.11); display: grid; place-items: center; color: #ff4d88; font-weight: 800; margin-bottom: 14px; }
.feature-card h3 { font-size: 19px; margin: 0 0 8px; }
.feature-card p { color: var(--muted); font-size: 15px; margin: 0; }

/* ── Two column layout ────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }

/* ── Paywall banner ──────────────────────────────────────── */
.paywall-banner {
    margin-top: 24px; padding: 32px; text-align: center; border: 1px solid var(--line);
    border-radius: 16px; background: linear-gradient(180deg, #0f1724, #0a1018);
}
.paywall-banner h3 { font-size: 22px; margin: 0 0 8px; }
.paywall-banner p { color: var(--muted); margin: 0 0 16px; }

/* ── Blog detail layout ──────────────────────────────────── */
.blog-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
.blog-detail-grid .img-fluid { max-height: 360px; width: 100%; object-fit: cover; }
@media (max-width: 991.98px) { .blog-detail-grid { grid-template-columns: 1fr; } }

/* ── Article grid (blog) ──────────────────────────────────── */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.article-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #08111f; }
.article-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-card .body { padding: 18px; }
.article-card h3 { font-size: 20px; line-height: 1.3; margin: 8px 0; overflow-wrap: break-word; word-wrap: break-word; }
.article-card p { color: var(--muted); font-size: 14px; }
.article-card .tag { color: #ff5d93; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; }

/* ── Reading column (long-form content) ───────────────────── */
.reading-column { max-width: 740px; margin: 0 auto; }
.reading-column h2 { margin: 32px 0 12px; }
.reading-column h3 { margin: 24px 0 10px; }
.reading-column p { color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.reading-column ul, .reading-column ol { color: var(--muted); margin-bottom: 16px; padding-left: 24px; }
.reading-column li { margin-bottom: 8px; }
.reading-column a { color: #ff5d93; }
.reading-column img { border-radius: var(--radius-md); margin: 24px 0; }

/* ── Article editorial layout ────────────────────────────── */
.article-header { padding-top: 0; }
.article-header-inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}
.article-title {
    font-size: 42px;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin: 12px 0 18px;
}
.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--muted);
    font-size: 14px;
}
.article-meta p { margin: 0; }
.article-hero-image {
    padding: 0 0 var(--section-y);
}
.article-cover {
    display: block;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-lg, 24px);
}
.blog-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 40px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}
@media (max-width: 991.98px) {
    .blog-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
    .article-title { font-size: 32px; letter-spacing: -0.8px; }
    .article-cover { border-radius: var(--radius-md, 16px); }
}

/* ── Pricing ──────────────────────────────────────────────── */
.pricing-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.pricing-card { width: calc(25% - 11px); position: relative; padding: 24px 20px; border: 1px solid var(--line); border-radius: 16px; background: #08111f; display: flex; flex-direction: column; min-height: 420px; }
.pricing-card.featured { border-color: #ff3c7f; box-shadow: 0 0 0 1px rgba(255,60,127,0.2), 0 20px 50px rgba(255,31,109,0.12); }
.pricing-card .popular { position: absolute; right: 10px; top: -12px; font-size: 11px; font-weight: 800; padding: 5px 10px; border-radius: 999px; background: linear-gradient(90deg, #f01364, #ff4e7b); color: #fff; z-index: 1; }
.pricing-card .current-badge { position: absolute; left: 10px; top: -12px; font-size: 11px; font-weight: 800; padding: 5px 10px; border-radius: 999px; background: var(--green); color: #fff; z-index: 1; }
.pricing-card h3 { font-size: 21px; margin: 0; }
.pricing-price { font-size: 34px; font-weight: 800; margin: 18px 0 4px; }
.pricing-card p { color: var(--muted); font-size: 14px; }
.pricing-card ul { list-style: none; padding: 0; margin: 18px 0 22px; }
.pricing-card li { margin: 10px 0; font-size: 14px; }
.pricing-card li::before { content: '✓'; color: #41d99d; margin-right: 8px; }
.pricing-card .btn-gradient, .pricing-card .btn-outline, .pricing-card > form, .pricing-card > a:last-child, .pricing-card > button:last-child, .pricing-card .current-plan-label { margin-top: auto; }
.pricing-card.is-current { border-color: var(--green); box-shadow: 0 0 0 1px rgba(62,217,154,0.2); }
.current-plan-label { text-align: center; cursor: default; border-color: var(--green); color: var(--green); }
.pricing-card .btn-gradient, .pricing-card .btn-outline { width: 100%; }
.pricing-card > form { width: 100%; }
.pricing-card > form .btn-gradient, .pricing-card > form .btn-outline { width: 100%; }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; background: #08111f; overflow: hidden; }
.faq-q { width: 100%; border: 0; background: transparent; color: #fff; text-align: left; padding: 17px 18px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: var(--fs-base); }
.faq-a { display: none; padding: 0 18px 18px; color: var(--muted); font-size: 15px; }
.faq-item.open .faq-a { display: block; }
.faq-toggle::after { content: '+'; }
.faq-item.open .faq-toggle::after { content: '\2212'; }

/* ── Contact ──────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; }
.form-stack { display: grid; gap: 14px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-method { padding: 18px; border-bottom: 1px solid var(--line); }
.contact-method:last-child { border-bottom: 0; }
.contact-method strong { display: block; margin-bottom: 3px; }
.contact-method span { color: var(--muted); font-size: 14px; }

/* ── Login page ───────────────────────────────────────────── */
.login-page { min-height: calc(100vh - var(--header-height)); display: grid; place-items: center; padding: 56px 0; }
.auth-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
    overflow: hidden;
}
.auth-split-brand { padding: 20px 0; }
.auth-split-brand h2 { font-size: 36px; line-height: 1.1; letter-spacing: -1px; margin: 0 0 14px; }
.auth-split-brand p { font-size: 17px; }
.trust-strip-mini { display: flex; flex-direction: column; gap: 8px; }
.trust-strip-mini span { color: var(--muted); font-size: 14px; }
.trust-strip-mini span::before { content: '✓'; color: #ff4e88; margin-right: 8px; font-weight: 800; }
@media (max-width: 767.98px) {
    .auth-split { grid-template-columns: 1fr; gap: 24px; }
    .auth-split-brand { display: none; }
}
.auth-card { width: min(460px, 100%); padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: #08111f; }
.auth-card h1 { font-size: 32px; margin: 0 0 8px; }
.auth-card > p { color: var(--muted); margin: 0 0 24px; }
.full-btn { width: 100%; }
.check-row { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; }
.check-row label { display: flex; align-items: center; gap: 7px; }
.check-row a { color: #ff5d93; }

/* ── Expert grid (instructors / about) ────────────────────── */
.expert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.expert-card { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #08111f; }
.expert-card img { width: 100%; height: 215px; object-fit: cover; }
.expert-card .expert-placeholder { width: 100%; height: 215px; display: grid; place-items: center; font-size: 48px; font-weight: 800; color: rgba(255,255,255,0.5); background: linear-gradient(135deg, rgba(255,31,109,0.2), rgba(255,122,47,0.15)); }
.expert-card > div { padding: 16px; }
.expert-card h3 { font-size: 19px; margin: 0 0 6px; }
.expert-card h3 a { color: inherit; text-decoration: none; }
.expert-card h3 a:hover { color: #ff5d93; }
.expert-card p { color: #b7c0cc; font-size: 14px; line-height: 1.5; margin: 0 0 10px; }
.expert-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.expert-tags span { color: #ff5a91; font-size: 12px; font-weight: 650; padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(255,90,145,0.2); background: rgba(255,31,109,0.06); }

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb-nav { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb-nav a { color: var(--muted); }
.breadcrumb-nav a:hover { color: #ff5d93; }
.breadcrumb-sep { color: var(--subtle); }

/* ── Section heading row ──────────────────────────────────── */
.section-heading-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 16px; }
.section-heading-row h2 { margin-bottom: 0; }
.text-link { color: #ff568a; text-decoration: none; font-size: 14px; white-space: nowrap; }
.text-link:hover { color: #ff82a8; }

/* ── Pill badges ─────────────────────────────────────────── */
.pill-badge { display: inline-flex; padding: 4px 7px; border-radius: 999px; background: #ed2666; color: #fff; font-size: 9px; font-weight: 800; letter-spacing: 0.04em; }
.pill-badge--purple { background: #7f3dd2; }
.pill-badge--orange { background: #e87328; }

/* ── Expert profile page ─────────────────────────────────── */
.expert-profile-page { background: radial-gradient(circle at 60% 12%, rgba(255, 31, 109, 0.06), transparent 26%), var(--bg); }

.expert-breadcrumbs { padding: 18px 0 0; }
.expert-breadcrumbs ol { list-style: none; display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; color: var(--muted); font-size: 14px; }
.expert-breadcrumbs li { display: inline-flex; align-items: center; gap: 10px; }
.expert-breadcrumbs li + li::before { content: '\203A'; color: #5f6b7a; }
.expert-breadcrumbs a { color: #b5beca; text-decoration: none; }
.expert-breadcrumbs a:hover { color: #fff; }
.expert-breadcrumbs [aria-current=page] { color: #ff4b82; }

.expert-hero { padding-top: 34px; }
.expert-hero-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr) 280px; gap: 34px; align-items: stretch; }
.expert-portrait-card { margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); background: #111b28; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28); }
.expert-portrait-link { display: block; width: 100%; height: 100%; }
.expert-portrait-card img { display: block; width: 100%; height: 100%; min-height: 430px; object-fit: cover; object-position: center top; }
.expert-portrait-card .expert-placeholder { width: 100%; min-height: 430px; display: grid; place-items: center; font-size: 72px; font-weight: 800; color: rgba(255, 255, 255, 0.5); background: linear-gradient(135deg, rgba(255, 31, 109, 0.2), rgba(255, 122, 47, 0.15)); }
.expert-hero-copy { padding: 10px 0 6px; }
.expert-hero-copy h1 { font-size: 48px; line-height: 1.04; letter-spacing: -1.7px; margin: 6px 0 18px; }
.expert-lead { font-size: 17px; line-height: 1.65; color: #c1c8d2; max-width: 720px; margin: 0 0 26px; }

.expert-specialties { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 28px; }
.expert-specialty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 12px 8px; color: #dbe1e9; text-decoration: none; border-radius: 12px; border: 1px solid transparent; transition: 0.18s ease; }
.expert-specialty:hover, .expert-specialty:focus-visible { border-color: #39233a; background: rgba(255, 31, 109, 0.05); color: #fff; }
.expert-specialty-icon { font-size: 28px; line-height: 1; color: #ff4c82; }
.expert-specialty span:last-child { font-size: 13px; }

.expert-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 2px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.expert-stat { padding: 18px 14px 18px 0; display: grid; gap: 3px; }
.expert-stat + .expert-stat { padding-left: 18px; border-left: 1px solid var(--line); }
.expert-stat strong { font-size: 28px; line-height: 1.1; }
.expert-stat span { font-size: 13px; color: var(--muted); }

.expert-primary-action { margin-top: 22px; }
.expert-primary-action .btn-gradient { min-width: 220px; justify-content: center; }

.expert-about-card { border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, #0b1420, #08101b); padding: 26px 24px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18); }
.expert-about-label { display: block; font-size: 12px; letter-spacing: 0.08em; color: #ff4b82; font-weight: 800; margin-bottom: 12px; }
.expert-about-card h2 { font-size: 22px; line-height: 1.25; margin: 0 0 14px; }
.expert-about-bio { font-size: 15px; line-height: 1.65; color: #c3cbd5; margin-bottom: 14px; }
.expert-about-link { display: inline-block; margin-top: 16px; }
.expert-credentials { display: grid; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.expert-credentials span { font-size: 13px; color: #aeb8c6; padding-left: 18px; position: relative; }
.expert-credentials span::before { content: '\2713'; position: absolute; left: 0; color: #ff4b82; }

.expert-content-section { padding-top: 16px; }
.expert-content-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr) 270px; gap: 28px; align-items: start; }
.expert-content-grid.no-expertise { grid-template-columns: minmax(0, 1fr); }
.expert-expertise-panel { padding-right: 22px; border-right: 1px solid var(--line); }
.expert-expertise-panel h2,
.expert-featured h2,
.expert-reviews h2 { font-size: 25px; margin: 4px 0 18px; }

.expertise-list { display: grid; gap: 6px; }
.expertise-list a { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; color: #dce2ea; text-decoration: none; font-size: 14px; line-height: 1.35; }
.expertise-list a span { width: 20px; height: 20px; border-radius: 50%; border: 1px solid #ff3f79; color: #ff4c82; display: grid; place-items: center; font-size: 11px; flex: 0 0 20px; }
.expertise-list a:hover, .expertise-list a:focus-visible { background: #0c1623; color: #fff; }

.expert-course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.expert-course-card { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #08111f; min-width: 0; }
.expert-course-card > img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.expert-course-body { padding: 15px; }
.expert-course-body h3 { font-size: 18px; line-height: 1.2; margin: 10px 0 8px; }
.expert-course-body h3 a { color: inherit; text-decoration: none; }
.expert-course-body h3 a:hover { color: #ff5d93; }
.expert-course-body p { font-size: 13px; line-height: 1.5; color: var(--muted); min-height: 58px; }
.expert-course-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px; color: #b4bdc9; margin-top: 12px; }
.expert-course-rating { display: flex; gap: 6px; align-items: center; margin-top: 11px; font-size: 12px; }
.expert-course-rating strong { color: #ffb24d; }
.expert-course-rating span { color: #8793a3; }

.expert-reviews { display: grid; gap: 12px; }
.expert-review-card { border: 1px solid var(--line); border-radius: 14px; background: #0a131f; padding: 18px; }
.expert-review-card .stars { color: #ff4c82; letter-spacing: 2px; font-size: 13px; }
.expert-review-card blockquote { margin: 11px 0 14px; color: #e1e5eb; font-size: 14px; line-height: 1.55; }
.expert-review-card footer { color: #8d99a8; font-size: 12px; }

.expert-newsletter-section { padding-top: 18px; }
.expert-newsletter-card { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(340px, 460px); align-items: center; gap: 22px; border: 1px solid rgba(255, 52, 118, 0.3); border-radius: 18px; padding: 24px 28px; background: radial-gradient(circle at 90% 50%, rgba(255, 101, 47, 0.16), transparent 28%), linear-gradient(90deg, #291020, #15101c 58%, #12101a); }
.expert-newsletter-icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 31, 109, 0.12); border: 1px solid rgba(255, 66, 128, 0.3); color: #ff6394; font-size: 23px; }
.expert-newsletter-card h2 { font-size: 23px; margin: 0 0 4px; }
.expert-newsletter-card p { margin: 0; color: #aeb8c6; font-size: 14px; }
.expert-newsletter-form { display: grid; grid-template-columns: 1fr auto; gap: 0; }
.expert-newsletter-form input { height: 50px; border-radius: 10px 0 0 10px; border: 1px solid #3b263c; border-right: 0; background: #15111b; color: #fff; padding: 0 14px; outline: none; }
.expert-newsletter-form input:focus { border-color: #ff3476; box-shadow: 0 0 0 3px rgba(255, 31, 109, 0.1); }
.expert-newsletter-form button { height: 50px; border: 0; border-radius: 0 10px 10px 0; padding: 0 26px; color: #fff; font-weight: 800; background: linear-gradient(90deg, #f51266, #ff7a2f); cursor: pointer; }
.expert-newsletter-form .form-feedback,
.expert-newsletter-form .form-error,
.expert-newsletter-form .is-error + .form-error { grid-column: 1 / -1; margin-top: 8px; font-size: 12px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1199.98px) {
    .expert-hero-grid { grid-template-columns: 300px minmax(0, 1fr); }
    .expert-about-card { grid-column: 1 / -1; }
    .expert-content-grid { grid-template-columns: 210px minmax(0, 1fr); }
    .expert-reviews { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
    .expert-reviews > .section-heading-row { grid-column: 1 / -1; }
    .expert-newsletter-card { grid-template-columns: 56px 1fr; }
    .expert-newsletter-form { grid-column: 1 / -1; }
}

@media (max-width: 991.98px) {
    .page-grid, .article-grid, .feature-list, .expert-grid { grid-template-columns: repeat(2, 1fr); }
    .two-col, .contact-grid { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-card { width: calc(50% - 7px); }
    .expert-hero-grid { grid-template-columns: 1fr 1.2fr; gap: 24px; }
    .expert-portrait-card img { min-height: 360px; }
    .expert-specialties { grid-template-columns: repeat(2, 1fr); }
    .expert-content-grid { grid-template-columns: 1fr; }
    .expert-expertise-panel { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 20px; padding-right: 0; }
    .expertise-list { grid-template-columns: 1fr 1fr; }
    .expert-course-grid { grid-template-columns: repeat(2, 1fr); }
    .expert-course-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 767.98px) {
    .page-hero h1 { font-size: 40px; }
    .page-hero p { font-size: 16px; }
    .page-grid, .article-grid, .feature-list, .expert-grid { grid-template-columns: 1fr; }
    .pricing-card { width: 100%; }
    .form-row-2 { grid-template-columns: 1fr; }
    .wide-cta { align-items: flex-start; flex-direction: column; padding: 24px 22px; }
    .wide-cta h2 { font-size: 24px; }
    .wide-cta .btn-gradient { width: 100%; }
    .filter-chip { min-height: 44px; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .expert-breadcrumbs { padding-top: 14px; }
    .expert-hero { padding-top: 24px; }
    .expert-hero-grid { grid-template-columns: 1fr; }
    .expert-portrait-card { max-width: 440px; }
    .expert-portrait-card img { min-height: 0; aspect-ratio: 1 / 1; object-position: center 15%; }
    .expert-portrait-card .expert-placeholder { min-height: 0; aspect-ratio: 1 / 1; }
    .expert-hero-copy h1 { font-size: 39px; }
    .expert-lead { font-size: 16px; }
    .expert-stats { grid-template-columns: 1fr; }
    .expert-stat + .expert-stat { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
    .expertise-list { grid-template-columns: 1fr; }
    .expert-course-grid { grid-template-columns: 1fr; }
    .expert-course-card:last-child { grid-column: auto; }
    .expert-reviews { grid-template-columns: 1fr; }
    .expert-newsletter-card { grid-template-columns: 1fr; padding: 22px; }
    .expert-newsletter-form { grid-template-columns: 1fr; }
    .expert-newsletter-form input { border-radius: 10px; border-right: 1px solid #3b263c; }
    .expert-newsletter-form button { border-radius: 10px; margin-top: 10px; }
}

@media (max-width: 479px) {
    .stat-grid { grid-template-columns: 1fr; }
    .page-hero h1 { font-size: 34px; }
}
