.what-we-do {
    align-items: center;
    display: flex;
    flex-direction: column;
    padding: 20px;
    text-align: center;
}

.what-we-do-title {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-cards {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    padding: 20px;
}

.service-cards::-webkit-scrollbar {
    height: 8px;
}

.service-cards::-webkit-scrollbar-track {
    background: #1a2a6c;
    border-radius: 4px;
}

.service-cards::-webkit-scrollbar-thumb {
    background: #ff6b6b;
    border-radius: 4px;
}

.service-card {
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: cover;
    flex: none;
    overflow: hidden;
    position: relative;
    min-height: 700px;
    transition: background .3s;
    width: 400px;
}

.service-card:target {
    background: white;
    background-image: none !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.service-card h2 {
    font-size: 2rem;
    color: black;
    margin-left: 10px;
    text-align: left;
}

.service-card-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 5%;
}

.service-card-arrows span {
    cursor: pointer;
    display: inline-block;
}

.service-card-arrows span:hover {
    transform: scale(1.1);
}

.service-card-arrows {
    margin-right: 5%;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin-left: 5%;
    margin-top: 20px;
}

.service-card li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    margin-right: 5%;
    margin-left: 5%;
    text-align: left;
}

.service-card li img {
    margin-right: 10px;
    width: 20px;
}

.service-card p {
    margin: 5%;
    text-align: justify;
}

.card-content {
    position: relative;
    z-index: 2;
    max-height: 0;
    overflow: hidden;
}

.card-checkbox {
    display: none;
}

/* When card is checked (expanded) */
.card-checkbox:checked+.service-card {
    background: white;
    background-image: none !important;
}

.card-checkbox:checked+.service-card::before {
    background: linear-gradient(to bottom, rgba(10, 25, 47, 0.95), rgba(26, 42, 108, 0.98));
}

.card-checkbox:checked+.service-card .card-content {
    max-height: 1000px;
    padding: 0 25px 30px;
}

.card-checkbox:checked+.service-card .arrow-right {
    display: none;
}

.card-checkbox:checked+.service-card .arrow-left {
    display: flex;
}

.arrow-right {
    cursor: pointer;
}

.arrow-left {
    display: none;
    cursor: pointer;
}

.section-description {
    color: #fff;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
    text-align: center;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    color: white;
    font-size: 2.5rem;
    margin-bottom: 10px;
    margin-top: 40px;
}

@media (max-width: 1335px) {
    .service-cards {
        flex-direction: column;
        overflow-x: hidden;
        align-items: center;
        gap: 0px;
    }

    .service-card {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .what-we-do-title {
        font-size: 2.5rem;
    }

    .section-description {
        font-size: 1rem;
    }
}

@media (max-width: 500px) {
    .service-cards {
        padding: 0px;
        width: 100%;
    }

    .service-card {
        width: 90%;
        background: left;
    }

    .service-card h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 400px) {

    .what-we-do-title {
        font-size: 2rem;
    }
}