/* ===== BASE ===== */
body { font-family: b yekan,IRANSans, Tahoma, sans-serif; margin:0; background:#fff; }
a { text-decoration:none; color:inherit; }

/* ===== HEADER ===== */
.top-header {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}
/* .logo img, .slogan img { height:60px; } */
.slogan img { height:40px; }
.logo img  { height:80px; }


/* ===== MENU ===== */
.navbar-nav { display:flex; gap:12px; flex-wrap:wrap; }
.nav-link { color:#000000 !important; font-weight:700; padding:8px 12px; }
.navbar-nav .dropdown-menu { background:#191970; }
.navbar-nav .dropdown-item { color:#ffffff; padding:8px 12px; }

/* ===== SLIDER ===== */
.carousel-item img { width:100%; height:420px; object-fit:cover; }

/* ===== NEWS BAR ===== */
.news-bar { background:#0b1b4d; color:#fff; padding:10px; overflow:hidden; }
.news-text { white-space:nowrap; display:inline-block; animation:scroll 50s linear infinite; }
@keyframes scroll { from {transform:translateX(-100%);} to {transform:translateX(100%);} }

/* ===== SERVICES ===== */
.services { background:#f3f3f3; padding:50px 0; }
.service-card {
    background:#fff; border-radius:14px; padding:22px; height:100%;
    position:relative; transition: transform 0.35s ease, box-shadow 0.35s ease;
}
    .service-card:hover {
        transform: translateY(-8px); /*box-shadow:0 18px 35px rgba(0,0,0,0.12);*/
        background-color: #191970;
        color: #c40000;
    }
.service-card1:hover {
    /*transform: translateY(-8px);*/
    /*box-shadow: 0 18px 35px rgba(0,0,0,0.12);*/
    color: #c40000;
}

.service-card:hover img {  background-color: #ffffff; color: white; }

.service-icon { position:absolute; top:15px; right:15px; width:60px; }
 .service-card h6 { margin-top:55px; font-weight:bold; } 

.service-card p { font-size:14px; color:#555; }
.service-title{font-size: 24px;font-weight: bold;color: #000000;margin-bottom: 16px;position: relative; }
.service-title::after{
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: #da0808;
    /* margin: 8px 20px outo 0; */
   
    margin-top: 20px;
    border-radius: 2px;
}
/* ===== NEWS ===== */
/* .news-card { border-radius:14px; overflow:hidden; transition: transform 0.35s ease, box-shadow 0.35s ease; }
.news-card img { width:100%; height:200px; object-fit:cover; border-top-left-radius:14px; border-top-right-radius:14px; }
.news-card:hover { transform:translateY(-6px); box-shadow:0 15px 30px rgba(0,0,0,0.12); } */

.news-card {
    position: relative; /* برای قرارگیری news-date */
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
  }
  
  .news-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    padding: 5px;
    border-bottom: 1px solid #c3c2c0;
  }
  
  .news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
  }
  
  /* باکس تاریخ روی گوشه عکس */
  .news-date {
    position: absolute;
    top:250px;
    left: 0; /* گوشه بالا سمت چپ */
    background-color: rgba(25,25,112,0.9); /* رنگ تیره کمی شفاف */
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 6px;
    z-index: 2;
    clip-path: polygon(0% 0%, 85% 0%, 100% 105%, 0% 105%);
  }
  /* =========================
   News Header - Desktop
========================= */

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  font-weight: bold;
}

.news-tabs {
  display: flex;
  gap: 25px;
}

.news-tab {
  text-decoration: none !important;
  color: #333;
  font-size: 15px;
  position: relative;
  padding-bottom: 8px;
  background: none;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

/* خط قرمز زیر تب فعال */
.news-tab.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: #c40000;
}

.news-tab:hover {
  color: #c40000;
}

/* آرشیو */
.archive-link {
  text-decoration: none !important;
  color: #333;
  font-size: 14px;
  transition: 0.3s;
}

.archive-link:hover {
  color: #c40000;
}


/* =========================
 Tablet
========================= */

@media (max-width: 768px) {

  .news-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 15px;
  }

  .news-tabs {
      flex-wrap: wrap;
      gap: 15px;
  }

  .news-archive {
      align-self: flex-end;
  }
}


/* =========================
 Mobile
========================= */

@media (max-width: 576px) {

  .news-tabs {
      flex-direction: column;
      width: 100%;
  }

  .news-tab {
      width: fit-content;
      font-size: 14px;
  }

}


/* ===== FOOTER ===== */
/* footer { background:#0b1b4d; color:#fff; padding:20px; text-align:center; } */


/*.main-footer {
  background: linear-gradient(180deg, #191970, #290188);
  color: #fff;
  padding: 50px 0 20px;
  direction: rtl;
  font-family: sans-serif;
  font-size: 18px;
  font-family: 'b nazanin';
  margin: 20px;
}
  


.footer-container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);


  gap: 40px;
}

.footer-col h3 {
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: bold;
}

.footer-col p {
  margin-bottom: 8px;
  opacity: 0.9;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.footer-col ul li a:hover {
  color: #ffcc00;
}


.footer-bottom-wrapper {
  width: 90%;
  max-width: 1200px;
  margin: 40px auto 0 auto;
}

.footer-bottom-box {
  border: 1px solid rgba(255,255,255,0.5);
  padding: 15px;
  border-radius: 6px;
  opacity: 0.95;
}


.footer-bottom-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 10px;
}

.footer-bottom-col {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
  cursor: pointer;
}

.footer-bottom-col i {
  color: #ffcc00;
}

.footer-bottom-col:hover {
  color: #ffcc00;
}


.footer-bottom-text {
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.8;
}


@media (max-width: 992px) {
  .footer-container {
      grid-template-columns: repeat(2, 1fr);
      gap: 30px;
  }

  .footer-bottom-row {
      grid-template-columns: repeat(2, 1fr);
  }
}


@media (max-width: 576px) {
  .footer-container {
      grid-template-columns: 1fr;
      text-align: center;
  }

  .footer-bottom-row {
      grid-template-columns: 1fr;
      gap: 10px;
  }

  .footer-bottom-box {
      padding: 10px;
  }

  .footer-bottom-text {
      font-size: 11px;
  }
}*/


/* ====== فوتر اصلی ====== */
.main-footer {
    background: linear-gradient(180deg, #191970, #290188);
    color: #fff;
    padding: 30px 0 20px;
    direction: rtl;
    font-family: 'B Nazanin',;
}

/* ====== ردیف‌ها ====== */
.footer-row {
    width: 90%;
    max-width: 1200px;
    margin: 15px auto;
}

/* ردیف اول: دو ستون */
.two-cols {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding-bottom: 10px;
}

/* ====== خط زیر عنوان‌ها ====== */
/*.footer-col h3 {
            border-bottom: 1px solid rgba(255,255,255,0.5);
            padding-bottom: 5px;
            margin-bottom: 10px;
            font-size: 18px;
            width: 450px;
        }*/

/* ====== دسترسی سریع دوستونه ====== */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
}

    .quick-links-grid ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .quick-links-grid li {
        margin-bottom: 4px;
    }

    .quick-links-grid a {
        color: #fff;
        text-decoration: none;
        transition: 0.3s;
        font-size: 15px;
    }

        .quick-links-grid a:hover {
            color: #ffcc00;
        }

/* ====== نظرسنجی ====== */

.footer-col label {
    font-size: 15px;
}

.poll-btn {
    margin-top: 8px;
    padding: 6px 16px;
    border: none;
    background: #ffcc00;
    color: #000;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

/* ====== ردیف‌های افقی وسط‌چین ====== */
.horizontal {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    text-align: center;
}

    .horizontal .item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        white-space: nowrap;
        font-size: 15px;
    }

/* ====== کادر اصلی (نسخه قبلی) ====== */
.footer-bottom-wrapper {
    width: 90%;
    max-width: 1200px;
    margin: 5px auto 0 auto;
}

.footer-bottom-box {
    border: 1px solid rgba(255,255,255,0.5);
    padding: 15px;
    border-radius: 6px;
    opacity: 0.95;
}

.footer-bottom-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 10px;
}

.footer-bottom-col {
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    cursor: pointer;
}

    .footer-bottom-col i {
        color: #ffcc00;
    }

    .footer-bottom-col:hover {
        color: #ffcc00;
    }

/* ====== کپی‌رایت ====== */
.footer-bottom-text {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.8;
}

/* ====== ریسپانسیو ====== */
@media (max-width: 992px) {
    .two-cols {
        grid-template-columns: 1fr;
    }

    .footer-bottom-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {

    /* فونت بزرگ‌تر برای خوانایی */
    .horizontal .item,
    .footer-bottom-col,
    .quick-links-grid a,
    .footer-col p,
    .footer-col label {
        font-size: 16px !important;
    }

    .footer-col h3 {
        font-size: 19px !important;
    }

    .horizontal {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .footer-bottom-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 12px;
    }
}





.footer-col h3 {
    border-bottom: 1px solid rgb(255, 0, 0);
    padding-bottom: 5px;
    margin-bottom: 10px;
    font-size: 18px;
    width: 100%;
    width: 450px;
    font-family: 'B Nazanin';
    font-weight: bold;
}

.footer-col p {
    margin-bottom: 10px;
    font-size: 16px;
}

/* گزینه‌ها کنار هم افقی */
.footer-col .poll-options {
    display: flex;
    gap: 20px; /* فاصله بین گزینه‌ها */
    flex-wrap: wrap; /* اگر صفحه کوچک شد، خط بعدی */
    margin-bottom: 10px;
}

    /* گزینه‌ها */
    .footer-col .poll-options label {
        display: flex;
        align-items: center;
        gap: 5px;
        cursor: pointer;
    }

/* دکمه سمت چپ */
.footer-col .poll-btn {
    float: left;
    padding: 8px 15px;
    background-color: #ffcc00;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

    .footer-col .poll-btn:hover {
        background-color: #e6b800;
    }

/* ریسپانسیو موبایل */
@media (max-width: 576px) {
    .footer-col h3 {
        font-size: 16px;
    }

    .footer-col p, .footer-col .poll-options label, .footer-col .poll-btn {
        font-size: 14px;
    }

    .footer-col .poll-options {
        justify-content: center; /* وسط چین کردن گزینه‌ها */
    }
}


/* ===== SCROLL ANIMATION ===== */
.reveal { opacity:0; transform:translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.active { opacity:1; transform:none; }

/* ===== RESPONSIVE ===== */
@media (max-width:992px) { .carousel-item img { height:320px; } .slogan img { display: none; }
.logo img  { height:70px; } }
@media (max-width:768px) { .carousel-item img { height:260px; } .navbar-nav { flex-direction:column; gap:10px; } }
@media (max-width:576px) { .news-card img { height:150px; } .service-card h6 { font-size:14px; } .service-card p { font-size:13px; } }