
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Vazirmatn', sans-serif;
  direction: rtl;
  text-align: right;
}









/* استایل کلی بخش */
.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;
  }
}


















main {
    flex: 1 0 auto;
    margin: 20px;
}

li{
    list-style-position:inside;
    margin:0 ;
    padding: 0;
    font-size: 20px;
}



#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);
    }
}













.container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); /* عرض کمتر */
  gap: 16px;
  max-width: 900px; /* یا هر عددی که با طراحی‌ات همخوانی داره */
  margin: 0 auto;
  padding: 20px;
}
.card {
  background-color: #2c2c2c;
  border-radius: 12px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 240px;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.card img {
  width: 100%;
  height: 80%;
  object-fit: cover;
  display: block;
}

.card-text {
  height: 20%;
  padding: 8px;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  background: linear-gradient(135deg, #e6d3b3, #7a5c3e);
  color: #2c1b0e;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 768px) {
  .container {
    grid-template-columns: repeat(2, 1fr);
  }

  .card {
    height: 240px;
  }
}

@media (max-width: 480px) {
  .container {
    grid-template-columns: repeat(2, 1fr);
  }

  .card {
    height: 220px;
  }
}



















.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(rgb(78, 36, 23), #a05d3e);
  padding: 10px 20px;
  position: relative;
  z-index: 1001;
}

.logo {
  flex: 1;
  text-align: center;
}

.logo-img {
  height: 70px;
  max-width: 100%;
  margin-right: 85px;
}

.menu-btn, .search-btn {
  background: none;
  border: none;
  font-size: 29px;
  cursor: pointer;
  color: #fff;
}

.menu-close-circle {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 35px;
  height: 35px;
  background-color: #5c2e20;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.menu-close-circle:hover {
  background-color: #3b1d0e;
}

.menu-close-circle::before {
  content: '×';
  color: #fff8dc;
  font-size: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}
/* استایل منوی کناری */
.side-menu {
  position: fixed;
  top: 0;
  right: -75%;
  width: 75%;
  height: 100vh;
  background-color: #e6d5b8;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  transition: right 0.3s ease;
  padding-top: 0px; /* فاصله از بالا برای قرارگیری زیر هدر */
}

.side-menu.active {
  right: 0;
}

/* آیتم‌های لیست منو */
.side-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-menu li {
  border-bottom: 1px solid #a57957;
}

.side-menu li:first-child {
  margin-top: 0; /* اطمینان از چسبیدن به بالای منو */
}

.side-menu a {
  display: block;
  padding: 15px 20px;
  font-size: 18px;
  color: #3e2c14;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

/* افکت هاور مدرن */
.side-menu a:hover {
  background-color: #5c2e20;
  color: #fff8dc;
}

/* لایه پوششی */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  z-index: 999;
}

/* نمایش فعال */
.side-menu.active {
  right: 0;
}

.overlay.active {
  display: block;
}

/* ریسپانسیو */
@media (max-width: 768px) {
  .logo-img {
    height: 50px;
    margin-right: 58px;
  }

  .search-box input {
    width: 120px;
  }

  .navbar {
    padding: 8px 15px;
  }
}

.promo-banner {
  display: block;
  width: 100%;
  max-width: 60%;
  overflow: hidden;
  border-radius: 12px;
  margin: auto;
  text-decoration: none;
  margin-bottom: 40px;
  color: white;
  border: 3px solid #8B5E3C; /* بوردر قهوه‌ای تیله‌ای */
  background-color: #fffaf2; /* پس‌زمینه ملایم در صورت نیاز */
}

.banner-image {
  height: 250px;
  overflow: hidden;
}

.banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.promo-banner:hover img {
  transform: scale(1.02);
}

.banner-caption {
  background-color: #d2b48c; /* رنگ کرمی قهوه‌ای */
  text-align: center;
  padding: 12px;
  font-size: 18px;
  font-weight: bold;
  color: #3e2f1c; /* رنگ متن تیره برای خوانایی بهتر */
}

@media (max-width: 600px) {
  .banner-image {
    height: 160px;
  }
  .banner-caption {
    font-size: 16px;
    padding: 10px;
  }
  .promo-banner {
    max-width: 85%;
  }
}
@media (max-width: 480px) {
  .promo-banner {
    max-width: 90%;
  }

  .banner-image {
    height: 140px;
  }

  .banner-caption {
    font-size: 15px;
    padding: 8px;
  }
}











/* ریست حاشیه‌ها و پدینگ */
* {
  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: 10px;
}

.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: 20px;
      gap: 10px;
  }

  .about-button .btn {
      padding: 10px 20px;
      font-size: 17px;
  }

  .email p {
      font-size: 17px;
  }

  .copyright p {
      font-size: 17px;
  }
}











* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.body1 {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0vh;
  background: #ffffff;
  direction: rtl;
  font-family: Arial, sans-serif;
}

.poet-container {
  width: 100%;
  max-width: 1200px;
  padding: 1rem;
  overflow: hidden;
}

.poet-slider {
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.poet-slider::-webkit-scrollbar {
  display: none;
}

.poet-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.poet-circle {
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  text-decoration: none;
  overflow: hidden; /* اطمینان از اینکه تصویر از دایره خارج نمی‌شود */
  display: flex;
  align-items: center;
  justify-content: center;
}

.poet-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* تصویر کل دایره را پر می‌کند */
  border-radius: 50%; /* حفظ شکل دایره‌ای */
}

.poet-item span {
  font-size: 1.1rem;
  color: #333;
  font-weight: bold;
  text-align: center;
  margin-top: 0.5rem;
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.poet-circle:hover {
  transform: scale(1.1);
}

/* رسپانسیو برای گوشی‌های موبایل (عرض کمتر یا مساوی 768px) */
@media screen and (max-width: 768px) {
  .poet-container {
      padding: 0.5rem;
  }

  .poet-slider {
      gap: 1rem;
  }

  .poet-item {
      width: 6rem;
  }

  .poet-circle {
      width: 6rem;
      height: 6rem;
  }

  .poet-item span {
      font-size: 1rem;
      max-width: 6rem;
      margin-top: 0.2rem;
  }
}

/* رسپانسیو برای تبلت‌ها (عرض بین 769px و 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .poet-item {
      width: 8rem;
  }

  .poet-circle {
      width: 8rem;
      height: 8rem;
  }

  .poet-item span {
      font-size: 1rem;
      max-width: 8rem;
  }
}
.drag-hint {
  text-align: center;
  font-size: 1rem;
  color: #070707;
  margin-top: 0.3rem;
  margin-bottom: 80px;
  animation: moveLeftRight 1.5s infinite alternate;
  user-select: none;
  pointer-events: none;
  border-bottom: 1px solid black;
}

@keyframes moveLeftRight {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-10px);
  }
}























.body2{
  font-family: "Tahoma", sans-serif;
  margin: 0;
  padding: 20px;
  direction: rtl;
}

.main-box {
  width: 90%;
  max-width: 600px;
  margin: auto;
  border: 2px solid #a77c47;
  border-radius: 5px;
  overflow: hidden;
  background-color: #fffaf3;
}

.accordion-header {
  background-color: #a77c47;
  color: white;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  border: none;
  width: 100%;
  outline: none;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid #c59b6f;
  transition: background 0.3s;
  position: relative;
}

.accordion-header:hover {
  background-color: #c6975c;
}

.accordion-content {
  display: none;
  padding: 10px;
  background-color: #fff2e0;
  text-align: center;
}

.accordion-content a {
  display: block;
  color: #5c3d24;
  text-decoration: none;
  margin-bottom: 5px;
  padding: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: background 0.3s, color 0.3s;
}

.accordion-content a:hover {
  background-color: #ecd3a0;
  color: #000;
}

.arrow {
  position: absolute;
  left: 15px;
  font-size: 14px;
}







.slider {
  position: relative;
  width: 100%;
  max-width: 1070px;
  aspect-ratio: 1080 / 700;
  margin: auto;
  overflow: hidden;
  border-radius: 30px;
  padding: 0 10px;
  margin-bottom: 35px;
}

.slides {
  position: relative;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease-in-out;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: white;
}

@media (min-width: 992px) {
  .slider {
    max-width: 800px;  /* کمتر از 1080px برای لپ‌تاپ */
  }
}




.top-banner {
  width: 90%;
  max-width: 800px;
  margin: 20px auto;
  background: linear-gradient(135deg, #e6d3b3, #7a5c3e);
  color: #2c1b0e;
  text-align: center;
  padding: 15px; /* کاهش پدینگ برای گوشی */
  font-weight: 600;
  border-radius: 18px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
}

/* بهبود انیمیشن متن */
.animate-text {
  display: inline-block;
  white-space: nowrap;
  animation: slideInLeft 6s ease-in-out infinite;
  width: 100%; /* اطمینان از اینکه متن در ظرف جا می‌شود */
  overflow: hidden;
  text-overflow: ellipsis; /* در صورت سرریز، متن کوتاه می‌شود */
}

@keyframes slideInLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  15% {
    transform: translateX(0);
    opacity: 1;
  }
  85% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(-100%);
    opacity: 0;
  }
}

.headline {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.subtext {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.start-btn {
  display: inline-block;
  background-color: #5a381f;
  color: #fff8ec;
  font-size: 1rem;
  padding: 8px 22px;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
}

.start-btn:hover {
  background-color: #3f2716;
  transform: scale(1.05);
}
/* ریسپانسیو برای گوشی‌ها */
@media (max-width: 600px) {
  .top-banner {
    padding: 2px 10px; /* کاهش پدینگ عمودی برای مستطیلی‌تر شدن */
    min-height: auto; /* حذف محدودیت ارتفاع */
   
  }

  .headline {
    font-size: 1rem; /* فونت کمی کوچکتر برای تناسب */
    margin-bottom: 0px; /* کاهش فاصله عمودی */
      margin-top: 10px;
  }

  .subtext {
    font-size: 0.8rem; /* فونت کوچکتر برای فشرده‌تر شدن */
    margin-bottom: 2px; /* کاهش فاصله عمودی */
     margin-top: 0px;
  }

  .start-btn {
    font-size: 0.8rem;
    padding: 5px 10px; /* دکمه فشرده‌تر */
    margin-top: 0px;
    margin-bottom: 2px;
  }

  /* اصلاح انیمیشن برای گوشی */
  .animate-text {
    animation: slideInLeftMobile 5s ease-in-out infinite;
    white-space: normal;
    text-align: center;
  }

  @keyframes slideInLeftMobile {
    0% {
      transform: translateX(-50%);
      opacity: 0;
    }
    20% {
      transform: translateX(0);
      opacity: 1;
    }
    80% {
      transform: translateX(0);
      opacity: 1;
    }
    100% {
      transform: translateX(-50%);
      opacity: 0;
    }
  }
}

/* برای صفحه‌نمایش‌های خیلی کوچک */
@media (max-width: 400px) {
  .top-banner {
    padding: 6px 8px; /* پدینگ کمتر برای گوشی‌های خیلی کوچک */
  }

  .headline {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .subtext {
    font-size: 0.8rem;
    margin-bottom: 10px;
  }

  .start-btn {
    font-size: 0.8rem;
    padding: 4px 14px;
  }
}








.body7 {
    font-family: 'Vazirmatn', Arial, sans-serif; /* فونت ایرانی وزیریمتین */
    direction: rtl;
    background-color: #ffffff; /* پس‌زمینه سفید */
    margin: 0;
    padding: 20px;
    min-height: 100vh;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #6B4E31, #E67E22); /* گرادیانت نسکافه‌ای به نارنجی */
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    margin: 30px 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; /* برای انیمیشن */
    transform: translateY(20px); /* برای انیمیشن */
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-content {
    background: #6B4E31; /* نسکافه‌ای تیره برای پس‌زمینه باکس */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); /* سایه قوی برای وضوح */
    width: 45%;
    text-align: right;
    position: relative;
    border-right: 4px solid #E67E22; /* حاشیه نارنجی سوخته */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 60px;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 60px;
}

.timeline-content h3 {
    margin: 0 0 10px;
    color: #FFFFFF; /* سفید برای تیتر */
    font-size: 1.4rem;
}

.timeline-content p {
    margin: 0;
    color: #F0F0F0; /* سفید ملایم برای متن */
    font-size: 1rem;
}

/* رسپانسیو برای موبایل */
@media (max-width: 768px) {
    .timeline::before {
        left: 50%; /* خط عمودی در وسط */
        transform: translateX(-50%);
    }

    .timeline-item {
        margin: 20px 0; /* کاهش حاشیه عمودی */
    }

    .timeline-content {
        width: 65%; /* عرض کمتر برای موبایل */
        padding: 15px; /* پدینگ کوچک‌تر */
        border-right: 3px solid #E67E22; /* حاشیه نازک‌تر نارنجی */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* سایه کمی سبک‌تر */
    }

    .timeline-item:nth-child(odd) .timeline-content {
        margin-right: 50px; /* فاصله کمتر */
    }

    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 50px; /* فاصله کمتر */
    }

    .timeline-content h3 {
        font-size: 1rem; /* فونت کوچک‌تر برای تیتر */
    }

    .timeline-content p {
        font-size: 0.85rem; /* فونت کوچک‌تر برای متن */
    }
}