/* ─── Case Study Carousel ─────────────────────────────────── */

.csc-wrapper {
    position: relative;
    padding: 20px 70px 60px;
    max-width: 100%;
    box-sizing: border-box;
}

.csc-wrapper *,
.csc-wrapper *::before,
.csc-wrapper *::after {
    box-sizing: border-box;
}

/* ─── Swiper overrides ────────────────────────────────────── */

.csc-swiper {
    overflow: hidden;
    width: 100%;
}

.csc-swiper .swiper-slide {
    height: auto;
}

/* ─── Card ────────────────────────────────────────────────── */

.csc-card {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.csc-card:hover {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.1);
}

/* ─── Hero Image ──────────────────────────────────────────── */

.csc-card__image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    flex-shrink: 0;
}

.csc-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.csc-card__logo {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
}

.csc-card__logo img {
    max-height: 36px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

/* ─── Content Section ─────────────────────────────────────── */

.csc-card__content {
    padding: 22px 24px 26px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.csc-card__title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 18px 0;
    line-height: 1.4;
    padding: 0;
}

.csc-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.csc-card__title a:hover {
    color: #2563EB;
}

/* ─── Content Rows (Challenge / Solution / Results) ───────── */

.csc-card__row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.csc-card__row:last-child {
    margin-bottom: 0;
}

.csc-card__row-icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    line-height: 1;
}

.csc-card__row-icon svg {
    width: 22px;
    height: 22px;
}

.csc-card__row-icon i {
    font-size: 22px;
    line-height: 1;
}

.csc-card__row--challenge .csc-card__row-icon {
    color: #6B7280;
}

.csc-card__row--challenge .csc-card__row-icon svg {
    fill: #6B7280;
}

.csc-card__row--solution .csc-card__row-icon {
    color: #F59E0B;
}

.csc-card__row--solution .csc-card__row-icon svg {
    fill: #F59E0B;
}

.csc-card__row--results .csc-card__row-icon {
    color: #2563EB;
}

.csc-card__row--results .csc-card__row-icon svg {
    fill: #2563EB;
}

.csc-card__row-text {
    font-size: 13.5px;
    line-height: 1.6;
    color: #555555;
    margin: 0;
    padding: 0;
    flex: 1;
}

.csc-card__row--results .csc-card__row-text {
    color: #2563EB;
}

/* ─── Navigation Arrows ──────────────────────────────────── */

.csc-nav-btn {
    position: absolute;
    top: calc(50% - 20px);
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #E2E8F0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.25s ease;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    -webkit-tap-highlight-color: transparent;
}

.csc-nav-btn svg {
    stroke: #94A3B8;
    transition: stroke 0.25s ease;
    flex-shrink: 0;
}

.csc-nav-btn:hover {
    border-color: #2563EB;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.csc-nav-btn:hover svg {
    stroke: #2563EB;
}

.csc-nav-btn--prev {
    left: 5px;
}

.csc-nav-btn--next {
    right: 5px;
}

/* ─── Pagination Dots ────────────────────────────────────── */

.csc-pagination {
    text-align: center;
    margin-top: 28px;
    position: relative;
    z-index: 5;
}

.csc-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #CBD5E1;
    opacity: 1;
    margin: 0 6px !important;
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.csc-pagination .swiper-pagination-bullet-active {
    background: #22C55E;
    transform: scale(1.15);
}

/* ─── Responsive: Large Desktop (1400px+) ────────────────── */

@media (min-width: 1400px) {
    .csc-wrapper {
        padding: 24px 80px 65px;
    }

    .csc-card__image {
        height: 270px;
    }

    .csc-card__title {
        font-size: 18px;
    }

    .csc-card__row-text {
        font-size: 14px;
    }
}

/* ─── Responsive: Small Desktop / Large Tablet (1025-1199px) */

@media (max-width: 1199px) {
    .csc-wrapper {
        padding: 20px 65px 55px;
    }

    .csc-card__image {
        height: 230px;
    }

    .csc-card__content {
        padding: 20px 20px 24px;
    }

    .csc-card__title {
        font-size: 15px;
        margin-bottom: 15px;
    }

    .csc-card__row-text {
        font-size: 13px;
    }
}

/* ─── Responsive: Tablet Landscape (769-1024px) ──────────── */

@media (max-width: 1024px) {
    .csc-wrapper {
        padding: 18px 58px 50px;
    }

    .csc-nav-btn {
        width: 44px;
        height: 44px;
    }

    .csc-nav-btn svg {
        width: 18px;
        height: 18px;
    }

    .csc-card__image {
        height: 210px;
    }

    .csc-card__content {
        padding: 18px 18px 22px;
    }

    .csc-card__title {
        font-size: 15px;
        margin-bottom: 14px;
    }

    .csc-card__row {
        gap: 10px;
        margin-bottom: 12px;
    }

    .csc-card__row-text {
        font-size: 12.5px;
    }

    .csc-card__row-icon {
        width: 24px;
        height: 24px;
    }

    .csc-card__row-icon svg {
        width: 20px;
        height: 20px;
    }

    .csc-card__row-icon i {
        font-size: 20px;
    }
}

/* ─── Responsive: Tablet Portrait (601-768px) ────────────── */

@media (max-width: 768px) {
    .csc-wrapper {
        padding: 15px 50px 48px;
    }

    .csc-nav-btn {
        width: 40px;
        height: 40px;
    }

    .csc-nav-btn svg {
        width: 16px;
        height: 16px;
    }

    .csc-nav-btn--prev {
        left: 2px;
    }

    .csc-nav-btn--next {
        right: 2px;
    }

    .csc-card {
        border-radius: 10px;
    }

    .csc-card__image {
        height: 200px;
    }

    .csc-card__logo img {
        max-height: 28px;
    }

    .csc-card__content {
        padding: 16px 16px 20px;
    }

    .csc-card__title {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .csc-card__row {
        gap: 10px;
        margin-bottom: 10px;
    }

    .csc-card__row-text {
        font-size: 12px;
        line-height: 1.55;
    }

    .csc-card__row-icon {
        width: 22px;
        height: 22px;
    }

    .csc-card__row-icon svg {
        width: 18px;
        height: 18px;
    }

    .csc-card__row-icon i {
        font-size: 18px;
    }

    .csc-pagination {
        margin-top: 22px;
    }

    .csc-pagination .swiper-pagination-bullet {
        width: 9px;
        height: 9px;
        margin: 0 5px !important;
    }
}

/* ─── Responsive: Large Mobile (481-600px) ───────────────── */

@media (max-width: 600px) {
    .csc-wrapper {
        padding: 12px 44px 44px;
    }

    .csc-nav-btn {
        width: 36px;
        height: 36px;
    }

    .csc-nav-btn svg {
        width: 14px;
        height: 14px;
    }

    .csc-nav-btn--prev {
        left: 0;
    }

    .csc-nav-btn--next {
        right: 0;
    }

    .csc-card__image {
        height: 180px;
    }

    .csc-card__logo {
        top: 10px;
        left: 10px;
    }

    .csc-card__logo img {
        max-height: 24px;
    }

    .csc-card__content {
        padding: 14px 14px 18px;
    }

    .csc-card__title {
        font-size: 13.5px;
        margin-bottom: 10px;
    }

    .csc-card__row {
        gap: 8px;
        margin-bottom: 9px;
    }

    .csc-card__row-text {
        font-size: 11.5px;
        line-height: 1.5;
    }

    .csc-card__row-icon {
        width: 20px;
        height: 20px;
    }

    .csc-card__row-icon svg {
        width: 16px;
        height: 16px;
    }

    .csc-card__row-icon i {
        font-size: 16px;
    }
}

/* ─── Responsive: Small Mobile (≤480px) ──────────────────── */

@media (max-width: 480px) {
    .csc-wrapper {
        padding: 10px 38px 40px;
    }

    .csc-nav-btn {
        width: 32px;
        height: 32px;
        border-width: 1.5px;
    }

    .csc-nav-btn svg {
        width: 13px;
        height: 13px;
    }

    .csc-card {
        border-radius: 8px;
    }

    .csc-card__image {
        height: 160px;
    }

    .csc-card__content {
        padding: 12px 12px 16px;
    }

    .csc-card__title {
        font-size: 13px;
        margin-bottom: 10px;
        line-height: 1.35;
    }

    .csc-card__row {
        gap: 7px;
        margin-bottom: 8px;
    }

    .csc-card__row-text {
        font-size: 11px;
        line-height: 1.45;
    }

    .csc-card__row-icon {
        width: 18px;
        height: 18px;
    }

    .csc-card__row-icon svg {
        width: 14px;
        height: 14px;
    }

    .csc-card__row-icon i {
        font-size: 14px;
    }

    .csc-pagination {
        margin-top: 18px;
    }

    .csc-pagination .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        margin: 0 4px !important;
    }
}

/* ─── Responsive: Extra Small (≤380px) ───────────────────── */

@media (max-width: 380px) {
    .csc-wrapper {
        padding: 8px 34px 36px;
    }

    .csc-nav-btn {
        width: 28px;
        height: 28px;
    }

    .csc-nav-btn svg {
        width: 12px;
        height: 12px;
    }

    .csc-card__image {
        height: 140px;
    }

    .csc-card__content {
        padding: 10px 10px 14px;
    }

    .csc-card__title {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .csc-card__row {
        gap: 6px;
        margin-bottom: 7px;
    }

    .csc-card__row-text {
        font-size: 10.5px;
    }

    .csc-card__row-icon {
        width: 16px;
        height: 16px;
    }

    .csc-card__row-icon svg {
        width: 13px;
        height: 13px;
    }

    .csc-card__row-icon i {
        font-size: 13px;
    }

    .csc-pagination .swiper-pagination-bullet {
        width: 7px;
        height: 7px;
        margin: 0 3px !important;
    }
}
