/* ==================== CASE STUDY COMPONENT ==================== */

.case-study-section {
    padding: 100px 0;
    background: var(--background, #f9fafb);
    position: relative;
    overflow: hidden;
}

.case-study-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 40%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(199, 211, 0, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

/* Section Header */
.section-header-case {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(199, 211, 0, 0.1);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary-color, #1a1a1a);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.section-header-case h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--secondary-color, #1a1a1a);
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.section-header-case p {
    font-size: 17px;
    color: var(--text-light, #6b7280);
    line-height: 1.6;
}

/* Case Study Slider */
.case-study-slider {
    position: relative;
    padding: 0 60px;
}

.case-study-slider .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.case-study-slider .swiper-slide {
    height: auto;
    display: flex;
    padding: 0 15px;
}

@media (min-width: 1280px) {
    .case-study-slider .swiper-slide {
        width: 25% !important;
    }
}

.case-study-card {
    background: var(--white, #ffffff);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.case-study-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Image Wrapper */
.case-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 70%;
    overflow: hidden;
    background: #f3f4f6;
}

.case-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-study-card:hover .case-image {
    transform: scale(1.08);
}

.case-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.case-image-placeholder i {
    width: 64px;
    height: 64px;
    color: #9ca3af;
}

/* Overlay */
.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(26, 26, 26, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.4s;
}

.case-study-card:hover .case-overlay {
    opacity: 1;
}

.case-link {
    width: 48px;
    height: 48px;
    background: var(--primary-color, #c7d300);
    color: var(--secondary-color, #1a1a1a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    transform: translateY(10px);
}

.case-study-card:hover .case-link {
    transform: translateY(0);
}

.case-link:hover {
    background: var(--primary-dark, #a8b500);
    transform: scale(1.1);
}

.case-link i {
    width: 20px;
    height: 20px;
}

/* Case Content */
.case-content {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.case-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.category-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.case-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color, #1a1a1a);
    margin-bottom: 12px;
    line-height: 1.3;
    transition: color 0.3s;
}

.case-title a {
    color: inherit;
    text-decoration: none;
}

.case-title a:hover {
    color: var(--primary-color, #c7d300);
}

.case-excerpt {
    font-size: 15px;
    color: var(--text-light, #6b7280);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-color, #1a1a1a);
    text-decoration: none;
    transition: all 0.3s;
}

.case-read-more i {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

.case-read-more:hover {
    color: var(--primary-color, #c7d300);
}

.case-read-more:hover i {
    transform: translateX(4px);
}

/* Slider Navigation */
.case-slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
    padding: 0 10px;
}

.case-nav-btn {
    width: 48px;
    height: 48px;
    background: var(--white, #ffffff);
    border: 2px solid var(--border-color, #e5e7eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    pointer-events: all;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.case-nav-btn i {
    width: 20px;
    height: 20px;
    color: var(--secondary-color, #1a1a1a);
}

.case-nav-btn:hover {
    background: var(--primary-color, #c7d300);
    border-color: var(--primary-color, #c7d300);
    transform: scale(1.1);
}

.case-nav-btn:hover i {
    color: var(--secondary-color, #1a1a1a);
}

.case-nav-btn.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.case-nav-btn.swiper-button-disabled:hover {
    transform: none;
    background: var(--white, #ffffff);
    border-color: var(--border-color, #e5e7eb);
}

/* Pagination */
.case-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.case-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--border-color, #e5e7eb);
    opacity: 1;
    transition: all 0.3s;
}

.case-pagination .swiper-pagination-bullet-active {
    background: var(--primary-color, #c7d300);
    width: 32px;
    border-radius: 5px;
}

/* View All */
.case-view-all {
    text-align: center;
    margin-top: 50px;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--secondary-color, #1a1a1a);
    color: var(--white, #ffffff);
    font-size: 15px;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-view-all i {
    width: 18px;
    height: 18px;
    transition: transform 0.3s;
}

.btn-view-all:hover {
    background: var(--primary-color, #c7d300);
    color: var(--secondary-color, #1a1a1a);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(199, 211, 0, 0.3);
}

.btn-view-all:hover i {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 1280px) {
    .section-header-case h2 {
        font-size: 36px;
    }
}

@media (max-width: 1024px) {
    .case-study-section {
        padding: 80px 0;
    }

    .case-study-slider {
        padding: 0 50px;
    }

    .section-header-case h2 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .case-study-section {
        padding: 60px 0;
    }

    .case-study-slider {
        padding: 0 40px;
    }

    .case-study-slider .swiper-slide {
        padding: 0 10px;
    }

    .section-header-case {
        margin-bottom: 40px;
    }

    .section-header-case h2 {
        font-size: 28px;
    }

    .section-header-case p {
        font-size: 15px;
    }

    .case-nav-btn {
        width: 40px;
        height: 40px;
    }

    .case-nav-btn i {
        width: 18px;
        height: 18px;
    }

    .case-content {
        padding: 20px;
    }

    .case-title {
        font-size: 18px;
    }
}

@media (max-width: 640px) {
    .case-study-slider {
        padding: 0 20px;
    }

    .case-slider-nav {
        display: none;
    }

    .section-header-case h2 {
        font-size: 24px;
    }

    .case-image-wrapper {
        padding-top: 75%;
    }
}
