/* تنظیمات عمومی */
body {
    font-family: "IRANSans", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  direction: rtl;
  text-align: center;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  font-size: 16px;
  line-height: 1.6;
  color: #222;
}

#popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-content {
  background: white;
  padding: 20px;
  border-radius: 15px;
  width: 600px;
  max-width: 90%;
}
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
  color: #333;
  background: white;
}
.popup-body {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 15px;
}

.popup-image {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  overflow: hidden;
  border-radius: 10px;
}

.popup-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.popup-text {
  flex: 1;
  font-size: 14px;
  color: #333;
}

.popup-text p {
  margin-top: 0;
  margin-bottom: 10px;
}

.buttons {
  margin-top: 10px;
}

.button {
  display: inline-block;
  margin: 5px 5px 0 0;
  background: #00aaff;
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
}

.whatsapp {
  background-color: #25D366;
}

.telegram {
  background-color: #0088cc;
}


.image-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 10px;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.overlay-text {
  position: absolute;
  top: 20px;
  left: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.85);
  padding: 8px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  color: #333;
  z-index: 2;
}

.button {
  display: inline-block;
  margin: 6px 4px 0 4px;
  background: #00aaff;
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
}

.whatsapp {
  background-color: #25D366;
}

.telegram {
  background-color: #0088cc;
}


/* ناوبری */
body {
  margin: 0;
  font-family: sans-serif;
  direction: rtl;
}

.navbar {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1000;
}

.menu-toggle {
  background-color: #ffd700;
  border: none;
  color: #333;
  padding: 10px;
  font-size:20px;
  cursor: pointer;
  outline: none;
  width: 100%;
}

.menu-toggle:hover {
  background-color: #555;
}

.menu {
  display: none;
  position: fixed;
  top: 60px;
  right: 0;
  background-color: #333;
  width: 200px;
  box-shadow: -2px 2px 5px rgba(0,0,0,0.2);
}

.menu a {
  display: block;
  color: white;
  padding: 15px;
  text-decoration: none;
  border-bottom: 1px solid #444;
}

.menu a:hover {
  background-color: #555;
}

.show {
  display: block;
}
nav {
  background-color: #ffd700;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
nav ul li {
  margin: 0 10px;
}
nav ul li a {
  text-decoration: none;
  color: #000;
  font-weight: bold;
  transition: color 0.3s ease;
}
nav ul li a:hover {
  color: #333;
}

/* استایل هدر */
header img {
  width: 100%;
  height: auto;
  object-fit: contain;
  box-shadow: 0px 4px 10px rgba(248, 198, 82, 0.2);
}

header h1 {
  font-size: 28px;
  margin: 20px 0;
  color: #444;
}
.islamic-architecture {
  font-family: 'IRANSans', sans-serif;
  line-height: 2;
  direction: rtl;
  color: #333;
  padding: 20px;
  background: #ffffff;
}

.islamic-architecture h2 {
  font-size: 22px;
  font-weight: bold;
  color: #219c9c;
  margin-top: 40px;
  border-right: 4px solid #00aaaa;
  padding-right: 10px;
}

.islamic-architecture p {
  font-size: 17px;
  margin-top: 15px;
  text-align: justify;
}

.islamic-architecture ul {
  margin-top: 10px;
  margin-right: 20px;
  list-style-type: disc;
}

.islamic-architecture li {
  margin-bottom: 8px;
  font-size: 16px;
}

.islamic-architecture hr {
  margin: 40px 0;
  border: none;
  border-top: 1px dashed #aaa;
}
/* معرفی */
.about-title {
  padding: 20px;
  font-size: 18px;
  color: black;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background-color: #FAF3E0;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  margin: 20px;
  padding: 20px;
  border-radius: 10px;
  text-align: right;
  gap: 20px;
}
.islamic-places {
  font-family: "IRANSans", sans-serif;
  direction: rtl;
  background-color: #fff;
  padding: 30px;
  max-width: 900px;
  margin: auto;
  line-height: 2;
  color: #333;
}

.country-block {
  margin-bottom: 40px;
}

.country-title {
  font-size: 20px;
  font-weight: bold;
  color: #006666;
  border-right: 5px solid #00aaaa;
  padding-right: 10px;
  margin-bottom: 15px;
}
.flag {
  font-size: 18px;
  vertical-align: middle;
  margin-left: 8px;
}
.place {
  margin-right: 25px;
  margin-bottom: 10px;
}

.place strong {
  display: block;
  color: #222;
}

.divider {
  border-top: 1px dashed #bbb;
  margin: 40px 0;
}
/* تنظیمات بخش‌های اصلی */
.content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background-color: #FAF3E0;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  margin: 20px;
  padding: 20px;
  border-radius: 10px;
  text-align: right;
  gap: 20px;
}

.content img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 10px;
}

/* کارت‌ها */
.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.card {
  width: 100%;
  max-width: 400px;
  background: #caede1;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding: 15px;
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.card h2 {
  font-size: 20px;
  margin: 10px 0;
}

.card p {
  font-size: 16px;
  color: #333;
}

/* خدمات */
.services {
  background-color: #ffd700;
  padding: 20px;
  margin: 20px;
  border-radius: 10px;
}

.services ul {
  list-style-type: none;
  padding: 0;
}

.services ul li {
  font-size: 16px;
  padding: 5px 0;
  color: #333;
}

/* فوتر */
footer {
  background-color: #333;
  color: white;
  padding: 20px;
  text-align: center;
}

footer a {
  color: #ffd700;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* 📱 استایل ریسپانسیو برای موبایل */
@media (max-width: 768px) {
  .content {
      flex-direction: column;
      text-align: center;
  }
  #popup .popup-body {
      flex-direction: column;
      align-items: center;
      text-align: center;
  }
  
  .popup-image {
      width: 100%;
      height: auto;
  }
  
  .popup-image img {
      width: 100%;
      height: auto;
  }
  
  .popup-text {
      font-size: 16px;
  }
  
  .card {
      width: 90%;
  }

  nav ul {
      flex-direction: column;
      align-items: center;
  }

  nav ul li {
      margin: 5px 0;
  }
}

/* 🖥️ استایل مخصوص دسکتاپ */
@media (min-width: 1024px) {
  .content {
      flex-direction: row;
      justify-content: space-around;
  }

  .card-container {
      justify-content: space-evenly;
  }

  .card {
      width: 30%;
  }
}
