/* ============================================================
   DR. FADAEIAN - Personal Education Platform
   Main Stylesheet
   ============================================================ */

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

/* ---------- CSS Variables ---------- */
:root {
  --brand-black:    #050505;
  --brand-gray:     #151515;
  --brand-red:      #B40000;
  --brand-red-light:#E11919;
  --white:          #ffffff;
  --zinc-300:       #d4d4d8;
  --zinc-400:       #a1a1aa;
  --zinc-500:       #71717a;
  --zinc-600:       #52525b;
  --zinc-700:       #3f3f46;
  --zinc-800:       #27272a;
  --font-main:      'Inter', ui-sans-serif, system-ui, sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--brand-black);
  color: var(--white);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--brand-red); color: var(--white); }

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
button, input, textarea, select {
  font-family: inherit;
  color: inherit;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb { background: #222; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-red); }

/* ---------- Utility Classes ---------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: var(--brand-red);
  color: var(--white);
  font-weight: 500;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
}
.btn-primary:hover { background: var(--brand-red-light); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--white);
  border: 1px solid var(--brand-red);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
}
.btn-outline:hover { background: var(--brand-red); color: var(--white); }

.glass-card {
  background: var(--brand-gray);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.glass-card:hover { border-color: rgba(180,0,0,0.3); }

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--brand-red);
  font-weight: 700;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.text-red    { color: var(--brand-red); }
.text-muted  { color: var(--zinc-400); }
.text-faint  { color: var(--zinc-500); }

/* ---------- Navbar ---------- */
#main-nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
#main-nav.scrolled {
  background: rgba(5,5,5,0.92);
  backdrop-filter: blur(12px);
  padding: 1rem 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
#main-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-logo .logo-icon {
  width: 40px; height: 40px;
  background: var(--brand-red);
  display: flex; align-items: center; justify-content: center;
  border-radius: 2px;
  transition: transform 0.3s ease;
}
.nav-logo:hover .logo-icon { transform: rotate(12deg); }
.nav-logo .logo-text {
  font-size: 1.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.04em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--zinc-400);
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--brand-red); }
.nav-links .nav-cta { margin-left: 0.5rem; }
.lang-toggle-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--zinc-300);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.4rem 0.85rem;
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
  font-family: inherit;
}
.lang-toggle-btn:hover { border-color: var(--brand-red); color: var(--white); }
.mobile-menu .lang-toggle-btn { width: 100%; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  padding: 0.25rem;
}
.nav-toggle svg { display: block; }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  width: 100%;
  background: var(--brand-gray);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 2rem;
  flex-direction: column;
  gap: 1.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--white);
  transition: color 0.2s ease;
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--brand-red); }

/* ---------- Hero ---------- */
#hero {
  position: relative;
  min-height: 100vh;
  background: var(--brand-black);
  overflow: hidden;
  display: flex;
  align-items: center;
}
#hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 35%;
  background: linear-gradient(to top, var(--brand-black) 0%, var(--brand-black) 15%, transparent 100%);
  pointer-events: none;
  z-index: 20;
}
.hero-bg-gradient {
  position: absolute; top: 0; right: 0;
  width: 50%; height: 100%;
  background: linear-gradient(to left, rgba(180,0,0,0.1), transparent);
  pointer-events: none;
}
.hero-bg-blur {
  position: absolute; bottom: -10%; left: -10%;
  width: 400px; height: 400px;
  background: rgba(180,0,0,0.05);
  filter: blur(120px);
  border-radius: 50%;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  position: relative; z-index: 10;
  width: 100%;
}
.hero-text { position: relative; min-height: 400px; display: flex; flex-direction: column; justify-content: center; }
.hero-slide { display: none; }
.hero-slide.active { display: block; }

.hero-headline {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 1.5rem;
}
.hero-headline .accent { color: var(--brand-red); }
.hero-subtitle {
  font-size: 1.25rem;
  color: var(--zinc-400);
  font-weight: 300;
  max-width: 32rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 3.5rem;
}
.hero-controls .ctrl-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  transition: background 0.2s, border-color 0.2s;
}
.hero-controls .ctrl-btn:hover { background: var(--brand-red); border-color: var(--brand-red); }
.hero-dots { display: flex; gap: 0.5rem; align-items: center; }
.hero-dots span {
  height: 3px;
  background: var(--zinc-700);
  transition: width 0.3s ease, background 0.3s ease;
  width: 16px;
  cursor: pointer;
}
.hero-dots span.active { width: 32px; background: var(--brand-red); }

.hero-image-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  height: 100%;
  position: relative;
}
.hero-image-inner {
  position: relative; z-index: 10;
  width: 120%; margin-right: -10%;
}
.hero-image-inner img {
  width: 100%; height: auto; object-fit: cover;
  filter: brightness(90%) contrast(110%);
  -webkit-mask-image: linear-gradient(to top, transparent 8%, black 30%);
  mask-image: linear-gradient(to top, transparent 8%, black 30%);
  drop-shadow: 0 20px 50px rgba(180,0,0,0.2);
}
.hero-frame {
  position: absolute; right: 0; bottom: 80px;
  width: 100%; height: 60%;
  border-right: 4px solid var(--brand-red);
  pointer-events: none;
  opacity: 0.3;
}
.hero-scroll-indicator {
  position: absolute; right: 2rem; bottom: 2.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.hero-scroll-indicator span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--zinc-500);
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  white-space: nowrap;
}
.hero-scroll-indicator .scroll-line {
  width: 1px; height: 80px;
  background: linear-gradient(to bottom, var(--brand-red), transparent);
}

/* Fade animation for slides */
@keyframes fadeSlide {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
.hero-slide.active { animation: fadeSlide 0.7s ease forwards; }

/* ---------- Page Header (inner pages) ---------- */
.page-header {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
}
.page-header-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.25;
}
.page-header-overlay {
  position: absolute; inset: 0;
  z-index: 1;
}
.page-header-content {
                                                                                                                                                                                                                                                                                                            position: relative; z-index: 2;
  text-align: center;
}
.page-header-content h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.04em;
}

/* ---------- Footer ---------- */
#main-footer {
  background: var(--brand-gray);
  padding: 5rem 0 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}
.footer-logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.footer-logo .logo-icon {
  width: 40px; height: 40px;
  background: var(--brand-red);
  display: flex; align-items: center; justify-content: center;
  border-radius: 2px;
}
.footer-desc { color: var(--zinc-400); font-size: 0.875rem; line-height: 1.7; margin-bottom: 1.5rem; }
.footer-socials { display: flex; gap: 1rem; }
.footer-socials a { color: var(--zinc-400); transition: color 0.2s; }
.footer-socials a:hover { color: var(--brand-red); }
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  color: var(--white);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col ul a { font-size: 0.875rem; color: var(--zinc-400); transition: color 0.2s; }
.footer-col ul a:hover { color: var(--brand-red); }
.footer-subscribe p { font-size: 0.875rem; color: var(--zinc-400); margin-bottom: 1rem; }
.subscribe-form {
  display: flex;
  background: var(--brand-black);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.subscribe-form input {
  background: transparent;
  border: none;
  outline: none;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  flex: 1;
  color: var(--white);
}
.subscribe-form input::placeholder { color: var(--zinc-600); }
.subscribe-form button {
  background: var(--brand-red);
  border: none;
  padding: 0 1rem;
  cursor: pointer;
  color: var(--white);
  transition: background 0.2s;
}
.subscribe-form button:hover { background: var(--brand-red-light); }
.footer-bottom {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p, .footer-bottom a {
  font-size: 0.75rem;
  color: var(--zinc-500);
}
.footer-bottom a:hover { color: var(--white); }
.footer-links { display: flex; gap: 2rem; }

/* ---------- Home - About Preview ---------- */
.about-preview {
  padding: 6rem 0;
  background: var(--brand-black);
}
.about-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-img-wrap { position: relative; }
.about-preview-text-col { padding-left: 2rem; }
.about-img-box { aspect-ratio: 1/1; background: var(--brand-gray); overflow: hidden; }
.about-img-box img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.about-badge {
  position: absolute; bottom: -2rem; right: -2rem;
  width: 12rem; height: 12rem;
  background: var(--brand-red);
  padding: 2rem;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.about-badge .badge-num { font-size: 2.5rem; font-weight: 800; }
.about-badge .badge-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.15em; font-weight: 600; }
.about-stats { display: flex; gap: 3rem; }
.about-stats .stat h4 { font-weight: 700; font-size: 1.25rem; }
.about-stats .stat p  { color: var(--zinc-500); font-size: 0.875rem; }

/* ---------- Home - Trainings Preview ---------- */
.trainings-preview {
  padding: 6rem 0;
  background: rgba(21,21,21,0.3);
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}
.section-header-left .section-title { margin-top: 1rem; }
.view-all-link {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--brand-red); font-weight: 600;
  font-size: 0.875rem;
  transition: gap 0.2s;
}
.view-all-link:hover { gap: 0.75rem; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.training-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--brand-gray);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.training-card:hover { border-color: rgba(180,0,0,0.3); transform: translateY(-10px); }
.card-thumb {
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
}
.card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.training-card:hover .card-thumb img { transform: scale(1.1); }
.card-overlay {
  position: absolute; inset: 0;
  background: rgba(5,5,5,0.2);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.training-card:hover .card-overlay { opacity: 1; }
.card-category {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--brand-red);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
}
.card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; gap: 1rem; }
.card-body h4 { font-size: 1.125rem; font-weight: 700; text-transform: uppercase; }
.card-body p { color: var(--zinc-400); font-size: 0.875rem; line-height: 1.6; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.card-footer {
  margin-top: auto; padding-top: 1rem;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.card-date { font-size: 10px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--zinc-500); font-weight: 700; }
.card-link { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; display: flex; align-items: center; gap: 0.5rem; transition: color 0.2s; }
.card-link:hover { color: var(--brand-red); }

/* ---------- Home - Paid Courses ---------- */
.paid-preview {
  padding: 6rem 0;
  background: var(--brand-black);
  position: relative;
  overflow: hidden;
}
.paid-preview-blur {
  position: absolute; top: 0; right: 0;
  width: 24rem; height: 24rem;
  background: rgba(180,0,0,0.05);
  filter: blur(100px);
  border-radius: 50%;
}
.paid-header { text-align: center; max-width: 42rem; margin: 0 auto 4rem; }
.paid-header p { color: var(--zinc-500); margin-top: 1rem; }
.paid-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.paid-card { background: var(--brand-gray); padding: 4px; transition: border-color 0.3s; }
.paid-card-inner {
  border: 1px solid rgba(255,255,255,0.05);
  padding: 2rem;
  display: flex; gap: 2rem;
  transition: border-color 0.3s;
  height: 100%;
}
.paid-card:hover .paid-card-inner { border-color: rgba(180,0,0,0.2); }
.paid-card-img { width: 12rem; aspect-ratio: 1/1; background: var(--brand-black); overflow: hidden; flex-shrink: 0; }
.paid-card-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.paid-card-body { display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.paid-card-cat { font-size: 10px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--brand-red); font-weight: 700; }
.paid-card-body h4 { font-size: 1.5rem; font-weight: 700; text-transform: uppercase; }
.paid-card-body p { color: var(--zinc-400); font-size: 0.875rem; line-height: 1.6; }
.paid-card-price {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(5,5,5,0.5);
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.05);
}
.paid-card-price .price { font-size: 1.25rem; font-weight: 700; }
.paid-card-price a { color: var(--brand-red); font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; display: flex; align-items: center; gap: 0.5rem; }

/* ---------- Home - Blog ---------- */
.blog-preview {
  padding: 6rem 0;
  background: var(--brand-black);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.blog-layout { display: flex; gap: 5rem; }
.blog-sidebar { width: 33%; }
.blog-sidebar .section-title { margin: 1rem 0; }
.blog-sidebar p { color: var(--zinc-500); margin-bottom: 2rem; }
.blog-posts-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.blog-card { display: flex; flex-direction: column; gap: 1.5rem; cursor: pointer; }
.blog-card-img { aspect-ratio: 4/3; overflow: hidden; transition: filter 0.5s; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-meta { font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--zinc-500); font-weight: 700; transition: color 0.2s; }
.blog-card:hover .blog-card-meta { color: var(--brand-red); }
.blog-card-title { font-size: 1.25rem; font-weight: 700; text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; }
.blog-card-title svg { opacity: 0; transition: opacity 0.2s, transform 0.2s; transform: translateX(-8px); }
.blog-card:hover .blog-card-title svg { opacity: 1; transform: translateX(0); }
.blog-card-excerpt { color: var(--zinc-400); font-size: 0.875rem; line-height: 1.6; }

/* ---------- Home - CTA ---------- */
.cta-section {
  padding: 6rem 0;
  background: var(--brand-red);
  text-align: center;
}
.cta-section h2 { font-size: clamp(2rem, 5vw, 4rem); font-weight: 800; text-transform: uppercase; letter-spacing: -0.04em; margin-bottom: 1.5rem; }
.cta-section p  { color: rgba(255,255,255,0.8); max-width: 42rem; margin: 0 auto 2.5rem; font-size: 1.125rem; }
.cta-buttons    { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.cta-btn-white  { background: var(--white); color: var(--brand-red); padding: 1rem 2.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; border: none; cursor: pointer; transition: background 0.2s; }
.cta-btn-white:hover { background: #f4f4f5; }
.cta-btn-border { border: 2px solid var(--white); color: var(--white); background: transparent; padding: 1rem 2.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; cursor: pointer; transition: background 0.2s, color 0.2s; }
.cta-btn-border:hover { background: var(--white); color: var(--brand-red); }

/* ---------- About Page ---------- */
.about-intro-wrap {
  max-width: 64rem;
  margin: -5rem auto 0;
  position: relative; z-index: 30;
  padding: 0 2rem;
}
.about-intro-box {
  background: var(--brand-gray);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 5rem;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}
.about-intro-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: start; }
.about-portrait { aspect-ratio: 3/4; background: var(--brand-black); overflow: hidden; }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.about-text-col .divider { width: 5rem; height: 4px; background: var(--brand-red); margin: 1rem 0 2rem; }
.about-text-col p { color: var(--zinc-300); font-size: 1.125rem; line-height: 1.8; }
.about-text-col p.first-letter::first-letter { font-size: 3.5rem; font-weight: 800; color: var(--brand-red); float: left; margin: 0.1rem 0.5rem 0 0; line-height: 1; }
.about-text-col p + p { color: var(--zinc-400); margin-top: 1.5rem; }

.expertise-section { padding: 8rem 0; }
.expertise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 0; }
.about-videos-section { padding: 0 0 8rem; }
.about-videos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 2.5rem; }
.expertise-card {
  background: var(--brand-gray);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 2.5rem;
  transition: transform 0.3s, border-color 0.3s;
}
.expertise-card:hover { transform: translateY(-10px); border-color: rgba(180,0,0,0.3); }
.expertise-card .icon { color: var(--brand-red); margin-bottom: 1.5rem; }
.expertise-card h3 { font-size: 1.5rem; font-weight: 700; text-transform: uppercase; margin-bottom: 1rem; }
.expertise-card p { color: var(--zinc-500); font-size: 0.875rem; line-height: 1.6; }

.timeline-section { padding: 8rem 0; background: rgba(21,21,21,0.2); }
.timeline-header { text-align: center; margin-bottom: 4rem; }
.timeline-wrap { position: relative; max-width: 56rem; margin: 0 auto; }
.timeline-line {
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 1px; background: rgba(255,255,255,0.1);
  transform: translateX(-50%);
}
.timeline-item { position: relative; display: flex; justify-content: flex-end; padding-right: calc(50% + 2rem); margin-bottom: 1rem; }
.timeline-item:nth-child(even) { justify-content: flex-start; padding-right: 0; padding-left: calc(50% + 2rem); }
.timeline-dot {
  position: absolute; left: 50%; top: 50%;
  width: 16px; height: 16px;
  background: var(--brand-red); border-radius: 50%;
  transform: translate(-50%, -50%);
}
.timeline-card {
  background: var(--brand-gray);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 2rem;
  position: relative;
  max-width: 100%;
  flex: 1;
}
.timeline-year { font-size: 3rem; font-weight: 900; color: var(--brand-red); opacity: 0.15; position: absolute; top: 1rem; right: 2rem; }
.timeline-card h4 { font-size: 1.125rem; font-weight: 700; text-transform: uppercase; margin-bottom: 0.5rem; }
.timeline-card p { color: var(--zinc-400); font-size: 0.875rem; }

.gallery-section { padding: 8rem 0; }
.gallery-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 4rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 280px); gap: 1rem; }
.gallery-item { overflow: hidden; transition: filter 0.6s; background: var(--brand-gray); }
.gallery-item:hover { filter: none; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item.span2 { grid-column: span 2; grid-row: span 2; }

/* ---------- Trainings Page ---------- */
.trainings-page { padding: 8rem 0 5rem; }
.trainings-top {
  display: flex; justify-content: space-between; align-items: center;
  gap: 2rem; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 2.5rem; margin-bottom: 4rem; flex-wrap: wrap;
}
.trainings-top h1 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; text-transform: uppercase; }
.search-wrap { position: relative; width: 100%; max-width: 320px; }
.search-wrap svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--zinc-500); }
.search-wrap input {
  width: 100%; background: var(--brand-gray);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2px; padding: 0.75rem 1rem 0.75rem 2.75rem;
  outline: none; font-size: 0.875rem; color: var(--white);
  transition: border-color 0.2s;
}
.search-wrap input:focus { border-color: var(--brand-red); }
.search-wrap input::placeholder { color: var(--zinc-600); }

.filter-tabs { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 4rem; }
.filter-btn {
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  background: var(--brand-gray); color: var(--zinc-500);
  border: none; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.filter-btn:hover { color: var(--white); }
.filter-btn.active { background: var(--brand-red); color: var(--white); }

/* Single Training */
.single-training { padding: 8rem 0 5rem; }
.back-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--zinc-400); border: none; background: none; cursor: pointer;
  transition: color 0.2s;
  margin-bottom: 3rem;
}
.back-btn:hover { color: var(--brand-red); }
.single-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; }
.video-container { aspect-ratio: 16/9; background: var(--brand-gray); width: 100%; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); }
.video-container iframe { width: 100%; height: 100%; border: none; }
.lesson-title { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; margin: 1rem 0; }
.lesson-text { color: var(--zinc-300); font-size: 1.125rem; line-height: 1.8; margin-bottom: 1.5rem; }
.lesson-quote {
  background: var(--brand-gray);
  border-left: 4px solid var(--brand-red);
  padding: 2rem;
  font-style: italic;
  color: var(--zinc-400);
  margin: 2rem 0;
}
.details-card { padding: 1.5rem; background: var(--brand-gray); border: 1px solid rgba(255,255,255,0.05); border-radius: 8px; }
.details-card h4 { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 1.5rem; }
.detail-row { display: flex; align-items: center; gap: 0.75rem; color: var(--zinc-400); font-size: 0.875rem; margin-bottom: 1rem; }
.detail-row svg { color: var(--brand-red); }
.related-lessons h4 { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin: 2rem 0 1rem; }
.related-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.related-thumb { width: 96px; height: 64px; flex-shrink: 0; overflow: hidden; background: var(--zinc-800); }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; transition: opacity 0.2s; }
.related-item:hover .related-thumb img { opacity: 1; }
.related-item h5 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; line-height: 1.4; transition: color 0.2s; }
.related-item:hover h5 { color: var(--brand-red); }

/* ---------- Paid Trainings Page ---------- */
.paid-page { padding: 8rem 0 5rem; }
.paid-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1rem;
  gap: 1.5rem;
}
.paid-coming-soon-icon {
  color: var(--brand-gold, #d4af37);
  opacity: 0.8;
  margin-bottom: 0.5rem;
}
.paid-coming-soon h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--brand-gold, #d4af37);
  text-transform: uppercase;
}
.paid-coming-soon p {
  color: var(--zinc-500);
  font-size: 1.125rem;
  line-height: 1.8;
  max-width: 36rem;
}
.paid-page-intro { max-width: 48rem; margin-bottom: 4rem; }
.paid-page-intro h1 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; text-transform: uppercase; margin-bottom: 1rem; }
.paid-page-intro p { color: var(--zinc-500); font-size: 1.125rem; line-height: 1.7; }
.paid-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.paid-full-card {
  background: var(--brand-gray);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 4px;
  transition: border-color 0.3s;
}
.paid-full-card:hover { border-color: rgba(180,0,0,0.3); }
.paid-full-inner { padding: 2rem; display: flex; flex-direction: column; gap: 2rem; height: 100%; }
.paid-img-wrap { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.paid-img-wrap img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.paid-img-wrap .lock-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.paid-img-wrap .lock-icon svg { color: rgba(180,0,0,0.5); }
.paid-meta { display: flex; justify-content: space-between; align-items: flex-start; }
.paid-full-card h2 { font-size: 1.5rem; font-weight: 700; text-transform: uppercase; margin: 0.5rem 0; }
.paid-full-card > .paid-full-inner > p, .paid-full-inner p { color: var(--zinc-400); font-size: 0.875rem; line-height: 1.6; }
.price-tag { font-size: 1.25rem; font-weight: 700; }

/* Modal */
.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(5,5,5,0.85);
  backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--brand-gray);
  border: 1px solid rgba(255,255,255,0.1);
  width: 100%; max-width: 32rem;
  position: relative; overflow: hidden;
}
.modal-header {
  background: var(--brand-red);
  padding: 1.5rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
}
.modal-header h3 { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.modal-close { background: none; border: none; cursor: pointer; color: var(--white); transition: transform 0.3s; }
.modal-close:hover { transform: rotate(90deg); }
.modal-body { padding: 2rem; }
.modal-program {
  background: rgba(5,5,5,0.5);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.modal-program span { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--zinc-500); font-weight: 700; }
.modal-program p { font-weight: 700; text-transform: uppercase; margin-top: 0.25rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--zinc-500); font-weight: 700; margin-bottom: 0.5rem; }
.form-group input, .form-group textarea {
  width: 100%; background: var(--brand-black);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.75rem; outline: none; color: var(--white);
  font-size: 0.875rem; transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--brand-red); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-privacy { font-size: 10px; color: var(--zinc-600); text-align: center; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 1rem; }
.success-state { text-align: center; padding: 2.5rem 0; }
.success-icon { width: 64px; height: 64px; background: var(--brand-red); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }
.success-state h4 { font-size: 1.5rem; font-weight: 700; text-transform: uppercase; margin-bottom: 0.75rem; }
.success-state p { color: var(--zinc-400); font-size: 0.875rem; line-height: 1.6; }
.success-state .course-name { color: var(--white); font-weight: 700; display: block; margin-top: 0.5rem; }

/* ---------- Blog Page ---------- */
.blog-page { padding: 8rem 0 5rem; }
.blog-page-header { margin-bottom: 4rem; }
.blog-page-header h1 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; text-transform: uppercase; margin-bottom: 0.5rem; }
.blog-page-header p { color: var(--zinc-500); }
.blog-layout-page { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; }
.blog-list { display: flex; flex-direction: column; gap: 3rem; }
#blog-list-container .blog-list { margin-top: 0; }
.blog-list-item {
  display: flex; gap: 2rem; cursor: pointer;
  transition: transform 0.3s;
}
.blog-list-item:hover { transform: translateX(10px); }
.blog-list-thumb { width: 16rem; aspect-ratio: 4/3; flex-shrink: 0; overflow: hidden; transition: filter 0.5s; }
.blog-list-item:hover .blog-list-thumb { filter: none; }
.blog-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-list-meta { display: flex; align-items: center; gap: 1rem; font-size: 10px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--zinc-500); font-weight: 700; margin-bottom: 1rem; }
.blog-list-meta .author { color: var(--brand-red); }
.blog-list-title { font-size: 1.5rem; font-weight: 700; text-transform: uppercase; margin-bottom: 1rem; transition: color 0.2s; }
.blog-list-item:hover .blog-list-title { color: var(--brand-red); }
.blog-list-excerpt { color: var(--zinc-400); font-size: 0.875rem; line-height: 1.6; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 1rem; }
.blog-read-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em;
  border-bottom: 1px solid var(--brand-red); padding-bottom: 2px;
  transition: gap 0.2s;
}
.blog-list-item:hover .blog-read-link { gap: 0.75rem; }

.blog-sidebar-box { background: var(--brand-gray); border: 1px solid rgba(255,255,255,0.05); border-radius: 8px; padding: 2rem; margin-bottom: 2rem; }
.blog-sidebar-box h3 { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 1.5rem; }
.topic-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.topic-tag {
  padding: 0.5rem 1rem; background: var(--brand-black);
  border: 1px solid rgba(255,255,255,0.05);
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
  cursor: pointer; transition: border-color 0.2s, color 0.2s;
}
.topic-tag:hover { border-color: var(--brand-red); color: var(--brand-red); }
.newsletter-box { background: var(--brand-red); padding: 2.5rem; }
.newsletter-box h3 { font-size: 1.125rem; font-weight: 700; text-transform: uppercase; margin-bottom: 1rem; }
.newsletter-box p { font-size: 0.875rem; color: rgba(255,255,255,0.8); margin-bottom: 1.5rem; }
.newsletter-box input { width: 100%; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); padding: 0.75rem; outline: none; color: var(--white); font-size: 0.875rem; margin-bottom: 0.75rem; }
.newsletter-box input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-box button { width: 100%; background: var(--white); color: var(--brand-red); padding: 0.75rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; border: none; cursor: pointer; transition: background 0.2s; }
.newsletter-box button:hover { background: #f4f4f5; }

/* Single Blog Post */
.single-blog { max-width: 56rem; margin: 0 auto; padding: 8rem 2rem 5rem; }
.single-blog .back-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--zinc-500); transition: color 0.2s; margin-bottom: 3rem;
}
.single-blog .back-link:hover { color: var(--brand-red); }
.article-meta { color: var(--zinc-500); font-size: 10px; text-transform: uppercase; letter-spacing: 0.15em; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.05); margin-bottom: 2rem; display: flex; gap: 2rem; }
.article-featured { aspect-ratio: 16/9; transition: filter 1s; margin-bottom: 3rem; }
.article-featured:hover { filter: none; }
.article-featured img { width: 100%; height: 100%; object-fit: cover; }
.article-body p { color: var(--zinc-300); font-size: 1.125rem; line-height: 1.8; margin-bottom: 1.5rem; }
.article-body h2 { font-size: 2rem; font-weight: 700; text-transform: uppercase; color: var(--white); margin: 3rem 0 1.5rem; }
.article-body .lead {
  font-weight: 700; font-size: 1.25rem; color: var(--white); font-style: italic;
  border-left: 4px solid var(--brand-red); padding-left: 1.5rem; margin-bottom: 2rem;
}
.article-body .takeaways { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 3rem 0; }
.takeaway-box { background: var(--brand-gray); padding: 1.5rem; border: 1px solid rgba(255,255,255,0.05); }
.takeaway-box span { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--brand-red); letter-spacing: 0.1em; display: block; margin-bottom: 0.5rem; }
.takeaway-box p { font-size: 0.875rem; color: var(--zinc-300); }
.article-author {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(21,21,21,0.5); padding: 2.5rem; margin-top: 4rem;
}
.author-info { display: flex; align-items: center; gap: 1.5rem; }
.author-avatar { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-info h4 { font-weight: 700; text-transform: uppercase; }
.author-info p { font-size: 0.75rem; color: var(--zinc-500); text-transform: uppercase; letter-spacing: 0.1em; }


/* ---------- Contact Page ---------- */
.contact-page { padding: 8rem 0 5rem; }
.contact-header { text-align: center; max-width: 42rem; margin: 0 auto 5rem; }
.contact-header h1 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; text-transform: uppercase; margin-bottom: 1rem; }
.contact-header p { color: var(--zinc-500); }
.contact-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 5rem; }
.contact-info-box {
  background: var(--brand-gray);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 3rem;
}
.contact-info-box h3 { font-size: 1.5rem; font-weight: 700; text-transform: uppercase; margin-bottom: 2.5rem; }
.contact-item { display: flex; gap: 1.5rem; align-items: flex-start; margin-bottom: 2rem; }
.contact-item > div { min-width: 0; }
.contact-icon {
  width: 48px; height: 48px; background: var(--brand-black);
  border: 1px solid rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { color: var(--brand-red); }
.contact-item-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--zinc-500); font-weight: 700; margin-bottom: 0.25rem; }
.contact-item-value { font-size: 1.125rem; font-weight: 700; overflow-wrap: break-word; word-break: break-word; white-space: pre-line; }
.social-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.social-btn {
  flex: 1; padding: 1rem; background: var(--brand-gray);
  border: 1px solid rgba(255,255,255,0.05);
  text-align: center; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  min-width: 4rem; transition: background 0.2s;
}
.social-btn:hover { background: var(--brand-red); }
.contact-form-wrap { background: var(--brand-gray); border: 1px solid rgba(255,255,255,0.05); border-radius: 8px; overflow: hidden; }
.contact-form-inner { padding: 3rem; }
.contact-form .form-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 2rem; }
.contact-form .form-group { min-width: 0; }
.contact-form .form-group { margin-bottom: 2rem; }
.contact-form label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--zinc-500); font-weight: 700; margin-bottom: 0.75rem; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%; background: var(--brand-black);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 1rem; outline: none; color: var(--white);
  font-size: 0.875rem; transition: border-color 0.2s;
}
.contact-form select { appearance: none; cursor: pointer; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--brand-red); }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--zinc-600); }
.contact-form .btn-submit {
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  width: 100%; padding: 1.25rem;
  background: var(--brand-red); color: var(--white); border: none; cursor: pointer;
  font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3em;
  transition: background 0.2s;
}
.contact-form .btn-submit:hover { background: var(--brand-red-light); }
.encrypt-note { font-size: 10px; color: var(--zinc-600); text-align: center; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 1rem; }
.contact-success { padding: 3rem; text-align: center; }
.contact-success .success-icon { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--brand-red); margin: 0 auto 2rem; }
.contact-success h3 { font-size: 2rem; font-weight: 700; text-transform: uppercase; margin-bottom: 1rem; }
.contact-success p { color: var(--zinc-500); margin-bottom: 2rem; }
.contact-success .btn-outline { margin: 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .expertise-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-rows: repeat(2, 200px); }
}

@media (max-width: 768px) {
  .container { padding: 0 1rem; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  #hero { min-height: auto; padding-bottom: 3rem; }
  #hero::after { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-text { min-height: auto; order: 2; }
  .hero-image-wrap {
    display: flex;
    justify-content: center;
    height: auto;
    order: 1;
    margin-bottom: 2rem;
  }
  .hero-image-inner { width: 100%; margin-right: 0; border-radius: 12px; overflow: hidden; }
  .hero-image-inner img { -webkit-mask-image: none; mask-image: none; }
  .hero-frame { display: none; }
  .hero-scroll-indicator { display: none; }
  .about-preview-grid, .about-intro-grid, .paid-grid, .paid-page-grid,
  .contact-grid, .single-layout, .blog-layout-page { grid-template-columns: 1fr; }
  .blog-layout { flex-direction: column; gap: 2.5rem; }
  .blog-sidebar { width: 100%; }
  .cards-grid { grid-template-columns: 1fr; }
  .expertise-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .timeline-line { display: none; }
  .timeline-item, .timeline-item:nth-child(even) { justify-content: flex-start; padding: 0; }
  .timeline-dot { display: none; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-item.span2 { grid-column: span 2; grid-row: auto; }
  .about-badge { width: 9rem; height: 9rem; right: -1rem; bottom: -1rem; }
  .blog-list-item { flex-direction: column; }
  .blog-list-thumb { width: 100%; }
  .resource-cards { grid-template-columns: 1fr; }
  .blog-posts-grid { grid-template-columns: 1fr; }
  .trainings-top { flex-direction: column; align-items: flex-start; }
  .search-wrap { max-width: 100%; }
  .paid-card-inner { flex-direction: column; }
  .paid-card-img { width: 100%; aspect-ratio: 16/9; }
  .article-body .takeaways { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .about-intro-box { padding: 2rem 1.5rem; }
  .contact-form .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-info-box, .contact-form-inner { padding: 2rem 1.5rem; }
}

/* ============================================================
   RTL SUPPORT (Persian / فارسی)
   Activated when <html dir="rtl">. Most layout (flexbox/grid main
   axis, text-align, margin/padding via logical props) mirrors
   automatically with the dir attribute. The rules below only
   fix properties that use *physical* left/right and therefore
   don't mirror on their own.
   ============================================================ */
[dir="rtl"] body {
  font-family: var(--font-main);
}
[dir="rtl"] {
  --font-main: 'Vazirmatn', 'Inter', ui-sans-serif, system-ui, sans-serif;
}

/* Navbar */
[dir="rtl"] .nav-links .nav-cta { margin-left: 0; margin-right: 0.5rem; }
[dir="rtl"] .mobile-menu { left: auto; right: 0; }

/* Hero */
[dir="rtl"] .hero-bg-gradient {
  right: auto; left: 0;
  background: linear-gradient(to right, rgba(180,0,0,0.1), transparent);
}
[dir="rtl"] .hero-bg-blur { left: auto; right: -10%; }
[dir="rtl"] .hero-image-inner { margin-right: 0; margin-left: -10%; }
[dir="rtl"] .hero-frame { right: auto; left: 0; border-right: none; border-left: 4px solid var(--brand-red); }
[dir="rtl"] .hero-scroll-indicator { right: auto; left: 2rem; }

/* Training/blog cards */
[dir="rtl"] .card-category { left: auto; right: 1rem; }

/* Home - About preview */
[dir="rtl"] .about-preview-text-col { padding-left: 0; padding-right: 2rem; }
[dir="rtl"] .about-badge { right: auto; left: -2rem; }

/* Home - Paid preview */
[dir="rtl"] .paid-preview-blur { right: auto; left: 0; }

/* About page */
[dir="rtl"] .about-text-col p.first-letter::first-letter {
  float: right;
  margin: 0.1rem 0 0 0.5rem;
}

/* About page - Timeline (mirror the alternating left/right cards) */
[dir="rtl"] .timeline-item {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 2rem);
}
[dir="rtl"] .timeline-item:nth-child(even) {
  justify-content: flex-end;
  padding-left: 0;
  padding-right: calc(50% + 2rem);
}
[dir="rtl"] .timeline-year { right: auto; left: 2rem; }

/* Trainings/Blog list - search box */
[dir="rtl"] .search-wrap svg { left: auto; right: 1rem; }
[dir="rtl"] .search-wrap input { padding: 0.75rem 2.75rem 0.75rem 1rem; }

/* Single training - quote block */
[dir="rtl"] .lesson-quote { border-left: none; border-right: 4px solid var(--brand-red); }

/* Single blog - lead paragraph */
[dir="rtl"] .article-body .lead {
  border-left: none; border-right: 4px solid var(--brand-red);
  padding-left: 0; padding-right: 1.5rem;
}

/* Mobile */
@media (max-width: 768px) {
  [dir="rtl"] .about-badge { right: auto; left: -1rem; }
}

/* ---------- Comments / Reviews (Trainings + Blog) ---------- */
.comments-section { max-width: 760px; margin: 4rem auto 0; padding-top: 3rem; border-top: 1px solid rgba(255,255,255,0.08); }
.comments-heading { font-size: 1.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; margin-bottom: 1.5rem; }
.comments-count { color: var(--zinc-500); font-weight: 400; font-size: 1rem; text-transform: none; }
.comments-empty { color: var(--zinc-500); font-size: 0.9rem; margin-bottom: 2rem; }

.comments-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; }
.comment-card { background: var(--brand-gray); border: 1px solid rgba(255,255,255,0.05); border-radius: 8px; padding: 1.25rem 1.5rem; }
.comment-card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; }
.comment-card-top strong { font-size: 0.95rem; font-weight: 700; }
.stars-display { color: var(--brand-red); font-size: 0.95rem; letter-spacing: 1px; }
.comment-card p { color: var(--zinc-300); font-size: 0.9rem; line-height: 1.7; margin-bottom: 0.5rem; }
.comment-date { color: var(--zinc-600); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }

.comment-form-wrap { background: var(--brand-gray); border: 1px solid rgba(255,255,255,0.05); border-radius: 8px; padding: 1.75rem; }
.comment-form-wrap h4 { font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.25rem; }
.comment-error { color: var(--brand-red-light); font-size: 0.85rem; margin-bottom: 1rem; }

.comment-star-picker { display: flex; gap: 0.4rem; margin-bottom: 1.25rem; }
.star-pick-btn {
  background: none; border: none; cursor: pointer; padding: 0;
  font-size: 1.75rem; line-height: 1; color: var(--zinc-700); transition: color 0.15s, transform 0.1s;
}
.star-pick-btn.active { color: var(--brand-red); }
.star-pick-btn:hover { transform: scale(1.12); }

.comment-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.comment-form input,
.comment-form textarea {
  width: 100%; background: var(--brand-black);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.85rem 1rem; outline: none; color: var(--white);
  font-size: 0.875rem; transition: border-color 0.2s; margin-bottom: 1rem;
  font-family: var(--font-main); resize: vertical;
}
.comment-form input::placeholder,
.comment-form textarea::placeholder { color: var(--zinc-600); }
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--brand-red); }
.comment-form .btn-primary { width: 100%; border: none; cursor: pointer; }

.comment-success { display: flex; align-items: center; gap: 1rem; padding: 0.5rem 0; color: var(--zinc-300); }
.comment-success svg { color: var(--brand-red); flex-shrink: 0; }
.comment-success p { font-size: 0.9rem; }

@media (max-width: 640px) {
  .comment-form-row { grid-template-columns: 1fr; gap: 0; }
}

[dir="rtl"] .comment-star-picker { direction: ltr; justify-content: flex-end; }
