/*====================================== PROJECTS =====================================*/
html {
    scroll-behavior: smooth;
}

html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #0f1b2d;
}

main {
    flex: 1;
}

/* CASES SECTION */
.cases-section {
    padding: 40px 20px;
    background: #ffffff;
    text-align: center;
}

.cases-section .container {
    margin: 0 auto;
}

.cases-section .heading .badge {
    background: linear-gradient(135deg, #3f8274, #3f7d68);
    color: white;
    padding: 8px 18px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(63, 130, 116, 0.3);
    letter-spacing: 0.5px;
}

.cases-section .heading h2 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #333;
}

.cases-section .heading p {
    color: #777;
    margin: 0 auto 20px;
    max-width: 80%;
    text-align: center;
}

.cases-list {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.case-item {
    display: grid;
    grid-template-columns: 4fr 6fr;
    gap: 0;
    min-height: 280px;
}

.case-item.reverse {
    direction: rtl;
}

.case-item.reverse>* {
    direction: ltr;
}

.case-item.reverse .case-content {
    text-align: right;
}

.case-content {
    padding: 0px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.case-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.case-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.case-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    font-size: 15px;
    color: #666;
    margin-bottom: 25px;
}

.case-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.case-item .case-info {
    justify-content: flex-start;
}

.case-item.reverse .case-info {
    justify-content: flex-end;
}

.case-image {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 20px;
}

.case-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .case-item {
        grid-template-columns: 1fr;
    }

    .heading h2 {
        font-size: 28px;
    }

    .case-item {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .case-item.reverse {
        direction: ltr;
    }

    .case-info {
        padding: 0 0 5px;
        margin: 0 0 0;
    }

    .case-content {
        padding: 20px 10px;
        text-align: center;
        border-bottom: 1px solid #666;
    }

    .case-image {
        padding: 20px 0 0 0;
    }

    .case-item.reverse .case-content {
        text-align: center;
    }

    .case-item .case-info {
        justify-content: center;
    }

    .case-item.reverse .case-info {
        justify-content: center;
    }

    .case-image {
        min-height: 200px;
    }
}