.foot-ul li {
    max-width: 22%;
    min-width: 22%;

    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal;
}

.foot-ul li a {
    margin: 0px !important;
}

.counter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 80px 40px;
    /* background: #fff; */
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.counter-box {
    text-align: center;
    flex: 1;
    padding: 0 10px;
    border-right: 1px solid #e5e5e5;
}

.counter-box:last-child {
    border-right: none;
}

.counter-number {
    font-size: 40px;
    font-weight: bold;
    color: #000;
}

.counter-label {
    margin-top: 10px;
    font-size: 16px;
    color: #555;
}

@media (max-width: 768px) {
    .counter-section {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .counter-box {
        border-right: none;
        padding: 20px 0;
        border-bottom: 1px solid #eee;
    }

    .counter-box:last-child {
        border-bottom: none;
    }
}



/* ------------------------------
   GLOBAL TYPOGRAPHY
--------------------------------*/
.heading {
    font-size: 60px;
    font-weight: 300;
    line-height: 1.1;
    font-family: "Playfair Display", serif;
    /* Elegant serif look */
    color: #222;
}

.description {
    font-size: 17px;
    line-height: 1.7;
    color: #555;
    font-family: "Inter", sans-serif;
}

/* ------------------------------
   SPACING + LAYOUT
--------------------------------*/
.spaces {

    background-color: #f9f9f9;
}



/* Larger screen spacing adjustments */
@media (min-width: 992px) {
    .spaces .heading {
        padding-top: 40px;
    }
}

/* ------------------------------
   BUTTON DESIGN
--------------------------------*/
.button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #4CAF50;
    color: white;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.button:hover {
    background: #3f9d43;
    text-decoration: none;
    transform: translateY(-2px);
}

.arrow-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.button:hover .arrow-icon {
    transform: translateX(5px);
}

/* ------------------------------
   BACKGROUND HOVER WRAPPER
--------------------------------*/
.back-hover {
    padding: 4px;
    border-radius: 50px;
    transition: background 0.3s ease;
}



/* ------------------------------
   FADE-IN ANIMATION
--------------------------------*/
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




.popular {
    position: relative;

    .swiper-wrapper {
        padding-left: 0;
    }

    h2 {
        font-weight: 600;
        font-size: 2em;
        padding: 1em;
        line-height: 1.1;
        color: #000;
        bottom: 0;
        left: 0;
        width: 100%;
        margin: 0;
    }

    .swiper-slide {
        background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), black);
        position: relative;
        /* border-radius: 2rem; */
        overflow: hidden;
        transition: transform 0.3s ease;
        will-change: tranform;

        &:hover {
            @media (min-width: 980px) {
                transform: scale(1.05);
            }

            img {
                opacity: 0.8;
            }
        }
    }

    .swiper-header,
    .swiper-container,
    .swiper-container-projects {
        padding-left: 3rem;
        padding-right: 3rem;

        @media (min-width: 768px) {
            padding-left: 90px;
            padding-right: 90px;
        }
    }

    .swiper-container,
    .swiper-container-projects {
        overflow-x: hidden;
        padding-top: 1.5em;
        padding-bottom: 4em;
    }

    a {
        display: block;
        position: relative;
        text-decoration: none;
        color: inherit;
        height: 0;
        padding-top: 125%;

        h5 {
            font-weight: 600;
            font-size: 2em;
            padding: 1.5em 1em 1.5em 1.5em;
            line-height: 1.1;
            color: white;
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            margin: 0;
        }

        img {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            object-fit: cover;
            opacity: 0.65;
            transition: opacity 0.24s ease-out;
            will-change: opacity;
        }
    }
}

.swiper-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.swiper-header .swiper-arrows {
    display: flex;
    align-items: center;

    .swiper-prev,
    .swiper-next {
        background-color: rgba(255, 255, 255, 0.15);
        color: #fff;
        font-size: 1.5em;
        width: 2.5em;
        height: 2.5em;
        line-height: 2.5;
        text-align: center;
        border-radius: 50%;
        outline: none;
        font-weight: bold;
        transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease, visibility 0.25s ease, background-color 0.25s ease;
        outline: none;
        border: none;
        cursor: pointer;

        &:hover {
            background-color: white;
            color: black;
            transform: translateY(-3px);
            box-shadow: 0 0.25em 1.25em hsla(265, 50%, 50%, 0.2);
        }

        &.swiper-button-disabled {
            opacity: 0;
            pointer-events: none;
            visibility: hidden;
            transform: scale(0.5);
            // display: none;
        }
    }

    button+button {
        margin-left: 0.5em;
    }
}

.bottom {
    padding-bottom: 6em;
}

/* BACKDROP */
.m3m-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(3px);
    display: flex;
    /* FIX — ensure centering always works */
    justify-content: center;
    align-items: center;
    z-index: 999999 !important;
    padding: 20px;
    /* FIX — prevents modal from touching edges on mobile */
}

/* MODAL BOX */
.m3m-modal {
    position: relative;
    width: 100%;
    max-width: 600px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    animation: scaleIn 0.4s ease;
    max-height: 90vh;
    /* FIX — prevents overflow on short screens */
}

/* IMAGE */
.m3m-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: fill;
    max-height: 90vh;
    /* FIX — image fits all devices */
}

/* CLOSE BUTTON */
.m3m-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgb(255 11 11);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 36px;
    color: #fff;
    cursor: pointer;
    z-index: 50;
}

/* ANIMATIONS */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* RESPONSIVE FIXES */
@media (max-width: 480px) {
    .m3m-close {
        width: 30px;
        height: 30px;
        font-size: 16px;
        line-height: 30px;
    }
}