/* ==========================================================
   HORMUUD UNIVERSITY
   CORE VALUES PAGE
   ========================================================== */


.hu-values {
    --cv-green: #167a45;
    --cv-green-hover: #11673a;
    --cv-green-dark: #0a3420;

    --cv-cream: #f7f6f1;
    --cv-white: #ffffff;

    --cv-text: #1e2420;
    --cv-text-soft: #5f6761;
    --cv-muted: #858c87;

    --cv-line: #dedfd9;
    --cv-line-dark: #c7ccc8;

    --cv-gold: #b88a32;

    --cv-display: "Fraunces", Georgia, serif;
    --cv-body: "Inter", Arial, sans-serif;

    width: 100%;

    min-height: 100vh;

    color: var(--cv-text);

    background: var(--cv-white);

    font-family: var(--cv-body);

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;

    overflow: visible;
}


.hu-values *,
.hu-values *::before,
.hu-values *::after {
    box-sizing: border-box;
}


.hu-values button {
    font: inherit;

    -webkit-tap-highlight-color: transparent;
}


.hu-values a {
    color: inherit;

    text-decoration: none;
}


.cv-shell {
    width: min(
        1200px,
        calc(100% - 56px)
    );

    margin-inline: auto;
}


.cv-icons {
    position: absolute;

    width: 0;
    height: 0;

    overflow: hidden;
}


.cv-icon {
    width: 17px;
    height: 17px;

    flex: none;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;
}


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

.cv-hero {
    background:
        var(--cv-cream);

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


.cv-hero-grid {
    min-height: 590px;

    display: grid;

    grid-template-columns:
        minmax(0, 1.45fr)
        minmax(270px, .55fr);

    align-items: center;

    gap: 100px;

    padding-top: 100px;
    padding-bottom: 90px;
}


.cv-kicker {
    margin:
        0
        0
        22px;

    color:
        var(--cv-green);

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

    letter-spacing: .13em;

    text-transform: uppercase;
}


.cv-hero h1 {
    max-width: 830px;

    margin: 0;

    color: #171b18;

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

    font-size:
        clamp(
            50px,
            6vw,
            78px
        );

    font-weight: 600;

    line-height: 1;

    letter-spacing: -.043em;
}


.cv-hero h1 span {
    color:
        var(--cv-green);
}


.cv-hero-lead {
    max-width: 650px;

    margin:
        30px
        0
        0;

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

    font-size: 16px;

    line-height: 1.8;
}


.cv-explore {
    min-height: 44px;

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

    gap: 8px;

    margin-top: 31px;

    padding: 0;

    color:
        var(--cv-green);

    background: transparent;

    border: 0;

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

    cursor: pointer;
}


.cv-explore .cv-icon {
    width: 15px;
    height: 15px;

    transition:
        transform
        180ms ease;
}


.cv-explore:hover .cv-icon {
    transform:
        translateY(3px);
}


/* Hero side */

.cv-hero-side {
    align-self: end;

    padding:
        26px
        0
        12px;

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


.cv-hero-side-label {
    display: block;

    color:
        var(--cv-muted);

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

    letter-spacing: .12em;

    text-transform: uppercase;
}


.cv-hero-side strong {
    display: block;

    margin-top: 8px;

    color:
        var(--cv-green-dark);

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

    font-size:
        clamp(
            78px,
            8vw,
            112px
        );

    font-weight: 600;

    line-height: .9;

    letter-spacing: -.06em;
}


.cv-hero-side p {
    max-width: 285px;

    margin:
        23px
        0
        0;

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

    font-size: 11px;

    line-height: 1.7;
}


/* ==========================================================
   INTRO
   ========================================================== */

.cv-intro {
    padding:
        105px
        0;

    background: #fff;
}


.cv-intro-grid {
    display: grid;

    grid-template-columns:
        minmax(170px, .35fr)
        minmax(0, 1.65fr);

    gap: 90px;
}


.cv-intro-meta span {
    color:
        var(--cv-gold);

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

    letter-spacing: .12em;
}


.cv-intro-meta p {
    margin:
        14px
        0
        0;

    color:
        var(--cv-green);

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

    letter-spacing: .11em;

    text-transform: uppercase;
}


.cv-intro-copy h2 {
    max-width: 700px;

    margin: 0;

    color:
        var(--cv-green-dark);

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

    font-size:
        clamp(
            36px,
            4.5vw,
            54px
        );

    font-weight: 600;

    line-height: 1.08;

    letter-spacing: -.03em;
}


.cv-intro-copy p {
    max-width: 570px;

    margin:
        24px
        0
        0;

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

    font-size: 13px;

    line-height: 1.8;
}


/* ==========================================================
   VALUE LIST
   ========================================================== */

.cv-values-section {
    padding:
        25px
        0
        120px;

    background: #fff;
}


.cv-values-layout {
    display: grid;

    grid-template-columns:
        minmax(170px, .35fr)
        minmax(0, 1.65fr);

    gap: 90px;
}


/* Sticky left label */

.cv-values-side {
    position: relative;
}


.cv-values-side-inner {
    position: sticky;

    top: 100px;

    padding-top: 27px;

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


.cv-values-side span {
    display: block;

    color:
        var(--cv-green);

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

    letter-spacing: .11em;

    text-transform: uppercase;
}


.cv-values-side p {
    margin:
        10px
        0
        0;

    color:
        var(--cv-muted);

    font-size: 10px;
}


/* Values */

.cv-values-list {
    border-top:
        1px solid
        var(--cv-line);
}


.cv-value {
    position: relative;

    min-height: 170px;

    display: grid;

    grid-template-columns:
        70px
        1fr
        80px;

    align-items: center;

    gap: 20px;

    border-bottom:
        1px solid
        var(--cv-line);

    cursor: default;

    transition:
        padding-left
        350ms
        cubic-bezier(
            .22,
            1,
            .36,
            1
        );
}


.cv-value-number {
    color:
        var(--cv-muted);

    font-size: 9px;
    font-weight: 600;
}


.cv-value h2 {
    margin: 0;

    color:
        var(--cv-green-dark);

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

    font-size:
        clamp(
            39px,
            5vw,
            64px
        );

    font-weight: 600;

    line-height: 1;

    letter-spacing: -.035em;

    transition:
        color
        250ms ease;
}


/* right-side line */

.cv-value-mark {
    display: flex;

    justify-content: flex-end;
}


.cv-value-mark span {
    width: 34px;
    height: 1px;

    display: block;

    background:
        var(--cv-line-dark);

    transition:
        width
        350ms
        cubic-bezier(
            .22,
            1,
            .36,
            1
        ),
        background
        200ms ease;
}


@media (hover: hover) and (pointer: fine) {

    .cv-value:hover {
        padding-left: 12px;
    }


    .cv-value:hover h2 {
        color:
            var(--cv-green);
    }


    .cv-value:hover
    .cv-value-mark span {
        width: 65px;

        background:
            var(--cv-green);
    }

}


/* ==========================================================
   NICHE AREA
   ========================================================== */

.cv-niche {
    padding:
        110px
        0;

    color: #fff;

    background:
        var(--cv-green-dark);
}


.cv-niche-grid {
    display: grid;

    grid-template-columns:
        minmax(170px, .35fr)
        minmax(0, 1.65fr);

    gap: 90px;
}


.cv-niche-meta span {
    color:
        rgba(
            255,
            255,
            255,
            .55
        );

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

    letter-spacing: .1em;

    text-transform: uppercase;
}


.cv-niche-label {
    margin:
        0
        0
        24px;

    color:
        var(--cv-gold);

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

    letter-spacing: .12em;

    text-transform: uppercase;
}


.cv-niche-content h2 {
    max-width: 860px;

    margin: 0;

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

    font-size:
        clamp(
            40px,
            5vw,
            61px
        );

    font-weight: 600;

    line-height: 1.12;

    letter-spacing: -.03em;
}


.cv-niche-content h2 span {
    color:
        #a6c9b0;
}


/* ==========================================================
   CTA
   ========================================================== */

.cv-cta {
    padding:
        95px
        0;

    background:
        var(--cv-cream);
}


.cv-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 60px;
}


.cv-cta-label {
    display: block;

    margin-bottom: 12px;

    color:
        var(--cv-green);

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

    letter-spacing: .11em;

    text-transform: uppercase;
}


.cv-cta h2 {
    max-width: 670px;

    margin: 0;

    color:
        var(--cv-green-dark);

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

    font-size:
        clamp(
            34px,
            4vw,
            49px
        );

    font-weight: 600;

    line-height: 1.12;

    letter-spacing: -.025em;
}


.cv-cta-actions {
    flex: none;

    display: flex;
    align-items: center;

    gap: 25px;
}


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

    gap: 7px;

    color:
        var(--cv-green);

    font-size: 10px;
    font-weight: 600;
}


.cv-cta-link .cv-icon {
    width: 14px;
    height: 14px;

    transition:
        transform
        180ms ease;
}


.cv-cta-link:hover .cv-icon {
    transform:
        translateX(4px);
}


.cv-cta-button {
    min-height: 47px;

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

    padding:
        0
        19px;

    color: #fff !important;

    background:
        var(--cv-green);

    border-radius: 4px;


    transition:
        background
        170ms ease;
}


.cv-cta-button:hover {
    background:
        var(--cv-green-hover);
}


/* ==========================================================
   REVEAL
   ========================================================== */

.hu-values.js-ready
.cv-reveal {
    opacity: 0;

    transform:
        translateY(16px);

    transition:
        opacity
        700ms
        ease,
        transform
        700ms
        cubic-bezier(
            .22,
            1,
            .36,
            1
        );
}


.hu-values.js-ready
.cv-reveal.is-visible {
    opacity: 1;

    transform:
        translateY(0);
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 1000px) {

    .cv-hero-grid {
        grid-template-columns: 1fr;

        min-height: auto;

        gap: 60px;
    }


    .cv-hero-side {
        max-width: 560px;
    }


    .cv-intro-grid,
    .cv-values-layout,
    .cv-niche-grid {
        grid-template-columns:
            140px
            1fr;

        gap: 50px;
    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 720px) {

    .cv-shell {
        width:
            min(
                100% - 30px,
                1200px
            );
    }


    .cv-hero-grid {
        padding-top: 65px;
        padding-bottom: 60px;
    }


    .cv-hero h1 {
        font-size:
            clamp(
                43px,
                12vw,
                59px
            );
    }


    .cv-hero-lead {
        font-size: 14px;
    }


    .cv-hero-side strong {
        font-size: 70px;
    }


    .cv-intro {
        padding:
            75px
            0;
    }


    .cv-intro-grid,
    .cv-values-layout,
    .cv-niche-grid {
        grid-template-columns: 1fr;

        gap: 35px;
    }


    .cv-intro-copy h2 {
        font-size: 36px;
    }


    /*
     * Remove sticky side heading on mobile.
     */
    .cv-values-side-inner {
        position: static;

        padding-top: 0;

        border-top: 0;
    }


    .cv-values-section {
        padding-bottom: 80px;
    }


    .cv-value {
        min-height: 135px;

        grid-template-columns:
            43px
            1fr
            35px;

        gap: 10px;
    }


    .cv-value h2 {
        font-size:
            clamp(
                33px,
                10vw,
                46px
            );
    }


    .cv-value-mark span {
        width: 22px;
    }


    .cv-niche {
        padding:
            80px
            0;
    }


    .cv-niche-content h2 {
        font-size: 39px;
    }


    .cv-cta {
        padding:
            75px
            0;
    }


    .cv-cta-inner {
        display: block;
    }


    .cv-cta-actions {
        margin-top: 30px;

        justify-content:
            space-between;
    }

}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 460px) {

    .cv-shell {
        width:
            min(
                100% - 22px,
                1200px
            );
    }


    .cv-value {
        grid-template-columns:
            32px
            1fr
            25px;
    }


    .cv-value-number {
        font-size: 8px;
    }


    .cv-cta-actions {
        display: grid;

        gap: 20px;
    }


    .cv-cta-button {
        width: 100%;
    }

}


/* ==========================================================
   PAGE SCROLL SAFETY
   ========================================================== */

html,
body {
    height: auto !important;

    min-height: 100% !important;

    overflow-y: auto !important;
}


.hu-values {
    height: auto !important;

    max-height: none !important;

    overflow: visible !important;
}


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

@media (prefers-reduced-motion: reduce) {

    .hu-values *,
    .hu-values *::before,
    .hu-values *::after {
        scroll-behavior:
            auto !important;

        transition-duration:
            .01ms !important;
    }


    .hu-values.js-ready
    .cv-reveal {
        opacity: 1;

        transform: none;
    }

}

/* ==========================================================
   HORMUUD UNIVERSITY — CORE VALUES THEME 2026
   Page-specific Light + Dark mode layer.
   Keep this section at the END of core_values.css.
   ========================================================== */


/* ==========================================================
   LIGHT MODE — OFFICIAL HU BRAND
   ========================================================== */

.hu-values {
    --cv-green: #148154;
    --cv-green-hover: #0F6843;
    --cv-green-dark: #0F6843;

    --cv-blue: #2C85B7;
    --cv-blue-dark: #236E98;
    --cv-blue-soft: #EAF4F9;

    --cv-cream: #F8FAF9;
    --cv-white: #FFFFFF;

    --cv-text: #202522;
    --cv-text-soft: #606862;
    --cv-muted: #7B857E;

    --cv-line: #D9E0DC;
    --cv-line-dark: #C8D1CB;

    /* Replace the previous gold accent with HU blue. */
    --cv-gold: #2C85B7;

    color: var(--cv-text);
    background: var(--cv-white);
}


/* ---------- Light-mode HU identity corrections ---------- */

.hu-values .cv-hero {
    background: var(--cv-cream);
    border-bottom-color: var(--cv-line);
}

.hu-values .cv-hero h1 {
    color: var(--cv-text);
}

.hu-values .cv-intro,
.hu-values .cv-values-section {
    background: var(--cv-white);
}

.hu-values .cv-intro-meta span {
    color: var(--cv-blue);
}

.hu-values .cv-niche {
    background: #0F6843;
}

.hu-values .cv-niche-label {
    color: #8CC9E9;
}

.hu-values .cv-niche-content h2 span {
    color: #B9DDCB;
}

.hu-values .cv-cta {
    background: var(--cv-cream);
}


/* ==========================================================
   DARK MODE — PAGE TOKENS
   ========================================================== */

html[data-theme="dark"] .hu-values {
    --cv-green: #66C59B;
    --cv-green-hover: #86D5B2;
    --cv-green-dark: #86D5B2;

    --cv-blue: #72BCE3;
    --cv-blue-dark: #97D1EC;
    --cv-blue-soft: #173442;

    --cv-cream: #121B16;
    --cv-white: #0E1511;

    --cv-text: #EDF3EF;
    --cv-text-soft: #A9B5AE;
    --cv-muted: #7F8B84;

    --cv-line: #2D3A32;
    --cv-line-dark: #3A493F;

    --cv-gold: #72BCE3;

    color: var(--cv-text) !important;
    background: #0E1511 !important;
}


/* ==========================================================
   DARK — HERO
   ========================================================== */

html[data-theme="dark"] .hu-values .cv-hero {
    background: #121B16 !important;
    border-bottom-color: var(--cv-line) !important;
}

html[data-theme="dark"] .hu-values .cv-kicker {
    color: var(--cv-green) !important;
}

html[data-theme="dark"] .hu-values .cv-hero h1 {
    color: #F4F7F5 !important;
}

html[data-theme="dark"] .hu-values .cv-hero h1 span {
    color: var(--cv-green) !important;
}

html[data-theme="dark"] .hu-values .cv-hero-lead,
html[data-theme="dark"] .hu-values .cv-hero-side p {
    color: var(--cv-text-soft) !important;
}

html[data-theme="dark"] .hu-values .cv-explore {
    color: var(--cv-green) !important;
}

html[data-theme="dark"] .hu-values .cv-hero-side {
    border-top-color: var(--cv-line-dark) !important;
}

html[data-theme="dark"] .hu-values .cv-hero-side-label {
    color: var(--cv-muted) !important;
}

html[data-theme="dark"] .hu-values .cv-hero-side strong {
    color: var(--cv-green-dark) !important;
}


/* ==========================================================
   DARK — INTRO
   ========================================================== */

html[data-theme="dark"] .hu-values .cv-intro {
    background: #0E1511 !important;
}

html[data-theme="dark"] .hu-values .cv-intro-meta span {
    color: var(--cv-blue) !important;
}

html[data-theme="dark"] .hu-values .cv-intro-meta p {
    color: var(--cv-green) !important;
}

html[data-theme="dark"] .hu-values .cv-intro-copy h2 {
    color: var(--cv-green-dark) !important;
}

html[data-theme="dark"] .hu-values .cv-intro-copy p {
    color: var(--cv-text-soft) !important;
}


/* ==========================================================
   DARK — CORE VALUES LIST
   ========================================================== */

html[data-theme="dark"] .hu-values .cv-values-section {
    background: #0E1511 !important;
}

html[data-theme="dark"] .hu-values .cv-values-side-inner,
html[data-theme="dark"] .hu-values .cv-values-list,
html[data-theme="dark"] .hu-values .cv-value {
    border-color: var(--cv-line) !important;
}

html[data-theme="dark"] .hu-values .cv-values-side span {
    color: var(--cv-green) !important;
}

html[data-theme="dark"] .hu-values .cv-values-side p,
html[data-theme="dark"] .hu-values .cv-value-number {
    color: var(--cv-muted) !important;
}

html[data-theme="dark"] .hu-values .cv-value h2 {
    color: var(--cv-green-dark) !important;
}

html[data-theme="dark"] .hu-values .cv-value-mark span {
    background: var(--cv-line-dark) !important;
}


/* Preserve the existing interactive hover language */

@media (hover: hover) and (pointer: fine) {

    html[data-theme="dark"] .hu-values .cv-value:hover h2 {
        color: var(--cv-green) !important;
    }

    html[data-theme="dark"] .hu-values .cv-value:hover .cv-value-mark span {
        background: var(--cv-green) !important;
    }

}


/* ==========================================================
   DARK — NICHE / ACADEMIC IDENTITY
   Keep this as a strong branded section.
   ========================================================== */

html[data-theme="dark"] .hu-values .cv-niche {
    color: #F4F7F5 !important;
    background: #0B3322 !important;
}

html[data-theme="dark"] .hu-values .cv-niche-meta span {
    color: rgba(244, 247, 245, .56) !important;
}

html[data-theme="dark"] .hu-values .cv-niche-label {
    color: var(--cv-blue) !important;
}

html[data-theme="dark"] .hu-values .cv-niche-content h2 {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .hu-values .cv-niche-content h2 span {
    color: #9DD9BC !important;
}


/* ==========================================================
   DARK — CTA
   ========================================================== */

html[data-theme="dark"] .hu-values .cv-cta {
    background: #121B16 !important;
}

html[data-theme="dark"] .hu-values .cv-cta-label {
    color: var(--cv-green) !important;
}

html[data-theme="dark"] .hu-values .cv-cta h2 {
    color: var(--cv-green-dark) !important;
}

html[data-theme="dark"] .hu-values .cv-cta-link {
    color: var(--cv-green) !important;
}

html[data-theme="dark"] .hu-values .cv-cta-button {
    color: #0E1511 !important;
    background: var(--cv-green) !important;
}

html[data-theme="dark"] .hu-values .cv-cta-button:hover,
html[data-theme="dark"] .hu-values .cv-cta-button:focus-visible {
    background: var(--cv-green-dark) !important;
}


/* ==========================================================
   THEME TRANSITIONS
   ========================================================== */

.hu-values,
.hu-values .cv-hero,
.hu-values .cv-intro,
.hu-values .cv-values-section,
.hu-values .cv-value,
.hu-values .cv-niche,
.hu-values .cv-cta,
.hu-values .cv-cta-button {
    transition:
        background-color .24s ease,
        color .24s ease,
        border-color .24s ease;
}


/* ==========================================================
   MOBILE DARK MODE
   ========================================================== */

@media (max-width: 720px) {

    html[data-theme="dark"] .hu-values .cv-value {
        border-bottom-color: var(--cv-line) !important;
    }

}


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

@media (prefers-reduced-motion: reduce) {

    .hu-values,
    .hu-values .cv-hero,
    .hu-values .cv-intro,
    .hu-values .cv-values-section,
    .hu-values .cv-value,
    .hu-values .cv-niche,
    .hu-values .cv-cta,
    .hu-values .cv-cta-button {
        transition: none !important;
    }

}
