﻿/* --- 1. BASE SECTION LAYOUT --- */
.timeline-section {
    padding: 80px 40px;
    background: #f8fafc;
}

.timeline-section-inner h2 {
    text-align: center;
    font-weight: 800;
    color: #1a2a44;
}

.timeline-subheading {
    text-align: center;
    max-width: 700px;
    margin: 15px auto 60px;
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* --- 2. THE STEPS CONTAINER --- */
.timeline-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px 25px;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Desktop default */
}

/* --- 3. THE BADGE (Fixed "Melting" Issue) --- */
.timeline-step-badge {
    width: 36px;
    height: 36px;
    background: #1a2a44;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 15px;
    flex-shrink: 0; /* Crucial: Prevents oval shape */
    aspect-ratio: 1/1; /* Crucial: Ensures 1:1 ratio */
    box-shadow: 0 0 0 6px rgba(26, 42, 68, 0.05);
}

.timeline-step-label {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #FF9933;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

/* --- 4. THE CARD --- */
.timeline-step-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    height: 100%;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

    .timeline-step-card:hover {
        border-color: #cbd5e1;
        transform: translateY(-5px);
        box-shadow: 0 15px 30px -10px rgba(0,0,0,0.08);
    }

    .timeline-step-card h3 {
        font-size: 1.1rem;
        font-weight: 700;
        color: #1a2a44;
        margin: 0 0 10px 0;
    }

.timeline-step-metric {
    font-size: 0.82rem;
    background: #f1f5f9;
    color: #475569;
    padding: 4px 12px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 15px;
    font-weight: 600;
}

/* List Items */
.timeline-step-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .timeline-step-card ul li {
        font-size: 0.9rem;
        color: #64748b;
        margin-bottom: 8px;
        padding-left: 20px;
        position: relative;
        line-height: 1.5;
    }

        .timeline-step-card ul li::before {
            content: "→";
            position: absolute;
            left: 0;
            color: #FF9933;
            font-weight: bold;
        }

/* --- 5. MOBILE CLEANUP (Centered Layout) --- */
@media (max-width: 768px) {
    .timeline-section {
        padding: 0px 10px;
    }

    .timeline-steps {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .timeline-step {
        align-items: center; /* Centers badge and label on mobile */
        text-align: center;
    }

    .timeline-step-badge {
        width: 42px; /* Slightly larger for thumb-readability */
        height: 42px;
        margin-bottom: 10px;
    }

    .timeline-step-card {
        text-align: left; /* Keeps content readable inside the card */
    }
}


/* --- FACTORS SECTION --- */
.timeline-factors-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px;
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Split layout for desktop */
    gap: 60px;
    align-items: start;
}

.factors-left h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #1a2a44;
    line-height: 1.2;
    position: sticky;
    top: 100px; /* Stays in view as you scroll factors */
}

/* Factors List on the Right */
.timeline-factors-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.factor-item {
    padding-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

    .factor-item:last-child {
        border-bottom: none;
    }

/* Using our Capsule style for the factor titles */
.factor-title-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #f1f5f9;
    border-radius: 100px;
    margin-bottom: 15px;
}

    .factor-title-pill .dot {
        width: 6px;
        height: 6px;
        background: #FF9933;
        border-radius: 50%;
    }

    .factor-title-pill span {
        font-size: 0.85rem;
        font-weight: 700;
        color: #1a2a44;
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }

.factor-item p {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 992px) {
    .timeline-factors-inner {
        grid-template-columns: 1fr; /* Stack on mobile/tablet */
        gap: 40px;
        padding: 60px 20px;
    }

    .factors-left h2 {
        position: static;
        text-align: left;
    }

    .factor-item {
        padding-bottom: 20px;
    }
}


/* --- COMMON DELAYS SECTION --- */
.timeline-delays-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 20px;
}

    .timeline-delays-inner h2 {
        text-align: center;
        margin-bottom: 50px;
        font-weight: 800;
        color: #1a2a44;
    }

.timeline-delays-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.delay-item {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Split for desktop */
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

    .delay-item:hover {
        transform: translateX(10px);
        border-color: #cbd5e1;
    }

/* The Risk Side */
.delay-cause {
    background: #f8fafc;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid #e2e8f0;
}

    .delay-cause h4 {
        font-size: 1rem;
        font-weight: 700;
        color: #ef4444; /* Red to indicate a potential issue */
        margin: 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .delay-cause h4::before {
            content: "⚠️";
            font-size: 1.1rem;
        }

/* The Prevention Side */
.delay-prevention {
    padding: 25px;
    display: flex;
    align-items: center;
    background: #fff;
}

    .delay-prevention p {
        font-size: 1rem;
        color: #475569;
        margin: 0;
        line-height: 1.6;
        position: relative;
        padding-left: 30px;
    }

        .delay-prevention p::before {
            content: "✓";
            position: absolute;
            left: 0;
            top: 0;
            width: 20px;
            height: 20px;
            background: #22c55e;
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            font-weight: bold;
        }

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 768px) {
    .delay-item {
        grid-template-columns: 1fr; /* Stack vertically on mobile */
    }

    .timeline-delays-inner {
        padding: 0px;
    }

    .delay-cause {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 20px;
    }

    .delay-prevention {
        padding: 20px;
    }

    .delay-item:hover {
        transform: translateY(-5px); /* Upward hover on mobile instead of right */
    }
}



/* --- CTA --- */
.attorney-cta-section {
    padding: 100px 0;
    background: #ffffff;
}

/* The Border Frame - No background fill */
.cta-border-frame {
    max-width: 950px;
    margin: 0 auto;
    padding: 80px 20px;
    border: 1px solid #e2e8f0; /* Soft, clean border */
    border-radius: 0px; /* Square/Sharp look for high-end law feel */
    /* Alternatively, use border-top and border-bottom only for an even more open look */
    border-left: none;
    border-right: none;
    text-align: center;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.cta-desc {
    font-size: clamp(1.1rem, 2vw, 1.2rem);
    color: #64748b;
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto 40px auto;
}


/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .attorney-cta-section {
        padding: 60px 20px;
    }

    .cta-border-frame {
        padding: 50px 10px;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .cta-desc {
        font-size: 1rem;
    }
}

</style >

<style >
/* MINIMALIST CASE STUDY SYSTEM - SCROLL FIXED */
.case-study-section-wrapper {
    overflow-x: hidden; /* Prevents horizontal scroll site-wide for this section */
    width: 100%;
    position: relative;
}

.case-report-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 50px;
    margin: 0 auto;
    max-width: 100%; /* Ensures it never exceeds the container */
    transition: all 0.3s ease;
}

.case-header-minimal {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 25px;
    margin-bottom: 35px;
}

.case-label-capsule {
    display: inline-block;
    background: #2077b7;
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* Strategy Grid - Rebuilt with Flex for stability */
.minimal-strategy-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 35px 0;
}

.strategy-item-small {
    flex: 1 1 calc(50% - 15px); /* Perfectly fills two columns on desktop */
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #475569;
    box-sizing: border-box;
}

    .strategy-item-small strong {
        color: var(--page-primary);
        display: block;
        margin-bottom: 4px;
    }

/* MOBILE FIXES */
@media (max-width: 768px) {
    .case-report-card {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .strategy-item-small {
        flex: 1 1 100%; /* Full width on mobile to prevent overflow */
    }

    .case-header-minimal h3 {
        font-size: 1.4rem;
    }
}
