:root {
    --maroon: #5e0a0a;
    --maroon-dark: #430707;
    --maroon-soft: #f7eeee;
    --white: #ffffff;
    --black: #000000;
    --dark-grey: #262626;
    --border: rgba(94, 10, 10, 0.16);
    --shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    --radius: 10px;
    --page-width: 90%;
    --carousel-gap: 2.5vw;
    --border: rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 13vh;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    font-family: "Poppins", sans-serif;
    color: var(--maroon);
    background: var(--white);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

.page-width {
    width: var(--page-width);
    margin-inline: auto;
}

/* Header */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    height: 12vh;
    padding: 0 4vw;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 30px rgba(94, 10, 10, 0.08);
    backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    width: min(190px, 28vw);
    max-height: 64px;
    object-fit: contain;
}

.primary-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 2.4vw, 38px);
}

.primary-nav a {
    position: relative;
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
}

.primary-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -7px;
    height: 2px;
    background: var(--maroon);
    transition: right 0.25s ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
    right: 0;
}

.primary-nav a.no-after:hover::after,
.primary-nav a.no-after:focus-visible::after {
    right: 100%;
}

.header-cta,
.button {
    min-height: 46px;
    padding: 12px 24px;
    border: 1px solid var(--maroon);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.header-cta {
    color: var(--white);
    background: var(--maroon);
}

.header-cta.contact-cta {
    color: var(--maroon);
    background: var(--white);
}

.header-cta:hover,
.header-cta:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(94, 10, 10, 0.2);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--white);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--maroon);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.button-light {
    color: var(--maroon);
    background: var(--white);
    border-color: var(--white);
}

.button-light:hover,
.button-light:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

/* Shared section heading */
.section-heading {
    width: min(760px, 90vw);
    margin: 78px auto 42px;
    text-align: center;
}

.section-heading.compact {
    margin-top: 0;
}

.eyebrow {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-pill {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 9px 18px;
    border-radius: 999px;
    color: var(--white);
    background: var(--maroon);
    font-size: 13px;
    font-weight: 600;
}

.section-heading h2 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.section-copy {
    max-width: 660px;
    margin: 14px auto 0;
    color: rgba(94, 10, 10, 0.72);
    line-height: 1.8;
}

/* Introduction */
.intro-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.intro-card {
    min-height: 460px;
    padding: clamp(28px, 4vw, 48px);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.intro-card-light {
    border: 1px solid var(--border);
    background: var(--white);
    box-shadow: var(--shadow);
}

.intro-card-maroon {
    color: var(--white);
    background: linear-gradient(145deg, var(--maroon), var(--maroon-dark));
}

.icon-circle {
    width: 66px;
    height: 66px;
    margin-bottom: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.icon-circle img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.icon-maroon {
    background: var(--maroon);
}

.icon-white {
    background: var(--white);
}

.intro-card h3 {
    margin-bottom: 18px;
    font-size: clamp(24px, 2.8vw, 34px);
    line-height: 1.15;
}

.intro-card p {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.85;
}

.intro-card-light p {
    color: rgba(94, 10, 10, 0.76);
}

.intro-card-maroon p {
    color: rgba(255, 255, 255, 0.84);
}

.text-link {
    margin-top: 8px;
    font-weight: 700;
}

/* Career carousel */
.career-carousel {
    --cards-per-view: 2;
    padding: 0 5%;
}

.career-viewport {
    overflow: hidden;
}

.career-track {
    display: flex;
    background: transparent;
    gap: var(--carousel-gap);
    will-change: transform;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.career-card {
    flex: 0 0 calc((100% - var(--carousel-gap)) / 2);
    overflow: hidden;
    display: grid;
    grid-template-columns: 50% 50%;
    align-items: stretch;
    border-radius: 10px;
    background: var(--white);
    box-shadow: var(--shadow);
    border: 2px solid var(--border);
}

.career-card-maroon {
    color: var(--white);
    background: var(--maroon);
    border-color: var(--maroon);
}

.career-image-wrap {
    width: 100%;
    display: flex;
    align-items: flex-end;
}

.career-image-wrap img {
    width: 100%;
}

.career-card-content {
    padding: clamp(24px, 3vw, 38px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.career-card h3 {
    margin-bottom: 26px;
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.2;
}

.career-card-content a {
    min-width: 132px;
    padding: 10px 16px;
    border: 1px solid var(--maroon);
    border-radius: 999px;
    text-align: center;
    color: var(--white);
    background: var(--maroon);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.career-card-maroon .career-card-content a {
    color: var(--maroon);
    background: var(--white);
    border-color: var(--white);
}

.career-card-content a:hover,
.career-card-content a:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(94, 10, 10, 0.16);
}

.carousel-navigation {
    margin-top: 34px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
}

.career-controls {
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.career-control {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(94, 10, 10, 0.28);
    transition: width 0.25s ease, background 0.25s ease;
}

.career-control.is-active {
    width: 34px;
    background: var(--maroon);
}

.carousel-arrow {
    width: 48px;
    height: 48px;
    border: 1px solid var(--maroon);
    border-radius: 50%;
    cursor: pointer;
    color: var(--white);
    background: var(--maroon);
    font-size: 20px;
    transition: transform 0.25s ease, background 0.25s ease;
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
    background: var(--maroon-dark);
    transform: translateY(-2px);
}

.carousel-arrow:disabled {
    opacity: 0.35;
    cursor: default;
    transform: none;
}

/* Benefits */
.benefits {
    margin-top: 7.5vh;
    margin-bottom: 90px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5vw;
}

.benefit-card {
    min-height: 180px;
    padding: 26px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    box-shadow: 0 12px 28px rgba(94, 10, 10, 0.08);
}

.benefit-card-maroon {
    color: var(--white);
    background: var(--maroon);
    border-color: var(--maroon);
}

.benefit-check {
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--white);
    background: var(--maroon);
    font-size: 22px;
    font-weight: 700;
}

.benefit-card-maroon .benefit-check {
    color: var(--maroon);
    background: var(--white);
}

.benefit-card h3 {
    font-size: 16px;
}

/* Reveal */
[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

.social-links {
    margin-top: 12px;
    display: flex;
    gap: 10px;
}

.social-links a,
.whatsapp-float {
    display: grid;
    place-items: center;
    font-weight: 700;
}

.social-links a {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    color: var(--maroon);
    background: var(--white);
    font-size: 12px;
}

.footer-bottom {
    margin-top: 56px;
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.68);
    font-size: 11px;
    line-height: 1.6;
}

.footer-bottom a {
    color: var(--white);
    font-weight: 600;
}

.whatsapp-float {
    position: fixed;
    z-index: 900;
    right: 22px;
    bottom: 22px;
    width: 56px;
    height: 56px;
    border: 2px solid var(--white);
    border-radius: 50%;
    color: var(--white);
    background: var(--maroon);
    box-shadow: 0 14px 32px rgba(94, 10, 10, 0.28);
    font-size: 12px;
}

/* Tablet */
@media (max-width: 980px) {
    .site-header {
        grid-template-columns: auto 1fr auto;
        gap: 16px;
        padding-inline: 4vw;
    }

    .nav-toggle {
        display: block;
        justify-self: end;
    }

    .primary-nav {
        position: absolute;
        top: calc(100% + 1px);
        left: 4vw;
        right: 4vw;
        padding: 18px;
        display: flex;
        flex-direction: column;
        gap: 0;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);
        border: 1px solid var(--border);
        border-radius: 0 0 var(--radius) var(--radius);
        background: var(--white);
        box-shadow: var(--shadow);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    }

    .primary-nav.is-open {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .primary-nav a {
        padding: 25px 8px;
        color: var(--black);
        border-bottom: 1px solid var(--border);
    }

    .primary-nav a {
        padding: 25px 8px;
        border-bottom: 1px solid var(--border);
    }

    .primary-nav a:last-child {
        border-bottom: 0;
    }

    .primary-nav a::after {
        display: none;
    }

    .header-cta.contact-cta {
        display: none;
    }

    .benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1.4fr 0.8fr 1fr;
        gap: 36px;
    }
}

/* Mobile */
@media (max-width: 720px) {
    :root {
        --carousel-gap: 16px;
        --page-width: min(92vw, 620px);
    }

    html {
        scroll-padding-top: 82px;
    }

    .site-header {
        height: 76px;
    }

    .brand-logo {
        width: 160px;
        max-height: 54px;
    }

    .section-heading {
        margin-top: 64px;
    }

    .intro-grid {
        grid-template-columns: 1fr;
    }

    .intro-card {
        min-height: auto;
    }

    .career-section {
        margin-top: 72px;
        padding: 68px 0 74px;
    }

    .career-carousel {
        --cards-per-view: 1;
    }

    .career-card {
        flex-basis: 100%;
        min-height: 470px;
        grid-template-columns: 1fr;
        grid-template-rows: minmax(250px, 56%) 1fr;
    }

    .career-card-content {
        min-height: 190px;
    }

    .career-card h3 {
        margin-bottom: 18px;
    }

    .carousel-navigation {
        grid-template-columns: auto 1fr auto;
        gap: 10px;
    }

    .career-controls {
        gap: 5px;
    }

    .career-control {
        width: 8px;
        height: 8px;
    }

    .career-control.is-active {
        width: 24px;
    }

    .carousel-arrow {
        width: 42px;
        height: 42px;
    }

    .benefits {
        margin-top: 64px;
        margin-bottom: 64px;
        grid-template-columns: 1fr;
    }

    .benefit-card {
        min-height: 150px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 420px) {

    .carousel-navigation {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
    } 
}

@media (max-width: 374px) { 
    .career-controls {
        gap: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}


/* Institutions directory promotion */
.institutions-promo {
    margin-top: 70px;
    margin-bottom: 70px;
    padding: clamp(28px, 5vw, 56px);
    border-radius: 10px;
    background: var(--soft);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.institutions-promo>div,
.institutions-promo>span {
    flex-basis: 50%;
}

.institutions-promo>span {
    display: flex;
    align-items: center;
    justify-content: center;
}

.institutions-promo .eyebrow,
.institutions-promo h2,
.institutions-promo p {
    color: var(--black);
}

.institutions-promo h2 {
    margin: 4px 0 10px;
    font-size: clamp(26px, 3.3vw, 44px);
    color: var(--black);
    line-height: 1.15;
}

.institutions-promo .button {
    flex: 0 0 200px;
}

@media (max-width: 760px) {
    .institutions-promo {
        flex-direction: column;
        align-items: flex-start;
    }
}