

/* ------------------------    هدر سایت   -------------------------*/
/* تنظیمات پایه و متغیرهای طراحی */
:root {
  --primary-color: #6d5dfc;
  --primary-dark: #5141e5;
  --secondary-color: #27d3ad;

  --text-color: #172033;
  --muted-text: #697386;

  --header-background: rgba(255, 255, 255, 0.82);
  --page-background: #f5f7ff;
  --border-color: rgba(109, 93, 252, 0.12);

  --header-shadow:
    0 12px 40px rgba(38, 45, 77, 0.08),
    0 2px 10px rgba(38, 45, 77, 0.04);

  --button-shadow: 0 10px 25px rgba(109, 93, 252, 0.25);

  --header-radius: 22px;
  --button-radius: 13px;

  --transition: 250ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ریست اولیه */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;

  color: var(--text-color);
  background:
    radial-gradient(
      circle at 10% 15%,
      rgba(39, 211, 173, 0.13),
      transparent 28%
    ),
    radial-gradient(
      circle at 90% 5%,
      rgba(109, 93, 252, 0.16),
      transparent 30%
    ),
    var(--page-background);

  font-family: "Vazirmatn", Tahoma, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
a {
  font: inherit;
}

/* هدر اصلی */
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;

  width: 100%;
  padding: 18px 24px;
}

/* افکت شیشه‌ای هدر */
.header-container {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: space-between;

  width: min(100%, 1400px);
  min-height: 78px;
  margin-inline: auto;
  padding: 12px 16px 12px 14px;

  background: var(--header-background);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--header-radius);
  box-shadow: var(--header-shadow);

  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

/* خط گرادیانی ظریف پایین هدر */
.header-container::after {
  position: absolute;
  right: 10%;
  bottom: -1px;

  width: 80%;
  height: 1px;

  content: "";
  background: linear-gradient(
    90deg,
    transparent,
    rgba(109, 93, 252, 0.45),
    transparent
  );
}

/* منوی سایت */
.main-navigation {
  display: flex;
  align-items: center;
}

.navigation-list {
  display: flex;
  align-items: center;
  gap: 5px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.navigation-link {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 46px;
  padding-inline: 13px;

  color: var(--muted-text);
  border-radius: 12px;

  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;

  transition:
    color var(--transition),
    background-color var(--transition),
    transform var(--transition);
}

/* خط متحرک زیر گزینه‌های منو */
.navigation-link::after {
  position: absolute;
  right: 50%;
  bottom: 6px;

  width: 0;
  height: 3px;

  content: "";
  border-radius: 50px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );

  transition:
    width var(--transition),
    right var(--transition);
}

.navigation-link:hover,
.navigation-link:focus-visible,
.navigation-link.active {
  color: var(--primary-color);
  background: rgba(109, 93, 252, 0.07);
}

.navigation-link:hover::after,
.navigation-link:focus-visible::after,
.navigation-link.active::after {
  right: 25%;
  width: 50%;
}

.navigation-link:active {
  transform: scale(0.96);
}

/* بخش دکمه‌های ورود و ثبت‌نام */
.authentication {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-right: 20px;
}

.auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  min-width: 92px;
  min-height: 48px;
  padding-inline: 18px;

  border: 1px solid transparent;
  border-radius: var(--button-radius);

  font-size: 14px;
  font-weight: 700;

  transition:
    color var(--transition),
    background-color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

/* دکمه ورود */
.login-button {
  color: var(--primary-color);
  background: rgba(109, 93, 252, 0.06);
  border-color: rgba(109, 93, 252, 0.16);
}

.login-button:hover,
.login-button:focus-visible {
  color: #ffffff;
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* دکمه ثبت‌نام */
/* حالت پیش‌فرض دکمه ثبت‌نام */
.register-button {
 
  direction: ltr;

  color: var(--primary-color);
  background: rgba(109, 93, 252, 0.06);
  border-color: rgba(109, 93, 252, 0.16);
  box-shadow: none;
}

/* حفظ راست‌چین بودن متن فارسی */
.register-button .button-text {
  direction: rtl;
}

/* حالت هاور و فوکوس دکمه ثبت‌نام */
.register-button:hover,
.register-button:focus-visible {
  color: #ffffff;

  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );

  border-color: var(--primary-color);
  box-shadow: var(--button-shadow);
  transform: translateY(-3px);
}

/* حرکت فلش هنگام هاور */
.register-button:hover .button-arrow,
.register-button:focus-visible .button-arrow {
  transform: translateX(-4px);
}

/* نمایش واضح فوکوس برای کاربران کیبورد */
.navigation-link:focus-visible,
.auth-button:focus-visible,
.menu-button:focus-visible {
  outline: 3px solid rgba(109, 93, 252, 0.25);
  outline-offset: 3px;
}

/* دکمه همبرگری در حالت دسکتاپ پنهان است */
.menu-checkbox,
.menu-button {
  display: none;
}

/* محتوای نمایشی صفحه */
.page-content {
  width: min(100% - 40px, 1200px);
  margin-inline: auto;
  

}

.hero-section {
  display: grid;
  place-items: center;
  
  min-height: calc(10vh - 150px);
  padding-block: 70px;

  text-align: center;
}

.hero-badge {
  display: inline-flex;
  padding: 8px 16px;
  
  color: var(--primary-color);
  background: rgba(109, 93, 252, 0.08);
  border: 1px solid rgba(109, 93, 252, 0.12);
  border-radius: 100px;

  font-size: 13px;
  font-weight: 700;
}

.hero-section h1 {
  max-width: 800px;
  margin: 20px 0 16px;
  font-size: 20px;
  /*font-size: clamp(36px, 6vw, 52px);*/
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -2px;
 
}

.hero-section h1 span {
  color: transparent;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  background-clip: text;
  -webkit-background-clip: text;
  
}

.hero-section p {
  max-width: 620px;
  margin: 0;
  
  color: var(--muted-text);

  font-size: clamp(10px, 2vw, 18px);
  line-height: 2;
}

/* تبلت و صفحه‌های متوسط */
@media (max-width: 1100px) {
  .navigation-list {
    gap: 1px;
  }

  .navigation-link {
    padding-inline: 9px;
    font-size: 13px;
  }

  .authentication {
    margin-right: 10px;
  }




}

/* نسخه موبایل */
@media (max-width: 900px) {
  .hero-section h1 span {
font-size: 15px;
  
}

.hero-section p {
  font-size: 10px;
}

  .site-header {
    padding: 12px;
  }

  .header-container {
    min-height: 70px;
    padding: 10px 12px;
  }

  /* دکمه همبرگری */
  .menu-button {
    position: relative;
    z-index: 3;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    width: 46px;
    height: 46px;

    cursor: pointer;
    background: rgba(109, 93, 252, 0.08);
    border: 1px solid rgba(109, 93, 252, 0.13);
    border-radius: 13px;

    transition:
      background-color var(--transition),
      transform var(--transition);
  }

  .menu-button:hover {
    background: rgba(109, 93, 252, 0.14);
  }

  .menu-button span {
    display: block;

    width: 21px;
    height: 2px;

    background: var(--primary-color);
    border-radius: 10px;

    transition:
      transform var(--transition),
      opacity var(--transition);
  }

  /* تبدیل آیکون همبرگری به ضربدر */
  .menu-checkbox:checked + .menu-button span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-checkbox:checked + .menu-button span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .menu-checkbox:checked + .menu-button span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* منوی بازشونده موبایل */
.main-navigation {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: 0;

  visibility: hidden;
  overflow: hidden;

  max-height: 0;
  padding: 0;

  opacity: 0;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(109, 93, 252, 0.1);
  border-radius: 18px;
  box-shadow: var(--header-shadow);

  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);

  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;

  transform: translateY(-12px);

  transition:
    max-height 400ms ease,
    padding 300ms ease,
    opacity 250ms ease,
    visibility 250ms ease,
    transform 300ms ease;
}

.menu-checkbox:checked ~ .main-navigation {
  visibility: visible;

  max-height: calc(100vh - 105px);
  max-height: calc(100dvh - 105px);
  padding: 12px;

  overflow-x: hidden;
  overflow-y: auto;

  opacity: 1;
  transform: translateY(0);
}

  .navigation-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .navigation-link {
    justify-content: flex-start;
    width: 100%;
    padding-inline: 16px;
    font-size: 14px;
  }

  .navigation-link::after {
    display: none;
  }

  .authentication {
    gap: 7px;
    margin-right: auto;
  }

.auth-button {
  width: 100px;
  height: 44px;
  padding: 0 10px;
}

}
@media (max-width: 900px) {
  body:has(.menu-checkbox:checked) {
    overflow: hidden;
  }
}
/* اصلاح منوی موبایل در حالت افقی */
/* اصلاح کامل منوی موبایل در حالت افقی (Landscape) */
/* اصلاح نهایی منوی موبایل در حالت افقی (Landscape) */
@media (max-width: 900px) and (orientation: landscape) {
  /* ۱. بهینه‌سازی ارتفاع هدر در حالت افقی برای حفظ فضا */
  .site-header {
    padding: 6px 12px !important;
  }
  
  .header-container {
    min-height: 58px !important;
    padding: 6px 12px !important;
  }

  /* ۲. بازنشانی دقیق منوی ناوبری */
  .main-navigation {
    position: fixed !important;
    top: 76px !important; /* قرارگیری دقیق زیر هدر اصلاح‌شده */
    right: 12px !important;
    left: 12px !important;
    
    /* حل مشکل غیب شدن گزینه اول با مدیریت صحیح overflow */
    max-height: calc(100dvh - 88px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;

    /* تراز کردن گزینه‌ها از ابتدای منو */
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    
    padding: 8px !important;
    transform: translateY(-10px);
    transition: transform 0.25s ease, opacity 0.2s ease, visibility 0.2s;
  }

  /* ۳. باز شدن صحیح منو */
  .menu-checkbox:checked ~ .main-navigation {
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  /* ۴. اصلاح چیدمان داخلی لیست و عناصر فرزند */
  .navigation-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important; /* حذف هرگونه پدینگ مزاحم که آیتم اول را بالا می‌کشد */
  }

  .navigation-link {
    min-height: 42px !important;
    padding-block: 6px !important;
    margin: 0 !important; /* ریست کردن مارجین‌ها */
  }

  /* اضافه کردن یک فاصله ایمن در انتهای لیست برای اسکرول راحت */
  .navigation-list::after {
    content: "";
    display: block;
    height: 12px;
    width: 100%;
  }
}



/* موبایل‌های کوچک */
@media (max-width: 480px) {
  .header-container {
    border-radius: 18px;
  }

  .authentication {
    gap: 5px;
  }

.auth-button {
  width: 84px;
  height: 42px;
  padding: 0 7px;
  border-radius: 11px;
  font-size: 12px;
}


  .button-arrow {
    display: none;
  }

  .hero-section {
    padding-block: 50px;
  }

  .hero-section h1 {
    letter-spacing: -1px;
    font-size: 40px;
  }
}

/* کاهش انیمیشن برای کاربرانی که این گزینه را فعال کرده‌اند */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}




/*            اسلایدر        */

/* ==========================================================================
   تنظیمات اصلی اسلایدر
   ========================================================================== */

:root {
  --slider-radius: 20px;
  --slider-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);

  --slider-text: #ffffff;
  --slider-text-soft: rgba(255, 255, 255, 0.86);

  --slider-glass: rgba(15, 23, 42, 0.4);
  --slider-glass-border: rgba(255, 255, 255, 0.2);

  --slider-height: 480px;
}

/* جلوگیری از تأثیر box model روی عرض اسلایدر و اجزای داخلی آن */
.hero-slider,
.hero-slider *,
.hero-slider *::before,
.hero-slider *::after {
  box-sizing: border-box;
}

/* کانتینر اصلی */
.hero-slider {
  position: relative;

  width: min(calc(100% - 32px), 1200px);
  height: var(--slider-height);

  margin: 16px auto;

  overflow: hidden;
  isolation: isolate;

  border-radius: var(--slider-radius);
  background: #0f172a;
  box-shadow: var(--slider-shadow);

  /* جلوگیری از حرکت ناخواسته افقی در موبایل */
  touch-action: pan-y;

  /* جلوگیری از انتخاب متن هنگام کشیدن اسلایدر */
  user-select: none;
  -webkit-user-select: none;
}

/* ریل اسلایدها */
.slider-track {
  display: flex;

  width: 100%;
  height: 100%;

  /* برای جلوگیری از برعکس‌شدن ترتیب اسلایدها در صفحات RTL */
  direction: ltr;

  transform: translate3d(0, 0, 0);

  transition:
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);

  will-change: transform;
}

/* هر اسلاید دقیقاً برابر عرض اسلایدر است */
.slide {
  position: relative;

  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  height: 100%;

  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: 40px;

  padding: 40px;

  overflow: hidden;

  color: var(--slider-text);
  direction: ltr;
}

/* پس‌زمینه اختصاصی اسلایدها */
.slide-1 {
  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(129, 140, 248, 0.35),
      transparent 35%
    ),
    linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
}

.slide-2 {
  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(56, 189, 248, 0.25),
      transparent 35%
    ),
    linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.slide-3 {
  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(255, 255, 255, 0.2),
      transparent 35%
    ),
    linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.slide-4 {
  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(99, 102, 241, 0.35),
      transparent 35%
    ),
    linear-gradient(135deg, #111827 0%, #3730a3 100%);
}

/* ==========================================================================
   بخش متنی
   ========================================================================== */

.slide-copy {
  position: relative;
  z-index: 3;

  width: 100%;
  min-width: 0;
  max-width: 620px;
}

/* در صورت فارسی‌شدن متن‌ها، این مقدار را به rtl تغییر دهید */
.slide-copy {
  direction: ltr;
  text-align: left;
}

.slide-badge {
  display: inline-flex;
  align-items: center;

  max-width: 100%;
  padding: 6px 12px;
  margin-bottom: 16px;

  overflow: hidden;

  border: 1px solid var(--slider-glass-border);
  border-radius: 30px;

  background: var(--slider-glass);

  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.slide h2 {
  max-width: 100%;

  margin: 0;
  font-size: 20px;
  color: #ffffff;
  /* font-size: clamp(25px, 3.5vw, 42px); */
  font-weight: 800;
  line-height: 1.25;

  overflow-wrap: anywhere;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.slide p {
  max-width: 580px;

  margin: 16px 0 0;

  color: var(--slider-text-soft);
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.7;

  overflow-wrap: anywhere;
}

/* ==========================================================================
   دکمه‌های داخل اسلاید
   ========================================================================== */

.slide-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;

  margin-top: 24px;
}

.slide-btn {
  min-width: 100px;
  height: 44px;
  padding: 0 20px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid transparent;
  border-radius: 10px;

  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;

  transition:
    transform 200ms ease,
    background-color 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.slide-btn:hover {
  transform: translateY(-2px);
}

.slide-btn:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.65);
  outline-offset: 3px;
}

.slide-btn.primary {
  color: #0f172a;
  background: #ffffff;
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.15);
}

.slide-btn.primary:hover {
  background: #f8fafc;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.slide-btn.secondary {
  color: #ffffff;
  border-color: var(--slider-glass-border);
  background: rgba(255, 255, 255, 0.12);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.slide-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   کادر تصویر و رفع قطعی بیرون‌زدگی
   ========================================================================== */

.slide-media {
  position: relative;
  z-index: 2;

  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  max-height: 400px;

  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;

  background: rgba(15, 23, 42, 0.2);

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

/* تصویر در هیچ شرایطی از والد خود خارج نمی‌شود */
.slide-media img {
  position: absolute;
  inset: 0;

  display: block;

  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;

  margin: 0;

  border: 0;
  border-radius: inherit;

  object-fit: cover;
  object-position: center;

  transform: translateZ(0);
}

/*
اگر می‌خواهید تمام عکس دیده شود و هیچ قسمتی از آن بریده نشود،
فقط object-fit بالا را از cover به contain تغییر دهید:

.slide-media img {
  object-fit: contain;
}

تفاوت:
cover   = تمام کادر پر می‌شود، ولی ممکن است لبه کوچکی از عکس بریده شود.
contain = تمام عکس دیده می‌شود، ولی ممکن است اطراف آن فضای خالی ایجاد شود.
*/

/* ==========================================================================
   فلش‌های قبلی و بعدی
   ========================================================================== */

.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 10;

  width: 42px;
  height: 42px;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  transform: translateY(-50%);

  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;

  color: #ffffff;
  background: rgba(15, 23, 42, 0.42);

  font-family: Arial, sans-serif;
  font-size: 20px;
  line-height: 1;

  cursor: pointer;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  transition:
    background-color 200ms ease,
    transform 200ms ease,
    opacity 200ms ease;
}

.slider-arrow:hover {
  background: rgba(15, 23, 42, 0.7);
}

.slider-arrow:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}

.slider-prev {
  left: 14px;
}

.slider-next {
  right: 14px;
}

/* ==========================================================================
   نشانگرهای پایین اسلایدر
   ========================================================================== */

.slider-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  z-index: 10;

  display: flex;
  align-items: center;
  gap: 7px;

  transform: translateX(-50%);
}

.slider-dot {
  width: 8px;
  height: 8px;
  padding: 0;

  border: 0;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.45);

  cursor: pointer;

  transition:
    width 250ms ease,
    background-color 250ms ease,
    transform 250ms ease;
}

.slider-dot:hover {
  transform: scale(1.2);
  background: rgba(255, 255, 255, 0.75);
}

.slider-dot.active {
  width: 24px;
  background: #ffffff;
}

.slider-dot:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* ==========================================================================
   تبلت عمودی
   ========================================================================== */

@media (max-width: 992px) {
  :root {
    --slider-height: 420px;
  }

  .hero-slider {
    width: min(calc(100% - 28px), 820px);
    border-radius: 18px;
  }

  .slide {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.8fr);
    gap: 24px;
    padding: 30px;
  }

  .slide-media {
    max-height: 340px;
  }

  .slide h2 {
    font-size: clamp(23px, 4vw, 34px);
  }

  .slide-actions {
    margin-top: 18px;
  }
}

/* ==========================================================================
   موبایل و تبلت کوچک ـ حالت عمودی
   ========================================================================== */

@media (max-width: 768px) {
  :root {
    --slider-height: 360px;
  }

  .hero-slider {
    width: min(calc(100% - 24px), 620px);
    margin: 12px auto;

    overflow: hidden;

    border-radius: 16px;
  }

  /*
  در موبایل تصویر پس‌زمینه کامل اسلاید می‌شود.
  این ساختار جلوی افزایش بیش‌ازحد ارتفاع را می‌گیرد.
  */
  .slide {
    display: flex;
    align-items: flex-end;

    padding: 24px 24px 38px;

    overflow: hidden;
  }

  .slide-media {
    position: absolute;
    inset: 0;
    z-index: 1;

    width: 100%;
    height: 100%;
    max-height: none;

    border: 0;
    border-radius: 0;

    box-shadow: none;
  }

  .slide-media img {
    width: 100%;
    height: 100%;

    border-radius: 0;

    object-fit: cover;
    object-position: center;
  }

  /* لایه تیره برای خوانایی نوشته‌ها */
  .slide::after {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 2;

    pointer-events: none;

    background:
      linear-gradient(
        to top,
        rgba(8, 15, 31, 0.96) 0%,
        rgba(8, 15, 31, 0.72) 45%,
        rgba(8, 15, 31, 0.16) 100%
      );
  }

  .slide-copy {
    position: relative;
    z-index: 3;

    width: min(100%, 520px);
    max-width: 100%;
  }

  .slide-badge {
    padding: 4px 9px;
    margin-bottom: 8px;

    font-size: 10px;
  }

  .slide h2 {
    font-size: clamp(18px, 5.2vw, 25px);
    line-height: 1.3;
  }

  .slide p {
    display: -webkit-box;

    margin-top: 7px;

    overflow: hidden;

    font-size: 12.5px;
    line-height: 1.55;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .slide-actions {
    flex-wrap: nowrap;
    gap: 8px;

    margin-top: 13px;
  }

  .slide-btn {
    min-width: 84px;
    height: 34px;
    padding: 0 13px;

    border-radius: 7px;

    font-size: 11.5px;
  }

  .slider-arrow {
    top: 28%;

    width: 36px;
    height: 36px;

    font-size: 16px;
  }

  .slider-prev {
    left: 9px;
  }

  .slider-next {
    right: 9px;
  }

  .slider-dots {
    bottom: 13px;
  }
}

/* ==========================================================================
   موبایل‌های کوچک
   ========================================================================== */

@media (max-width: 480px) {
  :root {
    --slider-height: 310px;
  }

  .hero-slider {
    width: calc(100% - 20px);
    border-radius: 14px;
  }

  .slide {
    padding: 18px 17px 36px;
  }

  .slide h2 {
    font-size: 18px;
  }

  .slide p {
    font-size: 11.5px;
  }

  .slide-btn {
    flex: 1 1 0;
    min-width: 0;
    max-width: 130px;

    height: 32px;
    padding: 0 9px;

    font-size: 10.5px;
  }

  .slider-arrow {
    width: 32px;
    height: 32px;

    opacity: 0.85;
  }
}

/* موبایل‌های بسیار باریک */
@media (max-width: 350px) {
  :root {
    --slider-height: 290px;
  }

  .slide {
    padding-right: 14px;
    padding-left: 14px;
  }

  .slide-badge {
    margin-bottom: 5px;
  }

  .slide h2 {
    font-size: 16px;
  }

  .slide p {
    -webkit-line-clamp: 1;
  }

  .slide-actions {
    margin-top: 9px;
  }
}

/* ==========================================================================
   موبایل و تبلت در حالت افقی
   ========================================================================== */

@media (max-width: 950px) and (orientation: landscape) {
  :root {
    --slider-height: 250px;
  }

  .hero-slider {
    width: min(calc(100% - 28px), 850px);
    margin: 8px auto;

    border-radius: 14px;
  }

  .slide {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(190px, 0.8fr);
    align-items: center;
    gap: 22px;

    padding: 20px 46px 26px;
  }

  /* در حالت افقی تصویر دوباره داخل ستون خودش قرار می‌گیرد */
  .slide-media {
    position: relative;
    inset: auto;
    z-index: 2;

    width: 100%;
    height: 100%;
    max-height: 200px;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
  }

  .slide-media img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    border-radius: inherit;

    object-fit: cover;
  }

  .slide::after {
    display: none;
  }

  .slide-copy {
    z-index: 3;
    align-self: center;
  }

  .slide-badge {
    padding: 3px 8px;
    margin-bottom: 5px;

    font-size: 9px;
  }

  .slide h2 {
    font-size: clamp(17px, 3.2vw, 23px);
    line-height: 1.2;
  }

  .slide p {
    display: -webkit-box;

    margin-top: 6px;

    overflow: hidden;

    font-size: 11px;
    line-height: 1.4;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .slide-actions {
    gap: 7px;
    margin-top: 9px;
  }

  .slide-btn {
    min-width: 76px;
    height: 30px;
    padding: 0 11px;

    border-radius: 6px;

    font-size: 10px;
  }

  .slider-arrow {
    top: 50%;

    width: 31px;
    height: 31px;

    font-size: 14px;
  }

  .slider-dots {
    bottom: 8px;
  }
}

/* موبایل افقی با ارتفاع بسیار کم */
@media (max-width: 950px) and (orientation: landscape) and (max-height: 430px) {
  :root {
    --slider-height: 210px;
  }

  .slide {
    gap: 18px;
    padding-top: 13px;
    padding-bottom: 21px;
  }

  .slide-media {
    max-height: 170px;
  }

  .slide p {
    -webkit-line-clamp: 1;
  }

  .slide-actions {
    margin-top: 7px;
  }
}

/* ==========================================================================
   دسترسی‌پذیری
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .slider-track {
    transition: none;
  }

  .slide-btn,
  .slider-arrow,
  .slider-dot {
    transition: none;
  }
}





/*        تبلت 
   */ 



 


/* =========================================================
   TABLET-ONLY FIX
   Active only between 901px and 1180px
   Mobile and desktop remain untouched
   ========================================================= */
@media screen
  and (min-width: 768px)
  and (max-width: 900px)
  and (orientation: portrait),

screen
  and (min-width: 901px)
  and (max-width: 1366px)
  and (orientation: landscape) {



 

.navigation-link{
 
  margin-right: 15px;
 
}

.auth-button {

margin-left: 15px;

 
}
.navigation-link:hover{
  color: #b4a270;
}
.slide-btn{
  margin-left: 15px;
}

.hero-slider{
  width: 90%;
}


  .menu-button span {
    display: block;
    margin-top: 10px;
    
  }

    /* تبدیل آیکون همبرگری به ضربدر */
  .menu-checkbox:checked + .menu-button span:nth-child(1) {
    transform: translateY(15px) rotate(45deg);
    margin: 0 auto;
  }

  .menu-checkbox:checked + .menu-button span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
    
  }

  .menu-checkbox:checked + .menu-button span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    
  }
}












/* متن بالای اسلایدر */

.matn-slider{
  color: rgb(206, 91, 91);
  margin-top: 60px;
  margin-right: 40px;

   font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
   font-size: 1.5rem;
   
}

.sherkat{
  color: rgb(148, 93, 93);

 
  display: flex;
 
  align-items: center;
  justify-content: center;
  
  font-size: 10px;

 transform: translateY(-10px);
}





/* ----------------------------------------------*/

/* انتخاب یکی از بخش ها */

.section-select-title {
  position: relative;
  width: fit-content;
  max-width: 92%;
  margin: 10px auto -16px;
  padding: 0 18px;
  text-align: center;
  direction: rtl;
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.8;
  color: #eafcff;

  text-shadow:
    0 0 8px rgba(0, 255, 225, 0.55),
    0 0 18px rgba(0, 207, 255, 0.25);

  animation: sectionSelectGlow 2.4s ease-in-out infinite;
}

.section-select-title::before,
.section-select-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 34px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(17, 29, 27, 0.75),
    transparent
  );
  box-shadow: 0 0 12px rgba(67, 77, 75, 0.55);
  opacity: 0.85;
}

.section-select-title::before {
  right: 100%;
}

.section-select-title::after {
  left: 100%;
}

@keyframes sectionSelectGlow {
  0% {
    color: rgba(234, 252, 255, 0.72);
    opacity: 0.72;
    text-shadow:
      0 0 5px rgba(0, 255, 225, 0.25),
      0 0 12px rgba(0, 207, 255, 0.12);
  }

  42% {
    color: #9edd0a;
    opacity: 1;
    text-shadow:
      0 0 9px rgba(0, 255, 225, 0.75),
      0 0 22px rgba(0, 207, 255, 0.45), 
      0 0 34px rgba(0, 255, 225, 0.18);
  }

  70% {
    color: #da7272;
    opacity: 0.92;
    text-shadow:
      0 0 7px rgba(255, 255, 255, 0.45),
      0 0 20px rgba(0, 255, 225, 0.35);
  }

  100% {
    color: rgba(49, 135, 150, 0.72);
    opacity: 0.72;
    text-shadow:
      0 0 5px rgba(0, 255, 225, 0.25),
      0 0 12px rgba(0, 207, 255, 0.12);
  }
}

@media (max-width: 600px) {
  .section-select-title {
    margin: 4px auto -10px;
    padding: 0 12px;
    font-size: 16px;
    line-height: 1.9;
  }

  .section-select-title::before,
  .section-select-title::after {
    width: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-select-title {
    animation: none;
    color: #eafcff;
  }
}



/*   ---------------------- */

/* بخش های مختلف سایت    */

/* کانتینر اصلی - ریسپانسیو */
.cards-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}

/* استایل کارت - ظاهر مدرن و تخت */
.card-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
    background: #111;
}

.card-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.card-title {
    position: absolute;
    top: 20px;
    width: 100%;
    text-align: center;
    color: #fff;
    font-weight: 600;
    z-index: 2;
    pointer-events: none;
}

/* دکمه مدرن - مینیمال و لوکس */
.card-btn {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 25px;
    background-color: #fff;
    color: #000;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* افکت‌ها هنگام هاور */
.card-item:hover img { 
    transform: scale(1.05); 
    opacity: 0.5; 
}

.card-item:hover .card-btn { 
    opacity: 1; 
    bottom: 35px; 
}

.card-btn:hover {
    background-color: #464010;
    color: #fff;
}

/* تنظیمات ریسپانسیو */
@media (max-width: 1024px) {
    .cards-wrapper { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .cards-wrapper { grid-template-columns: 1fr; }
}
