/* Service Cards Grid */
.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 0 20px;
}

/* Individual Service Card */
.service-card {
    width: 100%;
    min-height: 380px;
    position: relative;
    border-radius: 16px;
    padding: 2.8em;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
    box-sizing: border-box;
}

/* Odd cards — light */
.service-card:nth-child(odd) {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

/* Even cards — dark */
.service-card:nth-child(even) {
    background: #0f0f0f;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

/* Hover */
.service-card:hover {
    transform: translateY(-4px);
}

.service-card:nth-child(odd):hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.service-card:nth-child(even):hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.service-card:active {
    transform: translateY(-2px);
}

/* Card top: number */
.service-card .service-card-top {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Card bottom: title + description */
.service-card .service-card-bottom {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Reset margins */
.service-card .service-card-number,
.service-card .service-card-title,
.service-card .service-card-description {
    margin: 0;
}

/* Number */
.service-card .service-card-number {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.service-card:nth-child(odd) .service-card-number {
    color: #aaa;
}

.service-card:nth-child(even) .service-card-number {
    color: #555;
}

/* Title */
.service-card .service-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.service-card:nth-child(odd) .service-card-title {
    color: #111;
}

.service-card:nth-child(even) .service-card-title {
    color: #f5f5f5;
}

/* Description */
.service-card .service-card-description {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.65;
}

.service-card:nth-child(odd) .service-card-description {
    color: #555;
}

.service-card:nth-child(even) .service-card-description {
    color: #888;
}

/* Hide ghost images completely — they caused visual bleed between cards */
.service-card .service-card-image {
    display: none;
}

/* Ensure text content stays within card */
.service-card .service-card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
    z-index: 1;
}

/* Responsive */
@media only screen and (max-width: 900px) {
    .service-cards-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .service-card {
        min-height: 260px;
        padding: 2em;
    }
}

@media only screen and (max-width: 767px) {
    .service-card {
        padding: 1.6em;
        border-radius: 12px;
        min-height: 220px;
    }

    .service-card .service-card-number {
        font-size: 0.7rem;
    }

    .service-card .service-card-title {
        font-size: 1.35rem;
    }

    .service-card .service-card-description {
        font-size: 0.9rem;
    }

    .service-cards-grid {
        margin-top: 24px;
        margin-bottom: 24px;
        padding: 0 12px;
        gap: 8px;
    }
}
