/*
Theme Name: IKP Modern Theme (Full Font Control)
Theme URI: https://iraniankurdishparty.com
Author: Soroush Architect
Description: نسخه 103.0 - کاهش مارجین زیر هدر + اصلاح کارت‌های تیم (کادر کوچک‌تر، المان‌های داخلی بزرگ‌تر).
Version: 103.0
License: GNU General Public License v2 or later
*/

:root {
    --primary: #1a237e; --secondary: #ffc107; --text-main: #333; --bg-dark: #001f3f;
    --font-heading: 'Lalezar', sans-serif !important; 
    --font-body: 'Vazirmatn', sans-serif !important;
    --header-logo-w: 80px; --hero-logo-w: 250px;
    --man-bg-1: #1a237e; --man-bg-2: #000032; --man-text: #fff;
    --news-bg: #fff; --news-title: #1a237e;
    --btn-bg: #ffc107; --w-bg: rgba(255,255,255,0.95);
    --fs-body: 16px; --fs-menu: 16px; --fs-hero-title: 45px; --fs-hero-desc: 19px;
    --fs-h1: 32px; --fs-h2: 28px; --fs-h3: 22px; --fs-btn: 16px; --fs-footer: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; padding: 0; background: var(--bg-dark); font-family: var(--font-body); color: var(--text-main); overflow-x: hidden; direction: rtl; line-height: 1.6; padding-top: 80px; font-size: var(--fs-body); }
h1 { font-size: var(--fs-h1); font-family: var(--font-heading); font-weight: normal; }
h2 { font-size: var(--fs-h2); font-family: var(--font-heading); font-weight: normal; }
h3 { font-size: var(--fs-h3); font-family: var(--font-heading); font-weight: normal; }
h4, h5, h6 { font-family: var(--font-heading); font-weight: normal; }

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul, li { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; }
#waveCanvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* Header & Menu */
.site-header { background: rgba(26,35,126,0.98); border-bottom: 4px solid var(--secondary); padding: 10px 0; position: fixed; top: 0; left: 0; right: 0; z-index: 9999; box-shadow: 0 5px 20px rgba(0,0,0,0.3); height: 80px; display: flex; align-items: center; transition: transform 0.3s; }
.site-header.header-hidden { transform: translateY(-100%); }
.header-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.site-branding { display: flex; align-items: center; }
.site-header .custom-logo-link img, .site-header .custom-logo { width: var(--header-logo-w) !important; height: auto !important; max-height: 60px; object-fit: contain; display: block; }
.site-title { display: none !important; }
.main-navigation ul { display: flex; gap: 20px; }
.main-navigation a { color: #fff; font-size: var(--fs-menu); }
.main-navigation a:hover { color: var(--secondary); }
.menu-toggle { display: none; font-size: 1.8rem; color: #fff; background: none; border: none; cursor: pointer; padding: 0; margin-right: 15px; }
.mobile-menu-overlay { position: fixed; inset: 0; background: rgba(0,31,63,0.98); z-index: 10000; display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: 0.3s; }
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }
.mobile-menu-overlay ul { display: flex; flex-direction: column; gap: 20px; text-align: center; }
.mobile-menu-overlay a { color: #fff; font-size: 1.5rem; font-family: var(--font-heading); }
.close-menu { position: absolute; top: 20px; right: 20px; font-size: 2rem; color: #fff; background: none; border: none; cursor: pointer; }

/* Hero Main */
.hero-section { text-align: center; padding: 80px 20px 20px; color: #fff; }
.hero-content { display: flex; flex-direction: column; align-items: center; }
.hero-logo, .hero-content .custom-logo { width: var(--hero-logo-w) !important; margin-bottom: 20px; display: block; margin: 0 auto 20px; filter: drop-shadow(0 0 20px rgba(255, 193, 7, 0.5)); }
.hero-title { font-size: var(--fs-hero-title); margin-bottom: 10px; color: #fff; text-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.hero-description { font-size: var(--fs-hero-desc); max-width: 800px; margin: 0 auto 30px; color: #eee; }
.hero-menu-ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
.hero-menu-ul li { display: inline-block; }

/* Buttons & Widgets */
.btn, .hero-menu-ul li a, input[type="submit"], button.submit-btn, .read-more-btn, .widget_block a.wp-block-button__link { display: inline-block; padding: 10px 25px; background: var(--btn-bg); color: #000 !important; border: none; border-radius: 50px; font-weight: bold; font-size: var(--fs-btn); cursor: pointer; text-align: center; transition: all 0.3s; box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4); text-decoration: none; white-space: nowrap; }
.btn:hover, .hero-menu-ul li a:hover { transform: scale(1.05) translateY(-3px); background: #fff; }
.widget-area { max-width: 1100px; margin: 20px auto; padding: 0 20px; text-align: center; }
.widget-box, .widget_block { background: transparent; text-align: center; display: flex; justify-content: center; width: 100%; }

/* Animation System */
.mission-box, .news-card, .mission-quote { opacity: 0; transform: translateY(100px); transition: all 1.2s cubic-bezier(0.165, 0.84, 0.44, 1); }
.reveal-active { opacity: 1 !important; transform: translateY(0) !important; }

/* News */
.latest-news-section { padding: 60px 20px; }
.section-title { text-align: center; color: #fff; font-size: var(--fs-h2); margin-bottom: 40px; border-bottom: 3px solid var(--secondary); display: inline-block; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.news-card { background: var(--news-bg); border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.2); border-top: 5px solid var(--primary); display: flex; flex-direction: column; }
.news-content { padding: 20px; color: #333; }
.news-content h3 { color: var(--news-title); font-size: var(--fs-h3); margin-bottom: 10px; }
.read-more-btn { align-self: flex-start; padding: 8px 20px; font-size: 0.9rem; margin-top: auto; }

/* Manifesto */
.mission-section { padding: 40px 20px; }
.mission-box { background: linear-gradient(135deg, var(--man-bg-1), var(--man-bg-2)); border: 1px solid rgba(255,193,7,0.3); padding: 30px; border-radius: 20px; margin-bottom: 30px; color: var(--man-text); text-align: justify; box-shadow: 0 15px 30px rgba(0,0,0,0.3); }
.mission-box h3 { color: var(--secondary); font-size: var(--fs-h3); border-bottom: 2px solid rgba(255,255,255,0.1); margin-bottom: 15px; margin-top: 0; padding-top: 0; }
.mission-box.reveal-active:hover, .news-card.reveal-active:hover, .mission-quote.reveal-active:hover { transform: translateY(-10px) !important; box-shadow: 0 30px 60px rgba(0,0,0,0.5); border-color: var(--secondary); transition-duration: 0.3s; }
.mission-quote { background: linear-gradient(45deg, var(--secondary), #ffca28); color: #000; padding: 40px; border-radius: 20px; text-align: center; font-weight: bold; font-size: 1.4rem; margin-top: 40px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); }

/* Pages */
/* اصلاح شد: کاهش مارجین بالا برای کم کردن فاصله با هدر */
.main-content-area { width: 100%; max-width: 1200px; margin: 20px auto 40px; padding: 0 20px; }
.content-card, article.post, article.page, .membership-page-container { background-color: #ffffff !important; color: #000 !important; padding: 40px; border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); margin-bottom: 40px; border: 1px solid #eee; width: 100%; }
.membership-page-container { padding: 0 !important; margin: 20px auto !important; }
.page-title { color: var(--primary); font-size: var(--fs-h1); border-bottom: 3px solid var(--secondary); display: inline-block; padding-bottom: 10px; margin-bottom: 20px; }
.entry-content { font-size: var(--fs-body); line-height: 2; text-align: justify; }

/* Footer */
.site-footer { background: #0d1238; color: #bbb; text-align: center; padding: 30px 0; border-top: 4px solid var(--secondary); position: relative; z-index: 10; font-size: var(--fs-footer); }
.social-links { display: flex; justify-content: center; gap: 15px; margin-top: 20px; }
.social-icon { width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.1); border-radius: 50%; color: #fff; font-size: 20px; transition: 0.3s; border: 1px solid rgba(255,255,255,0.2); }
.social-icon:hover { background: var(--secondary); color: #000 !important; transform: translateY(-5px); }

/* Mobile */
@media (max-width: 768px) {
    .header-container { padding: 0 15px; }
    .menu-toggle { display: block; order: 2; margin-right: 0; margin-left: 15px; }
    .site-branding { order: 1; flex-grow: 0; }
    .main-navigation { display: none; }
    .hero-menu-ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
    .hero-menu-ul li { width: 100%; }
    .hero-menu-ul li a { width: 100%; padding: 12px 5px; font-size: 0.9rem; }
    .main-content-area { padding: 10px !important; margin: 20px auto; }
    .content-card, article.post, article.page { padding: 25px !important; }
    .site-header .custom-logo-link img { max-height: 50px !important; }
    .widget-box { padding: 10px !important; margin-bottom: 20px; }
    :root {
        --fs-hero-title: 2.2rem !important;
        --fs-h1: 1.8rem !important;
        --fs-h2: 1.6rem !important;
        --fs-h3: 1.3rem !important;
    }
}

/* =========================================
   ABOUT US PAGE STYLES (FIXED: Card Sizes & Spacing)
   ========================================= */

/* Hero */
.about-hero {
    background: linear-gradient(45deg, #1a237e, #00bcd4);
    color: #fff;
    position: relative;
    padding-top: 30px !important; 
    /* اصلاح شد: کاهش پدینگ پایین برای کم کردن فاصله با متن زیرین */
    padding-bottom: 10px !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center !important;
}

.about-hero h1, .about-hero h2, .about-hero .about-title {
    margin-bottom: 10px !important;
    margin-top: 0 !important;
}

.about-hero img, .about-hero .custom-logo {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
}

.about-hero .container {
    position: relative; z-index: 10;
    display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%;
}
.about-hero .hero-bg-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.2);
}
.about-hero .display-3 { font-size: 3.5rem; }
.about-hero + section { padding-top: 20px !important; }

/* Values */
.about-values .values-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-color: #e0e0e0 !important;
}
.about-values .values-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}
.about-values .values-card i { color: #00bcd4; }

/* --- سیستم گرید تیم (دو ستونه) --- */
.ikp-team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    width: 100%;
    margin-top: 20px;
}
@media (max-width: 768px) {
    .ikp-team-grid { grid-template-columns: 1fr; }
}

/* --- استایل کارت‌های بزرگ --- */
.team-member-card {
    background-color: #fff;
    border-radius: 25px;
    /* اصلاح شد: کاهش پدینگ برای کوچک‌تر شدن کادر */
    padding: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    height: 100%; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* aspect-ratio: 1 / 1;  <-- حذف شد تا کادر الزاماً مربعی نباشد */
    overflow: visible !important;
    position: relative;
    z-index: 1;
}

.team-member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    z-index: 20;
}

/* محفظه عکس: سایز بزرگتر */
.member-img-wrapper {
    /* اصلاح شد: افزایش سایز عکس */
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
    position: relative;
}

.team-member-card .team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #00bcd4;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    background: #fff;
    transform-origin: center center;
}

/* افکت هاور: زوم ملایم + کج شدن */
.team-member-card:hover .team-photo {
    border-radius: 15px;
    transform: scale(1.15) rotate(-6deg);
    border-color: var(--secondary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    z-index: 30;
}

/* فونت‌های بسیار بزرگ و خوانا */
.team-member-card h3 {
    /* اصلاح شد: افزایش سایز فونت نام */
    font-size: 2.4rem !important;
    font-weight: 900 !important;
    color: #1a237e;
    margin: 15px 0 10px;
    line-height: 1.2;
}

.team-member-card h5 {
    /* اصلاح شد: افزایش سایز فونت سمت */
    font-size: 1.8rem !important;
    font-weight: bold;
    color: #ffc107;
    margin: 0;
}

.team-member-card p.text-muted {
    /* اصلاح شد: افزایش سایز فونت توضیحات */
    font-size: 1.2rem !important;
    margin-top: 10px;
}

/* Animations */
.reveal {
    opacity: 1; transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 1;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}