/* =========================================================
   BRUDER KLAUS SCHOOL
   SCHOOL HISTORY SECTION
   ========================================================= */

.bks-history {
    --bks-navy: #0D0B61;
    --bks-white: #ffffff;
    --bks-gold: #F4CE14;
    --bks-text: #30304a;
    --bks-muted: #707086;
    --bks-soft: #f8f8fb;
    --bks-border: rgba(13, 11, 97, 0.10);

    position: relative;
    overflow: hidden;
    background-color: #ffffff;

    background-size: 32px 32px;

    padding: 70px 20px 80px;

    color: var(--bks-text);

    font-family:
        "Poppins",
        "Segoe UI",
        Arial,
        sans-serif;
}


/* =========================================================
   DECORATIVE ORBS
   ========================================================= */

.bks-history-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(1px);
}

.bks-history-orb-one {
    width: 360px;
    height: 360px;

    top: 80px;
    left: -180px;

    background:
        radial-gradient(
            circle,
            rgba(244, 206, 20, 0.16) 0%,
            rgba(244, 206, 20, 0.04) 45%,
            transparent 72%
        );
}

.bks-history-orb-two {
    width: 450px;
    height: 450px;

    right: -220px;
    bottom: 200px;

    background:
        radial-gradient(
            circle,
            rgba(13, 11, 97, 0.10) 0%,
            rgba(13, 11, 97, 0.025) 50%,
            transparent 72%
        );
}


/* =========================================================
   CONTAINER
   ========================================================= */

.bks-history-container {
    position: relative;
    z-index: 2;

    width: min(1180px, 100%);
    margin: 0 auto;
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.bks-history-heading {
    max-width: 850px;
    margin: 0 auto 75px;
    text-align: center;
}

.bks-history-eyebrow,
.bks-history-small-title,
.bks-history-subheading > span,
.bks-history-holistic-heading > span {

    display: inline-flex;
    align-items: center;

    padding: 7px 15px;

    border: 1px solid rgba(244, 206, 20, 0.55);

    border-radius: 50px;

    background: rgba(244, 206, 20, 0.10);

    color: var(--bks-navy);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 15px;
}

.bks-history-heading h2 {
    margin: 0;

    color: var(--bks-navy);

    font-size: clamp(38px, 5vw, 62px);

    line-height: 1.1;

    font-weight: 800;

    letter-spacing: -1.5px;
}

.bks-history-heading h2 span {
    color: var(--bks-gold);
}

.bks-history-heading-line {

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    margin: 20px auto;
}

.bks-history-heading-line span {
    width: 45px;
    height: 1px;
    background: rgba(13, 11, 97, 0.25);
}

.bks-history-heading-line i {
    width: 9px;
    height: 9px;

    display: block;

    background: var(--bks-gold);

    transform: rotate(45deg);
}

.bks-history-heading p {
    max-width: 700px;
    margin: 0 auto;

    color: var(--bks-muted);

    font-size: 15px;
    line-height: 1.8;
}


/* =========================================================
   HERO
   ========================================================= */

.bks-history-hero {

    display: grid;

    grid-template-columns:
        minmax(0, 0.95fr)
        minmax(0, 1.05fr);

    gap: 75px;

    align-items: center;

    margin-bottom: 120px;
}


/* =========================================================
   IMAGE CARD
   ========================================================= */

.bks-history-image-wrap {
    position: relative;
    padding: 18px;
}

.bks-history-image-card {

    position: relative;

    height: 520px;

    overflow: hidden;

    border-radius: 28px;

    background: var(--bks-navy);

    box-shadow:
        0 25px 70px rgba(13, 11, 97, 0.18);

    transform: translateZ(0);
}

.bks-history-image-card img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition:
        transform 0.8s ease,
        filter 0.8s ease;
}

.bks-history-image-card:hover img {

    transform: scale(1.06);

    filter:
        saturate(1.08)
        contrast(1.03);
}


/* Dark gradient */

.bks-history-image-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent 35%,
            rgba(13, 11, 97, 0.15) 55%,
            rgba(13, 11, 97, 0.92) 100%
        );

    z-index: 1;
}


/* =========================================================
   SHINING EFFECT
   ========================================================= */

.bks-history-image-shine {

    position: absolute;

    top: -80%;
    left: -120%;

    width: 70%;
    height: 220%;

    z-index: 3;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,0.35),
            transparent
        );

    transform: rotate(20deg);

    animation:
        bksHistoryShine 5s ease-in-out infinite;

    pointer-events: none;
}

@keyframes bksHistoryShine {

    0% {
        left: -120%;
    }

    45%,
    100% {
        left: 150%;
    }
}


/* Image caption */

.bks-history-image-caption {

    position: absolute;

    left: 32px;
    right: 32px;
    bottom: 30px;

    z-index: 4;

    color: #ffffff;
}

.bks-history-image-caption span {

    display: block;

    color: var(--bks-gold);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 8px;
}

.bks-history-image-caption strong {

    display: block;

    font-size: 22px;

    line-height: 1.3;
}


/* Gold decorative frame */

.bks-history-image-decoration {

    position: absolute;

    width: 85%;

    height: 85%;

    right: -2px;
    bottom: -2px;

    border-right: 2px solid rgba(244, 206, 20, 0.75);
    border-bottom: 2px solid rgba(244, 206, 20, 0.75);

    border-radius: 0 25px 25px 0;

    pointer-events: none;
}


/* =========================================================
   INTRO CONTENT
   ========================================================= */

.bks-history-intro h3 {

    margin: 0 0 22px;

    color: var(--bks-navy);

    font-size: clamp(28px, 3vw, 42px);

    line-height: 1.2;

    font-weight: 700;
}

.bks-history-intro h3 strong {
    color: var(--bks-navy);
}

.bks-history-intro p {

    margin: 0 0 17px;

    color: var(--bks-muted);

    font-size: 14px;

    line-height: 1.85;
}

.bks-history-intro p strong {
    color: var(--bks-navy);
}


/* Motto box */

.bks-history-highlight {

    display: flex;

    align-items: center;

    gap: 18px;

    margin-top: 28px;

    padding: 20px;

    border-left: 4px solid var(--bks-gold);

    border-radius: 0 15px 15px 0;

    background:
        linear-gradient(
            135deg,
            rgba(244, 206, 20, 0.14),
            rgba(255,255,255,0.75)
        );

    box-shadow:
        0 12px 35px rgba(13,11,97,0.06);
}

.bks-history-highlight-icon {

    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: var(--bks-navy);

    color: var(--bks-gold);

    font-size: 21px;
}

.bks-history-highlight span {

    display: block;

    margin-bottom: 5px;

    color: var(--bks-navy);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.8px;
}

.bks-history-highlight strong {

    display: block;

    color: #3c3c4e;

    font-size: 14px;

    line-height: 1.5;
}


/* =========================================================
   SUB HEADINGS
   ========================================================= */

.bks-history-subheading {

    max-width: 760px;

    margin: 0 auto 55px;

    text-align: center;
}

.bks-history-subheading h3,
.bks-history-holistic-heading h3 {

    margin: 0 0 15px;

    color: var(--bks-navy);

    font-size: clamp(27px, 3vw, 40px);

    line-height: 1.2;
}

.bks-history-subheading h3 strong,
.bks-history-holistic-heading h3 strong {

    color: var(--bks-gold);
}

.bks-history-subheading p,
.bks-history-holistic-heading p {

    margin: 0;

    color: var(--bks-muted);

    font-size: 14px;

    line-height: 1.8;
}


/* =========================================================
   TIMELINE
   ========================================================= */

.bks-history-timeline-section {

    margin-bottom: 120px;
}

.bks-history-timeline {

    position: relative;

    max-width: 900px;

    margin: 0 auto;

    padding: 10px 0;
}


/* vertical line */

.bks-history-timeline::before {

    content: "";

    position: absolute;

    top: 0;
    bottom: 0;

    left: 180px;

    width: 1px;

    background:
        linear-gradient(
            to bottom,
            transparent,
            rgba(13,11,97,0.22) 10%,
            rgba(13,11,97,0.22) 90%,
            transparent
        );
}


.bks-history-event {

    position: relative;

    display: grid;

    grid-template-columns:
        140px
        80px
        minmax(0, 1fr);

    align-items: center;

    margin-bottom: 45px;
}

.bks-history-event:last-child {
    margin-bottom: 0;
}


.bks-history-event-date {

    text-align: right;

    padding-right: 25px;
}

.bks-history-event-date span {

    display: block;

    color: var(--bks-navy);

    font-size: 30px;

    font-weight: 800;

    line-height: 1;
}

.bks-history-event-date small {

    display: block;

    color: var(--bks-gold);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 2px;

    margin-top: 4px;
}

.bks-history-event-date strong {

    display: block;

    color: var(--bks-muted);

    font-size: 11px;

    margin-top: 4px;
}


/* timeline dot */

.bks-history-event-dot {

    position: relative;

    z-index: 2;

    width: 17px;
    height: 17px;

    margin: auto;

    border-radius: 50%;

    background: var(--bks-gold);

    border: 4px solid #ffffff;

    box-shadow:
        0 0 0 1px rgba(244,206,20,0.65),
        0 5px 15px rgba(244,206,20,0.25);
}


/* Event card */

.bks-history-event-card {

    position: relative;

    padding: 28px 30px;

    border-radius: 18px;

    background: rgba(255,255,255,0.92);

    border: 1px solid var(--bks-border);

    box-shadow:
        0 15px 45px rgba(13,11,97,0.07);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.bks-history-event-card:hover {

    transform: translateY(-5px);

    border-color:
        rgba(244,206,20,0.45);

    box-shadow:
        0 22px 55px rgba(13,11,97,0.12);
}

.bks-history-event-card > span {

    color: var(--bks-gold);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.8px;
}

.bks-history-event-card h4 {

    margin: 7px 0 9px;

    color: var(--bks-navy);

    font-size: 21px;
}

.bks-history-event-card p {

    margin: 0;

    color: var(--bks-muted);

    font-size: 13px;

    line-height: 1.75;
}

.bks-history-event-card strong {
    color: var(--bks-navy);
}


/* =========================================================
   MISSION SECTION
   ========================================================= */

.bks-history-mission {

    position: relative;

    display: grid;

    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(320px, 0.9fr);

    gap: 65px;

    align-items: center;

    margin-bottom: 120px;

    padding: 70px;

    border-radius: 32px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #0D0B61 0%,
            #161474 55%,
            #0D0B61 100%
        );

    box-shadow:
        0 30px 80px rgba(13,11,97,0.18);
}

.bks-history-mission::before {

    content: "";

    position: absolute;

    width: 400px;
    height: 400px;

    right: -150px;
    top: -180px;

    border-radius: 50%;

    border: 1px solid rgba(244,206,20,0.18);

    box-shadow:
        0 0 0 70px rgba(244,206,20,0.025),
        0 0 0 140px rgba(244,206,20,0.02);
}

.bks-history-mission-content {
    position: relative;
    z-index: 2;
}

.bks-history-mission-content .bks-history-small-title {

    color: var(--bks-gold);

    background: rgba(244,206,20,0.08);

    border-color: rgba(244,206,20,0.30);
}

.bks-history-mission-content h3 {

    margin: 0 0 22px;

    color: #ffffff;

    font-size: clamp(28px, 3vw, 42px);

    line-height: 1.2;
}

.bks-history-mission-content h3 strong {
    color: var(--bks-gold);
}

.bks-history-mission-content p {

    margin: 0 0 15px;

    color: rgba(255,255,255,0.72);

    font-size: 14px;

    line-height: 1.85;
}


/* Quote card */

.bks-history-quote-card {

    position: relative;

    z-index: 2;

    padding: 40px;

    border-radius: 25px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.12),
            rgba(255,255,255,0.045)
        );

    border: 1px solid rgba(255,255,255,0.15);

    backdrop-filter: blur(12px);

    -webkit-backdrop-filter: blur(12px);
}

.bks-history-quote-mark {

    color: var(--bks-gold);

    font-family: Georgia, serif;

    font-size: 80px;

    line-height: 0.7;

    opacity: 0.9;

    margin-bottom: 22px;
}

.bks-history-quote-card p {

    margin: 0;

    color: #ffffff;

    font-size: 21px;

    line-height: 1.6;

    font-weight: 500;
}

.bks-history-quote-line {

    width: 50px;
    height: 2px;

    margin: 25px 0 15px;

    background: var(--bks-gold);
}

.bks-history-quote-card span {

    color: var(--bks-gold);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;
}


/* =========================================================
   CAMPUS
   ========================================================= */

.bks-history-campus {

    margin-bottom: 120px;
}

.bks-history-facilities {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}

.bks-history-facility {

    position: relative;

    min-height: 245px;

    padding: 30px 25px;

    overflow: hidden;

    border-radius: 20px;

    background: rgba(255,255,255,0.88);

    border: 1px solid rgba(13,11,97,0.09);

    box-shadow:
        0 12px 35px rgba(13,11,97,0.05);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.bks-history-facility::after {

    content: "";

    position: absolute;

    width: 70px;
    height: 70px;

    right: -30px;
    bottom: -30px;

    border-radius: 50%;

    background:
        rgba(244,206,20,0.13);
}

.bks-history-facility:hover {

    transform: translateY(-8px);

    box-shadow:
        0 22px 50px rgba(13,11,97,0.11);
}

.bks-history-facility-icon {

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 22px;

    border-radius: 12px;

    background: var(--bks-navy);

    color: var(--bks-gold);

    font-size: 11px;

    font-weight: 800;
}

.bks-history-facility h4 {

    margin: 0 0 10px;

    color: var(--bks-navy);

    font-size: 17px;
}

.bks-history-facility p {

    margin: 0;

    color: var(--bks-muted);

    font-size: 12px;

    line-height: 1.7;
}


/* =========================================================
   HOLISTIC DEVELOPMENT
   ========================================================= */

.bks-history-holistic {

    padding: 85px 0;

    margin-bottom: 80px;
}

.bks-history-holistic-heading {

    max-width: 750px;

    margin: 0 auto 50px;

    text-align: center;
}

.bks-history-activities {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}

.bks-history-activity {

    position: relative;

    padding: 28px;

    border-radius: 18px;

    background: #ffffff;

    border: 1px solid rgba(13,11,97,0.08);

    box-shadow:
        0 10px 30px rgba(13,11,97,0.045);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}

.bks-history-activity:hover {

    transform: translateY(-5px);

    border-color:
        rgba(244,206,20,0.55);
}

.bks-history-activity > span {

    display: block;

    margin-bottom: 15px;

    color: var(--bks-gold);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1px;
}

.bks-history-activity h4 {

    margin: 0 0 8px;

    color: var(--bks-navy);

    font-size: 17px;
}

.bks-history-activity p {

    margin: 0;

    color: var(--bks-muted);

    font-size: 12px;

    line-height: 1.7;
}


/* =========================================================
   FINAL STATEMENT
   ========================================================= */

.bks-history-final {

    position: relative;

    max-width: 900px;

    margin: 0 auto;

    padding: 60px 40px;

    text-align: center;

    border-radius: 28px;

    background:
        linear-gradient(
            135deg,
            rgba(244,206,20,0.12),
            rgba(255,255,255,0.85)
        );

    border: 1px solid rgba(244,206,20,0.35);

    box-shadow:
        0 20px 60px rgba(13,11,97,0.06);
}

.bks-history-final-symbol {

    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 20px;

    border-radius: 15px;

    background: var(--bks-navy);

    color: var(--bks-gold);

    font-size: 22px;
}

.bks-history-final h3 {

    margin: 0 0 15px;

    color: var(--bks-navy);

    font-size: clamp(25px, 3vw, 38px);

    line-height: 1.3;
}

.bks-history-final h3 span {
    color: var(--bks-gold);
}

.bks-history-final p {

    max-width: 700px;

    margin: 0 auto;

    color: var(--bks-muted);

    font-size: 14px;

    line-height: 1.8;
}


/* =========================================================
   SCROLL REVEAL
   ========================================================= */

.bks-reveal {

    opacity: 0;

    transform: translateY(35px);

    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.bks-reveal.bks-visible {

    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .bks-history {
        padding: 80px 20px 90px;
    }

    .bks-history-hero {

        grid-template-columns: 1fr;

        gap: 50px;
    }

    .bks-history-image-wrap {

        max-width: 650px;

        width: 100%;

        margin: 0 auto;
    }

    .bks-history-image-card {
        height: 500px;
    }

    .bks-history-intro {
        max-width: 760px;
        margin: 0 auto;
    }

    .bks-history-facilities {

        grid-template-columns:
            repeat(2, 1fr);
    }

    .bks-history-activities {

        grid-template-columns:
            repeat(2, 1fr);
    }

    .bks-history-mission {

        padding: 55px 45px;

        gap: 40px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .bks-history {

        padding: 65px 16px 75px;

        background-size: 25px 25px;
    }

    .bks-history-heading {
        margin-bottom: 50px;
    }

    .bks-history-heading h2 {
        font-size: 40px;
    }

    .bks-history-heading p {
        font-size: 13px;
    }

    .bks-history-hero {
        margin-bottom: 80px;
    }

    .bks-history-image-wrap {
        padding: 8px;
    }

    .bks-history-image-card {

        height: 390px;

        border-radius: 22px;
    }

    .bks-history-image-caption {

        left: 22px;
        right: 22px;
        bottom: 22px;
    }

    .bks-history-image-caption strong {
        font-size: 18px;
    }

    .bks-history-intro h3 {
        font-size: 29px;
    }

    .bks-history-intro p {
        font-size: 13px;
    }

    .bks-history-highlight {
        padding: 16px;
    }

    .bks-history-highlight strong {
        font-size: 12px;
    }


    /* Timeline becomes simpler on mobile */

    .bks-history-timeline {
        padding-left: 25px;
    }

    .bks-history-timeline::before {
        left: 8px;
    }

    .bks-history-event {

        display: block;

        padding-left: 28px;

        margin-bottom: 35px;
    }

    .bks-history-event-date {

        text-align: left;

        padding: 0;

        margin-bottom: 12px;
    }

    .bks-history-event-date span,
    .bks-history-event-date small,
    .bks-history-event-date strong {
        display: inline-block;

        margin-right: 6px;
    }

    .bks-history-event-date span {
        font-size: 24px;
    }

    .bks-history-event-dot {

        position: absolute;

        left: 0;

        top: 5px;

        width: 16px;
        height: 16px;
    }

    .bks-history-event-card {
        padding: 22px;
    }


    /* Mission */

    .bks-history-mission {

        grid-template-columns: 1fr;

        padding: 40px 25px;

        border-radius: 24px;

        margin-bottom: 80px;
    }

    .bks-history-quote-card {
        padding: 28px;
    }

    .bks-history-quote-card p {
        font-size: 18px;
    }


    /* Facilities */

    .bks-history-campus {
        margin-bottom: 75px;
    }

    .bks-history-facilities {

        grid-template-columns: 1fr;

        gap: 14px;
    }

    .bks-history-facility {
        min-height: auto;
    }


    /* Activities */

    .bks-history-holistic {
        padding: 40px 0;
    }

    .bks-history-activities {

        grid-template-columns: 1fr;

        gap: 14px;
    }

    .bks-history-activity {
        padding: 23px;
    }


    /* Final */

    .bks-history-final {

        padding: 40px 22px;

        border-radius: 22px;
    }

    .bks-history-final h3 {
        font-size: 26px;
    }

    .bks-history-final p {
        font-size: 13px;
    }

}


/* =========================================================
   REDUCED MOTION ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .bks-history *,
    .bks-history *::before,
    .bks-history *::after {

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;

        scroll-behavior: auto !important;
    }

    .bks-reveal {

        opacity: 1;

        transform: none;
    }

}