/* Container for the quotes slider */
.quotes-container {
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin: 100px auto 30px auto;
    width: 100%;
    transition: height 0.5s ease-in-out;
}

.home .quotes-container {
    margin: 0 auto;
}

/* Track that holds all quotes - slides horizontally */
.quotes {
    display: flex;
    transition: transform 1.5s ease-in-out;
    will-change: transform;
    align-items: flex-start; /* Prevent slides from stretching vertically */
}

/* Individual quote slide - CRITICAL: both flex and min-width needed */
.quote {
    flex: 0 0 100%;
    min-width: 100%; /* This prevents flex shrinking */
    box-sizing: border-box;
    padding: 0 35px 10px 35px;
    height: auto; /* Allow natural height */
}

/* Title styling */
.quote-title {
    margin: 0 0 15px 0;
    font-size: 24px;
    word-wrap: break-word;
}

/* Image wrapper - floats right so text wraps around */
.quote-image {
    float: right;
    width: 150px;
    margin: 0 0 15px 20px; /* Bottom and left margins */
}

/* Ensure image scales inside wrapper */
.quote-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Content wrapper */
.quote-content {
    overflow: hidden; /* Contains floats */
}

/* Text content styling */
.quote-content p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.quote p.author {
    font-style: italic;
    line-height: 1.5;
}

/* Person and organization info */
.quote-person,
.quote-organization {
    font-style: italic;
    word-wrap: break-word;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .quotes-container {
        margin: 50px auto 30px auto;
    }
    
    .quote {
        padding: 0 20px 10px 20px;
    }
    
    .quote-image {
        float: none;
        width: 100%;
        max-width: 200px;
        margin: 0 auto 15px auto;
        display: block;
    }
    
    .quote-content p {
        font-size: 18px;
    }
    
    .quote-title {
        font-size: 20px;
    }
}
