/**
 * الملف الرئيسي للتنسيقات - هوية جمعية المودة
 * تم التعديل ليطابق الألوان والخطوط والأسلوب البصري للموقع المرجعي.
 */

/* 1. متغيرات الألوان الخاصة بجمعية المودة */
:root {
    --almawaddah-green: #245c47;       /* الأخضر الأساسي */
    --almawaddah-gold: #c5a059;        /* الذهبي/الأصفر للروابط والأزرار */
    --almawaddah-bg-light: #f4f7f6;    /* خلفية الأقسام */
    --almawaddah-text: #333333;        /* لون النصوص */
    --almawaddah-white: #ffffff;
    --shulah-border: #e1e8e5;
    --shulah-transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* 2. تحسين الخطوط والتنسيق العام */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* يفضل رفع خط "Cairo" في القالب */
    color: var(--almawaddah-text);
    line-height: 1.7;
}

.shulah-section {
    padding: 100px 0; /* مسافات واسعة كما في موقع المودة */
}

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

/* 3. العناوين (تطابق نمط المودة) */
.shulah-title {
    margin: 0 0 40px;
    font-size: 36px;
    color: var(--almawaddah-green);
    text-align: center;
    font-weight: 700;
}

.shulah-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--almawaddah-gold);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* 4. قسم الهيرو (Hero Section) */
.shulah-hero-content {
    background: linear-gradient(rgba(36, 92, 71, 0.05), rgba(36, 92, 71, 0.05)), url('path-to-your-pattern.png');
    padding: 120px 0;
}

.hero-title {
    color: var(--almawaddah-green);
    font-weight: 900;
}

/* 5. تطوير البطاقات (Cards) - نمط المودة */
.shulah-news-card, .service-card, .shulah-card {
    background: var(--almawaddah-white);
    border: none;
    border-radius: 8px; /* زوايا أقل حدة */
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: var(--shulah-transition);
}

.shulah-news-card:hover, .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(36, 92, 71, 0.1);
}

/* 6. الأزرار (Buttons) */
.button-primary, .shulah-cta-button {
    background-color: var(--almawaddah-gold) !important;
    color: #fff !important;
    padding: 12px 35px !important;
    border-radius: 4px !important; /* أزرار مستطيلة بزوايا خفيفة */
    font-weight: 600;
    transition: var(--shulah-transition);
    border: none;
    text-decoration: none;
    display: inline-block;
}

.button-primary:hover, .shulah-cta-button:hover {
    background-color: var(--almawaddah-green) !important;
    transform: scale(1.05);
}

/* 7. شبكة الأخبار (News Grid) */
.shulah-news-grid {
    display: grid;
    gap: 30px;
}

.card-body h3 a {
    color: var(--almawaddah-green);
    font-weight: 700;
}

.card-body h3 a:hover {
    color: var(--almawaddah-gold);
}

/* 8. قسم CTA (ساهم معنا) */
.shulah-cta-inner {
    background: var(--almawaddah-green) !important;
    margin: 0 !important;
    border-radius: 0 !important; /* ممتد على عرض الصفحة */
}

/* 9. تحسين عرض الصور */
.card-image img {
    filter: brightness(0.95);
    transition: var(--shulah-transition);
}

.shulah-news-card:hover .card-image img {
    filter: brightness(1.1);
}

/* التجاوب */
@media (max-width: 768px) {
    .shulah-section { padding: 60px 0; }
    .shulah-title { font-size: 28px; }
}

/* =========================================================
   Shulah v2.1.2 - تحسين الفوتر المحافظ + المسافات والراحة البصرية العامة
   تطوير تراكمي محافظ دون حذف أو تغيير هيكل القالب
========================================================= */
:root{
    --shulah-space-xs: clamp(8px, 1vw, 12px);
    --shulah-space-sm: clamp(14px, 1.6vw, 20px);
    --shulah-space-md: clamp(22px, 2.4vw, 34px);
    --shulah-space-lg: clamp(42px, 5vw, 72px);
    --shulah-space-xl: clamp(60px, 7vw, 100px);
    --shulah-content-width: 1760px;
    --shulah-reading-width: 860px;
}

body{
    line-height: 1.9;
    letter-spacing: 0;
}

.shulah-container,
.ast-container,
.site-content .ast-container{
    max-width: var(--shulah-content-width);
    width: min(var(--shulah-content-width), calc(100% - 40px));
    margin-right: auto;
    margin-left: auto;
}

.shulah-section,
section[class*="shulah-"],
.shulah-about,
.shulah-services,
.shulah-news,
.shulah-partners,
.shulah-events,
.shulah-stats,
.shulah-board-section{
    padding-top: var(--shulah-space-xl) !important;
    padding-bottom: var(--shulah-space-xl) !important;
}

.shulah-section + .shulah-section,
section[class*="shulah-"] + section[class*="shulah-"]{
    margin-top: 0 !important;
}

.shulah-title,
.shulah-section-title,
.section-title,
.shulah-home-title{
    margin-bottom: var(--shulah-space-lg) !important;
    line-height: 1.35;
}

.shulah-title + p,
.shulah-section-title + p,
.section-title + p,
.shulah-section-desc,
.shulah-description{
    max-width: var(--shulah-reading-width);
    margin-right: auto !important;
    margin-left: auto !important;
    margin-bottom: var(--shulah-space-md) !important;
    line-height: 2;
}

.shulah-card,
.service-card,
.shulah-news-card,
.shulah-board-card,
.shulah-modern-page-card,
.shulah-event-card,
.shulah-partner-card{
    padding: clamp(22px, 2.4vw, 34px);
}

.shulah-grid,
.shulah-services-grid,
.shulah-news-grid,
.shulah-board-grid,
.shulah-events-grid,
.shulah-partners-grid{
    gap: var(--shulah-space-md) !important;
}

.shulah-card h2,
.shulah-card h3,
.service-card h2,
.service-card h3,
.shulah-news-card h2,
.shulah-news-card h3,
.shulah-board-card h2,
.shulah-board-card h3{
    line-height: 1.45;
    margin-bottom: var(--shulah-space-sm) !important;
}

.shulah-card p,
.service-card p,
.shulah-news-card p,
.shulah-board-card p,
.shulah-event-card p{
    line-height: 2;
    margin-bottom: var(--shulah-space-sm) !important;
}

.shulah-card p:last-child,
.service-card p:last-child,
.shulah-news-card p:last-child,
.shulah-board-card p:last-child,
.shulah-event-card p:last-child{
    margin-bottom: 0 !important;
}

.entry-content > * + *,
.shulah-modern-page-content > * + *{
    margin-top: var(--shulah-space-sm);
}

.shulah-modern-page-content{
    max-width: var(--shulah-reading-width);
    margin-right: auto;
    margin-left: auto;
}

.shulah-modern-page-content p{
    line-height: 2.05;
}

.shulah-modern-page-content h2,
.shulah-modern-page-content h3,
.shulah-modern-page-content h4{
    margin-top: var(--shulah-space-lg) !important;
    margin-bottom: var(--shulah-space-sm) !important;
}

.button-primary,
.shulah-cta-button,
.ast-button,
.wp-block-button__link{
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@media (max-width: 921px){
    .shulah-container,
    .ast-container,
    .site-content .ast-container{
        width: min(100% - 30px, var(--shulah-content-width));
    }

    .shulah-section,
    section[class*="shulah-"],
    .shulah-about,
    .shulah-services,
    .shulah-news,
    .shulah-partners,
    .shulah-events,
    .shulah-stats,
    .shulah-board-section{
        padding-top: clamp(46px, 8vw, 70px) !important;
        padding-bottom: clamp(46px, 8vw, 70px) !important;
    }
}

@media (max-width: 544px){
    body{
        font-size: 16px;
        line-height: 1.95;
    }

    .shulah-container,
    .ast-container,
    .site-content .ast-container{
        width: min(100% - 24px, var(--shulah-content-width));
    }

    .shulah-title,
    .shulah-section-title,
    .section-title,
    .shulah-home-title{
        margin-bottom: 28px !important;
    }

    .shulah-card,
    .service-card,
    .shulah-news-card,
    .shulah-board-card,
    .shulah-modern-page-card,
    .shulah-event-card,
    .shulah-partner-card{
        padding: 22px 18px;
    }

    .button-primary,
    .shulah-cta-button,
    .ast-button,
    .wp-block-button__link{
        width: auto;
        min-height: 48px;
        padding-right: 24px !important;
        padding-left: 24px !important;
    }
}
