/* =========================================================
   ARABIC SERVICES SECTION
   Drei feste Karten + Slider in der vierten Karte
   ========================================================= */

.arabic-services-section {
    border-top: 8px solid #c89b3c;
    width: 100%;
    margin: 0;
    padding: 55px 0 60px;

        background-image: linear-gradient(rgba(255, 255, 255, 0.7),
         rgba(255, 255, 255, 0.7)), url(../images/ar/vertrauen-bg.png);

    direction: rtl;
    font-family: Arial, Helvetica, sans-serif;
}


/* =========================================================
   INNERER CONTAINER
   ========================================================= */

.arabic-services-heading {
    width: 100%;

    display: flex;
    flex-direction: column;

    align-items: flex-start;

    direction: rtl;

    text-align: right;

    margin-bottom: 25px;

    padding-right: 0;
    padding-left: 0;
}

.arabic-services-heading h2 {
    color: #000;

    font-size: clamp(30px, 4vw, 48px);
    font-weight: 800;

    line-height: 1.3;

    margin: 5px 0 8px;

    text-align: right;
    margin-right: 40px;
}

.arabic-services-line {
    display: block;

    width: 115px;
    height: 3px;

    margin: 0;

    background: rgb(225, 167, 47);

    border-radius: 20px;
    margin-right: 40px;
}


/* Button rechts */

.arabic-services-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 105px;
    min-height: 36px;
    padding: 7px 18px;

    box-sizing: border-box;

    background: #6b9f24;
    color: #ffffff;

    border-radius: 3px;

    font-size: 14px;
    font-weight: 600;
    text-decoration: none;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.arabic-services-view-all:hover {
    background: #557f1b;
    color: #ffffff;
    transform: translateY(-1px);
}


/* =========================================================
   GRID
   ========================================================= */

.arabic-services-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 28px;

    direction: rtl;
}


/* =========================================================
   KARTEN
   ========================================================= */

.arabic-service-card {
    min-width: 0;
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #eeeeee;
    border-radius: 7px;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.06);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.arabic-service-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.1);
}


/* =========================================================
   FESTE KARTEN – BILDER
   ========================================================= */

.arabic-service-image {
    width: 100%;
    height: 250px;
    overflow: hidden;

    background: #eeeeee;
}

.arabic-service-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.45s ease;
}

.arabic-service-card:hover .arabic-service-image img {
    transform: scale(1.04);
}


/* =========================================================
   FESTE KARTEN – TEXT
   ========================================================= */

.arabic-service-content {
    padding: 14px 16px 15px;
    min-height: 0;
    height: auto;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background-color: #4b171d;

    box-sizing: border-box;
}


/* Titel der Service-Karten */

.arabic-service-content h3 {
    margin: 0;

    font-size: 17px;
    line-height: 1.45;
    color: #ffffff;
}



/* =========================================================
   LETZTE KARTE – SLIDER
   ========================================================= */

.arabic-service-slider-card {
    position: relative;

    min-height: 300px;
    height: 100%;

    border: none;
    border-radius: 7px;

    background: #222222;
}


/* Slider-Wrapper */

.arabic-last-slider {
    position: relative;

    width: 100%;
    height: 100%;
    min-height: 300px;

    overflow: hidden;

    direction: rtl;
}


/* Einzelne Slides */

.arabic-last-slide {
    position: absolute;
    inset: 0;

    opacity: 0;
    visibility: hidden;

    transform: translateX(35px);

    transition:
        opacity 0.55s ease,
        transform 0.55s ease,
        visibility 0.55s ease;
}

.arabic-last-slide.active {
    opacity: 1;
    visibility: visible;

    transform: translateX(0);
}


/* Slider-Bilder */

.arabic-last-slide img {
    display: block;

    width: 100%;
    height: 100%;
    min-height: 300px;

    object-fit: cover;
}


/* Dunkler Verlauf über dem Bild */

.arabic-last-slide::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.7),
            rgba(0, 0, 0, 0.05) 70%
        );

    pointer-events: none;
}


/* Text auf dem Slider */

.arabic-last-slide-overlay {
    position: absolute;
    right: 22px;
    bottom: 25px;
    left: 22px;

    z-index: 2;

    direction: rtl;
    text-align: right;

    color: #ffffff;
}

.arabic-last-slide-overlay h3 {
    margin: 0 0 7px;

    color: #ffffff;

    font-size: 19px;
    font-weight: 700;
    line-height: 1.5;
}

.arabic-last-slide-overlay p {
    margin: 0;

    color: rgba(255, 255, 255, 0.88);

    font-size: 12px;
    line-height: 1.7;
}


/* =========================================================
   SLIDER-PFEILE
   ========================================================= */

.arabic-last-slider-prev,
.arabic-last-slider-next {
    position: absolute;
    top: 50%;
    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;
    padding: 0;

    border: none;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.45);
    color: #ffffff;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 29px;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;

    transform: translateY(-50%);

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.arabic-last-slider-prev {
    left: 13px;
}

.arabic-last-slider-next {
    right: 13px;
}

.arabic-last-slider-prev:hover,
.arabic-last-slider-next:hover {
    background: rgba(0, 0, 0, 0.75);

    transform: translateY(-50%) scale(1.06);
}


/* =========================================================
   SLIDER-PUNKTE
   ========================================================= */

.arabic-last-slider-dots {
    position: absolute;
    right: 0;
    bottom: 12px;
    left: 0;

    z-index: 6;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.arabic-last-dot {
    width: 7px;
    height: 7px;
    padding: 0;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.5);

    cursor: pointer;

    transition:
        width 0.2s ease,
        background 0.2s ease;
}

.arabic-last-dot.active {
    width: 22px;
    border-radius: 10px;

    background: #d6ad51;
}


/* =========================================================
   TABLET
   ========================================================= */

@media screen and (max-width: 1100px) {

    .arabic-services-container {
        width: calc(100% - 40px);
    }

    .arabic-services-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 22px;
    }

    .arabic-service-image {
        height: 220px;
    }

    .arabic-service-slider-card,
    .arabic-last-slider {
        min-height: 315px;
    }

    .arabic-last-slide img {
        min-height: 315px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media screen and (max-width: 600px) {

    .arabic-services-section {
        padding: 35px 0 40px;
    }

    .arabic-services-container {
        width: calc(100% - 30px);
    }

    .arabic-services-heading {
        margin-bottom: 20px;
    }

    .arabic-services-heading h2 {
        font-size: 22px;
    }

    .arabic-services-view-all {
        min-width: 85px;
        min-height: 33px;
        padding: 6px 12px;

        font-size: 12px;
    }

    .arabic-services-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .arabic-service-image {
        height: 220px;
    }

    .arabic-service-slider-card,
    .arabic-last-slider {
        min-height: 270px;
    }

    .arabic-last-slide img {
        min-height: 270px;
    }

    .arabic-last-slide-overlay {
        right: 17px;
        bottom: 23px;
        left: 17px;
    }

    .arabic-last-slide-overlay h3 {
        font-size: 17px;
    }

    .arabic-last-slide-overlay p {
        font-size: 11px;
    }

    .arabic-last-slider-prev,
    .arabic-last-slider-next {
        width: 34px;
        height: 34px;

        font-size: 25px;
    }
}