@import url('https://cdn.fontcdn.ir/Font/Persian/Vazir/Vazir.css');


body {
  font-family: 'Vazir', sans-serif;
  direction: rtl;
  margin: 0;
  background-color: #f9f9f9;
  color: #333;
}

header {
  background: linear-gradient(to left, #004e92, #000428);
  color: white;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #FFD700;
}

nav {
  display: flex;
}

nav a {
  color: white;
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  color: #FFD700;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
}

@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    background-color: #004e92;
    position: absolute;
    top: 70px;
    right: 0;
    width: calc(100%);
    padding: 20px;
    z-index: 1000;
  }
  nav a {
    margin: 10px 0;
    font-size: 18px;
  }
  nav.show {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
}



section {
  padding: 60px 50px;
}

section h2 {
  color: #004e92;
  font-size: 28px;
  margin-bottom: 20px;
}

.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.service-link {
  text-decoration: none;
  color: inherit;
  flex: 1 1 calc(50% - 10px);
  display: block;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .service-link {
    flex: 1 1 100%;
  }
}

@media (max-width: 992px) {
  .service-link {
    flex: 1 1 45%;
  }
}

@media (max-width: 600px) {
  .service-link {
    flex: 1 1 100%;
  }
}

.service-item {
  background: #fff;
  border: 1px solid #ccc;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  height: 100%;
  font-size: 15px;
  font-family: 'Vazir', sans-serif;
  transition: all 0.3s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.service-item .icon {
  font-size: 24px;
  display: block;
  margin-bottom: 10px;
  color: #004e92;
  transition: color 0.3s;
}

.service-item h3 {
  margin: 0;
  font-size: 17px;
  color: #004e92;
}

.service-link:hover .service-item {
  background: #004e92;
  color: white;
  border-color: #FFD700;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.service-link:hover .icon,
.service-link:hover .service-item h3 {
  color: #FFD700;
}

form input, form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
}

form button {
  background-color: #004e92;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

form button:hover {
  background-color: #003e73;
}

.scroll-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background-color: #004e92;
  border-radius: 50%;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.scroll-to-top.show {
  display: flex;
}

.scroll-to-top:hover {
  background-color: #003366;
  transform: scale(1.1);
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  background: linear-gradient(135deg, #063d6d, #000428);
  color: white;
  padding: 20px 40px;
  width: 100%;
  box-sizing: border-box;
  direction: rtl;
  border-top: 3px solid #FFD700;
  font-family: 'Vazir', sans-serif;
}

.footer-column {
  flex: 1;
  min-width: 250px;
  margin: 0 10px;
}

.footer-column h4 {
  color: #FFD700;
  font-size: 18px;
  margin-bottom: 8px;
  border-bottom: 1px solid #FFD700;
  padding-bottom: 4px;
}

.footer-column p,
.footer-column ul {
  margin: 0 0 6px;
  font-size: 14px;
  color: #ccc;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 4px;
}

.footer-column ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: #FFD700;
}

.trust-seal img {
  display: block;
  margin-top: 10px;
  max-width: 80px;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

@media (max-width: 992px) {
  .footer-column {
    flex: 1 1 45%;
    margin-bottom: 15px;
  }
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .footer-column {
    flex: 1 1 100%;
    margin-bottom: 20px;
    text-align: center;
  }
  .footer-column ul {
    display: inline-block;
    text-align: center;
  }
  .trust-seal img {
    margin: 10px auto 0 auto;
  }
}

.hero-slider {
  position: relative;
  height: 450px;
  overflow: hidden;
  direction: rtl;
}

.hero-slider .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  z-index: 0;
}

.hero-slider .slide.active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.hero-slider .slide:not(.active) {
  pointer-events: none;
}

.hero-slider .caption {
  background: rgba(0, 0, 0, 0.3);
  padding: 5px 35px;
  border-radius: 10px;
  color: #fff;
  text-align: center;
  max-width: 95%;
}

.hero-slider .caption h2 {
  font-size: 28px;
  margin-bottom: 12px;
  color: #FFD700;
}

.hero-slider .caption p {
  font-size: 18px;
  line-height: 0.6;
}



/* ===============================
   اصلاحات موبایل و جلوگیری از overflow
   =============================== */

/* کل صفحه */
html, body {
  width: 100%;
  overflow-x: hidden; /* جلوگیری از اسکرول افقی */
}

/* تمام المان‌ها با box-sizing داخلی */
*,
*:before,
*:after {
  box-sizing: border-box;
}


/* خدمات ساده */
.services-cards {
  display: grid;
  gap: 20px;
  margin: 30px 0;
}
@media (min-width:1200px) {
  .services-cards { grid-template-columns: repeat(6, 1fr); }
}
@media (min-width:768px) and (max-width:1199px) {
  .services-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width:576px) and (max-width:767px) {
  .services-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width:575px) {
  .services-cards { grid-template-columns: repeat(1, 1fr); }
}
.service-card {
  background: #004e92;
  color: #fff;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s;
  text-decoration: none;
}
.service-card:hover {
  background: #ffd700;
  color: #004e92;
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.service-card img {
  width: 60px;
  height: 60px;
  margin-bottom: 12px;
}
.service-card h4 { margin-top: 5px; border:none; text-decoration:none; }

/* بنر تبلیغی */
.promo-banner {
  text-align: center;
  margin: 10px 0;
  background: #f9f9f9;
  padding: 30px;
  border-radius: 16px;
}
.promo-banner img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}
.promo-banner p {
  max-width: 600px;
  margin: auto;
}
.promo-banner a {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 20px;
  background: #004e92;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
}



/* اسلایدر خدمات */
.slider-wrapper { position: relative; overflow: hidden; }
.slides { display: flex; transition: transform 0.6s ease-in-out; will-change: transform; }
.service-slide {
  min-width: 300px;
  margin: 0 10px;
  background: transparent;
  border: 2px solid #004e92;
  color: #004e92;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  display: flex;              /* اضافه شد */
  flex-direction: column;     /* محتوا عمودی */
  justify-content: space-between; /* فاصله یکنواخت */
  height: 370px;              /* ارتفاع ثابت برای همه کارت‌ها */
}

.service-slide img { width: 70px; height: 70px; margin-bottom: 15px; }
.service-slide a {
  display: inline-block;
  margin-top: 0px;
  padding: 5px 10px;
  background: linear-gradient(45deg, #FFD700, #FFB800);
  color: #004e92;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.service-slide a:hover {
  background: #004e92;
  color: #FFD700;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}




.prev-btn,.next-btn{
  position:absolute; top:50%; transform:translateY(-50%);
  background:rgba(0,0,0,.4); color:#fff; border:none;
  padding:10px 15px; border-radius:50%; cursor:pointer; font-size:18px;
}
.prev-btn{ left:10px; } .next-btn{ right:10px; }
.prev-btn:hover,.next-btn:hover{ background:#ffd700; color:#004e92; }



/* یادآور بیمه */

.installment-reminder {
  background: #fff;
  border: 2px solid #ffd700;
  padding: 25px;
  border-radius: 14px;
  margin: 40px 0;
}
.installment-reminder h3 {
  text-align:center;
  margin-bottom:20px;
  color:#004e92;
}
.installment-reminder form {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 15px;
  max-width: 600px;
  margin: auto;
}
.installment-reminder input, 
.installment-reminder select {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  width: 100%;
}
.installment-reminder button {
  grid-column: span 2;
  padding: 12px;
  border: none;
  background: #004e92;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
}
.installment-reminder button:hover {
  background: #ffd700;
  color: #004e92;
}
@media(max-width:600px){
  .installment-reminder form{ grid-template-columns:1fr; }
  .installment-reminder button{ grid-column: span 1; }
}



/* مشتریان */
.clients-slider {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 20px 0;
}
.client-card {
  min-width: 150px;
  flex-shrink: 0;
  background: #ffd700;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
}

/* کارت‌ها طبق خواسته شما: بدون پس‌زمینه و فقط حاشیه آبی پررنگ */
.service-slide{
  background: transparent;
  border: 2px solid #004e92;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  transition: transform .3s;
}
.service-slide:hover{ transform: translateY(-6px); }

.service-badge {
    width: 70px; height: 70px;
    margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: transparent;
    cursor: default;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px 3px rgba(255, 215, 0, 0.7);
}


/* دسترسی‌پذیری و انیمیشن ملایم روی هاور */
.service-badge:hover{ filter: brightness(1.04); }



