/* Case Study Article Styles */

.case-study-article {
    background: var(--white);
}

/* Breadcrumb styles moved to common.css */

.case-study-tags {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.case-study-tags .tag {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.case-study-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    max-width: 1000px;
}

.case-study-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 800px;
}

/* Key Metrics */
.key-metrics {
    background: var(--white);
    padding: 60px 40px;
    border-bottom: 1px solid var(--border-color);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.metric-card {
    text-align: center;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.metric-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.metric-value {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--grass-green), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 600;
}

/* Content */
.case-study-content {
    padding: 80px 40px;
}

.case-study-content .container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.content-section {
    margin-bottom: 4rem;
    padding: 0px;
}

.content-section h2 {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.content-section h3 {
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    margin-top: 2rem;
    font-weight: 700;
}

.content-section h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.content-section ul,
.content-section ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.content-section li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.content-section li strong {
    color: var(--text-dark);
}

/* Client Info */
.client-info {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item strong {
    color: var(--grass-green);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item span {
    color: var(--text-dark);
    font-size: 1.05rem;
}

/* Challenge List */
.challenge-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.challenge-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 15px;
    border-left: 4px solid var(--grass-green);
}

.challenge-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.challenge-item h3 {
    margin-top: 0;
    font-size: 1.3rem;
}

/* Tech Stack */
.tech-stack {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
}

.tech-stack h4 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-tag {
    background: var(--white);
    color: var(--grass-green);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid var(--grass-green);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 3rem;
    margin-top: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--grass-green), var(--blue));
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: -2.8rem;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--grass-green), var(--blue));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
}

.timeline-content {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
}

.timeline-content h3 {
    margin-top: 0;
    font-size: 1.3rem;
    color: var(--grass-green);
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.result-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    border-top: 4px solid var(--grass-green);
}

.result-card h3 {
    margin-top: 0;
    color: var(--grass-green);
}

/* Testimonial */
.testimonial-box {
    background: linear-gradient(135deg, var(--grass-green), var(--blue));
    color: var(--white);
    padding: 3rem;
    border-radius: 20px;
    position: relative;
    margin: 3rem 0;
}

.quote-icon {
    font-size: 6rem;
    opacity: 0.2;
    position: absolute;
    top: 20px;
    left: 30px;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.testimonial-author strong {
    font-size: 1.2rem;
}

.testimonial-author span {
    opacity: 0.9;
}

/* Highlight Box */
.highlight-box {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--blue);
}

.highlight-box h3 {
    margin-top: 0;
    color: var(--blue);
}

/* Feature Box */
.feature-box {
    background: var(--white);
    border: 2px solid var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.feature-box h4 {
    color: var(--grass-green);
    margin-top: 0;
    font-size: 1.3rem;
}

/* Comparison Table Wrapper */
.comparison-table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.comparison-table thead {
    background: linear-gradient(135deg, var(--grass-green), var(--blue));
    color: var(--white);
}

.comparison-table th {
    padding: 1.5rem;
    text-align: left;
    font-weight: 700;
    font-size: 1rem;
}

.comparison-table td {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
    color: var(--text-light);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:hover {
    background: var(--light-bg);
}

.comparison-table td strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Student Feedback */
.student-feedback {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feedback-item {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--grass-green);
}

.feedback-item p {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feedback-item span {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 600;
}

/* Tech List */
.tech-list {
    list-style: none;
    padding: 0;
}

.tech-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
    font-weight: 500;
}

.tech-list li:last-child {
    border-bottom: none;
}

/* CTA */
.case-study-cta {
    background: linear-gradient(135deg, var(--grass-green), var(--blue));
    color: var(--white);
    padding: 4rem;
    border-radius: 20px;
    text-align: center;
    margin-top: 4rem;
}

.case-study-cta h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.case-study-cta p {
    color: var(--white);
    opacity: 0.95;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Sidebar */
.case-study-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.sidebar-card h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item strong {
    color: var(--text-dark);
}

.detail-item span {
    color: var(--text-light);
    text-align: right;
}

.related-services,
.related-cases {
    list-style: none;
    padding: 0;
}

.related-services li,
.related-cases li {
    margin-bottom: 1rem;
}

.related-services a,
.related-cases a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.related-services a:hover,
.related-cases a:hover {
    color: var(--grass-green);
}

.cta-card {
    background: linear-gradient(135deg, var(--grass-green), var(--blue));
    color: var(--white);
}

.cta-card h3 {
    color: var(--white);
}

.cta-card p {
    color: var(--white);
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .case-study-content .container {
        grid-template-columns: 1fr;
    }
    
    .case-study-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .case-study-header {
        padding: 120px 20px 40px;
    }
    
    .case-study-header h1 {
        font-size: 2.2rem;
    }
    
    .key-metrics {
        padding: 40px 20px;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .case-study-content {
        padding: 60px 20px;
    }
    
    .client-info {
        grid-template-columns: 1fr;
    }
    
    .challenge-item {
        flex-direction: column;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        padding-left: 2rem;
    }
    
    .timeline-marker {
        left: -2.3rem;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}
