/*
Theme Name: Yasnama
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: قالب اختصاصی Yasnama ساخته شده با Bootstrap
Version: 1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: yasnama
*/
/* ===============================
   Yasnama News Navbar Style
================================ */
@font-face {
	font-family: 'Yekan';
	src: url( '/files/Yekan.eot' );
	src: url( '/files/Yekan.eot?#iefix' ) format( 'embedded-opentype' ),
		url( '/files/Yekan.woff2' ) format( 'woff2' ),
		url( '/files/Yekan.woff' ) format( 'woff' ),
		url( '/files/Yekan.ttf' ) format( 'truetype' ),
		url( '/files/Yekan.svg#Yekan' ) format( 'svg' );
	font-weight: normal;
	font-style: normal;
}
/* تنظیم کلی RTL */
body {
    	background-color: #e9ecef !important;
    font-family: 'Yekan', sans-serif !important;
    direction: rtl;
    text-align: right;
}

/* هدر لوگو */
.site-logo h1 {
    font-weight: 700;
    color: #222;
}
/* ===========================
   Yasnama Professional Navbar
=========================== */

.yasnama-navbar {
    background: linear-gradient(90deg, #74417d 0%, #2c003b 100%);;
    padding: 0;
    border-top: 3px solid #c9008a;
}

/* آیتم‌های اصلی */
.yasnama-navbar .navbar-nav .nav-item {
    position: relative;
}

.yasnama-navbar .navbar-nav .nav-link {
    color: #fff;
    padding: 10px 9px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* افکت خط زیر منو */
.yasnama-navbar .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 0;
    height: 3px;
    background: #e10600;
    transition: all 0.3s ease;
}

.yasnama-navbar .navbar-nav .nav-link:hover::after {
    width: 100%;
    right: 0;
}

/* هاور */
.yasnama-navbar .navbar-nav .nav-link:hover {
    color: #fff;
}

/* آیتم فعال */
.yasnama-navbar .current-menu-item > a,
.yasnama-navbar .current_page_item > a {
    color: #fff !important;
}

.yasnama-navbar .current-menu-item > a::after,
.yasnama-navbar .current_page_item > a::after {
    width: 100%;
    right: 0;
}

/* Dropdown */
.yasnama-navbar .dropdown-menu {
    border-radius: 0;
    border: none;
    margin-top: 0;
    text-align: right;
}

.yasnama-navbar .dropdown-item {
    padding: 10px 20px;
    font-size: 14px;
    transition: 0.2s;
}

.yasnama-navbar .dropdown-item:hover {
    background-color: #f5f5f5;
}

/* موبایل */
@media (max-width: 991px) {

    .yasnama-navbar .navbar-nav {
        background: #111;
        padding: 10px;
    }

    .yasnama-navbar .navbar-nav .nav-link {
        padding: 12px;
    }

}

.main-thumb img {border-radius: 8px;
    border: 4px solid #dddddd;}
.editor-box {
    background: #f8f9fa;
    border-radius: 10px;
}

/* ===== عنوان انتخاب سردبیر ===== */

.editor-heading .heading-icon {
    width: 8px;
    height: 8px;
    background: #6f42c1;
    border-radius: 50%;
}

/* ===== لیست ===== */

.editor-list .editor-item {
    position: relative;
    padding: 7px 0;
    overflow: hidden;
}
.list-unstyled  {padding-right: 0;}
/* خط خاکستری پیش‌فرض */
.editor-list .editor-item::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 1px;
    background: #e4e6eb;
}

/* ✨ خط بنفش انیمیشنی */
.editor-list .editor-item::before {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;          /* مهم برای RTL */
    width: 0;
    height: 2px;
    background: #6f42c1;
    transition: width 0.4s ease;
}

/* هنگام hover خط از راست به چپ کش می‌آید */
.editor-list .editor-item:hover::before {
    width: 100%;
}

/* لینک داخلی */
.editor-list .editor-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #333;
}

/* عنوان */
.editor-list .title {
    flex: 1;
    margin-right: 12px;
    transition: 0.35s ease;
}

/* شماره */
.editor-list .number {
    background: #e9ecef;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #666;
    transition: 0.35s ease;
}



/* ✨ افکت hover حرفه‌ای */
.editor-list .editor-item:hover .title {
    color: #6f42c1;
    transform: translateX(-8px);
}

.editor-list .editor-item:hover .number {
    background: #6f42c1;
    color: #fff;
    
}
.editor-list .number {
    min-width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
    transition: 0.35s ease;
}

.editor-heading {
    text-align: right;
    position: relative;
}

.heading-line {
    display: block;
    width: 100px;
    height: 4px;
    background: #6f42c1;
    border-radius: 3px;
    margin-bottom: 8px;
}

.main-title {
   
    font-size: 17px;
    font-weight: 700;

    text-decoration: none !important;
    color: #111;
    transition: 0.3s;
}

.main-title:hover {
    color: #6f42c1;
}

.featured-circle {
    border: 4px #cdcdcd solid !important;
    width: 200px;      /* fixed width */
    height: 200px;     /* fixed height */
    object-fit: cover; /* ensures the image fills the circle without distortion */
}
.featured-circle:hover {border: 4px #d7b6df solid !important;}
@media (max-width: 768px) {
    .featured-circle {
        width: 120px;
        height: 120px;
    }
}
@media (max-width: 991px) { /* تبلت */
    .featured-circle {
        width: 130px;
        height: 130px;
    }
}
.send-article { border-radius: 5px;background-color: #430e6d; color: #cdcdcd;}
.send-article-card:hover {
    background-color: #430e6d; /* رنگ پس‌زمینه هنگام هاور */
    transform: translateY(-5px); /* کمی بالا رفتن کارت */
    box-shadow: 0 8px 20px rgba(0,0,0,0.2); /* سایه زیبا */
}

/* CSS ساده و حرفه‌ای برای صفحه مقاله */
.article-container {
    margin: 50px auto;
    background-color: #ffffff;
    padding: 15px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-title {
    font-size: 2rem;
    padding-bottom: 20px;
    text-align: center;
    color: #0d6efd;
    border-bottom:#c1c1c1 2px solid;
}
.article-content {
    font-size: 1.1rem;
    color: #343a40;
    text-align: justify;
    line-height: 1.8;
}
.article-content a {
    color: #0d6efd;
    text-decoration: none;
}
.article-content a:hover {
    text-decoration: underline;
}
footer {border-top: 3px solid #c9008a;}