/*
Theme Name: Elessi Theme Child
Theme URI: https://elessi.nasatheme.com
Description: This is a child theme for Elessi Theme
Author: NasaTheme team
Author URI: https://nasatheme.com
Template: elessi-theme
Version: 1.0
*/


/*************** ADD YOUR CUSTOM CSS IN THIS AREA ***************/

.nasa-category-horizontal-4 .nasa-cat-title {
    border: 1px solid #B8282B;
    border-radius: 6px;
    padding:15px;
}
.top-cover{
    clip-path: polygon(0 0, calc(100% - 56px) 0, 100% 100%, 0% 100%);
    
}
/* =========================================================
   MOBILE SLIDER - ELEMENTOR
   Outer container class: mobile-slide
   ========================================================= */


/* =========================================================
   DESKTOP
   ========================================================= */

.mobile-slide .e-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}


/* =========================================================
   MOBILE SLIDER
   ========================================================= */

@media (max-width: 767px) {

    /* Main container */
    .mobile-slide {
        position: relative;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }


    /* Elementor inner container */
    .mobile-slide > .e-con-inner {
        width: 100%;
        max-width: 100%;
        padding: 0 !important;
    }
}

    /* =====================================================
       SLIDER
       ===================================================== */

    .mobile-slide .e-grid {
        display: flex !important;

        flex-direction: row !important;
        flex-wrap: nowrap !important;

        width: 100%;
        max-width: 100%;

        gap: 0 !important;

        overflow-x: auto;
        overflow-y: hidden;

        position: relative;

        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;

        -webkit-overflow-scrolling: touch;

        /* Hide scrollbar */
        scrollbar-width: none;
    }


    /* Chrome / Safari */
    .mobile-slide .e-grid::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }


    /* =====================================================
       EACH SLIDE
       ===================================================== */

    .mobile-slide .elementor-widget-icon-box {
        flex: 0 0 100% !important;

        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;

        box-sizing: border-box;

        margin: 0 !important;
        padding: 17px 45px !important;

        scroll-snap-align: start;
        scroll-snap-stop: always;
    }


    /* =====================================================
       ICON BOX
       ===================================================== */

    .mobile-slide .elementor-icon-box-wrapper {
        display: flex !important;

        flex-direction: row !important;

        align-items: center !important;
        justify-content: center !important;

        width: 100%;

        gap: 15px;
    }


    /* =====================================================
       ICON
       ===================================================== */

    .mobile-slide .elementor-icon-box-icon {
        flex: 0 0 auto;

        width: 34px;
        height: 34px;

        margin: 0 !important;

        display: flex;

        align-items: center;
        justify-content: center;
    }


    .mobile-slide .elementor-icon-box-icon .elementor-icon {
        width: 34px;
        height: 34px;

        display: flex;

        align-items: center;
        justify-content: center;
    }


    .mobile-slide .elementor-icon-box-icon svg {
        width: 34px;
        height: 34px;

        display: block;
    }


    /* =====================================================
       TEXT
       ===================================================== */

    .mobile-slide .elementor-icon-box-content {
        flex: 0 0 auto;

        width: auto;
        max-width: calc(100% - 50px);
    }


    .mobile-slide .elementor-icon-box-title {
        margin: 0 !important;
        padding: 0 !important;

        font-size: 16px;
        line-height: 1.3;

        font-weight: 700;

        white-space: nowrap;
    }


    /* =====================================================
       CLICKABLE PREVIOUS / NEXT BUTTONS
       ===================================================== */

    .mobile-slide-prev-btn,
    .mobile-slide-next-btn {
        position: absolute;

        top: 50%;

        transform: translateY(-50%);

        z-index: 100;

        width: 24px;
        height: 30px;

        padding: 0;
        margin: 0;

        border: 0;
        border-radius: 50%;

        background: rgba(255, 255, 255, 0.95);

        color: #b5121b;

        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);

        display: flex;

        align-items: center;
        justify-content: center;

        font-family: Arial, sans-serif;

        font-size: 22px;
        font-weight: 400;

        line-height: 1;

        cursor: pointer;

        appearance: none;
        -webkit-appearance: none;

        transition:
            transform 0.2s ease,
            background 0.2s ease;
    }


    /* Previous arrow */
    .mobile-slide-prev-btn {
        left: 7px;
    }


    /* Next arrow */
    .mobile-slide-next-btn {
        right: 7px;
    }


    /* =====================================================
       ARROW HOVER
       ===================================================== */

    .mobile-slide-prev-btn:hover,
    .mobile-slide-next-btn:hover {
        background: #ffffff;

        color: #b5121b;

        transform: translateY(-50%) scale(1.08);
    }


    /* =====================================================
       ARROW ACTIVE / CLICK
       ===================================================== */

    .mobile-slide-prev-btn:active,
    .mobile-slide-next-btn:active {
        transform: translateY(-50%) scale(0.95);
    }


    /* =====================================================
       REMOVE FOCUS OUTLINE
       ===================================================== */

    .mobile-slide-prev-btn:focus,
    .mobile-slide-next-btn:focus {
        outline: none;
    }


    /* =====================================================
       SMALL MOBILE
       ===================================================== */

    @media (max-width: 480px) {

        .mobile-slide .elementor-widget-icon-box {
            padding-left: 35px !important;
            padding-right: 35px !important;
        }


        .mobile-slide .elementor-icon-box-wrapper {
            gap: 12px;
        }


        .mobile-slide .elementor-icon-box-icon,
        .mobile-slide .elementor-icon-box-icon .elementor-icon {
            width: 30px;
            height: 30px;
        }


        .mobile-slide .elementor-icon-box-icon svg {
            width: 30px;
            height: 30px;
        }


        .mobile-slide .elementor-icon-box-title {
            font-size: 14px;
        }


        .mobile-slide-prev-btn,
        .mobile-slide-next-btn {
            width: 24px;
            height: 30px;

            font-size: 20px;
        }


        .mobile-slide-prev-btn {
            left: 7px;
        }


        .mobile-slide-next-btn {
            right: 7px;
        }

    }



/* =========================================================
   HIDE ARROWS ON DESKTOP
   ========================================================= */

@media (min-width: 768px) {

    .mobile-slide-prev-btn,
    .mobile-slide-next-btn {
        display: none !important;
    }

}


