/* تنظیمات پایه و متغیرهای طراحی */
: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;

  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;
   
}







/*      /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////   */

/* بخش اخبار    */


/* =========================================================
   ArabicLand — Categories, News Slider and Article
   تمام کلاس‌ها با arl شروع شده‌اند تا تداخل ایجاد نشود.
========================================================= */

:root {
  --arl-primary: #075e54;
  --arl-primary-dark: #043f39;
  --arl-primary-soft: #e9f8f4;

  --arl-accent: #f5b82e;
  --arl-accent-soft: #fff6dc;

  --arl-blue: #246bfd;
  --arl-red: #e34949;
  --arl-purple: #7c5cff;
  --arl-orange: #f57c28;

  --arl-ink: #111d2c;
  --arl-muted: #697586;
  --arl-border: #e5eaf0;
  --arl-surface: #ffffff;
  --arl-background: #f6f8fb;

  --arl-radius-sm: 12px;
  --arl-radius-md: 18px;
  --arl-radius-lg: 26px;

  --arl-shadow-sm:
    0 8px 24px rgba(16, 24, 40, 0.07);

  --arl-shadow-md:
    0 18px 50px rgba(16, 24, 40, 0.12);

  --arl-container: 1280px;
}

/* جلوگیری از اثرگذاری box-sizing نامناسب */
.arl-news-categories *,
.arl-news-categories *::before,
.arl-news-categories *::after,
.arl-news-section *,
.arl-news-section *::before,
.arl-news-section *::after,
.arl-article-page *,
.arl-article-page *::before,
.arl-article-page *::after {
  box-sizing: border-box;
}

.arl-news-container {
  width: min(
    calc(100% - clamp(32px, 7vw, 96px)),
    var(--arl-container)
  );

  margin-inline: auto;
}

/* =========================================================
   Category buttons
========================================================= */

.arl-news-categories {
  position: relative;
  z-index: 2;

  padding-block: clamp(48px, 7vw, 88px) 28px;

  direction: rtl;
  background: var(--arl-surface);
}

.arl-categories-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 24px;

  margin-bottom: 24px;
}

.arl-section-kicker {
  display: inline-flex;
  align-items: center;

  gap: 9px;

  margin-bottom: 7px;

  color: var(--arl-primary);

  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.arl-section-kicker::before {
  content: "";

  width: 22px;
  height: 3px;

  border-radius: 999px;
  background: var(--arl-accent);
}

.arl-categories-heading h2,
.arl-news-title-group h2 {
  margin: 0;

  color: var(--arl-ink);

  font-size: clamp(25px, 3vw, 39px);
  font-weight: 900;
  line-height: 1.25;
}

.arl-categories-heading > p {
  max-width: 310px;

  margin: 0;

  color: var(--arl-muted);

  font-size: 14px;
  line-height: 1.8;
}

.arl-category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));

  gap: 14px;
}

.arl-category-button {
  --arl-category-color: var(--arl-primary);
  --arl-category-bg: var(--arl-primary-soft);

  position: relative;
  isolation: isolate;

  display: flex;
  align-items: center;

  min-width: 0;
  min-height: 92px;

  gap: 12px;

  padding: 15px;

  overflow: hidden;

  color: var(--arl-ink);
  text-decoration: none;

  border: 1px solid var(--arl-border);
  border-radius: var(--arl-radius-md);

  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      #ffffff 62%,
      var(--arl-category-bg) 100%
    );

  box-shadow: var(--arl-shadow-sm);

  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.arl-category-button::before {
  content: "";

  position: absolute;
  z-index: -1;

  top: -45px;
  left: -45px;

  width: 110px;
  height: 110px;

  border-radius: 50%;

  background: var(--arl-category-bg);

  opacity: 0.75;
  transform: scale(0.6);

  transition:
    transform 350ms ease,
    opacity 350ms ease;
}

.arl-category-button:hover {
  border-color: color-mix(
    in srgb,
    var(--arl-category-color) 35%,
    transparent
  );

  box-shadow: var(--arl-shadow-md);

  transform: translateY(-5px);
}

.arl-category-button:hover::before {
  opacity: 1;
  transform: scale(1.45);
}

.arl-category-button:focus-visible {
  outline: 3px solid
    color-mix(
      in srgb,
      var(--arl-category-color) 35%,
      transparent
    );

  outline-offset: 4px;
}

.arl-category-button--culture {
  --arl-category-color: #8b5cf6;
  --arl-category-bg: #f1edff;
}

.arl-category-button--politics {
  --arl-category-color: #0d6076;
  --arl-category-bg: #e8f6f8;
}

.arl-category-button--economy {
  --arl-category-color: #16a06d;
  --arl-category-bg: #e7f9f1;
}

.arl-category-button--technology {
  --arl-category-color: #246bfd;
  --arl-category-bg: #eaf1ff;
}

.arl-category-button--sport {
  --arl-category-color: #ec6e22;
  --arl-category-bg: #fff0e6;
}

.arl-category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 46px;

  width: 46px;
  height: 46px;

  color: var(--arl-category-color);

  border: 1px solid
    color-mix(
      in srgb,
      var(--arl-category-color) 14%,
      transparent
    );

  border-radius: 15px;
  background: var(--arl-category-bg);

  transition:
    color 220ms ease,
    background-color 220ms ease,
    transform 220ms ease;
}

.arl-category-button:hover .arl-category-icon {
  color: #ffffff;
  background: var(--arl-category-color);
  transform: rotate(-5deg) scale(1.05);
}

.arl-category-icon svg {
  width: 23px;
  height: 23px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.arl-category-content {
  display: flex;
  flex: 1;
  flex-direction: column;

  min-width: 0;

  gap: 3px;
}

.arl-category-content strong {
  overflow: hidden;

  font-size: 14px;
  font-weight: 900;
  line-height: 1.55;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.arl-category-content small {
  overflow: hidden;

  color: var(--arl-muted);

  font-size: 11px;
  font-weight: 600;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.arl-category-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 27px;

  width: 27px;
  height: 27px;

  color: var(--arl-category-color);

  border-radius: 50%;
  background: var(--arl-category-bg);

  font-size: 16px;
  font-weight: 900;

  transition:
    color 220ms ease,
    background-color 220ms ease,
    transform 220ms ease;
}

.arl-category-button:hover .arl-category-arrow {
  color: #ffffff;
  background: var(--arl-category-color);
  transform: translateX(-3px);
}

/* =========================================================
   News slider
========================================================= */

.arl-news-section {
  position: relative;

  padding-block: clamp(48px, 7vw, 92px);

  overflow: hidden;

  direction: rtl;

  background:
    radial-gradient(
      circle at 8% 5%,
      rgba(36, 107, 253, 0.08),
      transparent 24%
    ),
    radial-gradient(
      circle at 92% 100%,
      rgba(7, 94, 84, 0.09),
      transparent 25%
    ),
    var(--arl-background);
}

.arl-news-section::before {
  content: "";

  position: absolute;

  top: 52px;
  right: -105px;

  width: 210px;
  height: 210px;

  border: 1px solid rgba(7, 94, 84, 0.09);
  border-radius: 50%;

  box-shadow:
    0 0 0 25px rgba(7, 94, 84, 0.025),
    0 0 0 50px rgba(7, 94, 84, 0.018);

  pointer-events: none;
}

.arl-news-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 25px;

  margin-bottom: 28px;
}

.arl-news-title-group p {
  max-width: 550px;

  margin: 9px 0 0;

  color: var(--arl-muted);

  font-size: 14px;
  line-height: 1.8;
}

.arl-slider-controls {
  display: flex;
  align-items: center;

  gap: 10px;
}

.arl-slider-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 46px;
  height: 46px;

  margin: 0;
  padding: 0;

  color: var(--arl-ink);

  cursor: pointer;

  border: 1px solid var(--arl-border);
  border-radius: 14px;

  background: var(--arl-surface);

  box-shadow: 0 7px 20px rgba(16, 24, 40, 0.07);

  transition:
    color 200ms ease,
    background-color 200ms ease,
    border-color 200ms ease,
    transform 200ms ease,
    opacity 200ms ease;
}

.arl-slider-button:hover:not(:disabled) {
  color: #ffffff;

  border-color: var(--arl-primary);
  background: var(--arl-primary);

  transform: translateY(-3px);
}

.arl-slider-button:focus-visible {
  outline: 3px solid rgba(7, 94, 84, 0.22);
  outline-offset: 4px;
}

.arl-slider-button:disabled {
  opacity: 0.36;
  cursor: not-allowed;
}

.arl-slider-button svg {
  width: 21px;
  height: 21px;

  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.arl-news-slider {
  width: 100%;

  overflow: hidden;

  border-radius: var(--arl-radius-lg);

  outline: none;

  touch-action: pan-y pinch-zoom;
}

.arl-news-slider:focus-visible {
  outline: 3px solid rgba(7, 94, 84, 0.18);
  outline-offset: 7px;
}

.arl-news-track {
  --arl-news-columns: 3;
  --arl-news-gap: 20px;

  display: flex;
  align-items: stretch;

  gap: var(--arl-news-gap);

  transform: translate3d(0, 0, 0);

  transition: transform 580ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.arl-news-track.is-dragging {
  cursor: grabbing;
  transition: none;
}

.arl-news-card {
  flex:
    0
    0
    calc(
      (100% - ((var(--arl-news-columns) - 1) * var(--arl-news-gap)))
      / var(--arl-news-columns)
    );

  min-width: 0;
}

.arl-news-card-link {
  position: relative;

  display: flex;
  flex-direction: column;

  height: 100%;
  min-height: 405px;

  overflow: hidden;

  color: inherit;
  text-decoration: none;

  border: 1px solid rgba(211, 219, 229, 0.85);
  border-radius: var(--arl-radius-lg);

  background: rgba(255, 255, 255, 0.94);

  box-shadow: var(--arl-shadow-sm);

  transition:
    transform 280ms ease,
    border-color 280ms ease,
    box-shadow 280ms ease;
}

.arl-news-card-link:hover {
  border-color: rgba(7, 94, 84, 0.23);

  box-shadow:
    0 22px 54px rgba(16, 24, 40, 0.14);

  transform: translateY(-7px);
}

.arl-news-card-link:focus-visible {
  outline: 3px solid rgba(7, 94, 84, 0.24);
  outline-offset: -3px;
}

.arl-news-image {
  position: relative;

  width: calc(100% - 20px);
  height: 205px;

  margin: 10px 10px 0;

  overflow: hidden;

  border-radius: 18px;

  background: #dfe5eb;
}

.arl-news-image::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(6, 20, 29, 0.42),
      transparent 48%
    );

  pointer-events: none;
}

.arl-news-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.arl-news-card-link:hover .arl-news-image img {
  transform: scale(1.065);
}

.arl-news-category,
.arl-news-read-time {
  position: absolute;
  z-index: 2;

  top: 13px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 30px;

  padding: 5px 11px;

  color: #ffffff;

  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 999px;

  background: rgba(10, 24, 34, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  font-size: 11px;
  font-weight: 800;
}

.arl-news-category {
  right: 13px;
}

.arl-news-read-time {
  left: 13px;
}

.arl-news-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;

  padding: 18px 21px 20px;
}

.arl-news-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 8px;

  margin-bottom: 10px;

  color: var(--arl-muted);

  font-size: 11px;
  font-weight: 650;
}

.arl-news-meta > span[aria-hidden="true"] {
  width: 4px;
  height: 4px;

  border-radius: 50%;
  background: var(--arl-accent);
}

.arl-news-card-body h3 {
  display: -webkit-box;

  margin: 0;

  overflow: hidden;

  color: var(--arl-ink);

  font-size: clamp(16px, 1.45vw, 19px);
  font-weight: 900;
  line-height: 1.65;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;

  transition: color 200ms ease;
}

.arl-news-card-link:hover .arl-news-card-body h3 {
  color: var(--arl-primary);
}

.arl-news-card-body p {
  display: -webkit-box;

  margin: 9px 0 16px;

  overflow: hidden;

  color: var(--arl-muted);

  font-size: 12.5px;
  line-height: 1.85;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.arl-news-more {
  display: inline-flex;
  align-items: center;

  width: fit-content;

  gap: 7px;

  margin-top: auto;

  color: var(--arl-primary);

  font-size: 12px;
  font-weight: 900;
}

.arl-news-more svg {
  width: 17px;
  height: 17px;

  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;

  transition: transform 220ms ease;
}

.arl-news-card-link:hover .arl-news-more svg {
  transform: translateX(-4px);
}

/* Slider footer */

.arl-slider-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 22px;

  margin-top: 25px;
}

.arl-slider-dots {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 7px;
}

.arl-slider-dot {
  width: 8px;
  height: 8px;

  margin: 0;
  padding: 0;

  cursor: pointer;

  border: 0;
  border-radius: 999px;

  background: #c6ced8;

  transition:
    width 250ms ease,
    background-color 250ms ease,
    transform 250ms ease;
}

.arl-slider-dot:hover {
  background: #92a0af;
  transform: scale(1.15);
}

.arl-slider-dot.is-active {
  width: 28px;
  background: var(--arl-primary);
}

.arl-slider-dot:focus-visible {
  outline: 3px solid rgba(7, 94, 84, 0.25);
  outline-offset: 3px;
}

.arl-all-news-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  min-height: 45px;

  padding: 10px 17px;

  color: var(--arl-primary);
  text-decoration: none;

  border: 1px solid rgba(7, 94, 84, 0.18);
  border-radius: 13px;

  background: var(--arl-primary-soft);

  font-size: 12px;
  font-weight: 900;

  transition:
    color 200ms ease,
    background-color 200ms ease,
    transform 200ms ease;
}

.arl-all-news-link:hover {
  color: #ffffff;
  background: var(--arl-primary);
  transform: translateY(-2px);
}

.arl-all-news-link svg {
  width: 18px;
  height: 18px;

  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================================
   Article page
========================================================= */

.arl-article-page {
  margin: 0;

  color: var(--arl-ink);

  background:
    linear-gradient(
      180deg,
      #f3f7f8 0,
      #ffffff 460px
    );
}

.arl-article-main {
  width: min(calc(100% - 40px), 1180px);

  margin-inline: auto;
  padding-block: clamp(35px, 6vw, 75px);
}

.arl-article-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 9px;

  margin-bottom: 25px;

  color: var(--arl-muted);

  font-size: 12px;
  font-weight: 650;
}

.arl-article-breadcrumb a {
  color: var(--arl-primary);
  text-decoration: none;
}

.arl-article-breadcrumb a:hover {
  text-decoration: underline;
}

.arl-article {
  width: 100%;
}

.arl-article-header {
  max-width: 920px;

  margin-inline: auto;
  margin-bottom: 33px;

  text-align: center;
}

.arl-article-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 35px;

  margin-bottom: 17px;
  padding: 7px 14px;

  color: var(--arl-primary);
  text-decoration: none;

  border: 1px solid rgba(7, 94, 84, 0.14);
  border-radius: 999px;

  background: var(--arl-primary-soft);

  font-size: 12px;
  font-weight: 900;
}

.arl-article-header h1 {
  margin: 0;

  color: var(--arl-ink);

  font-size: clamp(29px, 4.5vw, 57px);
  font-weight: 950;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.arl-article-lead {
  max-width: 780px;

  margin: 18px auto 24px;

  color: #536173;

  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 1.95;
}

.arl-article-info {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;

  gap: 22px;

  padding-top: 4px;
}

.arl-article-author {
  display: flex;
  align-items: center;

  gap: 10px;

  text-align: right;
}

.arl-author-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 43px;
  height: 43px;

  color: #ffffff;

  border-radius: 14px;

  background:
    linear-gradient(
      135deg,
      var(--arl-primary),
      #18a58d
    );

  font-size: 18px;
  font-weight: 900;
}

.arl-article-author > div {
  display: flex;
  flex-direction: column;

  gap: 2px;
}

.arl-article-author strong {
  font-size: 12px;
  font-weight: 900;
}

.arl-article-author div span {
  color: var(--arl-muted);
  font-size: 10px;
}

.arl-article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 9px;

  color: var(--arl-muted);

  font-size: 11px;
  font-weight: 650;
}

.arl-article-meta > span[aria-hidden="true"] {
  width: 4px;
  height: 4px;

  border-radius: 50%;
  background: var(--arl-accent);
}

.arl-article-hero {
  width: 100%;

  margin: 0 0 44px;
}

.arl-article-hero img {
  display: block;

  width: 100%;
  max-height: 610px;

  object-fit: cover;

  border-radius: clamp(20px, 3vw, 34px);

  box-shadow:
    0 22px 65px rgba(16, 24, 40, 0.16);
}

.arl-article-hero figcaption {
  margin-top: 12px;

  color: var(--arl-muted);

  font-size: 11px;
  text-align: center;
}

.arl-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  align-items: start;

  gap: clamp(35px, 6vw, 72px);

  max-width: 1050px;

  margin-inline: auto;
}

.arl-article-content {
  min-width: 0;

  color: #283647;

  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 2.25;
}

.arl-article-content > p {
  margin: 0 0 24px;
}

.arl-article-content > p:first-child::first-letter {
  float: right;

  margin: 9px 0 0 10px;

  color: var(--arl-primary);

  font-size: 58px;
  font-weight: 950;
  line-height: 0.75;
}

.arl-article-content h2 {
  margin: 43px 0 16px;

  color: var(--arl-ink);

  font-size: clamp(22px, 2.5vw, 31px);
  font-weight: 950;
  line-height: 1.45;
}

.arl-article-content blockquote {
  position: relative;

  margin: 34px 0;
  padding: 25px 26px 25px 30px;

  color: var(--arl-primary-dark);

  border: 0;
  border-right: 5px solid var(--arl-accent);
  border-radius: 18px;

  background:
    linear-gradient(
      135deg,
      var(--arl-accent-soft),
      #ffffff
    );

  font-size: clamp(16px, 1.75vw, 20px);
  font-weight: 800;
  line-height: 2;
}

.arl-article-content blockquote::before {
  content: "“";

  position: absolute;

  top: 3px;
  left: 19px;

  color: rgba(245, 184, 46, 0.35);

  font-size: 75px;
  font-family: serif;
  line-height: 1;
}

.arl-article-highlight {
  display: flex;
  align-items: flex-start;

  gap: 14px;

  margin: 34px 0;
  padding: 22px;

  border: 1px solid rgba(36, 107, 253, 0.14);
  border-radius: 18px;

  background: #f2f6ff;
}

.arl-highlight-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 38px;

  width: 38px;
  height: 38px;

  color: #ffffff;

  border-radius: 12px;
  background: var(--arl-blue);

  font-size: 20px;
  font-weight: 950;
}

.arl-article-highlight strong {
  display: block;

  margin-bottom: 4px;

  color: var(--arl-blue);

  font-size: 14px;
  font-weight: 950;
}

.arl-article-highlight p {
  margin: 0;

  color: #45566d;

  font-size: 13px;
  line-height: 1.9;
}

/* Vocabulary */

.arl-vocabulary {
  margin-top: 55px;

  overflow: hidden;

  border: 1px solid var(--arl-border);
  border-radius: 22px;

  background: var(--arl-surface);

  box-shadow: var(--arl-shadow-sm);
}

.arl-vocabulary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 21px 24px;

  border-bottom: 1px solid var(--arl-border);

  background:
    linear-gradient(
      135deg,
      var(--arl-primary-soft),
      #ffffff
    );
}

.arl-vocabulary-header div > span {
  display: block;

  margin-bottom: 2px;

  color: var(--arl-primary);

  font-size: 10px;
  font-weight: 900;
}

.arl-vocabulary-header h2 {
  margin: 0;

  font-size: 21px;
}

.arl-vocabulary-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 31px;

  padding: 5px 11px;

  color: var(--arl-primary);

  border-radius: 999px;
  background: #ffffff;

  font-size: 11px;
  font-weight: 900;
}

.arl-vocabulary-table-wrapper {
  width: 100%;

  overflow-x: auto;
}

.arl-vocabulary-table {
  width: 100%;
  min-width: 650px;

  border-spacing: 0;
  border-collapse: collapse;

  font-size: 12px;
  line-height: 1.8;
}

.arl-vocabulary-table th,
.arl-vocabulary-table td {
  padding: 14px 17px;

  text-align: right;

  border-bottom: 1px solid #eef1f4;
}

.arl-vocabulary-table th {
  color: var(--arl-muted);
  background: #fafbfc;

  font-size: 10px;
  font-weight: 900;
}

.arl-vocabulary-table tbody tr {
  transition: background-color 180ms ease;
}

.arl-vocabulary-table tbody tr:hover {
  background: var(--arl-primary-soft);
}

.arl-vocabulary-table tbody tr:last-child td {
  border-bottom: 0;
}

.arl-vocabulary-table td:first-child strong {
  color: var(--arl-primary);
  font-size: 13px;
}

/* Article footer */

.arl-article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  margin-top: 40px;
  padding-top: 25px;

  border-top: 1px solid var(--arl-border);
}

.arl-article-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 7px;

  font-size: 10px;
}

.arl-article-tags > span {
  color: var(--arl-muted);
  font-weight: 800;
}

.arl-article-tags a {
  padding: 5px 9px;

  color: var(--arl-primary);
  text-decoration: none;

  border-radius: 999px;
  background: var(--arl-primary-soft);

  font-weight: 800;
}

.arl-back-to-news {
  display: inline-flex;
  align-items: center;

  flex: 0 0 auto;

  gap: 8px;

  min-height: 43px;

  padding: 9px 15px;

  color: #ffffff;
  text-decoration: none;

  border-radius: 12px;
  background: var(--arl-primary);

  font-size: 11px;
  font-weight: 900;

  transition:
    background-color 200ms ease,
    transform 200ms ease;
}

.arl-back-to-news:hover {
  background: var(--arl-primary-dark);
  transform: translateY(-2px);
}

.arl-back-to-news svg {
  width: 17px;
  height: 17px;

  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Article sidebar */

.arl-article-sidebar {
  position: sticky;
  top: 25px;

  display: grid;

  gap: 16px;
}

.arl-sidebar-card {
  padding: 19px;

  border: 1px solid var(--arl-border);
  border-radius: 18px;

  background: var(--arl-surface);

  box-shadow: var(--arl-shadow-sm);
}

.arl-sidebar-label {
  display: block;

  margin-bottom: 5px;

  color: var(--arl-muted);

  font-size: 10px;
  font-weight: 800;
}

.arl-sidebar-card > strong {
  color: var(--arl-primary);

  font-size: 17px;
  font-weight: 950;
}

.arl-sidebar-card > p {
  margin: 10px 0 0;

  color: var(--arl-muted);

  font-size: 11px;
  line-height: 1.85;
}

.arl-level-progress {
  width: 100%;
  height: 7px;

  margin-top: 13px;

  overflow: hidden;

  border-radius: 999px;
  background: #e9edf2;
}

.arl-level-progress span {
  display: block;

  width: 62%;
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      var(--arl-primary),
      #29b79c
    );
}

.arl-skills-list {
  display: grid;

  gap: 11px;

  margin: 12px 0 0;
  padding: 0;

  list-style: none;
}

.arl-skills-list li {
  display: flex;
  align-items: center;

  gap: 8px;

  color: #3c4a5d;

  font-size: 11px;
  font-weight: 750;
}

.arl-skills-list li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 22px;
  height: 22px;

  color: var(--arl-primary);

  border-radius: 50%;
  background: var(--arl-primary-soft);

  font-size: 11px;
  font-weight: 950;
}

/* =========================================================
   Tablet landscape — 901px تا 1366px
========================================================= */

@media screen
  and (min-width: 901px)
  and (max-width: 1366px)
  and (orientation: landscape) {

  .arl-category-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
  }

  .arl-category-button {
    min-height: 84px;
    padding: 12px;
  }

  .arl-category-icon {
    flex-basis: 40px;

    width: 40px;
    height: 40px;
  }

  .arl-category-content strong {
    font-size: 12px;
  }

  .arl-category-content small {
    display: none;
  }

  .arl-news-track {
    --arl-news-columns: 3;
    --arl-news-gap: 17px;
  }

  .arl-news-card-link {
    min-height: 385px;
  }

  .arl-news-image {
    height: clamp(175px, 17vw, 215px);
  }
}

/* =========================================================
   Tablet portrait — 768px تا 900px
========================================================= */

@media screen
  and (min-width: 768px)
  and (max-width: 900px)
  and (orientation: portrait) {

  .arl-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .arl-category-button:last-child {
    grid-column: 1 / -1;
  }

  .arl-news-track {
    --arl-news-columns: 2;
    --arl-news-gap: 17px;
  }

  .arl-news-card-link {
    min-height: 390px;
  }

  .arl-news-image {
    height: 190px;
  }

  .arl-article-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .arl-article-sidebar {
    position: static;

    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================
   Mobile
========================================================= */

@media screen and (max-width: 767px) {

  .arl-news-container {
    width: min(calc(100% - 28px), var(--arl-container));
  }

  .arl-news-categories {
    padding-block: 42px 20px;
  }

  .arl-categories-heading {
    display: block;

    margin-bottom: 18px;
  }

  .arl-categories-heading > p {
    margin-top: 7px;
  }

  .arl-category-grid {
    display: flex;

    gap: 10px;

    margin-inline: -14px;
    padding: 3px 14px 13px;

    overflow-x: auto;

    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .arl-category-grid::-webkit-scrollbar {
    display: none;
  }

  .arl-category-button {
    flex: 0 0 230px;

    min-height: 78px;

    padding: 12px;

    scroll-snap-align: start;
  }

  .arl-category-icon {
    flex-basis: 41px;

    width: 41px;
    height: 41px;
  }

  .arl-category-content strong {
    font-size: 13px;
  }

  .arl-category-content small {
    font-size: 10px;
  }

  .arl-news-section {
    padding-block: 43px 55px;
  }

  .arl-news-header {
    align-items: center;

    margin-bottom: 20px;
  }

  .arl-news-title-group p {
    display: none;
  }

  .arl-slider-controls {
    gap: 7px;
  }

  .arl-slider-button {
    width: 40px;
    height: 40px;

    border-radius: 12px;
  }

  .arl-news-slider {
    overflow: visible;
  }

  .arl-news-track {
    --arl-news-columns: 1;
    --arl-news-gap: 13px;
  }

  .arl-news-card {
    flex-basis: calc(100% - 27px);
  }

  .arl-news-card-link {
    min-height: 375px;

    border-radius: 21px;
  }

  .arl-news-image {
    height: 188px;

    border-radius: 15px;
  }

  .arl-news-card-body {
    padding: 16px 17px 18px;
  }

  .arl-news-card-body h3 {
    font-size: 16px;
  }

  .arl-news-card-body p {
    margin-block: 7px 13px;

    font-size: 12px;
  }

  .arl-slider-footer {
    align-items: flex-start;
    flex-direction: column;

    margin-top: 21px;
  }

  .arl-slider-dots {
    width: 100%;

    overflow: hidden;
  }

  .arl-all-news-link {
    width: 100%;
  }

  /* Article mobile */

  .arl-article-main {
    width: min(calc(100% - 28px), 1180px);

    padding-block: 25px 50px;
  }

  .arl-article-header {
    text-align: right;
  }

  .arl-article-header h1 {
    font-size: clamp(27px, 8.4vw, 39px);
  }

  .arl-article-lead {
    font-size: 14px;
  }

  .arl-article-info {
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;

    gap: 13px;
  }

  .arl-article-hero {
    margin-bottom: 30px;
  }

  .arl-article-hero img {
    min-height: 220px;

    object-fit: cover;

    border-radius: 20px;
  }

  .arl-article-hero figcaption {
    padding-inline: 7px;

    line-height: 1.7;
    text-align: right;
  }

  .arl-article-layout {
    grid-template-columns: minmax(0, 1fr);

    gap: 35px;
  }

  .arl-article-content {
    font-size: 15px;
    line-height: 2.15;
  }

  .arl-article-content > p:first-child::first-letter {
    font-size: 48px;
  }

  .arl-article-content blockquote {
    padding: 21px 18px;

    font-size: 15px;
  }

  .arl-article-highlight {
    padding: 17px;
  }

  .arl-vocabulary-header {
    padding: 17px;
  }

  .arl-vocabulary-header h2 {
    font-size: 19px;
  }

  .arl-article-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .arl-back-to-news {
    justify-content: center;

    width: 100%;
  }

  .arl-article-sidebar {
    position: static;

    grid-template-columns: minmax(0, 1fr);
  }
}

/* =========================================================
   Mobile landscape
========================================================= */

@media screen
  and (max-width: 900px)
  and (orientation: landscape)
  and (max-height: 600px) {

  .arl-category-grid {
    grid-template-columns: repeat(5, minmax(170px, 1fr));
  }

  .arl-news-track {
    --arl-news-columns: 2;
    --arl-news-gap: 14px;
  }

  .arl-news-card-link {
    min-height: 340px;
  }

  .arl-news-image {
    height: 155px;
  }

  .arl-news-card-body p {
    display: none;
  }

  .arl-article-header h1 {
    font-size: 35px;
  }

  .arl-article-hero img {
    max-height: 390px;
  }
}

/* =========================================================
   Reduced motion
========================================================= */

@media (prefers-reduced-motion: reduce) {

  .arl-category-button,
  .arl-category-button::before,
  .arl-category-icon,
  .arl-category-arrow,
  .arl-slider-button,
  .arl-news-track,
  .arl-news-card-link,
  .arl-news-image img,
  .arl-news-more svg,
  .arl-slider-dot,
  .arl-all-news-link,
  .arl-back-to-news {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}






/*      /////////////////////////////////////////////////////////////////////////////////////////////////////////   */


/* صفحه داخلی اخبار   */ 

/* =========================================================
   ArabicLand Dynamic News Reader
========================================================= */

:root {
  --arl-reader-primary: #075e54;
  --arl-reader-primary-dark: #03463f;
  --arl-reader-primary-soft: #eaf8f5;

  --arl-reader-gold: #e5ad28;
  --arl-reader-gold-soft: #fff8e6;

  --arl-reader-ink: #172231;
  --arl-reader-text: #344254;
  --arl-reader-muted: #748091;
  --arl-reader-border: #e3e9ef;
  --arl-reader-background: #f6f8fa;
  --arl-reader-surface: #ffffff;

  --arl-reader-shadow:
    0 22px 60px rgba(18, 32, 47, 0.1);

  --arl-reader-shadow-soft:
    0 10px 30px rgba(18, 32, 47, 0.07);
}


/* تنظیمات پایه */

.arl-reader-page {
  min-height: 100vh;

  margin: 0;

  color: var(--arl-reader-ink);

  background:
    linear-gradient(
      180deg,
      #f2f7f7 0,
      #ffffff 480px
    );
}

.arl-reader-page *,
.arl-reader-page *::before,
.arl-reader-page *::after {
  box-sizing: border-box;
}

.arl-reader-main {
  width: min(calc(100% - 40px), 1180px);

  margin-inline: auto;

  padding-block:
    clamp(28px, 5vw, 68px)
    clamp(55px, 8vw, 100px);
}


/* Breadcrumb */

.arl-reader-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 9px;

  margin-bottom: 26px;

  color: var(--arl-reader-muted);

  font-size: 12px;
  font-weight: 700;
}

.arl-reader-breadcrumb a {
  color: var(--arl-reader-primary);
  text-decoration: none;
}

.arl-reader-breadcrumb a:hover {
  text-decoration: underline;
}

.arl-reader-breadcrumb span[aria-hidden="true"] {
  color: #b0b9c4;
}


/* حالت بارگذاری */

.arl-reader-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  min-height: 450px;

  gap: 18px;

  color: var(--arl-reader-muted);
}

.arl-reader-loading p {
  margin: 0;

  font-size: 14px;
  font-weight: 800;
}

.arl-reader-loader {
  width: 46px;
  height: 46px;

  border: 4px solid #dfe8e6;
  border-top-color: var(--arl-reader-primary);
  border-radius: 50%;

  animation: arlReaderSpin 800ms linear infinite;
}

@keyframes arlReaderSpin {
  to {
    transform: rotate(360deg);
  }
}


/* حالت خطا */

.arl-reader-error {
  max-width: 620px;

  margin: 80px auto;
  padding: 45px 30px;

  text-align: center;

  border: 1px solid var(--arl-reader-border);
  border-radius: 26px;

  background: var(--arl-reader-surface);

  box-shadow: var(--arl-reader-shadow);
}

.arl-reader-error-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 60px;
  height: 60px;

  color: #ffffff;

  border-radius: 20px;
  background: #df4f4f;

  font-size: 30px;
  font-weight: 950;
}

.arl-reader-error h1 {
  margin: 20px 0 8px;

  font-size: 29px;
}

.arl-reader-error p {
  margin: 0 0 25px;

  color: var(--arl-reader-muted);
  line-height: 1.9;
}

.arl-reader-error a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 46px;

  padding: 10px 20px;

  color: #ffffff;
  text-decoration: none;

  border-radius: 13px;
  background: var(--arl-reader-primary);

  font-weight: 900;
}


/* سربرگ مقاله */

.arl-reader-header {
  max-width: 960px;

  margin-inline: auto;
  margin-bottom: 34px;

  text-align: center;
}

.arl-reader-category-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;

  gap: 9px;

  margin-bottom: 18px;
}

.arl-reader-category,
.arl-reader-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 34px;

  padding: 6px 13px;

  border-radius: 999px;

  font-size: 11px;
  font-weight: 900;
}

.arl-reader-category {
  color: var(--arl-reader-primary);
  text-decoration: none;

  border: 1px solid rgba(7, 94, 84, 0.15);
  background: var(--arl-reader-primary-soft);
}

.arl-reader-level {
  color: #9a6b00;

  border: 1px solid rgba(229, 173, 40, 0.18);
  background: var(--arl-reader-gold-soft);
}

.arl-reader-header h1 {
  max-width: 920px;

  margin: 0 auto;

  color: var(--arl-reader-ink);

  font-size: clamp(31px, 4.5vw, 56px);
  font-weight: 950;
  line-height: 1.38;
  letter-spacing: -0.02em;
}

.arl-reader-summary {
  max-width: 790px;

  margin: 18px auto 24px;

  color: #566577;

  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 2;
}

.arl-reader-information {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;

  gap: 22px;
}

.arl-reader-publisher {
  display: flex;
  align-items: center;

  gap: 10px;

  text-align: right;
}

.arl-reader-publisher-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 43px;
  height: 43px;

  color: #ffffff;

  border-radius: 14px;

  background:
    linear-gradient(
      135deg,
      var(--arl-reader-primary),
      #18aa91
    );

  box-shadow:
    0 10px 22px rgba(7, 94, 84, 0.2);

  font-size: 18px;
  font-weight: 950;
}

.arl-reader-publisher > div {
  display: flex;
  flex-direction: column;

  gap: 2px;
}

.arl-reader-publisher strong {
  font-size: 12px;
  font-weight: 900;
}

.arl-reader-publisher div span {
  color: var(--arl-reader-muted);
  font-size: 10px;
}

.arl-reader-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 9px;

  color: var(--arl-reader-muted);

  font-size: 11px;
  font-weight: 700;
}

.arl-reader-meta > span[aria-hidden="true"] {
  width: 4px;
  height: 4px;

  border-radius: 50%;
  background: var(--arl-reader-gold);
}


/* تصویر اصلی */

.arl-reader-hero {
  width: 100%;

  margin: 0 0 47px;
}

.arl-reader-image-wrapper {
  position: relative;

  width: 100%;
  aspect-ratio: 16 / 8.5;

  overflow: hidden;

  border-radius: clamp(20px, 3vw, 34px);

  background: #dce3e8;

  box-shadow: var(--arl-reader-shadow);
}

.arl-reader-image-wrapper::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(10, 26, 36, 0.3),
      transparent 32%
    );

  pointer-events: none;
}

.arl-reader-image-wrapper img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}

.arl-reader-image-badge {
  position: absolute;
  z-index: 2;

  right: 20px;
  bottom: 18px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 34px;

  padding: 6px 13px;

  color: #ffffff;

  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;

  background: rgba(10, 26, 36, 0.56);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  font-size: 11px;
  font-weight: 900;
}

.arl-reader-hero figcaption {
  margin-top: 12px;

  color: var(--arl-reader-muted);

  font-size: 11px;
  line-height: 1.8;
  text-align: center;
}


/* چیدمان متن و سایدبار */

.arl-reader-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 255px;
  align-items: start;

  gap: clamp(36px, 6vw, 74px);

  max-width: 1060px;

  margin-inline: auto;
}

.arl-reader-content {
  min-width: 0;
}


/* پاراگراف عربی */

.arl-reader-paragraph {
  margin-bottom: 28px;
}

.arl-reader-arabic-text {
  margin: 0;

  color: var(--arl-reader-text);

  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 650;
  line-height: 2.25;
  text-align: justify;
}


/* ترجمه فارسی زیر هر پاراگراف */

.arl-reader-persian-translation {
  position: relative;

  margin: 12px 0 0;
  padding: 15px 18px;

  color: #758093;

  border-right: 3px solid #d7dfe7;
  border-radius: 10px 0 0 10px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(246, 248, 250, 0.9)
    );

  font-size: 13px;
  line-height: 2.05;
  text-align: justify;
}

.arl-reader-persian-translation::before {
  content: "ترجمه";

  display: inline-flex;

  margin-left: 8px;
  padding: 2px 7px;

  color: var(--arl-reader-primary);

  border-radius: 999px;
  background: var(--arl-reader-primary-soft);

  font-size: 9px;
  font-weight: 900;
}


/* میان‌تیتر مقاله */

.arl-reader-content-heading {
  position: relative;

  margin: 45px 0 18px;
  padding-right: 17px;

  color: var(--arl-reader-ink);

  font-size: clamp(22px, 2.5vw, 31px);
  font-weight: 950;
  line-height: 1.5;
}

.arl-reader-content-heading::before {
  content: "";

  position: absolute;

  top: 8px;
  right: 0;

  width: 5px;
  height: calc(100% - 16px);

  border-radius: 999px;

  background:
    linear-gradient(
      var(--arl-reader-gold),
      var(--arl-reader-primary)
    );
}


/* نقل قول */

.arl-reader-quote {
  position: relative;

  margin: 35px 0;
  padding: 26px 28px;

  color: var(--arl-reader-primary-dark);

  border: 1px solid rgba(229, 173, 40, 0.18);
  border-right: 5px solid var(--arl-reader-gold);
  border-radius: 20px;

  background:
    linear-gradient(
      135deg,
      var(--arl-reader-gold-soft),
      #ffffff
    );

  font-size: clamp(16px, 1.7vw, 20px);
  font-weight: 850;
  line-height: 2.1;
}


/* نکته آموزشی */

.arl-reader-tip {
  display: flex;
  align-items: flex-start;

  gap: 14px;

  margin: 40px 0;
  padding: 22px;

  border: 1px solid rgba(7, 94, 84, 0.15);
  border-radius: 20px;

  background:
    linear-gradient(
      135deg,
      var(--arl-reader-primary-soft),
      #ffffff
    );
}

.arl-reader-tip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 42px;

  width: 42px;
  height: 42px;

  color: #ffffff;

  border-radius: 13px;
  background: var(--arl-reader-primary);

  font-size: 13px;
  font-weight: 950;
}

.arl-reader-tip strong {
  display: block;

  margin-bottom: 5px;

  color: var(--arl-reader-primary);

  font-size: 14px;
  font-weight: 950;
}

.arl-reader-tip p {
  margin: 0;

  color: #536376;

  font-size: 12px;
  line-height: 1.95;
}


/* لغات مهم */

.arl-reader-vocabulary {
  margin-top: 55px;

  overflow: hidden;

  border: 1px solid var(--arl-reader-border);
  border-radius: 23px;

  background: var(--arl-reader-surface);

  box-shadow: var(--arl-reader-shadow-soft);
}

.arl-reader-vocabulary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 22px 24px;

  border-bottom: 1px solid var(--arl-reader-border);

  background:
    linear-gradient(
      135deg,
      var(--arl-reader-primary-soft),
      #ffffff
    );
}

.arl-reader-vocabulary-header div > span {
  display: block;

  margin-bottom: 3px;

  color: var(--arl-reader-primary);

  font-size: 10px;
  font-weight: 900;
}

.arl-reader-vocabulary-header h2 {
  margin: 0;

  color: var(--arl-reader-ink);

  font-size: 22px;
  font-weight: 950;
}

.arl-reader-word-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 32px;

  padding: 5px 11px;

  color: var(--arl-reader-primary);

  border: 1px solid rgba(7, 94, 84, 0.1);
  border-radius: 999px;

  background: #ffffff;

  font-size: 10px;
  font-weight: 900;
}

.arl-reader-vocabulary-list {
  width: 100%;
}

.arl-reader-vocabulary-head,
.arl-reader-vocabulary-item {
  display: grid;
  grid-template-columns: 0.85fr 1fr 1.5fr;

  gap: 15px;

  padding: 14px 18px;
}

.arl-reader-vocabulary-head {
  color: var(--arl-reader-muted);

  border-bottom: 1px solid var(--arl-reader-border);
  background: #fafbfc;

  font-size: 10px;
  font-weight: 900;
}

.arl-reader-vocabulary-item {
  align-items: center;

  border-bottom: 1px solid #edf1f4;

  font-size: 12px;
  line-height: 1.8;

  transition: background-color 180ms ease;
}

.arl-reader-vocabulary-item:last-child {
  border-bottom: 0;
}

.arl-reader-vocabulary-item:hover {
  background: var(--arl-reader-primary-soft);
}

.arl-reader-vocabulary-item strong {
  color: var(--arl-reader-primary);

  font-size: 13px;
  font-weight: 950;
}

.arl-reader-vocabulary-item [lang="fa"] {
  color: #586679;

  direction: rtl;
}

.arl-reader-vocabulary-example {
  color: var(--arl-reader-muted);
}


/* برچسب‌ها و دکمه بازگشت */

.arl-reader-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 22px;

  margin-top: 40px;
  padding-top: 25px;

  border-top: 1px solid var(--arl-reader-border);
}

.arl-reader-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 7px;
}

.arl-reader-tag {
  display: inline-flex;
  align-items: center;

  min-height: 29px;

  padding: 4px 10px;

  color: var(--arl-reader-primary);
  text-decoration: none;

  border-radius: 999px;
  background: var(--arl-reader-primary-soft);

  font-size: 10px;
  font-weight: 850;
}

.arl-reader-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  min-height: 44px;

  gap: 8px;

  padding: 9px 16px;

  color: #ffffff;
  text-decoration: none;

  border-radius: 13px;
  background: var(--arl-reader-primary);

  font-size: 11px;
  font-weight: 900;

  transition:
    transform 200ms ease,
    background-color 200ms ease;
}

.arl-reader-back:hover {
  background: var(--arl-reader-primary-dark);
  transform: translateY(-2px);
}

.arl-reader-back svg {
  width: 18px;
  height: 18px;

  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* سایدبار */

.arl-reader-sidebar {
  position: sticky;
  top: 24px;

  display: grid;

  gap: 16px;
}

.arl-reader-sidebar-card {
  padding: 20px;

  border: 1px solid var(--arl-reader-border);
  border-radius: 20px;

  background: rgba(255, 255, 255, 0.94);

  box-shadow: var(--arl-reader-shadow-soft);
}

.arl-reader-sidebar-label {
  display: block;

  margin-bottom: 6px;

  color: var(--arl-reader-muted);

  font-size: 10px;
  font-weight: 850;
}

.arl-reader-sidebar-card > strong {
  color: var(--arl-reader-primary);

  font-size: 17px;
  font-weight: 950;
}

.arl-reader-sidebar-card > p {
  margin: 11px 0 0;

  color: var(--arl-reader-muted);

  font-size: 11px;
  line-height: 1.9;
}

.arl-reader-progress {
  width: 100%;
  height: 7px;

  margin-top: 14px;

  overflow: hidden;

  border-radius: 999px;
  background: #e6ebef;
}

.arl-reader-progress span {
  display: block;

  width: 60%;
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      var(--arl-reader-primary),
      #28b99e
    );
}

.arl-reader-skills {
  display: grid;

  gap: 11px;

  margin: 14px 0 0;
  padding: 0;

  list-style: none;
}

.arl-reader-skills li {
  display: flex;
  align-items: center;

  gap: 8px;

  color: #445267;

  font-size: 11px;
  font-weight: 750;
}

.arl-reader-skills li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 23px;

  width: 23px;
  height: 23px;

  color: var(--arl-reader-primary);

  border-radius: 50%;
  background: var(--arl-reader-primary-soft);

  font-size: 11px;
  font-weight: 950;
}

.arl-reader-copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 43px;

  gap: 8px;

  margin-top: 9px;
  padding: 8px 12px;

  color: var(--arl-reader-primary);

  cursor: pointer;

  border: 1px solid rgba(7, 94, 84, 0.15);
  border-radius: 12px;

  background: var(--arl-reader-primary-soft);

  font: inherit;
  font-size: 11px;
  font-weight: 900;

  transition:
    color 200ms ease,
    background-color 200ms ease;
}

.arl-reader-copy-button:hover {
  color: #ffffff;
  background: var(--arl-reader-primary);
}

.arl-reader-copy-button svg {
  width: 17px;
  height: 17px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}


/* قبلی و بعدی */

.arl-reader-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 18px;

  max-width: 1060px;

  margin: 65px auto 0;
}

.arl-reader-nav-card {
  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: center;

  min-width: 0;
  min-height: 112px;

  gap: 7px;

  padding: 20px 22px;

  overflow: hidden;

  color: var(--arl-reader-ink);
  text-decoration: none;

  border: 1px solid var(--arl-reader-border);
  border-radius: 20px;

  background: var(--arl-reader-surface);

  box-shadow: var(--arl-reader-shadow-soft);

  transition:
    border-color 200ms ease,
    transform 200ms ease,
    box-shadow 200ms ease;
}

.arl-reader-nav-card::before {
  content: "";

  position: absolute;

  top: -60px;
  left: -60px;

  width: 140px;
  height: 140px;

  border-radius: 50%;
  background: var(--arl-reader-primary-soft);

  opacity: 0.75;
}

.arl-reader-nav-card:hover {
  border-color: rgba(7, 94, 84, 0.25);

  box-shadow: var(--arl-reader-shadow);

  transform: translateY(-4px);
}

.arl-reader-nav-card > * {
  position: relative;
  z-index: 1;
}

.arl-reader-nav-card span {
  color: var(--arl-reader-primary);

  font-size: 10px;
  font-weight: 900;
}

.arl-reader-nav-card strong {
  display: -webkit-box;

  overflow: hidden;

  font-size: 14px;
  font-weight: 900;
  line-height: 1.7;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.arl-reader-nav-card--next {
  text-align: left;
}


/* پیام کپی لینک */

.arl-reader-toast {
  position: fixed;
  z-index: 9999;

  right: 50%;
  bottom: 25px;

  padding: 11px 17px;

  color: #ffffff;

  border-radius: 12px;

  background: #16262e;

  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.22);

  opacity: 0;
  visibility: hidden;

  font-size: 12px;
  font-weight: 850;

  transform: translate(50%, 20px);

  transition:
    opacity 220ms ease,
    visibility 220ms ease,
    transform 220ms ease;
}

.arl-reader-toast.is-visible {
  opacity: 1;
  visibility: visible;

  transform: translate(50%, 0);
}


/* =========================================================
   تبلت عمودی
========================================================= */

@media screen
  and (min-width: 768px)
  and (max-width: 900px)
  and (orientation: portrait) {

  .arl-reader-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .arl-reader-sidebar {
    position: static;

    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .arl-reader-image-wrapper {
    aspect-ratio: 16 / 9;
  }
}


/* =========================================================
   تبلت افقی
========================================================= */

@media screen
  and (min-width: 901px)
  and (max-width: 1366px)
  and (orientation: landscape) {

  .arl-reader-main {
    width: min(calc(100% - 64px), 1180px);
  }

  .arl-reader-layout {
    grid-template-columns: minmax(0, 1fr) 230px;

    gap: 42px;
  }

  .arl-reader-header h1 {
    font-size: clamp(35px, 4vw, 50px);
  }
}


/* =========================================================
   موبایل
========================================================= */

@media screen and (max-width: 767px) {

  .arl-reader-main {
    width: min(calc(100% - 28px), 1180px);

    padding-block: 24px 55px;
  }

  .arl-reader-breadcrumb {
    margin-bottom: 20px;
  }

  .arl-reader-header {
    margin-bottom: 25px;

    text-align: right;
  }

  .arl-reader-category-row {
    justify-content: flex-start;
  }

  .arl-reader-header h1 {
    font-size: clamp(27px, 8.5vw, 39px);
    line-height: 1.45;
  }

  .arl-reader-summary {
    margin-block: 13px 20px;

    font-size: 14px;
  }

  .arl-reader-information {
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;

    gap: 13px;
  }

  .arl-reader-hero {
    margin-bottom: 31px;
  }

  .arl-reader-image-wrapper {
    aspect-ratio: 4 / 3;

    border-radius: 19px;
  }

  .arl-reader-image-badge {
    right: 12px;
    bottom: 12px;
  }

  .arl-reader-hero figcaption {
    padding-inline: 7px;

    text-align: right;
  }

  .arl-reader-layout {
    grid-template-columns: minmax(0, 1fr);

    gap: 38px;
  }

  .arl-reader-arabic-text {
    font-size: 15px;
    line-height: 2.2;
    text-align: right;
  }

  .arl-reader-persian-translation {
    font-size: 12px;
    text-align: right;
  }

  .arl-reader-content-heading {
    margin-top: 37px;

    font-size: 22px;
  }

  .arl-reader-tip {
    padding: 17px;
  }

  .arl-reader-vocabulary-header {
    padding: 18px;
  }

  .arl-reader-vocabulary-header h2 {
    font-size: 19px;
  }

  .arl-reader-vocabulary-head {
    display: none;
  }

  .arl-reader-vocabulary-item {
    grid-template-columns: 1fr;

    gap: 7px;

    padding: 16px 18px;
  }

  .arl-reader-vocabulary-item span {
    display: block;
  }

  .arl-reader-vocabulary-item [lang="fa"]::before {
    content: "معنی: ";

    color: var(--arl-reader-muted);

    font-size: 10px;
    font-weight: 850;
  }

  .arl-reader-vocabulary-example::before {
    content: "مثال: ";

    color: var(--arl-reader-muted);

    font-size: 10px;
    font-weight: 850;
  }

  .arl-reader-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .arl-reader-back {
    width: 100%;
  }

  .arl-reader-sidebar {
    position: static;

    grid-template-columns: minmax(0, 1fr);
  }

  .arl-reader-navigation {
    grid-template-columns: minmax(0, 1fr);

    margin-top: 45px;
  }

  .arl-reader-nav-card {
    min-height: 100px;
  }

  .arl-reader-nav-card--next {
    text-align: right;
  }
}


/* =========================================================
   موبایل افقی
========================================================= */

@media screen
  and (max-width: 900px)
  and (orientation: landscape)
  and (max-height: 600px) {

  .arl-reader-header {
    max-width: 760px;
  }

  .arl-reader-header h1 {
    font-size: 34px;
  }

  .arl-reader-image-wrapper {
    max-height: 440px;

    aspect-ratio: 16 / 8;
  }

  .arl-reader-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .arl-reader-sidebar {
    position: static;

    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* کاهش انیمیشن برای کاربران حساس */

@media (prefers-reduced-motion: reduce) {

  .arl-reader-loader {
    animation-duration: 1.8s;
  }

  .arl-reader-back,
  .arl-reader-nav-card,
  .arl-reader-copy-button,
  .arl-reader-toast {
    transition-duration: 0.01ms !important;
  }
}










/*  ////////////////////////////////////////////////////////////////////////////////////////////////////////  */

/* کدهای چت بات */


/* =========================
   ArabicLand Chatbot Widget
   Replace previous chatbot CSS with this block
   ========================= */

:root {
  --arl-chat-primary: #0f62fe;
  --arl-chat-primary-dark: #0b4cd9;
  --arl-chat-secondary: #15b8a6;
  --arl-chat-bg: rgba(10, 18, 38, 0.88);
  --arl-chat-surface: rgba(255, 255, 255, 0.96);
  --arl-chat-border: rgba(255, 255, 255, 0.14);
  --arl-chat-text: #102033;
  --arl-chat-muted: #6b7a90;
  --arl-chat-shadow: 0 24px 80px rgba(2, 10, 28, 0.28);
  --arl-chat-radius: 22px;
  --arl-chat-radius-sm: 16px;
  --arl-chat-font: "Tahoma", "Segoe UI", Arial, sans-serif;
}

#arl-chatbot-container {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99999;
  direction: rtl;
  font-family: var(--arl-chat-font);
  -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 18px 30px rgba(15, 98, 254, 0.18));
}

/* Floating button */
#arl-chatbot-toggle {
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.34), transparent 28%),
    linear-gradient(135deg, var(--arl-chat-primary), var(--arl-chat-secondary));
  box-shadow:
    0 16px 36px rgba(15, 98, 254, 0.34),
    inset 0 1px 0 rgba(255,255,255,0.22);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

#arl-chatbot-toggle::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.35), transparent 55%);
  opacity: 0;
  transition: opacity 0.22s ease;
}

#arl-chatbot-toggle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(21, 184, 166, 0.45);
  animation: arlChatPulse 2.2s infinite;
}

#arl-chatbot-toggle:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow:
    0 20px 48px rgba(15, 98, 254, 0.42),
    0 0 0 6px rgba(15, 98, 254, 0.08);
}

#arl-chatbot-toggle:hover::before {
  opacity: 1;
}

#arl-chatbot-toggle:active {
  transform: scale(0.98);
}

#arl-chatbot-toggle .chat-icon {
  position: relative;
  z-index: 1;
  font-size: 26px;
  line-height: 1;
  transform: translateY(-1px);
}

/* Chat window */
#arl-chatbot-window {
  position: absolute;
  right: 0;
  bottom: 82px;
  width: min(390px, calc(100vw - 36px));
  height: min(620px, calc(100vh - 120px));
  min-height: 420px;
  border-radius: var(--arl-chat-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,250,255,0.97));
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: var(--arl-chat-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform-origin: bottom right;
  animation: arlChatIn 0.24s ease-out;
}

#arl-chatbot-window.hidden {
  display: none;
}

.chat-header {
  position: relative;
  padding: 16px 16px 14px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.22), transparent 30%),
    linear-gradient(135deg, #0f172a, #0f62fe 55%, #15b8a6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chat-header::after {
  content: "";
  position: absolute;
  inset: auto 16px 0 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}

.chat-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.chat-logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255,255,255,0.16);
  box-shadow:
    0 10px 24px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.18);
  flex: 0 0 auto;
}

.chat-info h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-info span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255,255,255,0.86);
}

.chat-info span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.14);
}

#chat-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: rgba(255,255,255,0.12);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease;
  flex: 0 0 auto;
}

#chat-close:hover {
  background: rgba(255,255,255,0.2);
  transform: rotate(8deg) scale(1.04);
}

/* Messages area */
.chat-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background:
    radial-gradient(circle at top, rgba(21,184,166,0.06), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, #f4f7fc 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(15,98,254,0.28) transparent;
}

.chat-body::-webkit-scrollbar {
  width: 8px;
}

.chat-body::-webkit-scrollbar-track {
  background: transparent;
}

.chat-body::-webkit-scrollbar-thumb {
  background: rgba(15, 98, 254, 0.22);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}

.message {
  max-width: 86%;
  padding: 11px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.8;
  word-wrap: break-word;
  white-space: pre-wrap;
  box-shadow: 0 8px 18px rgba(16, 32, 51, 0.06);
  animation: arlMsgIn 0.18s ease-out;
}

.bot-msg {
  align-self: flex-start;
  color: var(--arl-chat-text);
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(16, 32, 51, 0.06);
  border-bottom-left-radius: 6px;
}

.user-msg {
  align-self: flex-end;
  color: #fff;
  background: linear-gradient(135deg, var(--arl-chat-primary), var(--arl-chat-primary-dark));
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom-right-radius: 6px;
}

/* Footer */
.chat-footer {
  padding: 12px;
  background: rgba(255,255,255,0.88);
  border-top: 1px solid rgba(16, 32, 51, 0.08);
  display: flex;
  gap: 10px;
  align-items: center;
}

#chat-input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 1px solid rgba(16, 32, 51, 0.1);
  background: #fff;
  border-radius: 16px;
  padding: 0 14px;
  outline: none;
  font-size: 14px;
  color: var(--arl-chat-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#chat-input::placeholder {
  color: #8a97a8;
}

#chat-input:focus {
  border-color: rgba(15, 98, 254, 0.42);
  box-shadow: 0 0 0 4px rgba(15, 98, 254, 0.12);
}

#chat-send {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--arl-chat-primary), var(--arl-chat-secondary));
  box-shadow: 0 12px 24px rgba(15, 98, 254, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  flex: 0 0 auto;
}

#chat-send:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 16px 28px rgba(15, 98, 254, 0.32);
}

#chat-send:active {
  transform: translateY(0) scale(0.98);
}

#chat-send svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Animations */
@keyframes arlChatPulse {
  0%   { box-shadow: 0 0 0 0 rgba(21,184,166,0.32); }
  70%  { box-shadow: 0 0 0 16px rgba(21,184,166,0); }
  100% { box-shadow: 0 0 0 0 rgba(21,184,166,0); }
}

@keyframes arlChatIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes arlMsgIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablet portrait */
@media (max-width: 1024px) {
  #arl-chatbot-container {
    right: 16px;
    bottom: 16px;
  }

  #arl-chatbot-window {
    width: min(420px, calc(100vw - 32px));
    height: min(600px, calc(100vh - 112px));
  }
}

/* Tablet landscape / smaller heights */
@media (max-width: 900px) and (orientation: landscape) {
  #arl-chatbot-window {
    width: min(430px, calc(100vw - 28px));
    height: min(72vh, 520px);
    min-height: 360px;
  }

  .chat-body {
    padding: 14px;
  }
}

/* Mobile portrait */
@media (max-width: 768px) {
  #arl-chatbot-container {
    right: 12px;
    bottom: 12px;
  }

  #arl-chatbot-toggle {
    width: 58px;
    height: 58px;
  }

  #arl-chatbot-toggle .chat-icon {
    font-size: 24px;
  }

  #arl-chatbot-window {
    right: 0;
    bottom: 74px;
    width: min(100vw - 24px, 420px);
    height: min(78vh, 560px);
    min-height: 390px;
    border-radius: 20px;
  }

  .chat-header {
    padding: 14px 14px 12px;
  }

  .chat-info h4 {
    font-size: 14px;
  }

  .chat-logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .message {
    max-width: 90%;
    font-size: 13px;
  }

  #chat-input,
  #chat-send {
    height: 46px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  #arl-chatbot-container {
    right: 10px;
    bottom: 10px;
  }

  #arl-chatbot-toggle {
    width: 54px;
    height: 54px;
  }

  #arl-chatbot-toggle .chat-icon {
    font-size: 22px;
  }

  #arl-chatbot-window {
    width: calc(100vw - 20px);
    height: min(80vh, 540px);
    min-height: 360px;
    bottom: 68px;
    border-radius: 18px;
  }

  .chat-header {
    padding: 12px 12px 10px;
  }

  .chat-footer {
    padding: 10px;
    gap: 8px;
  }

  #chat-input {
    padding: 0 12px;
    border-radius: 14px;
  }

  #chat-send {
    width: 46px;
    border-radius: 14px;
  }

  .chat-body {
    padding: 12px;
    gap: 8px;
  }

  .message {
    max-width: 94%;
    padding: 10px 12px;
    border-radius: 16px;
  }
}

/* Very small height devices, especially landscape phones */
@media (max-height: 520px) and (orientation: landscape) {
  #arl-chatbot-window {
    height: calc(100vh - 84px);
    min-height: 300px;
    width: min(440px, calc(100vw - 24px));
  }

  .chat-body {
    padding: 12px;
  }

  .message {
    font-size: 13px;
  }

  .chat-footer {
    padding: 8px;
  }
}

/* Reduce motion support */
@media (prefers-reduced-motion: reduce) {
  #arl-chatbot-toggle,
  #arl-chatbot-window,
  #chat-close,
  #chat-send,
  .message {
    animation: none !important;
    transition: none !important;
  }

  #arl-chatbot-toggle::after {
    animation: none !important;
  }
}



/*  //////////////////////////////////////////////////////////////////////////////////  */

/* درباره این صفحه  */

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: none; /* در حالت عادی مخفی است */
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
  transition: all 0.3s ease;
}

.modal-content {
  background: #0f172a; /* سرمه‌ای تیره (Slate-900) */
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f8fafc; /* رنگ متن سفید ملایم */
  width: 100%;
  max-width: 600px;
  border-radius: 20px;
  position: relative;
  padding: 40px 30px;
  transform: translateY(20px);
  animation: modalAnim 0.4s forwards;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

/* تغییر رنگ بستن و متون در حالت تیره */
.modal-close {
  color: #94a3b8;
}
#modalBody h3 {
  color: #38bdf8; /* آبی روشن آسمانی برای عنوان */
  margin-bottom: 15px;
  font-size: 1.5rem;
}
#modalBody p {
  color: #cbd5e1; /* خاکستری ملایم برای خوانایی بهتر متن */
  line-height: 1.8;
  text-align: justify;
}


@keyframes modalAnim {
  to { transform: translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 30px;
  background: none;
  border: none;
  cursor: pointer;
  color: #cabbaa;
}

/* استایل محتوای داخل مدال */
#modalBody h3 { color: #007bff; margin-bottom: 15px; font-size: 1.5rem; }
#modalBody p { line-height: 1.8; color: #555; text-align: justify; }

/* رسپانسیو برای موبایل و تبلت */
@media (max-width: 768px) {
  .modal-content {
    padding: 30px 20px;
    max-height: 90vh;
    overflow-y: auto; /* اگر متن زیاد بود اسکرول شود */
  }
}

/* حالت افقی موبایل */
@media (max-height: 450px) {
  .modal-content {
    padding: 20px;
    max-height: 95vh;
  }
}





/*  ----------------------------------------------------------------------------  */

/* دکمه ورود به صفحه 24 تایی */

.archive-btn-container {
    text-align: center;
    margin: 40px 0;
}

.btn-all-news {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #2980b9, #2c3e50);
    color: #fff;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(41, 128, 185, 0.3);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-all-news:hover {
    background: linear-gradient(135deg, #3498db, #34495e);
    box-shadow: 0 12px 25px rgba(41, 128, 185, 0.4);
    transform: translateY(-3px);
}

.btn-all-news:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(41, 128, 185, 0.3);
}

.btn-all-news svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.btn-all-news:hover svg {
    transform: translateX(-5px); /* حرکت فلش به سمت راست در حالت هاور RTL */
}
