﻿/* ============================================================
🌷 فایل استایل یکپارچه - نوید شهدا
============================================================ */

@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/font-face.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', 'Tahoma', sans-serif;
    background: #f5f7fa;
    direction: rtl;
    color: #1a2332;
}

a {
    text-decoration: none;
}

/* ============================================================
هدر
============================================================ */
.public-header {
    background: linear-gradient(135deg, #0d1b2a, #1a2332);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

    .public-header .navbar-brand {
        font-size: 1.5rem;
        font-weight: bold;
        color: #fff;
    }

        .public-header .navbar-brand i {
            color: #ffd700;
        }

    .public-header .nav-link {
        color: rgba(255, 255, 255, 0.8) !important;
        font-size: 0.95rem;
        padding: 8px 16px;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

        .public-header .nav-link:hover {
            color: #fff !important;
            background: rgba(255, 255, 255, 0.08);
        }

        .public-header .nav-link.active {
            color: #ffd700 !important;
            background: rgba(255, 215, 0, 0.12);
        }

/* ============================================================
مینی هیرو
============================================================ */
.mini-hero {
    background: linear-gradient(135deg, #1a2332 0%, #2d3b4f 100%);
    padding: 16px 0;
    margin-bottom: 20px;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.mini-hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.mini-hero-text {
    text-align: center;
}

    .mini-hero-text h2 {
        font-size: 1.2rem;
        font-weight: 700;
        color: #fff;
        margin: 0;
    }

        .mini-hero-text h2 i {
            color: #ffd700;
        }

    .mini-hero-text p {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.7);
        margin: 0;
    }

/* ============================================================
بخش‌ها
============================================================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.header-content .section-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 0.3rem;
}

.header-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a2332;
    margin: 0;
    position: relative;
    padding-right: 1rem;
}

    .header-content h2::before {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 28px;
        background: linear-gradient(180deg, #667eea, #764ba2);
        border-radius: 4px;
    }

    .header-content h2 span {
        color: #667eea;
    }

.header-content p {
    color: #6c757d;
    margin: 0.2rem 0 0;
    font-size: 0.9rem;
}

.btn-view-all {
    background: transparent;
    border: 2px solid #e9ecef;
    color: #495057;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    text-decoration: none;
    white-space: nowrap;
}

    .btn-view-all:hover {
        background: #667eea;
        color: #fff;
        border-color: #667eea;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    }

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

    .empty-state i {
        color: #b2bec3;
        margin-bottom: 1rem;
        font-size: 3rem;
    }

    .empty-state p {
        color: #636e72;
        margin: 0;
    }

/* ============================================================
کادرهای سفید (Wrapper)
============================================================ */
.shaheeds-wrapper,
.operations-wrapper,
.newsletter-wrapper,
.news-wrapper {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.5rem 1.5rem 2rem;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 2rem;
}

    .shaheeds-wrapper:hover,
    .operations-wrapper:hover,
    .newsletter-wrapper:hover,
    .news-wrapper:hover {
        box-shadow: 0 8px 45px rgba(102, 126, 234, 0.08);
        border-color: rgba(102, 126, 234, 0.08);
    }

/* ============================================================
گریدها
============================================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.operations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.newsletter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.shaheeds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

/* ============================================================
کارت شهدا - با تصویر فیت شده در موبایل
============================================================ */
.shaheed-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

    .shaheed-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 45px rgba(0, 0, 0, 0.12);
    }

/* ===== تصویر ===== */
.shaheed-image {
    width: 100%;
    padding-bottom: 100%;
    position: relative;
    overflow: hidden;
    background: #f0f2f5;
    flex-shrink: 0;
}

    .shaheed-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        transition: transform 0.5s ease;
        background: #f0f2f5;
    }

.shaheed-card:hover .shaheed-image img {
    transform: scale(1.05);
}

.shaheed-image .no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f2f5, #dfe6e9);
    color: #b2bec3;
    font-size: 4rem;
}

/* ===== بدنه کارت ===== */
.shaheed-body {
    padding: 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.shaheed-name {
    font-size: 1.05rem;
    font-weight: bold;
    margin-bottom: 6px;
    color: #1a2332;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 48px;
    text-align: right;
}

.shaheed-info {
    font-size: 0.82rem;
    color: #6c757d;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    text-align: right;
}

    .shaheed-info i {
        width: 18px;
        color: #4a6fa5;
        flex-shrink: 0;
    }

/* ============================================================
ریسپانسیو - تصویر مستطیلی و فیت در موبایل
============================================================ */
@media (max-width: 768px) {
    .shaheed-image {
        padding-bottom: 75%;
    }
}

@media (max-width: 576px) {
    .shaheed-image {
        padding-bottom: 60%;
    }

    .shaheed-body {
        padding: 10px 12px;
    }

    .shaheed-name {
        font-size: 0.85rem;
        height: 36px;
    }

    .shaheed-info {
        font-size: 0.7rem;
    }

        .shaheed-info i {
            width: 14px;
            font-size: 0.6rem;
        }
}

/* ============================================================
کارت عملیات
============================================================ */
.operation-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.04);
    padding: 1rem;
}

    .operation-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 45px rgba(0, 0, 0, 0.12);
    }

.operation-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.operation-card-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.operation-image-wrapper {
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    background: #f0f2f5;
    position: relative;
    flex-shrink: 0;
}

.operation-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    background: #f0f2f5;
}

.operation-card:hover .operation-image {
    transform: scale(1.05);
}

.operation-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f2f5, #dfe6e9);
    color: #b2bec3;
    font-size: 3rem;
}

.operation-icon {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.operation-card:hover .operation-icon {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    transform: scale(1.05);
}

.operation-icon img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: contain;
}

.operation-icon i {
    font-size: 1.8rem;
    color: #667eea;
}

.operation-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a2332;
    margin: 0 0 0.25rem;
}

.operation-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.75rem;
    width: 100%;
    flex: 1;
}

.info-item {
    font-size: 0.8rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

    .info-item i {
        color: #667eea;
        font-size: 0.75rem;
    }

.badge-shaheed {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

/* ============================================================
کارت خبر
============================================================ */
.news-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f0f2f5;
}

    .news-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
        border-color: #4a6fa5;
    }

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f0f2f5;
}

    .news-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: transform 0.5s ease;
        background: #f0f2f5;
    }

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(102, 126, 234, 0.9);
    color: #fff;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.7rem;
}

.news-category-label {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 600;
}

.news-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f2f5, #dfe6e9);
    color: #b2bec3;
    font-size: 2.5rem;
}

.news-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .news-badges .badge {
        padding: 0.15rem 0.6rem;
        border-radius: 12px;
        font-size: 0.55rem;
        font-weight: 700;
        color: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    }

.badge-special {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.badge-featured {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.badge-image {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.news-body {
    padding: 1.25rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    color: #b2bec3;
}

    .news-meta span {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
    }

    .news-meta i {
        color: #667eea;
        font-size: 0.7rem;
    }

.news-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3436;
    margin: 0 0 0.25rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .news-title a {
        color: #2d3436;
        text-decoration: none;
        transition: color 0.3s;
    }

        .news-title a:hover {
            color: #667eea;
        }

.news-subtitle {
    font-size: 0.85rem;
    color: #636e72;
    margin: 0 0 0.5rem;
    font-weight: 400;
}

.news-summary {
    font-size: 0.9rem;
    color: #636e72;
    line-height: 1.7;
    margin: 0 0 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-footer {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

.btn-read-more {
    background: transparent;
    color: #667eea;
    border: none;
    padding: 0;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

    .btn-read-more:hover {
        color: #764ba2;
        gap: 0.6rem;
    }

    .btn-read-more i {
        font-size: 0.7rem;
        transition: transform 0.3s ease;
    }

    .btn-read-more:hover i {
        transform: translateX(-4px);
    }

/* ============================================================
کارت خبرنامه
============================================================ */
.newsletter-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f0f2f5;
}

    .newsletter-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
        border-color: #4a6fa5;
    }

.newsletter-header {
    padding: 14px 16px 10px;
    border-bottom: 1px solid #f0f2f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.newsletter-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a2332;
    margin: 0;
}

.newsletter-date {
    font-size: 0.65rem;
    color: #6c757d;
}

.newsletter-body {
    padding: 12px 16px;
}

    .newsletter-body p {
        font-size: 0.8rem;
        line-height: 1.7;
        color: #495057;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

.newsletter-footer {
    padding: 10px 16px;
    border-top: 1px solid #f0f2f5;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

    .newsletter-footer .badge {
        font-size: 0.6rem;
        padding: 4px 10px;
    }

/* ============================================================
ستون کناری
============================================================ */
.daily-sidebar {
    background: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 20px;
}

.daily-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f2f5;
    margin-bottom: 10px;
}

    .daily-sidebar-header h4 {
        font-size: 0.85rem;
        font-weight: 700;
        color: #1a2332;
        margin: 0;
    }

        .daily-sidebar-header h4 i {
            color: #ffd700;
            font-size: 0.8rem;
        }

.daily-sidebar-date {
    font-size: 0.65rem;
    color: #6c757d;
}

.daily-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.daily-sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
}

    .daily-sidebar-item:hover {
        background: #f0f2f5;
        border-color: #e9ecef;
        text-decoration: none;
        transform: translateX(-3px);
    }

.daily-sidebar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #e9ecef;
}

    .daily-sidebar-avatar img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.daily-sidebar-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    color: #adb5bd;
    font-size: 0.8rem;
}

.daily-sidebar-info {
    flex: 1;
    min-width: 0;
}

.daily-sidebar-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: #1a2332;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.daily-sidebar-meta {
    font-size: 0.55rem;
    color: #6c757d;
}

    .daily-sidebar-meta i {
        width: 10px;
        color: #4a6fa5;
        font-size: 0.5rem;
    }

.daily-sidebar-arrow {
    color: #adb5bd;
    font-size: 0.55rem;
    flex-shrink: 0;
}

.daily-sidebar-empty {
    text-align: center;
    padding: 16px 0;
    color: #adb5bd;
}

    .daily-sidebar-empty i {
        font-size: 1.5rem;
        display: block;
        margin-bottom: 4px;
    }

    .daily-sidebar-empty p {
        font-size: 0.7rem;
        margin: 0;
    }

/* ============================================================
سخن روز، وصیت‌نامه و ...
============================================================ */
.sidebar-divider {
    border-top: 1px solid #f0f2f5;
    margin: 14px 0;
}

.sidebar-will-header,
.sidebar-quote-header,
.sidebar-stats-header,
.sidebar-memory-header,
.sidebar-prayer-header {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .sidebar-will-header i,
    .sidebar-quote-header i,
    .sidebar-stats-header i,
    .sidebar-memory-header i,
    .sidebar-prayer-header i {
        color: #ffd700;
        font-size: 0.8rem;
    }

.sidebar-will-text {
    font-size: 0.8rem;
    color: #1a2332;
    line-height: 1.7;
    margin: 4px 0;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-will-author {
    font-size: 0.65rem;
    color: #4a6fa5;
    text-decoration: none;
    display: block;
    text-align: left;
    margin-top: 2px;
}

    .sidebar-will-author:hover {
        color: #2d4a6a;
    }

.sidebar-quote-text {
    font-size: 0.8rem;
    color: #1a2332;
    line-height: 1.7;
    margin: 4px 0;
}

.sidebar-quote-source {
    font-size: 0.65rem;
    color: #6c757d;
    display: block;
    text-align: left;
    margin-top: 2px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 0.75rem;
    color: #495057;
    border-bottom: 1px solid #f5f6f8;
}

    .stat-row:last-child {
        border-bottom: none;
    }

.stat-value {
    font-weight: 600;
    color: #1a2332;
}

.sidebar-memory-text {
    font-size: 0.8rem;
    color: #1a2332;
    line-height: 1.7;
    margin: 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-memory-author {
    font-size: 0.65rem;
    color: #6c757d;
    display: block;
    text-align: left;
    margin-top: 2px;
}

.sidebar-prayer-text {
    font-size: 0.85rem;
    color: #1a2332;
    padding: 6px 0;
    font-weight: 500;
}

.sidebar-prayer-btn {
    width: 100%;
    padding: 8px 16px;
    background: linear-gradient(135deg, #2d7d46, #1a5a32);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazir', 'Tahoma', sans-serif;
}

    .sidebar-prayer-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(45, 125, 70, 0.35);
    }

.prayer-count {
    margin-top: 8px;
    font-size: 0.65rem;
    color: #6c757d;
}

    .prayer-count i {
        color: #e74c3c;
    }

/* ============================================================
فوتر
============================================================ */
.public-footer {
    background: #1a2332;
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

    .public-footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #667eea, #764ba2, #ffd700);
    }

    .public-footer h5 {
        color: #fff;
        font-weight: 700;
        font-size: 1.1rem;
        margin-bottom: 1.2rem;
        padding-bottom: 0.5rem;
        position: relative;
    }

        .public-footer h5::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 35px;
            height: 2px;
            background: linear-gradient(90deg, #667eea, #764ba2);
            border-radius: 10px;
        }

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 0.5rem;
    }

    .footer-links a {
        color: rgba(255, 255, 255, 0.5);
        text-decoration: none;
        font-size: 0.85rem;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
    }

        .footer-links a:hover {
            color: #fff;
            padding-right: 5px;
        }

.social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

    .social-icon:hover {
        transform: translateY(-3px);
        color: #fff;
    }

    .social-icon.telegram:hover {
        background: #0088cc;
    }

    .social-icon.instagram:hover {
        background: #e4405f;
    }

    .social-icon.whatsapp:hover {
        background: #25d366;
    }

    .social-icon.youtube:hover {
        background: #ff0000;
    }

    .social-icon.aparat:hover {
        background: #e30613;
    }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.footer-bottom-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

.footer-heart i {
    color: #e74c3c;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* ============================================================
صفحات جزئیات
============================================================ */
.shaheed-detail-image {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    text-align: center;
}

    .shaheed-detail-image img {
        max-width: 100%;
        border-radius: 12px;
        object-fit: contain;
    }

    .shaheed-detail-image .no-image-big {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 300px;
        background: #e9ecef;
        border-radius: 12px;
        color: #adb5bd;
    }

.operation-detail-image {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    text-align: center;
}

    .operation-detail-image img {
        max-width: 100%;
        border-radius: 12px;
        object-fit: contain;
    }

    .operation-detail-image .no-image-big {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 250px;
        background: #e9ecef;
        border-radius: 12px;
        color: #adb5bd;
    }

.shaheed-mini-card {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

    .shaheed-mini-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    }

.shaheed-mini-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 8px;
    background: #e9ecef;
}

    .shaheed-mini-avatar img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.mini-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    color: #adb5bd;
    font-size: 1.5rem;
}

.shaheed-mini-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: #1a2332;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================
جستجو
============================================================ */
.search-header {
    text-align: center;
    margin-bottom: 30px;
}

    .search-header h2 {
        font-size: 2rem;
        font-weight: 700;
        color: #1a2332;
    }

        .search-header h2 i {
            color: #4a6fa5;
        }

    .search-header p {
        color: #6c757d;
        font-size: 0.95rem;
    }

.search-box-modern {
    background: #fff;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: #f5f7fa;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

    .search-input-wrapper:focus-within {
        border-color: #4a6fa5;
        background: #fff;
        box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
    }

.search-icon {
    padding: 0 14px 0 4px;
    color: #adb5bd;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 0;
    font-size: 0.9rem;
    color: #1a2332;
    outline: none;
    font-family: 'Vazir', 'Tahoma', sans-serif;
}

    .search-input::placeholder {
        color: #adb5bd;
        font-size: 0.85rem;
    }

.search-submit {
    background: linear-gradient(135deg, #4a6fa5, #345a8a);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.85rem;
    margin: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Vazir', 'Tahoma', sans-serif;
    white-space: nowrap;
}

    .search-submit:hover {
        background: linear-gradient(135deg, #345a8a, #2a4a70);
        transform: translateY(-2px);
        box-shadow: 0 4px 20px rgba(74, 111, 165, 0.3);
    }

.filter-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .filter-item label {
        font-size: 0.75rem;
        font-weight: 500;
        color: #6c757d;
        display: flex;
        align-items: center;
        gap: 5px;
    }

        .filter-item label i {
            color: #4a6fa5;
            font-size: 0.8rem;
        }

.filter-select {
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    background: #f8f9fa;
    font-size: 0.8rem;
    color: #1a2332;
    transition: all 0.3s ease;
    font-family: 'Vazir', 'Tahoma', sans-serif;
    cursor: pointer;
}

    .filter-select:focus {
        border-color: #4a6fa5;
        background: #fff;
        outline: none;
        box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
    }

.search-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-search {
    padding: 8px 28px;
    background: linear-gradient(135deg, #4a6fa5, #345a8a);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Vazir', 'Tahoma', sans-serif;
}

    .btn-search:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 20px rgba(74, 111, 165, 0.3);
    }

.btn-reset {
    padding: 8px 24px;
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-family: 'Vazir', 'Tahoma', sans-serif;
}

    .btn-reset:hover {
        background: #e9ecef;
        color: #1a2332;
    }

.search-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    flex-wrap: wrap;
}

.stats-badge {
    background: linear-gradient(135deg, #4a6fa5, #345a8a);
    color: #fff;
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.stats-query {
    color: #6c757d;
    font-size: 0.9rem;
}

    .stats-query strong {
        color: #1a2332;
    }

.empty-state-modern {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: #adb5bd;
}

.empty-state-modern h4 {
    font-size: 1.2rem;
    color: #1a2332;
    margin-bottom: 8px;
}

.empty-state-modern p {
    color: #6c757d;
    margin-bottom: 16px;
}

.btn-empty-reset {
    padding: 10px 28px;
    background: #4a6fa5;
    color: #fff;
    border-radius: 12px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

    .btn-empty-reset:hover {
        background: #345a8a;
        transform: translateY(-2px);
        box-shadow: 0 4px 20px rgba(74, 111, 165, 0.3);
        color: #fff;
    }

/* ============================================================
انیمیشن‌ها
============================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shaheed-item-mobile,
.operation-item-mobile {
    animation: fadeInUp 0.4s ease both;
}

    .shaheed-item-mobile:nth-child(1) {
        animation-delay: 0.05s;
    }

    .shaheed-item-mobile:nth-child(2) {
        animation-delay: 0.1s;
    }

    .shaheed-item-mobile:nth-child(3) {
        animation-delay: 0.15s;
    }

    .shaheed-item-mobile:nth-child(4) {
        animation-delay: 0.2s;
    }

    .shaheed-item-mobile:nth-child(5) {
        animation-delay: 0.25s;
    }

/* ============================================================
موبایل
============================================================ */
@media (max-width: 992px) {
    .daily-sidebar {
        position: static;
        margin-top: 16px;
        padding: 12px 14px;
    }

    .daily-sidebar-item {
        padding: 5px 8px;
        gap: 8px;
    }

    .daily-sidebar-avatar {
        width: 28px;
        height: 28px;
    }

    .daily-sidebar-name {
        font-size: 0.65rem;
    }

    .sidebar-divider {
        margin: 10px 0;
    }

    .sidebar-will-text,
    .sidebar-quote-text,
    .sidebar-memory-text {
        font-size: 0.75rem;
    }

    .stat-row {
        font-size: 0.7rem;
        padding: 3px 0;
    }

    .sidebar-prayer-btn {
        padding: 6px 12px;
        font-size: 0.7rem;
    }

    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .operations-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .newsletter-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .public-footer .footer-desc {
        max-width: 100%;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 0.3rem;
    }

    .footer-divider {
        display: none;
    }
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .header-content h2 {
        font-size: 1.2rem;
        padding-right: 0.75rem;
    }

        .header-content h2::before {
            height: 22px;
        }

    .btn-view-all {
        align-self: flex-start;
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
    }

    .shaheeds-wrapper,
    .operations-wrapper,
    .newsletter-wrapper,
    .news-wrapper {
        padding: 1rem 1rem 1.5rem;
        border-radius: 16px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .operations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .newsletter-grid {
        grid-template-columns: 1fr;
    }

    .operation-card-inner {
        padding: 1rem;
    }

    .operation-icon {
        width: 60px;
        height: 60px;
    }

        .operation-icon i {
            font-size: 1.4rem;
        }

    .operation-name {
        font-size: 0.9rem;
    }

    .news-image {
        height: 180px;
    }

    .news-body {
        padding: 1rem 1.25rem;
    }

    .public-footer {
        padding: 2rem 0 1.5rem;
    }

        .public-footer h5 {
            margin-top: 1rem;
        }

    .social-links {
        justify-content: center;
    }

    .section-header h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .header-content h2 {
        font-size: 1rem;
        padding-right: 0.5rem;
    }

        .header-content h2::before {
            height: 18px;
            width: 3px;
        }

    .header-content p {
        font-size: 0.8rem;
    }

    .btn-view-all {
        font-size: 0.65rem;
        padding: 0.2rem 0.6rem;
    }

    .shaheeds-wrapper,
    .operations-wrapper,
    .newsletter-wrapper,
    .news-wrapper {
        padding: 0.75rem 0.75rem 1rem;
        border-radius: 12px;
    }

    .operations-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin: 0 auto;
    }

    .operation-card-inner {
        padding: 1.25rem;
    }

    .operation-icon {
        width: 65px;
        height: 65px;
    }

        .operation-icon i {
            font-size: 1.5rem;
        }

    .news-image {
        height: 160px;
    }

    .news-title {
        font-size: 0.9rem;
    }

    .news-summary {
        font-size: 0.85rem;
    }

    .news-meta {
        font-size: 0.7rem;
        gap: 0.5rem;
    }

    .mini-hero {
        padding: 12px 0;
        border-radius: 0 0 12px 12px;
    }

    .mini-hero-text h2 {
        font-size: 1rem;
    }

    .mini-hero-text p {
        font-size: 0.65rem;
    }

    .public-footer {
        padding: 1.5rem 0 1rem;
        margin-top: 2rem;
    }

        .public-footer .footer-brand h5 {
            font-size: 1.2rem;
        }
}

/* ============================================================
کارت عملیات - با تصویر مستطیلی
============================================================ */

/* ===== تصویر عملیات ===== */
.operation-image-wrapper {
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    background: #f0f2f5;
    position: relative;
}

.operation-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    background: #f0f2f5;
}

.operation-card:hover .operation-image {
    transform: scale(1.05);
}

.operation-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f2f5, #dfe6e9);
    color: #b2bec3;
    font-size: 3rem;
}

/* ============================================================
ریسپانسیو
============================================================ */
@media (max-width: 768px) {
    .operation-image-wrapper {
        height: 140px;
    }
}

@media (max-width: 576px) {
    .operation-image-wrapper {
        height: 180px;
    }
}

/* ============================================================
آلبوم خاطرات
============================================================ */
.sidebar-album {
    padding: 4px 0;
}

.sidebar-album-header {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .sidebar-album-header i {
        color: #ffd700;
        font-size: 0.8rem;
    }

.sidebar-album-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.sidebar-album-item {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
}

    .sidebar-album-item img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: transform 0.3s ease;
        background: #f0f2f5;
    }

    .sidebar-album-item:hover img {
        transform: scale(1.05);
    }

.sidebar-album-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-album-item:hover .sidebar-album-overlay {
    opacity: 1;
}

.sidebar-album-overlay i {
    color: #fff;
    font-size: 1.2rem;
}

.sidebar-album-empty {
    text-align: center;
    padding: 1rem 0;
    color: #adb5bd;
}

    .sidebar-album-empty i {
        font-size: 1.5rem;
        display: block;
        margin-bottom: 4px;
    }

    .sidebar-album-empty p {
        font-size: 0.7rem;
        margin: 0;
    }

.sidebar-album-more {
    margin-top: 6px;
}

    .sidebar-album-more .btn {
        font-size: 0.65rem;
        padding: 4px 8px;
    }

/* ============================================================
لایت‌باکس کوچک (برای آلبوم)
============================================================ */
.lightbox-small {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

    .lightbox-small.active {
        display: flex;
    }

    .lightbox-small img {
        max-width: 90%;
        max-height: 90%;
        object-fit: contain;
        border-radius: 8px;
    }

    .lightbox-small .lightbox-close-small {
        position: absolute;
        top: 20px;
        left: 30px;
        color: #fff;
        font-size: 2.5rem;
        cursor: pointer;
        transition: 0.3s;
    }

        .lightbox-small .lightbox-close-small:hover {
            transform: rotate(90deg);
        }

/* ============================================================
ریسپانسیو
============================================================ */
@media (max-width: 992px) {
    .sidebar-album-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 576px) {
    .sidebar-album-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.related-shaheeds {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.2);
}

.related-label {
    font-weight: 600;
    color: #1a2332;
    margin-left: 0.3rem;
    font-size: 0.85rem;
}

    .related-label i {
        color: #667eea;
    }

.shaheed-tag {
    background: linear-gradient(135deg, rgba(102,126,234,0.1), rgba(118,75,162,0.1));
    color: #667eea;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(102,126,234,0.15);
}

    .shaheed-tag:hover {
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(102,126,234,0.3);
        text-decoration: none;
    }

@media (max-width: 576px) {
    .related-shaheeds {
        padding: 0.5rem 0.75rem;
        gap: 0.3rem;
    }

    .shaheed-tag {
        font-size: 0.7rem;
        padding: 0.1rem 0.6rem;
    }

    .related-label {
        font-size: 0.75rem;
    }
}
