/* Case Study Detail Page Styles */

/* Hero Section */
.cs-hero {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    padding: 100px 0 80px;
    border-bottom: 1px solid var(--border-color);
}

.cs-hero-content {
    padding-right: 2rem;
}

.cs-hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--secondary-blue);
    position: relative;
}

.cs-project-summary {
    font-size: 1.35rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.6;
    max-width: 90%;
}

.cs-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
}

.cs-tag {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.cs-tag:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-1px);
}

.cs-results-panel {
    background: var(--white);
    border: none;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.cs-results-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--primary-blue);
}

.cs-results-panel h3 {
    font-size: 1.25rem;
    color: var(--secondary-blue);
    margin-bottom: 2rem;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 1rem;
    font-family: 'Outfit', sans-serif;
}

.cs-hero-metric {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.cs-hero-metric:last-child {
    margin-bottom: 0;
}

.cs-hero-metric i {
    color: var(--primary-blue);
    font-size: 1.4rem;
    width: 30px;
    text-align: center;
}

.cs-hero-metric span {
    font-weight: 600;
    color: var(--secondary-blue);
    font-size: 1.15rem;
}

/* Client & Context */
.cs-context-section {
    padding: 100px 0;
    background: var(--white);
}

.cs-section-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    /* Center align as requested */
}

.cs-section-label::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--primary-blue);
}

/* Business Challenge */
.cs-challenge-section {
    background: #f8fafc;
    padding: 100px 0;
}

.cs-challenge-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cs-challenge-list {
    margin-top: 1.5rem;
    list-style: none;
    padding: 0;
}

.cs-challenge-list li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.cs-challenge-list li::before {
    content: '\f071';
    /* Warning icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    color: #f59e0b;
    font-size: 1.2rem;
}

/* Approach */
.cs-approach-section {
    padding: 120px 0;
    background: var(--white);
}

.approach-step {
    margin-bottom: 3rem;
    padding-right: 2rem;
}

.approach-step h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-blue);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.approach-step h3 i {
    width: 50px;
    height: 50px;
    background: #f0f9ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1.2rem;
}

.approach-list {
    margin-top: 1.5rem;
    padding-left: 4.5rem;
}

.approach-list li {
    margin-bottom: 0.8rem;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.approach-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--primary-blue);
    border-radius: 50%;
}

/* Solution Details */
.cs-solution-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
}

.solution-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    border: none;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.tech-stack-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.tech-item {
    background: #f0f9ff;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-blue);
    border: 1px solid rgba(56, 189, 248, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Results & Impact */
.cs-results-section {
    padding: 120px 0;
    background: var(--white);
}

.results-grid-detailed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.result-tile {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.result-tile:hover {
    border-color: var(--primary-blue);
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(56, 189, 248, 0.15);
}

.result-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 1rem;
    display: block;
}

.result-label {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--secondary-blue);
    display: block;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-desc {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Visual Gallery */
.cs-gallery-section {
    padding: 100px 0;
    background: #0f172a;
    color: white;
}

.cs-gallery-section .cs-section-label {
    color: var(--primary-blue);
}

.cs-gallery-section h2 {
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 8px solid rgba(255, 255, 255, 0.05);
}

.gallery-item:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.1);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.01);
    /* Prevents pixel shimmy */
}

/* Client Quote */
.cs-quote-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    padding: 100px 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quote-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.quote-text {
    font-size: 2rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 3rem;
    opacity: 1;
    font-family: "Outfit", sans-serif;
}

.quote-author {
    font-weight: 700;
    color: white;
    font-size: 1.25rem;
    margin-bottom: 0.2rem;
}

.quote-role {
    font-size: 1rem;
    opacity: 0.8;
    color: #e0f2fe;
}

/* Timeline */
.cs-timeline-section {
    padding: 100px 0;
    background: #f8fafc;
}

.timeline-horizontal {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 5rem;
    padding: 0 40px;
}

.timeline-horizontal::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    width: auto;
    height: 4px;
    background: #e2e8f0;
    z-index: 0;
    border-radius: 4px;
}

.timeline-milestone {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}

.milestone-dot {
    width: 44px;
    height: 44px;
    background: var(--white);
    border: 4px solid var(--primary-blue);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 10px rgba(56, 189, 248, 0.3);
    transition: transform 0.3s;
}

.timeline-milestone:hover .milestone-dot {
    transform: scale(1.2);
    background: var(--primary-blue);
}

.milestone-title {
    font-weight: 700;
    color: var(--secondary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.milestone-date {
    font-size: 0.85rem;
    color: var(--primary-blue);
    background: rgba(56, 189, 248, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 992px) {
    .cs-hero-content {
        margin-bottom: 3rem;
        padding-right: 0;
    }

    .cs-hero-content h1 {
        font-size: 2.5rem;
    }

    .results-grid-detailed {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .timeline-horizontal {
        flex-direction: column;
        gap: 3rem;
        padding-left: 20px;
        margin-top: 3rem;
    }

    .timeline-horizontal::before {
        width: 4px;
        height: 100%;
        left: 38px;
        right: auto;
        top: 0;
    }

    .timeline-milestone {
        text-align: left;
        display: flex;
        align-items: center;
        gap: 2rem;
    }


    .milestone-dot {
        margin: 0;
        flex-shrink: 0;
    }
}

/* Grid System & Utilities (Shim for missing Bootstrap) */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-lg-5,
.col-lg-6,
.col-lg-7,
.col-lg-8,
.col-md-4,
.col-12 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.align-items-center {
    align-items: center;
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 2rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.mt-4 {
    margin-top: 2rem !important;
}

@media (min-width: 768px) {
    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (min-width: 992px) {
    .col-lg-5 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }

    .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-lg-7 {
        flex: 0 0 58.333333%;
        max-width: 58.333333%;
    }

    .col-lg-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
}

/* Specific component styles */
.cs-key-issues-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    height: 100%;
}