/*
Theme Name: یازهرا
Theme URI: http://example.com/yazahra
Description: پوسته مذهبی یازهرا - طراحی شده برای سایت‌های مذهبی
Version: 1.0
Author: شما
Author URI: http://example.com
Text Domain: yazahra
Direction: rtl
*/

/* استایل‌های کلی */
:root {
    --primary-color: #08A69E;
    --secondary-color: #f8f8f8;
    --text-color: #333;
    --light-text: #777;
    --border-color: #e0e0e0;
    --shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'vazirmatn', Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: var(--text-color);
    line-height: 1.6;
    direction: rtl;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* آیکون برای بلوک‌ها */
.block-icon {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: url('images/icon.png') center/contain no-repeat;
    z-index: 2;
}

/* ۱. نوار بالایی */
.top-bar {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 0;
    font-size: 0.9rem;
    border-bottom: 2px solid #08A69E;
    position: relative;
}

.top-bar::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: url('images/icon.png') center/contain no-repeat;
}

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

.top-bar-date {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.date-label {
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 3px;
}

.miladi,
.shamsi {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 3px;
    font-family: 'vazirmatn', Arial;
}

.top-bar-site-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 2;
    text-align: center;
}

.site-name {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 2px;
}

.site-identity {
    font-size: 0.85rem;
    opacity: 0.9;
}

.top-bar-search {
    display: flex;
    justify-content: flex-end;
    flex: 1;
}

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

.search-form input {
    padding: 6px 12px;
    border: none;
    border-radius: 4px 0 0 4px;
    width: 180px;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.9);
}

.search-form button {
    background: #333;
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 0.85rem;
    font-weight: bold;
}

.search-form button:hover {
    background: #555;
}

/* ۲. هدر */
.header {
    background: url('images/header.jpg') center/cover no-repeat;
    padding: 40px 0;
    box-shadow: var(--shadow);
    position: relative;
    min-height: 150px;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.header::after {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: url('images/icon.png') center/contain no-repeat;
    z-index: 2;
}

.header .container {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
}

.site-info {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    width: 100%;
}

.site-title {
    font-size: 2rem;
    color: white;
    margin-bottom: 8px;
    font-weight: bold;
    line-height: 1.2;
    word-wrap: break-word;
}

.site-title a {
    color: white;
    transition: color 0.3s;
    text-decoration: none;
}

.site-title a:hover {
    color: #ffd700;
}

.site-description {
    font-size: 1rem;
    opacity: 0.9;
    font-style: italic;
    line-height: 1.3;
}

/* ۳. نوار منو */
.menu-bar {
    background: linear-gradient(to bottom, #fff, #f9f9f9);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin-top: -5px;
    position: relative;
    z-index: 1000;
}

.menu-bar::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: url('images/icon.png') center/contain no-repeat;
    z-index: 1001;
}

.menu-bar .container {
    display: flex;
    justify-content: center;
    position: relative;
    padding: 0;
}

/* دکمه همبرگر */
.menu-toggle {
    display: none;
    background: none;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 35px;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    border-radius: 4px;
}

.hamburger-line {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.main-menu {
    flex-grow: 1;
}

.main-menu-list {
    display: flex;
    height: 100%;
    justify-content: center;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
    white-space: nowrap;
    padding: 0;
    margin: 0;
    list-style: none;
    transition: all 0.3s ease;
}

.main-menu li {
    position: relative;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

.main-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    transition: all 0.3s;
    font-weight: bold;
    font-size: 0.9rem;
    border-radius: 0;
    margin: 0;
    white-space: nowrap;
    text-decoration: none;
    border-left: 1px solid var(--border-color);
}

.main-menu li:last-child a {
    border-left: none;
}

.main-menu a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* منوی زیرمجموعه */
.sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: var(--shadow);
    display: none;
    z-index: 1000;
    border: 1px solid var(--border-color);
    white-space: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sub-menu li {
    border-bottom: 1px solid var(--border-color);
    margin: 0;
}

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

.sub-menu a {
    padding: 10px 15px;
    font-weight: normal;
    margin: 0;
    border-radius: 0;
    font-size: 0.8rem;
    text-align: right;
    display: block;
    border-left: none;
}

.main-menu li:hover .sub-menu {
    display: block;
}

/* overlay برای موبایل */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* ۴. اسلایدر مناسبت‌ها */
.events-slider-bar {
    background: linear-gradient(to green, var(--primary-color), #08A69E);
    color: rgb(10, 10, 10);
    padding: 8px 0;
    margin-top: 8px;
    border-radius: 5px;
    box-shadow: var(--shadow);
    position: relative;
}

.events-slider-bar::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: url('images/icon.png') center/contain no-repeat;
    z-index: 2;
}

.events-slider-bar .container {
    display: flex;
    justify-content: center;
}

.calendar-slider {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 800px;
}

.slider-title {
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

.slider-wrapper {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    height: 24px;
}

.slider-track {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    right: 0;
    transition: transform 0.5s ease-in-out;
}

.slide {
    padding: 2px 0;
    font-size: 0.85rem;
    white-space: nowrap;
    height: 24px;
    display: flex;
    align-items: center;
}

/* ۵. بلوک حدیث */
.hadith-block {
    background: linear-gradient(to right, #16b1a9, #08A69E);
    color: white;
    padding: 12px 0;
    margin-top: 15px;
    border-radius: 5px;
    box-shadow: var(--shadow);
    position: relative;
}

.hadith-block::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: url('images/icon.png') center/contain no-repeat;
    z-index: 2;
}

.hadith-block .container {
    text-align: center;
    font-size: 1rem;
    font-style: italic;
}

/* ۶. بلوک شورت کد */
.shortcode-block {
    margin: 20px 0;
    padding: 0;
    position: relative;
}

.shortcode-block::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: url('images/icon.png') center/contain no-repeat;
    z-index: 2;
}

.shortcode-block .container {
    padding: 0;
}

/* محتوای اصلی */
.main-content-area {
    display: flex;
    margin-top: 20px;
    gap: 20px;
}

.main-content {
    flex: 3;
}

.sidebar {
    flex: 1;
}

/* استایل پست‌ها به صورت لیست معمولی */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.post {
    background-color: white;
    margin-bottom: 0;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.post:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.post::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: url('images/icon.png') center/contain no-repeat;
    z-index: 2;
}

.post-header {
    background: linear-gradient(to right, var(--primary-color), #08A69E);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-header i {
    font-size: 1.2rem;
    opacity: 0.8;
}

.post-header h2 {
    font-size: 1.3rem;
    margin: 0;
    text-align: center;
    flex-grow: 1;
}

.post-header h2 a {
    color: white;
    transition: color 0.3s;
    text-decoration: none;
}

.post-header h2 a:hover {
    color: #ffd700;
}

.post-content {
    display: flex;
    padding: 20px;
    gap: 20px;
    align-items: flex-start;
}

.post-thumbnail {
    width: 220px;
    height: 160px;
    background-color: #eee;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--border-color);
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.post:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-excerpt {
    flex-grow: 1;
}

.post-excerpt p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-color);
    font-size: 0.95rem;
}

.read-more {
    display: inline-block;
    background: linear-gradient(to right, var(--primary-color), #08A69E);
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
}

.read-more:hover {
    background: linear-gradient(to right, #08A69E, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(49, 127, 211, 0.3);
    color: white;
}

.post-meta {
    display: flex;
    padding: 12px 20px;
    background-color: var(--secondary-color);
    font-size: 0.85rem;
    color: var(--light-text);
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
}

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

/* صفحه‌بندی */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 5px;
}

.pagination a,
.pagination span {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s;
    text-decoration: none;
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .current {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* وضعیت بدون پست */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.no-posts h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.no-posts p {
    color: var(--light-text);
    margin-bottom: 20px;
    font-size: 1rem;
}

/* ویجت‌ها */
.widget {
    background-color: white;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
}

.widget::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: url('images/icon.png') center/contain no-repeat;
    z-index: 2;
}

.widget-header {
    background: linear-gradient(to right, var(--primary-color), #08A69E);
    color: white;
    padding: 12px 15px;
    font-size: 1rem;
    font-weight: bold;
}

.widget-content {
    padding: 15px;
}

.widget-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.widget-item:last-child {
    border-bottom: none;
}

/* فوتر */
.footer {
    background: #333;
    color: white;
    margin-top: 30px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: url('images/icon.png') center/contain no-repeat;
    z-index: 2;
}

.footer-widgets {
    display: flex;
    padding: 30px 0;
    gap: 20px;
}

.footer-column {
    flex: 1;
}

.footer-column h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.copyright {
    text-align: center;
    padding: 15px 0;
    background: #222;
    font-size: 0.9rem;
    color: #aaa;
}

/* استایل ویجت‌های فوتر */
.footer-widgets {
    background: #2c2c2c;
    padding: 50px 0 30px;
}

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

.footer-widget {
    color: #ccc;
}

.footer-widget-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.footer-widget p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 10px;
    padding: 5px 0;
    border-bottom: 1px solid #444;
}

.footer-widget ul li:last-child {
    border-bottom: none;
}

.footer-widget a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-widget a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

/* استایل بخش تماس */
.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.footer-contact i {
    color: var(--primary-color);
    width: 20px;
}

/* فرم خبرنامه */
.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-newsletter input {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    background: #444;
    color: white;
}

.footer-newsletter input::placeholder {
    color: #999;
}

.footer-newsletter button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.footer-newsletter button:hover {
    background: #08A69E;
}

/* نوار پایین فوتر */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #444;
    color: #999;
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #444;
    color: #ccc;
    border-radius: 50%;
    transition: all 0.3s;
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* رسپانسیو برای تبلت */
@media (max-width: 1024px) {
    .header {
        padding: 30px 0;
        min-height: 120px;
    }

    .site-title {
        font-size: 1.8rem;
    }

    .site-description {
        font-size: 0.95rem;
    }

    .main-menu a {
        padding: 10px 15px;
        font-size: 0.8rem;
    }

    .post-content {
        gap: 15px;
    }

    .post-thumbnail {
        width: 180px;
        height: 140px;
    }

    .footer-widgets-area {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* رسپانسیو برای موبایل */
@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .top-bar-date,
    .top-bar-site-info,
    .top-bar-search {
        flex: none;
        width: 100%;
        justify-content: center;
    }

    .header {
        padding: 20px 0;
        min-height: 100px;
    }

    .site-title {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }

    .site-description {
        font-size: 0.9rem;
    }

    /* منو در موبایل */
    .menu-toggle {
        display: flex;
    }

    .main-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        padding-top: 60px;
    }

    .main-menu.active {
        right: 0;
    }

    .main-menu-list {
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 0;
        height: auto;
    }

    .main-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

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

    .main-menu a {
        padding: 15px 20px;
        font-size: 0.9rem;
        margin: 0;
        border-radius: 0;
        text-align: right;
        border-left: none;
    }

    /* زیرمنو در موبایل */
    .sub-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--border-color);
        margin-top: 0;
        width: 100%;
    }

    .sub-menu.active {
        display: block;
    }

    .sub-menu a {
        padding-right: 35px;
        font-size: 0.85rem;
    }

    .menu-overlay.active {
        display: block;
    }

    /* محتوای اصلی در موبایل */
    .main-content-area {
        flex-direction: column;
    }

    .post-content {
        flex-direction: column;
    }

    .post-thumbnail {
        width: 100%;
        height: 200px;
        margin-bottom: 15px;
    }

    .post-header h2 {
        font-size: 1.1rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .post-meta span {
        font-size: 0.8rem;
    }

    .footer-widgets {
        flex-direction: column;
    }

    .calendar-slider {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .pagination a,
    .pagination span {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .footer-widgets-area {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-widgets {
        padding: 30px 0 20px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 15px 0;
        min-height: 80px;
    }

    .site-title {
        font-size: 1.3rem;
    }

    .site-description {
        font-size: 0.8rem;
    }

    .search-form input {
        width: 150px;
    }

    .main-menu {
        width: 250px;
    }

    .post-header {
        padding: 12px 15px;
    }

    .post-header h2 {
        font-size: 1rem;
    }

    .post-content {
        padding: 15px;
    }

    .post-excerpt p {
        font-size: 0.9rem;
    }
}
/* استایل صفحه اخبار ویژه */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    background: linear-gradient(135deg, var(--primary-color), #20B2AA);
    color: white;
    border-radius: 10px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.featured-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.featured-news-card {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.featured-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.news-thumbnail {
    height: 200px;
    overflow: hidden;
}

.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.featured-news-card:hover .news-thumbnail img {
    transform: scale(1.05);
}

.news-content {
    padding: 20px;
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.news-title a {
    color: var(--text-color);
    text-decoration: none;
}

.news-title a:hover {
    color: var(--primary-color);
}

.news-excerpt {
    color: var(--light-text);
    margin-bottom: 15px;
    line-height: 1.6;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.news-date {
    color: var(--light-text);
}

.read-more {
    background: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.read-more:hover {
    background: #20B2AA;
    color: white;
}

.no-featured-news {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.no-featured-news h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* رسپانسیو */
@media (max-width: 768px) {
    .featured-news-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}


/* استایل بخش فعالیت مساجد */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: linear-gradient(135deg, var(--primary-color), #20B2AA);
    color: white;
    border-radius: 15px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.mosque-activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.activity-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e8f4f4;
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.activity-header {
    padding: 20px 20px 10px;
    border-bottom: 2px solid #f0f8f8;
}

.activity-title {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
}

.activity-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.activity-title a:hover {
    color: var(--primary-color);
}

.activity-date {
    color: var(--light-text);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.activity-image {
    height: 200px;
    overflow: hidden;
}

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

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

.activity-content {
    padding: 20px;
}

.activity-excerpt {
    color: var(--light-text);
    line-height: 1.7;
    margin-bottom: 20px;
}

.activity-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f8f8;
}

.activity-mosque {
    color: var(--primary-color);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.activity-link {
    background: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.activity-link:hover {
    background: #20B2AA;
    transform: translateX(-5px);
}

.no-featured-reports,
.no-activities {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.no-activities-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.no-featured-reports h3,
.no-activities h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* رسپانسیو */
@media (max-width: 768px) {
    .mosque-activities-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        padding: 30px 20px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .activity-meta {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .activity-link {
        align-self: flex-end;
    }
}




/* استایل صفحه اصلی قابل مدیریت */
.continue-reading {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
}

.continue-reading h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.page-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.page-link {
    background: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: bold;
}

.page-link:hover {
    background: #20B2AA;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* استایل بخش‌های صفحه اصلی */
.homepage-sections {
    margin-top: 50px;
}

.homepage-features-section,
.homepage-news-section,
.homepage-custom-section {
    margin-bottom: 40px;
}

.feature-widget,
.news-widget,
.custom-widget {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.feature-title,
.news-title,
.custom-title {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

/* رسپانسیو */
@media (max-width: 768px) {
    .page-links {
        flex-direction: column;
        align-items: center;
    }

    .page-link {
        width: 100%;
        max-width: 300px;
    }

    .feature-widget,
    .news-widget,
    .custom-widget {
        padding: 20px;
    }
}