:root {
    --case-item-border-radius: 16px;
    --case-item-img-border-radius: var(--case-item-border-radius);
}

/* Main Section */
.who.use-case {
    padding: 80px 0;
    background-color: var(--background);
    color: var(--text);
}

/* Section Title */
.who.use-case h2 {
    text-align: center;
    font-size: var(--font-xxl);
    margin-bottom: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Big Use Case Card */
.use-case-big-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1rem, 4vw, 2rem);
    margin-bottom: clamp(2rem, 5vw, 3rem);
    border-radius: 24px;
}

/* Optional: Modifier for reverse layout if needed */
.use-case-big-card.reverse {
    flex-direction: row-reverse;
}

.big-card-case-img {
    flex: 1;
    width: 500px;
    max-width: 45%;
    border-radius: 16px;
    object-fit: contain;
    height: auto;
    min-height: 300px;
    max-height: 450px;
}

.big-card-case-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: var(--font-ml);
    line-height: 1.4;
    color: var(--text);
    padding: clamp(0.5rem, 2vw, 1rem);
}

.big-card-case-text p {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.big-card-case-text span {
    font-size: var(--font-lg)!important;
}

/* Use Case Grid for Smaller Items */
.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Case Item Card */
.case-item {
    background: color-mix(in srgb, var(--text) 5%, transparent);
    border-radius: var(--case-item-border-radius);
    overflow: hidden;
    transition: all 0.2s;
}

/* Case Image Container */
.case-img {
    position: relative;
    overflow: hidden;
}

.case-img img {
    width: 100%;
    display: block;
    border-radius: var(--case-item-img-border-radius);
    transition: transform 0.3s ease;
    object-fit: cover;
}

/* Case Title Over Image */
.case-img h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    margin: 0;
    width: 100%;
    color: var(--text);
    background: color-mix(in srgb, var(--text) 5%, var(--background));
    padding: 1.5rem 1.5rem 0 1.5rem;
    border-radius: var(--case-item-border-radius);
    text-align: start;
}

/* Case Description Text */
.case-item > div:last-child {
    padding: 1.5rem;
    font-size: var(--font-md);
    color: var(--text);
    line-height: 1.6;
    text-align: start;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .use-case-big-card {
        gap: 1.5rem;
    }
    
    .big-card-case-img {
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .use-case-big-card,
    .text-image .use-case-big-card,
    .use-case-big-card.reverse,
    .text-image .use-case-big-card.reverse,
    .text-image .use-case-big-card:nth-child(even) {
        flex-direction: column!important;
        text-align: center;
        padding: 1rem;
    }
    
    .use-case-big-card.reverse {
        flex-direction: column;
    }
    
    .big-card-case-img {
        max-width: 400px;
        max-height: 400px;
    }
    
    .big-card-case-text {
        max-width: 100%;
        padding: 1rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .use-case-big-card {
        margin-bottom: 1.5rem;
        padding: 0.75rem;
    }
    
    .big-card-case-img {
        min-height: 200px;
    }
    
    .big-card-case-text {
        padding: 0.75rem 0.25rem;
    }
}

/* Text Image Block Styles */
.text-image.use-case {
    padding: 80px 0 0 0;
    background-color: var(--background);
    color: var(--text);
}

.text-image h2 {
    text-align: center;
    font-size: var(--font-xxl);
    margin-bottom: 4rem;
    font-weight: 700;
    line-height: 1.2;
}

.text-image .use-case-big-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    margin: 6rem 0;
    position: relative;
    padding: 0;
}

.text-image .use-case-big-card:nth-child(even) {
    flex-direction: row-reverse;
}

.text-image .big-card-case-img {
    flex: 1;
    max-width: 45%;
    border-radius: 16px;
    object-fit: contain;
    width: 100%;
    transition: transform 0.3s ease;
}

.text-image .big-card-case-text {
    flex: 1;
    padding: 2rem;
}

.text-image .big-card-case-text h2 {
    font-size: var(--font-xl);
    color: var(--text);
    margin-bottom: 1.5rem;
    text-align: center!important;
    font-weight: 700;
}

.text-image .big-card-case-text p,
.big-card-case-text p {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: var(--font-md);
    line-height: 1.6;
    color: color-mix(in srgb, var(--text) 80%, transparent);
    margin-bottom: 1.5rem;
}

.who.use-case .big-card-case-text p,
.who.use-case .big-card-case-text span,
.who.use-case .big-card-case-text strong
{
    font-size: 28px !important;
}

@media (max-width: 1200px) {
    .use-case-big-card,
    .text-image .use-case-big-card,
    .use-case-big-card.reverse,
    .text-image .use-case-big-card.reverse,
    .text-image .use-case-big-card:nth-child(even) {
        flex-direction: column!important;
    }
}

@media (max-width: 991px) {
    .who.use-case h2 {
        margin-bottom: 0;
    }
    .use-case-big-card {
        gap: 2rem;
        margin: 4rem 0;
    }
}

@media (max-width: 767px) {
    .use-case-big-card {
        flex-direction: column !important;
        text-align: center;
        gap: 2rem;
        margin: 3rem 0;
    }

    .text-image .big-card-case-img {
        max-width: 100%;
    }

    .text-image .big-card-case-text {
        padding: 1rem;
    }

    .text-image .big-card-case-text h2 {
        text-align: center !important;
    }

    .text-image h2 {
        margin-bottom: 2rem;
    }

    .who.use-case .big-card-case-text p,
    .who.use-case .big-card-case-text span,
    .who.use-case .big-card-case-text strong
    {
        font-size: 24px !important;
    }
}

.layout-page-lemon {
    @media(max-width:767px) {
        .big-card-case-text,
        .big-card-case-text span {
        }
    }
}
