/**
 * Case Studies Page Styles
 */

.case-studies-page {
    background: #fff;
}

/* ===========================
   Hero Section
   =========================== */
.case-studies-hero {
    padding: 80px 0 0;
    background: #fff;
}

.case-studies-hero .container {
    max-width: 1280px;
    margin: 0 auto;
}

.case-studies-hero .hero-banner {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 24px;
    overflow: hidden;
}

.case-studies-hero .hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.case-studies-hero .hero-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Poppins', sans-serif;
    font-size: 80px;
    font-weight: 400;
    line-height: 100px;
    color: #fff;
    text-align: center;
    margin: 0;
    z-index: 1;
    white-space: nowrap;
    padding: 0 20px;
}

/* ===========================
   Case Studies Grid Section
   =========================== */
.case-studies-grid {
    padding: 120px 0;
    background: #fff;
}

.case-studies-grid .container {
    max-width: 1280px;
    margin: 0 auto;
}

.case-studies-grid .grid-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 16px;
}

.case-studies-grid .case-study-card {
    display: flex;
    flex-direction: column;
}

.case-studies-grid .card-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease;
}

.case-studies-grid .card-link:hover {
    transform: translateY(-4px);
}

.case-studies-grid .card-image {
    width: 100%;
    height: 260px;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 24px;
}

.case-studies-grid .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.case-studies-grid .card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: normal;
    color: #000;
    margin: 0 0 24px 8px;
    flex: 1;
}

.case-studies-grid .card-link-text {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 8px;
}

.case-studies-grid .card-link-text span {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #000;
}

.case-studies-grid .card-link-text .arrow-icon {
    width: 24px;
    height: 24px;
    display: block;
}

.case-studies-grid .no-posts {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #595959;
    text-align: center;
    margin: 40px 0;
    grid-column: 1 / -1;
}

/* ===========================
   Responsive Styles - Tablet
   =========================== */
@media screen and (max-width: 1280px) {
    .case-studies-hero {
        padding: 60px 0 0;
    }

    .case-studies-hero .container {
        padding: 0 40px;
    }

    .case-studies-hero .hero-banner {
        height: 320px;
    }

    .case-studies-hero .hero-title {
        font-size: 48px;
        line-height: 60px;
        padding: 0 16px;
    }

    .case-studies-grid {
        padding: 80px 0;
    }

    .case-studies-grid .container {
        padding: 0 40px;
    }

    .case-studies-grid .grid-wrapper {
        gap: 32px 16px;
    }

    .case-studies-grid .card-image {
        height: 220px;
    }

    .case-studies-grid .card-title {
        font-size: 20px;
    }
}

/* ===========================
   Responsive Styles - Mobile
   =========================== */
@media screen and (max-width: 767px) {
    .case-studies-hero {
        padding: 40px 0 0;
    }

    .case-studies-hero .container {
        padding: 0 20px;
    }

    .case-studies-hero .hero-banner {
        height: 200px;
        border-radius: 16px;
    }

    .case-studies-hero .hero-title {
        font-size: 32px;
        line-height: 40px;
        padding: 0 12px;
    }

    .case-studies-grid {
        padding: 60px 0;
    }

    .case-studies-grid .container {
        padding: 0 20px;
    }

    .case-studies-grid .grid-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .case-studies-grid .card-image {
        height: 200px;
        border-radius: 16px;
    }

    .case-studies-grid .card-title {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .case-studies-grid .card-link-text span {
        font-size: 14px;
    }
}
