.section {
    padding: 80px 10px;
    background-color: #3a0c08;
    background-image: url('/images/about-us/guest-bg.webp');
    background-size: cover;
    background-position: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.sliderContainer {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1400px;
    width: 100%;
    position: relative;
    padding: 0 60px;
    margin: 0 auto;
}

.card {
    background-color: #F5E6D3;
    /* Cream background */
    padding: 20px;
    border: 2px solid #b07c4b;
    /* Gold border */
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    flex: 0 0 calc(33.333% - 30px);
    max-width: calc(33.333% - 30px);
    box-sizing: border-box;
}

.card:hover {
    transform: translateY(-10px);
}

.imageContainer {
    position: relative;
    width: 100%;
    height: 250px;
    margin-bottom: 25px;
    border: 1px solid #c49c5c;
    /* Inner border for image */
}

.blogTitle {
    font-family: var(--font-playfair);
    font-size: 1.5rem;
    color: #3e2723;
    /* Dark brown text */
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.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;
}

.excerpt {
    font-family: var(--font-playfair);
    font-size: 0.95rem;
    color: var(--color-alterparagraph) !important;
    margin-bottom: 25px;
    line-height: 1.6;
    max-width: 90%;
    opacity: 0.8;
}

.button {
    display: inline-block;
    padding: 10px 25px;
    border: 2px solid #b07c4b;
    color: #5d4037;
    font-family: var(--font-inter), sans-serif;
    text-transform: uppercase;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
    font-weight: 600;
    margin-top: auto;
}

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

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-paragraph);
    font-size: 3rem;
    cursor: pointer;
    background: none;
    border: none;
    transition: transform 0.2s;
    z-index: 10;
}

.arrow:hover {
    transform: translateY(-50%) scale(1.1);
}

.prevArrow {
    left: 0;
}

.nextArrow {
    right: 0;
}

.viewMoreContainer {
    margin-top: 60px;
}

.viewMoreButton {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid #c49c5c;
    color: #d3cab3;
    font-family: var(--font-inter), sans-serif;
    text-transform: uppercase;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
    border-radius: 8px;
}

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

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

    .arrow {
        font-size: 2.8rem;
    }
}

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

    .arrow {
        font-size: 2.5rem;
    }
}

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

    .card {
        flex: 0 0 100%;
        max-width: 50%;
    }

    /* Hide 2nd and 3rd cards on mobile, show only 1st */

    .card:nth-child(3) {
        display: none;
    }

    .arrow {
        font-size: 2.2rem;
    }

    .prevArrow {
        left: 5px;
    }

    .nextArrow {
        right: 5px;
    }

    .title {
        font-size: 2.5rem;
    }
}

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

    .arrow {
        font-size: 2rem;
    }

    .prevArrow {
        left: 0;
    }

    .nextArrow {
        right: 0;
    }
}

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

    .card {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Hide 2nd and 3rd cards on mobile, show only 1st */
    .card:nth-child(2) {
        display: none;
    }

    .card:nth-child(3) {
        display: none;
    }

    .arrow {
        font-size: 1.8rem;
    }

    .title {
        font-size: 2rem;
    }
}