/**
 * Services Gallery Widget Styles
 */

.mercato-services-gallery {
    width: 100%;
    padding: 2.5rem 0;
    direction: rtl;
}

@media (min-width: 768px) {
    .mercato-services-gallery {
        padding: 5rem 0;
    }
}

/* ==========================================================================
   Header Section
   ========================================================================== */

.msg-header {
    text-align: center;
    color: #000;
    margin-bottom: 2.5rem;
}

.msg-pre-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

@media (min-width: 1024px) {
    .msg-pre-title {
        font-size: 1.875rem;
    }
}

.msg-main-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin: 0;
}

@media (min-width: 1024px) {
    .msg-main-title {
        font-size: 3rem;
    }
}

.msg-highlight {
    color: #D4AF37;
    border-bottom: 2px solid #D4AF37;
    display: inline-block;
    line-height: 0.8;
}

/* ==========================================================================
   Rows & Layout
   ========================================================================== */

.msg-rows-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .msg-rows-container {
        gap: 2.5rem;
    }
}

.msg-row {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

/* Desktop Layouts */
@media (min-width: 1024px) {
    .msg-row {
        flex-direction: row;
        gap: 0;
    }

    /* Cards Right (Default RTL) -> Cards First, Image Second */
    .msg-row.msg-layout-cards-right {
        flex-direction: row;
    }

    /* Cards Left -> Image First, Cards Second */
    .msg-row.msg-layout-cards-left {
        flex-direction: row-reverse;
    }
}

/* ==========================================================================
   Cards Group
   ========================================================================== */

.msg-cards-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 640px) {
    .msg-cards-group {
        flex-direction: row;
        justify-content: space-around;
        gap: 0;
    }
}

@media (min-width: 1024px) {
    .msg-cards-group {
        width: 50%;
    }
}

/* Service Card */
.msg-card {
    width: 75%;
    /* Mobile */
    background-color: #fff;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 1.25rem;
    min-height: 450px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

@media (min-width: 640px) {
    .msg-card {
        width: 45%;
        padding: 1.25vw 1.25rem;
        /* Dynamic padding like React */
    }
}

/* Number Box */
.msg-card-num-box {
    width: 67px;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #D4AF37;
    color: #000;
    font-weight: 700;
}

.msg-card-num-box span {
    font-size: 30px;
}

/* Card Title */
.msg-card-title {
    color: #D4AF37;
    font-size: 1.875rem;
    /* 30px */
}

/* Card Image */
.msg-card-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ==========================================================================
   Big Side Image
   ========================================================================== */

.msg-big-image-wrapper {
    width: 100%;
    height: 16rem;
    /* 64 (h-64) * 4px = 256px */
}

@media (min-width: 1024px) {
    .msg-big-image-wrapper {
        width: 40%;
        height: 22.5rem;
        /* 90 (h-90) * 4px = 360px */
    }
}

.msg-big-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hide Mobile */
@media (max-width: 1023px) {
    .msg-big-image-wrapper.msg-hide-mobile {
        display: none;
    }
}