:root {
    --brand: #a40f1b;
    --brand-dark: #6f0912;
    --brand-bright: #e32939;
    --ink: #18202b;
    --muted: #647180;
    --line: #e7e9ed;
    --surface: #ffffff;
    --canvas: #f7f8fa;
    --blue: #123b68;
    --shadow: 0 18px 48px rgba(29, 35, 45, .09);
    --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    overflow-x: hidden;
}
a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, h4, h5 { color: var(--ink); font-weight: 800; line-height: 1.12; letter-spacing: -.025em; }
.display-title { font-family: 'Source Serif 4', Georgia, serif; }
.section-pad { padding: 96px 0; }
.section-kicker {
    color: var(--brand);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.section-title { font-size: clamp(2rem, 4vw, 3.4rem); margin: .65rem 0 1rem; }
.section-copy { color: var(--muted); max-width: 680px; font-size: 1.05rem; }
.surface { background: var(--surface); border: 1px solid rgba(20, 28, 38, .07); border-radius: var(--radius); box-shadow: var(--shadow); }

.site-navbar {
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(32, 38, 46, .06);
    transition: box-shadow .25s ease, background .25s ease;
}
.site-navbar.scrolled { box-shadow: 0 10px 30px rgba(25, 30, 40, .08); background: rgba(255,255,255,.97); }
.navbar-brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); }
.navbar-brand img { border-radius: 50%; object-fit: contain; }
.navbar-brand span { display: flex; flex-direction: column; line-height: 1.15; }
.navbar-brand strong { font-size: .95rem; }
.navbar-brand small { color: var(--muted); font-size: .66rem; margin-top: .2rem; }
.nav-link { color: #343d49; font-size: .92rem; font-weight: 700; padding: .75rem .85rem !important; }
.nav-link:hover, .nav-link:focus { color: var(--brand); }
.btn { border-radius: 999px; font-weight: 800; padding: .8rem 1.25rem; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(164,15,27,.2); }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-outline-brand { border-color: rgba(164,15,27,.25); color: var(--brand); background: #fff; }
.btn-outline-brand:hover { background: #fff1f2; border-color: var(--brand); color: var(--brand-dark); }
.btn-sm { padding: .55rem .9rem; }
.flash-wrap { position: fixed; z-index: 1060; top: 88px; left: 50%; transform: translateX(-50%); max-width: 700px; }

.hero {
    min-height: 750px;
    padding: 150px 0 90px;
    display: flex;
    align-items: center;
    position: relative;
    background:
      radial-gradient(circle at 78% 18%, rgba(227,41,57,.16), transparent 28%),
      radial-gradient(circle at 6% 85%, rgba(18,59,104,.10), transparent 25%), #fbfbfc;
}
.hero::before { content: ''; position: absolute; inset: 0; opacity: .4; pointer-events: none; background-image: radial-gradient(#a9afb8 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(to right, #000, transparent 45%); }
.hero-content { position: relative; z-index: 2; }
.hero-badge { display: inline-flex; align-items: center; gap: .55rem; padding: .42rem .72rem; background: #fff; color: var(--brand); border: 1px solid rgba(164,15,27,.15); border-radius: 999px; font-size: .78rem; font-weight: 800; box-shadow: 0 8px 24px rgba(20,25,35,.06); }
.hero h1 { font-size: clamp(3rem, 6.2vw, 6.1rem); max-width: 820px; margin: 1.15rem 0; }
.hero h1 span { color: var(--brand); }
.hero-lead { color: #56616e; font-size: clamp(1.05rem, 1.8vw, 1.28rem); max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-visual { position: relative; padding: 24px; }
.hero-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 32px; box-shadow: 0 35px 80px rgba(40,26,30,.22); }
.hero-logo { position: absolute; left: -12px; bottom: -12px; width: 128px; height: 128px; border-radius: 50%; background: #fff; padding: 8px; box-shadow: 0 22px 45px rgba(20,25,35,.2); }
.hero-note { position: absolute; right: -8px; top: 4px; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-radius: 18px; padding: .85rem 1rem; box-shadow: var(--shadow); font-size: .82rem; font-weight: 800; }
.hero-note i { color: var(--brand); margin-right: .4rem; }

.stat-strip { margin-top: -46px; position: relative; z-index: 3; }
.stat-panel { padding: 1.35rem; display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; }
.stat-item { text-align: center; padding: .75rem; border-right: 1px solid var(--line); }
.stat-item:last-child { border: 0; }
.stat-item strong { color: var(--brand); font-family: 'Source Serif 4', serif; font-size: 2rem; display: block; }
.stat-item span { color: var(--muted); font-size: .82rem; font-weight: 700; }

.training-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.training-card { overflow: hidden; height: 100%; transition: transform .25s ease, box-shadow .25s ease; }
.training-card:hover { transform: translateY(-7px); box-shadow: 0 26px 60px rgba(29,35,45,.14); }
.training-image-wrap { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #e8eaed; }
.training-image { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.training-card:hover .training-image { transform: scale(1.035); }
.training-badges { position: absolute; inset: 14px 14px auto 14px; display: flex; justify-content: space-between; gap: .5rem; }
.badge-soft { display: inline-flex; align-items: center; padding: .36rem .62rem; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--blue); font-size: .68rem; font-weight: 900; letter-spacing: .04em; box-shadow: 0 6px 16px rgba(30,35,45,.12); }
.badge-status-success { background: #e7f8ef; color: #137044; }
.badge-status-primary { background: #eaf1fb; color: #1c568f; }
.badge-status-warning { background: #fff2d8; color: #915d00; }
.badge-status-neutral { background: #eef0f3; color: #59616c; }
.training-body { padding: 1.35rem; }
.training-topic { color: var(--brand); font-size: .74rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.training-title { font-size: 1.25rem; margin: .6rem 0 1rem; }
.training-meta { display: grid; gap: .62rem; color: var(--muted); font-size: .84rem; }
.training-meta div { display: flex; gap: .65rem; align-items: flex-start; }
.training-meta i { color: var(--brand); width: 18px; }
.training-footer { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: .7rem; align-items: center; }
.seats { color: var(--muted); font-size: .78rem; font-weight: 700; }

.purpose { background: #111b29; color: #fff; overflow: hidden; }
.purpose h2, .purpose h3 { color: #fff; }
.purpose .section-kicker { color: #ff7d87; }
.purpose .section-copy { color: #b9c2ce; }
.purpose-photo { border-radius: 28px; min-height: 440px; width: 100%; object-fit: cover; opacity: .88; }
.value-list { display: grid; gap: 1rem; margin-top: 1.7rem; }
.value-item { display: flex; gap: 1rem; align-items: flex-start; }
.value-icon { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #ff8d96; }
.value-item p { color: #aeb9c6; margin: .25rem 0 0; font-size: .9rem; }

.page-hero { padding: 150px 0 70px; background: linear-gradient(135deg, #fff 0%, #f7eff0 100%); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4.6rem); }
.filter-bar { padding: 1rem; margin-top: -28px; position: relative; z-index: 3; }
.form-control, .form-select { border: 1px solid #dfe3e8; border-radius: 14px; padding: .82rem .95rem; min-height: 48px; }
.form-control:focus, .form-select:focus { border-color: rgba(164,15,27,.55); box-shadow: 0 0 0 .25rem rgba(164,15,27,.1); }
.form-label { font-weight: 800; font-size: .86rem; color: #3a4450; }
.required::after { content: ' *'; color: var(--brand); }

.detail-hero { padding: 135px 0 70px; background: #111b29; color: #fff; }
.detail-hero h1 { color: #fff; font-size: clamp(2.5rem, 5vw, 4.8rem); }
.detail-hero .lead { color: #c4ccd6; }
.detail-image { width: 100%; border-radius: 26px; max-height: 600px; object-fit: cover; box-shadow: 0 28px 70px rgba(0,0,0,.26); }
.detail-facts { padding: 1.4rem; position: sticky; top: 104px; }
.fact { display: flex; gap: .85rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.fact:last-child { border: 0; }
.fact i { color: var(--brand); font-size: 1.1rem; width: 22px; }
.fact small { color: var(--muted); display: block; font-weight: 700; }
.fact strong { font-size: .92rem; }
.share-row { display: flex; gap: .6rem; flex-wrap: wrap; }

.form-shell { max-width: 920px; margin: 0 auto; }
.form-section { padding: clamp(1.25rem, 4vw, 2rem); margin-bottom: 1.25rem; }
.form-section h2 { font-size: 1.25rem; margin-bottom: 1.3rem; display: flex; align-items: center; gap: .65rem; }
.form-section h2 span { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: var(--brand); font-size: .82rem; }
.consent-box { background: #f8f2f3; border: 1px solid #efd9dc; border-radius: 16px; padding: 1rem; }
.confirm-card { max-width: 760px; margin: 0 auto; padding: clamp(1.5rem, 5vw, 3.5rem); text-align: center; }
.confirm-icon { width: 86px; height: 86px; display: grid; place-items: center; border-radius: 50%; margin: 0 auto 1.4rem; color: #fff; background: #1a9a61; font-size: 2.5rem; box-shadow: 0 20px 40px rgba(26,154,97,.2); }
.confirmation-data { text-align: left; margin: 2rem 0; background: var(--canvas); padding: 1.4rem; border-radius: 18px; }

.admin-body { background: #f3f5f8; }
.admin-shell { min-height: 100vh; padding-top: 84px; }
.admin-top { padding: 1.75rem 0 1rem; }
.admin-nav { display: flex; gap: .45rem; overflow-x: auto; padding-bottom: .5rem; }
.admin-nav a { white-space: nowrap; color: #56616d; font-weight: 800; padding: .62rem .85rem; border-radius: 12px; font-size: .84rem; }
.admin-nav a:hover, .admin-nav a.active { background: #fff; color: var(--brand); box-shadow: 0 6px 20px rgba(25,30,40,.06); }
.metric-card { padding: 1.25rem; height: 100%; }
.metric-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: #fbeaec; color: var(--brand); }
.metric-card strong { font-size: 2rem; display: block; margin: .9rem 0 .15rem; }
.metric-card span { color: var(--muted); font-size: .82rem; font-weight: 700; }
.admin-card { padding: 1.25rem; }
.table { --bs-table-bg: transparent; font-size: .86rem; }
.table th { color: #66717e; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.table td { vertical-align: middle; }
.table-thumb { width: 58px; height: 46px; border-radius: 10px; object-fit: cover; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 120px 1rem 3rem; background: radial-gradient(circle at top right, rgba(227,41,57,.15), transparent 30%), #f6f7f9; }
.login-card { width: 100%; max-width: 450px; padding: 2rem; }
.chart-bar { height: 12px; border-radius: 999px; background: #edf0f3; overflow: hidden; }
.chart-bar span { display: block; height: 100%; min-width: 3px; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-bright)); }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.pagination .page-link { color: var(--brand); border-radius: 10px !important; margin: 0 .15rem; border: 0; }
.pagination .active .page-link { background: var(--brand); }

.site-footer { background: #0d1520; color: #aeb8c4; padding: 3rem 0 1.5rem; }
.site-footer a { color: #dbe1e8; margin-left: 1.2rem; font-size: .85rem; font-weight: 700; }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-brand img { border-radius: 50%; background: #fff; }
.footer-brand div { display: flex; flex-direction: column; }
.footer-brand strong { color: #fff; }
.footer-brand span { font-size: .78rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.25rem; margin-top: 2rem; font-size: .75rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; }
.footer-credit { color: #cbd3dd; }
.footer-credit strong { color: #fff; }
.footer-credit a { color: #ff98a0; margin-left: 0; }

@media (max-width: 991.98px) {
    .site-navbar .navbar-collapse { background: #fff; padding: 1rem; margin-top: .65rem; border-radius: 16px; box-shadow: var(--shadow); }
    .hero { min-height: auto; padding-top: 130px; }
    .hero-visual { margin-top: 2rem; }
    .training-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-facts { position: static; }
}
@media (max-width: 767.98px) {
    body { font-size: .96rem; }
    .section-pad { padding: 68px 0; }
    .navbar-brand small { display: none; }
    .navbar-brand strong { font-size: .82rem; }
    .hero h1 { font-size: clamp(2.75rem, 14vw, 4.5rem); }
    .hero-logo { width: 88px; height: 88px; left: 4px; }
    .hero-note { right: 0; }
    .stat-panel { grid-template-columns: 1fr; }
    .stat-item { border-right: 0; border-bottom: 1px solid var(--line); }
    .training-grid { grid-template-columns: 1fr; }
    .page-hero { padding-top: 125px; }
    .detail-hero { padding-top: 120px; }
    .admin-shell { padding-top: 76px; }
    .table-responsive { border-radius: 15px; }
    .site-footer a { margin: 0 1rem 0 0; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
