/* ============================================================
   CASE STUDY SUB-PAGES (Shared Styles)
   ============================================================ */

.case-page-content { background-color: var(--navy-dark); color: #FFFFFF; overflow-x: hidden; }

/* --- Hero --- */
.case-hero {
    padding: 210px 20px 150px;
    text-align: center;
    background-color: var(--navy-bg);
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--accent-green);
    margin-top: -30px;
}
.case-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(27, 48, 71, 0.9) 0%, rgba(18, 34, 51, 0.85) 100%);
    z-index: 1;
}
.case-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.8;
}
.case-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}
.case-badge {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 50px;
    background: rgba(139, 195, 74, 0.15);
    color: var(--accent-green);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    border: 1px solid rgba(139, 195, 74, 0.4);
}
.case-hero h1 {
    font-size: 46px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFFFF;
}
.case-hero .subtitle {
    font-size: 17px;
    color: #D1DCE8;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

/* --- Content --- */
.case-content { padding: 80px 20px; background-color: var(--navy-dark); }
.case-container { max-width: 1000px; margin: 0 auto; }

/* --- Stats --- */
.case-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}
.case-stat-item {
    text-align: center;
    padding: 25px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(139, 195, 74, 0.2);
    transition: all 0.3s ease;
}
.case-stat-item:hover {
    border-color: var(--accent-green);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-4px);
}
.case-stat-item .number {
    font-size: 36px;
    font-weight: 900;
    color: var(--accent-green);
    display: block;
}
.case-stat-item .label {
    font-size: 14px;
    color: #A0B2C6;
    margin-top: 6px;
    display: block;
}

/* --- Content Sections --- */
.case-section { margin-bottom: 50px; }
.case-section h2 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #FFFFFF;
}
.case-section h2 span { color: var(--accent-green); }
.case-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 25px 0 12px;
    color: #FFFFFF;
}
.case-section p {
    color: #A0B2C6;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 18px;
}
.case-section p strong { color: #FFFFFF; }
.case-section ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}
.case-section ul li {
    color: #E2E8F0;
    font-size: 15px;
    padding: 8px 0 8px 28px;
    position: relative;
    line-height: 1.6;
}
.case-section ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-size: 13px;
}

/* --- Tech Tags --- */
.tech-tags { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 30px; }
.tech-tag {
    padding: 8px 18px;
    border-radius: 50px;
    background: rgba(139, 195, 74, 0.1);
    border: 1px solid rgba(139, 195, 74, 0.3);
    color: var(--accent-green);
    font-size: 13px;
    font-weight: 600;
}

/* --- Testimonial --- */
.case-testimonial {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 40px 45px;
    border: 1px solid rgba(139, 195, 74, 0.2);
    margin: 40px 0 50px;
    position: relative;
}
.case-testimonial::before {
    content: '"';
    position: absolute;
    top: -10px; left: 20px;
    font-size: 80px;
    color: var(--accent-green);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}
.case-testimonial blockquote {
    color: #E2E8F0;
    font-size: 18px;
    line-height: 1.8;
    font-style: italic;
    margin: 0 0 20px 0;
    position: relative;
    z-index: 1;
}
.case-testimonial .client-info { display: flex; align-items: center; gap: 14px; }
.case-testimonial .client-info .avatar {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--accent-green);
    display: flex; align-items: center; justify-content: center;
    color: var(--navy-bg);
    font-size: 20px;
    font-weight: 800;
}
.case-testimonial .client-info .details h4 { font-size: 16px; font-weight: 700; color: #FFFFFF; margin: 0; }
.case-testimonial .client-info .details span { font-size: 13px; color: #A0B2C6; }

/* --- Related Case Studies --- */
.related-cases-section {
    background-color: var(--navy-bg);
    padding: 80px 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.related-cases-container { max-width: 1200px; margin: 0 auto; }
.related-cases-header { text-align: center; margin-bottom: 50px; }
.related-cases-header h2 { font-size: 34px; font-weight: 800; color: #FFFFFF; margin-bottom: 12px; }
.related-cases-header h2 span { color: var(--accent-green); }
.related-cases-header p { font-size: 16px; color: #A0B2C6; }

.related-cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.related-case-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(139, 195, 74, 0.2);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}
.related-case-card:hover { transform: translateY(-5px); border-color: var(--accent-green); box-shadow: 0 15px 30px rgba(0,0,0,0.3); }
.related-case-img { width: 100%; height: 160px; object-fit: cover; display: block; border-bottom: 2px solid var(--accent-green); }
.related-case-body { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.related-case-body h3 { font-size: 18px; font-weight: 700; color: #FFFFFF; margin: 0 0 10px; line-height: 1.4; }
.related-case-body p { font-size: 14px; color: #A0B2C6; line-height: 1.6; margin: 0 0 15px; flex-grow: 1; }
.related-case-link { color: var(--accent-green); font-size: 13px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; margin-top: auto; }
.related-case-card:hover .related-case-link { color: var(--accent-green-hover); }

/* --- CTA --- */
.case-cta { 
    text-align: center; 
    padding: 60px 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* Space between buttons */
}
.case-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    border-radius: 50px;
    background-color: var(--accent-green);
    color: var(--navy-bg);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(139, 195, 74, 0.35);
}
.case-cta .btn:hover { background-color: var(--accent-green-hover); color: #FFFFFF; transform: translateY(-3px); box-shadow: 0 10px 25px rgba(139, 195, 74, 0.5); }
.case-cta .back-link { display: inline-block; margin-top: 20px; color: #A0B2C6; text-decoration: none; transition: color 0.3s ease; font-size: 14px; }
.case-cta .back-link:hover { color: var(--accent-green); }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .case-stats { grid-template-columns: repeat(2, 1fr); }
    .related-cases-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .case-hero h1 { font-size: 32px; }
    .case-hero .subtitle { font-size: 15px; }
    .case-section h2 { font-size: 24px; }
    .case-stats { grid-template-columns: repeat(2, 1fr); }
    .case-testimonial { padding: 30px 25px; }
    .case-testimonial blockquote { font-size: 16px; }
    .related-cases-grid { grid-template-columns: 1fr; }
    .case-cta .btn { width: auto; max-width: 280px; justify-content: center; }
}