body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    direction: rtl;
    background-color: #fcfcfc;

}




header {
    position: relative;
    background: #3c2f2f;
    color: #f5e6cc;
    padding: 0.5rem 1rem;
    border-bottom: 3px solid #8a5522;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left,
.header-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.header-left {
    justify-content: flex-start;
}

.header-right {
    justify-content: flex-end;
}

.header-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none; /* اگر فقط نمایشی هست و قابل کلیک نیست */
}

.logo {
    height: 64px; /* یا هر سایزی که می‌خوای */
    object-fit: contain;
    margin-right: 85px;
}

/* آیکون خانه */
.home-icon i {
    font-size: 24px;
    color: #f5e6cc;
    transition: color 0.3s;
}

.home-icon i:hover {
    color: #e6b800;
}

/* رسپانسیو برای موبایل */
@media (max-width: 768px) {
    .logo {
    width: 60px; /* اندازه کوچکتر در موبایل */
    height: 50px;
    padding: 0;
    margin: 0;
    }

    .header-right h1 {
        font-size: 1.4rem;
    }
        .header-left h1 {
        font-size: 1.5rem;
    }

    .header-left a {
        font-size: 1.4rem;
    }

}




/* استایل کلی بخش */
.historical-section {
  background: linear-gradient(135deg, #e0e7ff 0%, #f5f5ff 100%); /* گرادیان ملایم */
  border: none;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  max-width: 70%;
  min-width: 50%;
  margin: 40px auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* افکت هاور برای بخش */
.historical-section:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* استایل متن توضیحات */
.historical-section .description {
  font-size: 24px;
  color: #1a1a1a;
  line-height: 1.9;
  font-family: 'Vazir', sans-serif; /* فونت زیبای فارسی، در صورت نیاز تغییر دهید */
  opacity: 0;
  animation: fadeInText 1.5s ease-in-out forwards;
  margin-bottom: 20px;
}

/* انیمیشن برای ورود متن */
@keyframes fadeInText {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* استایل لوگو */
.historical-section .logo1 {
  width: 100px; /* اندازه ثابت لوگو در همه دستگاه‌ها */
  height: auto; /* حفظ نسبت تصویر */
  margin-top: 20px;
}

/* افکت پس‌زمینه متحرک */
.historical-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  opacity: 0.5;
  z-index: -1;
  animation: pulseBackground 6s infinite ease-in-out;
}

/* انیمیشن پالس برای پس‌زمینه */
@keyframes pulseBackground {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
}

/* ریسپانسیو کردن برای موبایل */
@media (max-width: 768px) {
  .historical-section {
    max-width: 90%;
    padding: 20px;
  }

  .historical-section .description {
    font-size: 18px;
    line-height: 1.7;
  }

  /* لوگو در موبایل همان اندازه دسکتاپ */
  .historical-section .logo1 {
    width: 100px; /* اندازه ثابت */
    height: auto;
  }
}












.url-bar {
    padding: 10px;
    background-color:#311406;
    text-align: center;
    color: #e8dab2;
    font-size: 20px;
}

.book-list {
    padding: 10px;
}

.book-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    background-color: #ffffff;
    padding: 10px;
    border: 1px solid #a19f9f;
    border-radius: 10px;

}

.book-item img {
    width: 100px;
    height: 150px;
    margin-left:20px;
}

.book-info {
    flex-grow: 1;
}

.book-info h3 {
    margin: 0;
    font-size: 18px;

}
.book-info h3 a{
    text-decoration: none;
    color: black;
    font-weight:bold;
}

.book-info p {
    margin: 5px 0;
    color: #252525;
    font-size: 20px;
}
#searchInput {
  width: 60%; /* عرض پیش‌فرض 60% از کانتینر */
  max-width: 400px; /* حداکثر عرض 400px */
  min-width: 200px; /* حداقل عرض */
  padding: 0.625rem; /* معادل 10px */
  margin: 1.25rem auto; /* معادل 20px */
  display: block;
  border-radius: 8px;
  border: 1px solid #141313;
  font-size: clamp(14px, 2.5vw, 16px);
  direction: rtl;
  box-sizing: border-box;
}

/* Media Query برای صفحه‌نمایش‌های گوشی */
@media (max-width: 600px) {
  #searchInput {
    width: 70%; /* عرض کمتر در گوشی (مثلاً 70% به‌جای 80%) */
    max-width: 80%; /* حداکثر عرض 80% از صفحه */
    min-width: 100px; /* حداقل عرض کمتر برای گوشی */
    padding: 0.3rem;
    font-size: clamp(12px, 2.5vw, 14px);
  }
}



/* ریست حاشیه‌ها و پدینگ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* استایل محتوای اصلی */
.content {
  padding: 40px;
  text-align: center;
  min-height: 80vh; /* برای اطمینان از اینکه فوتر در پایین باشد */
}

/* استایل فوتر */
.footer {
  background-color: #2d2d2d; /* خاکستری تیره برای کنتراست */
  color: #ffffff;
  padding: 40px 20px;
  text-align: center;
  width: 100%;
}

/* محتوای فوتر */
.footer-content {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* دکمه درباره ما */
.about-button .btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #05396d; /* آبی جذاب */
  color: #ffffff;
  text-decoration: none;
  border-radius: 25px;
  font-size: 20px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.about-button .btn:hover {
  background-color: #1678d6; /* تیره‌تر هنگام هاور */
  transform: translateY(-2px);
}

/* آیکون‌های شبکه‌های اجتماعی */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icons a {
  color: #f7f2f2;
  font-size: 28px;
  transition: color 0.3s ease, transform 0.2s ease;
}

.social-icons a:hover {
  color: #4134ee; /* آبی هنگام هاور */
  transform: scale(1.1);
}

/* استایل ایمیل */
.email p {
  font-size: 20px;
}

.email a {
  color: #3960bb;
  text-decoration: none;
}

.email a:hover {
  text-decoration: underline;
}

/* استایل کپی‌رایت */
.copyright p {
  font-size: 20px;
  color: #ffffff;
  margin-top: 10px;
}

/* برای نمایش بهتر در موبایل */
@media (max-width: 768px) {
  .footer {
      padding: 30px 15px;
  }

  .social-icons a {
      font-size: 24px;
      gap: 15px;
  }

  .about-button .btn {
      padding: 10px 20px;
      font-size: 17px;
  }

  .email p {
      font-size: 17px;
  }

  .copyright p {
      font-size: 17px;
  }
}








.episode-card {
    display: flex;
    background-color: #0d1c33;
    border-radius: 16px;
    padding: 15px;
    margin: 20px auto;
    max-width: 600px;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    direction: rtl;
  }
  
  .episode-left img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
  }
  
  .episode-left {
    margin-right: 15px;
  }
  
  .episode-right {
    flex: 1;
  }
  
  .episode-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .episode-header h4 {
    margin: 0;
    font-size: 14px;
    color: #ccc;
  }
  
  .icons button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    margin-left: 5px;
  }
  
  .episode-right h3 {
    margin: 5px 0;
    font-size: 16px;
  }
  
  .episode-right p {
    font-size: 13px;
    margin-bottom: 10px;
    color: #aaa;
  }
  
  .episode-right audio {
    width: 100%;
  }
  
  /* Responsive */
  @media (max-width: 600px) {
    .episode-card {
      flex-direction: column;
      text-align: center;
    }
  
    .episode-left {
      margin: 0 auto 10px auto;
    }
  
    .episode-left img {
      width: 80px;
      height: 80px;
    }
  
    .episode-header {
      flex-direction: column;
      gap: 5px;
    }
  }



  
#scrollToTopBtn {
    display: none; 
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #04359e;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 24px;
    line-height: 50px;
    text-align: center;
    transition: all 0.3s ease;
    animation:pulse 3s infinite;
  }
  
  #scrollToTopBtn:hover {
    background-color: #a52a2a;
    transform: scale(1.2)
    rotate(360deg);
    box-shadow: 0 0 15px rgb(0, 0, 0,0.3);
  }
  @keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 #556b2f;
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
  }





 