/* ایران سهامدار — theme overrides */

:root {
  --iran-header-height: 100px;
  --iran-hero-frame-margin: 30px;
  --iran-hero-extra-height: clamp(32px, 5vh, 56px);
}

/* ── Hero قاب‌دار + اسلایدر پس‌زمینه ── */
.home-page .hero-section.hero-2.hero-fullscreen {
  margin: var(--iran-hero-frame-margin) !important;
  margin-bottom: 0 !important;
  border-radius: 30px !important;
  position: relative;
  min-height: calc(100dvh - var(--iran-header-height) - var(--iran-hero-frame-margin) + var(--iran-hero-extra-height));
  max-height: calc(100dvh - var(--iran-header-height) - var(--iran-hero-frame-margin) + var(--iran-hero-extra-height));
  padding: 70px 60px 90px !important;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 1;
  background-image: none !important;
}

.home-page .hero-section.hero-2.hero-fullscreen .iran-hero-inner {
  flex: 1;
  min-height: 0;
}

.home-page .hero-section.hero-2.hero-fullscreen::before {
  border-radius: 30px !important;
  z-index: 1;
}

.home-page .hero-section.hero-2.iran-hero-has-slider::before {
  z-index: 1;
}

/* اسلایدر پس‌زمینه */
.iran-hero-bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  z-index: 0;
}

.iran-hero-bg .swiper-slide {
  overflow: hidden;
}

.iran-hero-bg-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.swiper-slide-active .iran-hero-bg-image {
  transform: scale(1.18);
}

/* لایه محتوا */
.iran-hero-inner {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  width: 100%;
  min-height: 100%;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.iran-hero-content-wrap {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  align-self: center;
  justify-self: start;
  max-width: 58%;
  z-index: 2;
  padding-bottom: clamp(40px, 8vh, 90px);
}

.iran-hero-boxes-wrap {
  grid-area: 1 / 1;
  align-self: end;
  justify-self: end;
  width: 100%;
  max-width: 640px;
  z-index: 3;
}

/* عنوان هیرو — حداکثر ۲ خط */
.home-page .hero-2 .hero-content h1 {
  font-size: clamp(24px, 3.6vw, 64px) !important;
  line-height: 1.2 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.home-page .hero-2 .hero-content .hero-text {
  text-align: justify;
  text-justify: inter-word;
}

/* باکس‌ها — پایین سمت چپ (RTL)، هم‌اندازه */
.home-page .hero-2 .hero-box-items {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 22px;
  margin-bottom: -70px !important;
}

.home-page .hero-2 .hero-box-items .hero-box {
  flex: 1 1 0;
  min-width: 0;
  max-width: 300px !important;
  min-height: 155px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.home-page .hero-2 .hero-box-items .hero-box .content {
  flex: 1;
}

.home-page .hero-2 .hero-box-items .hero-box .content p {
  text-align: justify;
  text-justify: inter-word;
}

@media (max-width: 1199.98px) {
  :root {
    --iran-header-height: 80px;
    --iran-hero-frame-margin: 0px;
    --iran-hero-extra-height: clamp(24px, 4vh, 48px);
  }

  .home-page .hero-section.hero-2.hero-fullscreen {
    margin: 0 !important;
    border-radius: 0 !important;
    min-height: calc(100dvh - var(--iran-header-height) + var(--iran-hero-extra-height));
    max-height: calc(100dvh - var(--iran-header-height) + var(--iran-hero-extra-height));
    padding: 60px 30px 80px !important;
  }

  .home-page .hero-section.hero-2.hero-fullscreen::before {
    border-radius: 0 !important;
  }

  .iran-hero-content-wrap {
    max-width: 100%;
    padding-bottom: clamp(24px, 6vh, 60px);
  }

  .iran-hero-boxes-wrap {
    max-width: 100%;
  }

  .home-page .hero-2 .hero-box-items {
    justify-content: flex-start;
    margin-bottom: -40px !important;
  }
}

@media (max-width: 991.98px) {
  .iran-hero-inner {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 28px;
    min-height: auto;
  }

  .iran-hero-content-wrap {
    order: 1;
    max-width: 100%;
    width: 100%;
    padding-bottom: 0;
    align-items: flex-start;
  }

  .iran-hero-boxes-wrap {
    order: 2;
    max-width: 100%;
    width: 100%;
    margin-top: auto;
  }

  .home-page .hero-2 .hero-box-items {
    justify-content: stretch;
    margin-bottom: 0 !important;
  }

  .home-page .hero-2 .hero-box-items .hero-box {
    flex: 1 1 calc(50% - 11px);
    max-width: none !important;
  }
}

@media (max-width: 767.98px) {
  :root {
    --iran-header-height: 70px;
    --iran-hero-frame-margin: 16px;
    --iran-hero-extra-height: 0px;
  }

  .home-page .hero-section.hero-2.hero-fullscreen {
    margin: var(--iran-hero-frame-margin) !important;
    margin-bottom: 0 !important;
    border-radius: 20px !important;
    min-height: auto;
    max-height: none;
    padding: 36px 20px 44px !important;
  }

  .home-page .hero-section.hero-2.hero-fullscreen::before {
    border-radius: 20px !important;
  }

  .iran-hero-inner {
    gap: 24px;
  }

  .home-page .hero-2 .hero-box-items {
    flex-direction: column;
    flex-wrap: nowrap;
    margin-bottom: 0 !important;
  }

  .home-page .hero-2 .hero-box-items .hero-box {
    flex: 1 1 auto;
    max-width: 100% !important;
    min-height: auto;
  }

  .home-page .hero-2 .hero-box-items .hero-box .content h3 {
    font-size: 20px;
  }

  .home-page .hero-2 .hero-box-items .hero-box .content p {
    font-size: 15px;
  }

  .home-page .hero-2 .hero-content h1 {
    font-size: clamp(22px, 6vw, 36px) !important;
  }

  .iran-hero-bg-image {
    transform: scale(1.04);
  }

  .swiper-slide-active .iran-hero-bg-image {
    transform: scale(1.1);
  }
}

/* ── موبایل — بخش‌ها و فوتر ── */
@media (max-width: 991.98px) {
  .about-section-2 {
    padding: 70px 0 !important;
  }

  .about-section-2 .about-stats-card {
    left: 16px !important;
    right: 16px !important;
    bottom: -20px !important;
    padding: 18px 22px !important;
  }

  .about-section-2 .about-stats-card-2 {
    top: -12px !important;
    right: 12px !important;
    padding: 14px 18px !important;
  }

  .service-section-4 .iran-service-card-icon {
    margin-bottom: 0;
  }
}

@media (max-width: 767.98px) {
  .page-wrapper {
    overflow-x: hidden;
  }

  .about-section-2 {
    padding: 50px 0 !important;
  }

  .about-section-2 .about-stats-card,
  .about-section-2 .about-stats-card-2 {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    margin-top: 16px;
    width: 100%;
  }

  .about-section-2 .about-content-wrapper [style*="grid"] {
    grid-template-columns: 1fr !important;
  }

  .about-section-2 .about-content-wrapper [style*="flex"] {
    flex-direction: column !important;
  }

  .footer-section-2 .footer-top-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-section-2 .social-icon {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-section-2 .footer-middle-wrapper .row > [class*="col-"] {
    text-align: center;
  }

  .footer-section-2 .footer-middle-wrapper .row > [class*="col-"] > div {
    justify-content: center !important;
  }

  .footer-section-2 .trust-badge-glass {
    min-width: 56px;
    padding: 10px 12px;
  }

  .blog-details .row > [class*="col-"] {
    margin-bottom: 24px;
  }

  .iran-project-card-stats {
    grid-template-columns: 1fr;
  }
}

/* ── کارت‌های بازارهای تخصصی — هم‌ارتفاع ── */
.service-section-4 .row.g-4 > [class*="col-"] {
  display: flex;
}

.service-section-4 .iran-service-card-icon {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.service-section-4 .iran-service-card-icon .content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-section-4 .iran-service-card-icon .content p {
  flex: 1;
  text-align: justify;
  text-justify: inter-word;
}

.iran-service-card-icon:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

/* ── Justify متن‌های صفحه اصلی ── */
.home-page .site-main p,
.home-page .site-main .about-content-wrapper p,
.home-page .site-main .how-it-work-items-style-3 .text,
.home-page .site-main .how-sec-text,
.home-page .site-main .news-content p {
  text-align: justify;
  text-justify: inter-word;
}

.home-page .site-main .about-content-wrapper [style*="grid"] span {
  text-align: justify;
}

/* blog single */
.blog-details .entry-content p,
.blog-details .blog-details__text-2 p {
  text-align: justify;
  text-justify: inter-word;
}

/* ── پروژه کارت ── */
.iran-project-card.project-box-items-2 {
  margin-top: 0;
  border: none;
  padding: 0;
}

.iran-project-card .project-image::before {
  display: none !important;
}

.iran-project-card-image {
  position: relative;
  min-height: 220px;
  background: #1a2a4a;
}

.iran-project-card-image .iran-project-main-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block !important;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  position: relative !important;
  z-index: 1;
  transition: transform 0.45s ease;
}

.iran-project-card:hover .iran-project-main-image {
  transform: scale(1.06) !important;
}

.iran-project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 35%, rgba(26, 42, 74, 0.82));
  z-index: 2;
  pointer-events: none;
}

.iran-project-card-caption {
  position: absolute;
  bottom: 20px;
  right: 20px;
  left: 20px;
  z-index: 4;
}

.iran-project-badge {
  position: absolute;
  top: 15px;
  z-index: 5;
  color: #fff;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
}

.iran-project-badge-category {
  right: 15px;
  background: #1a2a4a;
}

.iran-project-badge-status {
  left: 15px;
}

.iran-project-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1a2a4a 0%, #2d4a6e 100%);
  color: #fff !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
}

.iran-project-card-btn:hover {
  background: linear-gradient(135deg, #4a7c9e 0%, #1a2a4a 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 42, 74, 0.25);
}

.iran-project-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 15px;
}

.iran-project-card-stat {
  text-align: center;
  background: #f0f4f8;
  padding: 10px 8px;
  border-radius: 8px;
  border: 1px solid #e8ecf2;
}

.iran-project-card-stat .label {
  font-size: 11px;
  color: #999;
  font-weight: 500;
  margin-bottom: 4px;
}

.iran-project-card-stat .value {
  font-size: 14px;
  font-weight: 700;
  color: #1a2a4a;
}

.iran-project-card-stat .value.accent {
  color: #4a7c9e;
}

/* ── صفحه جزئیات پروژه ── */
.iran-project-single {
  background: #f4f6f9;
}

.iran-project-single-hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 50px rgba(26, 42, 74, 0.1);
  margin-bottom: 40px;
}

.iran-project-single-hero-media {
  position: relative;
  min-height: 360px;
  background: #1a2a4a;
}

.iran-project-single-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
}

.iran-project-single-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 42, 74, 0.15), rgba(26, 42, 74, 0.55));
  z-index: 2;
}

.iran-project-single-hero-badges .iran-project-badge {
  top: 20px;
}

.iran-project-single-hero-content {
  padding: 36px 36px 36px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.iran-project-single-subtitle {
  color: #4a7c9e;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.iran-project-single-title {
  color: #1a2a4a;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 24px;
}

.iran-project-single-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  color: #666;
  font-size: 14px;
}

.iran-project-single-progress-head strong {
  color: #1a2a4a;
  font-size: 18px;
}

.iran-project-single-progress-bar {
  width: 100%;
  height: 10px;
  background: #e9ecef;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.iran-project-single-progress-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.iran-project-single-progress-meta {
  font-size: 13px;
  color: #777;
}

.iran-project-single-section-title {
  color: #1a2a4a;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

.iran-project-single-content {
  text-align: justify;
  text-justify: inter-word;
  color: #555;
  line-height: 1.9;
  margin-bottom: 30px;
}

.iran-project-single-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.iran-project-single-highlight {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #f8fafc;
  border: 1px solid #e8ecf2;
  border-radius: 14px;
  padding: 18px;
}

.iran-project-single-highlight i {
  font-size: 28px;
  color: #4a7c9e;
  line-height: 1;
}

.iran-project-single-highlight strong {
  display: block;
  color: #1a2a4a;
  font-size: 14px;
  margin-bottom: 4px;
}

.iran-project-single-highlight span {
  color: #4a7c9e;
  font-size: 16px;
  font-weight: 700;
}

.iran-project-single-sidebar-card {
  position: sticky;
  top: 110px;
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 12px 40px rgba(26, 42, 74, 0.1);
  border: 1px solid #e8ecf2;
}

.iran-project-single-sidebar-card h4 {
  color: #1a2a4a;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.iran-project-single-facts {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.iran-project-single-facts li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eef2f6;
  font-size: 14px;
}

.iran-project-single-facts li span {
  color: #888;
}

.iran-project-single-facts li strong {
  color: #1a2a4a;
  text-align: left;
}

.iran-project-single-facts li strong.accent {
  color: #4a7c9e;
}

.iran-project-single-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1a2a4a 0%, #2d4a6e 100%);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.iran-project-single-cta:hover {
  background: linear-gradient(135deg, #4a7c9e 0%, #1a2a4a 100%);
  transform: translateY(-2px);
  color: #fff;
}

.iran-project-single-cta-secondary {
  display: block;
  text-align: center;
  color: #4a7c9e;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.iran-project-single-related {
  margin-top: 50px;
}

.iran-project-single-related-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.iran-project-single-related-head h3 {
  color: #1a2a4a;
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.iran-project-single-related-head a {
  color: #4a7c9e;
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .iran-project-single-hero {
    grid-template-columns: 1fr;
  }

  .iran-project-single-hero-content {
    padding: 24px;
  }

  .iran-project-single-sidebar-card {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .iran-project-single-highlights {
    grid-template-columns: 1fr;
  }

  .iran-project-single-hero-media,
  .iran-project-single-hero-media img {
    min-height: 240px;
  }
}

/* ── فوتر ── */
.footer-section-2 .footer-top-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 10px;
}

.footer-section-2 .social-icon {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-section-2 .social-icon a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all 0.3s ease;
}

.footer-section-2 .social-icon a:hover {
  background: #4a7c9e;
  color: #fff;
}

.footer-section-2 .trust-badge-glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 12px 15px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  min-width: 65px;
}

.footer-section-2 .trust-badge-glass:hover {
  background: rgba(255, 255, 255, 0.12);
}
