:root {
  --vh: 1vh;
}


.slider-viewportt {
  width: 100%;
  overflow: hidden;
  /* Use the dynamic viewport height instead of 100vh */
  height: calc(var(--vh, 1vh) * 100);
  /* Fallback for browsers that don't support custom properties */
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
}

@supports (height: 100dvh) {
  .slider-viewportt {
    height: 100dvh; /* Dynamic viewport height - handles mobile browsers */
  }
}


        .slider-container {
            position: relative;
            width: 100%;
            /* overflow-x: hidden; -- REMOVED THIS LINE */
            
        }

        .slider {
            display: flex;
  transition: transform 0.6s ease-in-out;
  height: 100%;
  will-change: transform;
  width: 100%;
  min-height: 100%;
        }

        .slide {
            flex: 0 0 100%;
            
            display: flex;
            align-items: center;
            justify-content: flex-start;
            padding-left: 10%;
            padding-right: 10%;
            box-sizing: border-box;
            background-size: cover;
            background-position: center;
            position: relative;
            color: white;
            z-index: 1000;
        }

        .slider-container,
.slide {
  height: 100%;
  min-height: 100%;
}

        .slide1 {
            background-image: url(../images/banners/banner1.webp);
        }

        .slide2 {
            background-image: url(../images/banners/banner2.webp);
        }

        .slide3 {
            background-image: url(../images/banners/banner3.webp);
        }

        .slide::before {
            content: "";
            position: absolute;
            top: 0; 
            left: 0;
            width: 100%; 
            height: 100%;
            z-index: 1;
        }

        .slide .content {
            z-index: 2;
        }

        .content {
            max-width: 400px;
        }

        .content h1 {
            font-size: 50px;
            line-height: 50px;
            margin-bottom: 10px;
            font-family: "firago-mediumitalic";
            color: #2d2d2d;
            text-align: left;
        }

        .content p {
            font-size: 22px;
            margin-bottom: 25px;
            font-family: "firago-bookitalic";
            color: #2d2d2d;
        }

        .content span {
            display: block;
            font-size: 1.5rem;
            margin-bottom: 1rem;
        }

        .content a {
            outline: none;
            padding: 10px 20px;
            border-radius: 20px;
            font-size: 25px;
            background: #6440ff;
            color: #fff;
            font-family: "firago-mediumitalic";
            cursor: pointer;
            text-decoration: none;
            display: inline-block;
        }

        .content a:hover {
            background: #4c31c1;
            color: #fff;
        }

        .nav-buttons {
            position: absolute;
            bottom: 2rem;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            align-items: center;
            gap: 1.5rem;
        }

        .nav-buttons button {
            width: 35px;
            height: 35px;
            border-radius: 50%;
            border: none;
            background: #fff;
            font-size: 1.5rem;
            cursor: pointer;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }

        .pagination {
            background: #fff;
            border-radius: 2rem;
            padding: 0.4rem 1.2rem;
            display: flex;
            gap: 1rem;
            align-items: center;
            justify-content: center;
        }

        .dot {
            width: 10px;
            height: 10px;
            background-color: #ccc;
            border-radius: 50%;
            transition: background-color 0.3s ease;
        }

        .dot.active {
            background-color: #2d2d2d;
        }

        .arrow-icon {
            width: 24px;
            height: 24px;
            pointer-events: none;
        }


        .nav-buttons button {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
        }

        /* Safari SVG icon fixes */
        .arrow-icon {
            width: 24px;
            height: 24px;
            pointer-events: none;
            display: block;
            -webkit-transform: translateZ(0);
            transform: translateZ(0);
        }

        /* Ensure SVGs render properly in Safari */
        .prev .arrow-icon,
        .next .arrow-icon {
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
            will-change: transform;
        }

        .arrow-icon {
            display: block;
            width: 20px;
            height: 20px;
            pointer-events: none;
        }

        .prev, .next {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .nav-buttons {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

     

        .prev, .next, .dots {
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
            -webkit-transform: translateZ(0);
            transform: translateZ(0);
            will-change: transform;
        }


@media screen and (min-width: 1200px) and (max-width: 1380px) {

  .slide1 {
                background-image: url(../images/banners/banner1-mid.webp);
                background-size: cover;
                background-position: right;
        
            }

            .slide2 {
                background-image: url(../images/banners/banner2-mid.webp);
                background-size: cover;
                background-position: right;
                
            }

            .slide3 {
                background-image: url(../images/banners/banner3-mid.webp);
                background-size: cover;
                background-position: right;
        
            }



}

  

        /* Small Phones */
        @media screen and (max-width: 480px) {

         :root {
  --vh: 1vh;
}

  .slider-viewportt {
    /* Lock the height to prevent jumping */
    height: calc(var(--vh, 1vh) * 100);
    min-height: calc(var(--vh, 1vh) * 100);
    max-height: calc(var(--vh, 1vh) * 100);
  }
  


        .slider-container {
            position: relative;
            width: 100%;
            /* overflow-x: hidden; -- REMOVED THIS LINE */
            
        }

        .slider {
            display: flex;
            transition: transform 0.6s ease-in-out;
            height: 100%;
            will-change: transform;
            width: 100%;
        }

        .slide {
            flex: 0 0 100%;
            
            display: flex;
            align-items: center;
            justify-content: flex-start;
            padding-left: 10%;
            padding-right: 10%;
            box-sizing: border-box;
            background-size: cover;
            background-position: center;
            position: relative;
            color: white;
            z-index: 1000;
        }









            .slide1 {
                background-image: url(../images/banners/banner1-mob.webp);
                background-size: cover;
            }

            .slide2 {
                background-image: url(../images/banners/banner2-mob.webp);
                background-size: cover;
            }

            .slide3 {
                background-image: url(../images/banners/banner3-mob.webp);
                background-size: cover;
            }

            .content {
                max-width: 400px;
                margin-left: auto;
                margin-right: auto;
                margin-top: 320px;
                text-align: center;
            }

            .content h1 {
                font-size: 5.9vw;
                text-align: center;
                line-height: 23px;
                margin-bottom: 8px;
                font-family: "firago-mediumitalic";
                color: #2d2d2d;
            }

            .content p {
                font-size: 4.2vw;
                margin-bottom: normal;
                font-family: "firago-bookitalic";
                color: #2d2d2d;
                line-height: 18px;
                text-align: center;
                margin-bottom: 10px;
            }

            .content span {
                display: block;
                font-size: 1.5rem;
                margin-bottom: 1rem;
            }

            .content a {
                outline: none;
                padding: 10px 20px;
                border-radius: 14px;
                font-size: 5.4vw;
                background: #6440ff;
                color: #fff;
                font-family: "firago-mediumitalic";
                cursor: pointer;
                text-align: center;
                margin-left: auto;
                margin-right: auto;
            }

            .content a:hover {
                background: #f72585;
                color: #fff;
            }



        }

            @supports (height: 100dvh) {
  .slider-viewportt {
    height: 100dvh; /* Dynamic viewport height - handles mobile browsers */
  }

  .slider-viewportt {
      height: 100dvh;
      min-height: 100dvh;
      max-height: 100dvh;
    }
}




        

        /* Demo sticky nav to show it works */
        .sticky-nav {
            position: sticky;
            top: 0;
            background: #333;
            color: white;
            padding: 1rem;
            text-align: center;
            z-index: 9999;
        }
.slider-container,
.slide {
  height: 100%;
}








