:root {
    --brand-dark-obsidian: #09101a;
    --brand-deep-navy: #0f1b29;
    --brand-card-bg: #ffffff;
    --brand-pure-gold: #c5a059;
    --brand-gold-glow: rgba(197, 160, 89, 0.15);
    --brand-light-surface: #f7fafc;
    --brand-border-color: rgba(15, 27, 41, 0.06);
    --brand-text-main: #1e293b;
    --brand-text-muted: #64748b;

    --premium-radius-xl: 30px;
    --premium-radius-lg: 20px;
    --premium-radius-sm: 12px;
    --premium-shadow: 0 20px 50px rgba(15, 27, 41, 0.05);
    --premium-transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* پایه و پس‌زمینه هوشمند */
.premium-committee-wrapper {
    background-color: var(--brand-light-surface);
    color: var(--brand-text-main);
    font-family: inherit;
    overflow-x: hidden;
}

/* هدر سینمایی (Hero) */
.premium-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 80% 20%, #1a2e44 0%, var(--brand-dark-obsidian) 100%);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    padding: 100px 0 120px 0;
}

.premium-hero.has-bg-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    filter: scale(1.05) blur(2px);
    opacity: 0.25;
}

.hero-blur-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 16, 26, 0.8) 0%, var(--brand-dark-obsidian) 100%);
    z-index: 1;
}

.hero-glow-spot {
    position: absolute;
    top: -10%;
    right: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.12) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* نوار مسیر خوانی لوکس */
.premium-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 20px;
    border-radius: 50px;
    width: fit-content;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.breadcrumb-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--premium-transition);
}

.breadcrumb-link:hover {
    color: var(--brand-pure-gold);
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.2);
}

.breadcrumb-current {
    color: var(--brand-pure-gold);
    font-weight: bold;
}

/* محتوای متنی هدر */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-gold-glow);
    color: var(--brand-pure-gold);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    border: 1px solid rgba(197, 160, 89, 0.2);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--brand-pure-gold);
    border-radius: 50%;
    animation: dotPulse 2s infinite;
}

.hero-main-title {
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    line-height: 1.3;
    margin: 0 0 20px 0;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-summary-text {
    color: #94a3b8;
    font-size: 16px;
    line-height: 1.8;
    max-width: 760px;
    margin: 0;
}

/* ساختار بدنه اصلی (Asymmetric Layout Grid) */
.main-content-layout {
    padding: 0 0 100px 0;
    margin-top: -60px; /* ایجاد افکت هم‌پوشانی کارت با هدر */
    position: relative;
    z-index: 10;
}

.layout-grid-container {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 40px;
    align-items: start;
}

/* بخش سایدبار رئیس کمیته */
.chairman-sidebar-card {
    position: relative;
}

.sticky-card-wrapper {
    position: sticky;
    top: 30px;
    background: var(--brand-card-bg);
    border-radius: var(--premium-radius-xl);
    padding: 24px;
    box-shadow: var(--premium-shadow);
    border: 1px solid var(--brand-border-color);
}

.avatar-frame-box {
    position: relative;
    border-radius: var(--premium-radius-lg);
    overflow: hidden;
    height: 420px;
    background-color: var(--brand-light-surface);
    box-shadow: inset 0 0 40px rgba(0,0,0,0.05);
}

.chairman-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: var(--premium-transition);
}

.sticky-card-wrapper:hover .chairman-avatar {
    transform: scale(1.04);
}

.avatar-placeholder-svg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
}

.avatar-placeholder-svg svg {
    width: 90px;
}

.avatar-floating-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(360deg, rgba(9, 16, 26, 0.95) 0%, rgba(9, 16, 26, 0.4) 100%);
    padding: 30px 24px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.avatar-floating-badge .badge-title {
    color: var(--brand-pure-gold);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
}

.avatar-floating-badge .badge-name {
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
}

/* متریک‌ها و اطلاعات زیر عکس */
.chairman-meta-metrics {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.metric-row-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    background: var(--brand-light-surface);
    border-radius: var(--premium-radius-sm);
    border: 1px solid rgba(0,0,0,0.02);
    transition: var(--premium-transition);
}

.metric-row-item:hover {
    background: #ffffff;
    border-color: rgba(197, 160, 89, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
}

.metric-icon-sphere {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-pure-gold);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.metric-icon-sphere svg {
    width: 20px;
    height: 20px;
}

.metric-texts {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-label {
    font-size: 11px;
    color: var(--brand-text-muted);
}

.metric-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-deep-navy);
}

/* ستون اطلاعات متنی سمت راست */
.content-main-area {
    background: var(--brand-card-bg);
    border-radius: var(--premium-radius-xl);
    padding: 50px;
    box-shadow: var(--premium-shadow);
    border: 1px solid var(--brand-border-color);
}

.main-title-group {
    margin-bottom: 40px;
}

.sub-accent-label {
    display: block;
    color: var(--brand-pure-gold);
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.section-display-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 900;
    color: var(--brand-dark-obsidian);
    margin: 0;
}

.title-role {
    font-size: 16px;
    color: var(--brand-text-muted);
    font-weight: 400;
}

/* بلوک‌های متنی داخل صفحه */
.premium-text-block {
    margin-bottom: 40px;
}

.premium-text-block:last-child {
    margin-bottom: 0;
}

.block-inner-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--brand-deep-navy);
    margin: 0 0 18px 0;
    position: relative;
    padding-right: 15px;
}

.block-inner-title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background-color: var(--brand-pure-gold);
    border-radius: 10px;
}

.rich-text-content {
    font-size: 15px;
    line-height: 2.1;
    color: #475569;
    text-align: justify;
}

/* بلوک مأموریت برجسته */
.highlighted-card {
    position: relative;
    background: linear-gradient(135deg, #fdfbf7 0%, #f7f3e9 100%);
    padding: 30px 35px;
    border-radius: var(--premium-radius-lg);
    border-right: 5px solid var(--brand-pure-gold);
    overflow: hidden;
}

.abstract-quote-decoration {
    position: absolute;
    left: 20px;
    bottom: -20px;
    font-size: 120px;
    font-family: serif;
    color: rgba(197, 160, 89, 0.08);
    line-height: 1;
    user-select: none;
}

/* پشتیبانی از محتوای داینامیک TinyMCE / WP */
.dynamic-wp-content h2, .dynamic-wp-content h3 {
    color: var(--brand-dark-obsidian);
    margin: 30px 0 15px 0;
}

.dynamic-wp-content ul {
    padding-right: 20px;
    list-style-type: square;
}

.dynamic-wp-content li {
    margin-bottom: 8px;
}

/* گالری تصاویر مدرن (Bento Grid Style) */
.premium-gallery-section {
    padding: 80px 0 120px 0;
    background-color: #f1f5f9;
}

.gallery-section-header {
    display: flex;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 45px;
}

.header-deco-line {
    height: 1px;
    flex-content: 1;
    flex: 1;
    background: linear-gradient(90deg, transparent, rgba(15, 27, 41, 0.1) 100%);
    margin-bottom: 12px;
}

.bento-gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.bento-gallery-item {
    position: relative;
    border-radius: var(--premium-radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    background-color: var(--brand-dark-obsidian);
    aspect-ratio: 16 / 11;
}

.item-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.item-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* آبرنگ و لایه تعاملی هاور تصاویر گالری */
.item-interactive-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(9, 16, 26, 0.85) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: var(--premium-transition);
}

.overlay-icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transform: translateY(15px);
    transition: var(--premium-transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.overlay-icon-circle svg {
    width: 22px;
    height: 22px;
}

.overlay-text-label {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    transform: translateY(15px);
    transition: var(--premium-transition);
}

/* هوشمندی گرید گالری بر اساس تعداد تصاویر */
.bento-gallery-grid .gallery-item-1 { grid-column: span 7; grid-row: span 2; aspect-ratio: auto; min-height: 460px; }
.bento-gallery-grid .gallery-item-2 { grid-column: span 5; }
.bento-gallery-grid .gallery-item-3 { grid-column: span 5; }
.bento-gallery-grid .gallery-item-4 { grid-column: span 12; aspect-ratio: 21 / 9; }

/* افکت هاور گالری */
.bento-gallery-item:hover img {
    transform: scale(1.06);
}

.bento-gallery-item:hover .item-interactive-overlay {
    opacity: 1;
}

.bento-gallery-item:hover .overlay-icon-circle,
.bento-gallery-item:hover .overlay-text-label {
    transform: translateY(0);
}

/* انیمیشن‌ها */
@keyframes dotPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(197, 160, 89, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(197, 160, 89, 0); }
}

/* پاسخگویی هوشمند (Responsive) */

@media (max-width: 1200px) {
    .layout-grid-container {
        grid-template-columns: 330px 1fr;
        gap: 30px;
    }
    .content-main-area {
        padding: 35px;
    }
    .avatar-frame-box {
        height: 360px;
    }
}

@media (max-width: 992px) {
    .layout-grid-container {
        grid-template-columns: 1fr;
    }
    .main-content-layout {
        margin-top: -40px;
    }
    .sticky-card-wrapper {
        position: relative;
        top: 0;
    }
    .avatar-frame-box {
        height: 450px;
    }
    .bento-gallery-grid .gallery-item-1,
    .bento-gallery-grid .gallery-item-2,
    .bento-gallery-grid .gallery-item-3 {
        grid-column: span 6;
        grid-row: auto;
        aspect-ratio: 16/11;
        min-height: auto;
    }
    .bento-gallery-grid .gallery-item-4 {
        grid-column: span 12;
        aspect-ratio: 16/10;
    }
}

@media (max-width: 768px) {
    .premium-hero {
        padding: 60px 0 90px 0;
        min-height: auto;
    }
    .content-main-area {
        padding: 24px;
    }
    .avatar-frame-box {
        height: 380px;
    }
    .gallery-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .header-deco-line {
        display: none;
    }
    .bento-gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .bento-gallery-grid .gallery-item-1,
    .bento-gallery-grid .gallery-item-2,
    .bento-gallery-grid .gallery-item-3,
    .bento-gallery-grid .gallery-item-4 {
        grid-column: span 12;
        aspect-ratio: 16/11;
    }
}
