/* HERO SECTION STARTS */

.case-hero {
    padding: 80px 0 100px;
    background: #fff;
}

.case-hero .container {
    max-width: 100%;
    margin: auto;
    padding: 0 10px;
}

/* TOP CONTENT */
.case-hero-top {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 60px;
}

/* LEFT TEXT */
.case-info-left h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.case-info-left p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    max-width: 520px;
    box-sizing: border-box;
}

/* RIGHT META */
.case-info-right {
    display: grid;
    gap: 16px;
}

.case-info-right .meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.case-info-right span {
    color: #888;
}

.case-info-right strong {
    color: #000;
    font-weight: 600;
    text-align: end;
}

/* IMAGE */
.case-hero-visual {
    width: 100%;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    height: 80vh;
    position: relative;
    background-color: #f0f0f0;
}

.case-hero-visual::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    margin-left: -20px;
    border: 3px solid rgba(0, 105, 200, 0.1);
    border-top: 3px solid #0069C8;
    border-radius: 50%;
    animation: imageLoaderSpin 1s linear infinite;
    z-index: 0;
}

.case-hero-visual img {
    width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 20px;
    transform: translateY(-80px);
    position: relative;
    z-index: 1;
}

/* RESPONSIVE */

/* Tablet */
@media (max-width: 992px) {
    .case-hero-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .case-info-right {
        max-width: 400px;
    }

    .case-info-left h1 {
        font-size: 36px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .case-hero {
        padding: 60px 0 80px;
    }

    .case-info-left h1 {
        font-size: 28px;
    }

    .case-info-left p {
        font-size: 14px;
    }

    .case-info-right .meta {
        font-size: 13px;
    }
}

/* HERO SECTION ENDS */





/* MORE THAN JUST STARTS */
.case-showcase-section {
    background: #fff;
}

.case-showcase-section h2 {
    text-align: center; 
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.case-showcase-section .subtitle {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px;
    color: #555;
    font-size: 16px;
    line-height: 1.6;
}

/* GRID */
.showcase-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    /* 👈 left wider */
    gap: 20px;
    align-items: stretch;
}

/* CARD BASE */
.showcase-card {
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.showcase-card::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    margin-left: -20px;
    border: 3px solid rgba(0, 105, 200, 0.1);
    border-top: 3px solid #0069C8;
    border-radius: 50%;
    animation: imageLoaderSpin 1s linear infinite;
    z-index: 0;
}

.showcase-card-mm img {
    border-radius: 20px;
}

/* LEFT IMAGE (WIDE / LANDSCAPE) */
.left-card {
    background: linear-gradient(135deg, #5c6f89, #2c3e57);
    padding: 40px;
    width: 100%;
    height: 80vh;
}

.left-card img {
    width: 150%;
    max-width: 780px;
    height: 100vh;
    aspect-ratio: 16 / 9;
    /* 👈 laptop proportion */
    position: relative;
    z-index: 1;
}

/* RIGHT IMAGE (TALL / PORTRAIT) */
.right-card {
    background: #d8d2c3;
    padding: 30px;
    width: 100%;
    height: 80vh;
}

.right-card img {
    width: 150%;
    max-width: 460px;
    height: 100vh;
    aspect-ratio: 3 / 4;
    /* 👈 tablet proportion */
    object-fit: contain;
    position: relative;
    z-index: 1;
}

@keyframes imageLoaderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =========================
   RESPONSIVE
========================= */

/* Tablet */
@media (max-width: 1024px) {
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .left-card img,
    .right-card img {
        max-width: 100%;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .case-showcase-section {
        padding: 70px 16px;
    }

    .case-showcase-section h2 {
        font-size: 24px;
    }

    .case-showcase-section .subtitle {
        font-size: 14px;
    }

    .left-card,
    .right-card {
        padding: 20px;
    }

    .left-card img,
    .right-card img {
        aspect-ratio: auto;
        /* natural flow on mobile */
    }
}


/* MORE THAN JUST ENDS */

/* =========================
   MOBILE & TABLET RESPONSIVE FIXES
========================= */

@media (max-width: 1200px) {
    /* Timeline Mobile View */
    .mobile-progress-container {
        position: absolute;
        left: 20px;
        top: 0;
        bottom: 0;
        width: 4px;
        background-color: #f3f4f6;
        z-index: 10;
    }

    .mobile-progress-fill {
        width: 100%;
        background-color: #0069C8;
        height: 0;
        transition: height 0.1s linear;
    }

    .steps {
        margin-top: 40px;
    }

    .step-item {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 50px;
        padding-left: 50px;
        position: relative;
        justify-content: flex-start !important; /* Override inline styles */
    }

    .content2 {
        width: 100%;
        opacity: 1;
        text-align: left;
    }

    /* Mobile Dots */
    .step-item::before {
        content: '';
        position: absolute;
        left: 14px; /* Center on the 4px line at left:20px */
        top: 5px;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: #dbeafe;
        z-index: 11;
        transition: all 0.3s ease;
        border: 2px solid #fff;
    }

    .step-item.active::before {
        background: #0B5ED7;
        transform: scale(1.2);
        box-shadow: 0 0 8px rgba(11, 94, 215, 0.6);
    }

    .title {
        font-size: 1.5rem !important;
        line-height: 1.3;
    }
    
    .desc {
        font-size: 1rem !important;
    }
}

@media (max-width: 768px) {
    /* Hero Image Fix */
    .case-hero-visual {
        height: auto !important;
        aspect-ratio: 4/3;
    }
    
    .case-hero-visual img {
        transform: none !important;
        height: 100% !important;
        position: static !important;
    }

    /* Showcase Cards Fix */
    .left-card, .right-card {
        height: auto !important;
        min-height: 300px;
        padding: 30px 20px;
    }
    
    .left-card img, .right-card img {
        height: auto !important;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .step-item {
        padding-left: 40px; /* Optimize space for small screens */
    }
}