/* پایه صفحه */
body.rtl {
  direction: rtl;
  text-align: right;
}

body.ltr {
  direction: ltr;
  text-align: left;
}

body {
  margin: 0;
  background-color: #f9f9f9;
  width: 100%;
  height: 100vh;
  background-image: url('/static/images/bg.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  font-family: 'IranSans', sans-serif;
}

/* بنر بالا */
.top-banner {
  background-color: #003366;
  color: white;
  padding: 20px 40px;
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.banner-text h1 {
  margin: 0;
  font-size: 22px;
}

.banner-text p {
  margin: 5px 0 0;
  font-size: 14px;
}

.logo {
  height: 60px;
  object-fit: contain;
}


/* بنر معرفی */


.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 80px;
  max-width: 1400px;
  width: 100%;
  direction: rtl;
}

.logo-box {
  flex-shrink: 0;
}

.hero-logo {
  height: 320px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.intro-content {
  width: 100%;

  max-width: 650px;
  font-family: 'IranSans', sans-serif;
  color: white;
}

.company-name {
  width: 100%;
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 30px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
}

.company-description {
  font-size: 17px;
  line-height: 2;
  margin-bottom: 40px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.about-button {
  display: inline-block;
  padding: 14px 32px;
  background-color: #005baa;
  color: white;
  font-size: 16px;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
}

.about-button:hover {
  background-color: #0074cc;
}

/* باکس‌های محتوا */
.content-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px; /* فاصله بین باکس‌ها هم افقی هم عمودی */
  padding: 80px 40px; /* فاصله از بالا و پایین کل بخش */
  max-width: 1100px;
  margin: auto;
}






/* توضیحات پنهان */
.box-desc {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  opacity: 0;
  transition: opacity 0.4s ease;
  font-size: 14px;
  line-height: 1.8;
  color: #333;
  z-index: 1;
  pointer-events: none;
}

/* تیتر وسط تصویر هنگام هاور */


/* نمایش توضیحات هنگام هاور */
.box:hover .box-desc {
  opacity: 1;
  pointer-events: auto;
}

/* ریسپانسیو موبایل */
@media (max-width: 768px) {
  .content-boxes {
    grid-template-columns: 1fr;
    padding: 60px 20px;
  }

  .box {
    min-height: 280px;
  }


  .box-desc {
    font-size: 13px;
  }
}





/* ریسپانسیو */





/* توضیحات پنهان */
.box-desc {
  position: absolute;
  bottom: 0 auto;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  opacity: 0;
  transition: opacity 0.4s ease;
  font-size: 14px;
  line-height: 1.8;
  color: #fff;
  z-index: 2;
  pointer-events: none;
}

/* نمایش توضیحات هنگام هاور */
.box:hover .box-desc {
  opacity: 1;
  pointer-events: auto;
}



.footer-credit {
  font-family: 'IranSans', sans-serif;
  font-size: 14px;
  color: #ccc;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 20px;
  line-height: 1.8;
}

.footer-credit strong {
  color: #fff;
  font-weight: bold;
}


@media (max-width: 768px) {
  .top-banner {
    flex-direction: column;
    text-align: center;
  }

  .banner-left {
    justify-content: center;
    margin-bottom: 15px;
  }

  .main-nav ul {
    flex-direction: column;
  }

  .main-nav li {
    margin: 10px 0;
  }

  .content-boxes {
    grid-template-columns: 1fr;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
  }


}

/* General Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Responsive Container */


/* Hero Section */


.hero-logo {
  max-width: 280px;
  height: auto;
}

.intro-content h1 {
  font-size: 2rem;
  margin-top: 1rem;
}

.intro-content p {
  font-size: 1rem;
  margin: 1rem 0;
}

.about-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background-color: #004c6d;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
}






/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  background-color: rgba(0, 47, 95, 1);
  font-size: 0.9rem;
}

/* Responsive Typography */
@media (max-width: 768px) {
  .intro-content h1 {
    font-size: 1.5rem;
  }

  .intro-content p {
    font-size: 0.9rem;
  }

  .about-button {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }

  
  .content-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px; /* فاصله بین باکس‌ها هم افقی هم عمودی */
  padding: 80px 40px; /* فاصله از بالا و پایین کل بخش */
  max-width: 1100px;
  margin: auto;
}

}
.hero-banner {
  width: 100%;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  background: transparent;
  margin-top:80px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo-box {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  width: 100%;
}

.hero-logo {
  max-width: 160px;
  height: auto;
  display: block;
}


/* ✅ متن زیر لوگو */
.intro-content {
  max-width: 600px;
}

.company-name {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.company-description {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.about-button {
  display: inline-block;
  background: #fff;
  color: #005b9f;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

.about-button:hover {
  background: #e0e0e0;
}

/* ✅ حالت موبایل */
@media (max-width: 768px) {


  .company-name {
    font-size: 1.5rem;
  }

  .company-description {
    font-size: 1rem;
  }

  .about-button {
    font-size: 0.95rem;
    padding: 8px 16px;
  }
}

@media (max-width: 768px) {
  .hero-logo {
    max-width: 220px;
    margin-bottom: 1rem;
  }

  .logo-box {
    margin-bottom: 1.5rem;
  }
}

.content-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* ✅ دقیقاً ۳ باکس در هر ردیف دسکتاپ */
  gap: 24px;
  margin: 60px auto;
  max-width: 1200px;
  padding: 0 20px;
}

.box {
  background: rgba(255, 255, 255, 0.08); /* ✅ شفاف و بلور */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}

.box:hover {
  transform: translateY(-4px);
}

.box img {
  width: 100%;              /* ✅ تصویر کل عرض باکس رو بگیره */
  height: auto;
  object-fit: cover;        /* ✅ تصویر قاب رو پر کنه */
  display: block;
}

.box-title {
  font-size: 1rem;
  font-weight: bold;
  color: #fff;              /* ✅ نوشته سفید */
  line-height: 1.6;
  font-family: 'YekanBakh', 'IranSans', 'Vazir', sans-serif;
  text-align: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.6); /* ✅ پس‌زمینه نیمه‌شفاف برای خوانایی */
  width: 100%;
}
@media (max-width: 768px) {
  .content-boxes {
    grid-template-columns: 1fr; /* ✅ فقط یک باکس در هر ردیف */
    gap: 16px;
    padding: 0 16px;
  }

  .box {
    border-radius: 12px;
  }

  .box img {
    width: 100%;
    height: 100%;
  }

  .box-title {
    font-size: 0.95rem;
    padding: 12px;
  }
}


.news-slider{
    width: 80%;
    margin-top: 60px;
}
