/* ============================================================
   ebsrv4 — Services Cards
   Namespace  : ebsrv4
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@400..700&display=swap');
/* 1. Variables & Colors */
.ebsrv4 {
    --ebsrv4-helper: #1e293b;
    --ebsrv4-primary: #ffffff;
    --ebsrv4-secondary: #f1f5f9;

    --ebsrv4-border-size: 0.8rem;
    --ebsrv4-radius: 1.25rem;
}

/* 2. Reset */
.ebsrv4 *,
.ebsrv4 *::before,
.ebsrv4 *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
      font-family: "El Messiri", sans-serif;
}

/* 3. Base Styles — Mobile */
.ebsrv4 {
    width: 95%;
    padding: 0.5rem;
    background: var(--ebsrv4-primary);
    margin: 0 auto;
}

.ebsrv4__container {
    width: 100%;
}

.ebsrv4__header {
    text-align: center;
    margin-bottom: 0.5rem;
}

.ebsrv4__title {
    font-size: clamp(1.4rem, 5vw, 2rem);
    color: var(--ebsrv4-helper);
}


.ebsrv4__cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;

    justify-items: center;
}

/* Card */
.ebsrv4__card {
    position: relative;
    width: 100%;
    max-width: 22rem;

    border: var(--ebsrv4-border-size) solid var(--ebsrv4-primary);
    border-radius: var(--ebsrv4-radius);
    overflow: hidden;
    background: var(--ebsrv4-primary);
}

/* Image */
.ebsrv4__image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.ebsrv4__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content overlay */
.ebsrv4__content {
    position: absolute;
    bottom: var(--ebsrv4-border-size);
    right: var(--ebsrv4-border-size);
    left: var(--ebsrv4-border-size);

    background: var(--ebsrv4-secondary);
    border-radius: calc(var(--ebsrv4-radius) - var(--ebsrv4-border-size));

    padding: 0.5rem;
    z-index: 2;
    text-align: right;
       box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.ebsrv4__card-title {
    font-size: clamp(1rem, 4vw, 1.2rem);
    margin-bottom: 0.5rem;
    color: var(--ebsrv4-helper);
}

.ebsrv4__card-text {
    font-size: clamp(0.85rem, 3.5vw, 1rem);
    color: var(--ebsrv4-helper);
    line-height: 1.6;
}

/* 4. Breakpoints */

@media (min-width: 481px) {
    .ebsrv4__cards {
        gap: 2rem;
    }
}

@media (min-width: 601px) {
    .ebsrv4__cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 769px) {
    .ebsrv4__cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .ebsrv4 {
        padding: 3rem 2rem;
    }

    .ebsrv4__cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1281px) {
    .ebsrv4__title {
        font-size: clamp(1.8rem, 2vw, 2.4rem);
    }
}

@media (min-width: 1441px) {
}

@media (min-width: 1921px) {
}