/* استایل‌های مشترک برای ماژول‌های news, publications, studies */

.module-hero {
    background: linear-gradient(135deg, #0B1F3A 0%, #1a5c6c 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
    margin-bottom: 60px;
}

.module-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

.module-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.module-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* گرید مدرن */
.modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.modern-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.modern-image {
    height: 220px;
    overflow: hidden;
}

.modern-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.modern-card:hover .modern-image img {
    transform: scale(1.05);
}

.modern-content {
    padding: 20px;
}

.modern-category {
    display: inline-block;
    background: #f0f2f5;
    color: #1a5c6c;
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.modern-content h2 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.modern-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

.modern-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    color: #888;
    font-size: 0.8rem;
}

.modern-meta span:last-child {
    color: #1a5c6c;
    font-weight: 500;
}

/* صفحه تکی */
.single-modern-page {
    padding: 60px 0;
}

.narrow-container {
    max-width: 800px;
    margin: 0 auto;
}

.single-top {
    text-align: center;
    margin-bottom: 40px;
}

.single-category {
    display: inline-block;
    background: #f0f2f5;
    color: #1a5c6c;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

.single-top h1 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.single-meta {
    color: #888;
    font-size: 0.85rem;
}

.single-image {
    margin-bottom: 40px;
    border-radius: 20px;
    overflow: hidden;
}

.single-image img {
    width: 100%;
    border-radius: 20px;
}

.single-content {
    line-height: 1.8;
    font-size: 1rem;
    color: #333;
}

.single-content h2, .single-content h3 {
    margin: 30px 0 15px;
    color: #0B1F3A;
}

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

.single-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 20px 0;
}

/* استایل گروه‌های مطالعاتی */
.studies-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 60px 0;
}

.study-modern-card {
    background: white;
    padding: 35px 25px;
    text-align: center;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.study-modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.study-modern-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.study-modern-card h2 {
    font-size: 1.3rem;
    color: #0B1F3A;
    margin-bottom: 15px;
}

.study-modern-card span {
    display: inline-block;
    color: #1a5c6c;
    font-weight: 500;
}

/* پاگینیشن */
.modern-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.modern-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f0f2f5;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.modern-pagination a.active,
.modern-pagination a:hover {
    background: #1a5c6c;
    color: white;
}

@media (max-width: 768px) {
    .module-hero h1 { font-size: 1.8rem; }
    .modern-grid { grid-template-columns: 1fr; }
    .single-top h1 { font-size: 1.5rem; }
}