/* Modern Case Studies Page Styles */

:root {
    --default-color: #2f5597;
    --default-background: #2f5597;
}

/* ==================== Hero Section ==================== */
.case-studies-hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #2f5597 0%, #1e3a6d 100%);
    position: relative;
    overflow: hidden;
}

.case-studies-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    letter-spacing: -1px;
    animation: fadeInDown 0.8s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== Section Headers ==================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(47, 85, 151, 0.1) 0%, rgba(30, 58, 109, 0.1) 100%);
    color: var(--default-color);
    padding: 10px 24px;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(47, 85, 151, 0.2);
}

.section-badge i {
    font-size: 18px;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #718096;
    margin-bottom: 1.5rem;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2f5597 0%, #1e3a6d 100%);
    margin: 0 auto;
    border-radius: 0;
}

/* ==================== Case Studies Section ==================== */
.case-studies-section {
    padding: 80px 0;
    background: #f8f9fa;
    position: relative;
}

.case-studies-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(47, 85, 151, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* ==================== White Papers Section ==================== */
.white-papers-section {
    padding: 80px 0;
    background: #fff;
}

/* ==================== Case Study Card ==================== */
.case-study-card,
.white-paper-card {
    border: none;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.case-study-card:hover,
.white-paper-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(47, 85, 151, 0.2);
}

/* Card Image Wrapper */
.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.case-study-card:hover .card-image,
.white-paper-card:hover .card-image {
    transform: scale(1.08);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.case-study-card:hover .card-overlay,
.white-paper-card:hover .card-overlay {
    opacity: 1;
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #2f5597 0%, #1e3a6d 100%);
    color: #fff;
    padding: 8px 16px;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(47, 85, 151, 0.3);
    transition: all 0.3s ease;
    z-index: 1;
}

.case-study-card:hover .card-badge,
.white-paper-card:hover .card-badge {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(47, 85, 151, 0.4);
}

.white-paper-badge i {
    font-size: 14px;
}

/* Card Content */
.card-content {
    padding: 28px 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 1rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.case-study-card:hover .card-title,
.white-paper-card:hover .card-title {
    color: var(--default-color);
}

.card-description {
    font-size: 0.95rem;
    color: #718096;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Card Footer */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #2f5597 0%, #1e3a6d 100%);
    color: #fff;
    padding: 10px 20px;
    border-radius: 0;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(47, 85, 151, 0.2);
}

.read-more-btn:hover {
    background: linear-gradient(135deg, #1e3a6d 0%, #2f5597 100%);
    transform: translateX(4px);
    box-shadow: 0 6px 16px rgba(47, 85, 151, 0.3);
    color: #fff;
    text-decoration: none;
}

.read-more-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateX(3px);
}

/* ==================== Responsive Design ==================== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .card-image-wrapper {
        height: 200px;
    }

    .card-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .case-studies-hero-section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-title {
        font-size: 1.875rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .section-badge {
        padding: 8px 16px;
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }

    .card-image-wrapper {
        height: 180px;
    }

    .card-content {
        padding: 20px 18px;
    }

    .card-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .card-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .read-more-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .case-studies-section,
    .white-papers-section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .card-image-wrapper {
        height: 160px;
    }

    .card-content {
        padding: 16px 14px;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-description {
        font-size: 0.85rem;
    }
}
