.review-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: -1rem;
}

/* Button Styling */
.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    z-index: 1000;
    opacity: 0.8;
}

.nav-button:hover {
    background-color: #212c5e92;
    /* Darker shade on hover */
}

.left-button {
    left: 0px;
}

.right-button {
    right: 0px;
}

/* Hide the left button initially */
#prev-review {
    display: none;
}

.review-list {
    display: flex;
    gap: 16px;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0;
    margin: 0;
    list-style: none;
    /* No bullet points */
    scrollbar-width: none;
    /* Hide scrollbar */
}

.review-list::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for WebKit browsers */
}

.review-list li {
    margin: 1rem auto;
    flex: 0 0 75%;
    scroll-snap-align: center;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    height: 150px;
    transition: transform 0.3s ease-in-out;
    /* position: relative; */
}

.story-slide {
    flex: 0 0 75%;
    background-color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 300;
}

.review-header {
    margin-top: -0.4rem;
    background-color: transparent;
    width: 100%;
    height: 20%;
    z-index: 100;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: baseline;
    margin-left: -0.7rem;
    padding-left: 0.6rem;
    margin-right: -7rem;
    padding-right: 0.6rem;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.stars {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 30px;
    width: 110px;
    gap: 5px;
    border: none;
    border-radius: 25px;
    padding: 5px;
    position: absolute;
    right: 20%;
    transform: translateY(-0.6px);
}

.review-rating {
    position: absolute;
    right: 5%;
    transform: translateY(-2px);
}

.full-star,
.half-star,
.empty-star {
    height: 13px;
    width: 13px;
    transform: translateY(-19%);
}

.star svg {
    height: 13px;
    width: 13px;
}

.quote {
    position: absolute;
    left: -5px;
    top: 28px;
    transform: rotate(20deg);
    opacity: 0.7;
}

.quote svg {
    width: 30px;
    height: 30px;
}

.review-comment {
    transform: translate(10px, 5px);
    font-size: 0.78rem;
    color: var(--text-color);
    font-family: 'poppins', sans-serif;
    font-weight: 300;
    height: 60%;
    overflow-y: scroll;
    scrollbar-width: none;
}

.review-comment::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for WebKit browsers */
}



.date {
    display: flex;
    flex-direction: row;
    justify-content: baseline;
    align-items: center;
    font-size: 0.7rem;
    color: gray;
}

.date-icon {
    height: 22px;
    width: 22px;
    margin-right: 6px;
    scale: 0.8;
    transform: translateY(-2px);
}

#average-rating {
    margin-left: 5px;
    margin-right: 3px;
    font-size: 1.2rem;
}

.average-star {
    font-size: 1.1rem;
}

.gift-icon {
    position: absolute;
    right: 0;
    transform: translateY(10%);
}

.based-text,
.review-rating {
    font-family: 'poppins', sans-serif;
    font-size: 0.7rem;
    text-decoration: wavy;
    color: #c5c5c5;
    font-weight: 250;
    margin-bottom: -0.5rem;
}

/* Peeking effect: Next review slightly visible */
@media (min-width: 768px) {
    .review-list li {
        flex: 0 0 45%;
    }
}

@media (min-width: 1024px) {
    .review-list li {
        flex: 0 0 30%;
    }
}

/* Dots */
.nav-dots {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 5px;
}

.nav-dots .dot {
    width: 8px;
    height: 8px;
    background: gray;
    border-radius: 50%;
    margin: 0 4px;
    transition: transform 0.3s;
    cursor: pointer;
}

.nav-dots .dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Loading Animation for Dots */
@keyframes wave {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

.loading .dot {
    animation: wave 1.5s infinite;
}

span>h4 {
    margin-top: 5px;
    text-decoration: underline;
    border-radius: 25px;
    padding: 5px 7px;
    color: var(--primary-color);
}

div>p {
    font-size: 13px;
    margin-top: 3px;
    margin-bottom: 5px;
}

.track-btn {
    width: 27%;
    font-size: 11px;
    padding: 5px 7px;
    font-weight: 500;
    margin-bottom: -5px;
    margin-top: -8px;
}

.reporting-text {
    font-size: 0.85rem;
    color: var(--primary-color);
}

.text-center>a {
    font-weight: 500;

}

section>.card {
    background-color: #f9f9f9;
}

section>.card>p {
    border: 1.2px dotted var(--text-color);
    border-radius: 5px;
    margin-top: 3px;
    padding: 3px;
}

.tick-mark {
    stroke-dasharray: 9;
    /* Length of the tick */
    stroke-dashoffset: 9;
    /* Start hidden */
    animation: drawTick 0.7s ease-out 0.4s forwards;
}

.shield {
    animation: beat 2s ease-out 1s infinite;
}

@keyframes beat {
    0% {
        scale: 1.2;
    }

    40% {
        scale: 1;
    }

    90% {
        scale: 0.9;
    }

    100% {
        scale: 1.1;
    }


}

@keyframes drawTick {
    from {
        stroke-dashoffset: 9;
    }

    to {
        stroke-dashoffset: 0;
    }
}






.slider-section {
    position: relative;
    padding: 20px 0;
    width: 100%;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    background: transparent;
    z-index: 3;
    padding: 0;
    /* Remove container padding -> 100% width track */
    box-sizing: border-box;
    /* overflow: hidden; */
}

/* The Slider Track */
.slider {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

/* Slide Wrapper (Layout) */
.slide {
    flex: 0 0 100%;
    min-width: 100%;
    width: 100%;
    margin: 0;

    /* increased side padding to 15px to allow full shadow rendering */
    padding: 15px 15px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
}

/* Individual Card (Visuals) */
.slide-card {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f9fafb;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    /* Slightly stronger shadow */
    overflow: hidden;
    height: auto;
}

/* Top Image Part */
.slide-image {
    position: relative;
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.slide-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.slide-content-overlay {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    color: white;
    z-index: 2;
}

.slide-content-overlay h2 {
    font-family: "Inter", sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Bottom Description Part */
.slide-description-body {
    padding: 1.5rem;
    color: #333;
    flex-grow: 1;
}

.slide-description-body p {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
}


/* Navigation Dots */
.main-navigation-dots {
    display: flex;
    justify-content: center;
    margin-top: 5px;
    gap: 8px;
    /* spaced out a bit */
}

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

.main-dot-active {
    background-color: var(--primary-color);
    transform: scale(1.1);
}


/* --- Responsive --- */

/* Desktop: Grid View (All 3 cards visible) */
@media (min-width: 1024px) {
    .slider-section {
        overflow: visible;
        padding-bottom: 40px;
    }

    .slider {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        transform: none !important;
        /* Disable JS sliding translation */
    }



    .slide {
        min-width: 0;
        flex: initial;
        margin: 0;
        height: 100%;
        padding: 0;
        /* No side padding needed in grid view */
    }

    .main-navigation-dots {
        display: none;
        /* Hide dots on desktop */
    }
}

/* Tablet: Maybe showing partial or smaller cards? 
       For now, let's keep slider behavior but maybe ensure cards are sized okay.
    */
@media (min-width: 768px) and (max-width: 1023px) {

    /* Keep slider, maybe make content slightly larger text */
    .slide-image {
        height: 240px;
    }
}

/* Mobile */
@media (max-width: 767px) {

    /* The user mentioned "be weary of the nav dots in mobile mode" */
    .main-navigation-dots {
        margin-top: 10px;
        margin-bottom: 20px;
    }
}