/**
* Theme Name: Atlas Child
* Description: This is a child theme of Atlas.
* Author: tmrwstudio
* Template: atlas
* Version: 1.0
*/

/* =========================================
   تعریف فونت‌های ایران‌سنس (FaNum)
   ========================================= */

/* 1. وزن خیلی نازک (UltraLight - 200) */
@font-face {
    font-family: 'IRANSans-fa';
    src: url('/wp-content/uploads/2026/fonts/IRANSansWeb(FaNum)_UltraLight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

/* 2. وزن نازک (Light - 300) */
@font-face {
    font-family: 'IRANSans-fa';
    src: url('/wp-content/uploads/2026/fonts/IRANSansWeb(FaNum)_Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* 3. وزن معمولی (Normal - 400) */
@font-face {
    font-family: 'IRANSans-fa';
    src: url('/wp-content/uploads/2026/fonts/IRANSansWeb(FaNum).woff2') format('woff2');
    font-weight: normal; /* یا 400 */
    font-style: normal;
    font-display: swap;
}

/* 4. وزن متوسط (Medium - 500) */
@font-face {
    font-family: 'IRANSans-fa';
    src: url('/wp-content/uploads/2026/fonts/IRANSansWeb(FaNum)_Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* 5. وزن ضخیم (Bold - 700) */
@font-face {
    font-family: 'IRANSans-fa';
    src: url('/wp-content/uploads/2026/fonts/IRANSansWeb(FaNum)_Bold.woff2') format('woff2');
    font-weight: bold; /* یا 700 */
    font-style: normal;
    font-display: swap;
}

/* 6. وزن خیلی ضخیم (Black - 900) */
@font-face {
    font-family: 'IRANSans-fa';
    src: url('/wp-content/uploads/2026/fonts/IRANSansWeb(FaNum)_Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* =========================================
   اعمال فونت به کل سایت
   ========================================= */
body, h1, h2, h3, h4, h5, h6, p, a, span, li, input, textarea, button, .meta-item, .head4 {
    font-family: 'IRANSans-fa', Tahoma, Arial, sans-serif !important;
}

/* کانتینر اصلی */
.mh-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}


/*حذف دکمه ی منوی همبرگری اضافی*/
.site-section.main-header .offcanvas-trigger.button.btn-content_icon.btn-medium.btn-text {
    display: none;
}

/* =========================================
   ااستایل دکمه های به اشتراک گذاری
   ========================================= */
.mh-share-box {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    flex-wrap: wrap;
    position: absolute;
    flex-direction: column;
    bottom: 41px;
    left: 0;
    width: fit-content !important;
}
.share-btn {
    padding: 5px 10px;
    border-radius: 5px;
    color: #fff;
    text-decoration: none;
    width: 40px;
    height: 40px;
    align-items: center;
    display: flex;
    width: 41px !important;
    background: #fafafa4d;
    filter: invert(1);
}



/* =========================================
   استایل تولتیپ (Tooltip)
   ========================================= */

/* تنظیم موقعیت دکمه برای اینکه تولتیپ نسبت به آن سنجیده شود */
.share-btn {
    position: relative;
    overflow: visible; /* مهم: تا تولتیپ بیرون نزند */
}

/* باکس اصلی تولتیپ (متن) */
.share-btn::before {
    content: attr(data-tooltip); /* متن را از HTML میخواند */
    position: absolute;
    bottom: 125%; /* بالای دکمه */
    left: 50%;
    transform: translateX(-50%) translateY(10px); /* برای انیمیشن */
    
    background: #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap; /* متن در یک خط باشد */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    pointer-events: none; /* تا موس روی تولتیپ گیر نکند */
}

/* مثلث کوچک پایین تولتیپ */
.share-btn::after {
    content: '';
    position: absolute;
    bottom: 99%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    
    border: 5px solid transparent;
    border-top-color: #333; /* رنگ مثلث */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

/* نمایش تولتیپ هنگام هاور */
.share-btn:hover::before,
.share-btn:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0); /* حرکت به بالا */
}

/* تغییر رنگ دکمه کپی وقتی موفقیت‌آمیز بود */
.share-btn.copied {
    background: #4caf50 !important;
    filter: invert(0);
}

@media screen and (max-width: 1200px) {
    .mh-share-box {
        left: 50px;
    }
    .section-inner {
    padding-right: 30px !important;
    padding-left: 30px !important;
}
}

@media screen and (max-width: 576px) {
    .mh-share-box {
        left: 0;
        flex-direction: row;
        justify-content: center;
        width: 100% !important;
        bottom: 21px !important;
    }
    .course-info > *, .mh-hero-content > * {
    width: 100% !important;
}
}