/*
Theme Name: UMusic Child Theme
Theme URI: https://umusic.kelidy.ir/landing
Author: Kelidy
Description: Child Theme for umusic theme
Template: umusic
Version: 1.0
Text Domain: umusic-child
UMusic WordPress Theme, (C) 2025
*/

/*
 * Coded By Alireza Hajizadeh
 * website : offhz.ir
*/

/* ==========================================
   1. Typography Setup (Web Fonts Definition)
   ========================================== */

/* فونت اکران - وزن سبک (Light) */
@font-face {
    font-family: 'Ekraan';
    src: url('https://karenhomayounfar.com/Ekraan-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* فونت اکران - وزن معمولی (Regular) */
@font-face {
    font-family: 'Ekraan';
    src: url('https://karenhomayounfar.com/Ekraan-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* فونت اکران - وزن متوسط (Medium) */
@font-face {
    font-family: 'Ekraan';
    src: url('https://karenhomayounfar.com/Ekraan-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* فونت اکران - وزن نیمه‌ضخیم (SemiBold) */
@font-face {
    font-family: 'Ekraan';
    src: url('https://karenhomayounfar.com/Ekraan-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* فونت اکران - وزن ضخیم (Bold) */
@font-face {
    font-family: 'Ekraan';
    src: url('https://karenhomayounfar.com/Ekraan-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* فونت ایران نستعلیق - فقط برای عنوان هدر */
@font-face {
    font-family: 'IranNastaliq';
    src: url('https://karenhomayounfar.com/Ekraan-Bold.woff') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ==========================================
   2. Global Typography Application
   ========================================== */

/* جایگزینی فونت سراسری قالب در متغیرهای ریشه (Root Variables) */
:root {
    --um-font-family: 'Ekraan', Tahoma, Arial, sans-serif !important;
}

/* اعمال قطعی فونت اکران روی تمامی عناصر متنی سایت */
body, h1, h2, h3, h4, h5, h6, p, a, span, div, li, td, th, input, button, select, textarea {
    font-family: 'Ekraan', Tahoma, Arial, sans-serif !important;
}

/* ==========================================
   3. Exceptions (Specific Elements)
   ========================================== */

/* استثنای فونت نستعلیق منحصراً برای عنوان سایت در هدر */
h1.header__title,
.header__title {
    font-family: 'IranNastaliq', Tahoma, Arial, sans-serif !important; 
    font-weight: normal !important;
    font-size: 24px !important;
    color: #db152c !important; 
    letter-spacing: normal !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6) !important; 
}


/*
 * Coded By Alireza Hajizadeh
 * website : offhz.ir
*/


.menu-item-arrow {
    display: none !important;
}

.custom-scrollbar::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}
.custom-scrollbar {
    -ms-overflow-style: none !important;  
    scrollbar-width: none !important;  
}

/*
 * Coded By Alireza Hajizadeh
 * website : offhz.ir
*/

@media (min-width: 992px) {
    
    nav.menu.overflow-hidden {
        overflow: visible !important;
    }

    .menu-item-has-children {
        position: relative !important; 
    }

    .menu-item-has-children > .sub-menu {
        position: absolute !important;
        top: 100% !important; 
        right: 0 !important; 
        width: 200px !important; 
        box-sizing: border-box !important; 
        
        background-color: #121212 !important;
        border: 1px solid #e50000 !important;
        border-radius: 12px !important;
        padding: 10px 0 !important;
        box-shadow: 0 8px 25px rgba(0,0,0,0.5) !important;
        
        transform: translateY(15px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease !important;
        display: block !important;
        z-index: 9999 !important;
    }

    .menu-item-has-children:hover > .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .menu-item-has-children > .sub-menu li a {
        color: #cccccc !important;
        padding: 12px 20px !important;
        display: block !important;
        font-size: 14px !important;
        transition: all 0.2s ease !important;
    }

    .menu-item-has-children > .sub-menu li a:hover {
        color: #ffffff !important;
        background-color: rgba(229, 0, 0, 0.1) !important;
    }
}

/*
 * Coded By Alireza Hajizadeh
 * website : offhz.ir
*/

/*
 * Coded By Alireza Hajizadeh
 * Final Fix for Custom HTML Structure
*/




/*
 * Coded By Alireza Hajizadeh
 * website : offhz.ir
*/

    .sub-menu-container > ul.sub-menu > li {
        width: 100% !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important; 
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .sub-menu-container > ul.sub-menu > li:last-child {
        border-bottom: none !important;
    }

    .sub-menu-container .sub-menu li a.menu_link {
        display: flex !important;
        flex-direction: row !important; 
        justify-content: center !important; 
        align-items: center !important; 
        gap: 8px !important; 
        width: 100% !important;
        color: #ffffff !important;
        font-size: 15px !important;
        padding: 15px 0 !important;
    }

    .sub-menu-container .sub-menu li a.menu_link i,
    .sub-menu-container .sub-menu li a.menu_link span {
        margin: 0 !important;
        padding: 0 !important;
    }

}
