/* ===============================
   تنظیمات پایه
=============================== */
html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  font-size: 16px; /* اندازه فونت پایه */
}

body {
  margin: 0;
  padding: 0;
  font-family: "Vazirmatn", sans-serif;
  font-size: 1rem; /* استفاده از rem برای اندازه فونت */
  background-color: #000;
  color: white;
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

/* تگ main */
main,
.page-content {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  position: relative;
  margin: 0;
  padding: 0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .container {
    width: 100%;
    padding: 0 10px;
  }
}

.title {
  position: relative;
  text-align: center;
  font-size: 2.5rem;
  font-family: "Vazirmatn", sans-serif;
  background-color: #001a44;
  width: fit-content;
  max-width: 90%;
  height: auto;
  min-height: 120px;
  margin: 50px auto;
  padding: 20px;
  -webkit-mask-image: radial-gradient(circle at center, black 60%, transparent 100%);
  mask-image: radial-gradient(circle at center, black 60%, transparent 100%);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 768px) {
  .title {
    font-size: 2.5rem;
    height: auto;
    padding: 15px;
    margin: 30px auto;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 2rem;
    padding: 10px;
    margin: 20px auto;
  }
}

/* ===============================
   هدر و ناوبری
=============================== */
.header {
  background: linear-gradient(90deg, #001433 0%, #003181 100%);
  padding: 15px 0;
  box-shadow: 0 3px 15px rgba(0,0,0,0.4);
  position: relative;
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  width: 150px;
  height: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
  margin: 0;
}

.nav-links li a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: 0.3s;
}

.nav-links li a:hover {
  color: #00aaff;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 1000;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 2px;
  transition: 0.3s;
}

/* منوی موبایل */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 1001;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: rgba(0, 26, 68, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 30px 30px;
    gap: 20px;
    transition: right 0.3s ease;
    z-index: 1000;
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    overflow-y: auto;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }
  
  
  .nav-links li {
    width: 100%;
  }
  
  .nav-links li a {
    display: block;
    padding: 15px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    width: 100%;
  }
  
  .logo img {
    width: 120px;
  }
  
  /* Overlay برای بستن منو */
  body.menu-open {
    overflow: hidden;
  }
}

/* Overlay برای منوی موبایل */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-overlay.active {
  display: block;
  opacity: 1;
}

@media (min-width: 769px) {
  .menu-overlay {
    display: none !important;
  }
}

/* ===============================
   Hero Section
=============================== */
.hero {
  position: relative;
  width: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(to bottom, rgba(0,0,0,0.85), rgba(0,0,0,0.95));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

.hero-content img {
  width: 100%;
  max-width: 1000px;
  height: 500px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.hero-content img:hover {
  transform: scale(1.05);
}

/* ===============================
   موج‌ها
=============================== */
.wave {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 1;
}

.wave svg {
  display: block;
  width: 100%;
  height: 90px;
}

.wave svg path:nth-child(1) {
  filter: drop-shadow(0 -2px 6px rgba(0,30,80,0.6));
}

.wave svg path:nth-child(2) {
  filter: drop-shadow(0 -1px 4px rgba(0,0,0,0.4));
}

.wave-bottom {
  margin-top: -40px; /* فاصله بین موج پایین و hero */
  z-index: 2;
}

/* ===============================
   معرفی (Intro)
=============================== */
.intro {
  text-align: center;
  padding: 80px 20px;
}

.intro h1 {
  font-size: 2.2rem;
  color: #0af;
}

.intro p {
  font-size: 1.2rem;
  color: #ccc;
}

.intro2 h2 {
  text-align: center;
}

@media (max-width: 768px) {
  .intro {
    padding: 50px 15px;
  }
  
  .intro h1 {
    font-size: 1.8rem;
  }
  
  .intro p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .intro {
    padding: 30px 10px;
  }
  
  .intro h1 {
    font-size: 1.5rem;
  }
  
  .intro p {
    font-size: 0.9rem;
  }
}

/* ===============================
   برندها
=============================== */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 3rem;
  justify-content: center;
  align-items: center;
  padding: 5rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* هر آیتم را وسط‌چین می‌کنیم */
.brands-grid a {
  display: flex;
  flex-direction: column;
  align-items: center; /* وسط افقی */
  justify-content: center; /* وسط عمودی */
  text-align: center;
}

.brands-grid a img {
  max-height: 120px;
  max-width: 150px;
  object-fit: contain;
  opacity: 0.9;
  filter: brightness(1.2);
  transition: all 0.4s ease;
}

.brands-grid p {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: #0af;
  margin-top: 1rem;
}

.brands-grid a:hover img {
  transform: scale(1.15);
  opacity: 1;
  filter: brightness(1.4);
}

/* این کلاس شما اشتباه بود—تصحیح شده */
.sr_only {
  display: none; /* اگر فقط برای صفحه‌خوان است */
}

/* ===============================
   اماکن
=============================== */
.places {
  padding: 60px 20px;
  text-align: center;
}

.place-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.place-grid div {
  display: block;
  text-align: center;
}

.place-card {
  background: #001a44;
  border-radius: 12px;
  overflow: hidden;
  width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 768px) {
  .place-grid {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .place-card {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .place-grid {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .place-card {
    width: 100%;
    max-width: 100%;
  }
}

.place-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

.place-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* ===============================
   قیمت‌گذاری
=============================== */
.pricing {
  text-align: center;
  padding: 60px 20px;
  background: #000;
}

.pricing-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.price-card {
  background: #001a44;
  border-radius: 15px;
  width: 250px;
  padding: 20px;
  text-align: center;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .pricing-grid {
    gap: 15px;
  }
  
  .price-card {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .price-card {
    width: 100%;
    padding: 15px;
  }
}

.price-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.price {
  font-size: 1.4rem;
  color: #0af;
  margin: 10px 0;
}

/* ===============================
   کارت‌ها و ماشین‌ها
=============================== */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 4rem 2rem;
  justify-items: center;
}

@media (max-width: 768px) {
  .cars-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  .cars-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem 0.5rem;
  }
}

.car-card {
  width: 100%;
  max-width: 250px;
  background: rgba(46,46,46,0.15);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  overflow: hidden;
  text-align: center;
  transition: 0.3s;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.car-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: transparent;
  display: block;
}

.car-card h3 {
  padding: 0.5rem;
  color: #fff;
  font-size: 1.1rem;
}

.car-card span {
  display: block;
  padding-bottom: 0.7rem;
  color: #fff;
  font-size: 0.9rem;
}

.car-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(255,255,255,0.5);
}

/* ===============================
   سبد خرید
=============================== */
.cart-section {
  padding: 100px 20px;
  text-align: center;
  color: #fff;
}

.cart-title {
  font-size: 2rem;
  color: #00aaff;
  margin-bottom: 40px;
}

.cart-table-wrapper {
  overflow-x: auto;
  margin-bottom: 40px;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .cart-table-wrapper {
    margin-bottom: 20px;
  }
  
  .cart-table {
    min-width: 600px;
  }
  
  .cart-table th,
  .cart-table td {
    padding: 10px 8px;
    font-size: 0.85rem;
  }
  
  .cart-table img {
    width: 60px;
  }
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(0,26,68,0.6);
  border-radius: 15px;
  overflow: hidden;
}

.cart-table th, .cart-table td {
  padding: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.cart-table th {
  background: #001a44;
  color: #0af;
  font-weight: bold;
}

.cart-table img {
  width: 90px;
  border-radius: 8px;
}

.quantity-control {
  display: flex;
  justify-content: center;
  align-items: center;
}

.quantity-control input {
  width: 55px;
  text-align: center;
  border: none;
  background: #002d70;
  color: white;
  border-radius: 8px;
  padding: 5px;
  margin: 0 5px;
}

.qty-btn {
  background: #0af;
  border: none;
  color: white;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s;
}

.qty-btn:hover {
  background: #0077cc;
}

.remove-btn {
  background: transparent;
  color: #ff4444;
  border: 2px solid #ff4444;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  transition: 0.3s;
}

.remove-btn:hover {
  background: #ff4444;
  color: #fff;
}

.cart-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.btn-main, .btn-outline {
  padding: 10px 25px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  font-size: 1rem;
}

.btn-main {
  background: #00aaff;
  color: white;
  border: none;
}

.btn-outline {
  background: transparent;
  border: 2px solid #00aaff;
  color: #00aaff;
}

.btn-main:hover {
  background: #0077cc;
}

.btn-outline:hover {
  background: #00aaff;
  color: white;
}

.coupon-box {
  margin: 40px 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.coupon-box label {
  color: #0af;
  font-weight: 600;
  font-size: 1.2rem;
}

.coupon-box input {
  background: #002d70;
  border: none;
  padding: 10px;
  color: white;
  border-radius: 8px;
  width: 200px;
}

.coupon-box .small {
  padding: 8px 15px;
  font-size: 0.9rem;
}

.cart-summary {
  background: #001a44;
  padding: 30px;
  border-radius: 15px;
  max-width: 400px;
  margin: 0 auto;
  text-align: right;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.cart-summary h3 {
  text-align: center;
  color: #00aaff;
  margin-bottom: 20px;
}

.cart-summary p {
  margin: 10px 0;
  color: #ddd;
  font-size: 1rem;
}

.cart-summary span {
  color: #00aaff;
  font-weight: bold;
}

.cart-summary .total {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 15px;
  padding-top: 15px;
  font-size: 1.2rem;
}

.checkout-btn {
  display: block;
  width: 100%;
  padding: 15px;
  background: #00aaff;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 20px;
  transition: 0.3s;
  cursor: pointer;
}

.checkout-btn:hover {
  background: #0077cc;
}

/* ادامه Media Queries، فرم‌ها، اسلایدر، فوتر، واکنش‌گرایی موبایل، hero و wave ها */
/* به خاطر محدودیت پاسخ، ادامه Media Query ها و جزئیات فرم و slider در مرحله بعدی اضافه می‌شود. */
/* ===============================
   Media Queries و واکنش‌گرایی
=============================== */

/* ===============================
   دسکتاپ بزرگ / لپ‌تاپ
=============================== */
@media (max-width: 1440px) {
  .hero-content img {
    max-width: 1000px;
  }
  .brands-grid {
    gap: 2.5rem;
  }
}

/* ===============================
   دسکتاپ کوچک / تبلت بزرگ
=============================== */
@media (max-width: 1024px) {
  .hero-content img {
    max-width: 900px;
  }
  .slideshow-container {
    margin-top: -65px;
    max-height: 500px;
  }
  .wave svg {
    height: 80px;
  }
  .brands-grid {
    gap: 2rem;
  }
}

/* ===============================
   تبلت / موبایل landscape
=============================== */
@media (max-width: 768px) {
  .nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }
  
  .header {
    padding: 10px 0;
  }

  .hero-content img {
    width: 95%;
    max-height: 380px;
    margin-bottom: 0;
  }

  .wave svg {
    height: 60px;
  }

  .slideshow-container {
    margin-top: -45px;
    max-height: 420px;
  }

  .brands-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.8rem;
  }

  .brands-grid a img {
    width: 140px;
    max-height: 100px;
  }

  .footer-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .order-section {
    min-height: 85vh;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .order-form {
    max-width: 440px;
    padding: 25px 18px;
    text-align: center;
  }

  .cart-table th, .cart-table td {
    font-size: 0.9rem;
    padding: 10px;
  }

  .cart-summary {
    width: 100%;
  }

  .coupon-box input {
    width: 150px;
  }

  .cart-actions {
    flex-direction: column;
  }

  .prev, .next {
    padding: 10px;
    font-size: 18px;
  }
}

/* ===============================
   موبایل portrait / کوچک
=============================== */
@media (max-width: 480px) {
  .hero-content img {
    width: 90%;
    max-height: 260px;
    margin-bottom: 0;
  }

  .wave svg {
    height: 40px;
  }

  .slideshow-container {
    margin-top: -35px;
    max-height: 320px;
  }

  .brands-grid a img {
    width: 120px;
  }

  .order-section {
    min-height: 90vh;
    padding: 0 12px;
  }

  .order-form {
    max-width: 380px;
    padding: 22px 15px;
  }

  .order-form .btn-pay {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
  }

  .mySlides img {
    border-radius: 12px;
  }

  .hero + .slider-section {
    margin-top: 0;
  }
}

/* ===============================
   Product Page H1
=============================== */
.product-title {
  text-align: center;
  font-size: 2rem;
  color: #00aaff;
  margin: 30px auto;
  padding: 0 20px;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 768px) {
  .product-title {
    font-size: 1.5rem;
    margin: 20px auto;
  }
}

@media (max-width: 480px) {
  .product-title {
    font-size: 1.3rem;
    margin: 15px auto;
  }
}

/* ===============================
   Slider Section
=============================== */
.slider-section {
  margin-top: 40px;
  position: relative;
  z-index: 2;
}

.slideshow-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
  z-index: 1;
}

.mySlides { display: none; }

.mySlides img {
  width: 100%;
  max-height: 400px;
  border-radius: 20px;
  display: block;
  object-fit: cover;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 12px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background: rgba(0,0,0,0.5);
  transform: translateY(-50%);
  transition: 0.3s;
  z-index: 5;
}

.next { right: 10px; border-radius: 3px 0 0 3px; }
.prev { left: 10px; border-radius: 0 3px 3px 0; }

.prev:hover, .next:hover {
  background: rgba(0,0,0,0.7);
}

/* دات‌ها */
.dots {
  text-align: center;
  margin-top: 15px;
}

.dot {
  cursor: pointer;
  height: 14px;
  width: 14px;
  margin: 0 3px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: 0.3s;
}

.active, .dot:hover {
  background-color: #00aaff;
}

/* ===============================
   Cars Slider Section
=============================== */
.cars-slider-section {
  margin: 60px auto;
  padding: 40px 20px;
  max-width: 1200px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  direction: ltr; /* نمایش از چپ به راست */
}

.cars-slider-container {
  position: relative;
  width: 100%;
  max-width: 814px; /* عرض دقیق برای 3 کارت: 250px * 3 + 32px * 2 = 814px */
  margin: 0 auto;
  overflow: hidden;
  padding: 0 60px;
  direction: ltr; /* نمایش از چپ به راست */
}

.cars-slideshow {
  display: flex;
  gap: 2rem;
  transition: transform 0.8s ease;
  width: max-content;
  will-change: transform;
  transform: translateX(0); /* شروع از چپ */
  direction: ltr; /* نمایش از چپ به راست */
  flex-direction: row; /* جهت افقی از چپ به راست */
  justify-content: flex-start; /* شروع از چپ */
}

.cars-slide-item {
  flex: 0 0 250px;
  width: 250px;
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cars-slide-link {
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%;
  max-width: 250px;
  background: rgba(46,46,46,0.15);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  height: 100%;
}

.cars-slide-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(255,255,255,0.5);
}

.cars-slide-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
  background: transparent;
}

.cars-slide-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  background: transparent;
  display: block;
}

.cars-slide-link:hover .cars-slide-image img {
  transform: scale(1.05);
}

.cars-slide-content {
  text-align: center;
  background: transparent;
}

.cars-slide-content h3 {
  padding: 0.5rem;
  color: #fff;
  font-size: 1.1rem;
  margin: 0;
}

.cars-slide-content span {
  display: block;
  padding-bottom: 0.7rem;
  color: #fff;
  font-size: 0.9rem;
  margin: 0;
}

.cars-prev, .cars-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 12px 16px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  border-radius: 50%;
  user-select: none;
  background: rgba(0, 170, 255, 0.9);
  transform: translateY(-50%);
  transition: 0.3s;
  z-index: 5;
  text-decoration: none;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.cars-next {
  right: 10px;
}

.cars-prev {
  left: 10px;
}

.cars-prev:hover, .cars-next:hover {
  background: rgba(0, 170, 255, 1);
  transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
  .cars-slider-section {
    margin: 40px auto;
    padding: 20px 15px;
  }
  
  .cars-slider-container {
    max-width: 282px; /* عرض برای 1 کارت: 250px + 32px gap */
    padding: 0 50px;
  }
  
  .cars-slide-item {
    flex: 0 0 250px;
    width: 250px;
  }
  
  .cars-slide-link {
    max-width: 250px;
  }
  
  .cars-prev, .cars-next {
    padding: 10px 14px;
    font-size: 18px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .cars-slider-container {
    max-width: 282px; /* عرض برای 1 کارت: 250px + 32px gap */
    padding: 0 45px;
  }
  
  .cars-slide-item {
    flex: 0 0 250px;
    width: 250px;
  }
  
  .cars-slide-link {
    max-width: 250px;
  }
  
  .cars-slide-image {
    height: 180px;
  }
  
  .cars-prev, .cars-next {
    padding: 8px 12px;
    font-size: 16px;
    width: 35px;
    height: 35px;
  }
}

/* ===============================
   Footer
=============================== */
.footer {
  background: #001a44;
  padding: 50px 20px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

@media (max-width: 768px) {
  .footer-grid {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  
  .footer-grid > div {
    width: 100%;
  }
}

.footer h4 {
  color: #0af;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.copy {
  text-align: center;
  padding-top: 20px;
  color: #ccc;
  border-top: 1px solid #222;
  margin-top: 30px;
}

/* ===============================
   Order Section
=============================== */
.order-section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 90vh;
  padding: 0 20px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.order-form {
  background: rgba(0, 26, 68, 0.6);
  border-radius: 20px;
  padding: 40px 30px;
  width: 100%;
  max-width: 550px;
  margin: 0 auto;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  text-align: right;
  box-sizing: border-box;
}

.order-form .input-field,
.order-form .textarea-field,
.order-form select {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,45,112,0.6);
  color: #fff;
  width: 100%;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  backdrop-filter: blur(5px);
}

.order-form .input-field::placeholder,
.order-form .textarea-field::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.order-form .input-field:focus,
.order-form .textarea-field:focus,
.order-form select:focus {
  outline: none;
  border-color: #00aaff;
  box-shadow: 
    0 0 0 4px rgba(0, 170, 255, 0.15),
    0 4px 12px rgba(0, 170, 255, 0.3);
  background: rgba(0, 45, 112, 0.85);
  transform: translateY(-1px);
}

.order-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 18px center;
  padding-right: 18px;
  padding-left: 40px;
}

.order-form .input-field--short {
  max-width: 320px;
}

.order-form .textarea-field {
  min-height: 120px;
  resize: vertical;
}

.order-form--places {
  max-width: 820px;
}

.order-form h3 {
  display: block;
  color: #00aaff;
  margin-bottom: 20px;
  font-size: 1.3rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(0, 170, 255, 0.3);
}

.order-form h3::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00aaff);
}

.form-section {
  margin-bottom: 32px;
  padding: 20px;
  background: rgba(0, 26, 68, 0.3);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.form-section:hover {
  background: rgba(0, 26, 68, 0.4);
  border-color: rgba(0, 170, 255, 0.2);
}

.form-section:last-child {
  margin-bottom: 0;
}

.form-section label {
  display: flex;
  align-items: center;
  margin: 12px 0;
  padding: 12px 16px;
  font-size: 1rem;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(0, 26, 68, 0.4);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.form-section label::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: transparent;
  transition: background 0.3s ease;
}

.form-section label:hover {
  color: #00aaff;
  background: rgba(0, 45, 112, 0.5);
  border-color: rgba(0, 170, 255, 0.3);
  transform: translateX(-3px);
}

.form-section label:hover::before {
  background: #00aaff;
}

.form-section input[type="radio"]:checked + label,
.form-section input[type="checkbox"]:checked + label,
.form-section label:has(input[type="radio"]:checked),
.form-section label:has(input[type="checkbox"]:checked) {
  background: rgba(0, 170, 255, 0.2);
  border-color: #00aaff;
  color: #00aaff;
  box-shadow: 0 0 0 2px rgba(0, 170, 255, 0.2);
}

.form-section label:has(input[type="radio"]:checked)::before,
.form-section label:has(input[type="checkbox"]:checked)::before {
  background: #00aaff;
}

.hint {
  color: #aaa;
  font-size: 0.9rem;
}

.form-hint {
  margin-top: 10px;
  color: rgba(200, 208, 227, 0.8);
  font-size: 0.9rem;
  line-height: 1.6;
  padding-right: 4px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.form-hint::before {
  content: '💡';
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.total-price {
  font-size: 1.4rem;
  font-weight: bold;
  color: #fff;
  text-align: center;
  padding: 24px;
  background: linear-gradient(135deg, rgba(0, 170, 255, 0.15) 0%, rgba(0, 119, 204, 0.15) 100%);
  border-radius: 16px;
  border: 2px solid rgba(0, 170, 255, 0.3);
  margin-top: 8px;
  box-shadow: 0 4px 12px rgba(0, 170, 255, 0.2);
}

.total-price h3 {
  margin: 0;
  padding: 0;
  border: none;
}

.total-price h3::after {
  display: none;
}

.total-price span {
  color: #00aaff;
  font-size: 1.6rem;
  text-shadow: 0 0 10px rgba(0, 170, 255, 0.5);
  display: inline-block;
  margin-right: 8px;
}

.btn-pay {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #00aaff 0%, #0077cc 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 16px 24px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 15px rgba(0, 170, 255, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  position: relative;
  overflow: hidden;
  text-transform: none;
  letter-spacing: 0.5px;
}

.btn-pay::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-pay:hover {
  background: linear-gradient(135deg, #00bfff 0%, #0088dd 100%);
  transform: translateY(-2px);
  box-shadow: 
    0 6px 20px rgba(0, 170, 255, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.btn-pay:hover::before {
  left: 100%;
}

.btn-pay:active {
  transform: translateY(0);
  box-shadow: 
    0 2px 10px rgba(0, 170, 255, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.radio-field {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px 16px;
  background: rgba(0, 26, 68, 0.4);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.radio-field:hover {
  background: rgba(0, 45, 112, 0.5);
  border-color: rgba(0, 170, 255, 0.3);
  transform: translateX(-3px);
}

.radio-field input[type="radio"]:checked + *,
.radio-field:has(input[type="radio"]:checked) {
  background: rgba(0, 170, 255, 0.2);
  border-color: #00aaff;
  box-shadow: 0 0 0 2px rgba(0, 170, 255, 0.2);
}

.dimensions-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.dimension-item {
  background: linear-gradient(135deg, rgba(0, 26, 68, 0.6) 0%, rgba(0, 45, 112, 0.6) 100%);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dimension-item:hover {
  border-color: rgba(0, 170, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 170, 255, 0.2);
  transform: translateY(-2px);
}

.dimension-item h4 {
  margin: 0 0 1.2rem;
  color: #00aaff;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dimension-item h4::before {
  content: '📐';
  font-size: 1.2rem;
}

.dimension-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

/* ===============================
   Responsive Styles for Order Forms
=============================== */
@media (max-width: 768px) {
  .order-section {
    padding: 20px 15px;
    min-height: auto; 
  }

  .order-form {
    padding: 30px 20px;
    border-radius: 20px;
    max-width: 100%;
  }

  .order-form h3 {
    font-size: 1.15rem;
    margin-bottom: 16px;
  }

  .form-section {
    padding: 16px;
    margin-bottom: 24px;
  }

  .dimension-grid {
    grid-template-columns: 1fr;
  }

  .tint-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .tint-section select {
    width: 100%;
  }

  .total-price {
    padding: 20px;
    font-size: 1.2rem;
  }

  .total-price span {
    font-size: 1.4rem;
  }

  .btn-pay {
    padding: 14px 20px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .order-section {
    padding: 15px 10px;
  }

  .order-form {
    padding: 25px 15px;
    border-radius: 16px;
  }

  .order-form h3 {
    font-size: 1.05rem;
    padding-bottom: 10px;
  }

  .form-section {
    padding: 14px;
    margin-bottom: 20px;
    border-radius: 12px;
  }

  .form-section label {
    padding: 10px 12px;
    font-size: 0.95rem;
  }

  .dimension-grid {
    gap: 0.8rem;
  }

  .dimension-item {
    padding: 1rem;
  }

  .dimension-item h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .tint-options {
    padding: 18px;
    border-radius: 14px;
  }

  .tint-options h3 {
    font-size: 1.1rem;
  }

  .total-price {
    padding: 16px;
    font-size: 1.1rem;
    border-radius: 12px;
  }

  .total-price span {
    font-size: 1.3rem;
  }

  .btn-pay {
    padding: 12px 18px;
    font-size: 1rem;
    border-radius: 12px;
  }

  .order-form .input-field,
  .order-form .textarea-field,
  .order-form select {
    padding: 12px 14px;
    font-size: 0.95rem;
  }
}

.glass-area {
  background: rgba(255,255,255,0.08);
}

.form-section--split {
  display: block;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

@media (max-width: 768px) {
  .form-section--split {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   Tint Options
=============================== */
.tint-options {
  background: linear-gradient(135deg, rgba(0, 26, 68, 0.5) 0%, rgba(0, 45, 112, 0.5) 100%);
  padding: 24px;
  border-radius: 18px;
  margin-top: 24px;
  border: 1px solid rgba(0, 170, 255, 0.2);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tint-options h3 {
  color: #00aaff;
  margin-bottom: 18px;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tint-options h3::before {
  content: '🎨';
  font-size: 1.4rem;
}

.tint-section {
  display: none;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px 16px;
  background: rgba(0, 26, 68, 0.4);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.tint-section:last-child {
  margin-bottom: 0;
}

.tint-section.active {
  display: flex;
  border-color: rgba(0, 170, 255, 0.4);
  background: rgba(0, 45, 112, 0.5);
  box-shadow: 0 2px 8px rgba(0, 170, 255, 0.2);
}

.tint-section:hover {
  background: rgba(0, 45, 112, 0.6);
  border-color: rgba(0, 170, 255, 0.3);
}

.tint-section label {
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
}

.tint-section select {
  background: rgba(0, 26, 68, 0.8);
  color: #fff;
  border: 2px solid rgba(0, 170, 255, 0.3);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
  font-weight: 500;
}

.tint-section select:hover {
  background: rgba(0, 45, 112, 0.9);
  border-color: rgba(0, 170, 255, 0.5);
  box-shadow: 0 2px 8px rgba(0, 170, 255, 0.2);
}

.tint-section select:focus {
  outline: none;
  border-color: #00aaff;
  box-shadow: 0 0 0 3px rgba(0, 170, 255, 0.2);
}

.article-section--places {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 2.5rem;
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* استایل‌های Rich Content برای بخش اماکن */
.places-article-content {
  font-family: 'Vazir', 'Tahoma', 'Arial', sans-serif;
}

.places-article-content h1,
.places-article-content h2,
.places-article-content h3,
.places-article-content h4,
.places-article-content h5,
.places-article-content h6 {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.places-article-content h1 {
  color: #00aaff;
  font-size: 2.8rem;
  font-weight: 800;
  margin-top: 40px;
  margin-bottom: 25px;
  line-height: 1.3;
  text-align: right;
  border-bottom: 3px solid rgba(0, 170, 255, 0.3);
  padding-bottom: 15px;
}

.places-article-content h2 {
  color: #00aaff;
  font-size: 2.2rem;
  font-weight: 700;
  margin-top: 35px;
  margin-bottom: 20px;
  line-height: 1.4;
  text-align: right;
  border-right: 4px solid rgba(0, 170, 255, 0.5);
  padding-right: 15px;
}

.places-article-content h3 {
  color: #4db8ff;
  font-size: 1.8rem;
  font-weight: 700;
  margin-top: 30px;
  margin-bottom: 18px;
  line-height: 1.4;
  text-align: right;
}

.places-article-content h4 {
  color: #66c2ff;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 25px;
  margin-bottom: 15px;
  line-height: 1.5;
  text-align: right;
}

.places-article-content h5 {
  color: #80ccff;
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 22px;
  margin-bottom: 12px;
  line-height: 1.5;
  text-align: right;
}

.places-article-content h6 {
  color: #99d6ff;
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 10px;
  line-height: 1.5;
  text-align: right;
}

.places-article-content p {
  margin-bottom: 20px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.9;
  color: #e4e7f1;
}

.places-article-content .text-xs,
.places-article-content .text-small {
  font-size: 0.85rem;
  line-height: 1.8;
  color: #b8c5d1;
}

.places-article-content .text-sm,
.places-article-content .text-small-medium {
  font-size: 0.95rem;
  line-height: 1.85;
  color: #c8d5e1;
}

.places-article-content .text-base,
.places-article-content .text-normal {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #e4e7f1;
}

.places-article-content .text-lg,
.places-article-content .text-large {
  font-size: 1.3rem;
  line-height: 2;
  color: #e4e7f1;
  font-weight: 500;
}

.places-article-content .text-xl,
.places-article-content .text-extra-large {
  font-size: 1.5rem;
  line-height: 2.1;
  color: #e4e7f1;
  font-weight: 500;
}

.places-article-content .text-2xl,
.places-article-content .text-xxl {
  font-size: 1.8rem;
  line-height: 2.2;
  color: #e4e7f1;
  font-weight: 600;
}

.places-article-content strong,
.places-article-content b {
  font-weight: 700;
  color: #fff;
}

.places-article-content em,
.places-article-content i {
  font-style: italic;
  color: #c8d5e1;
}

.places-article-content mark {
  background: rgba(0, 170, 255, 0.3);
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
}

.places-article-content blockquote {
  border-right: 4px solid #00aaff;
  padding: 20px 25px;
  margin: 25px 0;
  background: rgba(0, 45, 112, 0.4);
  border-radius: 8px;
  font-style: italic;
  color: #c8d5e1;
  font-size: 1.15rem;
  line-height: 1.9;
}

.places-article-content ul,
.places-article-content ol {
  margin: 20px 0;
  padding-right: 30px;
  line-height: 1.9;
}

.places-article-content li {
  margin-bottom: 12px;
  padding-right: 10px;
  color: #e4e7f1;
}

.places-article-content a {
  color: #00aaff;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 170, 255, 0.3);
  transition: all 0.3s;
}

.places-article-content a:hover {
  color: #0af;
  border-bottom-color: #0af;
}

.places-article-content .highlight {
  background: rgba(0, 170, 255, 0.2);
  padding: 15px 20px;
  border-right: 3px solid #00aaff;
  border-radius: 8px;
  margin: 20px 0;
}

.places-article-content .info-box {
  background: rgba(0, 45, 112, 0.5);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid rgba(0, 170, 255, 0.3);
  margin: 25px 0;
}

.places-article-content .warning-box {
  background: rgba(224, 168, 0, 0.15);
  padding: 20px;
  border-radius: 10px;
  border-right: 4px solid #e0a800;
  margin: 25px 0;
}

.places-article-content .success-box {
  background: rgba(0, 255, 136, 0.15);
  padding: 20px;
  border-radius: 10px;
  border-right: 4px solid #00ff88;
  margin: 25px 0;
}

@media (max-width: 768px) {
  .article-section--places {
    padding: 1.5rem;
    margin: 2rem auto;
  }
  
  .places-article-content h1 {
    font-size: 1.8rem;
    margin-top: 25px;
    margin-bottom: 15px;
    padding-bottom: 10px;
  }
  
  .places-article-content h2 {
    font-size: 1.5rem;
    margin-top: 22px;
    margin-bottom: 12px;
    padding-right: 10px;
  }
  
  .places-article-content h3 {
    font-size: 1.3rem;
    margin-top: 20px;
    margin-bottom: 10px;
  }
  
  .places-article-content h4 {
    font-size: 1.15rem;
    margin-top: 18px;
    margin-bottom: 10px;
  }
  
  .places-article-content h5 {
    font-size: 1.05rem;
    margin-top: 15px;
    margin-bottom: 8px;
  }
  
  .places-article-content h6 {
    font-size: 1rem;
    margin-top: 15px;
    margin-bottom: 8px;
  }
  
  .places-article-content .text-xs,
  .places-article-content .text-small {
    font-size: 0.8rem;
  }
  
  .places-article-content .text-sm,
  .places-article-content .text-small-medium {
    font-size: 0.85rem;
  }
  
  .places-article-content .text-base,
  .places-article-content .text-normal {
    font-size: 0.95rem;
  }
  
  .places-article-content .text-lg,
  .places-article-content .text-large {
    font-size: 1.1rem;
  }
  
  .places-article-content .text-xl,
  .places-article-content .text-extra-large {
    font-size: 1.25rem;
  }
  
  .places-article-content .text-2xl,
  .places-article-content .text-xxl {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .article-section--places {
    padding: 1rem;
    margin: 1.5rem auto;
  }
  
  .places-article-content h1 {
    font-size: 1.5rem;
    margin-top: 20px;
    margin-bottom: 12px;
    padding-bottom: 8px;
  }
  
  .places-article-content h2 {
    font-size: 1.3rem;
    margin-top: 18px;
    margin-bottom: 10px;
    padding-right: 8px;
  }
  
  .places-article-content h3 {
    font-size: 1.15rem;
    margin-top: 16px;
    margin-bottom: 8px;
  }
  
  .places-article-content h4 {
    font-size: 1.05rem;
    margin-top: 14px;
    margin-bottom: 8px;
  }
  
  .places-article-content h5 {
    font-size: 1rem;
    margin-top: 12px;
    margin-bottom: 6px;
  }
  
  .places-article-content h6 {
    font-size: 0.95rem;
    margin-top: 12px;
    margin-bottom: 6px;
  }
  
  .places-article-content .text-xs,
  .places-article-content .text-small {
    font-size: 0.75rem;
  }
  
  .places-article-content .text-sm,
  .places-article-content .text-small-medium {
    font-size: 0.8rem;
  }
  
  .places-article-content .text-base,
  .places-article-content .text-normal {
    font-size: 0.9rem;
  }
  
  .places-article-content .text-lg,
  .places-article-content .text-large {
    font-size: 1rem;
  }
  
  .places-article-content .text-xl,
  .places-article-content .text-extra-large {
    font-size: 1.1rem;
  }
  
  .places-article-content .text-2xl,
  .places-article-content .text-xxl {
    font-size: 1.25rem;
  }
}

.article-content {
  line-height: 1.9;
  color: #e4e7f1;
}

.article-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.article-header h2 {
  font-size: 2rem;
  color: #00aaff;
  margin-bottom: 0.8rem;
}

.article-subtitle {
  color: #cdd6f3;
  font-size: 1.1rem;
}

.article-card {
  background: rgba(0,26,68,0.7);
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
  margin-bottom: 1.8rem;
}

.article-card__title {
  color: #00c2ff;
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
}

.article-card__block {
  margin-bottom: 1.4rem;
}

.article-card__block h4 {
  color: #8ad8ff;
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.article-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-list__item {
  position: relative;
  padding-right: 1.5rem;
  margin-bottom: 0.8rem;
}

.article-list__icon {
  position: absolute;
  right: 0;
  color: #00c2ff;
  font-weight: bold;
}

.article-cta {
  background: linear-gradient(135deg, #001a44, #003b99);
  color: white;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  margin-top: 2rem;
  box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.article-cta h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* ===============================
   فرم اطلاعات مشتری – نسخه زیباتر
=============================== */

.ci-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 40px 20px;
  box-sizing: border-box;
  background: inherit; /* ارث‌بری از پس‌زمینه سایت */
}

.ci-form-container {
  background-color: rgba(0,26,68,0.85); /* کمی شفاف‌تر و عمیق‌تر */
  border-radius: 25px; /* گوشه‌های نرم‌تر */
  padding: 45px 35px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 15px rgba(0,170,255,0.1); /* سایه‌های ملایم و درخشان */
  text-align: right;
  font-family: "Vazirmatn", sans-serif;
  color: #fff;
  transition: all 0.3s ease;
}

.ci-title {
  text-align: center;
  font-size: 2rem;
  color: #0af;
  margin-bottom: 35px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.ci-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 22px;
}

.ci-field label {
  margin-bottom: 8px;
  font-size: 1rem;
  color: #e0f7ff; /* کمی روشن‌تر */
  font-weight: 500;
}

.ci-field input,
.ci-field select,
.ci-field textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  background-color: rgba(0,45,112,0.8);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.ci-field input:focus,
.ci-field select:focus,
.ci-field textarea:focus {
  border-color: #00aaff;
  background-color: rgba(0,70,170,0.9);
  box-shadow: 0 0 10px rgba(0,170,255,0.5);
}

.ci-field textarea {
  resize: vertical;
  min-height: 80px;
}

.ci-submit-btn {
  width: 100%;
  padding: 16px;
  background-color: #00aaff;
  color: #fff;
  border: none;
  border-radius: 15px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0,170,255,0.4);
}

.ci-submit-btn:hover {
  background-color: #0077cc;
  box-shadow: 0 8px 25px rgba(0,170,255,0.6);
  transform: translateY(-2px);
}

/* واکنشگرایی */
@media (max-width: 768px) {
  .ci-form-container {
    padding: 35px 25px;
  }

  .ci-submit-btn {
    padding: 14px;
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .ci-form-container {
    padding: 25px 15px;
  }

  .ci-submit-btn {
    padding: 12px;
    font-size: 1rem;
  }
}

/* ✅ جلوگیری از رفتن فرم پشت فوتر */
.ci-wrapper {
  position: relative;
  z-index: 2; /* بالاتر از فوتر */
  min-height: calc(100vh - 120px); /* تا قبل از فوتر جا بشه */
  margin-bottom: 80px; /* فاصله از فوتر برای اطمینان */
}

/* اطمینان از اینکه فوتر همیشه پایین می‌مونه */
.footer {
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

/* ===============================
   Autocomplete محله
=============================== */
.neighborhood-autocomplete-wrapper {
  position: relative;
  width: 100%;
}

#neighborhoodInput {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  background-color: rgba(0,45,112,0.8);
  color: #fff;
  font-size: 1rem;
  font-family: "Vazirmatn", sans-serif;
  transition: all 0.3s ease;
  outline: none;
  box-sizing: border-box;
}

#neighborhoodInput:focus {
  outline: none;
  border-color: #00aaff;
  background-color: rgba(0,70,170,0.9);
  box-shadow: 0 0 10px rgba(0,170,255,0.5);
}

#neighborhoodValue {
  display: none;
}

.neighborhood-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: rgba(0, 26, 68, 0.95);
  border: 1px solid rgba(255,255,255,0.2);
  border-top: none;
  border-radius: 0 0 12px 12px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  margin-top: 2px;
}

.neighborhood-item {
  padding: 12px 14px;
  cursor: pointer;
  color: white;
  font-size: 1rem;
  font-family: "Vazirmatn", sans-serif;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.neighborhood-item:last-child {
  border-bottom: none;
}

.neighborhood-item:hover,
.neighborhood-item.selected {
  background-color: rgba(0, 170, 255, 0.3);
  color: #00aaff;
}

.neighborhood-item:hover {
  background-color: rgba(0, 170, 255, 0.2);
}

/* اسکرول بار برای dropdown */
.neighborhood-dropdown::-webkit-scrollbar {
  width: 8px;
}

.neighborhood-dropdown::-webkit-scrollbar-track {
  background: rgba(0, 26, 68, 0.5);
}

.neighborhood-dropdown::-webkit-scrollbar-thumb {
  background: #003b99;
  border-radius: 4px;
}

.neighborhood-dropdown::-webkit-scrollbar-thumb:hover {
  background: #00aaff;
}

/* واکنشگرایی برای autocomplete */
@media (max-width: 768px) {
  .neighborhood-dropdown {
    max-height: 250px;
  }
  
  .neighborhood-item {
    padding: 10px 12px;
    font-size: 0.95rem;
  }
}

/* ===============================
   پیام‌های سیستم
=============================== */
.messages-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  max-width: 400px;
}

.alert {
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-family: "Vazirmatn", sans-serif;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.alert-success {
  background-color: #28a745;
  color: white;
  border-left: 4px solid #1e7e34;
}

.alert-error {
  background-color: #dc3545;
  color: white;
  border-left: 4px solid #c82333;
}

.alert-info {
  background-color: #17a2b8;
  color: white;
  border-left: 4px solid #138496;
}

.alert-warning {
  background-color: #ffc107;
  color: #212529;
  border-left: 4px solid #e0a800;
}

@media (max-width: 768px) {
  .messages-container {
    right: 10px;
    left: 10px;
    max-width: none;
  }
}

/* ===============================
   صفحات مقالات - Article List & Detail
=============================== */

/* صفحه لیست مقالات */
.articles-page {
    padding: 40px 0;
    background: #000;
    min-height: 80vh;
}

.articles-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.articles-header {
    text-align: center;
    margin-bottom: 50px;
}

.articles-header h1 {
    font-size: 2.5rem;
    color: #00aaff;
    margin-bottom: 15px;
    font-weight: 700;
}

.articles-header p {
    font-size: 1.1rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
}

/* فیلتر و جست‌وجو */
.articles-filters {
    background: rgba(0,26,68,0.6);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    margin-bottom: 40px;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(0,45,112,0.8);
    color: white;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: #00aaff;
    box-shadow: 0 0 10px rgba(0,170,255,0.5);
    background: rgba(0,70,170,0.9);
}

.search-box input::placeholder {
    color: rgba(255,255,255,0.6);
}

.search-box button {
    padding: 12px 30px;
    background: linear-gradient(135deg, #001a44 0%, #003b99 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.search-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,170,255,0.4);
    background: linear-gradient(135deg, #003b99 0%, #00aaff 100%);
}

.filters-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.category-filter, .sort-filter {
    flex: 1;
    min-width: 200px;
}

.category-filter select, .sort-filter select {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(0,45,112,0.8);
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.category-filter select:focus, .sort-filter select:focus {
    outline: none;
    border-color: #00aaff;
    box-shadow: 0 0 10px rgba(0,170,255,0.5);
    background: rgba(0,70,170,0.9);
}

/* مقالات ویژه */
.featured-articles {
    margin-bottom: 50px;
}

.featured-articles h2 {
    font-size: 1.8rem;
    color: #00aaff;
    margin-bottom: 25px;
    text-align: center;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* لیست مقالات */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.article-card {
    background: rgba(0,26,68,0.6);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(255,255,255,0.1);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,170,255,0.3);
    border-color: rgba(0,170,255,0.3);
}

.article-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #001a44 0%, #003b99 100%);
}

.article-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-category {
    display: inline-block;
    padding: 5px 15px;
    background: linear-gradient(135deg, #001a44 0%, #003b99 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.article-card-title {
    font-size: 1.3rem;
    color: #00aaff;
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.article-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.article-card-title a:hover {
    color: #0af;
}

.article-card-excerpt {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.article-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: #999;
}

.article-card-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-card-views {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* صفحه‌بندی */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a, .pagination span {
    padding: 10px 18px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    text-decoration: none;
    color: #00aaff;
    font-weight: 600;
    transition: all 0.3s;
    background: rgba(0,26,68,0.6);
}

.pagination a:hover {
    background: linear-gradient(135deg, #001a44 0%, #003b99 100%);
    color: white;
    border-color: transparent;
}

.pagination .current {
    background: linear-gradient(135deg, #001a44 0%, #003b99 100%);
    color: white;
    border-color: transparent;
}

/* پیام عدم یافتن */
.no-articles {
    text-align: center;
    padding: 60px 20px;
    background: rgba(0,26,68,0.6);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.no-articles h3 {
    font-size: 1.5rem;
    color: #00aaff;
    margin-bottom: 15px;
}

.no-articles p {
    color: #ccc;
    font-size: 1.1rem;
}

/* صفحه جزئیات مقاله */
.article-detail-page {
    padding: 40px 0;
    background: #000;
    min-height: 80vh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    position: relative;
    margin: 0;
}

.article-detail-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Breadcrumb */
.breadcrumb {
    background: rgba(0,26,68,0.6);
    padding: 15px 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.breadcrumb a {
    color: #00aaff;
    text-decoration: none;
    transition: color 0.3s;
    word-break: break-word;
}

.breadcrumb a:hover {
    color: #0af;
    text-decoration: underline;
}

.breadcrumb span {
    color: #999;
    margin: 0 8px;
    white-space: nowrap;
}

/* مقاله اصلی */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    position: relative;
}

.article-layout > div {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    min-width: 0;
    position: relative;
}

.article-layout > aside {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    min-width: 0;
    position: relative;
}

.article-layout > div > article,
.article-layout > div > .related-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.article-main {
    background: rgba(0,26,68,0.6);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    margin-bottom: 40px;
    border: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
}

.article-header-image {
    width: 100%;
    max-width: 100%;
    height: 400px;
    object-fit: cover;
    background: linear-gradient(135deg, #001a44 0%, #003b99 100%);
    display: block;
    box-sizing: border-box;
}

.article-content-wrapper {
    padding: 40px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    font-size: 0.95rem;
}

.article-meta-item strong {
    color: #00aaff;
}

.article-category-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #001a44 0%, #003b99 100%);
    color: white;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s;
}

.article-category-badge:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #003b99 0%, #00aaff 100%);
}

.article-title {
    font-size: 2.5rem;
    color: #00aaff;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-excerpt {
    font-size: 1.2rem;
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0,45,112,0.4);
    border-right: 4px solid #00aaff;
    border-radius: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-body {
    font-size: 1.1rem;
    line-height: 2;
    color: #e4e7f1;
    margin-bottom: 30px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* استایل‌های حرفه‌ای برای بدنه مقاله */
.article-body.rich-content {
    font-family: 'Vazir', 'Tahoma', 'Arial', sans-serif;
}

/* پاراگراف‌ها */
.article-body p {
    margin-bottom: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.9;
}

/* عنوان‌های مختلف با اندازه‌های متغیر */
.article-body h1 {
    color: #00aaff;
    font-size: 2.8rem;
    font-weight: 800;
    margin-top: 40px;
    margin-bottom: 25px;
    line-height: 1.3;
    text-align: right;
    border-bottom: 3px solid rgba(0, 170, 255, 0.3);
    padding-bottom: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-body h2 {
    color: #00aaff;
    font-size: 2.2rem;
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 20px;
    line-height: 1.4;
    text-align: right;
    border-right: 4px solid rgba(0, 170, 255, 0.5);
    padding-right: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-body h3 {
    color: #4db8ff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 18px;
    line-height: 1.4;
    text-align: right;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-body h4 {
    color: #66c2ff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 15px;
    line-height: 1.5;
    text-align: right;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-body h5 {
    color: #80ccff;
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 22px;
    margin-bottom: 12px;
    line-height: 1.5;
    text-align: right;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-body h6 {
    color: #99d6ff;
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
    line-height: 1.5;
    text-align: right;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* متن‌های با اندازه‌های متغیر */
.article-body .text-xs,
.article-body .text-small {
    font-size: 0.85rem;
    line-height: 1.8;
    color: #b8c5d1;
}

.article-body .text-sm,
.article-body .text-small-medium {
    font-size: 0.95rem;
    line-height: 1.85;
    color: #c8d5e1;
}

.article-body .text-base,
.article-body .text-normal {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #e4e7f1;
}

.article-body .text-lg,
.article-body .text-large {
    font-size: 1.3rem;
    line-height: 2;
    color: #e4e7f1;
    font-weight: 500;
}

.article-body .text-xl,
.article-body .text-extra-large {
    font-size: 1.5rem;
    line-height: 2.1;
    color: #e4e7f1;
    font-weight: 500;
}

.article-body .text-2xl,
.article-body .text-xxl {
    font-size: 1.8rem;
    line-height: 2.2;
    color: #e4e7f1;
    font-weight: 600;
}

/* استایل‌های اضافی برای متن */
.article-body strong,
.article-body b {
    font-weight: 700;
    color: #fff;
}

.article-body em,
.article-body i {
    font-style: italic;
    color: #c8d5e1;
}

.article-body mark {
    background: rgba(0, 170, 255, 0.3);
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
}

.article-body blockquote {
    border-right: 4px solid #00aaff;
    padding: 20px 25px;
    margin: 25px 0;
    background: rgba(0, 45, 112, 0.4);
    border-radius: 8px;
    font-style: italic;
    color: #c8d5e1;
    font-size: 1.15rem;
    line-height: 1.9;
}

.article-body code {
    background: rgba(0, 26, 68, 0.8);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #00ff88;
    border: 1px solid rgba(0, 170, 255, 0.3);
}

.article-body pre {
    background: rgba(0, 26, 68, 0.9);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid rgba(0, 170, 255, 0.3);
}

.article-body pre code {
    background: transparent;
    padding: 0;
    border: none;
    color: #00ff88;
}

/* لیست‌ها */
.article-body ul, .article-body ol {
    margin: 20px 0;
    padding-right: 30px;
    line-height: 1.9;
}

.article-body ul {
    list-style-type: disc;
}

.article-body ol {
    list-style-type: decimal;
}

.article-body li {
    margin-bottom: 12px;
    padding-right: 10px;
}

.article-body ul ul,
.article-body ol ol,
.article-body ul ol,
.article-body ol ul {
    margin-top: 10px;
    margin-bottom: 10px;
}

/* تصاویر */
.article-body img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 25px 0;
    display: block;
    box-sizing: border-box;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* جداول */
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: rgba(0, 26, 68, 0.4);
    border-radius: 8px;
    overflow: hidden;
}

.article-body th,
.article-body td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.article-body th {
    background: rgba(0, 170, 255, 0.2);
    color: #00aaff;
    font-weight: 700;
}

.article-body tr:hover {
    background: rgba(0, 170, 255, 0.1);
}

/* لینک‌ها */
.article-body a {
    color: #00aaff;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 170, 255, 0.3);
    transition: all 0.3s;
}

.article-body a:hover {
    color: #0af;
    border-bottom-color: #0af;
}

/* جداکننده */
.article-body hr {
    border: none;
    height: 2px;
    background: linear-gradient(to left, transparent, rgba(0, 170, 255, 0.5), transparent);
    margin: 30px 0;
}

/* استایل‌های کلاس‌های کمکی */
.article-body .highlight {
    background: rgba(0, 170, 255, 0.2);
    padding: 15px 20px;
    border-right: 3px solid #00aaff;
    border-radius: 8px;
    margin: 20px 0;
}

.article-body .info-box {
    background: rgba(0, 45, 112, 0.5);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(0, 170, 255, 0.3);
    margin: 25px 0;
}

.article-body .warning-box {
    background: rgba(224, 168, 0, 0.15);
    padding: 20px;
    border-radius: 10px;
    border-right: 4px solid #e0a800;
    margin: 25px 0;
}

.article-body .success-box {
    background: rgba(0, 255, 136, 0.15);
    padding: 20px;
    border-radius: 10px;
    border-right: 4px solid #00ff88;
    margin: 25px 0;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    border-top: 2px solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.share-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.share-btn {
    padding: 10px 20px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    text-decoration: none;
    color: #00aaff;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.9rem;
    background: rgba(0,26,68,0.6);
}

.share-btn:hover {
    background: linear-gradient(135deg, #001a44 0%, #003b99 100%);
    color: white;
    border-color: transparent;
}

/* مقالات مرتبط */
.related-section {
    margin-bottom: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.section-title {
    font-size: 1.8rem;
    color: #00aaff;
    margin-bottom: 25px;
    font-weight: 700;
    text-align: center;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.related-article-card {
    background: rgba(0,26,68,0.6);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.5);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid rgba(255,255,255,0.1);
}

.related-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,170,255,0.3);
    border-color: rgba(0,170,255,0.3);
}

.related-article-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, #001a44 0%, #003b99 100%);
}

.related-article-content {
    padding: 20px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.related-article-title {
    font-size: 1.1rem;
    color: #00aaff;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.related-article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #999;
    margin-top: 15px;
}

/* مقالات محبوب */
.popular-section {
    background: rgba(0,26,68,0.6);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.popular-articles-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-article-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.popular-article-item:last-child {
    border-bottom: none;
}

.popular-article-item:hover {
    padding-right: 10px;
}

.popular-article-item:hover .popular-article-title {
    color: #00aaff;
}

.popular-article-image {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    background: linear-gradient(135deg, #001a44 0%, #003b99 100%);
    flex-shrink: 0;
}

.popular-article-info {
    flex: 1;
}

.popular-article-title {
    font-size: 1rem;
    color: #00aaff;
    margin-bottom: 5px;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.popular-article-date {
    font-size: 0.85rem;
    color: #999;
}

/* واکنش‌گرایی - مقالات */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .article-layout > div,
    .article-layout > aside {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .popular-section {
        margin-top: 30px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .article-detail-container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .articles-header h1 {
        font-size: 2rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-row {
        flex-direction: column;
    }
    
    .category-filter, .sort-filter {
        width: 100%;
    }
    
    .article-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .article-detail-page {
        padding: 20px 0;
    }
    
    .article-detail-page {
        padding: 15px 0;
        width: 100%;
        overflow-x: hidden;
    }
    
    .article-detail-container {
        padding: 0 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .breadcrumb {
        padding: 10px 12px;
        font-size: 0.85rem;
        margin-bottom: 15px;
        line-height: 1.6;
        word-break: break-word;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .breadcrumb span {
        margin: 0 4px;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    .breadcrumb a {
        font-size: 0.85rem;
        display: inline-block;
        max-width: 100%;
        word-break: break-word;
    }
    
    .article-layout {
        grid-template-columns: 1fr !important;
        gap: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .article-layout > div,
    .article-layout > aside {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .article-main {
        width: 100%;
        max-width: 100%;
        margin-bottom: 20px;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .article-title {
        font-size: 1.5rem;
        line-height: 1.4;
        word-wrap: break-word;
    }
    
    .article-content-wrapper {
        padding: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .article-header-image {
        height: 200px;
        width: 100%;
        max-width: 100%;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 8px;
        padding-bottom: 12px;
        margin-bottom: 12px;
        font-size: 0.85rem;
    }
    
    .article-meta-item {
        font-size: 0.85rem;
    }
    
    .article-category-badge {
        font-size: 0.8rem;
        padding: 6px 15px;
        display: inline-block;
    }
    
    .article-excerpt {
        font-size: 0.95rem;
        padding: 12px;
        margin-bottom: 15px;
        line-height: 1.6;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
    }
    
    .article-body {
        font-size: 0.95rem;
        line-height: 1.8;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .article-body p {
        font-size: 0.95rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        margin-bottom: 15px;
    }
    
    /* عنوان‌های موبایل */
    .article-body h1 {
        font-size: 1.8rem;
        margin-top: 25px;
        margin-bottom: 15px;
        padding-bottom: 10px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .article-body h2 {
        font-size: 1.5rem;
        margin-top: 22px;
        margin-bottom: 12px;
        padding-right: 10px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .article-body h3 {
        font-size: 1.3rem;
        margin-top: 20px;
        margin-bottom: 10px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .article-body h4 {
        font-size: 1.15rem;
        margin-top: 18px;
        margin-bottom: 10px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .article-body h5 {
        font-size: 1.05rem;
        margin-top: 15px;
        margin-bottom: 8px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .article-body h6 {
        font-size: 1rem;
        margin-top: 15px;
        margin-bottom: 8px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* اندازه‌های متن موبایل */
    .article-body .text-xs,
    .article-body .text-small {
        font-size: 0.8rem;
        line-height: 1.7;
    }
    
    .article-body .text-sm,
    .article-body .text-small-medium {
        font-size: 0.85rem;
        line-height: 1.75;
    }
    
    .article-body .text-base,
    .article-body .text-normal {
        font-size: 0.95rem;
        line-height: 1.8;
    }
    
    .article-body .text-lg,
    .article-body .text-large {
        font-size: 1.1rem;
        line-height: 1.85;
    }
    
    .article-body .text-xl,
    .article-body .text-extra-large {
        font-size: 1.25rem;
        line-height: 1.9;
    }
    
    .article-body .text-2xl,
    .article-body .text-xxl {
        font-size: 1.4rem;
        line-height: 2;
    }
    
    .article-body blockquote {
        padding: 15px 18px;
        margin: 20px 0;
        font-size: 1rem;
    }
    
    .article-body ul, .article-body ol {
        padding-right: 20px;
        margin: 15px 0;
    }
    
    .article-body li {
        margin-bottom: 8px;
        font-size: 0.95rem;
    }
    
    .article-body img {
        max-width: 100%;
        width: 100%;
        height: auto;
        margin: 15px 0;
    }
    
    .article-body table {
        font-size: 0.85rem;
    }
    
    .article-body th,
    .article-body td {
        padding: 8px 10px;
    }
    
    .related-articles-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .related-article-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .related-article-content {
        padding: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .related-article-title {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .article-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .share-buttons {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    
    .share-btn {
        width: 100%;
        text-align: center;
        padding: 12px;
        font-size: 0.9rem;
        box-sizing: border-box;
    }
    
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
        word-wrap: break-word;
    }
    
    .popular-section {
        padding: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .popular-article-item {
        flex-direction: column;
        gap: 10px;
        padding: 12px 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .popular-article-image {
        width: 100%;
        max-width: 100%;
        height: 150px;
        box-sizing: border-box;
    }
    
    .popular-article-info {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .popular-article-title {
        font-size: 0.95rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .articles-header h1 {
        font-size: 1.5rem;
    }
    
    .article-detail-page {
        padding: 10px 0;
    }
    
    .article-detail-container {
        padding: 0 8px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .article-layout {
        width: 100%;
        max-width: 100%;
        gap: 15px;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .article-layout > div,
    .article-layout > aside {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .article-layout > div > article,
    .article-layout > div > .related-section {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .article-content-wrapper {
        padding: 10px;
        width: 100%;
        max-width: 100%;
    }
    
    .article-body {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    
    .related-article-content {
        padding: 12px;
        width: 100%;
        max-width: 100%;
    }
    
    .popular-section {
        padding: 10px;
        width: 100%;
        max-width: 100%;
    }
    
    .breadcrumb {
        padding: 8px 10px;
        font-size: 0.75rem;
        margin-bottom: 12px;
    }
    
    .breadcrumb span {
        margin: 0 3px;
        font-size: 0.7rem;
    }
    
    .article-title {
        font-size: 1.3rem;
        margin-bottom: 12px;
        line-height: 1.3;
    }
    
    .article-content-wrapper {
        padding: 12px;
    }
    
    .article-header-image {
        height: 180px;
    }
    
    .article-meta {
        font-size: 0.8rem;
        gap: 6px;
    }
    
    .article-excerpt {
        font-size: 0.9rem;
        padding: 10px;
    }
    
    .article-body {
        font-size: 0.9rem;
        line-height: 1.7;
    }
    
    /* عنوان‌های صفحات کوچک */
    .article-body h1 {
        font-size: 1.5rem;
        margin-top: 20px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    
    .article-body h2 {
        font-size: 1.3rem;
        margin-top: 18px;
        margin-bottom: 10px;
        padding-right: 8px;
    }
    
    .article-body h3 {
        font-size: 1.15rem;
        margin-top: 16px;
        margin-bottom: 8px;
    }
    
    .article-body h4 {
        font-size: 1.05rem;
        margin-top: 14px;
        margin-bottom: 8px;
    }
    
    .article-body h5 {
        font-size: 1rem;
        margin-top: 12px;
        margin-bottom: 6px;
    }
    
    .article-body h6 {
        font-size: 0.95rem;
        margin-top: 12px;
        margin-bottom: 6px;
    }
    
    /* اندازه‌های متن صفحات کوچک */
    .article-body .text-xs,
    .article-body .text-small {
        font-size: 0.75rem;
        line-height: 1.6;
    }
    
    .article-body .text-sm,
    .article-body .text-small-medium {
        font-size: 0.8rem;
        line-height: 1.65;
    }
    
    .article-body .text-base,
    .article-body .text-normal {
        font-size: 0.9rem;
        line-height: 1.7;
    }
    
    .article-body .text-lg,
    .article-body .text-large {
        font-size: 1rem;
        line-height: 1.75;
    }
    
    .article-body .text-xl,
    .article-body .text-extra-large {
        font-size: 1.1rem;
        line-height: 1.8;
    }
    
    .article-body .text-2xl,
    .article-body .text-xxl {
        font-size: 1.25rem;
        line-height: 1.85;
    }
    
    .article-body blockquote {
        padding: 12px 15px;
        margin: 18px 0;
        font-size: 0.9rem;
    }
    
    .article-body ul, .article-body ol {
        padding-right: 18px;
        margin: 12px 0;
    }
    
    .article-body li {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .article-body table {
        font-size: 0.75rem;
    }
    
    .article-body th,
    .article-body td {
        padding: 6px 8px;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-box button {
        width: 100%;
    }
    
    .share-btn {
        padding: 10px;
        font-size: 0.85rem;
    }
    
    .article-gallery {
        margin: 20px 0;
        padding-top: 15px;
        width: 100%;
        max-width: 100%;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        width: 100%;
        max-width: 100%;
    }
    
    .gallery-item {
        width: 100%;
        max-width: 100%;
    }
    
    .gallery-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
        width: 100%;
        max-width: 100%;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .popular-section {
        padding: 12px;
    }
}

/* ===============================
   گالری تصاویر مقاله
=============================== */
.article-gallery {
    margin: 40px 0;
    padding-top: 30px;
    border-top: 2px solid rgba(255,255,255,0.1);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.gallery-title {
    font-size: 1.5rem;
    color: #00aaff;
    margin-bottom: 25px;
    font-weight: 700;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
    max-width: 100%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    aspect-ratio: 1;
    background: rgba(0,26,68,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,170,255,0.3);
    border-color: rgba(0,170,255,0.5);
}

.gallery-item img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    display: block;
    box-sizing: border-box;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,26,68,0.8);
    border-radius: 50%;
}

.lightbox-close:hover {
    color: #00aaff;
    background: rgba(0,170,255,0.3);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,26,68,0.8);
    border-radius: 50%;
    user-select: none;
}

.lightbox-prev {
    right: 20px;
}

.lightbox-next {
    left: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: #00aaff;
    background: rgba(0,170,255,0.3);
    transform: translateY(-50%) scale(1.1);
}

/* واکنش‌گرایی گالری */
@media (max-width: 768px) {
    .article-gallery {
        margin: 30px 0;
        padding-top: 20px;
        width: 100%;
        max-width: 100%;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
        width: 100%;
        max-width: 100%;
    }
    
    .gallery-item {
        width: 100%;
        max-width: 100%;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        font-size: 24px;
        width: 40px;
        height: 40px;
    }
    
    .lightbox-prev {
        right: 10px;
    }
    
    .lightbox-next {
        left: 10px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .gallery-title {
        font-size: 1.2rem;
    }
}

