:root {
    --ink: #15110d;
    --charcoal: #28231b;
    --paper: #f3e6cc;
    --paper-strong: #f9d15a;
    --oxide: #b35318;
    --red: #8e2e2b;
    --blue: #243f96;
    --cream: #fff7df;
    --line: rgba(21, 17, 13, 0.16);
}

body.theme-diversity {
    --ink: #181412;
    --charcoal: #26342f;
    --paper: #f7ead6;
    --paper-strong: #ffd95a;
    --oxide: #df624e;
    --red: #9c4f96;
    --blue: #178b8b;
    --cream: #fff9e9;
    --line: rgba(24, 20, 18, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
}

.site-nav {
    background: rgba(21, 17, 13, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
}

.navbar-brand {
    color: #fff;
    font-family: "Archivo Black", Impact, sans-serif;
    letter-spacing: 0;
    text-transform: uppercase;
}

.navbar-brand:hover,
.navbar-brand:focus,
.site-nav .nav-link,
.site-nav .nav-link:hover,
.site-nav .nav-link:focus {
    color: #fff;
}

.site-nav .nav-link {
    font-weight: 800;
    opacity: 0.74;
}

.site-nav .nav-link.active {
    color: var(--paper-strong);
    opacity: 1;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.35);
}

.navbar-toggler-icon {
    filter: invert(1);
}

.hero {
    position: relative;
    min-height: 96vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 118px 0 58px;
    background:
        linear-gradient(90deg, rgba(255, 247, 223, 0.96) 0%, rgba(255, 230, 155, 0.9) 44%, rgba(179, 83, 24, 0.24) 100%),
        var(--hero-image) right center / auto 100% no-repeat,
        #f7d869;
}

body.theme-diversity .hero {
    background:
        linear-gradient(100deg, rgba(255, 249, 233, 0.97) 0%, rgba(255, 226, 130, 0.78) 32%, rgba(150, 218, 202, 0.58) 58%, rgba(236, 154, 178, 0.42) 100%),
        var(--hero-image) right center / auto 100% no-repeat,
        #fff1b5;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(142, 46, 43, 0.18), transparent 22%),
        linear-gradient(135deg, rgba(36, 63, 150, 0.12), transparent 48%);
    pointer-events: none;
}

body.theme-diversity .hero::before {
    background:
        radial-gradient(circle at 14% 18%, rgba(223, 98, 78, 0.2), transparent 24%),
        radial-gradient(circle at 68% 20%, rgba(23, 139, 139, 0.18), transparent 24%),
        linear-gradient(135deg, rgba(156, 79, 150, 0.16), transparent 50%);
}

.hero-texture {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image:
        linear-gradient(90deg, rgba(21, 17, 13, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(21, 17, 13, 0.06) 1px, transparent 1px);
    background-size: 38px 38px;
    mix-blend-mode: multiply;
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-flex;
    color: var(--oxide);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero .eyebrow {
    color: var(--red);
}

.eyebrow.dark {
    color: var(--red);
}

.page-hero .eyebrow,
.page-hero .container > .eyebrow,
.contact-panel .eyebrow {
    color: var(--paper-strong);
}

h1,
h2,
h3 {
    letter-spacing: 0;
}

.hero h1,
.page-hero h1 {
    font-family: "Archivo Black", Impact, sans-serif;
    text-transform: uppercase;
    margin: 0;
}

.hero h1 {
    max-width: 820px;
    color: var(--ink);
    font-size: clamp(2.45rem, 4.6vw, 5rem);
    line-height: 1;
    text-wrap: balance;
}

.page-hero h1 {
    max-width: 920px;
    font-size: clamp(2.8rem, 6vw, 6.6rem);
    line-height: 0.92;
}

.hero-lead {
    max-width: 680px;
    margin: 22px 0 0;
    color: #4e321f;
    font-size: clamp(1.08rem, 2vw, 1.45rem);
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.btn-brand,
.btn-brand:hover,
.btn-brand:focus {
    background: var(--oxide);
    border-color: var(--oxide);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 14px 32px rgba(179, 83, 24, 0.25);
}

.btn-ink,
.btn-ink:hover,
.btn-ink:focus {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
    font-weight: 900;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 14px;
    color: #fff;
    background: var(--ink);
    font-weight: 900;
    text-transform: uppercase;
}

.poster-wrap {
    margin: 0;
    transform: rotate(1.4deg);
}

.poster-img {
    width: min(100%, 410px);
    display: block;
    margin-left: auto;
    border: 8px solid rgba(255, 247, 223, 0.94);
    box-shadow: 0 28px 80px rgba(21, 17, 13, 0.33);
}

.intro-band,
.preview-section,
.content-section,
.contact-panel {
    padding: 82px 0;
}

.intro-band {
    background: var(--ink);
    color: var(--cream);
}

body.theme-diversity .intro-band {
    background: linear-gradient(120deg, #182d2a 0%, #463047 58%, #63342e 100%);
}

.intro-band h2,
.contact-copy h2,
.section-head h2 {
    font-family: "Archivo Black", Impact, sans-serif;
    text-transform: uppercase;
    line-height: 0.98;
}

.intro-band h2 {
    max-width: 820px;
    font-size: clamp(2.1rem, 4vw, 4.2rem);
}

.intro-band p {
    max-width: 760px;
    color: rgba(255, 247, 223, 0.78);
    font-size: 1.08rem;
}

.course-list {
    display: grid;
    gap: 12px;
}

.course-line {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 12px;
    align-items: stretch;
    min-height: 64px;
    border-bottom: 1px solid rgba(255, 247, 223, 0.2);
    padding-bottom: 12px;
}

.course-line span {
    display: grid;
    place-items: center;
    background: var(--paper-strong);
    color: var(--ink);
    font-family: "Archivo Black", Impact, sans-serif;
}

.course-line strong {
    align-self: center;
    color: #fff;
    text-transform: uppercase;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.6rem);
}

.section-head a {
    color: var(--oxide);
    font-weight: 900;
}

.announcement-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    text-align: left;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(21, 17, 13, 0.08);
}

.announcement-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background: var(--paper);
}

.announcement-card > div,
.card-body-copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
}

.announcement-card time,
.announcement-modal time {
    color: var(--oxide);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.announcement-card h3,
.card-body-copy strong {
    margin: 0;
    color: var(--ink);
    font-size: 1.18rem;
    font-weight: 900;
    line-height: 1.12;
}

.announcement-card p,
.card-body-copy em {
    margin: 0;
    color: #5f5549;
    font-style: normal;
}

.announcement-button {
    border: 0;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.announcement-button:hover,
.announcement-button:focus {
    transform: translateY(-4px);
    box-shadow: 0 22px 58px rgba(21, 17, 13, 0.14);
}

.page-hero {
    padding: 140px 0 62px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(21, 17, 13, 0.98), rgba(142, 46, 43, 0.86)),
        url("../img/diplomatura.jpg") center / cover no-repeat;
}

body.theme-diversity .page-hero {
    background:
        linear-gradient(135deg, rgba(24, 20, 18, 0.9), rgba(156, 79, 150, 0.72), rgba(23, 139, 139, 0.58)),
        url("../img/diplomatura.jpg") center / cover no-repeat;
}

.page-hero p {
    max-width: 720px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 1.12rem;
    font-weight: 600;
}

.announcement-modal {
    border: 0;
    border-radius: 8px;
    overflow: hidden;
}

.announcement-modal .modal-header {
    align-items: start;
    background: var(--cream);
}

.announcement-modal .modal-title {
    font-family: "Archivo Black", Impact, sans-serif;
    text-transform: uppercase;
}

.modal-featured {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    background: var(--paper);
    margin-bottom: 24px;
}

.rich-text p {
    color: #51483f;
    font-size: 1rem;
    line-height: 1.7;
}

.teacher-poster {
    width: 100%;
    border: 8px solid #fff;
    box-shadow: 0 24px 70px rgba(21, 17, 13, 0.16);
}

.director-block {
    padding: 26px;
    background: var(--ink);
    color: #fff;
    border-left: 8px solid var(--oxide);
}

.director-block span,
.list-title {
    color: var(--oxide);
    font-weight: 900;
    text-transform: uppercase;
}

.director-block h2 {
    margin: 8px 0 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-family: "Archivo Black", Impact, sans-serif;
    text-transform: uppercase;
}

.list-title {
    margin: 30px 0 16px;
    font-size: 1rem;
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}

.person-card,
.teacher-list div {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    padding: 16px;
}

.person-card strong,
.teacher-list strong {
    display: block;
    font-weight: 900;
}

.person-card span,
.teacher-list span {
    color: #6a5d50;
    font-size: 0.94rem;
}

.teacher-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 10px;
}

.course-teacher-list {
    display: grid;
    gap: 16px;
}

.course-teacher-card {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 8px solid var(--oxide);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(21, 17, 13, 0.08);
}

.course-teacher-head {
    padding: 20px 20px 14px;
    background: linear-gradient(90deg, rgba(179, 83, 24, 0.1), rgba(249, 209, 90, 0.16));
}

.course-teacher-head span {
    color: var(--oxide);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.course-teacher-head h2 {
    margin: 6px 0 8px;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 900;
    line-height: 1.12;
}

.course-teacher-head p {
    margin: 0;
    color: #65584a;
    font-weight: 800;
}

.teacher-list.compact {
    grid-template-columns: 1fr;
    padding: 14px;
}

.conference-speakers-card {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 8px solid var(--oxide);
    border-radius: 8px;
    padding: 22px;
    box-shadow: 0 18px 45px rgba(21, 17, 13, 0.08);
}

.conference-speakers-card p {
    margin: 0 0 12px;
    color: #51483f;
    font-size: 1rem;
    line-height: 1.65;
}

.conference-speakers-card p:last-child {
    margin-bottom: 0;
}

.plan-section {
    background: linear-gradient(90deg, var(--cream), #ffe08b);
}

body.theme-diversity .plan-section {
    background: linear-gradient(100deg, #fff9e9 0%, #ffe99d 38%, #d7f0e7 72%, #f6d9e3 100%);
}

.encounter-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    text-align: left;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(21, 17, 13, 0.08);
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.encounter-card:hover,
.encounter-card:focus {
    transform: translateY(-4px);
    box-shadow: 0 22px 58px rgba(21, 17, 13, 0.14);
}

.encounter-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background: var(--paper);
}

.encounter-copy {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 20px;
}

.encounter-copy small {
    color: var(--oxide);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.encounter-copy em {
    color: var(--oxide);
    font-style: normal;
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.encounter-copy strong {
    color: var(--ink);
    font-size: 1.22rem;
    font-weight: 900;
    line-height: 1.12;
}

.encounter-copy span {
    color: #5f5549;
}

.timeline {
    display: grid;
    gap: 18px;
    max-width: 980px;
    margin: 0 auto;
}

.timeline-item {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 22px;
    align-items: stretch;
}

.timeline-trigger {
    width: 100%;
    font: inherit;
    appearance: none;
    border: 0;
    text-align: left;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.timeline-item:hover .timeline-trigger,
.timeline-trigger:focus {
    transform: translateY(-2px);
}

.timeline-trigger:focus {
    outline: 3px solid rgba(179, 83, 24, 0.28);
    outline-offset: 3px;
}

.timeline-date {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    background: var(--ink);
    color: #fff;
    padding: 18px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.timeline-body {
    background: #fff;
    border-left: 8px solid var(--oxide);
    padding: 22px;
    box-shadow: 0 18px 44px rgba(21, 17, 13, 0.08);
}

.timeline-item:hover .timeline-body,
.timeline-body:focus {
    box-shadow: 0 22px 58px rgba(21, 17, 13, 0.14);
}

.timeline-body span {
    color: var(--oxide);
    font-weight: 900;
    text-transform: uppercase;
}

.timeline-body h2 {
    margin: 6px 0 8px;
    font-size: clamp(1.28rem, 2vw, 1.7rem);
    font-weight: 900;
}

.timeline-body p {
    margin: 0;
    color: #5d5348;
}

.btn-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.contact-panel {
    background: var(--ink);
    color: #fff;
}

body.theme-diversity .contact-panel {
    background: linear-gradient(130deg, #181412 0%, #26342f 45%, #55334e 100%);
}

.contact-copy {
    height: 100%;
    padding-right: 24px;
}

.contact-copy h2 {
    font-size: clamp(2.2rem, 4vw, 4.1rem);
}

.contact-copy p {
    color: rgba(255, 255, 255, 0.75);
}

.social-link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--paper-strong);
    font-weight: 900;
}

.lead-form {
    background: #fff;
    color: var(--ink);
    border-radius: 8px;
    padding: clamp(20px, 4vw, 38px);
}

.form-control,
.form-select {
    border-radius: 4px;
    border-color: rgba(21, 17, 13, 0.22);
    min-height: 46px;
}

.form-label {
    font-weight: 900;
}

.site-footer {
    padding: 42px 0;
    background: #0e0b08;
    color: rgba(255, 255, 255, 0.75);
}

.site-footer h2 {
    color: #fff;
    font-family: "Archivo Black", Impact, sans-serif;
    font-size: 1.35rem;
    text-transform: uppercase;
}

.footer-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: center;
}

.footer-logos img {
    max-height: 58px;
    max-width: 240px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.08);
    padding: 8px;
    border-radius: 4px;
}

.site-footer address {
    margin: 0 0 8px;
}

.site-footer a {
    color: var(--paper-strong);
    font-weight: 800;
}

@media (max-width: 991.98px) {
    .hero {
        min-height: auto;
        background:
            linear-gradient(180deg, rgba(255, 247, 223, 0.96), rgba(249, 209, 90, 0.88)),
            #f7d869;
    }

    .poster-img {
        margin: 0;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .timeline-date {
        justify-content: flex-start;
        min-height: auto;
        text-align: left;
    }
}

@media (max-width: 575.98px) {
    .hero h1 {
        font-size: 2.28rem;
    }

    .page-hero h1 {
        font-size: 2.65rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .section-head {
        display: block;
    }

    .intro-band,
    .preview-section,
    .content-section,
    .contact-panel {
        padding: 56px 0;
    }
}
