/* Case Study Page - 100% Figma Accuracy Styles */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Antonio:wght@700&family=Inter:wght@400;700&display=swap');

.casestudy-page {
    background-color: var(--bg-main);
    width: 100%;
    overflow-x: hidden;
    transition: background-color 0.3s ease;
}

/* Hero Section */
.cs-hero {
    height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 250px 50px 0;
    /* Added 100px top padding */
}

.cs-hero-title {
    font-family: 'Antonio', sans-serif;
    font-weight: 700;
    font-size: 64px;
    line-height: 1.15;
    text-transform: uppercase;
    color: var(--text-main);
    max-width: 1200px;
    margin: 0 auto 40px;
    transition: color 0.3s ease;
}

.cs-hero-title .subtitle-line {
    font-size: 48px;
    display: block;
    margin-top: 10px;
}

.cs-hero-subtitle {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 30px;
    line-height: 36px;
    color: var(--text-main);
    font-weight: 400;
    margin-bottom: 80px;
    transition: color 0.3s ease;
}

.cs-divider-line {
    width: 90%;
    max-width: 1200px;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.2);
    /* More visible in dark */
    margin: 0 auto;
}

body.light-theme .cs-divider-line {
    background: rgba(0, 0, 0, 0.15);
}

/* Info Bar */
.cs-info-bar {
    display: flex;
    justify-content: space-around;
    padding: 30px 100px;
    background: var(--bg-main);
    transition: background 0.3s ease;
    max-width: 1440px;
    margin: 0 auto;
}

.cs-hero-divider-wrap {
    margin-bottom: 50px;
}

.info-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-label {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 14px;
    line-height: 16px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #9ca3af;
}

.info-value {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 18px;
    font-weight: 700;
    /* Bold as per screenshot */
    line-height: 1.2;
    text-transform: capitalize;
    color: var(--text-main);
    transition: color 0.3s ease;
}

/* Challenge Section */
.cs-challenge {
    background: #D4323D;
    padding: 100px 50px;
    text-align: center;
}

.cs-badge-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.cs-badge-v2 {
    background: rgba(240, 240, 240, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 15px 20px;
    color: #FFFFFF;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    box-shadow: inset 0px -5px 4px rgba(255, 255, 255, 0.25), inset 0px 4px 4px rgba(255, 255, 255, 0.25);
}

.cs-badge-v2.pink {
    background: #F6E0E0;
    color: #D4323D;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-text-stroke: thin;
}

.cs-section-title-v2 {
    font-family: 'Antonio', sans-serif;
    font-size: 64px;
    line-height: 1.42;
    color: #FFFFFF;
    text-transform: capitalize;
    margin-bottom: 80px;
    text-align: center;
}

.cs-section-title-v2.dark {
    color: #0C0C0B;
    transition: color 0.3s ease;
}

body:not(.light-theme) .cs-section-title-v2.dark {
    color: #FFFFFF !important;
}

.cs-challenges-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 100px;
    max-width: 1200px;
    margin: 0 auto;
}

.cs-challenge-item {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
}

.item-number {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Anton', sans-serif;
    font-size: 14px;
    color: #FFFFFF;
    flex-shrink: 0;
}

.cs-challenge-item p {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 24px;
    color: #FFFFFF;
    margin: 0;
}

/* Approach Section */
.cs-approach {
    padding: 150px 50px;
    background: var(--bg-main);
    transition: background 0.3s ease;
}

.cs-approach-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.approach-card {
    background: #F8F8F8;
    border: 1px solid #F3F4F6;
    border-radius: 24px;
    padding: 33px;
    text-align: left;
    transition: all 0.3s ease;
}

body:not(.light-theme) .approach-card {
    background: #111111;
    border-color: #222;
}

.card-number {
    font-family: 'Anton', sans-serif;
    font-size: 60px;
    line-height: 60px;
    color: #E5E7EB;
    margin-bottom: 24px;
}

body:not(.light-theme) .card-number {
    color: #333;
}

.approach-card h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 28px;
    color: #1A1A1A;
    margin-bottom: 24px;
    transition: color 0.3s ease;
}

body:not(.light-theme) .approach-card h3 {
    color: #FFFFFF;
}

.approach-card p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 23px;
    color: #4B5563;
    margin: 0;
    transition: color 0.3s ease;
}

body:not(.light-theme) .approach-card p {
    color: #9CA3AF;
}

/* Impact Section */
.cs-impact {
    background: #D4323D;
    padding: 120px 50px;
    text-align: center;
}

.cs-impact-title-v2 {
    font-family: 'Antonio', sans-serif;
    font-weight: 700;
    font-size: 90px;
    line-height: 116px;
    color: #FFFFFF;
    margin-bottom: 60px;
    transition: color 0.3s ease;
}

body:not(.light-theme) .cs-impact-title-v2 {
    color: #000000 !important;
}

.cs-impact-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.impact-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.impact-number {
    font-family: 'Anton', sans-serif;
    font-size: 120px;
    line-height: 181px;
    color: #FFFFFF;
    transition: color 0.3s ease;
}

body:not(.light-theme) .impact-number {
    color: #000000 !important;
}

.impact-label {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 24px;
    color: #FFFFFF;
    text-transform: capitalize;
    transition: color 0.3s ease;
}

body:not(.light-theme) .impact-label {
    color: #000000 !important;
}

.impact-divider {
    width: 1px;
    height: 200px;
    background: rgba(255, 255, 255, 0.4);
    transition: background 0.3s ease;
}

body:not(.light-theme) .impact-divider {
    background: rgba(0, 0, 0, 0.2);
}

/* Visuals Section */
.cs-visuals-v2 {
    padding: 150px 50px;
    background: var(--bg-main);
    transition: background 0.3s ease;
}

.visual-section {
    max-width: 1300px;
    margin: 0 auto 150px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.visual-content {
    max-width: 400px;
}

.visual-title {
    font-family: 'Anton', sans-serif;
    font-size: 48px;
    line-height: 48px;
    text-transform: uppercase;
    color: #1A1A1A;
    margin-bottom: 24px;
    transition: color 0.3s ease;
}

body:not(.light-theme) .visual-title {
    color: #FFFFFF;
}

.visual-line {
    width: 80px;
    height: 4px;
    background: #D1D5DB;
    border-radius: 9999px;
    margin-bottom: 20px;
}

.visual-line.red {
    background: #D32F2F;
}

.visual-desc {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #6B7280;
    transition: color 0.3s ease;
}

body:not(.light-theme) .visual-desc {
    color: #9CA3AF;
}

.after .visual-content {
    text-align: right;
}

.after .visual-line {
    margin-left: auto;
}

.visual-mockups {
    display: flex;
    gap: 30px;
}

.iphone-mockup {
    width: 253px;
    height: 524px;
    border-radius: 40px;
    overflow: hidden;
    background: #F3F4F6;
}

.iphone-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* CTA Section */
.cs-cta-section {
    padding: 150px 0;
    background: #FFFFFF;
    text-align: center;
    margin-top: -300px;
    transition: background 0.3s ease;
}

body:not(.light-theme) .cs-cta-section {
    background: #00010B;
}

.cs-cta-heading {
    font-family: 'Antonio', sans-serif;
    font-size: 64px;
    line-height: 80px;
    color: #000000;
    max-width: 678px;
    margin: 0 auto 60px;
    -webkit-text-stroke: thin;
    transition: color 0.3s ease;
}

body:not(.light-theme) .cs-cta-heading {
    color: #FFFFFF;
}

.cs-cta-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: #D4323D;
    border-radius: 12px;
    padding: 0 40px;
    height: 60px;
    color: #FFFFFF;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 500;
    font-size: 24px;
    text-decoration: none;
    text-transform: lowercase;
    transition: transform 0.3s;
}

.cs-cta-btn:hover {
    transform: scale(1.05);
}

@media (max-width: 1200px) {

    .cs-impact-grid,
    .cs-approach-cards,
    .visual-section {
        flex-direction: column;
        gap: 50px;
    }

    .cs-challenges-grid {
        grid-template-columns: 1fr;
    }

    .after {
        flex-direction: column-reverse;
    }

    .visual-mockups {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Case Study Page Footer Ribbon Overrides */
.casestudy-page .footer-ribbon,
body.light-theme .casestudy-page .footer-ribbon {
    background: #D4323D !important;
    border-top: none;
}

.casestudy-page .ribbon-item span {
    color: #FFFFFF !important;
}

.casestudy-page .ribbon-star path {
    fill: #FFFFFF !important;
}