/* ریست کردن مارجین و پدینگ و تنظیم باکس سایزینگ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* تنظیم فونت و پس‌زمینه کل صفحه */
body {
  font-family: Tahoma, sans-serif;
  background: #ffffff;
  margin: 0;
  padding: 0;
  direction: rtl;
}

/* استایل هدر ثابت بالای صفحه */
header {
  position: fixed;
  width: 100%;
  top: 0;
  padding: 15px 30px;
  background: linear-gradient(to right, #844395, #8BC733);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  z-index: 1000;
}

/* کوچک شدن هدر هنگام اسکرول */
header.shrink {
  padding: 5px 30px;
  font-size: 0.9em;
}

/* استایل لوگو */
.logo {
  font-size: 1.5em;
  font-weight: bold;
}
.logo img {
  width: 100px;
  height: auto;
}

/* استایل منوی ناوبری */
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}
nav ul li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}
nav ul li a:hover {
  color: #000;
}

/* فاصله محتوای اصلی از هدر */
main {
  padding-top: 100px;
  text-align: center;
}

/* استایل بخش کارت‌ها */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 40px;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  max-width: 1200px;
  padding: 50px 0;
}

/* استایل کارت نمونه */
.card {
  background: radial-gradient(circle, white 0%, #8BC733 100%);
  padding: 50px;
  width: 90%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  text-align: right;
  gap: 20px;
}
.card img {
  max-width: 140px;
  width: 140px;
  height: 160px;
  border-radius: 8px;
  object-fit: cover;
}
.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 10px;
}
.card h2 {
  margin-bottom: 10px;
}
.card button, .card-btn {
  padding: 10px 20px;
  border: none;
  background: #844395;
  color: white;
  cursor: pointer;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s;
}
.card button:hover, .card-btn:hover {
  background: #6e2f7b;
}

/* استایل کارت پزشک */
.doctor-card {
  background: radial-gradient(circle, white 0%, #844395 100%);
  padding: 60px 40px;
  max-width: 500px;
  min-height: 380px;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(132, 67, 149, 0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 25px;
  margin: 0 auto;
  font-size: 1.2rem;
}
.doctor-card img {
  max-width: 180px;
  height: 210px;
  border-radius: 12px;
  object-fit: cover;
}
.card-content h2 {
  margin-bottom: 15px;
  font-size: 2rem;
  text-align: center;
}
.card-content p {
  font-size: 1.1rem;
  color: #444;
  margin-top: 10px;
  line-height: 1.7;
}

/* اسلایدر تصاویر */
.image-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 50px 0;
  position: relative;
}
.slider-container {
  position: relative;
  width: 100%;
  max-width: 1123px;
  height: 500px;
  margin: 40px auto;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slide.active {
  opacity: 1;
}
.image-slider button {
  border: none;
  color: rgb(0, 0, 0);
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  margin: 0 10px;
  z-index: 2;
  transition: background 0.3s;
}
.image-slider button:hover {
  background: #cccccc;
}

/* بخش تماس با ما */
.contact-section {
  text-align: center;
  padding: 2rem 0;
  background-color: #f4f4f9;
}
.contact-section h2 {
  color: #000;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
.contact-info {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.contact-box {
  background-color: #fff;
  padding: 1rem 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  max-width: 300px;
}
.contact-box h3 {
  font-size: 1.5rem;
  color: #000;
  margin-bottom: 0.5rem;
}
.contact-box p {
  font-size: 1rem;
  color: #555;
}

/* بخش درباره ما */
.about-section, .hypac-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: justify;
  direction: rtl;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.hypac-section h2, .hypac-section h3 {
  color: #844395;
  margin-bottom: 15px;
}
.hypac-section ul {
  padding-right: 20px;
  margin-bottom: 30px;
}
.hypac-section ul li {
  margin-bottom: 10px;
  line-height: 1.8;
}

/* بخش ویدیو */
.video-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 50px auto;
}
.video-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.h_iframe-aparat_embed_frame {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16/9;
  margin: 0 auto 40px;
  background: #000;
}
.h_iframe-aparat_embed_frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* فوتر */
footer {
  background: #333;
  color: white;
  padding: 30px;
  margin-top: 50px;
  text-align: center;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer-content h4 {
  margin-bottom: 10px;
}
.footer-content ul {
  list-style: none;
  display: flex;
  gap: 15px;
  padding: 0;
  margin: 0;
  align-items: center;
}
.footer-content ul li a {
  color: white;
  text-decoration: none;
}
.footer-content ul li a:hover {
  text-decoration: underline;
}
.footer-content ul li a img {
  width: 32px;
  height: 32px;
}
.box {
  width: 300px;
  height: 50px;
  background-color: #0dc4c4;
  border: 2px solid #ccc;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border-radius: 8px;
  margin-left: auto;
  text-decoration: none;
  color:whitesmoke;
}

/* ------------------ مدیا کوئری رسپانسیو ------------------ */

/* تبلت */
@media (max-width: 992px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .slider-container {
    height: 350px;
  }
}

/* موبایل */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 10px;
    background: #844395;
    padding: 15px;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    display: none;
  }
  nav ul.active {
    display: flex;
  }
  .cards {
    grid-template-columns: 1fr;
    max-width: 600px;
  }
  .slider-container {
    height: 250px;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  body {
    font-size: 14px;
  }
}

/* موبایل کوچک */
@media (max-width: 480px) {
  .slider-container {
    height: 180px;
  }
  .card h2 {
    font-size: 1.2rem;
  }
}
/* حالت عادی */
#nav-menu {
  display: flex;
  list-style: none;
  gap: 15px;
}

/* دکمه منوی موبایل */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
}

/* رسپانسیو */
@media (max-width: 768px) {
  #nav-menu {
    display: none;
    flex-direction: column;
    background: #333;
    position: absolute;
    top: 60px;
    right: 10px;
    padding: 15px;
    border-radius: 10px;
  }

  #nav-menu.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}
.menu-toggle {
  position: absolute; /* یا relative بسته به ساختارت */
  left: 10px; /* منو بچسبه به چپ */
  top: 15px; /* موقعیت عمودی */
  z-index: 1000; /* همیشه بالای همه باشه */
}

@media (max-width: 768px) {
  .cards {
    flex-direction: column;
    align-items: center;
  }
  .card {
    width: 90%;
  }
}
