/* =================================================
   MOBILE HERO BANNERS
================================================= */
@media (max-width: 767px) {

    #main > section:nth-child(1),
    #main > section:nth-child(6),
    #main > section:nth-child(8) {
        padding: 0 !important;
        min-height: 210px !important;
    }

    #main > section:nth-child(1) .section-hero img,
    #main > section:nth-child(6) .section-hero img,
    #main > section:nth-child(8) .section-hero img {
        width: 100% !important;
        height: 180px !important;
        object-fit: cover !important;
        display: block !important;
    }
}


/* =================================================
   BENEFITS SECTION
================================================= */

/* Benefits background */
#main .section-benefits {
    background-color: #ffffff !important;
}


/* =================================================
   CATEGORIES SECTION
================================================= */

/* Center cards on desktop */
@media (min-width: 768px) {

    #main .section-categories .embla__container {
        justify-content: center;
    }
}

/* Stretch category section */
@media (min-width: 768px) {

    #main .section-categories {
        padding-left: 2% !important;
        padding-right: 2% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    #main .section-categories .embla-wrapper,
    #main .section-categories .embla {
        width: 100% !important;
        max-width: 100% !important;
    }

    #main .section-categories .embla__container > div {
        flex: 0 0 45% !important;
        max-width: 550px !important;
        width: 100% !important;
    }

    #main .section-categories img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
        display: block !important;
    }
}


/* =================================================
   FOOTER
================================================= */

#footer {
    background-color: #f2e8da;
}

/* Desktop logo */
@media (min-width: 768px) {

    #footer img.hidden.md\:block {
        width: 100px !important;
        height: auto !important;
    }
}

[section-id="d4c15416-9edd-46a7-ad18-8f0718db86a2"] {
    margin-bottom: 40px !important;
}

.section-hero {
    border-radius: 24px !important;
    overflow: hidden !important;
}

/* Premium Banner Layout */
.section-hero {
    width: calc(100% - 40px) !important;
    max-width: 1400px !important;
    margin: 20px auto !important;
    border-radius: 24px !important;
    overflow: hidden !important;
}

/* Mobile */
@media (max-width: 767px) {
    .section-hero {
        width: calc(100% - 20px) !important;
        margin: 10px auto !important;
        border-radius: 16px !important;
    }
}

/* Premium Categories Section */
[section-id="59e376b5-aef2-4ea3-b053-327437b4cee7"] {
    width: calc(100% - 40px) !important;
    max-width: 1400px !important;
    margin: 20px auto !important;
    padding: 32px !important;

    background: #ffffff !important;
    border-radius: 24px !important;

    overflow: hidden !important;
}

/* Category Images */
[section-id="59e376b5-aef2-4ea3-b053-327437b4cee7"] .embla__slide img {
    border-radius: 18px !important;
    transition: transform .4s ease;
}

[section-id="59e376b5-aef2-4ea3-b053-327437b4cee7"] .embla__slide:hover img {
    transform: scale(1.05);
}

/* Category Titles */
[section-id="59e376b5-aef2-4ea3-b053-327437b4cee7"] h3 {
    text-align: center !important;
    font-weight: 700 !important;
}

/* Mobile */
@media (max-width: 767px) {

    [section-id="59e376b5-aef2-4ea3-b053-327437b4cee7"] {
        width: calc(100% - 20px) !important;
        margin: 10px auto !important;
        padding: 20px !important;
        border-radius: 16px !important;
    }

    [section-id="59e376b5-aef2-4ea3-b053-327437b4cee7"] .embla__slide img {
        border-radius: 12px !important;
    }
}

/* ===== Richline block ===== */
.richline-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
    color: #75727B !important;
    font-size: 0.875rem;
}

/* ===== Richline logo ===== */
.richline-footer img {
    height: 18px;
}

/* ===== Text styling (Zid + Richline) ===== */
.richline-footer p,
.border-border-light a p {
    letter-spacing: 0.17px !important;
    font-family: "Almarai", sans-serif !important;
    font-weight: 400 !important;
    font-size: 0.875rem !important;
    line-height: 1.43 !important;
    color: #000000 !important;
    margin: 0 !important;
}

    .richline-footer img {
        height: 16px;
    }
}

/* ===== Add space under footer ===== */
.border-border-light.mt-6.border-t.pt-6 {
    margin-bottom: 50px !important;
}

element.style {
    background-color: var(--primary, #cccccc);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    white-space: nowrap;
    border-radius: 25px;
    cursor: pointer;
    position: relative;
    color: #ffffff !important;
    border: none;
    outline: none;
    width: auto;
    height: auto;
    transition: all 1s ease 1s;
}