/*
Theme Name: مرصد كربلاء المقدسة - Profiles Edition
Version: 12.0
Description: ملف الستايل مفصول مع خط Noto Kufi Arabic 
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --emerald-dark: #064e3b;
    --emerald-main: #10b981;
    --gold-main: #d97706;
    --bg-main: #f8fafc;
    --bg-soft: #f1f5f9;
    --surface: #ffffff;
    --text-strong: #0f172a;
    --text-light: #64748b;
    --border: #e2e8f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Noto Kufi Arabic', sans-serif !important; 
    background-color: var(--bg-main); 
    color: var(--text-strong); 
    line-height: 1.6; 
}

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

/* --- العناوين --- */
.section-area { padding: 80px 0; }
.bg-soft { background-color: var(--bg-soft); }
.title-wrapper { text-align: center; margin-bottom: 60px; }
.subtitle { color: var(--emerald-main); font-weight: 700; font-size: 11pt; display: block; margin-bottom: 5px; }
.title-wrapper h2 { font-size: 26pt; font-weight: 800; color: var(--text-strong); margin: 0; }

.tag-label { display: inline-block; padding: 5px 15px; border-radius: 50px; font-size: 9pt; font-weight: 600; background: #e2e8f0; color: var(--text-light); margin-bottom: 15px; }
.tag-gold { background: #fef3c7; color: var(--gold-main); }
.tag-emerald { background: #d1fae5; color: var(--emerald-dark); }

/* --- أزرار الملف الشخصي --- */
.btn-profile {
    display: block; width: 100%; padding: 10px; border-radius: 12px;
    border: none; background: #f1f5f9; color: var(--text-strong);
    font-family: inherit; font-weight: 700; font-size: 10pt; cursor: pointer; transition: 0.3s;
}
.btn-profile:hover { background: var(--border); }
.btn-profile-gold { background: #fef3c7; color: var(--gold-main); }
.btn-profile-gold:hover { background: #fde68a; }
.btn-profile-emerald { background: #d1fae5; color: var(--emerald-dark); }
.btn-profile-emerald:hover { background: #a7f3d0; }

/* --- السلطة التنفيذية --- */
.exec-showcase { display: flex; justify-content: center; align-items: center; gap: 30px; }
.exec-card { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 30px 20px; text-align: center; width: 300px; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.exec-card:hover { border-color: var(--emerald-main); background-color: #fcfdfd; }
.center-gov { width: 380px; border: 2px solid var(--gold-main); transform: scale(1.05); }
.center-gov:hover { border-color: var(--gold-main); background-color: #fffbeb; }

/* --- مجلس المحافظة --- */
.council-showcase { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.members-column { flex: 1; display: flex; flex-direction: column; gap: 15px; }

/* الكبسولات القابلة للضغط */
.horizontal-pill-card {
    display: flex; align-items: center; background: var(--surface);
    border: 1px solid var(--border); border-radius: 60px;
    padding: 8px; padding-left: 25px; transition: 0.3s; cursor: pointer;
    position: relative;
}
.horizontal-pill-card:hover { border-color: var(--emerald-main); transform: translateX(-5px); background-color: #f8fafc; }

.pill-info { margin-right: 15px; text-align: right; flex: 1; }
.pill-info h4 { font-size: 11pt; font-weight: 700; margin: 0 0 2px 0; color: var(--text-strong); }
.pill-info span { font-size: 9pt; color: var(--text-light); font-weight: 500; }

.view-icon { color: var(--border); font-size: 12pt; transition: 0.3s; }
.horizontal-pill-card:hover .view-icon { color: var(--emerald-main); transform: translateX(-5px); }

.highlighted-pill { border: 2px solid var(--gold-main); background: #fffbeb; }
.highlighted-pill:hover { background-color: #fef3c7; border-color: var(--gold-main); }

.president-column { width: 350px; flex-shrink: 0; }
.president-grand-card { background: var(--surface); border-radius: 30px; padding: 40px 20px; text-align: center; border: 2px solid var(--emerald-dark); box-shadow: 0 10px 30px rgba(6, 78, 59, 0.1); }

/* --- حماية الصور المطلقة --- */
.exec-card img, .president-grand-card img, .horizontal-pill-card img, .modal-header img { border-radius: 50%; object-fit: cover; display: block; }
.exec-card img, .president-grand-card img { margin: 0 auto 15px auto; }
.img-governor { width: 180px !important; height: 180px !important; border: 4px solid var(--gold-main); }
.img-president { width: 200px !important; height: 200px !important; border: 5px solid var(--emerald-dark); }
.img-deputy { width: 130px !important; height: 130px !important; border: 3px solid var(--border); }
.img-member { width: 65px !important; height: 65px !important; border: 2px solid var(--border); }

/* --- الدوائر الخدمية --- */
.services-modern-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.srv-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 30px; text-align: center; transition: 0.3s; }
.srv-card:hover { border-color: var(--emerald-main); transform: translateY(-5px); }
.srv-icon { font-size: 35pt; margin-bottom: 15px; }
.srv-card h3 { font-size: 14pt; font-weight: 700; color: var(--text-strong); }

/* ================== نافذة البروفايل (Modal) ================== */
.profile-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(5px);
    display: flex; justify-content: center; align-items: center;
    z-index: 1000; opacity: 0; visibility: hidden; transition: 0.3s;
}
.profile-modal.show { opacity: 1; visibility: visible; }

.modal-box {
    background: #fff; width: 90%; max-width: 450px; border-radius: 24px;
    padding: 40px 30px; position: relative; transform: translateY(30px);
    transition: 0.4s ease; box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    max-height: 90vh; overflow-y: auto;
}
.profile-modal.show .modal-box { transform: translateY(0); }

.close-modal {
    position: absolute; top: 20px; left: 20px; background: #f1f5f9; border: none;
    width: 35px; height: 35px; border-radius: 50%; color: var(--text-strong);
    font-size: 14pt; cursor: pointer; transition: 0.2s;
}
.close-modal:hover { background: #e2e8f0; color: red; }

.modal-header { text-align: center; margin-bottom: 25px; border-bottom: 1px solid var(--border); padding-bottom: 25px; }
.modal-header img { width: 120px; height: 120px; border: 3px solid var(--emerald-main); margin: 0 auto 15px auto; }
.modal-header h3 { font-size: 16pt; font-weight: 800; color: var(--text-strong); margin-bottom: 5px; }
.modal-tag { display: inline-block; background: var(--bg-soft); color: var(--emerald-dark); padding: 5px 15px; border-radius: 50px; font-size: 9pt; font-weight: 600; }

.info-title { font-size: 11pt; color: var(--text-strong); margin-bottom: 10px; font-weight: 700; }
.bio-text { font-size: 9.5pt; color: var(--text-light); line-height: 1.8; margin-bottom: 25px; }

.contact-list { list-style: none; margin-bottom: 25px; }
.contact-list li { margin-bottom: 10px; font-size: 10pt; color: var(--text-strong); display: flex; align-items: center; gap: 10px; }
.contact-list i { color: var(--emerald-main); font-size: 12pt; width: 20px; text-align: center; }
.contact-list a { color: var(--emerald-dark); text-decoration: none; font-weight: 600; }

.social-links { display: flex; gap: 10px; justify-content: center; }
.soc-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 45px; height: 45px; border-radius: 12px; color: #fff; text-decoration: none; font-size: 14pt; transition: 0.3s; }
.soc-btn:hover { transform: translateY(-3px); }
.soc-btn.wa { width: auto; padding: 0 20px; background: #25D366; font-size: 11pt; font-weight: 600; }
.soc-btn.fb { background: #1877F2; }
.soc-btn.ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }

/* زر النشاطات */
.btn-activities-link {
    display: block; background: linear-gradient(135deg, var(--emerald-main), var(--emerald-dark));
    color: #fff; text-align: center; padding: 12px; border-radius: 12px;
    text-decoration: none; font-weight: 700; font-size: 11pt; margin-bottom: 25px; transition: 0.3s;
}
.btn-activities-link:hover { transform: translateY(-3px); color: #fff; box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3); }

/* ================== الموبايل ================== */
@media (max-width: 1024px) {
    .exec-showcase { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .center-gov { grid-column: 1 / -1; order: -1; transform: scale(1); width: 100%; max-width: 100%; margin-bottom: 10px; }
    .exec-card { width: 100%; padding: 20px 10px; }
    .img-governor { width: 150px !important; height: 150px !important; }
    .img-deputy { width: 100px !important; height: 100px !important; }
    
    .council-showcase { flex-direction: column; gap: 20px; }
    .president-column { order: -1; width: 100%; max-width: 100%; }
    
    .members-column { width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
    
    /* تحويل الكبسولات إلى مربعات بالعمودين */
    .horizontal-pill-card { flex-direction: column; border-radius: 20px; padding: 15px 10px; text-align: center; }
    .horizontal-pill-card img { margin: 0 auto 10px auto; width: 70px !important; height: 70px !important; }
    .pill-info { margin-right: 0; text-align: center; }
    .view-icon { display: none; }
    
    /* نائب الرئيس (نفس شكل الأعضاء، بس لونه مميز) */
    .highlighted-pill { grid-column: auto; flex-direction: column; border-radius: 20px; padding: 15px 10px; }
    .highlighted-pill img { margin: 0 auto 10px auto; }
    .highlighted-pill .pill-info { text-align: center; margin-right: 0; }

    .services-modern-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .services-modern-grid { grid-template-columns: 1fr; }
}

/* ================== الشعار المخصص (Custom Logo) ================== */
.custom-logo { max-width: 200px; height: auto; display: block; }

/* ================== صفحة النشاطات الخاصة بالنائب ================== */
.activities-main { background: var(--bg-soft); min-height: 100vh; padding-bottom: 80px; }
.profile-banner { background: var(--surface); padding: 60px 0; border-bottom: 1px solid var(--border); margin-bottom: 50px; }
.banner-flex { display: flex; align-items: center; gap: 40px; }
.banner-img { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; border: 5px solid var(--border); }
.banner-info h1 { font-size: 26pt; color: var(--text-strong); font-weight: 800; margin-bottom: 15px; }
.banner-bio { font-size: 12pt; color: var(--text-light); line-height: 1.8; margin-bottom: 25px; max-width: 800px; }
.banner-social { display: flex; gap: 15px; }
.btn-contact { padding: 10px 25px; border-radius: 50px; text-decoration: none; color: #fff; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.btn-contact.wa { background: #25D366; }
.btn-contact.fb { background: #1877F2; padding: 10px 15px; }
.title-line { width: 60px; height: 4px; background: var(--gold-main); margin-top: 10px; border-radius: 2px; }
.activities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.activity-card { background: var(--surface); border-radius: 16px; overflow: hidden; border: 1px solid var(--border); transition: 0.3s; }
.activity-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-color: var(--emerald-main); }
.activity-card img { width: 100%; height: 220px; object-fit: cover; }
.act-details { padding: 25px; }
.act-date { display: block; font-size: 9pt; color: var(--emerald-main); font-weight: 600; margin-bottom: 10px; }
.act-details h3 { font-size: 13pt; color: var(--text-strong); font-weight: 700; margin-bottom: 15px; line-height: 1.4; }
.act-details p { font-size: 10pt; color: var(--text-light); line-height: 1.6; margin-bottom: 20px; }
.read-more { color: var(--gold-main); text-decoration: none; font-weight: 700; font-size: 10pt; display: flex; align-items: center; gap: 8px; }
.read-more:hover { color: var(--emerald-dark); }
@media (max-width: 1024px) {
    .banner-flex { flex-direction: column; text-align: center; }
    .banner-bio { margin: 0 auto 25px auto; }
    .banner-social { justify-content: center; }
    .activities-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) { .activities-grid { grid-template-columns: 1fr; } }