.section {
    position: relative;
    padding: 80px 10px;
    background-color: #0a0a0a;
    /* Dark background matching design */
    background-image: url('/images/testimonial-bg.webp');
    background-size: cover;
    /* background-position: center; */
    background-repeat: no-repeat;
    color: #fff;
    overflow: hidden;
    min-height: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.smallHeading {
    font-size: var(--small-text-size);
    color: var(--color-paragraph);
    font-family: var(--font-lato);
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.title {
    font-family: var(--font-playfair);
    font-size: 2.5rem;
    color: var(--color-paragraph);
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 2px;
    /* text-transform: uppercase; */
    font-weight: 400;
}

.sliderContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    max-width: 1400px;
    width: 100%;
    position: relative;
    padding: 0 60px;
    /* Space for arrows */
}

.track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.card {
    background: #242323;
    border: 14px solid rgb(196, 156, 92);
    border-radius: 30px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    height: 100%;
    width: 100%;
}

.avatarContainer {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    position: relative;
    border-radius: 50%;
    padding: 7px;
    background: rgb(196, 156, 92);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    /* Inner border to separate from gold */
    background-color: #333;
}

.authorImageWrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

.avatar,
.authorImage {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: #333;
}

.name {
    font-family: var(--font-inter), sans-serif;
    font-size: 1.1rem;
    color: #f5e6d3;
    /* White as seen in image */
    margin-bottom: 5px;
    font-weight: 600;
}

.text {
    font-family: var(--font-paragraph);
    color: var(--color-paragraph);
    font-size: 1.15rem;
    line-height: 1.7;
    /* White as seen in image */
    margin-bottom: 20px;
    font-style: italic;
    opacity: 0.95;
    flex-grow: 1;
}

.initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    border-radius: 50%;
}

.readMoreBtn {
    background: none;
    border: none;
    color: #f5e6d3;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 10px;
    text-transform: capitalize;
    font-family: var(--font-inter);
}

.readMoreBtn:hover {
    text-decoration: underline;
}

.stars {
    color: var(--color-paragraph);
    font-size: 16px;
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-bottom: 15px;
}

.navBtn {
    background: transparent;
    border: none;
    color: rgb(196, 156, 92);
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 50px;
    height: 50px;
}

.navBtn:hover {
    transform: scale(1.2);
    color: #fff;
}

/* Lanterns decoration placeholder */
.lanterns {
    position: absolute;
    top: 0;
    right: 50px;
    width: 150px;
    height: auto;
    z-index: 5;
}

.button {
    display: inline-block;
    margin-top: 3rem;
    padding: 0.8rem 2rem;
    border: 1px solid var(--color-gold);
    color: #d3cab3;
    font-family: var(--font-lato);
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
}

.button:hover {
    background-color: #c49c5c;
    color: #F5E6D3;
}

/* Responsive adjustments for different viewport sizes */
@media (max-width: 1400px) {
    .sliderContainer {
        padding: 0 50px;
    }
}

@media (max-width: 1200px) {
    .sliderContainer {
        padding: 0 40px;
    }
}

@media (min-width: 1025px) {
    .navBtn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

    .prevArrow {
        left: 0;
    }

    .nextArrow {
        right: 0;
    }
}

@media (max-width: 1024px) {
    .sliderContainer {
        padding: 0 45px;
    }

    .title {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }

    .navBtn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        font-size: 2.2rem;
    }

    .prevArrow {
        left: 5px;
    }

    .nextArrow {
        right: 5px;
    }
}

@media (max-width: 768px) {
    .sliderContainer {
        padding: 0 35px;
    }

    .card {
        border-width: 10px;
        /* Strong but not too thick for small screens */
        padding: 25px 15px;
    }

    .avatarContainer {
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
    }

    .navBtn {
        font-size: 1.8rem;
        width: 35px;
        height: 35px;
        opacity: 0.7;
    }

    .prevArrow {
        left: 0;
    }

    .nextArrow {
        right: 0;
    }
}

@media (max-width: 480px) {
    .sliderContainer {
        padding: 0 30px;
    }

    .title {
        font-size: 2.2rem;
    }

    .section {
        padding: 60px 10px;
    }

    .card {
        border-width: 8px;
        border-radius: 20px;
    }

    .navBtn {
        font-size: 1.5rem;
    }
}