/* Use Cases Section */
.use-cases-section {
    padding: 8rem 2rem;
    background: var(--bg-alt);
    position: relative;
}

.use-cases-content {
    max-width: 1200px;
    margin: 0 auto;
}

.use-cases-header {
    text-align: left;
    margin-bottom: 6rem;
    position: relative;
}

.use-cases-header::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2rem;
    width: 60px;
    height: 4px;
    background: var(--voi-light);
}

.use-cases-title {
    font-size: 3.5rem;
    color: var(--voi-dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.use-cases-subtitle {
    font-size: 1.25rem;
    color: #666;
    max-width: 600px;
    line-height: 1.6;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-bottom: 2rem;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    padding: 0 1rem;
}

.case-study-card {
    display: grid;
    grid-template-columns: 65% 35%;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 400px;
    gap: 0.25rem;
}

.case-study-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    background: linear-gradient(180deg, #4a90e2 0%, #357abd 100%);
}

.case-study-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.2) brightness(1.05) contrast(0.95);
    transition: filter 0.3s ease;
}

.case-study-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--voi-dark);
    border-radius: var(--radius-md);
    position: relative;
    height: 100%;
}

.case-study-title {
    position: absolute;
    top: 2rem;
    left: 2rem;
    color: white;
    font-size: 2rem;
    font-weight: 600;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(44, 3, 122, 0.2) 0%,
        rgba(103, 46, 217, 0.1) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    mix-blend-mode: multiply;
}

.case-study-quote {
    font-size: 1.1rem;
    line-height: 1.6;
    color: white;
    margin: 0;
    padding-top: 0.5rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.case-study-alt {
    font-size: 1.1rem;
    color: var(--voi-light);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.4;
    font-family: "Chakra Petch", sans-serif;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* Carousel Navigation */
.carousel-button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--voi-dark);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    opacity: 0.7;
    padding: 0;
}

.carousel-button:hover {
    opacity: 1;
}

.carousel-button svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5px;
}

.carousel-button.prev {
    left: 20px;
}

.carousel-button.next {
    right: 20px;
}

.carousel-navigation {
    position: absolute;
    bottom: 0;
    left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    height: 20px;
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    height: 20px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(103, 46, 217, 0.3);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--voi-light);
    transform: scale(1.5);
}

/* Large screens */
@media (min-width: 1200px) {
    .case-study-quote {
        font-size: 1.1rem;
    }
}

/* Medium-large screens */
@media (max-width: 1199px) and (min-width: 992px) {
    .case-study-card {
        height: 450px;
    }
    
    .case-study-quote {
        font-size: 1rem;
    }
}

/* Medium screens */
@media (max-width: 991px) and (min-width: 769px) {
    .case-study-card {
        height: 500px;
    }

    .case-study-quote {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .case-study-title {
        font-size: 1.75rem;
    }
}

/* Tablet/Small screens */
@media (max-width: 768px) {
    .use-cases-section {
        padding: 4rem 1.5rem;
    }

    .carousel-slide {
        flex: 0 0 100%;
        padding: 0 1rem;
    }

    .case-study-card {
        display: flex;
        flex-direction: column;
        background: white;
        border-radius: var(--radius-lg);
        overflow: hidden;
        height: 480px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .case-study-image-container {
        position: relative;
        height: 240px;
        width: 100%;
    }

    .case-study-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .case-study-title {
        position: absolute;
        bottom: 1.5rem;
        left: 1.5rem;
        color: white;
        font-size: 1.75rem;
        z-index: 2;
    }

    .case-study-content {
        flex: 1;
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        background: var(--voi-dark);
    }

    .case-study-quote {
        font-size: 1rem;
        line-height: 1.6;
        color: white;
        margin: 0 0 1rem 0;
        flex-grow: 1;
    }

    .case-study-alt {
        font-size: 1.1rem;
        color: var(--voi-light);
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin: 0;
    }
}

/* Mobile screens */
@media (max-width: 480px) {
    .use-cases-section {
        padding: 3rem 1rem;
    }

    .case-study-card {
        height: 420px;
    }

    .case-study-image-container {
        height: 200px;
    }

    .case-study-title {
        font-size: 1.5rem;
        bottom: 1.25rem;
        left: 1.25rem;
    }

    .case-study-content {
        padding: 1.25rem;
    }

    .case-study-quote {
        font-size: 0.95rem;
        margin: 0 0 0.75rem 0;
    }

    .case-study-alt {
        font-size: 1rem;
        padding-top: 0.75rem;
    }
}

/* Section Responsive Styles */
@media (max-width: 768px) {
    .use-cases-section {
        padding: 4rem 1.5rem;
    }

    .use-cases-header {
        margin-bottom: 4rem;
    }

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

    .use-cases-subtitle {
        font-size: 1.1rem;
    }

    .carousel-navigation {
        left: 50%;
        transform: translateX(-50%);
        justify-content: center;
        width: 100%;
    }

    .carousel-dots {
        gap: 1rem;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
        background: rgba(103, 46, 217, 0.2);
        transition: all 0.3s ease;
    }

    .carousel-dot.active {
        background: var(--voi-light);
        transform: scale(1.3);
    }

    .carousel-button {
        display: none;
    }
}

@media (max-width: 480px) {
    .use-cases-section {
        padding: 3rem 1rem;
    }

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