/* Public detail pages share the Bootstrap portal's spacing, cards and controls. */
.fe-page { background: #fff; color: var(--ink); }
.fe-page-heading { background: #f7f5fa; border-color: var(--line) !important; }
.fe-page h1 { font-size: clamp(1.9rem, 3.2vw, 2.65rem); line-height: 1.18; letter-spacing: -.035em; font-weight: 650; max-width: 760px; }
.fe-page h2, .fe-page h3 { color: var(--ink); font-weight: 650; letter-spacing: -.025em; }
.fe-page .h3 { font-size: clamp(1.5rem, 2.25vw, 1.85rem); }
.fe-page .h4 { font-size: 1.4rem; }
.fe-page .h5 { font-size: 1.1rem; line-height: 1.4; }
.fe-page p { line-height: 1.7; }
.fe-page .small { font-size: .875rem; }
.fe-page .text-muted { color: var(--muted) !important; }
.fe-kicker { color: var(--brand); font-size: .68rem; font-weight: 700; letter-spacing: .1em; margin-bottom: .75rem; line-height: 1.5; }
.fe-lead { font-size: 1.05rem; line-height: 1.75; color: var(--muted); }
.fe-page .breadcrumb { font-size: .8rem; --bs-breadcrumb-divider-color: #a1a5ad; }
.fe-page .breadcrumb-item { overflow-wrap: anywhere; }
.fe-page .breadcrumb-item.active { color: var(--muted); }
.fe-page a:not(.btn):hover { text-decoration: underline; text-underline-offset: 3px; }
.fe-inline-link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--brand); }
.fe-inline-link .icon { width: 16px; height: 16px; }
.fe-number { display: inline-flex; justify-content: center; align-items: center; width: 36px; height: 36px; background: #f0ebf5; color: var(--brand); border-radius: 9px; font-size: .75rem; font-weight: 700; }
.fe-session-cover, .fe-about-cover { display: block; width: 100%; height: auto; max-width: 420px; margin-inline: auto; }
.fe-service-card { transition: border-color .2s, box-shadow .2s; }
.fe-service-card:hover { border-color: #c9bdd7; box-shadow: 0 3px 14px #26334207; }
.fe-service-content { min-width: 0; flex: 1; }
.fe-service-action { min-height: 44px; }
.fe-service-card[data-selected="true"] { border-color: #a98abd; background: #fcf9ff; }
.fe-service-card[data-selected="true"] .fe-number { background: var(--brand); color: #fff; }
.fe-service-selected { display: inline-flex; align-items: center; gap: .35rem; color: var(--brand-dark); font-size: .72rem; font-weight: 650; margin-bottom: .6rem; }
.fe-service-selected[hidden], .fe-booking-selection[hidden] { display: none; }
.fe-service-selected .icon { width: 14px; height: 14px; }
.fe-soft-note { background: #f7f8fa; border: 1px solid var(--line); border-radius: 12px; }
.fe-booking-column { scroll-margin-top: 16px; }
.fe-booking-panel { box-shadow: 0 8px 28px #26334208; }
.fe-booking-selection { margin: 0 0 1.25rem; padding: .75rem 1rem; border-left: 3px solid #a98abd; border-radius: 0 8px 8px 0; background: #f7f2fa; color: var(--brand-dark); font-size: .82rem; overflow-wrap: anywhere; }
.fe-booking-selection strong { display: block; font-weight: 650; }
.fe-booking-errors { font-size: .82rem; }
.fe-booking-errors a { display: inline-block; color: inherit; padding-block: .2rem; }
.fe-page .form-label { font-size: .8rem; font-weight: 600; margin-bottom: .45rem; }
.fe-page .form-control, .fe-page .form-select { font-size: .875rem; min-height: 45px; }
.fe-page .fe-form-note { font-size: .74rem; line-height: 1.6; }
.fe-author-name { font-size: 1.05rem; font-weight: 650; color: var(--ink); }
.fe-author-name span { display: block; margin-top: .3rem; color: var(--muted); font-size: .8rem; font-weight: 400; }
.fe-story-copy > p:not(.fe-lead) { font-size: .95rem; color: var(--muted); margin-bottom: 1.25rem; }
.fe-quote { border-left: 3px solid #c8b8d8; margin: 1.75rem 0; padding: .5rem 0 .5rem 1.5rem; font-size: 1.08rem; color: var(--brand-dark); line-height: 1.8; }
.fe-light-section { background: #f7f8fa; border-color: var(--line) !important; }
.fe-certificate-facts dt { font-size: .65rem; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.fe-certificate-facts dd { font-size: .95rem; color: var(--ink); font-weight: 600; margin-top: .45rem; }
.fe-certificate-preview { width: min(100%, 260px); margin-inline: auto; padding: 8px; border: 1px solid var(--line); border-radius: 5px; background: #fff; box-shadow: 0 5px 20px #26334209; }
.fe-certificate-preview img { display: block; height: auto; }
.fe-cta-panel { border-radius: 14px; background: #f4eff8; border: 1px solid #e8e0ef; }
.fe-course-title { overflow-wrap: anywhere; }
.fe-fact { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .7rem; font-size: .75rem; color: #596675; background: #f7f8fa; border: 1px solid var(--line); border-radius: 8px; }
.fe-fact .icon { width: 16px; height: 16px; }
.fe-chapter { overflow: hidden; }
.fe-chapter > summary { padding: 1rem 1.15rem; cursor: pointer; list-style: none; background: #fff; border: 0; font-size: .9rem; font-weight: 600; line-height: 1.5; }
.fe-chapter > summary::-webkit-details-marker { display: none; }
.fe-chapter > summary small { font-size: .73rem; font-weight: 400; }
.fe-chapter[open] > summary { border-bottom: 1px solid var(--line); background: #faf9fc; }
.fe-chapter > summary:hover { background: #faf9fc; }
.fe-chapter-chevron { transition: transform .2s; width: 17px; height: 17px; }
.fe-chapter[open] .fe-chapter-chevron { transform: rotate(180deg); }
.fe-chapter .list-group-item { font-size: .83rem; line-height: 1.5; padding-inline: 1.2rem; border-color: #edf0f2; color: #566171; }
.fe-chapter .list-group-item > span { min-width: 0; overflow-wrap: anywhere; }
.fe-chapter .list-group-item .icon { width: 16px; height: 16px; }
.fe-chapter .list-group-item:last-child { border-bottom: 0; }
.fe-teacher-photo { display: block; flex: 0 0 auto; width: 88px; height: 88px; object-fit: contain; background: #f7f5fa; border-radius: 12px; }
.fe-page .fe-course-cover { aspect-ratio: auto; background: #f0edf4; border-bottom: 1px solid var(--line); }
.fe-page .fe-course-cover > img { width: 100%; height: auto; display: block; }
.fe-page .fe-course-cover-fallback { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; background: #f2edf7; color: var(--brand); }
.fe-page .fe-course-cover-fallback svg { width: 80px; height: 80px; }
.fe-page .fe-course-cover-fallback span { font-size: .8rem; font-weight: 600; }
.fe-enrollment-card { box-shadow: 0 6px 22px #26334208; }
.fe-enrollment-price { color: var(--ink); font-weight: 700; font-size: 1.35rem; line-height: 1.4 !important; letter-spacing: -.025em; }
.fe-enrollment-mobile { border-top: 3px solid #a98abd; background: #fcfaff; }
.fe-course-question { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; margin-top: .65rem; line-height: 1.6; }
.fe-enrollment-features { display: grid; gap: .8rem; font-size: .76rem; color: var(--muted); }
.fe-enrollment-features li { display: flex; align-items: center; gap: .65rem; }
.fe-enrollment-features .icon { color: var(--brand); width: 16px; height: 16px; }
.fe-checkout-image { display: block; max-height: 360px; width: 100%; object-fit: contain; background: #f7f5fa; }
.fe-checkout-summary p, .fe-checkout-summary dl { font-size: .9rem; }
.fe-checkout-success { min-height: 60vh; }
.fe-result-icon { width: 64px; height: 64px; border-radius: 50%; background: #f0ebf5; color: var(--brand); display: grid; place-items: center; }
.fe-result-icon .icon { width: 28px; height: 28px; }
/* Student forms keep the same field names and server validation as the academy. */
.fe-auth-section { min-height: 66vh; }
.fe-auth-shell { max-width: 1000px; flex-direction: row; border-radius: 14px; box-shadow: 0 6px 28px #26334206; }
.fe-auth-aside { display: flex; flex-direction: column; background: #f3eef8; border-right: 1px solid #e8e0ef; }
.fe-auth-aside .auth-story-top { color: var(--brand); font-size: .64rem; letter-spacing: .1em; font-weight: 700; }
.fe-auth-aside h2 { font: 650 2rem/1.25 var(--bs-body-font-family); color: var(--ink); letter-spacing: -.04em; margin: 1.5rem 0 1rem; }
.fe-auth-aside h2 em { color: var(--brand); font-style: normal; }
.fe-auth-aside .auth-story-description { font-size: .9rem; color: var(--muted); line-height: 1.8; }
.fe-auth-aside .auth-story-bottom { display: flex; gap: .75rem; align-items: center; border-top: 1px solid #e1d7eb; padding-top: 1.5rem; margin-top: auto; }
.fe-auth-aside .auth-story-seal { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: #fff8; color: var(--brand); flex-shrink: 0; }
.fe-auth-aside .auth-story-bottom p { font-size: .75rem; line-height: 1.7; color: var(--muted); margin: 0; }
.fe-auth-aside .auth-story-bottom strong, .fe-auth-aside .auth-story-bottom p > span { display: block; }
.fe-auth-aside .auth-story-bottom strong { color: var(--ink); font-weight: 600; }
.fe-auth-form-wrap { width: 100%; max-width: 400px; }
.fe-auth-form-wrap .auth-kicker { font-size: .64rem; color: var(--brand); letter-spacing: .1em; font-weight: 700; }
.fe-auth-form-wrap h1 { font: 650 1.8rem/1.25 var(--bs-body-font-family); color: var(--ink); letter-spacing: -.035em; margin: .85rem 0 .75rem; }
.fe-auth-form-wrap .auth-intro { color: var(--muted); font-size: .875rem; line-height: 1.7; margin-bottom: 1.65rem; }
.fe-auth-form-wrap .auth-field { margin-bottom: 1.1rem; }
.fe-auth-form-wrap .form-label { display: block; color: var(--ink); font-size: .8rem; font-weight: 600; margin-bottom: .5rem; }
.fe-auth-form-wrap .form-control { min-height: 46px; font-size: .875rem; }
.fe-auth-form-wrap .auth-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.fe-auth-form-wrap .auth-label-row > a { font-size: .72rem; text-align: right; }
.fe-auth-form-wrap .auth-switch { font-size: .8rem; margin: 1.5rem 0 0; color: var(--muted); text-align: center; }
.fe-auth-form-wrap .auth-switch a { font-weight: 600; }
.fe-auth-form-wrap .auth-field-help, .fe-auth-form-wrap .auth-field-error { margin: .4rem 0 0; font-size: .72rem; line-height: 1.6; color: var(--muted); }
.fe-auth-form-wrap .auth-field-error { color: #a33448; }
.fe-auth-form-wrap .auth-error-summary { display: flex; gap: .6rem; align-items: flex-start; padding: .9rem; border: 1px solid #efcdd3; background: #fff4f5; color: #a33448; border-radius: 9px; font-size: .82rem; margin-bottom: 1.3rem; }
.fe-auth-form-wrap .auth-security-note { display: flex; gap: .4rem; align-items: center; justify-content: center; font-size: .72rem; color: var(--muted); margin: 1.1rem 0 0; }
.fe-auth-form-wrap .auth-security-note .icon { width: 13px; height: 13px; }
.fe-auth-form-wrap .auth-form-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: #f0ebf5; color: var(--brand); margin: 1.25rem 0; }
@media (min-width: 992px) {
 .fe-booking-column, .fe-enrollment-column { position: sticky; top: 100px; }
}
@media (max-width: 991.98px) {
 .fe-auth-aside { border-right: 0; border-bottom: 1px solid #e8e0ef; }
 .fe-auth-aside h2 { margin: .8rem 0; font-size: 1.6rem; }
 .fe-auth-aside h2 br { display: none; }
 .fe-auth-aside .auth-story-description { margin-bottom: 0; }
 .fe-auth-aside .auth-story-bottom { display: none; }
 .fe-session-cover { max-width: 340px; }
 .fe-about-cover { max-width: 400px; }
 .fe-enrollment-card { max-width: 480px; margin-inline: auto; }
}
@media (max-width: 575.98px) {
 .fe-page .form-control, .fe-page .form-select { font-size: 1rem; }
 .fe-page h1 { font-size: 1.9rem; }
 .fe-lead { font-size: .95rem; }
 .fe-service-card .card-body { padding: 1.15rem !important; }
 .fe-number { width: 30px; height: 30px; font-size: .68rem; border-radius: 7px; }
 .fe-chapter > summary { padding: .9rem; gap: .7rem !important; font-size: .83rem; }
 .fe-chapter .list-group-item { padding-inline: .9rem; gap: .65rem !important; font-size: .78rem; }
 .fe-teacher-photo { width: 64px; height: 64px; }
 .fe-course-teacher .card-body { padding: 1.1rem !important; }
 .fe-certificate-preview { max-width: 220px; }
 .fe-auth-form-wrap h1 { font-size: 1.6rem; }
 .fe-auth-form-wrap .auth-label-row > a { font-size: .68rem; }
}
