/* ================================================
   ESPRESSIMO SERVICES WIDGET Proto V1
   ================================================ */

.elementor-widget-espressimo_services_proto_v1 {
    width: 100%;
}

.elementor-widget-espressimo_services_proto_v1 .elementor-widget-container {
    padding: 0 !important;
    margin: 0 !important;
}

/* ------------------------------------------------
   SECTION
   ------------------------------------------------ */
.esp-services {
    background-color: #fff9f2;
    border-bottom: 1px solid #e6dad4;
}

/* ------------------------------------------------
   SECTION HEADER ROW
   ------------------------------------------------ */
.esp-services__header {
    padding: 36px;
    border-bottom: 1px solid #e6dad4;
}

.esp-services__heading {
    margin: 0;
}

/* ------------------------------------------------
   CARDS GRID
   ------------------------------------------------ */
.esp-services__cards {
    display: flex;
}

.esp-services__card {
    flex: 1;
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    border-right: 1px solid #e6dad4;
}

.esp-services__card:first-child {
    border-right: none;
}

/* ------------------------------------------------
   CARD IMAGE
   ------------------------------------------------ */
.esp-services__img-wrap {
    position: relative;
    width: 100%;
    padding-top: 100%;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f6ede3;
}

.esp-services__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

/* ------------------------------------------------
   CARD CONTENT
   ------------------------------------------------ */
.esp-services__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.esp-services__title {
    margin: 0;
}

.esp-services__text {
    margin: 0;
    flex: 1;
}

/* ------------------------------------------------
   CARD BUTTON
   ------------------------------------------------ */
.esp-services__btn,
.esp-services__btn:visited,
.esp-services__btn:focus {
    display: inline-block;
    width: fit-content;
    margin-top: 8px;
    padding: 10px 20px;
    border-radius: 4px;
    color: #fff !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer;
    transition: opacity 0.2s;
    box-shadow: none !important;
}

.esp-services__btn:hover {
    opacity: 0.9;
    color: #fff !important;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .esp-services__header {
        padding: 24px;
    }
    .esp-services__cards {
        flex-wrap: wrap;
    }
    .esp-services__card {
        flex: 1 1 50%;
        padding: 24px;
        border-right: none;
        border-bottom: 1px solid #e6dad4;
    }
    /* In RTL, separate the two columns per row with a border on the right card */
    .esp-services__card:nth-child(odd) {
        border-left: 1px solid #e6dad4;
    }
    .esp-services__img {
        max-width: 100%;
    }
}

@media (max-width: 560px) {
    .esp-services__header {
        padding: 20px 16px;
    }
    .esp-services__card {
        flex: 1 1 100%;
        padding: 20px 16px;
        border-left: none !important;
    }
    .esp-services__card:last-child {
        border-bottom: none;
    }
}
