/* پس‌زمینه تمام‌عرض */
.hero-home {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 88vh; /* ارتفاع قابل تنظیم */
  background: url("https://aicer.ir/images/2025/08/03/james-harrison-vpOeXr5wmR4-unsplash.jpg") center center / cover no-repeat;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

/* لایه تاریک برای خوانایی بهتر متن */
.hero-home::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

/* ظرف داخلی */
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

/* بخش چپ متن */
.hero-left {
  max-width: 560px;
  margin-left: 1rem;
}

/* تیتر بزرگ */
.hero-title {
  margin: 0 0 1rem 0;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.05;
  font-size: clamp(34px, 6.2vw, 72px);
}

/* زیرتیتر */
.hero-sub {
  margin: 0 0 2rem 0;
  font-size: clamp(16px, 2vw, 20px);
  opacity: 0.95;
}

/* دکمه سفید با کادر */
.btn-outline-white {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border: 2px solid #fff;
  border-radius: 10px;
  color: #fff;
  background-color: transparent;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-top: 10px;
}

/* حالت هاور دکمه */
.btn-outline-white:hover {
  background-color: #fff;
  color: #111;
}

/* متن زیر عنوان: فشرده + justify */
.hero-sub{
  margin: 0 !important;
  line-height: 1.22 !important;      /* فاصله‌ی بین خطوط کم */
  text-align: justify !important;
  text-justify: inter-word;           /* پخش کلمات */
  color: #fff;
}

/* هر span یک خط؛ بدون فاصله‌ی عمودی */
.hero-sub span{
  display: block;
  margin: 0 !important;
  padding: 0 !important;
}

/* خط آخر چپ‌چین بماند (اختیاری) */
.hero-sub{
  text-align-last: left;
}

/* اگر قبلاً <p> استفاده کرده‌ای، فاصله‌ی پیش‌فرضشان را صفر کن */
.hero-sub p{ margin:0 !important; }

/* بلاک خبرها – فقط روی Addon با ID= news1 اعمال می‌شود */
#news1 .sppb-article,
#news1 .sppb-media {
  display: flex !important;
  align-items: flex-start !important;
  gap: 20px !important;
  padding: 20px 0 !important;
  border-bottom: 1px solid #e6e6e6 !important;
}

/* ستون تصویر با عرض ثابت */
#news1 .sppb-article-img,
#news1 .sppb-media-left {
  flex: 0 0 220px !important;
  max-width: 220px !important;
}

/* خودِ تصویر */
#news1 .sppb-article-img img,
#news1 .sppb-media-left img {
  width: 220px !important;
  height: auto !important;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

/* متن کنار تصویر */
#news1 .sppb-article-content,
#news1 .sppb-media-body { flex: 1 !important; }

#news1 .sppb-article-title {
  font-size: 22px !important;
  line-height: 1.35 !important;
  margin: 0 0 8px !important;
}

#news1 .sppb-article-introtext {
  font-size: 16px !important;
  color: #444 !important;
  margin: 0 !important;
}

/* موبایل */
@media (max-width: 768px) {
  #news1 .sppb-article,
  #news1 .sppb-media { flex-direction: column !important; }
  #news1 .sppb-article-img,
  #news1 .sppb-media-left,
  #news1 .sppb-article-img img,
  #news1 .sppb-media-left img {
    width: 100% !important;
    max-width: 100% !important;
    flex-basis: auto !important;
  }
}




.custom-footer {
  background-color: #1c2c4c; /* آبی تیره */
  color: #fff;
  padding: 30px 20px;
  font-size: 14px;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* برای واکنش‌گرا شدن */
}

.custom-footer h4 {
  margin-bottom: 10px;
  font-size: 20px;
  color: #fff;
}

.custom-footer p {
  margin: 0.5em 0;
  line-height: 1.8;
}

.footer-left {
  flex: 1;
  min-width: 250px;
}

.footer-social {
  display: flex;
  gap: 15px;
  font-size: 22px;
  margin-left: auto;   /* این خط باعث میشه کل بلوک بره سمت راست */
}

.footer-social a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s ease;
}

.footer-social a:hover {
  transform: scale(1.15); /* کمی بزرگتر شدن هنگام هاور */
}

/* رنگ مخصوص هر شبکه */
.footer-social a.telegram:hover { color: #0088cc; }   /* Telegram */
.footer-social a.email:hover    { color: #dd4b39; }   /* Gmail */
.footer-social a.linkedin:hover { color: #0077b5; }   /* LinkedIn */
.footer-social a.instagram:hover { color: #E1306C; }  /* Instagram */

.footer-top-button {
  position: absolute;
  top: -20px;
  right: 20px;
}

.footer-top-button a {
  display: inline-block;
  background-color: #0d1c3d;
  color: #fff;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: bold;
  text-decoration: none;
  border: 2px solid #fff;
  transition: 0.3s ease;
}

.footer-top-button a:hover {
  background-color: #fff;
  color: #0d1c3d;
}

