@import url('https://cdn.jsdelivr.net/npm/vazirmatn@33.003.1/Vazirmatn-font-face.css');

/* عمومی */
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Vazirmatn', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

/* هدر */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #0d3b2e;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  transition: background 0.3s ease;
  z-index: 1000;
}

header.scrolled {
  background: #1a1a1a;
}

header .logo img {
  height: 60px;
}

/* منو سه‌نقطه */
nav {
  position: relative;
  order: 2;
}

.menu-toggle {
  font-size: 24px;
  cursor: pointer;
  background: none;
  border: none;
  color: #fff;
}

/* منوی کشویی */
nav ul {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 40px;
  right: 15px !important; /* فاصله از سمت راست */
  background: #0d3b2e;
  list-style: none;
  padding: 10px;
  border-radius: 5px;
  min-width: 160px;
  z-index: 1000;
}

nav ul li {
  margin: 0;
}

nav ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #26a745;
}

/* حالت باز منو */
nav.open ul {
  display: block;
}

/* اسلایدر */
.hero-slider {
  width: 100%;
  height: 80vh;
  overflow: hidden;
  position: relative;
}

@media (max-width: 768px) {
    .hero-slider img,
    .slides picture img {
        height: auto !important;
        object-fit: contain !important;
    }
}
/* اینترو */
.intro {
  text-align: center;
  padding: 80px 20px;
}

.intro h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.intro p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* دکمه‌ها */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-primary {
  background: #26a745;
  color: #fff;
}

.btn-primary:hover {
  background: #1f8f3d;
}

.btn-secondary {
  background: #fff;
  color: #26a745;
  border: 2px solid #26a745;
}

.btn-secondary:hover {
  background: #26a745;
  color: #fff;
}

/* بخش‌های اطلاعات */
.info-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 60px 20px;
}

.info-section.reverse {
  flex-direction: row-reverse;
}

.info-section .image {
  flex: 1;
  min-width: 300px;
}

.info-section .image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.info-section .text {
  flex: 1;
  min-width: 300px;
  padding: 20px;
}

.info-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.info-section p {
  font-size: 1rem;
  margin-bottom: 20px;
}

/* آیکون‌ها */
.icons img {
  height: 50px;
  margin: 5px;
}

/* فوتر */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-bottom: 10px;
}

.footer-links a {
  text-decoration: none;
  color: #fff;
}

.footer-links a:hover {
  text-decoration: underline;
}

footer {
  background: #1a1a1a;
  color: #fff;
  text-align: center;
  padding: 20px;
}

@media (max-width: 768px) {
    .hero-slider,
    .slider,
    .slides {
        height: auto !important;
    }
    .hero-slider img,
    .slides picture img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important; /* نمایش کامل عکس بدون کشیدگی */
    }
}
@media (max-width: 768px) {
  .banner-card {
    flex-direction: column!important;
    align-items: center !important;
    justify-content: center !important;
  }
  .banner-card > div {
    text-align: center !important;
  }
  .hero-slider img {
    margin: 0 auto !important ;
    display: block !important;
  }
}