/* .teaser-carousel-container {
    padding-top: 40px;
    padding-bottom: 40px;
} */


.teaser-carousel-wrapper {
    width: 100%;
    position: relative;
    /* overflow: hidden; */
    box-sizing: border-box;
    /* padding: 1rem 0; */
}

.teaser-carousel-track {
    display: flex;
    overflow-x: hidden;
    /* Prevent scrollbars when using buttons */
    scroll-behavior: smooth;
    gap: 40px;
    position: relative;
    scroll-snap-type: x mandatory;
}

.teaser-carousel-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    box-sizing: border-box;
    width: 270px;
}


/* .teaser-carousel-container {
    margin-top: 60px;
} */



.teaser-carousel-container h1 {
    color: #111111;
    font-weight: 400;
    font-size: 32px;
}

/* Card count rules */
/* .teaser-wide .teaser-carousel-card {
    flex: 0 0 20%; 
} */

.show-six-cards .teaser-carousel-card {
    flex: 0 0 13.66%;
    /* 6 cards per view */
}

.why-pmay-cards .teaser-carousel-card {
    flex: 0 0 22.5%;
    /* 4 cards per view */
}

.teaser-wide .teaser-carousel-track>div>div:nth-child(3)>p {
    line-height: 150%;
}

.teaser-wide .teaser-carousel-dots {}

.teaser-wide .teaser-carousel-controls {
    top: 33%;
}

.other-products-cards .teaser-carousel-controls {
    top: 36%;
}

.teaser-description .teaser-carousel-card {
    cursor: pointer;
    justify-content: center !important;
    display: flex !important;
    flex-direction: column !important;
    gap: unset !important;
    align-items: center !important;
}

.teaser-description .teaser-carousel-card p {
    text-align: center;
    padding: 0 10px;
}

/* Controls */
.teaser-carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 102;
    padding: 0 10px;
}



.teaser-carousel-prev,
.teaser-carousel-next {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 14px;
    cursor: pointer;
    color: #333;
    z-index: 11;
    padding: 10px 18px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    /* enable clicks */
    transition: background 0.2s ease;
}

.teaser-carousel-prev:hover,
.teaser-carousel-next:hover {
    background: rgba(255, 255, 255, 1);
}

.teaser-carousel-prev {
    margin-left: -31px;
}

.teaser-carousel-next {
    margin-right: -32px;
}

.teaser-carousel-pagination {
    display: none;
}


.teaser-carousel-track>div>div:nth-child(2)>p {
    font-size: 20px;
    color: #97291e;
    font-weight: 600;
    margin-bottom: 0;
    /* letter-spacing: 1px; */
}

.teaser-carousel-track>div>div:nth-child(3)>p {
    font-size: 14px;
    color: #111111;
    opacity: 0.6;
    margin: 0;
}



/* other-products-cards */
.other-products-cards .teaser-carousel-card {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content:space-between;
    gap: 10px !important;
    border-radius: 12px;
    border: 1px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box,
        linear-gradient(180deg, #ee6f32, #8e0006) border-box;
    min-height: 165px;
}

.other-products-cards .teaser-carousel-track>div>div:nth-child(2) {
    width: 80%;
    text-align: center;
}

.other-products-cards .teaser-carousel-track>div>div:nth-child(2) p {
    color: #111111;
    line-height: 120%;
    font-family: var(--body-font-family-semibold);
    margin: 0;
    padding-top: 20px;
    
}


.other-products-cards .teaser-carousel-track>div>div:nth-child(1) img {
    width: auto;
    height: 59px
}


/* why-pmay-cards */

.why-pmay-cards .teaser-carousel-card {
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    gap: 20px;
    opacity: 1;
    border-radius: 11.31px;
    border: 0.94px solid #1111111F;
    overflow: hidden;
    position: relative;
}

.why-pmay-cards .teaser-carousel-card img {
    height: 100%;
}

.why-pmay-cards .teaser-carousel-track>div>div:nth-child(2) {
    position: absolute;
    top: 0;
}

.why-pmay-cards .teaser-carousel-track>div>div:nth-child(2) p {
    font-size: 24px;
    font-weight: 600;
    line-height: 120%;
    padding: 10px 30px 30px;
    font-family: var(--body-font-family-semibold);
}


/* Documents Required */


.documents-required .teaser-carousel-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 0 0 30%;
}

.documents-required .teaser-carousel-card img {
    border-radius: 8px;
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.documents-required .teaser-carousel-track>div>div:nth-child(2) {
    width: 72%;
}

.documents-required .teaser-carousel-track>div>div:nth-child(2) p {
    font-size: 18px;
    line-height: 130%;
    color: #111;
    margin: 0;
    font-weight: 500;
}

.documents-required .teaser-carousel-controls,
.documents-required .teaser-carousel-pagination {
    display: none;
}

.teaser-carousel-dot.active {
    background: linear-gradient(to bottom right, #8e0006, #4e0003);
    width: 74px;
    border-radius: 10px;
    height: 18px;
}

.teaser-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 50px;

}


.teaser-carousel-dot {
    padding: 9px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: rgba(17, 17, 17, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    width: 18px;
    height: 18px;
}


.teaser-without-image .teaser-carousel-card {
    border-radius: 12px;
    border: 1px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box,
        linear-gradient(180deg, #ee6f32, #8e0006) border-box;
    padding: 12px;
    text-align: center;
    background-color: #fff;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* .teaser-without-image .teaser-carousel-card:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
} */

.teaser-without-image .teaser-carousel-card div:first-child p {
    font-weight: 600;
    font-size: 16px;
    color: #222;
    margin-bottom: 6px;
    margin: 0;
}

.card-without-image .teaser-wide .teaser-carousel-controls{
    top: 20%;
}

.teaser-without-image .teaser-carousel-card div:nth-child(2) p {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

/* Responsive adjustments */
@media (max-width: 820px) {
    .teaser-without-image .teaser-carousel-track {
        /* flex-direction: column; */
        align-items: stretch;
    }

    /* .teaser-without-image .teaser-carousel-card {
        width: 90%;
        flex: none;
        height: 100%;
    } */
}


/* Responsive adjustments */
@media (max-width: 1024px) {
    /* .teaser-carousel-card {
        flex: 0 0 50%;
    } */

    .teaser-carousel-track {
        gap: 35px;
    }
}

@media (max-width: 820px) {
    .why-pmay-cards .teaser-carousel-card {
        flex: none;
    }

    .teaser-carousel-track {
        overflow-x: auto;
        gap: 1rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
}

@media (max-width: 767px) {
    .teaser-carousel-container {
        padding-top: 0;
        padding-bottom: 0;
    }

    .teaser-carousel-track {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 1rem;
        scroll-snap-type: x mandatory;
        padding: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .teaser-carousel-track::-webkit-scrollbar {
        display: none;
    }

    .teaser-carousel-card {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .teaser-carousel-wrapper {
        padding: 0;
    }

    .teaser-carousel-card {
        flex: 0 0 75%;
        /* Show 1 card on mobile */
    }

    .teaser-carousel-container h1 {
        font-size: 24px;
        line-height: 120%;
    }

    .teaser-carousel-track {
        gap: 20px;
    }

    .show-six-cards .teaser-carousel-card {
        flex: 0 0 34%;
    }

    .other-products-cards .teaser-carousel-track>div>div:nth-child(2) p {
        font-size: 16px;
        justify-content: center;
        display: flex;
        padding-top: 17px;

    }

    .other-products-cards .teaser-carousel-track>div>div:nth-child(2) {
        width:70%;
    }

    .other-products-cards .teaser-carousel-card {
        /* padding: 14px 12px;
        gap: 5px; */
        min-height: auto;
    }

    .why-pmay-cards .teaser-carousel-track>div>div:nth-child(2) p {
        font-size: 16px;
        padding: 20px 20px;
        margin: 0;
    }

    .why-pmay-cards .teaser-carousel-track>div>div:nth-child(2) {
        top: -10px;
    }

    .why-pmay-cards .teaser-carousel-card {
        flex: 0 0 46%;
        gap: 10px;
    }

    .documents-required .teaser-carousel-card {
        flex: 0 0 100%;
    }

    .teaser-carousel-dots {
        justify-content: flex-end;
        gap: 7px;
        margin-top: 25px;
    }

    .teaser-carousel-dot {
        padding: 3px;
        height: 6px;
        width: 6px;
    }

    .teaser-carousel-dot.active {
        width: 24px;
        height: 6px;

    }

    .other-products-cards .teaser-carousel-track>div>div:nth-child(1) img {
        height: 50px;
    }
}