@charset "utf-8";
/*
Theme Name: خبرنگار حرفه‌ای
Theme URI: 
Author: شما
Author URI: 
Description: یک قالب خبری حرفه‌ای، مدرن و کاملاً پویا
Version: 2.0
License: GPL v2 or later
Text Domain: news-pro
*/

/* فونت‌های دلخواه شما */
@font-face {
    font-family: 'IRANSans';
    src: url('fonts/IRANSans.woff2') format('woff2');
    font-weight: normal;
}

@font-face {
    font-family: 'IRANSans';
    src: url('fonts/IRANSans-Bold.woff2') format('woff2');
    font-weight: bold;
}

@font-face {
    font-family: 'IRANSans';
    src: url('fonts/IRANSans-Light.woff2') format('woff2');
    font-weight: 300;
}

/* استایل‌های اصلی */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    direction: rtl;
}

body {
    font-family: 'IRANSans', sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    background: #f4f6f9;
}

a {
    text-decoration: none;
    color: #1e2a3a;
    transition: all 0.3s ease;
}

a:hover {
    color: #e11b1b;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== هدر ===== */
.top-bar {
    background: #1e2a3a;
    color: #fff;
    padding: 8px 0;
    font-size: 12px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-menu ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.top-menu a {
    color: #ccc;
}

.top-menu a:hover {
    color: #e11b1b;
}

.main-header {
    background-image: url('images/bk-evaz.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: auto;
    background-attachment: scroll;
    background-color: #fff;  /* به جای background: #fff */
    padding: 150px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 150px;
    width: auto;
}

.banner img {
    max-width: 100%;
    border-radius: 5px;
}

.main-nav {
    background: #fff;
    border-bottom: 2px solid #e11b1b;
    box-shadow: 0 5px 10px rgba(0,0,0,0.05);
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu {
    list-style: none;
    display: flex;
}

.menu li {
    position: relative;
}

.menu a {
    display: block;
    padding: 15px 20px;
    font-weight: bold;
    color: #1e2a3a;
}

.menu a:hover, .menu .current-menu-item a {
    color: #e11b1b;
    background: #eeeeee;  /* بک‌گراند فهرست به رنگ #eeeeee */
}

/* منوی زیرمجموعه */
.menu li:hover > ul {
    display: block;
}

.menu ul {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 5px;
    z-index: 999;
}

.menu ul li {
    width: 100%;
}

.menu ul a {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.menu ul li:last-child a {
    border-bottom: none;
}

.menu ul a:hover {
    background: #eeeeee;
}

.search-box form {
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    width: 200px;
    font-family: 'IRANSans', sans-serif;
}

.search-box button {
    background: #e11b1b;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 16px;
}

.search-box button:hover {
    background: #b31515;
}

/* نوار اخبار فوری */
.breaking-news {
    background: #e11b1b;
    color: #fff;
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 2px solid #b31515;
}

.breaking-news .container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.breaking-label {
    background: #1e2a3a;
    padding: 6px 18px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    letter-spacing: 1px;
}

.breaking-ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.breaking-ticker:before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 50px;
    background: linear-gradient(to left, #e11b1b, transparent);
    z-index: 2;
    pointer-events: none;
}

.breaking-ticker:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 50px;
    background: linear-gradient(to right, #e11b1b, transparent);
    z-index: 2;
    pointer-events: none;
}

.breaking-ticker ul {
    list-style: none;
    display: flex;
    animation: ticker 40s linear infinite;
    margin: 0;
    padding: 0;
}

.breaking-ticker li {
    white-space: nowrap;
    margin-left: 40px;
    color: #fff;
}

.breaking-ticker li:before {
    content: "●";
    color: #ffd700;
    margin-left: 10px;
    font-size: 8px;
    vertical-align: middle;
}

.breaking-ticker a {
    color: #fff;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breaking-ticker a:hover {
    color: #ffd700;
    text-decoration: none;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-150%); }
}

.breaking-ticker:hover ul {
    animation-play-state: paused;
}

/* ===== بخش ویژه صفحه اصلی ===== */
.featured-section {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}

.main-slider {
    flex: 2;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.slider-container {
    position: relative;
    height: 400px;
}

.slide {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
}

.slide-caption h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.slide-caption a {
    color: #fff;
}

.slide-caption p {
    font-size: 14px;
    opacity: 0.9;
}

.slider-nav {
    position: absolute;
    bottom: 50px;
    left: 20px;
    z-index: 10;
}

.slider-nav button {
    background: rgba(255,255,255,0.3);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    margin: 0 5px;
    font-size: 18px;
    transition: all 0.3s ease;
}

.slider-nav button:hover {
    background: #e11b1b;
}

.featured-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.featured-box {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.box-title {
    font-size: 18px;
    color: #1e2a3a;
    padding-bottom: 10px;
    border-bottom: 2px solid #e11b1b;
    margin-bottom: 15px;
}

.featured-post img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.featured-post h4 {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 5px;
}

.featured-post p {
    color: #666;
    font-size: 13px;
}

/* ===== بخش‌های خبری ===== */
.news-section {
    margin-bottom: 40px;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e11b1b;
}

.section-title {
    font-size: 20px;
    color: #1e2a3a;
    position: relative;
}

.archive-link {
    background: #f4f6f9;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    color: #666;
}

.archive-link:hover {
    background: #e11b1b;
    color: #fff;
}

.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
}

.main-news {
    grid-row: span 2;
}

.main-news img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.main-news h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.main-news p {
    color: #666;
}

.news-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.news-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.news-item h5 {
    font-size: 14px;
    line-height: 1.6;
}

/* ===== گالری تصاویر ===== */
.gallery-section {
    margin-bottom: 40px;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.gallery-title {
    font-size: 24px;
    color: #1e2a3a;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 200px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
}

.gallery-caption h4 {
    font-size: 14px;
}

/* ===== پربازدیدترین‌ها ===== */
.popular-section {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.popular-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.popular-item {
    text-align: center;
}

.popular-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid #e11b1b;
}

.popular-item h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.popular-stats {
    color: #999;
    font-size: 11px;
}

/* ===== نظرسنجی ===== */
.poll-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    color: #fff;
}

.poll-title {
    font-size: 24px;
    margin-bottom: 20px;
}

.poll-options {
    margin-top: 20px;
}

.poll-option {
    margin-bottom: 15px;
}

.poll-option label {
    display: block;
    margin-bottom: 5px;
}

.poll-bar {
    background: rgba(255,255,255,0.2);
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.poll-bar-fill {
    background: #ffd700;
    height: 100%;
    border-radius: 5px;
}

/* ===== فوتر آبی نفتی ===== */
.footer {
    background: #0a2f44;  /* آبی نفتی */
    color: #e0e0e0;
    padding: 50px 0 20px;
    margin-top: 50px;
    border-top: 3px solid #e11b1b;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col .widget-title {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e11b1b;
}

.footer-col p {
    line-height: 1.8;
    color: #ccc;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: #ccc;
}

.footer-menu a:hover {
    color: #e11b1b;
    padding-right: 5px;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    margin-bottom: 10px;
    padding-right: 25px;
    position: relative;
    color: #ccc;
}

.contact-info li:before {
    content: "•";
    color: #e11b1b;
    font-size: 20px;
    position: absolute;
    right: 0;
    top: -5px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #1a4b66;
    font-size: 12px;
    color: #aaa;
}

/* ===== صفحه تک خبر ===== */
.single-article {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.single-title {
    font-size: 28px;
    color: #1e2a3a;
    margin-bottom: 15px;
    line-height: 1.4;
}

.single-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 25px;
    color: #666;
    font-size: 13px;
}

.single-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.single-thumbnail {
    margin-bottom: 25px;
}

.single-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.single-content {
    font-size: 16px;
    line-height: 1.9;
    color: #333;
}

.single-content p {
    margin-bottom: 20px;
}

.single-content h2 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: #1e2a3a;
}

.single-content h3 {
    font-size: 20px;
    margin: 25px 0 10px;
    color: #1e2a3a;
}

.single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 15px 0;
}

.single-content ul, .single-content ol {
    margin: 15px 0 15px 20px;
}

.single-content li {
    margin-bottom: 5px;
}

.single-tags {
    margin: 30px 0;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.single-tags a {
    color: #e11b1b;
}

.share-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

.share-box h4 {
    margin-bottom: 15px;
    color: #1e2a3a;
}

.share-links {
    display: flex;
    gap: 15px;
}

.share-links a {
    background: #e11b1b;
    color: #fff;
    padding: 8px 20px;
    border-radius: 5px;
    font-size: 14px;
    transition: background 0.3s ease;
}

.share-links a:hover {
    background: #b31515;
}

/* استایل نظرات */
.comments-section {
    margin-top: 40px;
}

.commentlist {
    list-style: none;
    margin: 20px 0;
}

.comment {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.comment-author img {
    border-radius: 50%;
}

.comment-author cite {
    font-weight: bold;
    color: #1e2a3a;
}

.comment-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.comment-content {
    font-size: 14px;
    line-height: 1.8;
}

.reply {
    margin-top: 10px;
}

.comment-reply-link {
    color: #e11b1b;
    font-size: 13px;
}

/* فرم ارسال نظر */
#respond {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
}

#reply-title {
    font-size: 20px;
    color: #1e2a3a;
    margin-bottom: 20px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
    font-family: inherit;
}

.comment-form textarea {
    height: 150px;
}

.comment-form input[type="submit"] {
    background: #e11b1b;
    color: #fff;
    border: none;
    cursor: pointer;
    width: auto;
    padding: 10px 30px;
    font-weight: bold;
}

.comment-form input[type="submit"]:hover {
    background: #b31515;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 992px) {
    .featured-section {
        flex-direction: column;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav .container {
        flex-direction: column;
    }
    
    .menu {
        flex-direction: column;
        width: 100%;
    }
    
    .menu ul {
        position: static;
        display: none;
        box-shadow: none;
        padding-right: 20px;
    }
    
    .menu li:hover > ul {
        display: none;
    }
    
    .menu li.menu-item-has-children > a:after {
        content: "▼";
        font-size: 10px;
        margin-right: 5px;
    }
    
    .search-box {
        width: 100%;
        padding: 10px;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .breaking-news .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .breaking-ticker ul {
        animation: ticker 25s linear infinite;
    }
    
    @keyframes ticker {
        0% { transform: translateX(100%); }
        100% { transform: translateX(-300%); }
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .popular-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
    }
    
    .single-article {
        padding: 20px;
    }
    
    .single-title {
        font-size: 22px;
    }
    
    .single-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .share-links {
        flex-direction: column;
    }
    
    .share-links a {
        text-align: center;
    }
}
/* ===== صفحه آرشیو ===== */
.archive-header {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-right: 4px solid #e11b1b;
}

.archive-title {
    font-size: 26px;
    color: #1e2a3a;
    margin-bottom: 10px;
}

.archive-description {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 30px 0;
}

.archive-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.archive-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.archive-thumb {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.archive-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.archive-item:hover .archive-thumb img {
    transform: scale(1.05);
}

.archive-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.archive-post-title {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.archive-post-title a {
    color: #1e2a3a;
}

.archive-post-title a:hover {
    color: #e11b1b;
}

.archive-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    color: #888;
    font-size: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.archive-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.archive-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
    flex: 1;
}

.read-more {
    align-self: flex-start;
    background: #e11b1b;
    color: #fff;
    padding: 8px 20px;
    border-radius: 5px;
    font-size: 13px;
    transition: background 0.3s ease;
    display: inline-block;
}

.read-more:hover {
    background: #b31515;
    color: #fff;
}

/* ===== صفحه‌بندی ===== */
.pagination {
    grid-column: 1 / -1;
    margin: 40px 0;
    text-align: center;
}

.pagination ul {
    display: inline-flex;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination li {
    display: inline-block;
}

.pagination a, .pagination span {
    display: block;
    padding: 8px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #333;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #e11b1b;
    color: #fff;
    border-color: #e11b1b;
}

.pagination .current {
    background: #e11b1b;
    color: #fff;
    border-color: #e11b1b;
}

/* ===== گالری ===== */
.gallery-page-header {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.gallery-page-title {
    font-size: 32px;
    color: #1e2a3a;
    margin-bottom: 15px;
}

.gallery-page-description {
    color: #666;
    font-size: 15px;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.filter-btn {
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'IRANSans', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #e11b1b;
    color: #fff;
    border-color: #e11b1b;
}

.gallery-masonry {
    column-count: 3;
    column-gap: 20px;
    margin: 30px 0;
}

.gallery-masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.gallery-masonry-item:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.gallery-masonry-item a {
    display: block;
    position: relative;
}

.gallery-masonry-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-item-caption {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-masonry-item:hover .gallery-item-caption {
    opacity: 1;
}

.gallery-item-caption h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.gallery-item-caption p {
    font-size: 13px;
    opacity: 0.9;
}

/* ===== لایت‌باکس ===== */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    padding: 40px;
    box-sizing: border-box;
}

.lightbox-content {
    display: block;
    max-width: 90%;
    max-height: 80%;
    margin: auto;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border: 3px solid #fff;
    border-radius: 10px;
}

#lightbox-caption {
    color: #fff;
    text-align: center;
    padding: 15px;
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    font-size: 16px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #e11b1b;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    padding: 20px;
    transition: background 0.3s ease;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(225, 27, 27, 0.5);
    border-radius: 5px;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 992px) {
    .archive-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-masonry {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .archive-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .gallery-masonry {
        column-count: 1;
    }
    
    .lightbox-prev,
    .lightbox-next {
        font-size: 30px;
        padding: 10px;
    }
}
/* ===== انجمن شبیه واتساپ - مدرن و جمع‌وجور ===== */

#bbpress-forums {
    font-family: inherit;
    font-size: 14px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* حذف حاشیه‌های اضافی */
#bbpress-forums ul,
#bbpress-forums li {
    background: transparent !important;
}

/* ===== موضوعات (مثل چت‌ها) ===== */
#bbpress-forums li.bbp-forum-info,
#bbpress-forums li.bbp-topic-title {
    width: 55% !important;
}

#bbpress-forums li.bbp-forum-topic-count,
#bbpress-forums li.bbp-topic-voice-count {
    width: 10% !important;
    color: #666;
    font-size: 12px;
}

#bbpress-forums li.bbp-forum-reply-count,
#bbpress-forums li.bbp-topic-reply-count {
    width: 10% !important;
    background: #f0f2f5;
    border-radius: 20px;
    padding: 2px 0;
    color: #1e2a3a;
    font-size: 12px;
    font-weight: bold;
}

#bbpress-forums li.bbp-forum-freshness,
#bbpress-forums li.bbp-topic-freshness {
    width: 25% !important;
    color: #666;
    font-size: 12px;
}

/* عنوان انجمن‌ها */
#bbpress-forums a.bbp-forum-title,
#bbpress-forums a.bbp-topic-permalink {
    font-size: 15px;
    font-weight: 500;
    color: #1e2a3a;
    transition: color 0.2s;
}

#bbpress-forums a.bbp-forum-title:hover,
#bbpress-forums a.bbp-topic-permalink:hover {
    color: #e11b1b;
}

/* توضیحات انجمن */
#bbpress-forums .bbp-forum-content {
    font-size: 12px;
    color: #666;
    margin-top: 3px;
}

/* ===== بخش پاسخ‌ها (شبیه چت) ===== */
#bbpress-forums ul.bbp-replies {
    border: none;
    margin-bottom: 20px;
}

#bbpress-forums .bbp-replies .bbp-header {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 8px 8px 0 0;
    font-size: 13px;
    color: #1e2a3a;
    border-bottom: 1px solid #eee;
}

#bbpress-forums .bbp-replies .bbp-body {
    padding: 0;
}

/* هر پاسخ مثل یه پیام واتساپ */
#bbpress-forums div.bbp-reply-author {
    width: 80px !important;
    text-align: center;
    padding: 15px 0;
}

#bbpress-forums div.bbp-reply-content {
    margin-right: 100px !important;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 18px 18px 18px 4px;
    margin-bottom: 15px;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* پیام خود کاربر (متمایز) */
#bbpress-forums .bbp-reply-content.bbp-user-content {
    background: #e3f2fd;
    border-radius: 18px 18px 4px 18px;
}

/* آواتار */
#bbpress-forums div.bbp-reply-author img.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* نام نویسنده */
#bbpress-forums div.bbp-reply-author a.bbp-author-name {
    font-size: 12px;
    color: #1e2a3a;
    display: block;
    margin-top: 5px;
    font-weight: 500;
}

/* نقش کاربر */
#bbpress-forums div.bbp-reply-author .bbp-author-role {
    font-size: 10px;
    color: #888;
    background: #f0f0f0;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 3px;
}

/* تاریخ پیام */
#bbpress-forums .bbp-reply-post-date {
    font-size: 10px;
    color: #999;
    position: absolute;
    bottom: 5px;
    left: 15px;
}

/* شماره پیام (مخفی بشه) */
#bbpress-forums .bbp-reply-permalink {
    display: none;
}

/* دکمه‌های مدیریتی (کوچیک و نامحسوس) */
#bbpress-forums .bbp-admin-links {
    position: absolute;
    top: 5px;
    left: 15px;
    opacity: 0.3;
    transition: opacity 0.2s;
}

#bbpress-forums .bbp-reply-content:hover .bbp-admin-links {
    opacity: 1;
}

#bbpress-forums .bbp-admin-links a {
    font-size: 10px !important;
    color: #999 !important;
    padding: 0 3px;
}

/* ===== فرم ارسال پاسخ (مثل واتساپ) ===== */
#bbpress-forums .bbp-reply-form {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #eee;
}

#bbpress-forums .bbp-reply-form legend {
    font-size: 15px;
    font-weight: 500;
    color: #1e2a3a;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

/* ویرایشگر */
#bbpress-forums .bbp-the-content-wrapper {
    border: 1px solid #ddd;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 15px;
}

#bbpress-forums .wp-editor-container {
    border: none;
}

#bbpress-forums .mce-tinymce {
    border: none !important;
    border-radius: 24px !important;
}

/* نوار ابزار ویرایشگر (مخفی بشه تا ساده بشه) */
#bbpress-forums .mce-toolbar-grp {
    background: #f8f9fa !important;
    border-bottom: 1px solid #eee;
}

/* دکمه ارسال (مثل واتساپ) */
#bbpress-forums .bbp-submit-wrapper {
    text-align: left;
}

#bbpress-forums #bbp_reply_submit {
    background: #e11b1b;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

#bbpress-forums #bbp_reply_submit:hover {
    background: #b31515;
}

/* فیلد برچسب‌ها */
#bbpress_forums input[type="text"]#bbp_topic_tags {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    margin: 10px 0;
    font-family: inherit;
}

/* ===== صفحه‌بندی (کوچیک و نامحسوس) ===== */
#bbpress-forums .bbp-pagination {
    font-size: 12px;
    color: #666;
    margin: 10px 0;
}

#bbpress-forums .bbp-pagination-links a,
#bbpress-forums .bbp-pagination-links span {
    border: none;
    background: #f0f2f5;
    color: #1e2a3a;
    padding: 5px 10px;
    border-radius: 20px;
    margin: 0 2px;
    font-size: 11px;
}

#bbpress-forums .bbp-pagination-links span.current {
    background: #e11b1b;
    color: #fff;
}

/* ===== پیام‌های اطلاع‌رسانی (شبیه نوتیف) ===== */
#bbpress-forums .bbp-template-notice {
    background: #f8f9fa;
    border: none;
    border-radius: 12px;
    padding: 12px 18px;
    color: #1e2a3a;
    font-size: 13px;
    margin: 15px 0;
}

#bbpress-forums .bbp-template-notice.info {
    background: #e3f2fd;
    border-right: 3px solid #2196f3;
}

/* ===== فونت یکنواخت ===== */
#bbpress-forums,
#bbpress-forums * {
    font-family: inherit;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 768px) {
    #bbpress-forums div.bbp-reply-author {
        width: 60px !important;
    }
    
    #bbpress-forums div.bbp-reply-content {
        margin-right: 75px !important;
        padding: 15px;
    }
    
    #bbpress-forums div.bbp-reply-author img.avatar {
        width: 40px;
        height: 40px;
    }
    
    #bbpress-forums .bbp-reply-post-date {
        position: static;
        display: block;
        margin-top: 8px;
        text-align: left;
    }
}
/* ===== رفع مشکل آیکون‌های ویرایشگر ===== */

/* اطمینان از لود شدن فونت آیکون‌ها */
@font-face {
  font-family: 'dashicons';
  src: url('fonts/dashicons.eot');
  src: url('fonts/dashicons.eot?#iefix') format('embedded-opentype'),
       url('fonts/dashicons.woff') format('woff'),
       url('fonts/dashicons.ttf') format('truetype'),
       url('fonts/dashicons.svg#dashicons') format('svg');
  font-weight: normal;
  font-style: normal;
}

/* بازگردانی اندازه و رنگ آیکون‌ها */
.mce-ico,
.wp-media-buttons-icon,
.dashicons {
    font-family: 'dashicons', 'dashicons' !important;
    font-size: 20px !important;
    width: 20px !important;
    height: 20px !important;
    line-height: 1 !important;
    speak: none;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* رفع مشکل آیکون‌های نوار ابزار */
.mce-btn i.mce-ico {
    font-size: 20px !important;
    color: #555 !important;
}

.mce-btn:hover i.mce-ico {
    color: #e11b1b !important;
}

/* رفع مشکل آیکون‌های Quicktags */
.quicktags-toolbar .ed_button {
    font-family: 'dashicons', 'dashicons' !important;
    font-size: 18px !important;
    padding: 4px 8px !important;
    color: #555 !important;
    background: #f5f5f5 !important;
    border: 1px solid #ddd !important;
    border-radius: 3px !important;
    margin: 2px !important;
}

.quicktags-toolbar .ed_button:hover {
    background: #e11b1b !important;
    color: #fff !important;
    border-color: #e11b1b !important;
}

/* رفع مشکل آیکون‌های خاص */
i.mce-i-bold:before {
    content: "\f200" !important;
}
i.mce-i-italic:before {
    content: "\f201" !important;
}
i.mce-i-bullist:before {
    content: "\f203" !important;
}
i.mce-i-numlist:before {
    content: "\f204" !important;
}
i.mce-i-blockquote:before {
    content: "\f205" !important;
}
i.mce-i-alignleft:before {
    content: "\f206" !important;
}
i.mce-i-aligncenter:before {
    content: "\f207" !important;
}
i.mce-i-alignright:before {
    content: "\f208" !important;
}
i.mce-i-link:before {
    content: "\f103" !important;
}
i.mce-i-unlink:before {
    content: "\f225" !important;
}
i.mce-i-wp_more:before {
    content: "\f209" !important;
}
i.mce-i-fullscreen:before {
    content: "\f211" !important;
}
i.mce-i-wp_adv:before {
    content: "\f212" !important;
}
i.mce-i-undo:before {
    content: "\f171" !important;
}
i.mce-i-redo:before {
    content: "\f172" !important;
}
i.mce-i-strikethrough:before {
    content: "\f224" !important;
}
i.mce-i-hr:before {
    content: "\f460" !important;
}
i.mce-i-forecolor:before {
    content: "\f215" !important;
}
i.mce-i-pastetext:before {
    content: "\f217" !important;
}
i.mce-i-removeformat:before {
    content: "\f218" !important;
}
i.mce-i-charmap:before {
    content: "\f220" !important;
}
i.mce-i-outdent:before {
    content: "\f221" !important;
}
i.mce-i-indent:before {
    content: "\f222" !important;
}