/* ==========================================================
   WHAT WE DELIVER
========================================================== */

/* .caswd-scroll-section {
    width: 100%;
    padding: 80px 0;
    background: #ffffff;
} */
.caswd-scroll-section {
    width: 100%;
    padding: 0;
    background: #ffffff;
}

/* .caswd-slider {
    position: relative;
    width: 100%;
    max-width: 1700px;
    height: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 30px;
    isolation: isolate;
} */
.caswd-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 1000px;
    max-height: 1100px;
    overflow: hidden;
    isolation: isolate;
}
/* ==================== */
/* Mask Reveal */
/* =========================== */
/* .caswd-background{
    position:absolute;
    inset:0;
    overflow:hidden;
}

.caswd-bg-image{

    width:100%;
    height:100%;

    object-fit:cover;

    clip-path: inset(0 100% 0 0);

    transition:none;
}

.caswd-bg-image.reveal{

    animation:caswdMaskReveal .9s cubic-bezier(.22,.61,.36,1) forwards;
}

@keyframes caswdMaskReveal{

    from{

        clip-path: inset(0 100% 0 0);

    }

    to{

        clip-path: inset(0 0 0 0);

    }

} */

/* ==========================================================
   BACKGROUND
========================================================== */

/* .caswd-background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.caswd-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition:
        opacity .8s ease,
        transform 1.2s ease;
} */
.caswd-background,
.caswd-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.caswd-bg-image {
    object-fit: cover;
    object-position: center center;
}

.caswd-overlay {
    position: absolute;
    inset: 0;

    /* background:
        linear-gradient(
            90deg,
            rgba(255,255,255,.88) 0%,
            rgba(255,255,255,.60) 30%,
            rgba(255,255,255,.12) 60%,
            rgba(255,255,255,.02) 100%
        ); */
         /* background:linear-gradient(
        90deg,
        rgba(255,255,255,.45) 0%,
        rgba(255,255,255,.20) 30%,
        rgba(255,255,255,.05) 55%,
        rgba(255,255,255,0) 100%
    ); */

    z-index: 2;
}


/* ==========================================================
   CONTENT
========================================================== */

/* .caswd-content {

    position: relative;

    z-index: 5;

    width: 470px;

    margin-left: 90px;

    padding-top: 80px;
} */
/* .caswd-content {
    position: absolute;
    left: 7%;
    top: 50%;
    transform: translateY(-50%);
    width: 480px;
    z-index: 10;
} */
.caswd-content{

    position:absolute;

    top:50%;

    left:120px;

    transform:translateY(-50%);

    width:500px;

    display:flex;

    flex-direction:column;

    align-items:flex-start;

    z-index:20;
     margin-top:0;
}

/* ==========================================================
   LABEL
========================================================== */
/* 
.caswd-label {

    margin-bottom: 35px;
}

.caswd-dots {

    display: flex;

    gap: 14px;

    margin-bottom: 25px;
}

.caswd-dots span {

    width: 18px;

    height: 18px;

    border-radius: 50%;
}

.caswd-dots .blue {

    background: #143b83;
}

.caswd-dots .orange {

    background: #ff8b2a;
}

.caswd-label-text {

    font-family: Poppins, sans-serif;

    font-size: 28px;

    letter-spacing: 4px;

    color: #143b83;

    text-transform: uppercase;

    font-weight: 700;
} */
/* .caswd-label{

    width:100%;

    display:flex;
padding-left:40px;
    flex-direction:column;

    align-items:flex-start;
position: relative;
    top: -120px;
    margin-bottom:35px;
} */
.caswd-label{
    position: relative;
    top: -40px;
    padding-left: 40px;
    margin-bottom: 35px;

    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.caswd-dots{

    display:flex;

    align-items:center;

    gap:12px;

    margin-bottom:18px;
}

.caswd-dots span{

    width:14px;

    height:14px;

    border-radius:50%;

    display:block;
}

.caswd-dots .blue{
    background:#143B83;
}

.caswd-dots .ciaorange{
    background:#F58A1F;
}

.caswd-label-text{

    font-family:Poppins,sans-serif;

    font-size:18px;

    font-weight:400;

    color:#122560;

    text-transform:uppercase;

    letter-spacing:3px;

    line-height:1;
}

/* ==========================================================
   GLASS CARD
========================================================== */

.caswd-card {

    width: 100%;

    min-height: 400px;

    padding: 42px;

    /* border-radius: 26px; */

    background:
        rgba(255,255,255,.14);

    backdrop-filter: blur(18px);

    -webkit-backdrop-filter: blur(18px);

    /* border: 1px solid rgba(255,255,255,.45); */

    box-shadow:
        0 35px 60px rgba(0,0,0,.08),
        inset 0 0 0 1px rgba(255,255,255,.15);

    display: flex;

    flex-direction: column;

    justify-content: center;
}


/* ==========================================================
   NUMBER
========================================================== */

.caswd-number {

    display: none;
}


/* ==========================================================
   TITLE
========================================================== */

.caswd-text h2 {

    margin: 0;

    font-family: Poppins, sans-serif;

    font-size: 38px;

    line-height: 1.15;

    color: #122560;

    font-weight: 600;

    margin-bottom: 28px;
}

.caswd-text h2 span {

    color: #ff8b2a;
}


/* ==========================================================
   DESCRIPTION
========================================================== */

.caswd-text p {

    margin: 0;

    font-family: "DM Sans", sans-serif;

    font-size: 18px;

    line-height: 1.9;

    color: #2b2b2b;
}


/* ==========================================================
   NAVIGATION
========================================================== */

.caswd-navigation {

    margin-top: 50px;
}

.caswd-buttons {

    display: flex;

    gap: 20px;

    margin-bottom: 40px;
}


/* ==========================================================
   BUTTONS
========================================================== */

.caswd-arrow {

    width: 50px;

    height: 50px;

    border-radius: 50%;

    border: none;

    cursor: pointer;

    font-size: 25px;

    font-weight: 600;

    transition: .35s;

    display: flex;

    align-items: center;

    justify-content: center;
}

.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);
}


/* ==========================================================
   PAGINATION
========================================================== */

.caswd-pagination {

    display: flex;

    gap: 14px;

    align-items: center;
}

.caswd-page {

    width: 32px;

    height: 7px;

    border-radius: 20px;

    background: #d7d7d7;

    transition: .4s;
}

.caswd-page.active {

    width: 62px;

    background: #173d83;
}
/*==========================================================
    BACKGROUND ANIMATION
==========================================================*/

.caswd-bg-image{

    opacity:1;
    transform:scale(1);
    will-change:transform,opacity;
}

.caswd-bg-image.is-changing{

    opacity:.15;
    transform:scale(1.06);
}


/*==========================================================
    GLASS EFFECT
==========================================================*/

.caswd-card{

    position:relative;

    overflow:hidden;
}

.caswd-card::before{

    content:"";

    position:absolute;

    inset:0;

    /* background:linear-gradient(
        135deg,
        rgba(255,255,255,.40),
        rgba(255,255,255,.05)
    ); */

    pointer-events:none;
}

.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;
}


/*==========================================================
    TEXT ANIMATION
==========================================================*/

.caswd-text h2,
.caswd-text p{

    transition:

        opacity .45s ease,

        transform .45s ease;
}

/* .caswd-text.fade{

    opacity:0;

    transform:translateY(25px);
} */
.caswd-text h2,
.caswd-text p {
    transition:
        clip-path .55s cubic-bezier(.22,.61,.36,1),
        opacity .3s ease;
    clip-path: inset(0 0 0 0);
    opacity: 1;
}

.caswd-text.fade h2,
.caswd-text.fade p {
    clip-path: inset(0 0 0 100%);
    opacity: 0;
}

/* description trails the heading slightly — reads as one sweep, not a block */
.caswd-text p {
    transition-delay: .06s;
}


/*==========================================================
    BUTTON ANIMATION
==========================================================*/

.caswd-arrow{

    transition:

        transform .35s,

        box-shadow .35s,

        background .35s;
}

.caswd-arrow:active{

    transform:scale(.94);
}


/*==========================================================
    PAGINATION
==========================================================*/

.caswd-page{

    cursor:pointer;
}

.caswd-page:hover{

    background:#8b8b8b;
}


/*==========================================================
    LARGE DESKTOP
==========================================================*/

@media (max-width:1600px){

.caswd-slider{

height:820px;

}

.caswd-content{

margin-left:70px;

padding-top:60px;

}

.caswd-card{

min-height:430px;

}

.caswd-text h2{

font-size:50px;

}

.caswd-text p{

font-size:20px;

}

}


/*==========================================================
    DESKTOP
==========================================================*/

@media (max-width:1366px){

.caswd-slider{

height:720px;

}

.caswd-content{

width:420px;

margin-left:60px;

padding-top:50px;

}

.caswd-card{

padding:36px;

min-height:380px;

}

.caswd-label-text{

font-size:24px;

}

.caswd-text h2{

font-size:42px;

}

.caswd-text p{

font-size:18px;

line-height:1.8;

}

.caswd-arrow{

width:66px;

height:66px;

font-size:28px;

}

}


/*==========================================================
    TABLET
==========================================================*/

@media (max-width:1024px){

.caswd-slider{

height:650px;

}

.caswd-overlay{

background:linear-gradient(

180deg,

rgba(255,255,255,.90),

rgba(255,255,255,.55),

rgba(255,255,255,.10)

);

}

.caswd-content{

width:380px;

margin-left:40px;

padding-top:40px;

}

.caswd-card{

padding:30px;

min-height:340px;

}

.caswd-label-text{

font-size:20px;

letter-spacing:3px;

}

.caswd-text h2{

font-size:36px;

}

.caswd-text p{

font-size:17px;

}

.caswd-buttons{

margin-bottom:30px;

}

}


/*==========================================================
    MOBILE
==========================================================*/
@media (max-width:768px){

    .caswd-slider{
        height:100vh;
        min-height:650px;
    }

    .caswd-content{
        left:20px;
        right:20px;
        width:auto;
        top:50%;
        transform:translateY(-50%);
        margin:0;
    }

}

/*==========================================================
    SMALL MOBILE
==========================================================*/

@media (max-width:480px){

.caswd-slider{

min-height:700px;

}

.caswd-content{

width:calc(100% - 30px);

margin:15px;

}

.caswd-card{

padding:22px;

border-radius:18px;

}

.caswd-label-text{

font-size:16px;

}

.caswd-text h2{

font-size:26px;

}

.caswd-text p{

font-size:15px;

}

.caswd-arrow{

width:48px;

height:48px;

font-size:20px;

}

}

/* ===== Scroll-driven mask reveal (additive) ===== */
/* ===== Scroll-driven left→right mask (additive only) ===== */

.caswd-scroll-section {
    position: relative;
}

.caswd-slider {
    position: sticky;
    top: 0;
}

.caswd-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.caswd-bg-image:not(.caswd-bg-next) {
    z-index: 1;
}

.caswd-bg-image.caswd-bg-next {
    position: absolute !important;
    inset: 0;
    width: 100%  !important;
    height: 100% !important;
    object-fit: cover;
    z-index: 2;

    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    pointer-events: none;

    clip-path: inset(0 100% 0 0);
}

.caswd-text {
    transition: opacity .35s ease, transform .35s ease;
}

.caswd-text.fade {
    opacity: 0;
    transform: translateY(18px);
}





/* ==========================================================
   CASWD SLIDER — RESPONSIVE
   Drop-in replacement for your media queries.
   Progressive: every value only shrinks as screens get smaller.
========================================================== */

/* ----------------------------------------------------------
   BASE FIXES (apply these to your existing rules)
   The original min-height:1000px overflows laptops/phones.
   Prefer svh/dvh on mobile so the browser UI bar doesn't cause jumps.
---------------------------------------------------------- */
.caswd-slider {
    height: 100vh;
    height: 100svh;         /* modern mobile-safe unit */
    min-height: 860px;      /* was 1000px — too tall for many laptops */
    max-height: 1100px;
}


/* ==========================================================
   LARGE DESKTOP  (≤1600px)
========================================================== */
@media (max-width: 1600px) {
    .caswd-slider   { min-height: 820px; }
    .caswd-content  { left: 90px; width: 470px; }
    .caswd-text h2  { font-size: 36px; }
    .caswd-text p   { font-size: 17px; }
}


/* ==========================================================
   LAPTOP  (≤1366px)
========================================================== */
@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  (≤1200px)
========================================================== */
@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  (≤1024px)
   Switch the overlay to top→bottom so left-aligned text stays readable.
========================================================== */
@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  (≤768px)
   Full-width centered content, no forced tall min-height.
========================================================== */
@media (max-width: 768px) {
    .caswd-slider {
        height: 100vh;
        height: 100svh;
        min-height: 600px;
        max-height: none;
    }

    .caswd-content {
        left: 24px;
        right: 24px;
        width: auto;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
    }

    .caswd-label      { top: 0; padding-left: 0; margin-bottom: 22px; }
    .caswd-card       { padding: 26px; min-height: 0; }
    .caswd-text h2    { font-size: 26px; margin-bottom: 18px; }
    .caswd-text p     { font-size: 15px; line-height: 1.75; }
    .caswd-navigation { margin-top: 32px; }
    .caswd-buttons    { margin-bottom: 26px; }
    .caswd-arrow      { width: 46px; height: 46px; font-size: 20px; }
}


/* ==========================================================
   SMALL MOBILE  (≤480px)
========================================================== */
@media (max-width: 480px) {
    .caswd-slider     { min-height: 560px; }
    .caswd-content    { left: 16px; right: 16px; }
    .caswd-label-text { font-size: 14px; letter-spacing: 2px; }
    .caswd-dots span  { width: 12px; height: 12px; }
    .caswd-card       { padding: 20px; }
    .caswd-text h2    { font-size: 23px; margin-bottom: 14px; }
    .caswd-text p     { font-size: 14px; }
    .caswd-buttons    { gap: 14px; margin-bottom: 24px; }
    .caswd-arrow      { width: 44px; height: 44px; font-size: 19px; }
    .caswd-page       { width: 26px; }
    .caswd-page.active{ width: 48px; }
}


/* ==========================================================
   LANDSCAPE PHONES
   Stops the slider from becoming absurdly tall in landscape.
========================================================== */
@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; }
}