/* ============================================
   CASE STUDY PAGE - MATCHES ACTUAL HTML CLASSES
   Professional Blue Theme Design
   ============================================ */

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #111827;
    background: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.post-hero {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
}

.post-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(255, 255, 255, 0.03) 20px,
        rgba(255, 255, 255, 0.03) 40px
    );
    animation: pattern-move 30s linear infinite;
}

@keyframes pattern-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

.post-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.post-breadcrumb {
    margin-bottom: 25px;
}

.post-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-breadcrumb a:hover {
    color: white;
}

.post-hero-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.post-client-logo {
    max-height: 80px;
    width: auto;
    background: white;
    padding: 20px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.post-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.post-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    line-height: 1.2;
    margin-bottom: 20px;
}

.post-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 400;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    flex-wrap: wrap;
}

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

.post-meta-item i {
    color: rgba(255, 255, 255, 0.6);
}

/* Main Content */
.post-content {
    background: white;
    margin-top: -50px;
    position: relative;
    z-index: 3;
    border-radius: 20px 20px 0 0;
}

.post-body {
    padding: 80px 0;
}

/* Section Styling */
.post-section {
    padding: 60px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 20px;
    text-align: center;
}

.section-intro {
    font-size: 1.15rem;
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 50px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* At a Glance Section */
.post-glance {
    background: white;
}

.glance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.glance-column {
    background: #f9fafb;
    border-radius: 16px;
    padding: 40px;
    border-left: 6px solid transparent;
}

.glance-before {
    border-left-color: #ef4444;
}

.glance-after {
    border-left-color: #10b981;
}

.glance-title {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.glance-before .glance-title {
    color: #ef4444;
}

.glance-after .glance-title {
    color: #10b981;
}

.glance-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.glance-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
}

.glance-list li i {
    flex-shrink: 0;
    margin-top: 4px;
    font-size: 1.1rem;
}

.glance-before .glance-list li i {
    color: #ef4444;
}

.glance-after .glance-list li i {
    color: #10b981;
}

/* Key Metrics Section */
.post-metrics {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    padding: 80px 0 !important;
    position: relative;
    overflow: hidden;
    margin: 60px 0;
}

.post-metrics::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(255, 255, 255, 0.02) 20px,
        rgba(255, 255, 255, 0.02) 40px
    );
}

.post-metrics .section-title {
    color: white;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.metric-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.metric-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.metric-value {
    font-size: 3.2rem;
    font-weight: 900;
    color: white;
    margin-bottom: 8px;
    line-height: 1;
}

.metric-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.metric-change {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Challenge Section */
.challenge-item {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    border-left: 6px solid #007bff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
}

.challenge-number {
    position: absolute;
    top: -15px;
    left: 30px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.challenge-item h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 20px;
    padding-top: 20px;
}

.challenge-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 25px;
}

.challenge-points {
    list-style: none;
    padding: 0;
    margin: 0;
}

.challenge-points li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
}

.challenge-points li i {
    color: #ef4444;
    margin-top: 4px;
    flex-shrink: 0;
}

/* Solution Section */
.solution-item {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    border-left: 6px solid #10b981;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
}

.solution-icon {
    position: absolute;
    top: -15px;
    left: 30px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.solution-item h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 20px;
    padding-top: 20px;
}

.solution-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 25px;
}

.solution-results {
    list-style: none;
    padding: 0;
    margin: 0;
}

.solution-results li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
}

.solution-results li i {
    color: #10b981;
    margin-top: 4px;
    flex-shrink: 0;
}

/* Timeline Section */
.timeline {
    position: relative;
    padding-left: 50px;
    max-width: 900px;
    margin: 50px auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 40px;
    bottom: 40px;
    width: 4px;
    background: linear-gradient(180deg, #007bff, #0056b3);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    background: white;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.timeline-marker {
    position: absolute;
    left: -30px;
    top: 35px;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.timeline-item h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 15px;
}

.timeline-content p {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 20px;
}

.timeline-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-content ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #374151;
}

.timeline-content ul li i {
    color: #10b981;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Takeaways Section */
.takeaways-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 50px auto 0;
}

.takeaway-card {
    background: white;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-top: 4px solid #007bff;
}

.takeaway-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 12px;
    color: white;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.takeaway-card h4 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 15px;
}

.takeaway-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: #4b5563;
    margin: 0;
}

/* Impact Section */
.post-impact .takeaways-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* CTA Section */
.post-cta {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.post-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(255, 255, 255, 0.02) 20px,
        rgba(255, 255, 255, 0.02) 40px
    );
}

.post-cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.post-cta h2 {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    margin-bottom: 20px;
}

.post-cta p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.7;
}

.post-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: white;
    color: #007bff;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

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

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

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

    .post-impact .takeaways-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .post-hero {
        padding: 120px 0 80px;
    }

    .post-title {
        font-size: 2.2rem;
    }

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

    .post-client-logo {
        max-height: 60px;
        padding: 15px 30px;
    }

    .glance-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .metric-value {
        font-size: 2.5rem;
    }

    .timeline {
        padding-left: 40px;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-marker {
        left: -25px;
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .post-cta h2 {
        font-size: 2.2rem;
    }

    .post-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

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

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

    .challenge-item,
    .solution-item,
    .timeline-item {
        padding: 25px 20px;
    }

    .post-body {
        padding: 60px 0;
    }

    .post-section {
        padding: 40px 0;
    }
}
