/* ==========================================================
   WHAT WE DELIVER
========================================================== */

.caswd-scroll-section {
    position: relative;
    width: 100%;
    padding: 0;
    background: #ffffff;
}

.caswd-slider {
    position: sticky;
    top: 0;

    width: 100%;
    height: 100svh;
    min-height: 860px;
    max-height: 1100px;

    overflow: hidden;
    isolation: isolate;
}


/* ==========================================================
   BACKGROUND
========================================================== */

.caswd-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.caswd-bg-image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center center;

    opacity: 1;
    transform: scale(1);
    will-change: transform, opacity;
}

.caswd-bg-image:not(.caswd-bg-next) {
    z-index: 1;
}

.caswd-bg-image.caswd-bg-next {
    z-index: 2;

    transition: none;
    animation: none;
    pointer-events: none;

    clip-path: inset(0 100% 0 0);
}

.caswd-bg-image.is-changing {
    opacity: .15;
    transform: scale(1.06);
}

.caswd-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
}


/* ==========================================================
   CONTENT
========================================================== */

.caswd-content {
    position: absolute;
    top: 50%;
    left: 120px;

    width: 500px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    transform: translateY(-50%);
    margin-top: 0;

    z-index: 20;
}


/* ==========================================================
   LABEL
========================================================== */

.caswd-label {
    position: relative;
    top: -40px;

    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    padding-left: 40px;
    margin-bottom: 35px;
}

.caswd-dots {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.caswd-dots span {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.caswd-dots .blue { background: #143B83; }

.caswd-dots .ciaorange { background: #F58A1F; }

.caswd-label-text {
    font-family: Poppins, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #122560;
}


/* ==========================================================
   GLASS CARD
========================================================== */

.caswd-card {
    position: relative;

    width: 100%;
    min-height: 400px;
    padding: 42px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    overflow: hidden;

    background: rgba(255, 255, 255, .14);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    box-shadow:
        0 35px 60px rgba(0, 0, 0, .08),
        inset 0 0 0 1px rgba(255, 255, 255, .15);
}

.caswd-card::after {
    content: "";

    position: absolute;
    left: -40%;
    top: -50%;

    width: 120%;
    height: 220%;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, .25),
        transparent
    );

    transform: rotate(18deg);
    pointer-events: none;
}

.caswd-number {
    display: none;
}


/* ==========================================================
   TEXT
========================================================== */

.caswd-text h2 {
    margin: 0 0 28px;

    font-family: Poppins, sans-serif;
    font-size: 38px;
    font-weight: 600;
    line-height: 1.15;
    color: #122560;
}

.caswd-text h2 span {
    color: #ff8b2a;
}

.caswd-text p {
    margin: 0;

    font-family: "DM Sans", sans-serif;
    font-size: 18px;
    line-height: 1.9;
    color: #2b2b2b;

    transition-delay: .06s;
}

.caswd-text h2,
.caswd-text p {
    clip-path: inset(0 0 0 0);
    opacity: 1;

    transition:
        clip-path .55s cubic-bezier(.22, .61, .36, 1),
        opacity .3s ease;
}

.caswd-text.fade h2,
.caswd-text.fade p {
    clip-path: inset(0 0 0 100%);
    opacity: 0;
}


/* ==========================================================
   NAVIGATION
========================================================== */

.caswd-navigation {
    margin-top: 50px;
}

.caswd-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.caswd-arrow {
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    font-size: 25px;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform .35s,
        box-shadow .35s,
        background .35s;
}

.caswd-prev {
    background: rgba(255, 255, 255, .96);
    color: #143b83;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .10);
}

.caswd-next {
    background: #ff8b2a;
    color: #fff;
    box-shadow: 0 15px 40px rgba(255, 140, 42, .45);
}

.caswd-arrow:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 45px rgba(0, 0, 0, .18);
}

.caswd-arrow:active {
    transform: scale(.94);
}


/* ==========================================================
   PAGINATION — mobile only
========================================================== */

.caswd-pagination {
    display: none;
}

.caswd-page {
    width: 32px;
    height: 7px;

    border-radius: 20px;
    background: #d7d7d7;

    cursor: pointer;
    transition: .4s;
}

.caswd-page:hover {
    background: #8b8b8b;
}

.caswd-page.active {
    width: 62px;
    background: #173d83;
}


/* ==========================================================
   LARGE DESKTOP
========================================================== */

@media (max-width: 1600px) {
    .caswd-slider   { min-height: 820px; }
    .caswd-content  { left: 90px; width: 470px; }
    .caswd-card     { min-height: 430px; }
    .caswd-text h2  { font-size: 36px; }
    .caswd-text p   { font-size: 17px; }
}


/* ==========================================================
   LAPTOP
========================================================== */

@media (max-width: 1366px) {
    .caswd-slider     { min-height: 720px; }
    .caswd-content    { left: 64px; width: 440px; }
    .caswd-card       { padding: 36px; min-height: 360px; }
    .caswd-label-text { font-size: 17px; }
    .caswd-text h2    { font-size: 34px; margin-bottom: 24px; }
    .caswd-text p     { font-size: 16px; line-height: 1.8; }
    .caswd-arrow      { width: 50px; height: 50px; font-size: 22px; }
}


/* ==========================================================
   SMALL LAPTOP
========================================================== */

@media (max-width: 1200px) {
    .caswd-slider  { min-height: 660px; }
    .caswd-content { left: 56px; width: 420px; }
    .caswd-card    { padding: 32px; min-height: 340px; }
    .caswd-text h2 { font-size: 32px; }
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1024px) {
    .caswd-slider { min-height: 620px; }

    .caswd-overlay {
        background: linear-gradient(
            180deg,
            rgba(255, 255, 255, .92) 0%,
            rgba(255, 255, 255, .62) 45%,
            rgba(255, 255, 255, .15) 100%
        );
    }

    .caswd-content    { left: 44px; right: 44px; width: auto; max-width: 520px; }
    .caswd-label      { top: -20px; padding-left: 0; }
    .caswd-card       { padding: 30px; min-height: 300px; }
    .caswd-label-text { font-size: 16px; letter-spacing: 3px; }
    .caswd-text h2    { font-size: 30px; }
    .caswd-text p     { font-size: 16px; }
    .caswd-buttons    { margin-bottom: 30px; }
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 768px) {

    .caswd-scroll-section {
        height: auto !important;
        min-height: 0 !important;
    }

    .caswd-slider {
        position: relative !important;
        top: auto !important;

        height: auto;
        min-height: 0;
        max-height: none;

        overflow: visible;
    }


    /* IMAGE BLOCK */

    .caswd-background {
        position: relative;

        width: 100%;
        height: 300px;

        margin-top: 62px;
    }

    .caswd-overlay {
        display: none;
    }


    /* CONTENT */

    .caswd-content {
        position: static;

        left: auto;
        right: auto;
        top: auto;

        width: 100%;

        transform: none;
        margin: 0;
        padding: 0;
    }


    /* LABEL */

    .caswd-label {
        position: absolute;
        top: 0;
        left: 20px;

        width: auto;

        flex-direction: column;
        align-items: flex-start;

        padding: 20px 0 0;
        margin: 0;

        z-index: 25;
    }

    .caswd-dots {
        gap: 6px;
        margin: 0 0 9px;
    }

    .caswd-dots span {
        width: 7px;
        height: 7px;
    }

    .caswd-label-text {
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 2.5px;
    }


    /* PROGRESS BARS */

    .caswd-navigation {
        position: absolute;
        top: 30px;
        right: 20px;
        bottom: auto;
        left: auto;

        width: auto;
        margin: 0;

        z-index: 30;
    }

    .caswd-buttons {
        display: none;
    }

    .caswd-pagination {
        display: flex;
        align-items: center;
        gap: 5px;
        margin: 0;
    }

    .caswd-page {
        width: 18px;
        height: 3px;

        border-radius: 0;
        background: #dddddd;
    }

    .caswd-page.active {
        width: 26px;
        background: #f58a1f;
    }


    /* CARD */

    .caswd-card {
        min-height: 0;
        padding: 24px 20px 30px;

        background: #ffffff;

        backdrop-filter: none;
        -webkit-backdrop-filter: none;

        box-shadow: none;
    }

    .caswd-card::after {
        display: none;
    }

    .caswd-text h2 {
        margin-bottom: 14px;
        font-size: 24px;
        line-height: 1.25;
    }

    .caswd-text p {
        font-size: 14px;
        line-height: 1.7;
    }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 480px) {

    .caswd-background {
        height: 270px;
        margin-top: 58px;
    }

    .caswd-label {
        left: 18px;
    }

    .caswd-navigation {
        top: -25px;
        right: 18px;
    }

    .caswd-label-text {
        font-size: 12px;
    }

    .caswd-card {
        padding: 22px 18px 26px;
    }

    .caswd-text h2 {
        font-size: 22px;
    }

    .caswd-text p {
        font-size: 16px;
    }

}


/* ==========================================================
   LANDSCAPE PHONES
========================================================== */

@media (max-width: 900px) and (orientation: landscape) {
    .caswd-slider  { min-height: 480px; }
    .caswd-content { top: 50%; transform: translateY(-50%); }
    .caswd-card    { min-height: 0; padding: 22px; }
    .caswd-text h2 { font-size: 22px; margin-bottom: 12px; }
    .caswd-text p  { font-size: 14px; line-height: 1.6; }
}