/* ===== RESET & VARIABLES ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-dark: #0d0d0d;
  --bg-card: #1a1a1a;
  --gold: #c9a227;
  --gold-light: #e0b93a;
  --text: #f2f2f2;
  --text-muted: #a0a0a0;
  --font-en: 'Inter', 'Segoe UI', sans-serif;
  --font-fa: 'Vazirmatn', 'Tahoma', sans-serif;
  --max-width: 1200px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-dark);
  color: var(--text);
  font-family: var(--font-en);
  line-height: 1.7;
  direction: ltr;
}

/* حالت RTL برای فارسی */
html[dir="rtl"] body {
  font-family: var(--font-fa);
  direction: rtl;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== HEADER / NAVBAR ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: var(--gold);
}

.logo img { height: 40px; width: auto; }

.nav-menu {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-menu a {
  font-size: 0.95rem;
  color: var(--text);
  transition: color 0.2s;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active { color: var(--gold); }

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after { width: 100%; }

.lang-switch {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

.lang-switch a {
  padding: 4px 10px;
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 4px;
  transition: all 0.2s;
}

.lang-switch a.active,
.lang-switch a:hover {
  background: var(--gold);
  color: var(--bg-dark);
}

/* منوی موبایل */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.8rem;
  cursor: pointer;
}

/* ===== HERO + SLIDESHOW ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden; /* محدود کردن اسلایدشو به این بخش */
}

/* لایه اسلایدشو داخل هیرو محدود میشه */
.slideshow {
  position: absolute;
  inset: 0;
  z-index: 0; 
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  background-size: cover;
  background-position: center top; 
  
  /* افکت پارالاکس فقط روی عکس‌ها */
  background-attachment: fixed; 
}

.slide.active { 
  opacity: 1; 
}

/* لایه تیره روی تصویر */
.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(13,13,13,0.9));
}

/* ===== محتوای هیرو ===== */
.hero-content {
  position: relative;
  z-index: 2; /* بالاتر از اسلایدشو */
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  
  /* ایجاد فاصله از کناره‌ها (همون کار کانتینر) */
  max-width: var(--max-width); 
  margin: 0 auto;
  padding: 0 24px; 
}

/* در حالت RTL، متن‌ها از راست شروع میشن */
html[dir="rtl"] .hero-content {
  align-items: flex-start;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.1;
  margin-bottom: 16px;
}
.hero h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero h1 span { color: var(--gold); }

.hero p {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 28px;
}

/* ===== دکمه‌ها ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--gold);
  color: var(--bg-dark);
  font-weight: 700;
  border-radius: 4px;
  transition: all 0.25s;
  border: 2px solid var(--gold);
}

.btn:hover {
  background: transparent;
  color: var(--gold);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--bg-dark);
}

/* ===== کنترل‌های اسلایدشو ===== */
.slide-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.slide-controls button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s;
}

.slide-controls button.active { background: var(--gold); }

/* ===== اصلاح برای موبایل ===== */
@media (max-width: 860px) {
  .slide {
    background-attachment: scroll; /* در موبایل افکت fixed باگ داره */
  }
}

/* ===== CARDS SECTION ===== */
.cards-section {
  padding: 90px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--text);
  margin-bottom: 10px;
}

.section-title h2 span { color: var(--gold); }

.section-title p {
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
  aspect-ratio: 9 / 16;
  cursor: pointer;
  transition: transform 0.35s, box-shadow 0.35s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(201, 162, 39, 0.15);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.card:hover img { transform: scale(1.08); }

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 15%, rgba(0,0,0,0.1) 70%);
}

.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 24px;
}

.card-content h3 {
  font-size: 1.25rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.card-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.card-content .read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s, gap 0.2s;
}

.card:hover .read-more {
  color: var(--gold);
  gap: 12px;
}

/* ===== BIO SECTION (با بک‌گراند ثابت) ===== */
.bio-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  isolation: isolate; /* برای اینکه لایه‌ها درست کار کنن */
}

/* لایه تصویر بک‌گراند — ثابت با اسکرول */
.bio-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/pages/main/manouchehr-shamshiri-in-track-and-field-competition-in-isfahan.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* ← این کلید ماجراست */
  z-index: -2;
}

/* لایه تیره روی تصویر */
.bio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 8, 8, 0.85),
    rgba(8, 8, 8, 0.92)
  );
  z-index: -1;
}

/* گرید دوستونه */
.bio-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* ستون متن */
.bio-text h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin-bottom: 24px;
  line-height: 1.3;
}

.bio-text h2 span { color: var(--gold); }

.bio-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 18px;
  line-height: 1.9;
}

/* ستون عکس */
.bio-image {
  position: relative;
}

.bio-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(201, 162, 39, 0.3);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  display: block;
}

/* قاب تزئینی دور عکس */
.bio-image::before {
  content: '';
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 10px;
  z-index: -1;
  pointer-events: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .bio-section { padding: 80px 0; }

  .bio-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* در موبایل عکس اول بیاد */
  .bio-image { order: -1; max-width: 420px; margin: 0 auto; }

  /* background-attachment: fixed روی موبایل مشکل داره */
  .bio-bg { background-attachment: scroll; }
}

/* ===== ASIAN GAMES 1974 SECTION ===== */
.asian-games-section {
  position: relative;
  padding: 110px 0;
  background: linear-gradient(180deg, #101010 0%, #0a0a0a 100%);
  border-top: 1px solid rgba(201, 162, 39, 0.25);
}

/* یه خط طلایی تزئینی بالای سکشن */
.asian-games-section::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: var(--gold);
}

.asian-games-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* ===== ستون ویدئو ===== */
.video-wrapper {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.3);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  background: #000;
  aspect-ratio: 1 / 1;   /* ← تغییر از 16/9 به 1/1 */
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* قاب تزئینی دور ویدئو */
.asian-games-video {
  position: relative;
}

.asian-games-video::before {
  content: '';
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 12px;
  z-index: -1;
  pointer-events: none;
}

/* ===== ستون متن ===== */
.asian-games-text h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.3;
  margin-bottom: 22px;
}

.asian-games-text h2 span { color: var(--gold); }

.asian-games-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 18px;
}

.asian-games-text .btn {
  margin-top: 10px;
  font-size: 0.92rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .asian-games-section { padding: 80px 0; }

  .asian-games-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ===== EARLY LIFE SECTION ===== */
.early-life-section {
  position: relative;
  padding: 110px 0;
  background: linear-gradient(180deg, #0a0a0a 0%, #101010 100%);
  border-top: 1px solid rgba(201, 162, 39, 0.15);
}

.early-life-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 60px;
  align-items: start;
}

/* ===== ستون متن ===== */
.early-life-text .lead {
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.9;
  margin-bottom: 24px;
  padding-left: 20px;
  border-left: 3px solid var(--gold);
}

.early-life-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 18px;
}

.early-life-text strong {
  color: var(--gold);
  font-weight: 600;
}

/* ===== ستون اطلاعات کلیدی ===== */
.early-life-facts {
  background: rgba(26, 26, 26, 0.7);
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: 10px;
  padding: 32px 28px;
  position: sticky;
  top: 100px; /* چسبیدن هنگام اسکرول */
  backdrop-filter: blur(6px);
}

.early-life-facts h3 {
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
}

.facts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.facts-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.facts-list li:last-child { border-bottom: none; }

.fact-label {
  font-size: 0.78rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.fact-value {
  font-size: 0.98rem;
  color: var(--text);
  line-height: 1.5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .early-life-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .early-life-facts {
    position: static; /* در موبایل چسبندگی حذف بشه */
  }
}

@media (max-width: 600px) {
  .early-life-section { padding: 70px 0; }
  .early-life-text .lead { font-size: 1.05rem; }
}

/* ===== FOOTER ===== */
.site-footer {
  background: linear-gradient(180deg, #e0b93a 0%, #d4af37 100%);
  color: #0d0d0d;
  padding: 60px 0 25px;
  border-top: 1px solid rgba(201, 162, 39, 0.5);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

/* عنوان ستون‌ها */
.footer-grid h4 {
  color: #000;
  margin-bottom: 16px;
  font-size: 1rem;
  letter-spacing: 1.2px;
  font-weight: 800;
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(13, 13, 13, 0.25);
  display: inline-block;
}

/* متن توضیحات */
.footer-grid p {
  color: #2a2a2a;
  line-height: 1.8;
  max-width: 340px;
}

/* لیست لینک‌ها */
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid ul li {
  margin-bottom: 10px;
}

.footer-grid ul a {
  color: #1a1a1a;
  font-weight: 600;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}

.footer-grid ul a:hover {
  color: #ffffff;
  padding-left: 4px;
}

/* در RTL هاور از راست */
html[dir="rtl"] .footer-grid ul a:hover {
  padding-left: 0;
  padding-right: 4px;
}

/* خط پایین */
.footer-bottom {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid rgba(13, 13, 13, 0.2);
  font-size: 0.85rem;
  color: #1a1a1a;
  font-weight: 500;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .menu-toggle { display: block; }

  .nav-menu {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(201,162,39,0.2);
    display: none;
  }

  .nav-menu.open { display: flex; }

  .hero { height: 78vh; }
  .footer-grid { grid-template-columns: 1fr; }
  .cards-section { padding: 60px 0; }
}








/* =====================================================
   PAGE HERO — برای همه صفحات داخلی
===================================================== */
.page-hero {
  position: relative;
  padding: 110px 0 70px;
  background: linear-gradient(180deg, #101010 0%, #0d0d0d 100%);
  text-align: center;
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: var(--gold);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.page-hero h1 span { color: var(--gold); }

.page-hero p {
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* =====================================================
   DISCIPLINE CARDS (3 کارت انتخاب رشته)
===================================================== */
.discipline-section {
  padding: 90px 0;
  background: #0d0d0d;
}

.discipline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.discipline-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
  aspect-ratio: 32 / 23;
  cursor: pointer;
  transition: transform 0.35s, box-shadow 0.35s;
  display: block;
}

.discipline-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(201, 162, 39, 0.15);
}

.discipline-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.discipline-card:hover img { transform: scale(1.08); }

.discipline-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.95) 15%, transparent 65%),
    rgba(0, 0, 0, 0.5);
  transition: background 0.35s ease;
}

.discipline-card:hover::after {
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.95) 15%, transparent 65%),
    rgba(0, 0, 0, 0.2);  /* ← کم‌تر شد */
}

.discipline-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 24px;
}

.discipline-content h3 {
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.discipline-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.discipline-content .read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.discipline-card:hover .read-more { color: var(--gold); }

/* =====================================================
   LEGACY SECTION (بک‌گراند cover ثابت)
===================================================== */
.legacy-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  isolation: isolate;
}

.legacy-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/pages/coaching/Manouchehr-Shamsheri-alongside-the-national-team-athletes-and-students-at-the-national-competitions-with-the-sports-staff.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -2;
}

.legacy-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 8, 8, 0.88),
    rgba(8, 8, 8, 0.94)
  );
  z-index: -1;
}

.legacy-container {
  max-width: 860px;
  text-align: center;
}

.legacy-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 24px;
}

.legacy-text h2 span { color: var(--gold); }

.legacy-text .lead {
  font-size: 1.2rem;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 28px;
}

.legacy-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 18px;
}

/* =====================================================
   TRACK COACHING SECTION
===================================================== */
.track-coaching-section {
  padding: 110px 0;
  background: #0d0d0d;
}

/* بخش دو ستونه — متن + عکس */
.split-content {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
  margin: 60px 0 80px;
}

.split-content.reverse {
  grid-template-columns: 1fr 1.3fr;
  direction: rtl; /* عکس چپ، متن راست */
}

.split-content.reverse > * {
  direction: ltr; /* برگرداندن محتوای داخل به حالت عادی */
}

/* اصلاح جهت متن در بخش‌های reverse برای نسخه فارسی */
html[dir="rtl"] .split-content.reverse > * {
  direction: rtl;
}

.split-text h3 {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 22px;
  line-height: 1.4;
}

.split-text p {
  color: var(--text-muted);
  font-size: 1.03rem;
  line-height: 1.9;
  margin-bottom: 16px;
}

.split-text strong { color: var(--gold); font-weight: 600; }

.split-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(201, 162, 39, 0.3);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

/* =====================================================
   GALLERY 4 عکسی
===================================================== */
.gallery-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 60px 0;
}

.gallery-4 figure {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.2);
  cursor: pointer;
}

.gallery-4 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-4 figure:hover img { transform: scale(1.1); }

/* =====================================================
   TIMELINE
===================================================== */
.timeline-section {
  margin: 80px 0;
}

.sub-title {
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 50px;
}

.sub-title span { color: var(--gold); }

.timeline {
  list-style: none;
  padding: 0;
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 130px;
  width: 2px;
  background: rgba(201, 162, 39, 0.3);
}

.timeline li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 30px;
  margin-bottom: 36px;
  position: relative;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: 124px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.2);
}

.timeline-year {
  text-align: right;
  padding-right: 30px;
  color: var(--gold);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 1px;
}

.timeline-content h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--text);
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* =====================================================
   STUDENTS CARDS
===================================================== */
.students-section {
  margin: 80px 0;
}

.students-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.student-card {
  background: var(--bg-card);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 24px;
  transition: transform 0.3s, border-color 0.3s;
}

.student-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
}

.student-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 18px;
}

.student-card h4 {
  color: var(--gold);
  font-size: 1.05rem;
  margin-bottom: 8px;
  padding: 0 16px;
}

.student-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0 16px;
}

/* =====================================================
   LEGACY NOTE
===================================================== */
.legacy-note {
  max-width: 800px;
  margin: 80px auto 0;
  text-align: center;
  padding: 50px 40px;
  background: rgba(26, 26, 26, 0.5);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: 10px;
}

.legacy-note h3 {
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.legacy-note h3 span { color: var(--gold); }

.legacy-note p {
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 14px;
}

/* =====================================================
   VOLLEYBALL & WRESTLING SECTIONS
===================================================== */
.volleyball-coaching-section,
.wrestling-coaching-section {
  padding: 100px 0;
  background: #0d0d0d;
}

.volleyball-coaching-section {
  background: linear-gradient(180deg, #0d0d0d 0%, #101010 100%);
  border-top: 1px solid rgba(201, 162, 39, 0.1);
}

.wrestling-coaching-section {
  background: linear-gradient(180deg, #101010 0%, #0d0d0d 100%);
  border-top: 1px solid rgba(201, 162, 39, 0.1);
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 1000px) {
  .discipline-grid { grid-template-columns: 1fr 1fr; }
  .gallery-4 { grid-template-columns: repeat(2, 1fr); }
  .students-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .split-content,
  .split-content.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 36px;
    margin: 40px 0 60px;
  }

  .legacy-bg { background-attachment: scroll; }

  .timeline::before { left: 20px; }
  .timeline li { grid-template-columns: 1fr; gap: 8px; padding-left: 50px; }
  .timeline li::before { left: 14px; }
  .timeline-year { text-align: left; padding-right: 0; }

  .legacy-note { padding: 40px 24px; }
}

@media (max-width: 600px) {
  .discipline-grid { grid-template-columns: 1fr; }
  .students-grid { grid-template-columns: 1fr; }
  .gallery-4 { gap: 10px; }

  .page-hero { padding: 80px 0 50px; }
  .track-coaching-section,
  .volleyball-coaching-section,
  .wrestling-coaching-section { padding: 70px 0; }
}

/* =====================================================
   LEADERSHIP SECTION (دو ستونه)
===================================================== */
.leadership-section {
  padding: 90px 0;
  margin: 40px 0;
  
  border-top: 1px solid rgba(201, 162, 39, 0.15);
  border-bottom: 1px solid rgba(201, 162, 39, 0.15);
}

.leadership-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: start;
}

/* ===== ستون چپ: متن + گالری ===== */
.leadership-left {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.leadership-text h3 {
  font-size: 1.35rem;
  color: var(--gold);
  margin-bottom: 22px;
  line-height: 1.4;
}

.leadership-text p {
  color: var(--text-muted);
  font-size: 1.03rem;
  line-height: 1.9;
  margin-bottom: 16px;
}

/* گالری ۴ عکسی داخل ستون چپ */
.leadership-left .gallery-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
}

.leadership-left .gallery-4 figure {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.2);
  cursor: pointer;
}

.leadership-left .gallery-4 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.leadership-left .gallery-4 figure:hover img { transform: scale(1.1); }

/* ===== ستون راست: عکس بزرگ + کپشن ===== */
.leadership-right {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.leadership-right img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(201, 162, 39, 0.3);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  display: block;
}

.leadership-right figcaption {
  padding: 20px 22px;
  background: rgba(26, 26, 26, 0.6);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.leadership-right figcaption strong {
  color: var(--gold);
  font-weight: 600;
}

/* RTL: خط طلایی کپشن بره سمت راست */
html[dir="rtl"] .leadership-right figcaption {
  border-left: none;
  border-right: 3px solid var(--gold);
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 900px) {
  .leadership-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .leadership-left .gallery-4 {
    grid-template-columns: repeat(4, 1fr); /* در موبایل ۴ تا کنار هم */
  }
}

@media (max-width: 600px) {
  .leadership-section { padding: 60px 0; }

  .leadership-left .gallery-4 {
    grid-template-columns: repeat(2, 1fr); /* در موبایل کوچک ۲×۲ */
  }

  .leadership-right figcaption { font-size: 0.85rem; padding: 16px 18px; }
}






/* =====================================================
   TRACK BEGINNING SECTION
===================================================== */
.track-beginning-section {
  padding: 110px 0 90px;
  background: #0d0d0d;
}

/* =====================================================
   PRESS SECTION (دو ستونه)
===================================================== */
.press-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid rgba(201, 162, 39, 0.15);
  border-bottom: 1px solid rgba(201, 162, 39, 0.15);
}

.press-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/pages/track-field/an-old-photo-of-manouchehr-shamshiri-practicing-hurdle-jumping.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -2;
  filter: grayscale(45%) brightness(1.08);
}

.press-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 8, 8, 0.6),
    rgba(8, 8, 8, 0.78)
  );
  z-index: -1;
}

/* متن مقدمه */
.press-intro {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.9;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
  font-style: italic;
}

/* گرید دو ستونه */
.press-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 50px;
  align-items: stretch; /* هر دو ستون هم‌ارتفاع */
}

/* ===== ستون چپ: کادر متن ===== */
.press-quote {
  padding: 44px 48px;
  background: rgba(20, 18, 12, 0.75);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 10px;
  position: relative;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.press-quote::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 30px;
  font-size: 6rem;
  color: var(--gold);
  font-family: Georgia, serif;
  line-height: 1;
  opacity: 0.4;
}

.press-quote h3 {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.press-byline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
  font-style: italic;
}

.press-quote p {
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.95;
  margin-bottom: 18px;
}

.press-quote p:last-child { margin-bottom: 0; }

.press-quote strong { color: var(--gold); font-weight: 600; }


/* ===== عکس داخل کادر متن ===== */
.press-quote-image {
  margin: 32px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.press-quote-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(201, 162, 39, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s;
}

.press-quote-image img:hover {
  transform: scale(1.02);
}

.press-quote-image figcaption {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-style: italic;
  letter-spacing: 0.5px;
}


/* ===== ستون راست: عکس روزنامه عمودی ===== */
.press-newspaper {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: stretch;
}

.press-newspaper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(201, 162, 39, 0.3);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s;
}

.press-newspaper img:hover { transform: scale(1.02); }

.press-newspaper figcaption {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-style: italic;
  letter-spacing: 0.5px;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 900px) {
  .press-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .press-newspaper {
    max-width: 420px;
    margin: 0 auto;
  }

  .press-newspaper img {
    height: auto;
    object-fit: contain;
  }
}

@media (max-width: 860px) {
  .press-bg { background-attachment: scroll; }
  .press-quote { padding: 32px 26px; }
  .press-quote::before { font-size: 4rem; left: 20px; }
}

@media (max-width: 600px) {
  .press-section { padding: 70px 0; }
}

/* =====================================================
   PROFESSIONAL CAREER
===================================================== */
.pro-career-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #0d0d0d 0%, #101010 100%);
}

.pro-career-intro {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 760px;
  margin: 0 auto 60px;
  line-height: 1.9;
}

.specialties-title {
  text-align: center;
  font-size: 1.3rem;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 40px;
  text-transform: uppercase;
  font-weight: 700;
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.specialty-card {
  padding: 40px 30px;
  background: rgba(26, 26, 26, 0.7);
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}

.specialty-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
}

.specialty-icon {
  font-size: 2.6rem;
  margin-bottom: 16px;
}

.specialty-card h4 {
  font-size: 1.25rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.specialty-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* =====================================================
   1974 ASIAN GAMES SECTION
===================================================== */
.asian-games-1974-section {
  padding: 110px 0;
  background: #0d0d0d;
  border-top: 1px solid rgba(201, 162, 39, 0.15);
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 900px) {
  .specialties-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .press-bg { background-attachment: scroll; }
  .press-quote { padding: 30px 24px; }
  .press-quote::before { font-size: 4rem; left: 20px; }
}

@media (max-width: 600px) {
  .track-beginning-section { padding: 70px 0 60px; }
  .press-section { padding: 70px 0; }
  .pro-career-section { padding: 70px 0; }
  .asian-games-1974-section { padding: 70px 0; }
}

/* =====================================================
   TRAINING & NATIONAL COMPETITIONS GALLERY
===================================================== */
.training-gallery-section {
  padding: 110px 0;
  background: #0d0d0d; /* ← تغییر از گرادیان به مشکی خالص */
  border-top: 1px solid rgba(201, 162, 39, 0.15);
}

/* متن مقدمه */
.training-intro {
  max-width: 800px;
  margin: 0 auto 60px;
  text-align: center;
}

.training-intro p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 16px;
}

/* گرید گالری — Masonry-style با CSS Grid */
.training-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 16px;
}

.training-item {
  position: relative;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.2);
  cursor: pointer;
  transition: border-color 0.3s;
}



/* به فایل CSS اضافه کن */
.training-item.tall {
  grid-row: span 2; /* ارتفاع دو برابر بقیه عکس‌ها */
}

.training-item.tall img {
  aspect-ratio: 760 / 660; /* این باعث میشه عکس متناسب با این نسبت برش بخوره */
  width: 100%;
  height: 100%;
  object-fit: cover;
}



.training-item:hover {
  border-color: var(--gold);
}

.training-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.training-item:hover img {
  transform: scale(1.08);
}

/* آیتم‌های بزرگ‌تر (wide) — دو ستون عرض */
.training-item.wide {
  grid-column: span 2;
}

/* کپشن روی عکس (فقط برای آیتم‌هایی که figcaption دارن) */
.training-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: var(--text);
  font-size: 0.88rem;
  font-style: italic;
  z-index: 2;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
}

.training-item:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

/* همیشه کپشن آیتم‌های wide دیده بشه */
.training-item.wide figcaption {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 900px) {
  .training-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .training-item.wide {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .training-gallery-section { padding: 70px 0; }

  .training-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
    gap: 12px;
  }

  .training-item.wide {
    grid-column: span 1;
  }

  .training-intro { margin-bottom: 40px; }
}

/* =====================================================
   WRESTLING COACHING - SPECIAL NOTES
===================================================== */
.leadership-note {
  margin: 60px auto;
  padding: 40px 48px;
  background: rgba(26, 26, 26, 0.6);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  max-width: 900px;
  text-align: center;
}

.leadership-note p {
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.9;
  margin: 0;
}

.leadership-note strong {
  color: var(--gold);
  font-weight: 600;
}

html[dir="rtl"] .leadership-note {
  border-left: none;
  border-right: 3px solid var(--gold);
}

@media (max-width: 600px) {
  .leadership-note {
    padding: 30px 24px;
  }
}








/* =====================================================
   COACHING LEGACY SECTION (بخش جدید صفحه اصلی)
===================================================== */
.coaching-legacy-section {
  padding: 110px 0;
  background: linear-gradient(180deg, #0d0d0d 0%, #101010 100%);
  border-top: 1px solid rgba(201, 162, 39, 0.15);
  border-bottom: 1px solid rgba(201, 162, 39, 0.15);
}

/* تنظیمات خاص برای این سکشن (چون از split-content استفاده می‌کنیم) */
.coaching-legacy-section .split-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 24px;
  line-height: 1.4;
}

.coaching-legacy-section .split-text h2 span {
  color: var(--gold);
}

.coaching-legacy-section .split-text .lead {
  font-size: 1.1rem;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
}

.coaching-legacy-section .split-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 18px;
}

.coaching-legacy-section .split-text strong {
  color: var(--gold);
  font-weight: 600;
}

/* استایل برای عکس */
.coaching-legacy-section .split-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(201, 162, 39, 0.3);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .coaching-legacy-section { padding: 70px 0; }
}






/* =====================================================
   COMMEMORATION CEREMONY SECTION
===================================================== */
.commemoration-section {
  padding: 110px 0;
  background: linear-gradient(180deg, #1a1814 0%, #242018 100%);
  border-top: 1px solid rgba(201, 162, 39, 0.3);
  border-bottom: 1px solid rgba(201, 162, 39, 0.3);
  position: relative;
}

/* خط تزئینی طلایی بالای سکشن */
.commemoration-section::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 3px;
  background: var(--gold);
}

/* متن سراسری */
.commemoration-text {
  max-width: 860px;
  margin: 0 auto 70px;
  text-align: center;
}

.commemoration-text p {
  color: #d1d1d1;
  font-size: 1.08rem;
  line-height: 1.9;
  margin-bottom: 20px;
}

.commemoration-text strong {
  color: var(--gold-light);
  font-weight: 600;
}

/* عنوان‌های فرعی (ویدئو و گالری) */
.commemoration-sub-title {
  font-size: 1.4rem;
  color: var(--gold);
  text-align: center;
  margin-bottom: 36px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
  display: inline-block;
  letter-spacing: 1px;
}

/* --- بخش ویدئوها --- */
.commemoration-videos {
  margin-bottom: 70px;
  text-align: center;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: right;
}

.video-item video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(201, 162, 39, 0.3);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  background: #000;
  display: block;
}

.video-caption {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
}

/* --- بخش گالری عکس --- */
.commemoration-gallery-wrapper {
  text-align: center;
}

.commemoration-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.commemoration-gallery figure {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.25);
  margin: 0;
}

.commemoration-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.commemoration-gallery figure:hover img {
  transform: scale(1.08);
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 900px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .commemoration-section { padding: 70px 0; }
  
  .video-grid {
    grid-template-columns: 1fr;
  }
  
  .commemoration-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .commemoration-text p { font-size: 1rem; }
  .commemoration-sub-title { font-size: 1.2rem; }
}