/*
Theme Name: Negareh
Description: صفحه اصلی نگاره مطابق طرح Negare v.02، مستقل از استادیار و المنتور.
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: negareh
*/

/* ==========================================================================
   موسسه آموزش عالی آزاد نگاره — سیستم دیزاین استاندارد، فوق‌العاده واکنش‌گرا و مدرن
   (فیروزه‌ای #00CDD3 | پترولیوم #006872 | زرد طلایی #FFB400 | زرشکی #8A0000)
   ========================================================================== */

:root {
  /* پالت رنگی رسمی و درخشان نگاره */
  --brand-cyan: #00CDD3;
  --brand-cyan-dark: #00A3A8;
  --brand-cyan-light: #EDFAFA;
  --brand-cyan-glow: rgba(0, 205, 211, 0.45);

  --brand-teal: #006872;
  --brand-teal-dark: #004D54;
  --brand-teal-deep: #012429;
  --brand-teal-light: #EBF4F5;
  --brand-teal-glow: rgba(0, 104, 114, 0.3);

  --brand-yellow: #FFB400;
  --brand-yellow-dark: #E09E00;
  --brand-yellow-light: #FFF9EC;
  --brand-yellow-border: rgba(255, 180, 0, 0.45);

  --brand-red: #CA0A0A;
  --brand-red-dark: #8A0000;
  --brand-red-light: #FDF1F1;

  /* سطوح و پس‌زمینه‌ها */
  --bg-primary: #F8FAFB;
  --bg-surface: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --bg-subtle: #F0F6F7;
  --bg-dark: #012429;
  --bg-dark-card: #03363D;
  --bg-glass: rgba(255, 255, 255, 0.94);

  --text-primary: #0A191D;
  --text-secondary: #385157;
  --text-muted: #68838A;
  --text-inverse: #FFFFFF;

  --border-subtle: rgba(0, 104, 114, 0.09);
  --border-medium: rgba(0, 104, 114, 0.16);
  --border-focus: var(--brand-cyan);

  /* تایپوگرافی */
  --font-main: 'Kalameh', 'Diba', 'Vazirmatn', 'IRANSans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* رادیوس‌ها و فواصل */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* سایه‌های مدرن با عمق نوری */
  --shadow-sm: 0 4px 14px rgba(0, 54, 59, 0.05);
  --shadow-md: 0 10px 30px -6px rgba(0, 54, 59, 0.09), 0 3px 10px rgba(0, 54, 59, 0.03);
  --shadow-lg: 0 20px 48px -10px rgba(0, 54, 59, 0.15);
  --shadow-float: 0 24px 60px -10px rgba(0, 54, 59, 0.22);

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);

  --container-max: 1240px;
}

/* تم تاریک */
[data-theme="dark"] {
  --bg-primary: #021215;
  --bg-surface: #052026;
  --bg-elevated: #082930;
  --bg-subtle: #0B353E;
  --bg-dark: #010C0E;
  --bg-dark-card: #041B1F;
  --bg-glass: rgba(5, 32, 38, 0.94);

  --text-primary: #F2FCFC;
  --text-secondary: #A0CBD1;
  --text-muted: #64969E;

  --border-subtle: rgba(0, 205, 211, 0.12);
  --border-medium: rgba(0, 205, 211, 0.24);

  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px -6px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 20px 48px -10px rgba(0, 0, 0, 0.75);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.75;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  -webkit-font-smoothing: antialiased;
}

/* افکت نور محیطی پس‌زمینه (Ambient Mesh Glow) */
body::before {
  content: '';
  position: fixed;
  top: -160px;
  right: -120px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(0, 205, 211, 0.12) 0%, rgba(0, 104, 114, 0.02) 60%, transparent 80%);
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  bottom: -160px;
  left: -120px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 180, 0, 0.08) 0%, rgba(0, 104, 114, 0.02) 60%, transparent 80%);
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
  pointer-events: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* تایپوگرافی */
h1 { font-size: clamp(1.4rem, 2.6vw, 2.25rem); font-weight: 900; line-height: 1.35; }
h2 { font-size: clamp(1.28rem, 2.2vw, 1.85rem); font-weight: 800; line-height: 1.38; }
h3 { font-size: clamp(1.1rem, 1.7vw, 1.4rem); font-weight: 800; line-height: 1.45; }
h4, h5, h6 { font-weight: 700; }
p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.8; }
a { color: inherit; text-decoration: none; transition: var(--transition-fast); }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.gradient-title {
  background: linear-gradient(135deg, var(--brand-teal-deep) 0%, var(--brand-teal) 65%, #008794 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .gradient-title {
  background: linear-gradient(135deg, #FFFFFF 20%, var(--brand-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

section {
  padding-block: 60px;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-cyan-light);
  color: var(--brand-teal);
  border: 1px solid rgba(0, 205, 211, 0.35);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 205, 211, 0.1);
}

[data-theme="dark"] .section-tag {
  background: rgba(0, 205, 211, 0.15);
  color: var(--brand-cyan);
}

.section-title { margin-bottom: 10px; }
.section-subtitle { max-width: 620px; margin: 0 auto; font-size: 0.96rem; }

/* --------------------------------------------------------------------------
   ۱.۱ نوار کاربردی باریک بالای هدر (Utility Bar)
   -------------------------------------------------------------------------- */
.utility-bar {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  padding: 6px 0;
  color: var(--text-muted);
  transition: background-color var(--transition-normal);
}

.utility-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.utility-contact {
  display: flex;
  align-items: center;
  gap: 12px;
}

.utility-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-teal);
  font-weight: 800;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.utility-phone-link:hover {
  color: var(--brand-cyan-dark);
}

[data-theme="dark"] .utility-phone-link {
  color: var(--brand-cyan);
}

.utility-badge {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   ۱.۱ هدر اصلی و ناوبری شناور ساده‌شده (Simplified 6-Item Navbar)
   -------------------------------------------------------------------------- */
.navbar-wrapper {
  position: sticky;
  top: 10px;
  z-index: 2200;
  margin-bottom: 16px;
}

.navbar-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);
  padding: 6px 18px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  gap: 12px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 26px;
  max-height: 26px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-fast);
}

.nav-brand:hover .brand-logo-img {
  transform: scale(1.03);
}

[data-theme="dark"] .brand-logo-img {
  filter: brightness(1.1) drop-shadow(0 0 10px rgba(0, 205, 211, 0.4));
}

/* آیتم‌های منو در وسط */
.nav-menu { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.nav-link:hover, .nav-link:focus, .nav-link.active {
  color: var(--brand-teal);
  background: var(--brand-cyan-light);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  background: rgba(0, 205, 211, 0.15);
  color: var(--brand-cyan);
}

/* دراپ‌داون راهنمای کنکور — موقعیت دقیق زیر لینک و رفع قطع شدن hover */
.nav-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 1050;
  animation: dropdownAnim 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* پل نامرئی هاور برای جلوگیری از بسته شدن منو هنگام حرکت موس */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
}

@keyframes dropdownAnim {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown,
.nav-dropdown:hover { display: flex; }

.dropdown-chevron {
  font-size: 0.62rem;
  margin-right: 4px;
  transition: transform var(--transition-fast);
}

.nav-item:hover .dropdown-chevron {
  transform: rotate(180deg);
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-link:hover {
  background: var(--brand-cyan-light);
  color: var(--brand-teal);
  padding-right: 16px;
}

[data-theme="dark"] .dropdown-link:hover {
  background: rgba(0, 205, 211, 0.15);
  color: var(--brand-cyan);
}

/* اکشن‌های چپ هدر: سبد خرید آیکونی، ورود/ثبت‌نام، تاگل تم */
.nav-actions { display: flex; align-items: center; gap: 8px; }

.nav-cart-icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.nav-cart-icon-btn svg {
  stroke: var(--text-primary);
  transition: stroke var(--transition-fast), transform var(--transition-fast);
}

.nav-cart-icon-btn:hover {
  background: var(--brand-cyan-light);
  border-color: var(--brand-cyan);
  transform: translateY(-2px);
}

.nav-cart-icon-btn:hover svg {
  stroke: var(--brand-teal);
}

[data-theme="dark"] .nav-cart-icon-btn {
  background: var(--bg-elevated);
}

[data-theme="dark"] .nav-cart-icon-btn:hover svg {
  stroke: var(--brand-cyan);
}

.cart-badge-count {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--brand-red);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 1.5px solid var(--bg-surface);
}

.nav-auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--brand-teal-deep) 0%, var(--brand-teal) 100%);
  color: #ffffff;
  border: 1px solid rgba(0, 205, 211, 0.35);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 3px 12px var(--brand-teal-glow);
  white-space: nowrap;
}

.nav-auth-btn:hover {
  background: linear-gradient(135deg, var(--brand-teal) 0%, var(--brand-teal-dark) 100%);
  border-color: var(--brand-cyan);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--brand-teal-glow);
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.theme-toggle-btn:hover {
  background: var(--brand-cyan-light);
  transform: rotate(15deg);
}

.mobile-menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-drawer-header,
.mobile-drawer-actions,
.mobile-slider-dots {
  display: none;
}

/* --------------------------------------------------------------------------
   ۳. بخش هیرو بنتو گرید (Bento Grid Hero) — پر کردن کامل ارتفاع صفحه (Fit to Screen)
   -------------------------------------------------------------------------- */
.hero-bento-section {
  padding-block: 6px 24px;
  min-height: calc(100vh - 130px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.hero-bento-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  flex: 1;
}

.bento-top-row {
  display: grid;
  grid-template-columns: 6.8fr 3.2fr;
  gap: 18px;
  align-items: stretch;
}

.hero-slider-card {
  position: relative;
  background: linear-gradient(135deg, #012025 0%, #00454D 55%, #006872 100%);
  border-radius: var(--radius-xl);
  padding: 32px 38px 22px 38px;
  color: #ffffff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  border: 1px solid rgba(0, 205, 211, 0.35);
}

.hero-slider-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(0, 205, 211, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}

.slider-wrapper {
  position: relative;
  min-height: 180px;
  z-index: 2;
  display: grid;
  align-items: center;
}

.slide-item {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}

.slide-item.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 205, 211, 0.2);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 205, 211, 0.45);
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 800;
  color: #D4FBFD;
  margin-bottom: 12px;
}

.slide-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--brand-cyan);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px var(--brand-cyan);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 205, 211, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(0, 205, 211, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 205, 211, 0); }
}

.slide-title {
  font-size: clamp(1.4rem, 2.3vw, 1.95rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 10px;
  max-width: 650px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

.slide-subtitle {
  font-size: 0.94rem;
  color: #E2ECEE;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 580px;
}

.slide-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-quick-callback-bar {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 205, 211, 0.35);
  border-radius: var(--radius-pill);
  padding: 4px 6px 4px 16px;
  max-width: 440px;
  gap: 8px;
}

.hero-quick-callback-bar input {
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.88rem;
  width: 100%;
  outline: none;
}

.hero-quick-callback-bar input::placeholder {
  color: #B5DADB;
}

.slider-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  z-index: 2;
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slider-dot.active {
  width: 26px;
  border-radius: var(--radius-pill);
  background: var(--brand-cyan);
  box-shadow: 0 0 10px var(--brand-cyan);
}

.slider-nav-btns {
  display: flex;
  gap: 6px;
}

.slider-arrow-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 1rem;
}

.slider-arrow-btn:hover {
  background: var(--brand-cyan);
  color: var(--brand-teal-deep);
}

/* کارت شمارش معکوس پر و چشم‌نواز */
.hero-countdown-card {
  background: var(--bg-surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.hero-countdown-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-yellow));
}

.countdown-sub-block {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.countdown-top-header {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.countdown-badge-pill {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
}

.countdown-badge-pill.master {
  background: var(--brand-cyan-light);
  color: var(--brand-teal);
  border: 1px solid rgba(0, 205, 211, 0.4);
}

[data-theme="dark"] .countdown-badge-pill.master {
  background: rgba(0, 205, 211, 0.2);
  color: var(--brand-cyan);
}

.countdown-badge-pill.phd {
  background: var(--brand-yellow-light);
  color: #926002;
  border: 1px solid var(--brand-yellow-border);
}

[data-theme="dark"] .countdown-badge-pill.phd {
  background: rgba(255, 180, 0, 0.18);
  color: #FFDE7A;
}

.countdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 6px 0;
}

.bento-countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.bento-countdown-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.bento-countdown-num {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--brand-teal);
  line-height: 1.1;
}

[data-theme="dark"] .bento-countdown-num { color: var(--brand-cyan); }

.bento-countdown-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 2px;
}

.countdown-quote {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
  padding: 8px 12px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  border-right: 3px solid var(--brand-yellow);
}

.countdown-rate-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--brand-yellow-light);
  border: 1.5px solid var(--brand-yellow-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

[data-theme="dark"] .countdown-rate-box {
  background: rgba(255, 180, 0, 0.12);
}

.rate-number {
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--brand-yellow-dark);
}

[data-theme="dark"] .rate-number { color: var(--brand-yellow); }

.rate-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.4;
}

/* ردیف پایین بنتو (۳ کارت کلیک‌پذیر) */
.bento-bottom-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.bento-card {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
  min-height: 130px;
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-cyan);
}

.bento-card-top { margin-bottom: 12px; }
.bento-icon-badge { font-size: 1.6rem; margin-bottom: 6px; display: inline-block; }
.bento-card-title { font-size: 1.08rem; font-weight: 800; color: var(--text-primary); margin-bottom: 4px; }
.bento-card-subtitle { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.5; }

.roadmap-preview-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.roadmap-progress-line {
  height: 6px;
  background: var(--border-subtle);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.roadmap-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-teal), var(--brand-cyan));
  border-radius: var(--radius-pill);
}

.chat-preview-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chat-bubble-user {
  align-self: flex-start;
  background: var(--brand-cyan-light);
  color: var(--brand-teal-deep);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 10px 10px 10px 2px;
  max-width: 95%;
}

[data-theme="dark"] .chat-bubble-user {
  background: rgba(0, 205, 211, 0.22);
  color: var(--brand-cyan);
}

.chat-bubble-advisor {
  align-self: flex-end;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.76rem;
  padding: 5px 10px;
  border-radius: 10px 10px 2px 10px;
  max-width: 95%;
}

.chart-preview-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 56px;
}

.chart-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.chart-bar-num {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-muted);
}

.chart-bar-stick {
  width: 16px;
  background: var(--border-medium);
  border-radius: 3px 3px 0 0;
}

.chart-bar-stick.featured {
  background: linear-gradient(180deg, var(--brand-cyan), var(--brand-teal));
}

/* --------------------------------------------------------------------------
   ۴.۱ ویژگی‌های آموزشی
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-cyan);
  box-shadow: var(--shadow-md);
}

.feature-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--brand-cyan-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  padding: 10px;
}

[data-theme="dark"] .feature-icon-wrap {
  background: rgba(0, 205, 211, 0.15);
}

.feature-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   ۴.۲ آزمون‌های آزمایشی
   -------------------------------------------------------------------------- */
.mock-exam-banner {
  background: linear-gradient(135deg, #01272C 0%, #004F57 70%, #006872 100%);
  border: 1px solid rgba(0, 205, 211, 0.35);
  border-radius: var(--radius-xl);
  padding: 44px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  box-shadow: var(--shadow-lg);
}

.mock-exam-content h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  color: #ffffff;
  margin-bottom: 8px;
}

.mock-exam-content p {
  color: #E2ECEE;
  font-size: 0.96rem;
  max-width: 660px;
}

/* --------------------------------------------------------------------------
   ۴.۳ مشاوره و برنامه‌ریزی
   -------------------------------------------------------------------------- */
.consultation-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.consultation-intro h3 {
  font-size: clamp(1.45rem, 2.8vw, 2.1rem);
  line-height: 1.4;
  margin-bottom: 16px;
}

.consultation-intro p {
  margin-bottom: 24px;
}

.consultation-form-card {
  background: var(--bg-surface);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 34px;
  box-shadow: var(--shadow-lg);
}

/* --------------------------------------------------------------------------
   ۱.۳ دوره‌های در حال ثبت‌نام (طراحی یکپارچه و متمایز)
   -------------------------------------------------------------------------- */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.course-card {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-cyan);
}

.course-thumbnail-box {
  position: relative;
  height: 195px;
  overflow: hidden;
  background: var(--bg-elevated);
}

.course-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.course-card:hover .course-thumbnail-img {
  transform: scale(1.06);
}

.course-badge-overlay {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(1, 41, 46, 0.9);
  color: var(--brand-cyan);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 205, 211, 0.35);
}

.course-type-pill {
  position: absolute;
  bottom: 12px;
  left: 14px;
  background: rgba(0, 0, 0, 0.75);
  color: var(--brand-yellow);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 180, 0, 0.4);
}

.course-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.course-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.48;
  margin-bottom: 8px;
}

.course-instructor-info {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.course-pricing {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

/* ۲.۳ کنتراست بالای قیمت خط‌خورده */
.price-original {
  font-size: 0.86rem;
  color: var(--brand-red-dark);
  text-decoration: line-through;
  font-weight: 700;
  opacity: 0.95;
}

[data-theme="dark"] .price-original {
  color: #FF7B7B;
}

.price-current {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--brand-teal);
}

[data-theme="dark"] .price-current { color: var(--brand-cyan); }

/* --------------------------------------------------------------------------
   ۱.۲ بخش نظرات دانشجویان رتبه برتر (Testimonials Section)
   -------------------------------------------------------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-cyan);
}

.testimonial-card::before {
  content: '“';
  position: absolute;
  top: 14px;
  left: 20px;
  font-size: 4.5rem;
  color: var(--border-medium);
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
  opacity: 0.3;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.user-avatar-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2.5px solid var(--brand-yellow);
  object-fit: cover;
  background: var(--bg-elevated);
  box-shadow: 0 4px 12px rgba(255, 180, 0, 0.25);
}

.user-name {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-primary);
}

.user-rank {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--brand-teal);
}

[data-theme="dark"] .user-rank { color: var(--brand-cyan); }

.testimonial-stars {
  color: var(--brand-yellow);
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.testimonial-quote {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   ۱.۴ و ۱.۵ مقالات آموزشی و دوره‌ها (با دکمه مشاهده همه)
   -------------------------------------------------------------------------- */
.courses-header-wrap,
.articles-header-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.article-card {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.article-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-cyan);
}

.article-img-box {
  height: 190px;
  overflow: hidden;
  background: var(--bg-elevated);
}

.article-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .article-thumbnail-img {
  transform: scale(1.06);
}

.article-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.article-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.48;
  margin-bottom: 16px;
}

.article-link {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--brand-teal);
}

[data-theme="dark"] .article-link { color: var(--brand-cyan); }
.article-link:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   ۱.۶ فوتر ساده‌شده ۳ ستونه و آکاردئونی موبایل (Simplified 3-Column Footer)
   -------------------------------------------------------------------------- */
.site-footer {
  background: linear-gradient(180deg, #012429 0%, #011417 100%);
  color: #E2ECEE;
  padding: 56px 0 24px 0;
  border-top: 4px solid var(--brand-cyan);
  margin-top: 60px;
}

.footer-grid-simplified {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-col h5 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 2.5px;
  background: var(--brand-cyan);
  border-radius: var(--radius-pill);
}

.footer-col-brand h4 {
  font-size: 1.3rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-col-brand p {
  font-size: 0.86rem;
  color: #A3C7CB;
  line-height: 1.8;
  margin-bottom: 16px;
}

.footer-contact-info {
  font-size: 0.84rem;
  color: #E2ECEE;
  line-height: 1.85;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.88rem;
  color: #A3C7CB;
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--brand-cyan);
  padding-right: 6px;
}

.footer-badges-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-trust-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 205, 211, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  color: #7AA2A6;
  flex-wrap: wrap;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   دکمه‌ها با انیمیشن‌های شیک (Buttons & CTAs)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 800;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn-sm { padding: 8px 18px; font-size: 0.84rem; }
.btn-lg { padding: 13px 30px; font-size: 0.98rem; }

.btn-cyan, .btn-teal {
  background: linear-gradient(135deg, var(--brand-cyan), #00ADB2);
  color: #01292E;
  box-shadow: 0 4px 16px var(--brand-cyan-glow);
}

.btn-cyan:hover, .btn-teal:hover {
  background: linear-gradient(135deg, #1AF4FA, var(--brand-cyan));
  box-shadow: 0 8px 24px rgba(0, 205, 211, 0.55);
}

.btn-yellow, .btn-gold {
  background: linear-gradient(135deg, var(--brand-yellow), #EAA300);
  color: #1A1300;
  box-shadow: 0 4px 16px rgba(255, 180, 0, 0.35);
}

.btn-yellow:hover, .btn-gold:hover { background: #FFC438; }

.btn-dark {
  background: var(--brand-teal-deep);
  color: #ffffff;
  border: 1px solid rgba(0, 205, 211, 0.35);
}

.btn-dark:hover {
  background: var(--brand-teal);
  border-color: var(--brand-cyan);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: #ffffff;
}

.btn-outline-teal {
  background: var(--brand-cyan-light);
  color: var(--brand-teal);
  border: 1.5px solid rgba(0, 205, 211, 0.4);
}

.btn-outline-teal:hover {
  background: var(--brand-cyan);
  color: var(--brand-teal-deep);
}

[data-theme="dark"] .btn-outline-teal {
  background: rgba(0, 205, 211, 0.15);
  color: var(--brand-cyan);
}

/* --------------------------------------------------------------------------
   مودال و فرم‌ها
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(1, 41, 46, 0.75);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
}

.modal-overlay.active { display: flex; }

.modal-container {
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-float);
  overflow: hidden;
  animation: modalScale 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}

.modal-title { font-size: 1.12rem; font-weight: 800; color: var(--brand-teal); }
[data-theme="dark"] .modal-title { color: var(--brand-cyan); }

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.modal-close-btn:hover { color: var(--brand-red); }
.modal-body { padding: 24px; }
.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  min-height: 46px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-medium);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.92rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 3px var(--brand-cyan-glow);
}

/* --------------------------------------------------------------------------
   ۲.۲ ویجت شناور ارتباط ۳ ثانیه‌ای با عدم تداخل در موبایل
   -------------------------------------------------------------------------- */
.floating-contact-hub {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.floating-contact-panel {
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  border: 1.5px solid var(--brand-cyan);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-float);
  padding: 16px;
  width: 280px;
  display: none;
  flex-direction: column;
  gap: 8px;
  animation: modalScale 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-contact-panel.active { display: flex; }

.contact-panel-header {
  font-size: 0.88rem;
  font-weight: 900;
  color: var(--brand-teal);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

[data-theme="dark"] .contact-panel-header { color: var(--brand-cyan); }

.contact-quick-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.contact-quick-item:hover {
  background: var(--brand-cyan-light);
  border-color: var(--brand-cyan);
  transform: translateX(-4px);
}

[data-theme="dark"] .contact-quick-item:hover {
  background: rgba(0, 205, 211, 0.2);
  color: #ffffff;
}

.contact-quick-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.icon-phone { background: #E6FAFA; color: var(--brand-teal); }
.icon-whatsapp { background: #E8F8F0; color: #10B981; }
.icon-telegram { background: #EBF4FC; color: #0284C7; }

.floating-main-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--brand-teal-deep) 0%, var(--brand-teal) 100%);
  color: #ffffff;
  border: 2px solid var(--brand-cyan);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 22px var(--brand-cyan-glow);
  transition: all var(--transition-normal);
  animation: pulseGlow 3s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(0, 205, 211, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(0, 205, 211, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 205, 211, 0); }
}

.footer-accordion-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}

.footer-accordion-button:disabled { cursor: default; opacity: 1; }
.footer-accordion-button:focus-visible { outline: 2px solid var(--brand-cyan); outline-offset: 4px; }

.floating-main-trigger:hover {
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   اولویت ۳ — واکنش‌گرایی کامل موبایل (Mobile 375px & Tablets)
   -------------------------------------------------------------------------- */
/* The existing desktop navigation needs 1160px including its container gutters. */
@media (max-width: 1160px) {
  .utility-bar { display: none; }
  
  .navbar-wrapper {
    top: 6px;
    margin-bottom: 12px;
    z-index: 2200;
  }

  .navbar-wrapper .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  
  .navbar-pill {
    padding: 6px 12px;
    width: 100%;
  }
  
  .nav-brand {
    gap: 8px;
  }

  .brand-title { font-size: 1.12rem; }
  .brand-emblem { width: 36px; height: 36px; font-size: 1.2rem; }
  .brand-subtitle { display: none; }

  /* دکمه حساب کاربری در هدر موبایل به صورت آیکونی شیک و مینیمال */
  .nav-auth-btn {
    display: flex !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
  }

  .nav-auth-btn span {
    display: none !important;
  }

  .nav-auth-btn svg {
    width: 21px;
    height: 21px;
    stroke: var(--text-primary);
    transition: stroke var(--transition-fast);
  }

  .nav-auth-btn:hover svg {
    stroke: var(--brand-teal);
  }

  /* تنظیمات هدر موبایل: لوگوی متناسب و اکشن‌های کامپکت و خلوت */
  .navbar-pill {
    padding: 6px 12px;
  }

  .brand-logo-img {
    height: 22px;
    max-height: 22px;
    max-width: 155px;
  }

  /* در هدر موبایل ورود و تم مخفی می‌شوند تا هدر خلوت بماند */
  .nav-auth-btn { display: none !important; }
  .theme-toggle-btn { display: none !important; }

  /* اکشن‌های چپ هدر موبایل: فقط سبد خرید + منوی همبرگر */
  .nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .nav-cart-icon-btn {
    background: transparent;
    border: none;
    box-shadow: none;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .cart-badge-count {
    top: -4px;
    right: -4px;
    min-width: 15px;
    height: 15px;
    font-size: 0.6rem;
  }

  .mobile-menu-toggle {
    display: flex;
    background: transparent;
    border: none;
    box-shadow: none;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    padding: 0;
    cursor: pointer;
  }

  /* منوی کشویی موبایل (باز شدن از سمت چپ برگه برای هم‌جهت بودن با دکمه همبرگر) */
  .nav-menu {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    width: 290px !important;
    max-width: 85vw !important;
    height: 100vh !important;
    background: var(--bg-surface) !important;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.28) !important;
    padding: 16px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    z-index: 2300 !important;
    overflow-y: auto !important;
  }

  .nav-menu.mobile-open {
    display: flex !important;
    animation: drawerSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  }

  @keyframes drawerSlideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
  }

  .mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 12px;
  }

  .mobile-drawer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-drawer-actions-left {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-drawer-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border-medium);
    background: var(--bg-subtle);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
  }

  .mobile-drawer-icon-btn:hover {
    background: var(--brand-cyan-light);
    border-color: var(--brand-cyan);
  }

  .mobile-menu-close-btn {
    display: flex !important;
    background: var(--bg-subtle);
    border: 1px solid var(--border-medium);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
  }

  .mobile-menu-close-btn:hover {
    background: var(--brand-red-light);
    color: var(--brand-red);
  }

  .nav-dropdown {
    position: static;
    display: flex;
    box-shadow: none;
    border: 1px solid var(--border-subtle);
    background: var(--bg-subtle);
    padding: 6px 10px;
    margin-top: 4px;
    border-radius: var(--radius-sm);
    min-width: 100%;
  }

  .nav-dropdown::before {
    display: none;
  }

}

@media (max-width: 960px) {
  /* هیرو تک‌ستونه در موبایل */
  .hero-bento-section {
    min-height: auto;
    padding-block: 10px 24px;
  }

  .bento-top-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-slider-card {
    min-height: auto;
    padding: 26px 20px 20px 20px;
  }

  .slide-actions {
    flex-direction: column;
    width: 100%;
  }

  .slide-actions .btn {
    width: 100%;
  }

  .hero-quick-callback-bar {
    width: 100%;
    max-width: 100%;
  }

  .bento-bottom-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* کلاس‌های آمادگی و فرم مشاوره */
  .features-grid {
    grid-template-columns: 1fr;
  }

  .consultation-section-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .consultation-form-card {
    padding: 24px 18px;
  }

  .mock-exam-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 28px 20px;
  }

  .mock-exam-banner .btn {
    width: 100%;
  }

  /* ۱.۶ فوتر آکاردئونی جمع‌شونده در موبایل */
  .footer-grid-simplified {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-col {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
  }

  .footer-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  .footer-accordion-button::after {
    content: '▾';
    font-size: 1.1rem;
    color: var(--brand-cyan);
    transition: transform var(--transition-fast);
  }

  .footer-col.open .footer-accordion-button::after {
    transform: rotate(180deg);
  }

  .footer-accordion-content {
    display: none;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 10px;
  }

  .footer-col.open .footer-accordion-content {
    display: block;
  }

  /* دکمه شناور جمع‌وجور در موبایل بدون تداخل */
  .floating-contact-hub {
    right: 14px;
    bottom: 14px;
  }

  .floating-main-trigger {
    padding: 8px 14px;
    font-size: 0.82rem;
  }

  .floating-contact-panel {
    width: 250px;
  }
}

/* اسلایدر افقی سوایپ‌شونده در موبایل زیر ۶۴۰px */
@media (max-width: 640px) {
  .courses-grid,
  .testimonials-grid,
  .articles-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 14px !important;
    padding: 6px 16px 16px 16px !important;
    margin-left: -20px !important;
    margin-right: -20px !important;
    scrollbar-width: none !important;
  }

  .courses-grid::-webkit-scrollbar,
  .testimonials-grid::-webkit-scrollbar,
  .articles-grid::-webkit-scrollbar {
    display: none !important;
  }

  /* هر کارت دارای عرض ۸۴٪ است تا ۱۵٪ از کارت بعدی دیده شود (Peek) */
  .courses-grid .course-card,
  .testimonials-grid .testimonial-card,
  .articles-grid .article-card {
    flex: 0 0 84% !important;
    max-width: 84% !important;
    width: 84% !important;
    scroll-snap-align: start !important;
    margin-bottom: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }

  /* نقطه‌های ناوبری زیر اسلایدر */
  .mobile-slider-dots {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 14px;
  }

  .mobile-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-medium);
    border: none;
    padding: 0;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
  }

  .mobile-slider-dot.active {
    width: 22px;
    border-radius: var(--radius-pill);
    background: var(--brand-teal);
  }

  [data-theme="dark"] .mobile-slider-dot.active {
    background: var(--brand-cyan);
  }
}

@media (min-width: 1161px) {
  .mobile-menu-close-btn { display: none !important; }
}

@media (min-width: 961px) {
  .footer-accordion-content { display: block !important; }
  .footer-accordion-header::after { display: none !important; }
}

@media (max-width: 480px) {
  .nav-brand { gap: 6px; }
}
  
/* WordPress integration: no changes to the reference design. */
.admin-bar .navbar-wrapper{top:32px}.screen-reader-text,.skip-link:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.skip-link:focus{position:fixed;top:8px;right:8px;z-index:99999;background:white;color:#006872;padding:12px}.negareh-honeypot{position:absolute;left:-10000px;overflow:hidden;width:1px;height:1px}.form-status:empty{display:none}.course-pricing .price{display:flex;flex-direction:column;gap:4px}.course-pricing del{color:var(--text-muted);font-size:.85rem}.course-pricing ins{text-decoration:none;color:var(--brand-teal);font-weight:900}.reference-empty{grid-column:1/-1;padding:36px;text-align:center}.shell{width:min(1240px,calc(100% - 40px));margin-inline:auto}.section{padding-block:48px}.reading-shell{max-width:900px}.prose{line-height:2}.prose p{margin-block:16px}.cards-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.content-card{border:1px solid var(--border-subtle);border-radius:16px;overflow:hidden}.card-body{padding:20px}.card-image img{width:100%;aspect-ratio:16/9;object-fit:cover}.card-bottom{display:flex;justify-content:space-between;margin-top:16px}.search-form{display:flex;gap:8px;max-width:600px;margin:24px auto}.search-form input{flex:1;min-width:0;padding:12px;border:1px solid var(--border-medium);border-radius:8px}.button{padding:12px 20px;border-radius:8px;background:var(--brand-teal);color:white}.entry-header{margin-block:24px}.empty-state{text-align:center}.image-placeholder{display:grid;min-height:180px;place-content:center;background:var(--bg-subtle)}.form-status{font-size:.82rem}.nav-menu .menu-item a{display:block}.nav-menu .sub-menu{display:none}.nav-menu .menu-item:hover>.sub-menu,.nav-menu .menu-item:focus-within>.sub-menu{display:block}.nav-item:focus-within .nav-dropdown{opacity:1;visibility:visible;transform:translateY(0)}@media(max-width:782px){.admin-bar .navbar-wrapper{top:46px}.cards-grid{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
.slider-dot{border:0;padding:0}
.negareh-honeypot{display:none}
.negareh-live-price{display:flex;align-items:center;gap:12px;font-size:1.3rem;font-weight:900;color:var(--brand-teal)}.course-pricing .negareh-live-price del{font-size:.86rem;font-weight:700;color:var(--brand-red-dark);opacity:.95}.course-pricing .negareh-live-price ins{font:inherit;color:inherit;text-decoration:none}[data-theme="dark"] .negareh-live-price{color:var(--brand-cyan)}[data-theme="dark"] .course-pricing .negareh-live-price del{color:#FF7B7B}
.form-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}

/* ==========================================================
   NEGAREH TYPOGRAPHY CONTRACT
   Source of truth: approved local Negareh theme
   Keep icon-font and technical monospace families untouched.
   ========================================================== */

:root {
  --font-main: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif;
}

body,
button,
input,
select,
textarea,
optgroup {
  font-family: var(--font-main);
}

/*
 * Legacy Elementor / Studiare content can inject its own Persian
 * font-family on AI pages. Keep Negareh presentation typography
 * consistent without touching icon-font elements.
 */
body.wp-theme-negareh
  :where(
    main,
    header,
    footer,
    nav,
    section,
    article,
    aside,
    form
  )
  :where(
    h1, h2, h3, h4, h5, h6,
    p, a, span, strong, b, em,
    label, button, input, select, textarea,
    li, dt, dd, blockquote, small
  ):not(
    [class^="fa"],
    [class*=" fa-"],
    [class^="eicon"],
    [class*=" eicon"],
    [class^="dashicons"],
    [class*=" dashicons"],
    [class^="woocommerce-"],
    [class*=" woocommerce-"]
  ) {
  font-family: var(--font-main);
}
