
.recom-section {
    padding: 10rem 5%; 
    background-color: #fff8e6;
    position: relative;
    overflow: hidden;
    text-align: center;
    align-items: center;
    min-height: 55vh;
    width: 100%;
}

.heading {
    font-family: 'Courier New', Courier, monospace;
    color: #5c4b16;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 80px;
    text-align: center;
    padding: 1px 1%;
}

/* Add padding to the page container for space around the testimonial */
/* .page-container {
    padding: 0 60px; 
} */

.testimonial-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 800px; /* Fixed width */
    height: 250px; /* Fixed height */
    margin: 0 auto;
    position: relative;
    border-radius: 15px; /* Rounded corners */
    padding: 25px; /* Internal padding */
}

.testimonial {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    text-align: left;
    opacity: 1;
    transition: opacity 0.5s ease;
    width: 100%;
    height: 100%;
}

.testimonial.fade {
    opacity: 0;
}

.image-container {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quote-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 200px; /* Fixed height */
    justify-content: space-between; /* Position author at bottom */
    padding: 10px 0; /* Vertical padding */
}

.quote {
    font-size: 1.25rem;
    color: #5c4b16;
    line-height: 1.6;
    height: 140px; /* Fixed height for quote */
    overflow-y: auto; /* Allow scrolling for longer content */
    padding-right: 10px; /* Space for scrollbar */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 15px; /* Space between quote and author */
}

.author {
    font-size: 1.1rem;
    opacity: 0.6;
    color: #564418;
    margin-top: auto; /* Push to bottom */
    align-self: flex-start; /* Align to left */
    font-weight: 500; /* Slightly bolder */
}

.arrow {
    
    display: flex;
    align-items: center;
    font-size: 2rem;
    color: #5c4b16;
    cursor: pointer;
    background: none;
    border: none;
    padding: -130px;
    transition: transform 0.3s ease;
    opacity: 0.8;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

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

.arrow-left {
    left: -25px; /* Closer to container */
}

.arrow-right {
    right: -25px; /* Closer to container */
}

.controls {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 8px;
}

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

.dot.active {
    background-color: #5c4b16;
}

@media (max-width: 768px) {
    .page-container {
        padding: 0 20px;
    }
    
    .testimonial-container {
        width: 90%;
        height: 400px;
        padding: 5px;
    }
    
    .testimonial {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    /* .image-container {
        margin-bottom: 20px;
        margin-right: 0;
        width: 150px;
        height: 150px;
    } */
    
    .quote-container {
        height: auto;
        max-height: 200px;
        width: 100%;
    }
    
    .quote {
        height: auto;
        max-height: 150px;
    }
    
    .author {
        align-self: center;
    }
    
    .heading {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .arrow {
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }
    
    .arrow-left {
        left: -5px;
    }
    
    .arrow-right {
        right: -5px;
    }
}