/* ============================================================
OIA UNISSULA — HOMEPAGE HERO
============================================================ */

/* ============================================================
HERO ROOT
============================================================ */

.hero {
    position: relative;

    min-height: calc(100vh - var(--nav-h));

    overflow: hidden;

    background: var(--bg);
}

.hero-slides {
    position: relative;

    min-height: calc(100vh - var(--nav-h));
}

@supports (height: 100svh) {
    .hero,
    .hero-slides {
        min-height: calc(100svh - var(--nav-h));
    }
}

/* ============================================================
HERO SLIDE
============================================================ */

.hero-slide {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ============================================================
HERO IMAGE
============================================================ */

.hero-slide-image {
    position: absolute;
    inset: 0;
    z-index: 0;

    overflow: hidden;

    background: var(--bg);

    pointer-events: none;
}

.hero-slide-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    opacity: 1;

    filter: brightness(0.92) saturate(1.02) contrast(1.03);

    transform: scale(1.015);

    transition: filter 0.5s ease, opacity 0.5s ease, transform 7s ease;
}

.hero-slide.active .hero-slide-image img {
    transform: scale(1.065);
}

/* ============================================================
HERO DEFAULT BACKGROUND
============================================================ */

.hero-slide-bg {
    position: absolute;
    inset: 0;
    z-index: 1;

    background: radial-gradient(
            circle at 82% 18%,
            var(--sage-100) 0%,
            transparent 45%
        ),
        radial-gradient(circle at 8% 88%, var(--sage-50) 0%, transparent 40%);

    pointer-events: none;
}

/* ============================================================
LIGHT MODE IMAGE OVERLAY
============================================================ */

html[data-theme="light"] .hero-slide-has-image .hero-slide-bg {
    background: radial-gradient(
            circle at 50% 48%,
            rgba(247, 250, 248, 0.58) 0%,
            rgba(247, 250, 248, 0.34) 28%,
            rgba(247, 250, 248, 0.12) 58%,
            transparent 78%
        ),
        linear-gradient(
            90deg,
            rgba(238, 245, 240, 0.16) 0%,
            rgba(238, 245, 240, 0.07) 38%,
            rgba(238, 245, 240, 0.03) 67%,
            rgba(238, 245, 240, 0.14) 100%
        ),
        linear-gradient(
            180deg,
            rgba(245, 249, 246, 0.04) 0%,
            rgba(245, 249, 246, 0.03) 62%,
            rgba(245, 249, 246, 0.22) 100%
        );
}

/* ============================================================
DARK MODE IMAGE
============================================================ */

html[data-theme="dark"] .hero-slide-image img {
    opacity: 1;

    filter: brightness(0.56) saturate(0.9) contrast(1.08);
}

html[data-theme="dark"] .hero-slide-bg {
    background: radial-gradient(circle at 82% 18%, #24352a 0%, transparent 45%),
        radial-gradient(circle at 8% 88%, #1e2b23 0%, transparent 40%);
}

html[data-theme="dark"] .hero-slide-has-image .hero-slide-bg {
    background: radial-gradient(
            circle at 50% 48%,
            rgba(7, 24, 15, 0.16) 0%,
            rgba(7, 24, 15, 0.08) 34%,
            transparent 65%
        ),
        linear-gradient(
            90deg,
            rgba(7, 24, 15, 0.38) 0%,
            rgba(7, 24, 15, 0.2) 42%,
            rgba(7, 24, 15, 0.1) 70%,
            rgba(7, 24, 15, 0.3) 100%
        ),
        linear-gradient(
            180deg,
            rgba(7, 24, 15, 0.1) 0%,
            rgba(7, 24, 15, 0.18) 60%,
            rgba(7, 24, 15, 0.52) 100%
        );
}

/* ============================================================
HERO DECORATIVE STARS
============================================================ */

.hero-star-field {
    position: absolute;
    inset: 0;
    z-index: 2;

    overflow: hidden;

    opacity: 0.44;

    pointer-events: none;
}

.hero-star-field .star-ornament {
    position: absolute;

    color: var(--sage-300);
}

html[data-theme="dark"] .hero-star-field .star-ornament {
    color: #34533f;
}

.hero-star-1 {
    top: -60px;
    right: -60px;

    width: 320px;
    height: 320px;
}

.hero-star-2 {
    bottom: -100px;
    left: -80px;

    width: 260px;
    height: 260px;

    color: var(--sage-100) !important;

    animation-direction: reverse;
}

/* ============================================================
HERO CONTENT
============================================================ */

.hero-content {
    position: relative;
    z-index: 3;

    width: min(100%, 940px);
    max-width: 940px;

    margin-inline: auto;

    padding: clamp(52px, 7vw, 86px) clamp(24px, 4vw, 48px);

    text-align: center;
}

/* ============================================================
CONTENT FOCUS BACKGROUND
============================================================ */

html[data-theme="light"] .hero-slide-has-image .hero-content::before {
    content: "";

    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -1;

    width: min(100%, 920px);
    height: 118%;

    border-radius: 50%;

    background: radial-gradient(
        ellipse at center,
        rgba(248, 251, 249, 0.54) 0%,
        rgba(248, 251, 249, 0.28) 44%,
        rgba(248, 251, 249, 0.06) 70%,
        transparent 84%
    );

    filter: blur(7px);

    transform: translate(-50%, -50%);

    pointer-events: none;
}

html[data-theme="dark"] .hero-slide-has-image .hero-content::before {
    content: "";

    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -1;

    width: min(100%, 920px);
    height: 118%;

    border-radius: 50%;

    background: radial-gradient(
        ellipse at center,
        rgba(6, 21, 13, 0.2) 0%,
        rgba(6, 21, 13, 0.08) 48%,
        transparent 78%
    );

    transform: translate(-50%, -50%);

    pointer-events: none;
}

/* ============================================================
HERO EYEBROW
============================================================ */

.hero-eyebrow {
    margin: 0 0 18px;

    color: var(--accent-deep);

    font-size: clamp(11px, 1.2vw, 13px);
    font-weight: 800;
    line-height: 1.4;

    letter-spacing: 2.4px;
    text-transform: uppercase;
}

html[data-theme="light"] .hero-slide-has-image .hero-eyebrow {
    color: #20613e;

    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.95),
        0 3px 18px rgba(255, 255, 255, 0.72);
}

html[data-theme="dark"] .hero-slide-has-image .hero-eyebrow {
    color: #d0e8d8;

    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.46);
}

/* ============================================================
HERO TITLE
============================================================ */

.hero-title {
    width: 100%;
    max-width: 940px;

    margin: 0 auto 24px;

    color: var(--text);

    font-family: var(--font-display);

    font-size: clamp(44px, 5.1vw, 76px);
    font-weight: 700;
    line-height: 1.04;

    letter-spacing: -0.025em;

    text-wrap: balance;

    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

html[data-theme="light"] .hero-slide-has-image .hero-title {
    color: #102219;

    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.95),
        0 4px 24px rgba(255, 255, 255, 0.78);
}

html[data-theme="dark"] .hero-slide-has-image .hero-title {
    color: #f4f8f5;

    text-shadow: 0 5px 28px rgba(0, 0, 0, 0.42);
}

/* ============================================================
LONG HERO TITLE
============================================================ */

.hero-slide-long-title .hero-content {
    width: min(100%, 1020px);
    max-width: 1020px;
}

.hero-slide-long-title .hero-title {
    max-width: 1020px;

    font-size: clamp(42px, 4.7vw, 70px);
}

/* ============================================================
HERO DESCRIPTION
============================================================ */

.hero-tagline {
    max-width: 760px;

    margin: 0 auto 32px;

    color: var(--text-soft);

    font-size: clamp(16px, 1.45vw, 20px);
    line-height: 1.65;

    text-wrap: balance;
}

html[data-theme="light"] .hero-slide-has-image .hero-tagline {
    color: #405548;

    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.96),
        0 3px 16px rgba(255, 255, 255, 0.76);
}

html[data-theme="dark"] .hero-slide-has-image .hero-tagline {
    color: rgba(240, 247, 242, 0.8);

    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.42);
}

/* ============================================================
HERO ACTIONS
============================================================ */

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 12px;
}

.hero-actions .btn {
    min-height: 52px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 27px;

    border-radius: 999px;

    white-space: nowrap;

    transition: transform 0.2s ease, border-color 0.2s ease,
        background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.hero-actions .btn:hover {
    transform: translateY(-2px);
}

/* ============================================================
LIGHT MODE HERO BUTTONS
============================================================ */

html[data-theme="light"] .hero-slide-has-image .hero-actions .btn-solid {
    border: 1px solid #286f49;

    background: #286f49;
    color: #ffffff;

    box-shadow: 0 12px 30px rgba(23, 82, 51, 0.2);
}

html[data-theme="light"] .hero-slide-has-image .hero-actions .btn-solid:hover {
    border-color: #1c5b3a;

    background: #1c5b3a;
    color: #ffffff;

    box-shadow: 0 15px 34px rgba(23, 82, 51, 0.26);
}

html[data-theme="light"] .hero-slide-has-image .hero-actions .btn-ghost {
    border: 1px solid rgba(26, 67, 44, 0.36);

    background: rgba(255, 255, 255, 0.58);
    color: #15281d;

    box-shadow: 0 10px 30px rgba(18, 43, 28, 0.08);

    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

html[data-theme="light"] .hero-slide-has-image .hero-actions .btn-ghost:hover {
    border-color: #286f49;

    background: rgba(255, 255, 255, 0.86);
    color: #205f3e;

    box-shadow: 0 14px 34px rgba(18, 43, 28, 0.12);
}

/* ============================================================
DARK MODE HERO BUTTONS
============================================================ */

html[data-theme="dark"] .hero-slide-has-image .hero-actions .btn-solid {
    border: 1px solid #dcece2;

    background: #dcece2;
    color: #13271b;

    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .hero-slide-has-image .hero-actions .btn-solid:hover {
    border-color: #ffffff;

    background: #ffffff;
    color: #13271b;
}

html[data-theme="dark"] .hero-slide-has-image .hero-actions .btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.32);

    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;

    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

html[data-theme="dark"] .hero-slide-has-image .hero-actions .btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.62);

    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

/* ============================================================
HERO COUNTER
============================================================ */

.hero-counter {
    position: absolute;
    top: 50%;
    right: clamp(22px, 3vw, 46px);
    z-index: 4;

    display: flex;
    flex-direction: column;

    gap: 22px;

    transform: translateY(-50%);
}

.hero-counter-item {
    display: block;

    min-width: 128px;

    padding: 0;

    border: 0;

    background: transparent;
    color: inherit;

    text-align: right;

    opacity: 0.44;

    cursor: pointer;

    transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero-counter-item:hover {
    opacity: 0.78;
}

.hero-counter-item.active {
    opacity: 1;

    transform: translateX(-2px);
}

.hero-counter-label {
    display: block;

    overflow: hidden;

    color: var(--text-soft);

    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;

    letter-spacing: 1.5px;

    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.hero-counter-number {
    display: block;

    margin: 4px 0 7px;

    color: var(--accent-deep);

    font-family: var(--font-display);
    font-size: 20px;
    line-height: 1.2;
}

.hero-counter-bar {
    display: block;

    width: 34px;
    height: 2px;

    margin-left: auto;

    background: var(--border);

    transition: width 0.2s ease, background 0.2s ease;
}

.hero-counter-item.active .hero-counter-bar {
    width: 46px;

    background: var(--accent-deep);
}

/* ============================================================
LIGHT MODE HERO COUNTER
============================================================ */

html[data-theme="light"]
    .hero-slide-has-image
    ~ .hero-counter
    .hero-counter-item {
    opacity: 0.58;
}

html[data-theme="light"] .hero-counter-item:hover {
    opacity: 0.84;
}

html[data-theme="light"] .hero-counter-item.active {
    opacity: 1;
}

html[data-theme="light"] .hero-counter-label {
    color: #405448;

    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.95);
}

html[data-theme="light"] .hero-counter-number {
    color: #256642;

    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.95);
}

html[data-theme="light"] .hero-counter-bar {
    background: rgba(24, 68, 43, 0.28);
}

html[data-theme="light"] .hero-counter-item.active .hero-counter-bar {
    background: #286f49;
}

/* ============================================================
DARK MODE HERO COUNTER
============================================================ */

html[data-theme="dark"] .hero-counter-label {
    color: rgba(255, 255, 255, 0.62);

    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .hero-counter-number {
    color: #d7eadf;

    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .hero-counter-bar {
    background: rgba(255, 255, 255, 0.22);
}

html[data-theme="dark"] .hero-counter-item.active .hero-counter-bar {
    background: #d7eadf;
}

/* ============================================================
HERO PROGRESS
============================================================ */

.hero-progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 5;

    height: 2px;

    background: var(--border);
}

.hero-progress-fill {
    height: 100%;

    background: var(--accent-deep);

    transition: width 0.4s ease;
}

html[data-theme="dark"] .hero-progress {
    background: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .hero-progress-fill {
    background: #d4e8dc;
}

/* ============================================================
HERO SCROLL INDICATOR
============================================================ */

.hero-scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    z-index: 4;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 8px;

    color: var(--text-soft);

    transform: translateX(-50%);
}

.hero-scroll > span:last-child {
    color: var(--text-soft);

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.scroll-line {
    position: relative;

    display: block;

    width: 1px;
    height: 34px;

    overflow: hidden;

    background: var(--border);
}

.scroll-line::after {
    content: "";

    position: absolute;
    top: -100%;
    left: 0;

    width: 100%;
    height: 100%;

    background: var(--accent-deep);

    animation: home-scroll-line 1.8s ease-in-out infinite;
}

@keyframes home-scroll-line {
    50%,
    100% {
        top: 100%;
    }
}

/* ============================================================
LIGHT MODE SCROLL INDICATOR
============================================================ */

html[data-theme="light"] .hero-scroll {
    color: #31483a;
}

html[data-theme="light"] .hero-scroll > span:last-child {
    color: #31483a;

    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.95);
}

html[data-theme="light"] .scroll-line {
    background: rgba(24, 68, 43, 0.28);
}

html[data-theme="light"] .scroll-line::after {
    background: #286f49;
}

/* ============================================================
DARK MODE SCROLL INDICATOR
============================================================ */

html[data-theme="dark"] .hero-scroll {
    color: rgba(255, 255, 255, 0.68);
}

html[data-theme="dark"] .hero-scroll > span:last-child {
    color: rgba(255, 255, 255, 0.68);

    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .scroll-line {
    background: rgba(255, 255, 255, 0.22);
}

html[data-theme="dark"] .scroll-line::after {
    background: #d7eadf;
}

/* ============================================================
RESPONSIVE — LARGE TABLET
============================================================ */

@media (max-width: 1180px) {
    .hero-content {
        width: min(100%, 840px);
        max-width: 840px;

        padding-right: 130px;
        padding-left: 40px;
    }

    .hero-title,
    .hero-slide-long-title .hero-title {
        max-width: 840px;

        font-size: clamp(42px, 5.3vw, 68px);
    }

    .hero-tagline {
        max-width: 700px;
    }

    .hero-counter {
        right: 26px;
    }

    .hero-counter-item {
        min-width: 112px;
    }
}

/* ============================================================
RESPONSIVE — TABLET
============================================================ */

@media (max-width: 1000px) {
    .hero-content,
    .hero-slide-long-title .hero-content {
        width: min(100%, 760px);
        max-width: 760px;

        padding: 60px 96px 72px 30px;
    }

    .hero-title,
    .hero-slide-long-title .hero-title {
        max-width: 760px;

        font-size: clamp(40px, 6vw, 62px);
    }

    .hero-tagline {
        max-width: 640px;

        font-size: clamp(15px, 2vw, 18px);
    }

    .hero-counter {
        right: 18px;

        gap: 18px;
    }

    .hero-counter-item {
        min-width: 90px;
    }

    .hero-counter-label {
        max-width: 90px;
    }
}

/* ============================================================
RESPONSIVE — SMALL TABLET
============================================================ */

@media (max-width: 820px) {
    .hero-content,
    .hero-slide-long-title .hero-content {
        width: 100%;
        max-width: 100%;

        padding: 62px 72px 76px 28px;
    }

    .hero-title,
    .hero-slide-long-title .hero-title {
        max-width: 680px;

        font-size: clamp(38px, 7.8vw, 58px);
        line-height: 1.07;
    }

    .hero-tagline {
        max-width: 600px;

        line-height: 1.6;
    }

    .hero-counter {
        right: 14px;

        gap: 15px;
    }

    .hero-counter-item {
        min-width: 42px;
    }

    .hero-counter-label {
        display: none;
    }

    .hero-counter-number {
        font-size: 18px;
    }

    .hero-counter-bar {
        width: 26px;
    }

    .hero-counter-item.active .hero-counter-bar {
        width: 36px;
    }
}

/* ============================================================
RESPONSIVE — MOBILE
============================================================ */

@media (max-width: 640px) {
    .hero,
    .hero-slides {
        min-height: calc(100vh - var(--nav-h));
    }

    @supports (height: 100svh) {
        .hero,
        .hero-slides {
            min-height: calc(100svh - var(--nav-h));
        }
    }

    .hero-content,
    .hero-slide-long-title .hero-content {
        width: 100%;

        padding: 48px 22px 76px;
    }

    html[data-theme="light"] .hero-slide-has-image .hero-content::before,
    html[data-theme="dark"] .hero-slide-has-image .hero-content::before {
        width: 112%;
        height: 110%;
    }

    .hero-eyebrow {
        margin-bottom: 14px;

        font-size: 10.5px;

        letter-spacing: 1.8px;
    }

    .hero-title,
    .hero-slide-long-title .hero-title {
        width: 100%;
        max-width: 560px;

        margin-bottom: 20px;

        font-size: clamp(36px, 10.5vw, 52px);
        line-height: 1.07;

        letter-spacing: -0.02em;
    }

    .hero-tagline {
        max-width: 520px;

        margin-bottom: 26px;

        font-size: 15.5px;
        line-height: 1.55;
    }

    .hero-counter {
        display: none;
    }

    .hero-actions {
        gap: 10px;
    }

    .hero-actions .btn {
        min-height: 48px;

        padding-inline: 22px;
    }

    .hero-scroll {
        bottom: 20px;
    }

    .hero-slide-image img {
        object-position: center;
    }
}

/* ============================================================
RESPONSIVE — SMALL MOBILE
============================================================ */

@media (max-width: 480px) {
    .hero-content,
    .hero-slide-long-title .hero-content {
        padding: 42px 18px 58px;
    }

    .hero-title,
    .hero-slide-long-title .hero-title {
        max-width: 100%;

        font-size: clamp(34px, 11vw, 46px);
        line-height: 1.08;
    }

    .hero-tagline {
        font-size: 15px;
    }

    .hero-actions {
        width: 100%;

        flex-direction: column;
    }

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

    .hero-scroll {
        display: none;
    }
}

/* ============================================================
REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: none;
    }

    .hero-slide-image img,
    .hero-slide.active .hero-slide-image img {
        transform: none;

        transition: none;
    }

    .scroll-line::after {
        animation: none;
    }

    .hero-actions .btn,
    .hero-counter-item,
    .hero-counter-bar {
        transition: none;
    }
}
/* ============================================================
DEGREE PROGRAMS
============================================================ */

.home-degree-section {
    position: relative;

    overflow: hidden;

    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.home-degree-section::before {
    content: "";

    position: absolute;
    top: -140px;
    right: -120px;

    width: 320px;
    height: 320px;

    border: 1px solid var(--border);

    opacity: 0.45;

    transform: rotate(45deg);
}

.home-degree-section .container {
    position: relative;
    z-index: 1;
}

.home-degree-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: clamp(18px, 3vw, 28px);
}

.home-degree-card {
    position: relative;

    min-height: 420px;

    display: flex;
    flex-direction: column;

    padding: clamp(24px, 3vw, 34px);

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: var(--degree-background, var(--surface));

    color: var(--degree-color, var(--text));

    box-shadow: 0 12px 34px rgba(20, 32, 26, 0.06);

    transition: transform 0.25s ease, border-color 0.25s ease,
        box-shadow 0.25s ease;
}

[data-theme="dark"] .home-degree-card {
    background: color-mix(in srgb, var(--surface) 92%, var(--accent) 8%);

    color: var(--text);
}

.home-degree-card:hover {
    border-color: var(--sage-300);

    box-shadow: 0 22px 50px rgba(20, 32, 26, 0.12);

    transform: translateY(-6px);
}

[data-theme="dark"] .home-degree-card:hover {
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

.home-degree-card-background {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.45s ease;
}

.home-degree-card:hover .home-degree-card-background {
    transform: scale(1.04);
}

.home-degree-card-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        180deg,
        rgba(13, 25, 19, 0.42) 0%,
        rgba(13, 25, 19, 0.88) 100%
    );
}

.home-degree-card:has(.home-degree-card-background) {
    color: #ffffff;
}

.home-degree-card-top,
.home-degree-card-content,
.home-degree-link {
    position: relative;
    z-index: 2;
}

.home-degree-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: clamp(48px, 6vw, 78px);
}

.home-degree-number {
    color: color-mix(in srgb, currentColor 60%, transparent);

    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
}

.home-degree-icon {
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid color-mix(in srgb, currentColor 18%, transparent);

    border-radius: 14px;

    background: color-mix(in srgb, currentColor 6%, transparent);

    color: var(--accent-deep);
}

.home-degree-card:has(.home-degree-card-background) .home-degree-icon {
    color: #ffffff;
}

.home-degree-icon svg {
    width: 23px;
    height: 23px;
}

.home-degree-card-content {
    flex: 1;
}

.home-degree-eyebrow {
    display: inline-block;

    margin-bottom: 12px;

    color: var(--accent-deep);

    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.home-degree-card:has(.home-degree-card-background) .home-degree-eyebrow {
    color: rgba(255, 255, 255, 0.78);
}

.home-degree-title {
    margin: 0 0 16px;

    color: inherit;

    font-family: var(--font-display);
    font-size: clamp(30px, 3vw, 42px);

    font-weight: 700;
    line-height: 1.05;
}

.home-degree-description {
    margin: 0;

    color: color-mix(in srgb, currentColor 72%, transparent);

    font-size: 14.5px;
    line-height: 1.7;
}

.home-degree-card:has(.home-degree-card-background) .home-degree-description {
    color: rgba(255, 255, 255, 0.78);
}

.home-degree-link {
    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    margin-top: 30px;
    padding-top: 18px;

    border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);

    color: inherit;

    font-size: 13.5px;
    font-weight: 700;

    transition: color 0.18s ease;
}

.home-degree-link svg {
    width: 18px;
    height: 18px;

    transition: transform 0.18s ease;
}

.home-degree-link:hover {
    color: var(--accent-deep);
}

.home-degree-card:has(.home-degree-card-background) .home-degree-link:hover {
    color: var(--sage-300);
}

.home-degree-link:hover svg {
    transform: translateX(4px);
}

@media (max-width: 960px) {
    .home-degree-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-degree-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .home-degree-grid {
        grid-template-columns: 1fr;
    }

    .home-degree-card:last-child {
        grid-column: auto;
    }

    .home-degree-card {
        min-height: 360px;
    }

    .home-degree-card-top {
        margin-bottom: 44px;
    }
}

/* ============================================================
SHARED SECTIONS
============================================================ */

.section {
    padding: clamp(64px, 8vw, 110px) 0;
}

.section.alt {
    background: var(--bg-alt);
}

.section-header {
    margin-bottom: clamp(32px, 5vw, 56px);
}

.section-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;

    gap: 24px;
}

.section-header .label,
.about-copy > .label {
    color: var(--accent-deep);

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.divider {
    width: 44px;
    height: 2px;

    margin: 14px 0 18px;

    background: var(--sage-300);
}

.section-title {
    margin: 0;

    color: var(--text);

    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.2;
}

.section-lede {
    max-width: 660px;

    margin: 14px 0 0;

    color: var(--text-soft);

    font-size: clamp(14.5px, 2vw, 16.5px);
    line-height: 1.7;
}

/* ============================================================
ABOUT
============================================================ */

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;

    align-items: center;

    gap: clamp(36px, 6vw, 68px);
}

.about-description {
    margin-top: 20px;
}

.about-description p,
.about-copy p {
    margin: 0 0 16px;

    color: var(--text-soft);

    font-size: 16px;
    line-height: 1.75;
}

.about-description p:last-child,
.about-copy p:last-child {
    margin-bottom: 0;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 28px;
}

.about-stat {
    padding-left: 17px;

    border-left: 2px solid var(--sage-300);
}

.about-stat b {
    display: block;

    margin-bottom: 3px;

    color: var(--accent-deep);

    font-family: var(--font-display);
    font-size: clamp(28px, 3vw, 34px);
    line-height: 1.2;
}

.about-stat span {
    color: var(--text-soft);

    font-size: 13.5px;
    line-height: 1.5;
}

/* ============================================================
PROGRAMS
============================================================ */

.program-grid,
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));

    gap: clamp(16px, 3vw, 26px);
}

.product-card {
    position: relative;

    min-height: 100%;

    display: flex;
    flex-direction: column;

    gap: 16px;

    padding: clamp(24px, 3.5vw, 32px) clamp(20px, 3vw, 28px);

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: var(--surface);

    box-shadow: none;

    transition: transform 0.25s ease, border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.product-card:hover {
    border-color: var(--sage-300);

    box-shadow: var(--shadow-md);

    transform: translateY(-5px);
}

.product-card::before {
    content: "";

    position: absolute;
    top: 22px;
    right: 22px;

    width: 20px;
    height: 20px;

    background: var(--sage-300);

    clip-path: polygon(
        50% 0%,
        61% 39%,
        100% 50%,
        61% 61%,
        50% 100%,
        39% 61%,
        0% 50%,
        39% 39%
    );

    opacity: 0.65;
}

.product-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: var(--sage-50);
    color: var(--accent-deep);
}

[data-theme="dark"] .product-icon {
    background: var(--bg-alt);
}

.product-icon svg {
    width: 24px;
    height: 24px;
}

.product-content {
    flex: 1;
}

.product-name {
    margin: 0 0 8px;

    color: var(--text);

    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

.product-desc {
    margin: 0;

    color: var(--text-soft);

    font-size: 14.5px;
    line-height: 1.65;
}

.product-link {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    margin-top: auto;

    color: var(--accent-deep);

    font-size: 13.5px;
    font-weight: 700;
}

.product-link svg {
    width: 14px;
    height: 14px;

    transition: transform 0.2s ease;
}

.product-link:hover svg {
    transform: translateX(4px);
}

/* ============================================================
PREMIUM HOMEPAGE GALLERY
============================================================ */

.home-gallery-section {
    position: relative;

    overflow: hidden;

    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.home-gallery-section::before {
    content: "";

    position: absolute;
    top: -190px;
    right: -150px;

    width: 430px;
    height: 430px;

    border: 1px solid var(--border);
    border-radius: 50%;

    opacity: 0.35;

    pointer-events: none;
}

.home-gallery-section .container {
    position: relative;
    z-index: 1;
}

.home-gallery-header {
    margin-bottom: clamp(34px, 5vw, 58px);
}

.home-gallery-header .section-header {
    max-width: 720px;

    margin-bottom: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: clamp(150px, 13vw, 215px);

    gap: clamp(10px, 1.6vw, 18px);
}

.gallery-item {
    position: relative;

    min-width: 0;

    display: flex;
    align-items: flex-end;

    margin: 0;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 20px;

    background: var(--sage-50);

    isolation: isolate;

    box-shadow: 0 13px 34px rgba(15, 30, 20, 0.07);

    transition: transform 0.25s ease, box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.gallery-item:nth-child(6n + 1) {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item:nth-child(6n + 4) {
    grid-column: span 2;
}

.gallery-item:hover {
    border-color: var(--sage-300);

    box-shadow: 0 24px 52px rgba(15, 30, 20, 0.14);

    transform: translateY(-4px);
}

.gallery-item img {
    position: absolute;
    inset: 0;
    z-index: -2;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transform: scale(1.01);

    transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.065);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;

    background: linear-gradient(
        180deg,
        rgba(7, 22, 14, 0.04) 0%,
        rgba(7, 22, 14, 0.16) 42%,
        rgba(7, 22, 14, 0.83) 100%
    );

    pointer-events: none;
}

.gallery-item .star-ornament {
    position: absolute;
    top: 17px;
    right: 17px;

    width: 23px;
    height: 23px;

    color: rgba(255, 255, 255, 0.74);

    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.16));
}

.gallery-caption {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 5px;

    padding: clamp(17px, 2.4vw, 27px);

    color: #ffffff;
}

.gallery-category {
    color: rgba(255, 255, 255, 0.64);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.gallery-caption strong {
    max-width: 520px;

    color: #ffffff;

    font-family: var(--font-display);
    font-size: clamp(16px, 1.7vw, 23px);
    font-weight: 700;
    line-height: 1.25;

    text-wrap: balance;
}

.gallery-caption small {
    color: rgba(255, 255, 255, 0.62);

    font-size: 10px;
}

@media (max-width: 940px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        grid-auto-rows: 190px;
    }

    .gallery-item:nth-child(6n + 1) {
        grid-column: span 2;
        grid-row: span 2;
    }

    .gallery-item:nth-child(6n + 4) {
        grid-column: span 1;
    }
}

@media (max-width: 560px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 230px;
    }

    .gallery-item:nth-child(6n + 1),
    .gallery-item:nth-child(6n + 4) {
        grid-column: auto;
        grid-row: auto;
    }

    .gallery-caption strong {
        font-size: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-item,
    .gallery-item img {
        transition: none;
    }

    .gallery-item:hover {
        transform: none;
    }

    .gallery-item:hover img {
        transform: none;
    }
}

/* ============================================================
ARTICLES
============================================================ */

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));

    gap: clamp(18px, 3vw, 30px);
}

.article-card {
    display: flex;
    flex-direction: column;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: var(--surface);

    transition: transform 0.25s ease, border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.article-card:hover {
    border-color: var(--sage-300);

    box-shadow: var(--shadow-md);

    transform: translateY(-5px);
}

.article-thumb {
    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: var(--sage-50);
}

.article-thumb > a {
    display: block;

    width: 100%;
    height: 100%;
}

.article-thumb img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.4s ease;
}

.article-card:hover .article-thumb img {
    transform: scale(1.035);
}

.article-thumb-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--sage-300);
}

.article-thumb-placeholder svg {
    width: 40px;
    height: 40px;
}

.article-body {
    flex: 1;

    display: flex;
    flex-direction: column;

    padding: clamp(18px, 3vw, 24px) clamp(18px, 3vw, 24px)
        clamp(20px, 3vw, 26px);
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;

    gap: 6px 12px;

    margin-bottom: 12px;

    color: var(--text-soft);

    font-size: 12.5px;
}

.article-category {
    color: var(--accent-deep);

    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.article-title {
    margin: 0 0 10px;

    color: var(--text);

    font-size: clamp(16.5px, 2.6vw, 18.5px);
    font-weight: 700;
    line-height: 1.45;
}

.article-title a {
    color: inherit;
}

.article-title a:hover {
    color: var(--accent-deep);
}

.article-excerpt {
    display: -webkit-box;

    margin: 0 0 18px;

    overflow: hidden;

    color: var(--text-soft);

    font-size: 14.5px;
    line-height: 1.65;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: auto;
    padding-top: 16px;

    border-top: 1px solid var(--border);
}

.article-author {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 10px;
}

.author-avatar {
    width: 30px;
    height: 30px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--sage-50);
    color: var(--accent-deep);
}

[data-theme="dark"] .author-avatar {
    background: var(--bg-alt);
}

.author-avatar svg {
    width: 15px;
    height: 15px;
}

.author-name {
    overflow: hidden;

    font-size: 13.5px;
    font-weight: 600;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-read-time {
    color: var(--text-soft);

    font-size: 12.5px;

    white-space: nowrap;
}

.article-readmore {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    margin-top: 16px;

    color: var(--accent-deep);

    font-size: 13.5px;
    font-weight: 700;
}

.article-readmore svg {
    width: 15px;
    height: 15px;

    transition: transform 0.2s ease;
}

.article-readmore:hover svg {
    transform: translateX(4px);
}

/* Article empty */

.article-empty {
    grid-column: 1 / -1;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 50px 24px;

    border: 1px dashed var(--border);
    border-radius: var(--radius-md);

    text-align: center;
}

.article-empty-icon {
    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 14px;

    border-radius: 50%;

    background: var(--sage-50);
    color: var(--accent-deep);
}

[data-theme="dark"] .article-empty-icon {
    background: var(--bg-alt);
}

.article-empty-icon svg {
    width: 25px;
    height: 25px;
}

.article-empty h3 {
    margin: 0 0 6px;

    font-size: 18px;
}

.article-empty p {
    max-width: 460px;

    margin: 0;

    color: var(--text-soft);
}

/* ============================================================
CONTACT
============================================================ */

#contact {
    position: relative;

    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

[data-theme="dark"] #contact {
    background: linear-gradient(180deg, #122219 0%, #15271d 100%);
}

#contact.section {
    padding-bottom: clamp(60px, 7vw, 88px);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;

    gap: clamp(36px, 6vw, 64px);
}

.contact-info-item {
    display: flex;

    gap: 16px;

    padding: 20px 0;

    border-bottom: 1px solid var(--border);
}

.contact-info-item:first-child {
    padding-top: 0;
}

.contact-info-item:last-child {
    border-bottom: 0;
}

.contact-icon {
    width: 44px;
    height: 44px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: var(--sage-50);
    color: var(--accent-deep);
}

[data-theme="dark"] .contact-icon {
    background: var(--bg-alt);
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.contact-info-item h3,
.contact-info-item h4 {
    margin: 0 0 4px;

    color: var(--text);

    font-size: 15px;
    line-height: 1.4;
}

.contact-info-item p {
    margin: 0;

    color: var(--text-soft);

    font-size: 14.5px;
    line-height: 1.65;
}

.contact-info-item a {
    transition: color 0.18s ease;
}

.contact-info-item a:hover {
    color: var(--accent-deep);
}

.contact-form-wrapper {
    min-width: 0;
}

.contact-form {
    display: grid;

    gap: 16px;

    padding: clamp(22px, 4vw, 34px);

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: var(--surface);

    box-shadow: var(--shadow-sm);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 16px;
}

.form-field {
    min-width: 0;
}

.contact-form label {
    display: block;

    margin-bottom: 6px;

    color: var(--text);

    font-size: 13px;
    font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;

    padding: 12px 14px;

    border: 1px solid var(--border);
    border-radius: var(--radius-sm);

    outline: 0;

    background: var(--bg);
    color: var(--text);

    font-family: inherit;
    font-size: 14.5px;

    transition: border-color 0.18s ease, background 0.18s ease,
        box-shadow 0.18s ease;
}

.contact-form input:hover,
.contact-form select:hover,
.contact-form textarea:hover {
    border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--accent-deep);

    box-shadow: 0 0 0 3px
        color-mix(in srgb, var(--accent-deep) 15%, transparent);
}

.contact-form textarea {
    min-height: 130px;

    resize: vertical;
}

.contact-submit {
    justify-self: start;

    min-width: 142px;
}

/* ============================================================
HOME RESPONSIVE
============================================================ */

@media (max-width: 900px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        gap: 38px;
    }

    .contact-grid {
        gap: 40px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
    }

    .gallery-item:nth-child(6n + 1) {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 720px) {
    .hero-counter {
        right: 14px;

        gap: 14px;
    }

    .hero-counter-label {
        display: none;
    }

    .section-header-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .hero-content {
        padding-inline: 22px;
    }

    .hero-title {
        font-size: clamp(34px, 11vw, 52px);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        font-size: 16px;
    }
}

@media (max-width: 560px) {
    .article-card {
        display: flex;
        flex-direction: row;
        align-items: flex-start;

        gap: 14px;

        padding: 14px;
    }

    .article-thumb {
        width: 104px;
        height: 104px;

        flex-shrink: 0;

        border-radius: var(--radius-sm);

        aspect-ratio: auto;
    }

    .article-body {
        min-width: 0;

        padding: 0;
    }

    .article-meta {
        margin-bottom: 6px;

        font-size: 11.5px;
    }

    .article-title {
        display: -webkit-box;

        margin-bottom: 6px;

        overflow: hidden;

        font-size: 15.5px;

        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .article-excerpt,
    .article-readmore {
        display: none;
    }

    .article-footer {
        margin-top: 2px;
        padding-top: 8px;

        border-top: 0;
    }

    .author-name {
        max-width: 110px;
    }
}

@media (max-width: 480px) {
    .hero-counter,
    .hero-scroll {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
    }

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

    .about-stats {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 170px;
    }

    .gallery-item:nth-child(6n + 1) {
        grid-column: span 1;
    }

    .section-header-row .btn {
        width: 100%;
    }

    .contact-submit {
        width: 100%;
    }
}

.contact-form-heading {
    margin-bottom: 22px;
}

.contact-form-heading h3 {
    margin: 0;

    color: var(--text);

    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.2;
}

.form-field-error {
    display: block;

    margin-top: 7px;

    color: #b73a3a;

    font-size: 11px;
    line-height: 1.5;
}

[data-theme="dark"] .form-field-error {
    color: #ff9999;
}

.contact-honeypot {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    overflow: hidden !important;

    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;

    white-space: nowrap !important;
}
