/*
Theme Name: Zahra Hormozi Custom
Author: Custom Developer
Description: قالب اختصاصی، پرسرعت و بدون برگه ساز برای وبسایت رسمی زهرا هرمزی
Version: 1.0.1
Text Domain: zahra-hormozi
*/

:root {
    --primary-color: #0f172a;
    --accent-color: #0d9488;
    --text-color: #334155;
    --bg-light: #f8fafc;
    --white: #ffffff;
}

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

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-display: swap; /* جلوگیری از بلاک شدن متن هنگام بارگذاری فونت */
    direction: rtl;
    background-color: var(--bg-light);
    color: var(--text-color);
    line-height: 1.7;
}

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

/* Header & Nav */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    z-index: 1000;
    border-bottom: 1px solid #e2e8f0;
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}
.nav-menu ul { display: flex; list-style: none; gap: 20px; }
.nav-menu a { font-weight: 500; transition: color 0.3s; }
.nav-menu a:hover { color: var(--accent-color); }

/* Hero Fullscreen Section */
.hero-fullscreen {
    min-height: 100vh;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    padding: 100px 20px 40px;
}
.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.hero-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5; /* جلوگیری کامل از جابه‌جایی و پرش صفحه (CLS) */
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.5);
}
.hero-content h1 { font-size: 2.8rem; margin-bottom: 10px; color: var(--white); }
.hero-content h2 { font-size: 1.3rem; color: var(--accent-color); margin-bottom: 20px; }
.hero-bio { font-size: 1.05rem; color: #cbd5e1; margin-bottom: 30px; }
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
}
.btn-primary { background: var(--accent-color); color: var(--white); }
.btn-primary:hover { opacity: 0.9; }

/* News Section */
.section-padding { padding: 80px 20px; max-width: 1200px; margin: 0 auto; }
.section-title { font-size: 1.8rem; margin-bottom: 30px; border-right: 4px solid var(--accent-color); padding-right: 12px; }
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.news-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.news-card:hover { transform: translateY(-5px); }
.news-thumb { 
    width: 100%; 
    height: auto; 
    aspect-ratio: 16 / 9; /* رزرو ابعاد عکس‌های اخبار */
    object-fit: cover; 
}
.news-content { padding: 18px; }
.news-title { font-size: 1.1rem; font-weight: bold; margin-bottom: 10px; }
.news-date { font-size: 0.85rem; color: #94a3b8; }

/* Bottom Video Section */
.video-section { background: #0284c7; color: var(--white); padding: 60px 20px; }
.video-container { max-width: 1200px; margin: 0 auto; }
.video-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; margin-top: 20px; }
.main-video iframe { width: 100%; height: 380px; border-radius: 12px; border: none; }

/* Photo Report Grid */
.photo-report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.photo-card { position: relative; border-radius: 12px; overflow: hidden; height: 260px; }
.photo-card img { 
    width: 100%; 
    height: 100%; 
    aspect-ratio: 4 / 3;
    object-fit: cover; 
    transition: 0.4s; 
}
.photo-card:hover img { transform: scale(1.05); }
.photo-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #fff;
    padding: 20px 15px 12px;
    font-size: 1.05rem;
    font-weight: bold;
}

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination .page-numbers { padding: 8px 16px; background: #fff; border-radius: 6px; border: 1px solid #cbd5e1; }
.pagination .current { background: var(--accent-color); color: #fff; border-color: var(--accent-color); }

/* Responsive */
@media (max-width: 768px) {
    .hero-container, .video-grid { grid-template-columns: 1fr; }
    .hero-fullscreen { height: auto; }
}