/* Case Study Specific Styles */

/* Header */
.case-study-header {
    background: #FFF;
    padding: 32px 0;
    border-bottom: 1px solid #E5E7EB;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 42px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-menu a {
    color: #111;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    opacity: 0.7;
}

.btn-lets-talk {
    padding: 8px 16px;
    border: 1px solid #0C753E;
    background: transparent;
    color: #111;
    border-radius: 8px;
    font-family: 'Spline Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-lets-talk:hover {
    background: #0C753E;
    color: white;
}

/* Main Content */
.case-study-main {
    background: #FFF;
    padding: 36px 0 120px;
}

.case-study-container {
    max-width: 1201px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Back Button */
.back-button {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 53px;
    cursor: pointer;
}

.back-button a {
    color: #111827;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s;
}

.back-button:hover a {
    opacity: 0.7;
}

/* Meta Info */
.case-study-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.meta-date {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-date span {
    color: #4B4B4B;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
}

.meta-category {
    padding: 4px 12px;
    border-radius: 40px;
    border: 1px solid #4B4B4B;
}

.meta-category span {
    color: #4B4B4B;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
}

/* Header Content */
.case-study-header-content {
    margin-bottom: 40px;
}

.case-study-header-content h1 {
    color: #111827;
    font-family: 'Inter', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 120%;
    margin-bottom: 40px;
}

.case-study-header-content p {
    color: #202020;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 150%;
    margin-bottom: 40px;
}

.featured-image {
    width: 100%;
    height: 675px;
    object-fit: cover;
    border-radius: 24px;
    margin-bottom: 40px;
}

/* Content Styles */
.case-study-content {
    color: #202020;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 150%;
}

.case-study-content h2 {
    color: #111827;
    font-size: 24px;
    font-weight: 700;
    margin: 40px 0 24px;
}

.case-study-content h3 {
    color: #111827;
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
    margin: 24px 0 16px;
}

.case-study-content p {
    margin-bottom: 16px;
}

.case-study-content ul,
.case-study-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.case-study-content li {
    margin-bottom: 16px;
    line-height: 36px;
}

.case-study-content strong {
    font-weight: 600;
}

.case-study-content blockquote {
    padding: 0 12px;
    border-left: 2px solid #0C753E;
    margin: 40px 0;
    font-size: 18px;
    line-height: 36px;
}

.case-study-content blockquote strong {
    font-size: 22px;
    font-weight: 600;
}

/* Highlight Boxes */
.highlight-box {
    padding: 16px 0;
    border-radius: 80px;
    background: #57BD88;
    text-align: center;
    margin: 16px 0;
}

.highlight-box p {
    color: #FFF;
    font-size: 28px;
    font-weight: 500;
    line-height: 150%;
    margin: 0;
}

/* Check List Items */
.check-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #D2D2D2;
}

.check-item svg {
    flex-shrink: 0;
}

.check-item p {
    color: rgba(0, 0, 0, 0.60);
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

/* Integration Boxes */
.integration-row {
    display: flex;
    gap: 8px;
    margin: 16px 0;
}

.integration-box {
    flex: 1;
    padding: 16px 18px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.30);
    text-align: center;
}

.integration-box p {
    color: #202020;
    font-size: 18px;
    font-weight: 400;
    line-height: 26px;
    margin: 0;
}

/* Divider */
.content-divider {
    width: 100%;
    height: 1px;
    background: #D0D0D0;
    margin: 40px 0;
}

/* CTA Section */
.cta-section {
    padding: 60px;
    border-radius: 16px;
    background: linear-gradient(96deg, #EBFFF2 0%, #B9FFD3 100%);
    margin: 40px 0;
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 393px;
    margin: 0 auto;
}

.cta-icon {
    width: 48px;
    height: 48px;
    padding: 12px;
    border-radius: 9999px;
    background: #22C55E;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-content h2 {
    color: #111827;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

.cta-content h2 .highlight {
    color: #16A34A;
}

.cta-content p {
    color: #4B5563;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    margin: 0;
}

.btn-cta {
    width: 100%;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #0C753E;
    background: linear-gradient(270deg, #0C753E 0%, #57BD88 100%);
    color: #FFF;
    font-family: 'Spline Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(12, 117, 62, 0.3);
}

.cta-footer {
    color: #6B7280;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
}

/* Related Studies */
.related-section {
    margin: 40px 0;
}

.related-section h2 {
    color: #202020;
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 120%;
    margin-bottom: 40px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.related-card {
    border: 1px solid #D0D0D0;
    border-radius: 16px;
    overflow: hidden;
    background: #FFF;
    cursor: pointer;
    transition: all 0.3s;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.related-card-image {
    width: 100%;
    height: 149px;
    object-fit: cover;
}

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

.related-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.related-card-meta span {
    color: #444;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 300;
}

.related-card-title {
    color: #0D0D0D;
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 130%;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 58px;
}

.related-card-link {
    color: #0D0D0D;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

/* Key Highlights Section */
.key-highlights-section {
    margin: 40px 0;
    padding: 40px 0;
}

.key-highlights-header {
    text-align: center;
    margin-bottom: 32px;
}

.key-highlights-header h2 {
    color: #111827;
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 36px;
    margin-bottom: 12px;
}

.key-highlights-header h2 .highlight {
    color: #16A34A;
}

.key-highlights-header p {
    color: #4B5563;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
}

.key-highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.highlight-card {
    padding: 25px 20px;
    border-radius: 12px;
    background: #FFF;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.10), 0 4px 6px -4px rgba(0, 0, 0, 0.10);
    text-align: center;
}

.highlight-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    padding: 12px;
    border-radius: 9999px;
    background: #DCFCE7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-card h3 {
    color: #111827;
    font-family: 'Inter', sans-serif;
    font-size: 30px;
    font-weight: 900;
    line-height: 36px;
    margin: 0 0 8px 0;
}

.highlight-card p {
    color: #4B5563;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 22.75px;
    margin: 0;
}

/* Two Column Section */
.two-column-section .two-column-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 71px;
    margin-top: 16px;
}

.two-column-grid .column p {
    color: #202020;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 36px;
    margin: 0;
}

/* Solution Section with Phases */
.solution-section {
    padding: 16px;
    border-radius: 16px;
    background: #F0FDF4;
    margin: 40px 0;
}

.solution-section h2 {
    color: #111827;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.solution-section>p {
    color: #202020;
    font-size: 18px;
    line-height: 28px;
    margin-bottom: 40px;
}

.phases-container {
    display: flex;
    gap: 20px;
    position: relative;
}

.phase-timeline {
    width: 2px;
    background: #D0D0D0;
    flex-shrink: 0;
}

.phases-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.phase-block {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.phase-header {
    padding: 0 4px;
    background: #D3FFE3;
}

.phase-header h3 {
    color: #15803C;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    padding: 8px 0;
}

.phase-block>p {
    color: #202020;
    font-size: 18px;
    line-height: 36px;
    margin: 0;
}

.phase-subsection {
    margin-top: 16px;
}

.phase-subsection h4 {
    color: #111827;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
    margin: 0 0 16px 0;
}

.phase-subsection p {
    color: #202020;
    font-size: 18px;
    line-height: 36px;
    margin: 0;
}

/* Results Section */
.results-section .results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.result-card {
    padding: 60px 20px;
    border-radius: 12px;
    background: #F0FDF4;
    text-align: center;
}

.result-card h3 {
    color: #15803D;
    font-family: 'Inter', sans-serif;
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 20px 0;
}

.result-card p {
    color: #0B4B23;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 150%;
    margin: 0;
}

/* Content Section */
.content-section {
    margin: 40px 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 40px;
    }

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

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .key-highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .results-section .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .two-column-section .two-column-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }

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

    .case-study-header-content h1 {
        font-size: 32px;
    }

    .featured-image {
        height: 400px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .cta-section {
        padding: 40px 20px;
    }

    .integration-row {
        flex-direction: column;
    }

    .key-highlights-grid {
        grid-template-columns: 1fr;
    }

    .results-section .results-grid {
        grid-template-columns: 1fr;
    }

    .phases-container {
        flex-direction: column;
    }

    .phase-timeline {
        display: none;
    }
}

/* ===================================================
   CASE STUDIES ARCHIVE PAGE
   =================================================== */

/* --- Hero Section --- */
.cs-archive-hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0B0B0B;
}

.cs-archive-hero-bg {
    position: absolute;
    inset: 0;
}

/* Background image — fill the full hero like about-us */
.case-study-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Overlay: dark on left fading to near-transparent on right, same pattern as about-us */
.cs-archive-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.15) 100%);
}

.cs-archive-hero-container {
    position: relative;
    z-index: 1;
    max-width: 1440px;
    margin: 0 auto;
    padding: 36px 120px;
    width: 100%;
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

/* --- Archive Header / Nav --- */
.cs-archive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px;
}

.cs-archive-header .logo img {
    height: 42px;
}

.cs-archive-header .nav-menu a {
    color: #fff;
}

.cs-archive-header .btn-lets-talk {
    color: #fff;
    border-color: #0C753E;
    background: transparent;
}

.cs-archive-header .btn-lets-talk:hover {
    background: rgba(12, 117, 62, 0.15);
}

/* --- Archive Hero Content --- */
.cs-archive-hero-content {
    position: absolute;
    left: 120px;
    top: 50%;
    transform: translateY(-50%);
    max-width: 700px;
    z-index: 2;
    margin-top: 40px;
    /* offset for the header height */
}

.cs-archive-title {
    background: linear-gradient(to right, white 0%, #57BD88 50%, #57BD88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Inter', sans-serif;
    font-size: 84px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 20px 0;
}

.cs-archive-title-accent {
    background: linear-gradient(to right, #fff 0%, #57BD88 50%, #57BD88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cs-archive-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.80);
    max-width: 580px;
    margin: 0;
}

/* --- Archive Grid Section --- */
.cs-archive-section {
    background: #F6F7F8;
    padding: 80px 0 120px;
}

.cs-archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.cs-archive-intro {
    text-align: center;
    margin-bottom: 56px;
}

.cs-archive-intro h2 {
    font-family: 'Inter', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px 0;
    line-height: 1.25;
}

.cs-archive-intro-accent {
    color: #16A34A;
}

.cs-archive-intro p {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #6B7280;
    margin: 0;
    max-width: 560px;
    margin-inline: auto;
}

/* 3-column grid */
.cs-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* --- Archive Card --- */
.cs-archive-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #E5E7EB;
    cursor: pointer;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    display: flex;
    flex-direction: column;
}

.cs-archive-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.10);
}

/* Image wrapper */
.cs-archive-card-image-wrap {
    position: relative;
    width: 100%;
    height: 210px;
    overflow: hidden;
}

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

.cs-archive-card:hover .cs-archive-card-img {
    transform: scale(1.04);
}

.cs-archive-card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.08) 100%);
    pointer-events: none;
}

/* Card body */
.cs-archive-card-body {
    padding: 20px 20px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Meta row (date + category pill) */
.cs-archive-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cs-archive-card-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6B7280;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
}

.cs-archive-card-date svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.cs-archive-card-cat {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    background: #F3F4F6;
    border: 1px solid #D1D5DB;
    border-radius: 100px;
    padding: 3px 12px;
    white-space: nowrap;
}

/* Title */
.cs-archive-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    line-height: 1.45;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Read link */
.cs-archive-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #16A34A;
    text-decoration: none;
    margin-top: 4px;
    transition: gap 0.2s ease, opacity 0.2s ease;
}

.cs-archive-card-link:hover {
    opacity: 0.8;
    gap: 10px;
}

.cs-archive-card-link svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.cs-archive-card-link:hover svg {
    transform: translateX(2px);
}

/* --- Archive Responsive --- */
@media (max-width: 1200px) {
    .cs-archive-hero-container {
        padding: 36px 60px;
        min-height: 600px;
    }

    .cs-archive-hero-content {
        left: 60px;
    }

    .cs-archive-title {
        font-size: 64px;
    }

    .cs-archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .cs-archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cs-archive-hero {
        min-height: 500px;
    }

    .cs-archive-hero-container {
        padding: 24px;
        min-height: 500px;
    }

    .cs-archive-hero-content {
        position: static;
        transform: none;
        left: auto;
        top: auto;
        margin-top: 80px;
        max-width: 100%;
    }

    .cs-archive-header {
        margin-bottom: 0;
    }

    .cs-archive-title {
        font-size: 42px;
    }

    .cs-archive-subtitle {
        font-size: 17px;
    }

    .cs-archive-intro h2 {
        font-size: 30px;
    }

    .cs-archive-grid {
        grid-template-columns: 1fr;
    }

    .cs-archive-card-image-wrap {
        height: 180px;
    }
}