/* ============================================================
   ebsrv6 — Services Section
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@400..700&display=swap');
/* 1. Variables */
.ebsrv6 {
    --ebsrv6-helper: #111;
    --ebsrv6-primary: #ffffff;
    --ebsrv6-secondary: #f5f5f5;
    --ebsrv6-accent: #7bbf2a;
    --ebsrv6-border: #e5e5e5;
    --ebsrv6-shadow: 0 1rem 2rem rgba(0,0,0,0.05);
}

/* 2. Reset */
.ebsrv6 *,
.ebsrv6 *::before,
.ebsrv6 *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "El Messiri", sans-serif;
}

/* 3. Base Styles */
.ebsrv6 {
    padding:0.5rem;
    background: var(--ebsrv6-primary);
    font-family: "Cairo", sans-serif;
    direction: rtl;
}

.ebsrv6__container {
    width: 100%;
    margin: auto;
}

/* Header */
.ebsrv6__header {
    text-align: center;
    margin-bottom: 1rem;
}

.ebsrv6__title {
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 800;
    color: var(--ebsrv6-helper);
    position: relative;
    display: inline-block;
}

/* underline effect */
.ebsrv6__title::after {
    content: "";
    position: absolute;
    bottom: -0.5rem;
    right: 0;
    width: 100%;
    height: 0.3rem;
    background: var(--ebsrv6-accent);
    border-radius: 1rem;
}

/* Grid */
.ebsrv6__grid {
    display: grid;
    gap: 1.5rem;
}

/* Card */
.ebsrv6__card {
    border: 0.1rem solid var(--ebsrv6-border);
    padding: 1rem 0.5rem;
    text-align: center;
    background: var(--ebsrv6-primary);
}

/* Image */
.ebsrv6__image {
    width: 100%;
    max-width: 8rem;
    margin: auto;
    aspect-ratio: 1 / 1;
}

.ebsrv6__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Title */
.ebsrv6__card-title {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--ebsrv6-accent);
}

/* Text */
.ebsrv6__text {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    color: var(--ebsrv6-helper);
    opacity: 0.7;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* Button */
.ebsrv6__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    text-decoration: none;
    color: var(--ebsrv6-helper);
    position: relative;
}

/* Icon */
.ebsrv6__btn::after {
    font-family: "Font Awesome 6 Free";
    content: "\f060";
    font-weight: 900;
    font-size: clamp(0.6rem, 2vw, 0.75rem);

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 1.3rem;
    height: 1.3rem;

    border-radius: 50%;
    border: 0.1em solid var(--ebsrv6-helper);

    transition: 0.35s;
    transform: rotate(0deg);
}

/* Hover */
.ebsrv6__btn:hover::after {
    transform: rotate(-180deg);
    background: var(--ebsrv6-accent);
    color: var(--ebsrv6-primary);
    border-color: var(--ebsrv6-accent);
}

/* ================= Breakpoints ================= */

@media (min-width: 481px) {
    
}
@media (min-width: 601px) {
    .ebsrv6__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 769px) {
  
}

@media (min-width: 1025px) {
     .ebsrv6__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .ebsrv6 {
        padding:2rem;
    }
}

@media (min-width: 1281px) {
    .ebsrv6__container {
        max-width: 80%;
    }
}