/* Styles for pieces added during the Django migration. */

/* Breadcrumb trail (above the footer; also described in JSON-LD) */
.breadcrumb-bar { background: #f4f6fa; border-top: 1px solid #e3e7ef; font-size: .85rem; padding: .7rem 0; }
.breadcrumb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; color: #5b6472; }
.breadcrumb-list li + li::before { content: "\203A"; margin-right: .35rem; color: #9aa3b2; }
.breadcrumb-list a { color: #1f4e8c; text-decoration: none; }
.breadcrumb-list a:hover { text-decoration: underline; }
.breadcrumb-list li[aria-current="page"] { color: #222; font-weight: 600; }

/* Address block in the footer */
.footer-address { font-style: normal; margin: 0; }
.footer-address p { display: flex; gap: 10px; align-items: flex-start; }
.footer-address i { margin-top: 5px; color: #c8102e; width: 14px; text-align: center; flex: 0 0 14px; }

/* Visually hidden spam-trap field used by every form */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Form result page (replaces the old PHP alert pages) */
.form-result { min-height: 70vh; display: flex; justify-content: center; align-items: center; padding: 9rem 1rem 4rem;
  background: linear-gradient(135deg, #11143A, #2c3e50); }
.form-result-card { background: #fff; padding: 3rem; border-radius: 16px; text-align: center; max-width: 520px; width: 100%;
  box-shadow: 0 25px 50px rgba(0,0,0,.3); border-left: 6px solid #00A8E8; }
.form-result-card.is-error { border-left-color: #dc3545; }
.form-result-icon { font-size: 3.5rem; margin-bottom: 1rem; color: #00A8E8; }
.is-error .form-result-icon { color: #dc3545; }
.form-result-card h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 1rem; }
.form-result-card p { color: #555; line-height: 1.6; font-size: 1.05rem; }
.form-result-card ul { text-align: left; color: #b02a37; margin: 1rem auto 1.5rem; max-width: 380px; }
.form-result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.form-result-actions a { padding: 12px 28px; border-radius: 8px; font-weight: 600; text-decoration: none; color: #fff; background: var(--secondary, #00A8E8); }
.form-result-actions a.secondary { background: #6c757d; }

/* "Visit us" address line used on several pages */
.nap-address { font-style: normal; }

/* Footer course links: a full-width band, list flows into columns */

/* ===== Shared layout for the new pages (fees, FAQs, guides, stories, profile) ===== */
.pg-section { padding: 3.5rem 0; }
.pg-section.alt { background: #f6f8fc; }
.pg-section h2 { color: #11143A; margin-bottom: 1.25rem; }
.pg-note { background: #eef5ff; border-left: 4px solid #2c5aa0; padding: .9rem 1.1rem; border-radius: 6px; font-size: .95rem; }
.pg-note.warn { background: #fff6e5; border-left-color: #d98a00; }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 1.25rem; }
.chip-row a { background: rgba(255,255,255,.14); color: #fff; padding: .4rem .9rem; border-radius: 999px; text-decoration: none; font-size: .9rem; }
.chip-row a:hover { background: rgba(255,255,255,.28); }

/* ===== Page banner: the same on every page except the home page (copy of the About Us banner) =====
   Markup:  <section class="page-hero" style="--hero-img: url('...');">
              <div class="page-hero-content"><h1>..</h1><p>..</p><a class="btn-tour">..</a></div></section>
   Add .page-hero--compact for pages with very long titles. Do not write per-page banner CSS. */
.page-hero {
    position: relative; display: flex; align-items: center; min-height: 70vh;
    padding: 9rem 0 4rem;               /* the top padding keeps the title clear of the navbar that overlays the banner */
    color: #fff;
    background: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .6)),
                var(--hero-img, none) no-repeat center / cover,
                #11143A;
}
.page-hero-content { position: relative; z-index: 2; margin-left: 8%; margin-right: 5%; max-width: 800px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 700; line-height: 1.15; margin-bottom: 1.5rem; overflow-wrap: break-word; }
.page-hero p { font-size: 1.2rem; line-height: 1.6; margin-bottom: 1.5rem; }
.page-hero .btn-tour { display: inline-block; text-decoration: none; cursor: pointer; }
.page-hero .btn-tour:hover { color: #fff; }
.page-hero .btn-tour-outline { background: transparent; border: 2px solid #fff; margin-left: .5rem; }
.page-hero .btn-tour-outline:hover { background: rgba(255, 255, 255, .15); }
.page-hero .chip-row { justify-content: flex-start; }
.page-hero--compact { min-height: 50vh; }
.page-hero--compact h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
@media (max-width: 768px) {
    .page-hero-content { margin-left: 5%; text-align: center; }
    .page-hero .chip-row { justify-content: center; }
    .page-hero .btn-tour-outline { margin: .5rem 0 0; }
}

/* Fee tables */
.fee-block { margin-bottom: 3.5rem; scroll-margin-top: 110px; }
.fee-scroll { overflow-x: auto; border: 1px solid #e3e7ef; border-radius: 10px; background: #fff; }
.fee-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .95rem; }
.fee-table th, .fee-table td { padding: .65rem .85rem; border-bottom: 1px solid #edf0f6; text-align: right; white-space: nowrap; }
.fee-table th:first-child, .fee-table td:first-child { text-align: left; white-space: normal; position: sticky; left: 0; background: #fff; }
.fee-table thead th { background: #11143A; color: #fff; }
.fee-table thead th:first-child { background: #11143A; }
.fee-table tr.is-total td, .fee-table tr.is-total th { background: #eef5ff; font-weight: 700; }
.fee-table.packages td, .fee-table.packages th { text-align: left; white-space: normal; }
.fee-table.packages td:nth-child(3) { white-space: nowrap; }
.pay-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pay-card, .cx-card, .story-card, .guide-card { background: #fff; border: 1px solid #e3e7ef; border-radius: 12px; padding: 1.4rem; }
.pay-card h3, .cx-card h3 { font-size: 1.15rem; color: #11143A; }
.pay-card dl { margin: 0; } .pay-card dt { font-weight: 600; color: #5b6472; font-size: .85rem; margin-top: .6rem; }
.pay-card dd { margin: 0; font-size: 1.05rem; word-break: break-all; }

/* Extras on course pages */
.cx-section { padding: 3rem 0; } .cx-section.alt { background: #f6f8fc; }
.cx-section h2 { color: #11143A; margin-bottom: 1rem; }
.cx-fee-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: 1rem; }
.cx-big { font-size: 1.6rem; font-weight: 700; color: #2c5aa0; margin: .25rem 0; } .cx-big small { display: block; font-size: .85rem; font-weight: 400; color: #5b6472; }
.cx-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.cx-btn { display: inline-block; padding: .65rem 1.3rem; border: 2px solid #2c5aa0; border-radius: 8px; font-weight: 600; text-decoration: none; background: #2c5aa0; color: #fff; }
.cx-btn.outline { background: transparent; color: #2c5aa0; border: 2px solid #2c5aa0; }
.cx-btn:hover { opacity: .9; color: #fff; } .cx-btn.outline:hover { color: #2c5aa0; }
.cx-list { columns: 2 260px; padding-left: 1.2rem; } .cx-list li { margin-bottom: .45rem; break-inside: avoid; }

/* FAQs: one accordion look on every page (home, contact, support, course pages, /faqs/).
   Closed row = white with dark text. Open row = brand blue with white text. Markup: Bootstrap .accordion
   (see templates/partials/faq_item.html). Do not restyle .accordion-* inside individual pages. */
.accordion { --bs-accordion-border-color: #dee2e6; --bs-accordion-border-radius: .5rem; --bs-accordion-inner-border-radius: calc(.5rem - 1px); }
.accordion-button { background-color: #fff; color: #212529; font-weight: 400; padding: 1.25rem 1.5rem; }
.accordion-button:not(.collapsed) { background-color: var(--primary); color: #fff; box-shadow: none; }
.accordion-button:focus { border-color: var(--primary); box-shadow: 0 0 0 .25rem rgba(116, 149, 173, .25); }
.accordion-body { padding: 1.25rem 1.5rem; color: #212529; line-height: 1.6; }
.accordion-body p:last-child { margin-bottom: 0; }

/* Guides */
.guide-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.guide-card h3 { font-size: 1.2rem; } .guide-card h3 a { color: #11143A; text-decoration: none; } .guide-card h3 a:hover { color: #2c5aa0; }
.guide-card .meta { color: #5b6472; font-size: .85rem; }
.guide-body { max-width: 780px; margin: 0 auto; font-size: 1.05rem; line-height: 1.75; }
.guide-body h2 { margin-top: 2.2rem; font-size: 1.5rem; } .guide-body table { margin: 1rem 0; }
.guide-cta { background: linear-gradient(135deg, #11143A, #2c5aa0); color: #fff; border-radius: 14px; padding: 2rem; text-align: center; margin: 2.5rem 0; }

/* Stories */
.story-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.story-card blockquote { margin: 0 0 1.1rem; font-style: italic; color: #3b4351; }
.story-who { display: flex; gap: .8rem; align-items: center; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: #2c5aa0; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: 0 0 48px; object-fit: cover; }
.story-who strong { display: block; color: #11143A; } .story-who span { font-size: .85rem; color: #5b6472; }
.stat-strip { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); text-align: center; }
.stat-strip div { background: #fff; border: 1px solid #e3e7ef; border-radius: 12px; padding: 1.4rem 1rem; }
.stat-strip b { display: block; font-size: 2rem; color: #2c5aa0; } .stat-strip span { color: #5b6472; font-size: .95rem; }

/* Profile reader */
.pr { max-width: 980px; margin: 0 auto; }
.pr-toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; margin-bottom: .9rem; }
.pr-title { font-weight: 600; color: #11143A; flex: 1 1 220px; text-align: center; }
.pr-btn { border: 0; background: #2c5aa0; color: #fff; padding: .55rem 1.1rem; border-radius: 8px; font-weight: 600; cursor: pointer; }
.pr-btn:disabled { opacity: .4; cursor: default; }
.pr-pages { list-style: none; padding: 0; margin: 0; }
.pr-page img { width: 100%; height: auto; display: block; border: 1px solid #e3e7ef; border-radius: 8px; box-shadow: 0 6px 24px rgba(17,20,58,.12); margin-bottom: 1rem; }
.js-reader .pr-page { display: none; } .js-reader .pr-page.active { display: block; }
.pr-thumbs { display: none; gap: .5rem; overflow-x: auto; padding: .6rem 0; }
.js-reader .pr-thumbs { display: flex; }
.pr-thumbs button { border: 2px solid transparent; padding: 0; background: none; border-radius: 6px; flex: 0 0 auto; cursor: pointer; }
.pr-thumbs button.active { border-color: #2c5aa0; } .pr-thumbs img { width: 70px; height: auto; display: block; border-radius: 4px; }
@media (max-width: 576px) { .cx-list { columns: 1; } }
