﻿/* ===== Header ===== */
/*BLotus Font*/
@font-face {
    font-family: 'BLotus';
    src: url('/Assets/fonts/BLotus.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'BLotus';
    src: url('/Assets/fonts/BLotusBd.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
/*BLotus Font*/

/*BTitr Font*/
@font-face {
    font-family: 'BTitr';
    src: url('/Assets/fonts/BTitrBD.TTF') format('truetype');
}
/*BTitr Font*/

/*BNazanin Font*/
@font-face {
    font-family: 'BNazanin';
    src: url('/Assets/fonts/BNazanin.ttf') format('truetype'); 
    font-weight: normal;
}
@font-face {
    font-family: 'BNazanin';
    src: url('/Assets/fonts/BNaznnBd.ttf') format('truetype'); 
    font-weight: bolder;
}
@font-face {
    font-family: 'BNazanin';
    src: url('/Assets/fonts/BNaznno.ttf') format('truetype'); 
    font-weight: lighter;
}
/*BNazanin Font*/

/*Vazir Font*/
@font-face {
    font-family: 'Vazir';
    src: url('/Assets/fonts/Vazir.ttf') format('truetype');
}
/*Vazir Font*/

/*VazirMatn Font*/
@font-face {
    font-family: 'VazirMatn';
    src: url('/Assets/fonts/Vazirmatn-ExtraBold.ttf') format('truetype'); /* اگر فایل بولد دارید */
    font-weight: bolder;
}
@font-face {
    font-family: 'VazirMatn';
    src: url('/Assets/fonts/Vazirmatn-Bold.ttf') format('truetype'); /* اگر فایل بولد دارید */
    font-weight: bold;
}
@font-face {
    font-family: 'VazirMatn';
    src: url('/Assets/fonts/Vazirmatn-Medium.ttf') format('truetype'); /* اگر فایل بولد دارید */
    font-weight: normal;
}
@font-face {
    font-family: 'VazirMatn';
    src: url('/Assets/fonts/Vazirmatn-Light.ttf') format('truetype'); /* اگر فایل بولد دارید */
    font-weight: lighter;
}
/*VazirMatn Font*/

@media (max-width: 768px) {
    .content-grid {
        display: flex;
        flex-direction: column;
    }
    /* تنظیم ترتیب عناصر در حالت موبایل */
    .main-column { 
        order: 1;
    }
    .right-sidebar { /* بخش اخبار */
        order: 2; 
    }

    .left-sidebar {
        order: 3; 
    }
}
.site-header {
    background: linear-gradient(43deg, #94baf6, #d8dcf2);
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

/* ===== Logo ===== */
.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    color: #0f172a;
}

.logo i {
    font-size: 28px;
    color: #2563eb;
}

/* ===== Navigation ===== */
.main-nav ul {
    display: flex;
    gap: 24px;
    list-style: none;
}

.main-nav a {
    font-size: 18px;
    color: #334155;
}

    .main-nav a.active,
    .main-nav a:hover {
        color: #2563eb;
    }

.main-nav a {
    position: relative;
    font-size: 18px;
    color: #334155;
    text-decoration: none;
    padding-bottom: 7px;
    transition: color 0.3s ease;
}

    .main-nav a::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 3px; /* ضخامت خط */
        background-color: #2563eb; /* رنگ خط */
        transition: width 0.3s ease;
    }

    .main-nav a:hover::after{
        width: 100%;
    }

    .main-nav a:hover {
        color: #2563eb;
    }
.mTitle {
    font-weight: bold;
}
.mSubTitle {
    font-weight: normal;
}
/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    transition: .2s;
}

.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, #2563eb 50%, #1d4ed8 50%);
    background-size: 200% 100%;
    background-position: right bottom;
    color: #fff;
    outline: 1px solid aliceblue;
    transition: background-position 0.3s ease, color 0.3s ease;
}

    .btn-primary:hover {
        background-position: left bottom;
        color: #fff;
    }

.btn-outline {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #2563eb;
    color: white;
    background: mediumblue;
    transition: 0.3s ease;
}

    .btn-outline:hover {
        background: #c8e8f8;
        /*background-position: left bottom;*/
        /*color: #fff;*/
    }


.cta-section {
    text-align: center;
    border: 1px solid;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .05), 0px 0px 10px 0px rgb(121 184 255) inset;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: white;
}
/* ===============================
   Mobile menu - base (ALL screens)
   =============================== */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 1000;
    /* مخفی پیش‌فرض */
    transform: translateX(100%);
    transition: transform .3s ease;
    /* ❌ هرگز display:none اینجا نذار */
}

    /* وقتی باز است */
    .mobile-menu.active {
        transform: translateX(0);
    }

/* overlay */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 999;
    display: none;
}

    .menu-overlay.active {
        display: block;
    }


/* ===== Desktop ===== */
@media (min-width: 769px) {
    .mobile-menu,
    .menu-overlay {
        display: none;
    }

    .mobile-toggle {
        display: none;
    }
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .site-header {
        /*display: none;*/
    }

    .mobile-toggle {
        display: flex;
    }
}

/* ===== Mobile Hamburger Button ===== */
.mobile-toggle {
    display: none; /* فقط روی موبایل نمایش داده می‌شود */
    width: 40px;
    height: 32px;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

    .mobile-toggle span {
        display: block;
        height: 3px;
        width: 100%;
        background: #0f172a;
        border-radius: 2px;
        transition: .3s;
    }

/* ===== Mobile Menu Base ===== */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 1000;
    /* مخفی با ترنسفورم */
    transform: translateX(100%);
    transition: transform .3s ease;
    overflow-y: auto;
}

    /* وقتی باز است */
    .mobile-menu.active {
        transform: translateX(0);
    }


.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 999;
    display: none;
}

    .menu-overlay.active {
        display: block;
    }
/* ===== main content ===== */
.main-column {
    min-width: 200px;
}
