/* ============================================
   📰 اسلایدر اخبار - news-slider.css
   تم سورمه‌ای تیره و سفید
   ============================================ */

/* ==========================================
   📦 بخش اصلی اخبار
========================================== */
.news-section {
    padding: 40px 0 60px;
    background: #f8f9fc;
    position: relative;
    overflow: hidden;
}

/* ==========================================
   🏷️ هدر اخبار
========================================== */
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto 30px;
    padding: 0 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.news-header-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.news-badge {
    font-size: 12px;
    font-weight: 600;
    color: #0f1a2c;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.7;
}

.news-title {
    font-size: 28px;
    font-weight: 700;
    color: #0f1a2c;
    margin: 0;
}

.news-title .gold-text {
    background: linear-gradient(135deg, #0f1a2c, #1a2a45);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.news-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: transparent;
    color: #0f1a2c;
    border: 1px solid rgba(15, 26, 44, 0.12);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.news-view-all:hover {
    background: #0f1a2c;
    color: #ffffff;
    border-color: #0f1a2c;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 26, 44, 0.15);
}

.news-view-all i {
    transition: transform 0.3s ease;
}

.news-view-all:hover i {
    transform: translateX(-3px);
}

/* ==========================================
   🎠 اسلایدر
========================================== */
.news-slider-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

.newsSwiper {
    overflow: hidden;
    padding: 10px 5px 35px;
}

/* ==========================================
   🃏 کارت خبر
========================================== */
.news-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(15, 26, 44, 0.06);
    transition: all 0.4s ease;
    box-shadow: 0 2px 8px rgba(15, 26, 44, 0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: #0f1a2c;
    box-shadow: 0 8px 30px rgba(15, 26, 44, 0.08);
}

.news-card-image {
    position: relative;
    overflow: hidden;
    padding-top: 60%;
    background: #e8ecf2;
}

.news-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.04);
}

.news-date {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 3px 10px;
    background: rgba(15, 26, 44, 0.85);
    color: #ffffff;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.news-card-body {
    padding: 14px 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.news-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f1a2c;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-excerpt {
    font-size: 13px;
    color: rgba(15, 26, 44, 0.5);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #0f1a2c;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    width: fit-content;
}

.news-read-more:hover {
    border-bottom-color: #0f1a2c;
    gap: 8px;
    color: #0f1a2c;
}

.news-read-more i {
    transition: transform 0.3s ease;
}

.news-read-more:hover i {
    transform: translateX(-3px);
}

/* ==========================================
   🃏 کارت مشاهده بیشتر
========================================== */
.news-card-more {
    background: linear-gradient(135deg, #0f1a2c, #1a2a45);
    border-color: #0f1a2c;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 280px;
}

.news-card-more:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(15, 26, 44, 0.2);
}

.news-more-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #ffffff;
    text-decoration: none;
    padding: 20px;
    width: 100%;
    height: 100%;
}

.news-more-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.4s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.news-card-more:hover .news-more-icon {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.news-more-link h3 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 4px 0 0 0;
    line-height: 1.3;
}

.news-more-count {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

/* ==========================================
   🎯 دکمه‌های ناوبری Swiper
========================================== */
.swiper-button-next,
.swiper-button-prev {
    width: 36px;
    height: 36px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(15, 26, 44, 0.06);
    border: 1px solid rgba(15, 26, 44, 0.06);
    transition: all 0.3s ease;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 14px;
    color: #0f1a2c;
    font-weight: 700;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #0f1a2c;
    border-color: #0f1a2c;
    box-shadow: 0 8px 25px rgba(15, 26, 44, 0.15);
}

.swiper-button-next:hover::after,
.swiper-button-prev:hover::after {
    color: #ffffff;
}

.swiper-button-next {
    right: -6px;
}

.swiper-button-prev {
    left: -6px;
}

/* ==========================================
   ⏹️ Pagination
========================================== */
.swiper-pagination {
    position: relative;
    margin-top: 14px;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(15, 26, 44, 0.08);
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #0f1a2c;
    width: 22px;
    border-radius: 4px;
}

/* ==========================================
   📱 ریسپانسیو
========================================== */
@media (max-width: 768px) {
    .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .news-title {
        font-size: 22px;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
    
    .news-card-more {
        min-height: 220px;
    }
    
    .news-more-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .news-more-link h3 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .news-section {
        padding: 20px 0 40px;
    }
    
    .news-title {
        font-size: 20px;
    }
    
    .news-card-title {
        font-size: 14px;
    }
    
    .news-card-excerpt {
        font-size: 12px;
    }
    
    .news-card-body {
        padding: 12px 14px 16px;
    }
}

/* ============================================
   📰 همه اخبار - all-news.css
   تم سورمه‌ای تیره و سفید
   ============================================ */

/* ==========================================
   🍞 Breadcrumb
========================================== */
.breadcrumb-custom {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    font-size: 13px;
    color: rgba(15, 26, 44, 0.3);
}

.breadcrumb-custom li a {
    color: rgba(15, 26, 44, 0.4);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-custom li a:hover {
    color: #0f1a2c;
}

.breadcrumb-custom .separator {
    color: rgba(15, 26, 44, 0.1);
}

.breadcrumb-custom .active {
    color: #0f1a2c;
    font-weight: 600;
}

/* ==========================================
   🏷️ هدر صفحه
========================================== */
.all-news-header {
    margin-bottom: 30px;
    padding: 30px 35px;
    background: linear-gradient(135deg, #0f1a2c, #1a2a45);
    border-radius: 16px;
    border: 2px solid #0f1a2c;
    text-align: center;
}

.all-news-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.all-news-header h1 i {
    color: rgba(255, 255, 255, 0.6);
}

.all-news-header p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* ==========================================
   🔍 فیلترها
========================================== */
.news-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 22px;
    background: transparent;
    border: 1.5px solid rgba(15, 26, 44, 0.06);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(15, 26, 44, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: rgba(15, 26, 44, 0.2);
    color: #0f1a2c;
}

.filter-btn.active {
    background: #0f1a2c;
    border-color: #0f1a2c;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(15, 26, 44, 0.15);
}

/* ==========================================
   📋 گرید اخبار
========================================== */
.all-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* ==========================================
   🃏 کارت خبر
========================================== */
.news-item {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(15, 26, 44, 0.04);
    transition: all 0.4s ease;
    box-shadow: 0 2px 12px rgba(15, 26, 44, 0.02);
}

.news-item:hover {
    transform: translateY(-6px);
    border-color: #0f1a2c;
    box-shadow: 0 12px 40px rgba(15, 26, 44, 0.06);
}

/* ==========================================
   🖼️ تصویر کارت
========================================== */
.news-item-image {
    position: relative;
    overflow: hidden;
    padding-top: 62%;
    background: #e8ecf2;
}

.news-item-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-item:hover .news-item-image img {
    transform: scale(1.04);
}

.news-item-date {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 4px 12px;
    background: rgba(15, 26, 44, 0.85);
    color: #ffffff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.news-item-category {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 14px;
    background: #0f1a2c;
    color: #ffffff;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(15, 26, 44, 0.2);
}

/* ==========================================
   📋 بدنه کارت
========================================== */
.news-item-body {
    padding: 18px 20px 22px;
}

.news-item-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f1a2c;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.news-item-body p {
    font-size: 14px;
    color: rgba(15, 26, 44, 0.5);
    line-height: 1.7;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #0f1a2c;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}

.news-item-link:hover {
    border-bottom-color: #0f1a2c;
    gap: 10px;
}

.news-item-link i {
    transition: transform 0.3s ease;
}

.news-item-link:hover i {
    transform: translateX(-3px);
}

/* ==========================================
   📊 Pagination
========================================== */
.news-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.news-pagination button {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(15, 26, 44, 0.06);
    border-radius: 10px;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: rgba(15, 26, 44, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-pagination button:hover {
    border-color: rgba(15, 26, 44, 0.2);
    color: #0f1a2c;
}

.news-pagination button.active {
    background: #0f1a2c;
    border-color: #0f1a2c;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(15, 26, 44, 0.15);
}

/* ==========================================
   📱 ریسپانسیو
========================================== */
@media (max-width: 992px) {
    .all-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .all-news-header h1 {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .all-news-header {
        padding: 20px;
    }
    
    .all-news-header h1 {
        font-size: 22px;
    }
    
    .all-news-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .news-filters {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 6px 16px;
        font-size: 13px;
    }
    
    .news-item-body h3 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .all-news-header {
        padding: 16px;
        border-radius: 12px;
    }
    
    .all-news-header h1 {
        font-size: 20px;
    }
    
    .all-news-header p {
        font-size: 14px;
    }
    
    .news-item-body {
        padding: 14px 16px 18px;
    }
}