:root {
    --brand-red: #da291c;
    --brand-gold: #ffc72c;
    --ink: #22201e;
    --muted: #6b6864;
    --paper: #fffdf9;
    --soft: #f5f1eb;
    --line: #e8e2da;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { background: var(--paper); color: var(--ink); font-family: "DM Sans", sans-serif; line-height: 1.65; }
h1, h2, h3, h4, .navbar-brand { font-family: "Space Grotesk", sans-serif; letter-spacing: 0; }
a { text-decoration: none; }
img { display: block; max-width: 100%; }
.bazma-nav { background: rgba(255, 253, 249, .97); border-bottom: 1px solid var(--line); box-shadow: none; }
.navbar-brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); font-size: 1rem; font-weight: 700; }
.navbar-brand:hover, .footer-brand:hover { color: var(--brand-red); }
.brand-mark { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; background: var(--brand-red); color: white; font-family: "Space Grotesk", sans-serif; font-size: 1.2rem; font-weight: 700; }
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy small { margin-top: .25rem; color: var(--muted); font: 600 .55rem "DM Sans", sans-serif; letter-spacing: .08em; }
.navbar-nav { gap: .1rem; }
.navbar .nav-link { padding: .8rem .65rem !important; color: var(--ink); font-size: .88rem; font-weight: 600; }
.navbar .nav-link:hover, .navbar .nav-link:focus { color: var(--brand-red); }
.navbar-toggler { border-color: var(--line); }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem #da291c33; }
.btn-accent, .btn-accent:hover, .btn-accent:focus { border-color: var(--brand-red); background: var(--brand-red); color: white; }
.btn-accent { font-weight: 700; }
.btn-accent:hover { background: #b91f15; border-color: #b91f15; }
.btn-outline-dark:hover { background: var(--ink); }
.text-accent { color: var(--brand-gold) !important; }
.eyebrow { color: var(--brand-red); font-size: .74rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.hero-section { overflow: hidden; background: var(--paper); color: var(--ink); }
.hero-layout { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); min-height: 620px; padding-top: 4.5rem; padding-bottom: 4.5rem; }
.hero-copy h1 { max-width: 680px; margin: 1.1rem 0 1.3rem; font-size: clamp(3rem, 6.4vw, 5.4rem); font-weight: 700; line-height: .99; }
.hero-copy h1 span { color: var(--brand-red); }
.hero-intro { max-width: 520px; color: var(--muted); font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; margin-top: 1.8rem; }
.hero-actions .btn { font-size: .95rem; }
.text-link { color: var(--ink); font-weight: 700; }
.text-link:hover { color: var(--brand-red); }
.hero-note { display: flex; align-items: center; gap: .6rem; margin-top: 2rem; color: var(--muted); font-size: .84rem; }
.note-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-gold); }
.hero-figure, .team-figure { position: relative; margin: 0; }
.hero-figure img { width: 100%; height: 430px; object-fit: cover; border-radius: 2px; }
.hero-figure figcaption, .team-figure figcaption { display: flex; justify-content: space-between; gap: 1rem; padding-top: .8rem; color: var(--muted); font-size: .78rem; }
.caption-index { color: var(--brand-red); font-weight: 700; }
.hero-stamp { position: absolute; right: -1rem; bottom: 3.4rem; display: grid; place-content: center; width: 112px; height: 112px; border-radius: 50%; background: var(--brand-gold); color: var(--ink); text-align: center; transform: rotate(7deg); }
.hero-stamp strong { font: 700 1.3rem "Space Grotesk", sans-serif; }
.hero-stamp span { font-size: .7rem; }
.proof-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-top: 1.2rem; padding-bottom: 1.2rem; }
.proof-grid span { color: var(--ink); font-size: .86rem; font-weight: 700; text-align: center; }
.section-space { padding: clamp(4rem, 8vw, 7rem) 0; }
.about-grid, .team-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2.5rem, 7vw, 7rem); }
.section-title { margin: .8rem 0 1.1rem; font-size: clamp(2.1rem, 4vw, 3.55rem); font-weight: 700; line-height: 1.08; }
.about-copy p, .team-copy > p { color: var(--muted); }
.about-copy .text-link { display: inline-block; margin-top: .5rem; }
.services-section { background: var(--soft); }
.section-heading-row { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.6rem; }
.section-heading-row .section-title { max-width: 620px; margin-bottom: 0; }
.section-heading-row > p { max-width: 360px; margin: 0 0 .25rem; color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #dcd5cc; border-left: 1px solid #dcd5cc; }
.service-card { min-height: 210px; padding: 1.6rem; border-right: 1px solid #dcd5cc; border-bottom: 1px solid #dcd5cc; background: transparent; }
.service-no { color: var(--brand-red); font-size: .78rem; font-weight: 700; }
.service-card h3 { margin: 1.35rem 0 .55rem; font-size: 1.18rem; font-weight: 700; }
.service-card p { margin: 0; color: var(--muted); font-size: .91rem; }
.team-figure img { width: 100%; height: 410px; object-fit: cover; }
.team-roles { margin: 1.5rem 0; border-top: 1px solid var(--line); }
.team-roles div { display: flex; gap: 1rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.team-roles span { color: var(--brand-red); font-size: .75rem; font-weight: 700; }
.team-roles strong { font-size: .93rem; }
.contact-section { padding: clamp(3.5rem, 7vw, 6rem) 0; background: var(--brand-red); color: white; }
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 4rem; }
.contact-section .eyebrow { color: var(--brand-gold); }
.contact-section h2 { max-width: 620px; margin: .7rem 0 1rem; font-size: clamp(2.5rem, 5vw, 4.1rem); font-weight: 700; line-height: 1.05; }
.contact-section p { max-width: 520px; color: #ffe6e2; }
.contact-section .btn { margin-top: 1rem; border: 0; color: var(--ink); font-weight: 700; }
.contact-section address { display: grid; gap: .45rem; margin: 0; font-style: normal; }
.contact-section address span { margin-top: 1rem; color: var(--brand-gold); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.contact-section address p { margin: 0; }
.contact-section address a { color: white; }
.contact-section address a:hover { text-decoration: underline; }
.page-hero { background: var(--soft); color: var(--ink); }
.page-hero .lead { max-width: 640px; color: var(--muted); }
.course-card, .service-card, .about-panel, .hero-card { border-radius: 2px; }
.course-card { padding: 1.5rem; border: 1px solid var(--line); background: white; }
.course-card h3 { font-size: 1.25rem; }
.course-card h2 { font-size: 1.25rem; }
.course-badge { background: #fff0ed; color: var(--brand-red); }
.course-index, .service-no, .about-number { color: var(--brand-red); }
.course-dates { display: grid; gap: .2rem; margin: .8rem 0 0; color: var(--muted); font-size: .82rem; }
.course-brochure { display: inline-block; margin-top: .75rem; color: var(--brand-red); font-size: .88rem; font-weight: 700; }
.course-brochure:hover { color: #a71f15; text-decoration: underline; }
.course-metadata-form { display: grid; grid-template-columns: repeat(2, minmax(110px, 1fr)); gap: .35rem; min-width: 240px; }
.course-metadata-form input { min-width: 0; padding: .3rem; border: 1px solid var(--line); font-size: .75rem; }
.course-metadata-form input[type="url"], .course-metadata-form .btn { grid-column: 1 / -1; }
.impact-section { padding: clamp(3.5rem, 7vw, 6rem) 0; background: var(--soft); }
.impact-heading { max-width: 720px; margin-bottom: 2rem; }
.impact-heading h2 { margin: .65rem 0 0; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.12; }
.impact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #dcd5cc; }
.impact-grid article { padding: 1.5rem 1.5rem 0 0; }
.impact-grid article + article { padding-left: 1.5rem; border-left: 1px solid #dcd5cc; }
.impact-index { color: var(--brand-red); font-size: .78rem; font-weight: 700; }
.impact-grid h3 { margin: 1rem 0 .55rem; font-size: 1.2rem; }
.impact-grid p { color: var(--muted); }
.impact-grid .text-link { font-size: .88rem; }
.footer { margin-top: 0 !important; background: #201f1d; color: #c9c5bf; }
.footer-main { padding-top: 4rem; }
.footer-brand { display: inline-flex; align-items: center; gap: .65rem; color: white; font: 700 1rem "Space Grotesk", sans-serif; }
.footer-brand .brand-mark { background: var(--brand-gold); color: var(--ink); }
.footer-summary { max-width: 420px; margin-top: 1.2rem; }
.footer-heading { margin: .3rem 0 1rem; color: white; font: 700 .9rem "DM Sans", sans-serif; }
.footer-main .col-lg-3 > a, .footer-main .col-lg-4 > a { display: block; width: fit-content; margin: .45rem 0; color: #c9c5bf; font-size: .9rem; }
.footer-main a:hover { color: var(--brand-gold); }
.footer-main p { font-size: .9rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding: 1rem 0; border-top: 1px solid #ffffff24; font-size: .78rem; }
.footer-bottom a { color: white; }
.site-loader { position: fixed; z-index: 2000; inset: 0; display: none; place-content: center; gap: 1rem; background: var(--paper); }
.js:not(.is-ready) .site-loader { display: grid; }
.loader-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--brand-red); color: white; font: 700 1.7rem "Space Grotesk", sans-serif; animation: loader-pulse .8s ease-in-out infinite alternate; }
.loader-line { width: 56px; height: 3px; overflow: hidden; background: var(--line); }
.loader-line::after { display: block; width: 45%; height: 100%; background: var(--brand-gold); content: ""; animation: loader-progress 1s ease-in-out infinite; }
@keyframes loader-pulse { to { transform: scale(.9); } }
@keyframes loader-progress { from { transform: translateX(-120%); } to { transform: translateX(240%); } }
input, select, textarea { accent-color: var(--brand-red); }
input:focus, select:focus, textarea:focus { border-color: var(--brand-red) !important; box-shadow: 0 0 0 .2rem #da291c24 !important; }
.portal-wrap { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: calc(100vh - 74px); background: #f7f5f1; }
.portal-sidebar { position: sticky; top: 74px; display: flex; flex-direction: column; height: calc(100vh - 74px); padding: 1.5rem 1rem; border-right: 1px solid var(--line); background: white; }
.portal-user { display: flex; align-items: center; gap: .75rem; padding: .5rem .4rem 1.4rem; border-bottom: 1px solid var(--line); }
.portal-avatar { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; background: #fff0ed; color: var(--brand-red); font-weight: 700; }
.portal-user strong, .portal-user small { display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-user strong { font-size: .86rem; }
.portal-user small { color: var(--muted); font-size: .75rem; }
.portal-menu { display: grid; gap: .25rem; padding-top: 1.25rem; }
.portal-menu a, .portal-signout { padding: .7rem .8rem; border-radius: 2px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.portal-menu a:hover, .portal-menu a.active { background: #fff0ed; color: var(--brand-red); }
.portal-signout { margin-top: auto; }
.portal-signout:hover { color: var(--brand-red); }
.portal-content { min-width: 0; max-width: 1480px; padding: clamp(1.2rem, 3vw, 2.5rem); }
.portal-heading, .panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.portal-heading { margin-bottom: 1.5rem; }
.portal-heading h1 { margin: .35rem 0 0; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.portal-heading .btn { flex: 0 0 auto; }
.portal-panel { margin-bottom: 1.25rem; padding: clamp(1rem, 2.5vw, 1.6rem); border: 1px solid var(--line); background: white; }
.panel-heading { margin-bottom: 1.3rem; }
.panel-heading h2 { margin: .3rem 0 0; font-size: 1.35rem; }
.portal-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.portal-form-wide { grid-column: 1 / -1; }
.portal-form-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.portal-form-actions .btn { flex: 0 0 auto; }
.portal-table { margin-bottom: 0; }
.portal-table thead th { color: var(--muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.portal-table td { vertical-align: middle; }
.portal-table td strong, .portal-table td small { display: block; }
.portal-table td small { max-width: 420px; margin-top: .2rem; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.course-price-form { display: flex; align-items: center; gap: .35rem; min-width: 190px; }
.course-price-form span { color: var(--muted); font-size: .78rem; }
.course-price-form input { width: 100px; min-width: 82px; padding: .3rem .4rem; border: 1px solid var(--line); }
.course-price-form .btn { flex: 0 0 auto; }
.portal-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.25rem; }
.site-logo { display: block; width: min(220px, 30vw); height: 44px; object-fit: contain; object-position: left center; }
.footer-logo { width: 44px; height: 44px; object-fit: contain; background: white; }
.team-page-hero .lead { max-width: 700px; }
.team-page-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 22rem)); justify-content: center; gap: 1.5rem; max-width: 1120px; margin: 0 auto; }
.team-member { min-height: 0; padding: 1.25rem; border: 1px solid var(--line); border-top: 3px solid var(--brand-red); background: white; }
.team-member-photo { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 5; margin-bottom: 1.2rem; overflow: hidden; background: #f2efeb; }
.team-member-photo img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.team-member-avatar { display: grid; place-items: center; width: 100%; height: 100%; color: var(--brand-red); font: 700 2.2rem "Space Grotesk", sans-serif; }
.profile-photo-form { display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; align-items: center; gap: 1rem; margin-bottom: 1.6rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.profile-photo-preview { width: 100px; height: 100px; object-fit: cover; }
.team-member h2 { margin: .4rem 0 .6rem; font-size: 1.35rem; }
.team-member p { margin: 0; color: var(--muted); }
.team-empty { max-width: 760px; margin: 0 auto; padding: clamp(2rem, 6vw, 4.5rem); border: 1px solid var(--line); background: white; text-align: center; }
.team-empty h2 { margin: .75rem 0; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.team-empty p { color: var(--muted); }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.story-card { overflow: hidden; border: 1px solid var(--line); background: white; }
.story-card-image { display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; background: var(--brand-red); color: white; font: 700 .8rem "DM Sans", sans-serif; letter-spacing: .12em; }
.story-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.story-card:hover .story-card-image img { transform: scale(1.035); }
.story-card-body { padding: 1.35rem; }
.story-card-body h2 { margin: .6rem 0; font-size: 1.35rem; }
.story-card-body h2 a { color: var(--ink); }
.story-card-body h2 a:hover { color: var(--brand-red); }
.story-card-body p { min-height: 4.8em; color: var(--muted); }
.story-card-body .text-link { display: inline-block; margin-top: .5rem; }
.story-pagination { display: flex; justify-content: center; align-items: center; gap: 1.2rem; margin-top: 2.5rem; }
.story-pagination a { color: var(--brand-red); font-weight: 700; }
.story-pagination span { color: var(--muted); font-size: .9rem; }
.story-back { color: var(--ink); font-size: .9rem; font-weight: 700; }
.story-back:hover { color: var(--brand-red); }
.story-detail-figure { max-width: 980px; margin: -1rem auto 0; padding: 0 1.5rem; }
.story-detail-figure img { width: 100%; max-height: 520px; object-fit: cover; }
.story-detail-body { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.story-date { color: var(--muted); font-size: .85rem; }
.story-copy { margin: 1.5rem 0 2rem; font-size: 1.08rem; line-height: 1.9; white-space: normal; }
.story-detail-body .text-link { display: inline-block; }
.story-preview-band { padding: clamp(2.5rem, 5vw, 4rem) 0; background: var(--soft); }
.story-preview-content { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.story-preview-content h2 { margin: .55rem 0; font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
.story-preview-content p { margin: 0; color: var(--muted); }
.story-preview-content .btn { flex: 0 0 auto; background: var(--brand-red); color: white; font-weight: 700; }
.career-list { display: grid; gap: 1rem; max-width: 980px; margin: 0 auto; }
.career-card { padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--line); background: white; }
.career-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.career-heading h2 { margin: .45rem 0 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.career-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.career-meta span { padding: .35rem .6rem; background: var(--soft); color: var(--ink); font-size: .78rem; font-weight: 600; }
.career-description, .career-requirements { margin: 1.2rem 0; color: var(--muted); white-space: normal; }
.career-requirements h3 { margin-bottom: .5rem; color: var(--ink); font-size: 1rem; }
.career-card .btn { margin-top: .5rem; }
@media (max-width: 991.98px) {
    .hero-layout { min-height: auto; grid-template-columns: 1fr 1fr; gap: 2rem; padding-top: 3.5rem; padding-bottom: 3.5rem; }
    .hero-copy h1 { font-size: clamp(2.7rem, 7vw, 4rem); }
    .hero-figure img { height: 360px; }
    .navbar-nav { align-items: stretch !important; padding: .8rem 0; }
    .navbar .btn { width: fit-content; margin: .5rem 0 !important; }
    .team-page-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 22rem)); }
    .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-logo { width: 190px; }
}
@media (max-width: 767.98px) {
    .hero-layout, .about-grid, .team-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero-layout { gap: 1.4rem; padding-top: 2.5rem; padding-bottom: 3rem; }
    .hero-copy h1 { max-width: 560px; margin-top: .8rem; margin-bottom: 1rem; font-size: clamp(2.35rem, 9.5vw, 3.35rem); }
    .hero-intro { font-size: 1rem; }
    .hero-actions { margin-top: 1.25rem; }
    .hero-note { margin-top: 1.25rem; }
    .hero-figure img { height: 280px; }
    .hero-stamp { right: -.4rem; bottom: 3rem; width: 92px; height: 92px; }
    .proof-grid { grid-template-columns: 1fr 1fr; row-gap: .8rem; }
    .section-heading-row { display: block; }
    .section-heading-row > p { margin-top: 1rem; }
    .service-grid { grid-template-columns: 1fr 1fr; }
    .service-card { min-height: 220px; padding: 1.2rem; }
    .team-figure img { height: 300px; }
    .contact-grid { gap: 2rem; }
    .footer-bottom { flex-direction: column; }
    .portal-wrap { grid-template-columns: 1fr; }
    .portal-sidebar { position: relative; top: auto; height: auto; padding: .75rem 1rem; border-right: 0; border-bottom: 1px solid var(--line); }
    .portal-user { padding: .25rem 0 .75rem; }
    .portal-menu { display: flex; overflow-x: auto; gap: .35rem; padding-top: .65rem; }
    .portal-menu a { flex: 0 0 auto; padding: .55rem .65rem; font-size: .82rem; }
    .portal-signout { position: absolute; top: 1rem; right: 1rem; margin: 0; }
    .portal-content { padding: 1rem; }
    .portal-form-grid { grid-template-columns: 1fr; }
    .portal-form-wide { grid-column: auto; }
    .portal-form-actions { align-items: flex-start; flex-direction: column; }
    .profile-photo-form { grid-template-columns: 72px minmax(0, 1fr); }
    .profile-photo-preview { width: 72px; height: 72px; }
    .profile-photo-form .btn { grid-column: 2; justify-self: start; }
    .portal-heading { align-items: flex-start; }
    .team-page-grid, .story-grid { grid-template-columns: minmax(0, 22rem); justify-content: center; }
    .team-member { min-height: 0; }
    .site-logo { width: min(185px, 55vw); height: 40px; }
    .story-card-body p { min-height: 0; }
    .story-preview-content { align-items: flex-start; flex-direction: column; }
    .career-heading { flex-direction: column; gap: .8rem; }
    .career-meta { justify-content: flex-start; }
    .impact-grid { grid-template-columns: 1fr; }
    .impact-grid article { padding: 1.2rem 0; }
    .impact-grid article + article { padding-left: 0; border-top: 1px solid #dcd5cc; border-left: 0; }
}
@media (max-width: 480px) {
    .service-grid { grid-template-columns: 1fr; }
    .service-card { min-height: 0; }
    .hero-actions { align-items: flex-start; flex-direction: column; gap: 1rem; }
    .hero-figure figcaption { font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}