.case-studies-container, .single-spotlight-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Production Container */
.case-studies-container {
    background-color: #fff;
    border-radius: 3px;
    margin-bottom: 30px;
    padding: 40px;
}

/* Header Section */
.header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.home-spotlights .case-studies-container {
    padding: 30px 0;
}

.home-spotlights .header-row {
    margin-bottom: 0;
}

.header-text h2 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.header-text p {
    color: #555;
    font-size: 1rem;
}

.view-all-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background-color: #005B2B;
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

/* Cards Grid */
.cards-grid {
    display: flex;
    gap: 25px;
    justify-content: center;
}

.spotlight-cards {
    display: grid;
    grid-template-columns: repeat(var(--spotlight-columns, 3), minmax(0, 1fr));
    gap: 25px;
}

.spotlight-cards-carousel {
    overflow: hidden;
    padding-top: 30px;
    padding-bottom: 30px;
}

.spotlight-cards-carousel .splide__track {
    padding: 30px 20px !important;
}

.spotlight-cards-carousel .splide__slide {
    height: auto;
}

.spotlight-cards-carousel .case-card {
    height: 100%;
}

.spotlight-carousel-controls {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.spotlight-carousel-progress {
    flex: 1 1 auto;
    min-width: 120px;
    height: 6px;
    background: #d9dce5;
    border-radius: 999px;
    overflow: hidden;
}

.spotlight-carousel-progress-bar {
    display: block;
    width: 0;
    height: 100%;
    background: #005B2B;
    border-radius: 999px;
    transition: width 0.35s ease;
}

.spotlight-carousel-count {
    flex: 0 0 auto;
    min-width: 36px;
    color: #333;
    font-size: 16px;
    line-height: 1;
    font-weight: 500;
}

.spotlight-carousel-arrows {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.spotlight-cards-carousel .spotlight-carousel-arrow {
    position: static;
    transform: none;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid #cfd4df;
    background: #fff;
    color: #005B2B;
    box-shadow: none;
    opacity: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: inherit;
}

.spotlight-cards-carousel .spotlight-carousel-arrow svg {
    width: 18px;
    height: 18px;
    fill: none;
}

.spotlight-cards-carousel .spotlight-carousel-arrow--next {
    background: #005B2B;
    border-color: #005B2B;
    color: #fff;
}

.spotlight-cards-carousel .spotlight-carousel-arrow:hover,
.spotlight-cards-carousel .spotlight-carousel-arrow:focus-visible {
    background: #e0fcec;
    border-color: #a4fcc8;
    color: #005B2B;
}

.spotlight-cards-carousel .spotlight-carousel-arrow--next:hover,
.spotlight-cards-carousel .spotlight-carousel-arrow--next:focus-visible {
    background: #005B2B;
    border-color: #005B2B;
    color: #fff;
}

.spotlight-cards-carousel .spotlight-carousel-arrow:disabled,
.spotlight-cards-carousel .spotlight-carousel-arrow[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

.single-case-card {
    padding-top: 20px;
    flex: 1;
    background: #fff;
    overflow: hidden;
    padding: 40px;
}

/* Individual Card */
.case-card {
    flex: 1;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    overflow: hidden;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Transition */
.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.image-wrapper {
    width: 100%;
    height: 280px;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 20px;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content h3 {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 8px;
}

.tax-spotlight_category .card-content h3{
    margin-bottom: 25px;
}

.card-content p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 25px;
}

/* Card Button */
.learn-more-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background-color: #005B2B;
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.learn-more-btn:hover, .view-all-btn:hover, 
.learn-more-btn:active, .view-all-btn:active, 
.learn-more-btn:focus, .view-all-btn:focus {
    background-color: #007a3a;
    color: white;
}

.spotlight-type-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 60px;
}

.spotlight-type-title {
    margin: 0 0 16px;
    font-size: 1.5rem;
    color: #1a1a1a;
}

.cards-grid--stack {
    flex-direction: column;
    justify-content: flex-start;
}

.spotlight-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-top: 40px;
    padding: 20px 24px;
    border: 1px solid #1a1a1a;
    border-radius: 20px;
    transition: background-color 0.3s ease;
}

.spotlight-cta-content h2 {
    margin: 0 0 8px;
    font-size: 1.5rem;
    color: #1a1a1a;
}

.spotlight-cta-content p {
    margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .cards-grid {
        flex-direction: column;
    }
    .spotlight-cards {
        grid-template-columns: 1fr;
    }
    .spotlight-type-columns {
        grid-template-columns: 1fr;
    }
    .spotlight-carousel-controls {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
    .spotlight-carousel-progress {
        width: 140px;
    }
    .header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .spotlight-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 16px;
    }
    .spotlight-cta-content h2 {
        font-size: 1.25rem;
    }
    .spotlight-cta .learn-more-btn {
        width: 100%;
        justify-content: center;
    }
}
