/* ==========================================================================
   خانه آیلتس خلیل نسب - تم مدرن (Modern Theme CSS)
   برگرفته از قالب استاندارد khalilnasab_static و الزامات PRD
   ========================================================================== */

:root {
  --purple-soft: #9b7bb8;        /* بنفش ملایم - رنگ اصلی برند */
  --purple-light: #b59bc9;       /* بنفش روشن */
  --purple-extra-light: #e9e0f0; /* پس‌زمینه لطیف بنفش */
  --yellow-warm: #f9e75c;        /* زرد گرم - دکمه‌های اقدام و تاکید */
  --yellow-soft: #fef7d6;        /* زرد نرم برای بج‌ها و برچسب‌ها */
  --white: #ffffff;              /* سفید */
  --gray-light: #f8f6fa;         /* پس‌زمینه روشن سکشن‌ها */
  --text-dark: #2e1b3a;          /* بنفش تیره برای خوانایی متن‌ها */
  --text-muted: #6b5a77;         /* رنگ متن فرعی */
  --border-light: #f0e9f5;
}

* {
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

body {
  background-color: var(--white);
  color: var(--text-dark);
  overflow-x: clip;
  line-height: 1.8;
}

@supports not (overflow-x: clip) {
  body {
    overflow-x: hidden;
  }
}

html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

html[dir="ltr"] body {
  direction: ltr;
  text-align: left;
}

/* ---------- تایپوگرافی و عناوین ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.3px;
}

.text-purple {
  color: var(--purple-soft) !important;
}

.text-yellow {
  color: #c99e12 !important;
}

.bg-purple-soft {
  background-color: var(--purple-soft) !important;
}

.bg-purple-light {
  background-color: var(--purple-light) !important;
}

.bg-purple-extra-light {
  background-color: var(--purple-extra-light) !important;
}

.bg-yellow-warm {
  background-color: var(--yellow-warm) !important;
}

.bg-yellow-soft {
  background-color: var(--yellow-soft) !important;
}

.bg-gray-light {
  background-color: var(--gray-light) !important;
}

/* ---------- دکمه‌ها ---------- */
.btn-yellow {
  background-color: var(--yellow-warm);
  border: 2px solid var(--yellow-warm);
  color: var(--text-dark);
  border-radius: 40px;
  font-weight: 700;
  padding: 0.5rem 1.8rem;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-yellow:hover, .btn-yellow:focus {
  background-color: #ebd745;
  border-color: #ebd745;
  color: var(--text-dark);
  box-shadow: 0 8px 18px rgba(249, 231, 92, 0.35);
  transform: translateY(-2px);
}

.btn-outline-purple {
  border: 2px solid var(--purple-soft);
  color: var(--purple-soft);
  border-radius: 40px;
  font-weight: 600;
  padding: 0.5rem 1.6rem;
  transition: all 0.25s ease;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-outline-purple:hover, .btn-outline-purple:focus {
  background-color: var(--purple-soft);
  color: #ffffff !important;
  border-color: var(--purple-soft);
  box-shadow: 0 8px 18px rgba(155, 123, 184, 0.25);
  transform: translateY(-2px);
}

.btn-sm-purple {
  background-color: var(--purple-soft);
  color: white !important;
  border-radius: 40px;
  padding: 0.45rem 1.4rem;
  font-weight: 600;
  border: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
}

.btn-sm-purple:hover {
  background-color: #8865a8;
  color: white !important;
  box-shadow: 0 6px 14px rgba(155, 123, 184, 0.3);
  transform: translateY(-1px);
}

.btn-subscribe {
  background-color: var(--purple-soft);
  color: white;
  border-radius: 40px;
  padding: 0.8rem 2rem;
  font-weight: 700;
  border: none;
  transition: all 0.2s ease;
}

.btn-subscribe:hover {
  background-color: #8865a8;
  color: white;
  box-shadow: 0 8px 20px rgba(155, 123, 184, 0.3);
}

/* ---------- نوار ناوبری ثابت و هدر چسبان (Sticky Header & Responsive Navbar) ---------- */
header.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1040;
  width: 100%;
}

.navbar {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 18px rgba(155, 123, 184, 0.12);
  padding: 0.85rem 0;
  border-bottom: 2px solid var(--yellow-warm);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--purple-soft) !important;
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.navbar-brand span {
  color: #cca40b;
  font-weight: 900;
}

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  font-size: 0.92rem;
  margin: 0 0.15rem;
  transition: all 0.2s ease;
  border-radius: 30px;
  padding: 0.35rem 0.65rem !important;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  background-color: var(--purple-extra-light);
  color: var(--purple-soft) !important;
}

@media (max-width: 1200px) and (min-width: 992px) {
  .navbar-brand {
    font-size: 1.15rem;
  }
  .nav-link {
    font-size: 0.84rem;
    padding: 0.3rem 0.45rem !important;
    margin: 0 0.05rem;
  }
}

.navbar .btn-outline-purple {
  padding: 0.35rem 1.1rem;
  font-size: 0.88rem;
}

.navbar .btn-yellow {
  padding: 0.35rem 1.2rem;
  font-size: 0.88rem;
}

/* ساختار ریسپانسیو و شکست تمیز بخش اکشن‌ها / ورود و زبان در نوار ناوبری */
.navbar .navbar-collapse {
  flex-wrap: wrap;
}

@media (max-width: 991.98px) {
  .navbar .navbar-collapse {
    max-height: 80vh;
    overflow-y: auto;
    background-color: var(--white);
    padding: 1rem 1.25rem;
    border-radius: 18px;
    margin-top: 0.75rem;
    box-shadow: 0 10px 30px rgba(155, 123, 184, 0.16);
    border: 1px solid var(--purple-extra-light);
  }
}

.navbar-auth-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
}

@media (max-width: 991.98px) {
  .navbar-auth-section {
    width: 100%;
    margin-top: 0.75rem !important;
    padding-top: 0.75rem;
    border-top: 1px solid var(--purple-extra-light);
    justify-content: flex-start;
  }
}

@media (min-width: 992px) and (max-width: 1250px) {
  .navbar-auth-section {
    width: 100%;
    justify-content: flex-end;
    padding-top: 0.45rem;
    margin-top: 0.35rem !important;
    border-top: 1px dashed rgba(155, 123, 184, 0.15);
  }
}

/* کارت‌های شناور بخش هیرو (Hover effect to bring card to front) */
.hero-floating-card {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, z-index 0.05s ease !important;
  cursor: pointer;
  will-change: transform, box-shadow;
}

.hero-floating-card:hover {
  z-index: 25 !important;
  transform: scale(1.08) rotate(0deg) translateY(-10px) !important;
  box-shadow: 0 35px 65px rgba(155, 123, 184, 0.3), 0 10px 20px rgba(0, 0, 0, 0.06) !important;
}

/* استایل دراپ‌داون راهنما و قوانین در نوار ناوبری */
.navbar .nav-item.dropdown .dropdown-menu {
  border-radius: 18px;
  border: 1px solid var(--purple-extra-light);
  box-shadow: 0 12px 30px rgba(155, 123, 184, 0.15);
  padding: 0.5rem;
  min-width: 190px;
}

.navbar .nav-item.dropdown .dropdown-item {
  border-radius: 12px;
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.navbar .nav-item.dropdown .dropdown-item:hover {
  background-color: var(--purple-extra-light);
  color: var(--purple-soft);
  transform: translateX(-3px);
}

[dir="ltr"] .navbar .nav-item.dropdown .dropdown-item:hover {
  transform: translateX(3px);
}




/* منوی بازشو کاربر (User Dropdown) */
.user-dropdown-toggle {
  background: var(--purple-extra-light);
  border-radius: 30px;
  padding: 0.45rem 1.2rem;
  color: var(--purple-soft);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
}

.user-dropdown-menu {
  border-radius: 20px;
  border: 1px solid var(--purple-extra-light);
  box-shadow: 0 10px 30px rgba(155, 123, 184, 0.15);
  padding: 0.8rem;
  min-width: 200px;
  right: 0 !important;
  left: auto !important;
  text-align: right;
}

.user-dropdown-menu .dropdown-item {
  border-radius: 12px;
  padding: 0.5rem 1rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: 0.2s;
}

.user-dropdown-menu .dropdown-item:hover {
  background-color: var(--purple-extra-light);
  color: var(--purple-soft);
}

/* ---------- بخش هیرو (Hero Section) ---------- */
.hero {
  padding: 5rem 0 4.5rem;
  background: linear-gradient(145deg, var(--white) 0%, var(--purple-extra-light) 100%);
  border-bottom-left-radius: 60px;
  border-bottom-right-radius: 60px;
  margin-bottom: 2rem;
  position: relative;
}

.hero h1 {
  font-weight: 800;
  font-size: 3rem;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 1.5rem;
}

.hero h1 span.gradient-text {
  background: linear-gradient(120deg, var(--purple-soft), #d4a017);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}

.hero p {
  font-size: 1.15rem;
  color: #4f3e5a;
  margin-bottom: 2.2rem;
  line-height: 1.85;
}

.badge-soft {
  background-color: var(--yellow-soft);
  color: #6b4f1a;
  font-weight: 600;
  padding: 0.5rem 1.3rem;
  border-radius: 40px;
  display: inline-block;
  margin-bottom: 1.5rem;
  border-right: 4px solid var(--yellow-warm);
}

.stat-item {
  text-align: center;
  padding: 1.1rem 0.6rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 25px;
  box-shadow: 0 8px 22px rgba(155, 123, 184, 0.08);
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.9);
  transition: transform 0.25s ease;
}

.stat-item:hover {
  transform: translateY(-4px);
}

.stat-number {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--purple-soft);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.92rem;
  color: #5e4a6b;
  font-weight: 500;
  margin-top: 0.2rem;
}

/* کارت‌های شناور هیرو */
.floating-hero-card {
  position: absolute;
  border-radius: 30px;
  padding: 1.6rem;
  border: 2px solid white;
  transition: transform 0.3s ease;
}

.floating-hero-card:hover {
  transform: scale(1.03);
}

/* ---------- عناوین سکشن‌ها ---------- */
.section-title {
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* ---------- کارت ویژگی‌ها (Features) ---------- */
.feature-card {
  background: var(--white);
  border-radius: 30px;
  padding: 2.2rem 1.6rem;
  box-shadow: 0 10px 30px rgba(155, 123, 184, 0.08);
  transition: all 0.25s ease;
  border: 1px solid var(--purple-extra-light);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 42px rgba(155, 123, 184, 0.16);
  border-color: var(--yellow-warm);
}

.feature-icon {
  background: var(--purple-extra-light);
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--purple-soft);
  font-size: 2rem;
  transition: transform 0.25s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.08) rotate(4deg);
  background-color: var(--yellow-soft);
  color: #9c7b12;
}

.feature-card h5 {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
  font-size: 1.25rem;
}

.feature-card p {
  color: #5e4a6b;
  line-height: 1.75;
  font-size: 0.98rem;
  margin-bottom: 0;
}

/* ---------- سیستم تعیین سطح (Placement Section) ---------- */
.placement-box {
  background: linear-gradient(135deg, var(--white) 0%, var(--purple-extra-light) 100%);
  border-radius: 40px;
  padding: 2.5rem 2rem;
  box-shadow: 0 15px 35px rgba(155, 123, 184, 0.1);
  border: 2px solid white;
  margin-bottom: 3rem;
}

.step-card {
  background: var(--white);
  border-radius: 28px;
  padding: 2rem 1.8rem;
  box-shadow: 0 8px 24px rgba(155, 123, 184, 0.08);
  border: 2px solid var(--purple-extra-light);
  height: 100%;
  position: relative;
  transition: all 0.25s ease;
}

.step-card:hover {
  border-color: var(--yellow-warm);
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(155, 123, 184, 0.14);
}

.step-number {
  position: absolute;
  top: -16px;
  right: 25px;
  background: var(--yellow-warm);
  color: var(--text-dark);
  font-weight: 800;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(249, 231, 92, 0.5);
  font-size: 1.1rem;
}

/* ---------- کارت‌های پلن‌ها و دوره‌ها (Plans & Courses) ---------- */
.course-card, .plan-card {
  background: var(--white);
  border-radius: 30px;
  padding: 2rem 1.8rem;
  box-shadow: 0 10px 30px rgba(155, 123, 184, 0.07);
  border: 1px solid var(--border-light);
  transition: all 0.25s ease;
  height: 100%;
  border-top: 5px solid var(--yellow-warm);
  display: flex;
  flex-direction: column;
}

.course-card:hover, .plan-card:hover {
  border-top-color: var(--purple-soft);
  box-shadow: 0 20px 40px rgba(155, 123, 184, 0.14);
  transform: translateY(-6px);
}

.plan-card.featured {
  border-top: 5px solid var(--purple-soft);
  background: linear-gradient(180deg, #ffffff 0%, var(--purple-extra-light) 100%);
  border-color: var(--purple-light);
}

.course-level, .plan-badge {
  font-weight: 700;
  color: var(--purple-soft);
  font-size: 0.88rem;
  background: var(--purple-extra-light);
  display: inline-block;
  padding: 0.3rem 1.1rem;
  border-radius: 30px;
  margin-bottom: 0.8rem;
}

.plan-badge.featured-badge {
  background: var(--yellow-warm);
  color: var(--text-dark);
}

.course-title, .plan-title {
  font-weight: 700;
  font-size: 1.35rem;
  margin: 0.5rem 0 0.8rem;
  color: var(--text-dark);
}

.course-desc, .plan-desc {
  color: #5e4a6b;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.4rem;
  flex-grow: 1;
}

.plan-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.plan-features-list li {
  font-size: 0.92rem;
  color: #4f3e5a;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.plan-features-list li i {
  color: var(--purple-soft);
  font-size: 0.85rem;
}

.course-meta, .plan-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-top: 1px dashed #ddd0e8;
  padding-top: 1.2rem;
}

.course-price, .plan-price {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-dark);
}

.course-price small, .plan-price small {
  font-size: 0.8rem;
  font-weight: 400;
  color: #7a6888;
}

/* هشدارهای شرط ثبت‌نام */
.condition-alert {
  background-color: var(--yellow-soft);
  border-right: 5px solid var(--yellow-warm);
  border-radius: 20px;
  padding: 1.2rem 1.6rem;
  color: #4f3e5a;
  margin-top: 2rem;
  font-size: 0.95rem;
}

/* ---------- سکشن اساتید و مؤسس ---------- */
.founder-card {
  background: var(--white);
  border-radius: 35px;
  padding: 2.5rem;
  box-shadow: 0 15px 35px rgba(155, 123, 184, 0.09);
  border: 1px solid var(--purple-extra-light);
}

.founder-img {
  border-radius: 28px;
  box-shadow: 0 12px 30px rgba(155, 123, 184, 0.15);
  max-width: 100%;
}

.teacher-card {
  background: var(--white);
  border-radius: 28px;
  padding: 2rem 1.5rem;
  box-shadow: 0 8px 24px rgba(155, 123, 184, 0.07);
  border: 1px solid var(--purple-extra-light);
  text-align: center;
  transition: all 0.25s ease;
  height: 100%;
}

.teacher-card:hover {
  transform: translateY(-6px);
  border-color: var(--purple-light);
  box-shadow: 0 16px 36px rgba(155, 123, 184, 0.15);
}

.teacher-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--purple-extra-light);
  margin: 0 auto 1.2rem;
  box-shadow: 0 6px 18px rgba(155, 123, 184, 0.12);
}

/* ---------- سوالات متداول (FAQ) ---------- */
.faq-accordion .accordion-item {
  border: 1px solid var(--purple-extra-light);
  border-radius: 22px !important;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 5px 18px rgba(155, 123, 184, 0.05);
  background: var(--white);
}

.faq-accordion .accordion-button {
  background-color: var(--white);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 1.2rem 1.5rem;
  box-shadow: none;
  border-radius: 22px !important;
}

.faq-accordion .accordion-button:not(.collapsed) {
  background-color: var(--purple-extra-light);
  color: var(--purple-soft);
}

.faq-accordion .accordion-body {
  padding: 1.2rem 1.6rem 1.5rem;
  color: #4f3e5a;
  line-height: 1.85;
  font-size: 0.98rem;
}

/* ---------- تماس با ما (Contact) ---------- */
.contact-info-card {
  background: var(--white);
  border-radius: 25px;
  padding: 1.8rem 1.5rem;
  box-shadow: 0 8px 24px rgba(155, 123, 184, 0.07);
  border: 1px solid var(--purple-extra-light);
  text-align: center;
  height: 100%;
}

.contact-info-icon {
  width: 60px;
  height: 60px;
  background: var(--purple-extra-light);
  color: var(--purple-soft);
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.office-notice-box {
  background: var(--yellow-soft);
  border-right: 5px solid var(--yellow-warm);
  border-radius: 20px;
  padding: 1.2rem 1.6rem;
  color: #4f3e5a;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* ---------- هدر صفحات داخلی (Page Header - Rules, Privacy, Bank, etc.) ---------- */
.page-header {
  padding: 4rem 0 3rem;
  background: linear-gradient(145deg, var(--white) 0%, var(--purple-extra-light) 100%);
  border-bottom-left-radius: 60px;
  border-bottom-right-radius: 60px;
  margin-bottom: 2.5rem;
  text-align: center;
}

.page-header h1 {
  font-weight: 800;
  font-size: 2.7rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.page-header h1 span {
  background: linear-gradient(120deg, var(--purple-soft), #d4a017);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}

.page-header p {
  font-size: 1.1rem;
  color: #5e4a6b;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.85;
}

.breadcrumb-custom {
  display: inline-block;
  background: var(--yellow-soft);
  color: #6b4f1a;
  font-weight: 600;
  padding: 0.4rem 1.3rem;
  border-radius: 40px;
  margin-bottom: 1.2rem;
  border-right: 4px solid var(--yellow-warm);
  font-size: 0.9rem;
}

.breadcrumb-custom a {
  color: #6b4f1a;
  text-decoration: none;
}

.breadcrumb-custom a:hover {
  color: var(--purple-soft);
}

/* محتوای قوانین و حریم خصوصی */
.rules-wrapper, .privacy-wrapper {
  background: var(--white);
  border-radius: 40px;
  padding: 2.8rem 2.2rem;
  box-shadow: 0 10px 35px rgba(155, 123, 184, 0.08);
  border: 1px solid var(--purple-extra-light);
  margin-bottom: 3.5rem;
}

.rules-intro, .privacy-intro {
  background: var(--yellow-soft);
  border-radius: 25px;
  padding: 1.6rem 2rem;
  margin-bottom: 2.5rem;
  border-right: 5px solid var(--yellow-warm);
}

.rules-intro p, .privacy-intro p {
  margin-bottom: 0;
  color: #4f3e5a;
  line-height: 1.9;
  font-size: 1rem;
}

.rule-section, .privacy-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px dashed #ddd0e8;
}

.rule-section:last-child, .privacy-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.rule-section h3, .privacy-section h3 {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text-dark);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.rule-section h3 .rule-icon, .privacy-section h3 .privacy-icon {
  background: var(--purple-extra-light);
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-soft);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.rule-section ul, .privacy-section ul {
  padding-right: 1.3rem;
  margin-bottom: 0;
}

.rule-section ul li, .privacy-section ul li {
  margin-bottom: 0.9rem;
  color: #4f3e5a;
  line-height: 1.9;
  position: relative;
  padding-right: 0.4rem;
}

.rule-section ul li::marker, .privacy-section ul li::marker {
  color: var(--purple-soft);
}

.rule-section ul li strong, .privacy-section ul li strong {
  color: var(--text-dark);
}

.highlight-box {
  background: linear-gradient(135deg, var(--purple-extra-light), var(--white));
  border-radius: 25px;
  padding: 1.5rem 1.8rem;
  margin-top: 1.5rem;
  border: 2px solid var(--white);
  box-shadow: 0 8px 20px rgba(155, 123, 184, 0.08);
}

.highlight-box p {
  margin-bottom: 0;
  color: #4f3e5a;
  line-height: 1.9;
}

.highlight-box i {
  color: var(--purple-soft);
  margin-left: 0.4rem;
}

.last-update {
  text-align: center;
  color: #8a7a96;
  font-size: 0.9rem;
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--purple-extra-light);
}

/* ---------- نقل قول / مزیت ---------- */
.testimonial-section {
  background: var(--yellow-soft);
  border-radius: 50px;
  padding: 3rem 2rem;
  margin: 1.5rem 0 0 0;
  border: 2px dashed var(--yellow-warm);
}

.testimonial-text {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.9;
  font-style: italic;
}

.testimonial-author {
  font-weight: 700;
  color: var(--purple-soft);
  margin-top: 1.2rem;
  font-size: 1.05rem;
}

/* ---------- بخش خبرنامه / تماس سریع ---------- */
.newsletter-box {
  background: linear-gradient(135deg, var(--purple-extra-light), var(--white));
  border-radius: 50px;
  padding: 3rem 2rem;
  box-shadow: 0 15px 30px rgba(155, 123, 184, 0.1);
  border: 2px solid var(--white);
}

.newsletter-box h3 {
  font-weight: 800;
  color: var(--text-dark);
}

.newsletter-box .form-control {
  border-radius: 40px;
  padding: 0.8rem 1.5rem;
  border: 2px solid #e2d5ed;
  background: var(--white);
}

.newsletter-box .form-control:focus {
  border-color: var(--purple-soft);
  box-shadow: 0 0 0 0.25rem rgba(155, 123, 184, 0.2);
}

/* ---------- داشبورد زبان‌آموز و ماژول‌ها ---------- */
.class-live-card {
  background: var(--white);
  border-radius: 25px;
  padding: 1.8rem;
  border: 2px solid var(--purple-extra-light);
  box-shadow: 0 8px 24px rgba(155, 123, 184, 0.08);
  margin-bottom: 1.5rem;
  transition: all 0.2s ease;
}

.class-live-card:hover {
  border-color: var(--yellow-warm);
  box-shadow: 0 12px 30px rgba(155, 123, 184, 0.14);
}

.btn-live-class {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white !important;
  border-radius: 30px;
  padding: 0.6rem 1.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(40, 167, 69, 0.3);
  transition: all 0.2s ease;
}

.btn-live-class:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(40, 167, 69, 0.4);
}

.badge-live-pulse {
  background-color: #dc3545;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.85; }
  100% { transform: scale(1); opacity: 1; }
}

/* ---------- کارت تایید پرداخت بانکی ---------- */
.payment-result-card {
  background: var(--white);
  border-radius: 35px;
  padding: 3rem 2.5rem;
  box-shadow: 0 15px 40px rgba(155, 123, 184, 0.12);
  border: 1px solid var(--purple-extra-light);
  max-width: 650px;
  margin: 2rem auto;
  text-align: center;
}

.payment-result-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}

.payment-result-icon.success {
  background-color: #d4edda;
  color: #28a745;
}

.payment-result-icon.failed {
  background-color: #f8d7da;
  color: #dc3545;
}

/* ---------- فوتر سراسری (Global Footer) ---------- */
footer {
  background-color: var(--white);
  border-top: 2px solid var(--purple-extra-light);
  padding: 3rem 0 1.5rem;
  margin-top: 5rem;
  color: #4f3e5a;
}

footer .footer-logo {
  font-weight: 800;
  font-size: 1.55rem;
  color: var(--purple-soft);
  text-decoration: none;
  display: inline-block;
}

footer .footer-logo span {
  color: #cca40b;
}

footer a {
  color: #5e4a6b;
  text-decoration: none;
  transition: 0.2s;
}

footer a:hover {
  color: var(--purple-soft);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--purple-extra-light);
  border-radius: 50%;
  margin: 0 0.3rem;
  color: var(--purple-soft);
  transition: all 0.2s ease;
  text-decoration: none;
}

.social-icon:hover {
  background: var(--yellow-warm);
  color: var(--text-dark);
  transform: translateY(-3px);
}

/* ---------- نمادهای اعتماد و اعتبارات فوتر (Footer Trust Badges) ---------- */
.trust-badges-container {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.trust-badge-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--purple-extra-light, #e7ddf3);
  border-radius: 12px;
  padding: 8px 10px;
  min-width: 82px;
  min-height: 82px;
  box-shadow: 0 3px 10px rgba(110, 68, 150, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}

.trust-badge-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(110, 68, 150, 0.15);
  border-color: var(--purple-soft, #56337a);
}

.trust-badge-card img,
.trust-badge-card.zarinpal img,
.trust-badge-card a img {
  height: 68px;
  max-height: 72px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  cursor: pointer;
  display: block;
  margin: 0 auto;
}

.trust-badge-card.zarinpal a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.trust-badge-caption {
  font-size: 0.78rem;
  color: #7a6888;
  line-height: 1.6;
  margin-top: 0.65rem;
}

@media (min-width: 1200px) {
  .trust-badge-card {
    min-width: 86px;
    min-height: 86px;
    padding: 8px 12px;
  }
  .trust-badge-card img,
  .trust-badge-card.zarinpal img,
  .trust-badge-card a img {
    height: 74px;
    max-height: 78px;
  }
}

/* ---------- ریسپانسیو (Responsive Adjustments) ---------- */
@media (max-width: 991px) {
  .hero {
    padding: 3.5rem 0 2.5rem;
  }
  .hero h1 {
    font-size: 2.4rem;
  }
  .page-header h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1.05rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .page-header {
    padding: 2.8rem 0 2rem;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
  }
  .page-header h1 {
    font-size: 1.9rem;
  }
  .rules-wrapper, .privacy-wrapper {
    padding: 1.8rem 1.2rem;
    border-radius: 25px;
  }
  .rule-section h3, .privacy-section h3 {
    font-size: 1.2rem;
  }
  .rule-section h3 .rule-icon, .privacy-section h3 .privacy-icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
  .testimonial-section {
    padding: 2rem 1.2rem;
    border-radius: 30px;
  }
  .testimonial-text {
    font-size: 1.1rem;
  }
  .newsletter-box {
    padding: 2rem 1.4rem;
    border-radius: 30px;
  }
}
