/* =========================================================
   BRUDER KLAUS SCHOOL
   PREMIUM NEWS & EVENTS SECTION
   ========================================================= */


/* ---------------------------------------------------------
   BRAND VARIABLES
   --------------------------------------------------------- */

:root {

    --bks-navy: #0D0B61;
    --bks-white: #ffffff;
    --bks-gold: #F4CE14;

    --bks-blue-soft: #f5f9ff;
    --bks-blue-light: #eaf3fc;
    --bks-text: #52627a;
    --bks-border: rgba(13, 11, 97, 0.09);

    --bks-shadow:
        0 20px 50px rgba(13, 11, 97, 0.10);

    --bks-radius: 28px;
}


/* ---------------------------------------------------------
   MAIN SECTION
   --------------------------------------------------------- */

.bks-news-section {

    position: relative;

    width: 100%;

    padding:
        70px
        0
        80px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f8fbff 48%,
            #eef6ff 100%
        );

    isolation: isolate;
}


/* ---------------------------------------------------------
   PREMIUM BACKGROUND GRID
   --------------------------------------------------------- */

.bks-news-grid {

    position: absolute;

    inset: 0;

    z-index: -3;

    opacity: 0.42;

    background-image:
        linear-gradient(
            rgba(13, 11, 97, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(13, 11, 97, 0.035) 1px,
            transparent 1px
        );

    background-size: 55px 55px;

    mask-image:
        linear-gradient(
            to bottom,
            transparent,
            black 18%,
            black 80%,
            transparent
        );
}


/* ---------------------------------------------------------
   DOT DECORATION
   --------------------------------------------------------- */

.bks-news-dots {

    position: absolute;

    right: 4%;
    top: 70px;

    width: 190px;
    height: 190px;

    z-index: -2;

    opacity: 0.38;

    background-image:
        radial-gradient(
            rgba(13, 11, 97, 0.18) 1.5px,
            transparent 1.5px
        );

    background-size: 17px 17px;

    mask-image:
        radial-gradient(
            circle,
            black 20%,
            transparent 70%
        );
}


/* ---------------------------------------------------------
   DECORATIVE BLOBS
   --------------------------------------------------------- */

.bks-news-bg-shape {

    position: absolute;

    border-radius: 50%;

    pointer-events: none;

    z-index: -2;

    filter: blur(0px);
}


.bks-news-bg-shape-one {

    width: 360px;
    height: 360px;

    top: -210px;
    right: -100px;

    background:
        rgba(220, 235, 249, 0.72);
}


.bks-news-bg-shape-two {

    width: 250px;
    height: 250px;

    bottom: -160px;
    left: -110px;

    background:
        rgba(244, 206, 20, 0.10);
}


/* ---------------------------------------------------------
   MAIN CONTAINER
   --------------------------------------------------------- */

.bks-news-container {

    width: min(1380px, 92%);

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        320px
        minmax(0, 1fr);

    gap: 55px;

    align-items: start;
}


/* =========================================================
   LEFT INTRO PANEL
   ========================================================= */

.bks-news-intro {

    position: relative;

    min-height: 600px;

    padding: 50px 42px;

    border-radius:
        30px;

    background:
        linear-gradient(
            145deg,
            rgba(239, 246, 253, 0.96),
            rgba(248, 251, 255, 0.92)
        );

    border:
        1px solid
        rgba(255, 255, 255, 0.9);

    box-shadow:
        0 25px 65px
        rgba(13, 11, 97, 0.08);

    overflow: hidden;

    display: flex;

    flex-direction: column;
}


/* Intro glow */

.bks-news-intro-glow {

    position: absolute;

    width: 240px;
    height: 240px;

    top: -125px;
    left: -100px;

    border-radius: 50%;

    background:
        rgba(190, 216, 239, 0.45);

    pointer-events: none;
}


/* ---------------------------------------------------------
   LABEL
   --------------------------------------------------------- */

.bks-section-label {

    position: relative;

    display: inline-flex;

    align-items: center;

    gap: 10px;

    width: fit-content;

    padding:
        11px
        18px;

    border-radius: 100px;

    background:
        rgba(244, 206, 20, 0.14);

    color: #174f8f;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;

    text-transform: uppercase;
}


.bks-label-dot {

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--bks-gold);

    box-shadow:
        0 0 0 5px
        rgba(244, 206, 20, 0.12);
}


/* ---------------------------------------------------------
   INTRO HEADING
   --------------------------------------------------------- */

.bks-news-intro h2 {

    position: relative;

    margin:
        28px
        0
        20px;

    color: var(--bks-navy);

    font-size:
        clamp(
            42px,
            4vw,
            61px
        );

    line-height: 0.98;

    letter-spacing: -2.5px;

    font-weight: 900;
}


.bks-news-intro h2 span {

    display: block;

    color:
        #145da8;
}


/* Gold line */

.bks-news-title-line {

    width: 62px;
    height: 5px;

    margin:
        0
        0
        30px;

    border-radius: 50px;

    background:
        var(--bks-gold);
}


/* ---------------------------------------------------------
   INTRO PARAGRAPH
   --------------------------------------------------------- */

.bks-news-intro p {

    position: relative;

    margin: 0;

    color:
        var(--bks-text);

    font-size: 15.5px;

    line-height: 1.9;

    letter-spacing: 0.1px;
}


/* ---------------------------------------------------------
   INTRO BUTTONS
   --------------------------------------------------------- */

.bks-news-intro-buttons {

    display: flex;

    flex-direction: column;

    gap: 12px;

    margin-top: auto;

    padding-top: 35px;
}


/* Main button */

.bks-news-main-btn {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 18px;

    min-height: 54px;

    padding:
        0
        25px;

    border-radius: 100px;

    background:
        var(--bks-gold);

    color:
        var(--bks-navy);

    font-size: 14px;

    font-weight: 800;

    text-decoration: none;

    overflow: hidden;

    box-shadow:
        0 13px 28px
        rgba(244, 206, 20, 0.25);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.bks-news-main-btn:hover {

    transform:
        translateY(-4px);

    box-shadow:
        0 18px 35px
        rgba(244, 206, 20, 0.35);
}


.bks-news-main-btn i {

    transition:
        transform 0.3s ease;
}


.bks-news-main-btn:hover i {

    transform:
        translateX(5px);
}


/* Secondary button */

.bks-news-secondary-btn {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 15px;

    min-height: 50px;

    border-radius: 100px;

    color:
        var(--bks-navy);

    font-size: 13px;

    font-weight: 700;

    text-decoration: none;

    border:
        1px solid
        rgba(13, 11, 97, 0.10);

    background:
        rgba(255, 255, 255, 0.65);

    transition:
        all 0.3s ease;
}


.bks-news-secondary-btn:hover {

    background:
        var(--bks-navy);

    color:
        var(--bks-white);

    transform:
        translateY(-2px);
}


/* ---------------------------------------------------------
   MINI STATS
   --------------------------------------------------------- */

.bks-news-mini-stats {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;

    margin-top: 25px;

    padding-top: 22px;

    border-top:
        1px solid
        rgba(13, 11, 97, 0.08);
}


.bks-news-mini-stats div {

    display: flex;

    flex-direction: column;

    gap: 3px;
}


.bks-news-mini-stats strong {

    color:
        var(--bks-navy);

    font-size: 19px;

    font-weight: 900;
}


.bks-news-mini-stats span {

    color:
        #7c8797;

    font-size: 11px;

    font-weight: 600;
}


/* =========================================================
   RIGHT CONTENT
   ========================================================= */

.bks-news-content {

    min-width: 0;

    padding-top: 5px;
}


/* ---------------------------------------------------------
   CONTENT HEADER
   --------------------------------------------------------- */

.bks-news-content-header {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 30px;

    margin-bottom: 38px;
}


.bks-content-eyebrow {

    display: block;

    margin-bottom: 8px;

    color:
        #2768a8;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2.5px;
}


.bks-news-content-header h3 {

    margin: 0;

    color:
        var(--bks-navy);

    font-size:
        clamp(
            30px,
            3vw,
            42px
        );

    line-height: 1.05;

    letter-spacing: -1.5px;

    font-weight: 900;
}


/* ---------------------------------------------------------
   ARROWS
   --------------------------------------------------------- */

.bks-news-controls {

    display: flex;

    gap: 12px;

    flex-shrink: 0;
}


.bks-news-arrow {

    width: 54px;
    height: 54px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(13, 11, 97, 0.16);

    border-radius: 13px;

    background:
        rgba(255, 255, 255, 0.8);

    color:
        #1262aa;

    font-size: 17px;

    cursor: pointer;

    transition:
        all 0.3s ease;
}


.bks-news-arrow:hover {

    background:
        var(--bks-navy);

    color:
        var(--bks-white);

    border-color:
        var(--bks-navy);

    transform:
        translateY(-3px);

    box-shadow:
        0 10px 20px
        rgba(13, 11, 97, 0.15);
}


.bks-news-arrow:disabled {

    opacity: 0.35;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;
}


/* =========================================================
   SLIDER
   ========================================================= */

.bks-news-slider-wrapper {

    position: relative;

    width: 100%;

    overflow: hidden;

    padding:
        5px
        3px
        25px;
}


.bks-news-slider {

    display: flex;

    gap: 28px;

    transition:
        transform 0.65s
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );

    will-change: transform;
}


/* =========================================================
   NEWS CARD
   ========================================================= */

.bks-news-card {

    flex:
        0 0
        calc(
            (100% - 56px) / 3
        );

    min-width: 0;

    background:
        rgba(255, 255, 255, 0.96);

    border:
        1px solid
        rgba(13, 11, 97, 0.08);

    border-radius:
        22px;

    overflow: hidden;

    box-shadow:
        0 15px 38px
        rgba(13, 11, 97, 0.08);

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;

    display: flex;

    flex-direction: column;
}


.bks-news-card:hover {

    transform:
        translateY(-9px);

    box-shadow:
        0 25px 50px
        rgba(13, 11, 97, 0.14);
}


/* =========================================================
   IMAGE
   ========================================================= */

.bks-news-image-wrap {

    position: relative;

    width: 100%;

    aspect-ratio:
        16 / 10;

    overflow: hidden;

    background:
        #dce9f5;
}


.bks-news-image-wrap img {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.7s
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );
}


.bks-news-card:hover
.bks-news-image-wrap img {

    transform:
        scale(1.07);
}


/* =========================================================
   IMAGE SHINE EFFECT
   ========================================================= */

.bks-image-shine {

    position: absolute;

    top: 0;
    left: -120%;

    width: 70%;
    height: 100%;

    pointer-events: none;

    transform:
        skewX(-20deg);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.58),
            transparent
        );

    transition:
        left 0.75s ease;
}


.bks-news-card:hover
.bks-image-shine {

    left: 140%;
}


/* ---------------------------------------------------------
   CATEGORY BADGE
   --------------------------------------------------------- */

.bks-news-category {

    position: absolute;

    left: 15px;
    bottom: 15px;

    padding:
        8px
        13px;

    border-radius: 100px;

    background:
        rgba(13, 11, 97, 0.88);

    color:
        var(--bks-white);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.3px;

    backdrop-filter:
        blur(8px);

    -webkit-backdrop-filter:
        blur(8px);
}


/* =========================================================
   CARD BODY
   ========================================================= */

.bks-news-card-body {

    display: flex;

    flex-direction: column;

    flex: 1;

    padding:
        23px
        23px
        25px;
}


/* Date */

.bks-news-date {

    display: inline-flex;

    align-items: center;

    min-height: 34px;

    padding:
        0
        15px;

    border-radius: 100px;

    background:
        var(--bks-gold);

    color:
        var(--bks-navy);

    font-size: 10px;

    font-weight: 800;

    margin-bottom: 18px;
}


/* Card heading */

.bks-news-card h4 {

    margin:
        0
        0
        14px;

    color:
        var(--bks-navy);

    font-size: 21px;

    line-height: 1.25;

    letter-spacing: -0.4px;

    font-weight: 850;
}


/* Card description */

.bks-news-card p {

    margin:
        0;

    color:
        #747b88;

    font-size: 13.5px;

    line-height: 1.8;
}


/* Read More */

.bks-news-read-more {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-top: auto;

    padding-top: 23px;

    color:
        #1067b3;

    font-size: 12px;

    font-weight: 800;

    text-decoration: none;

    transition:
        color 0.3s ease;
}


.bks-news-read-more i {

    font-size: 10px;

    transition:
        transform 0.3s ease;
}


.bks-news-read-more:hover {

    color:
        var(--bks-navy);
}


.bks-news-read-more:hover i {

    transform:
        translateX(5px);
}


/* =========================================================
   PROGRESS
   ========================================================= */

.bks-news-progress {

    display: flex;

    align-items: center;

    gap: 18px;

    margin-top: 5px;
}


.bks-news-progress-track {

    width: 150px;

    height: 3px;

    overflow: hidden;

    border-radius: 50px;

    background:
        rgba(13, 11, 97, 0.10);
}


.bks-news-progress-track span {

    display: block;

    width: 16.66%;

    height: 100%;

    border-radius: inherit;

    background:
        var(--bks-gold);

    transition:
        width 0.5s ease;
}


.bks-news-count {

    color:
        #778399;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1px;
}


/* =========================================================
   UNIVERSAL BUTTON SHINE
   ========================================================= */

.shine-btn::after {

    content: "";

    position: absolute;

    top: 0;
    left: -130%;

    width: 70%;
    height: 100%;

    transform:
        skewX(-22deg);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.65),
            transparent
        );

    transition:
        left 0.75s ease;
}


.shine-btn:hover::after {

    left: 135%;
}


/* =========================================================
   SCROLL REVEAL
   ========================================================= */

.reveal-news {

    opacity: 0;

    transform:
        translateY(35px);

    transition:
        opacity 0.8s ease,
        transform 0.8s
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );
}


.reveal-news.news-visible {

    opacity: 1;

    transform:
        translateY(0);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1200px) {

    .bks-news-container {

        grid-template-columns:
            285px
            minmax(0, 1fr);

        gap: 35px;
    }


    .bks-news-intro {

        padding:
            40px 30px;
    }


    .bks-news-card {

        flex-basis:
            calc(
                (100% - 28px) / 2
            );
    }


    .bks-news-slider {

        gap: 28px;
    }
}


/* =========================================================
   SMALL TABLET
   ========================================================= */

@media (max-width: 900px) {

    .bks-news-section {

        padding:
            80px
            0
            90px;
    }


    .bks-news-container {

        grid-template-columns:
            1fr;

        gap: 45px;
    }


    .bks-news-intro {

        min-height: auto;

        padding:
            42px;
    }


    .bks-news-intro-buttons {

        margin-top: 25px;

        padding-top: 0;

        display: grid;

        grid-template-columns:
            1fr 1fr;
    }


    .bks-news-mini-stats {

        margin-top: 30px;
    }


    .bks-news-card {

        flex-basis:
            calc(
                (100% - 28px) / 2
            );
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

    .bks-news-section {

        padding:
            65px
            0
            75px;
    }


    .bks-news-container {

        width:
            min(
                92%,
                480px
            );

        gap: 35px;
    }


    .bks-news-intro {

        padding:
            34px 26px;

        border-radius:
            24px;
    }


    .bks-section-label {

        font-size: 9px;

        letter-spacing: 1.5px;
    }


    .bks-news-intro h2 {

        font-size:
            45px;

        letter-spacing:
            -2px;

        margin-top:
            23px;
    }


    .bks-news-intro p {

        font-size:
            14px;

        line-height:
            1.8;
    }


    .bks-news-intro-buttons {

        grid-template-columns:
            1fr;

        gap: 10px;
    }


    .bks-news-content-header {

        align-items:
            flex-start;

        margin-bottom:
            25px;
    }


    .bks-news-content-header h3 {

        font-size:
            30px;
    }


    .bks-content-eyebrow {

        font-size:
            9px;
    }


    .bks-news-controls {

        gap: 7px;
    }


    .bks-news-arrow {

        width: 43px;
        height: 43px;

        border-radius:
            11px;

        font-size:
            13px;
    }


    .bks-news-slider-wrapper {

        padding:
            3px
            2px
            20px;
    }


    .bks-news-slider {

        gap:
            16px;
    }


    .bks-news-card {

        flex:
            0 0 100%;

        border-radius:
            20px;
    }


    .bks-news-card-body {

        padding:
            20px;
    }


    .bks-news-card h4 {

        font-size:
            20px;
    }


    .bks-news-card p {

        font-size:
            13px;
    }


    .bks-news-progress {

        margin-top:
            0;
    }


    .bks-news-progress-track {

        width:
            100px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .bks-news-container {

        width:
            91%;
    }


    .bks-news-intro {

        padding:
            30px 22px;
    }


    .bks-news-intro h2 {

        font-size:
            40px;
    }


    .bks-news-content-header h3 {

        font-size:
            27px;
    }


    .bks-news-arrow {

        width:
            39px;

        height:
            39px;
    }
}


/* =========================================================
   REDUCED MOTION ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .bks-news-slider,
    .bks-news-card,
    .bks-news-image-wrap img,
    .bks-image-shine,
    .shine-btn::after,
    .reveal-news {

        transition:
            none !important;
    }
}