﻿@font-face {
    font-family: 'Vazirmatn-Bold'; /* نام فونت */
    src: url('../Font/webfonts/Vazirmatn-Bold.woff2') format('woff2'); /* مسیر فایل فونت */
    font-weight: normal; /* وزن فونت */
    font-style: normal; /* سبک فونت */
}
   

/* ===== VARIABLES ===== */
:root {
    --primary: #1e40af;
    --primary-light: #3b82f6;
    --secondary: #f59e0b;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --danger: #ef4444;
    --success: #10b981;
    --border-radius: 0.375rem;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn-Bold', sans-serif;
    background-color: #f1f5f9;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden !important;
}

a {
    text-decoration: none;
    color: inherit;
}

.btnScrollHeader {
    border: 1px solid #634f98 !important;
    padding: 6px 11px 6px 11px !important;
    border-radius: 10px !important;
    margin: 0px 0px 0px 18px !important;
}
.btn_scroll_header :hover {
    color: white !important;
    background: #6d28d9 !important;
}
ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===== HEADER STYLES ===== */
.header {
    background-color: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.scroll_right {
    border: solid 1px silver;
    padding: 15px 21px 16px 21px;
    border-radius: 34px;
    margin: 8px 0px 0px 0px;
    background: white;
    box-shadow: 0px 0px 4px silver;
    transition: box-shadow 0.3s ease;
    z-index: 1;
    cursor: pointer;
    left: 0;
    position: absolute;
}

.scroll_right:hover {
    box-shadow: 0px 0px 11px silver;
}

.scroll_left {
    border: solid 1px silver;
    padding: 15px 21px 16px 21px;
    border-radius: 34px;
    margin: 8px 0px 0px -6px;
    background: white;
    box-shadow: 0px 0px 4px silver;
    transition: box-shadow 0.3s ease;
    z-index: 1;
    cursor: pointer;
    position: absolute;
    right: 0;
}

    .scroll_left:hover {
        box-shadow: 0px 0px 11px silver;
    }



.sidenav {
    height: 100%;
    position: fixed;
    width: 0px;
    z-index: 10000;
    top: 0;
    right: 0;
    background-color: #111;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
}

.sidenav a {
    padding: 28px 39px 8px 14px;
    text-decoration: none;
    font-size: 19px;
    color: #000000;
    direction: rtl;
    display: block;
    transition: 0.3s;
}

    .sidenav a:hover {
        color: #960000;
    }

.sidenav .closebtn {
    position: absolute;
    top: -15px;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

@media screen and (max-height: 450px) {
    .sidenav {
        padding-top: 15px;
    }

        .sidenav a {
            font-size: 18px;
        }
}


.closebtn {
    position: absolute;
    top: -14px;
    right: 20px;
    font-size: 36px;
    margin-left: 50px;
}

.NavSide {
    padding: 28px 39px 8px 14px;
    text-decoration: none;
    font-size: 19px;
    color: #000000;
    direction: rtl;
    display: block;
    transition: 0.3s;
}

.sidebarMenoButton {
    display: none;
}

#mySidenav {
    display: none;
    width: 250px;
    padding: 60px 0px 50px 0px;
    background: rgb(243 243 243);
    box-shadow: rgb(140 140 140) 0px 0px 13px;
}

@media (max-width: 768px) {
    .sidebarMenoButton {
        display: block;
    }
    .btn_Dynamic{
        display:none;
    }
    .scroll_right {
        display: none;
    }

    .scroll_left {
        display: none;
    }

    .nav_menud {
        display: none;
    }

    #mySidenav {
        display: block;
    }
}

@media (max-width: 576px) {
    #mySidenav {
        display: block;
    }

    .sidebarMenoButton {
        display: block;
    }

    .scroll_right {
        display: none;
    }

    .scroll_left {
        display: none;
    }

    .nav_menud {
        display: none;
    }
}


.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    flex-direction: row;
    direction: rtl;
    border-bottom: 1px solid var(--gray-light);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    display: flex;
    align-items: center;
}

    .logo span {
        color: var(--secondary);
    }

.header-date {
    font-size: 0.875rem;
    color: var(--gray);
}

.header-actions {
    margin-top: 13px;
    display: flex;
    gap: 1rem;
}

    .header-actions a {
        color: var(--gray);
        font-size: 0.875rem;
        transition: var(--transition);
    }

        .header-actions a:hover {
            color: var(--primary);
        }

/* ===== NAVIGATION STYLES ===== */
.main-nav {
    position: relative;
    direction: rtl;
    padding: 4px 0px 8px 0px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
}

.nav-menu {
    margin: 0px 46px 0px 43px;
    white-space: nowrap;
    display: flex;
    display: -webkit-box;
    overflow-x: hidden;
    overflow-y: hidden;
    gap: var(--space-md);
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 1rem;
    color: var(--dark);
    font-weight: bold;
    transition: var(--transition);
}

    .nav-link:hover {
        color: var(--primary);
    }

.nav-item.active .nav-link {
    color: var(--primary);
}

/* Dropdown Menu */
.dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    box-shadow: var(--shadow);
    min-width: 200px;
    border-radius: var(--border-radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--dark);
    border-bottom: 1px solid var(--gray-light);
    transition: var(--transition);
}

    .dropdown-item:hover {
        background-color: #f8fafc;
        color: var(--primary);
    }

    .dropdown-item:last-child {
        border-bottom: none;
    }

/* Categories Menu */
.categories-menu {
    position: relative;
}

.categories-btn {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: var(--primary);
    color: white;
    font-weight: bold;
    border-radius: var(--border-radius);
    cursor: pointer;
}
.submenuOrginal {
    position: fixed !important;
}


    .categories-btn::after {
        content: "▼";
        font-size: 0.75rem;
        margin-right: 0.5rem;
    }

.categories-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    box-shadow: var(--shadow);
    min-width: 250px;
    border-radius: var(--border-radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.categories-menu:hover .categories-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.category-item {
    position: relative;
}

.category-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--dark);
    border-bottom: 1px solid var(--gray-light);
    transition: var(--transition);
}

    .category-link:hover {
        background-color: #f8fafc;
        color: var(--primary);
    }

.has-children::after {
    content: "◄";
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--gray);
}

.subcategory {
    position: absolute;
    top: 0;
    left: -250px;
    background-color: #fff;
    box-shadow: var(--shadow);
    min-width: 250px;
    border-radius: var(--border-radius);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: var(--transition);
}

.category-item:hover .subcategory {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* ===== SLIDER STYLES ===== */
.slider-container {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin: 2rem 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.slider {
    width: 100%;
    height: 100%;
    position: relative;
    direction: rtl;
}

.slide {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

    .slide.active {
        opacity: 1;
    }

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 2rem 2rem 60px 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
}

.slide-category {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.slide-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.slide-desc {
    font-size: 1rem;
    opacity: 0.9;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    bottom: 1.5rem;
    right: 50%;
    transform: translateX(50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

    .slider-dot.active {
        background-color: white;
        transform: scale(1.2);
    }

/* Slider Arrows */
.slider-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 10;
}

.slider-arrow {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

    .slider-arrow:hover {
        background-color: rgba(0, 0, 0, 0.8);
    }

/* ===== MAIN CONTENT STYLES ===== */
.main-content {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.content-left {
    flex: 1;
}

.content-right {
    width: 300px;
}

/* Section Styles */
.section {
    direction: rtl;
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--gray-light);
    padding-bottom: 0.5rem;
}

.section-title {
    font-size: 1.25rem;
    color: var(--primary);
    position: relative;
    padding-right: 1rem;
}

    .section-title::before {
        content: "";
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 20px;
        background-color: var(--primary);
        border-radius: 2px;
    }

.view-all {
    font-size: 0.875rem;
    color: var(--gray);
    transition: var(--transition);
}

    .view-all:hover {
        color: var(--primary);
    }

/* Featured News */
.featured-news {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.featured-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

    .featured-card:hover {
        transform: translateY(-5px);
    }

.featured-img {
    height: 200px;
    overflow: hidden;
}

    .featured-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: var(--transition);
    }

.featured-card:hover .featured-img img {
    transform: scale(1.05);
}

.featured-content {
    padding: 1rem;
}

.featured-category {
    display: inline-block;
    background-color: var(--primary-light);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.featured-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.featured-desc {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.featured-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--gray);
}

/* Latest News */
.latest-news {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.news-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

    .news-card:hover {
        transform: translateY(-3px);
    }

.news-img {
    height: 150px;
    overflow: hidden;
}

    .news-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: var(--transition);
    }

.news-card:hover .news-img img {
    transform: scale(1.05);
}

.news-content {
    padding: 0.75rem;
}

.news-category {
    display: inline-block;
    background-color: var(--primary-light);
    color: white;
    padding: 0.125rem 0.375rem;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.news-title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.news-meta {
    font-size: 0.75rem;
    color: var(--gray);
}

/* List News */
.list-news {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1rem;
}

.news-list-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-light);
}

    .news-list-item:last-child {
        border-bottom: none;
    }

.news-list-img {
    width: 80px;
    height: 60px;
    border-radius: var(--border-radius);
    overflow: hidden;
    flex-shrink: 0;
}

    .news-list-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.news-list-content {
    flex: 1;
}

.news-list-title {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.news-list-meta {
    font-size: 0.75rem;
    color: var(--gray);
}

/* Grid News */
.grid-news {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* Sidebar */
.sidebar-section {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1rem;
    direction:rtl;
    margin-bottom: 1.5rem;
}

.sidebar-title {
    font-size: 1.125rem;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-light);
    position: relative;
}

    .sidebar-title::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: -2px;
        width: 50px;
        height: 2px;
        background-color: var(--primary);
    }

/* Popular News */
.popular-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-light);
}

    .popular-item:last-child {
        border-bottom: none;
    }

.popular-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-light);
    opacity: 0.3;
    line-height: 1;
}

.popular-content {
    flex: 1;
}

.popular-title {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.popular-meta {
    font-size: 0.75rem;
    color: var(--gray);
}

/* Tags */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--gray-light);
    color: var(--gray);
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    transition: var(--transition);
}

    .tag:hover {
        background-color: var(--primary-light);
        color: white;
    }

/* Newsletter */
.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-family: 'Vazir', sans-serif;
}

.newsletter-btn {
    padding: 0.75rem 1rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-family: 'Vazir', sans-serif;
    transition: var(--transition);
}

    .newsletter-btn:hover {
        background-color: var(--primary-light);
    }

/* ===== FOOTER STYLES ===== */
.footer {
    background-color: var(--dark);
    color: white;
    direction: rtl;
    padding: 3rem 0 1rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    display: block;
}

.footer-desc {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

    .social-link:hover {
        background-color: var(--primary);
    }

.footer-title {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

    .footer-title::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 0;
        width: 40px;
        height: 2px;
        background-color: var(--primary);
    }

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    opacity: 0.8;
    transition: var(--transition);
}

    .footer-links a:hover {
        opacity: 1;
        color: var(--primary-light);
    }

.contact-info li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    opacity: 0.7;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1024px) {
    .featured-news {
        grid-template-columns: 1fr;
    }
    .latest-news {
        grid-template-columns: repeat(2, 1fr);  /* دو ستونه روی لپ‌تاپ و تبلت */
    }
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-news {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    .nav-menu {
        display: none;
    }
    .content-right {
        width: 100%;
        direction: rtl;
    }
    .latest-news {
        grid-template-columns: repeat(2, 1fr);  /* دو ستونه روی موبایل و تبلت */
    }
    .slider-container {
        height: 400px;
    }
    .slide-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .header-top {
        gap: 0.5rem;
    }
    .slider-container {
        height: 300px;
    }
    .slide-title {
        font-size: 1.25rem;
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
    /* .latest-news رو اینجا نذار چون میخوای توی موبایل هم دو ستونه بمونه */
}


