/* Video Banner */

.video-banner.banner {
    height: 79vh;
}

.video-banner.banner .VideoBannerSwiper {
    height: 100%;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures video fills container */
    z-index: -1;
}


.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(255, 255, 255, 0.5); */
    /* Dark overlay for better text readability */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* align-items: center; */
    /* text-align: center; */
    color: white;
    font-family: Arial, sans-serif;
    padding: 20px;
}

.video-overlay h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-family: var(--fontRoboto);
}

.video-overlay p {
    font-size: var(--fontSize24);
    font-weight: 500;
    color: var(--colorBlack);
    max-width: 600px;
}

.VideoBannerSwiper .swiper-pagination span.swiper-pagination-bullet {
    background: var(--colorWhite);
    opacity: 1;
}

.VideoBannerSwiper .swiper-pagination {
    width: auto !important;
    /* top: 0; */
    right: 0;
    left: unset !important;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10px;
}

.VideoBannerSwiper .swiper-pagination span.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    border-radius: 100%;
    margin: 0;
    margin-bottom: 8px;
    border: 1px solid var(--colorGreen);
}

.VideoBannerSwiper .swiper-pagination span.swiper-pagination-bullet.swiper-pagination-bullet-active {
    background: var(--colorGreen);
}

.VideoBannerSwiper .swiper-slide .video-container {
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

.VideoBannerSwiper .swiper-slide-active .video-container {
    transform: translateY(0);
    opacity: 1;
}


/* Video Banner */

/* my hero forever */
.my-hero-forever {
    padding-top: 3.5rem;
    padding-bottom: 1.5rem;
}

.my-hero-forever .title h3 {
    text-align: center;
}


.box-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    gap: 60px;
    perspective: 1000px;
    /* height: 950px; */
    width: 55%;
    margin: 0 auto;
}

.box {
    width: 100%;
    /* height: 100%; */
    position: relative;
    perspective: 1000px;
}

.box-inner {
    position: relative;
    width: 100%;
    /* height: 100%; */
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.box:hover .box-inner {
    transform: rotateY(180deg);
}

.box-front,
.box-back {
    /* position: absolute; */
    width: 100%;
    /* height: 100%; */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 40px;
    padding: 60px 20px 120px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background: white;
    overflow: hidden;

    position: relative;
    /* ✅ Changed from absolute */
}

.box-front {
    z-index: 2;
}

/* .box-back {
    transform: rotateY(180deg);
    z-index: 1;
    padding: 0 20px;
} */

.box-back {
    transform: rotateY(180deg);
    padding: 0 20px;
    height: 100%;
    position: absolute;
    /* ✅ Back stays on top of front for flip */
    top: 0;
    left: 0;
}

.box.centered-last {
  grid-column: 1 / -1;
  justify-self: center;
 

}


@media (max-width: 767px) { /* Bootstrap's default mobile breakpoint */
  .box.centered-last {
    width: 201px !important;
    max-width: 201px; /* Optional: control width while keeping responsiveness */
  }
}

/* When 4 or more boxes, use 2 columns */
.box-container:has(.box:nth-child(4)) {
    grid-template-columns: repeat(2, 1fr);
}

.box-container .box .discount-offer {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--colorGreen);
    border-radius: 100%;
    width: 100px;
    height: 100px;
    padding: 10px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    color: var(--colorWhite);
}


.box-container .box img {
    height: 250px;
}

.box-container .box .box-front a {
    position: absolute;
    bottom: 20px;
    width: fit-content;
    display: block;
    margin: 0 auto;
    padding: 10px 25px;
    border-radius: 8px;
    background-color: var(--colorYellow);
    text-decoration: none;
    color: var(--colorBlack);
    font-size: 18px;
}

.promo-code {
    background-color: var(--colorGreen);
    padding: 10px;
    border-radius: 15px;
    width: 100%;
    text-align: center;
    color: var(--colorWhite);
    margin-bottom: 40px;
}

.promo-code h5 {
    font-style: italic;
    text-decoration: underline;
    font-size: 18px;
}

.promo-code p {
    margin: 0;
    font-size: 26px;
}

.box-back p {
    font-size: 24px;
    text-align: center;
}

.box-back p.click-to-copy {
    font-size: 52px;
    text-align: center;
}

.box-container .box .discount-icon {
    position: absolute;
    top: -3px;
    right: -20px;
    height: auto;
    width: 25%;
}

.box-back-btn {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    margin-top: 20px;
}

.box-back-btn a {
    width: fit-content;
    display: block;
    margin: 0 auto;
    padding: 10px 35px;
    border-radius: 8px;
    background-color: var(--colorYellow);
    text-decoration: none;
    color: var(--colorBlack);
    font-size: 18px;
}


.hero-forever-desc {
    margin-top: 50px;
}

.hero-forever-desc p {
    font-size: 28px;
    text-align: center;
    margin: 0;
}

/* my hero forever ends */


/* How it works */
.how-it-works {
    padding-top: 3.5rem;
    padding-bottom: 1.5rem;
}

.how-it-works .title h3 {
    text-align: center;
}


.support-box {
    text-align: center;
    position: relative;
    padding: 15px;
    transition: all 0.5s ease-in-out;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.5s ease;
    box-shadow: none;
}

.support-box-wrap .row .col-md-3.col-sm-6:last-child .support-box:after {
    content: none;
}

.support-box:after {
    content: " ";
    /* border-right: 1px solid #d9d9d9; */
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    right: -11px;
    width: 2px;
    background-color: #d9d9d9;
    height: 85%;
    /* box-shadow: rgba(99, 99, 99, 0.6) 0px 2px 8px 0px; */
}

.support-box:hover {
    background: linear-gradient(91deg, #01808d 13.88%, #00536b 52.96%);
    border-radius: 20px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 4px 15px;
}

.support-box img {
    height: 200px;
}

.support-box:hover img {
    filter: brightness(0) invert(1);
}

.support-box h5 {
    color: var(--colorBlack);
    text-align: center;
    font-family: var(--fontRoboto);
    font-size: var(--fontSize20);
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin: 0;
    padding: 1rem 0 0 0;
}

.support-box:hover h5 {
    color: var(--colorWhite);
}

/* How it works ends */


/************************************* media query *************************************/

@media(max-width:1699px) {

    /* banner */
    .video-banner.banner h1 {
        font-size: var(--fontSize60);
    }

    /* banner ends */

    /* How it works */
    .support-box img {
        height: 100px;
    }

    /* How it works ends*/

    /* my hero forever  */

    .box-container {
        width: 75%;
    }

    /* my hero forever ends */

}

@media (max-width:1499px) {

    /* my hero forever */
    .box-container {
        width: 65%;
    }

    .box-container .box img {
        height: 240px;
    }

    .promo-code {
        margin-bottom: 20px;
    }

    .box-back p.click-to-copy {
        font-size: 46px;
        line-height: normal;
    }

    .box-back p {
        font-size: 20px;
    }

    .box-container .box .discount-icon {
        right: -18px;
    }

    .hero-forever-desc p {
        font-size: 24px;
    }

    /* my hero forever ends */
}

@media (max-width:1399px) {

    /* my hero forever */
    .box-container {
        gap: 40px;
    }

    .box-container .box img {
        height: 190px;
    }

    .box-back p.click-to-copy {
        font-size: 38px;
    }

    .box-back p {
        font-size: 18px;
    }

    .box-back-btn a {
        font-size: 16px;
    }

    .box-front,
    .box-back {
        border-radius: 25px;
    }

    /* my hero forever ends */
}

@media (max-width:1299px) and (min-width:1200px) {
    .box-container {
        width: 70%;
    }
}

@media (max-width:1199px) {

    /* banner */
    .video-banner.banner {
        height: 30vh;
    }

    /* banner ends */


    /* How it works */
    .support-box img {
        height: 75px;
    }

    .support-box h5 {
        font-size: 16px;
    }

    /* How it works ends*/


    /* my hero forever */

    .box-container {
        gap: 40px;
    }

    .box-container .box img {
        height: 150px;
    }

    .box-container .box .discount-icon {
        right: -13px;
    }

    .promo-code h5 {
        font-size: 16px;
    }

    .box-back p {
        font-size: 16px;
    }

    .box-back p.click-to-copy {
        font-size: 34px;
    }

    /* my hero forever ends */
    .title h3,
    .title h3 span {
        font-size: var(--fontSize40);
        margin-bottom: 0;
    }

    .title h4,
    .title h4 span {
        font-size: var(--fontSize24);
    }

}

@media (max-width:991px) and (min-width:768px) {

    /* my hero forever */
    .box-container {
        width: 90%;
    }

    .hero-forever-desc p {
        font-size: 20px;
    }

    /* my hero forever ends */
}


@media (max-width:767px) {

    /* banner */
    .video-banner.banner {
        height: 25vh;
    }

    /* banner ends */

    /* How it works */
    .support-box img {
        height: 80px;
    }

    .support-box h5 {
        font-size: var(--fontSize20);
    }

    /* How it works end */

    /* my hero forever  */
    .box-container {
        width: 100%;
        gap: 15px;
    }

    .box-container .box img {
        height: 120px;
    }

    .box-container .box .discount-icon {
        right: -9px;
        width: 32%;
    }

    .box-container .box .box-front a {
        padding: 10px 15px;
        font-size: 14px;
    }

    .box-back p.click-to-copy {
        font-size: 22px;
    }

    .promo-code h5 {
        font-size: 12px;
    }

    .promo-code {
        margin-bottom: 10px;
        padding: 8px 5px;
        width: 80%;
    }

    .box-back p {
        font-size: 14px;
    }

    .box-back {
        padding: 0;
    }

    .box-front {
        padding: 40px 0 90px;
    }

    .box-front,
    .box-back {
        border-radius: 15px;
    }

    .hero-forever-desc p {
        font-size: 18px;
    }

    .box-back-btn {
        flex-direction: column;
        gap: 10px;
        margin: 0;
    }

    .box-back-btn a {
        font-size: 14px;
        width: 70%;
        text-align: center;
        padding: 5px 0;
    }

    /* my hero forever ends */
}