/* ITSAT Elementor layout + card styling — Woodmart + Elementor 4 */

/* ── Hero slider height fix (Elementor was crushing with line-height:0) ── */
.itsat-hero-slider-section,
.itsat-hero-slider-section > .e-con-inner,
.itsat-hero-slider-section .elementor-widget-html,
.itsat-hero-slider-section .elementor-widget-container {
  line-height: normal !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}
.itsat-hero-slider-section .itsat-slider-wrap {
  min-height: 92vh !important;
  height: 92vh !important;
  width: 100% !important;
  display: block !important;
  line-height: normal !important;
}
.itsat-hero-slider-section .itsat-slides {
  min-height: 92vh !important;
  height: 100% !important;
}
.itsat-hero-slider-section .itsat-slide-visual {
  display: flex !important;
}

/* ── Grid layouts ── */
.elementor-element.itsat-services-grid,
.elementor-element.itsat-why-grid,
.elementor-element.itsat-test-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
  width: 100% !important;
}
.elementor-element.itsat-stats-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 20px !important;
  width: 100% !important;
}
.elementor-element.itsat-footer-grid {
  display: grid !important;
  grid-template-columns: 1.4fr 1fr 1fr !important;
  gap: 40px !important;
  width: 100% !important;
  align-items: start !important;
}
.itsat-services-grid > .e-con,
.itsat-why-grid > .e-con,
.itsat-test-grid > .e-con,
.itsat-stats-grid > .e-con,
.itsat-footer-grid > .e-con {
  width: 100% !important;
  max-width: 100% !important;
  flex: unset !important;
}

/* ── Service & Why cards ── */
.itsat-service-card,
.itsat-why-card {
  background: #fff !important;
  border-radius: 16px !important;
  padding: 32px 28px !important;
  box-shadow: 0 12px 40px -8px rgba(10, 22, 40, 0.12) !important;
  height: 100% !important;
  transition: transform 0.4s ease, box-shadow 0.4s ease !important;
}
.itsat-why-card {
  text-align: center !important;
}
.itsat-service-card:hover,
.itsat-why-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 24px 60px -8px rgba(0, 212, 170, 0.18) !important;
}
.itsat-service-card .elementor-icon-box-wrapper,
.itsat-why-card .elementor-icon-box-wrapper {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.itsat-service-card .elementor-widget-icon-box,
.itsat-why-card .elementor-widget-icon-box {
  margin-bottom: 0 !important;
}
.itsat-service-card .elementor-widget-button {
  margin-top: 4px !important;
}

/* ── Stats bar ── */
.itsat-stats-section {
  background: linear-gradient(90deg, #0a1628, #132238) !important;
  padding: 80px 0 !important;
  position: relative !important;
  overflow: hidden !important;
}
.itsat-stats-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(0, 212, 170, 0.12) 0%, transparent 60%);
  pointer-events: none;
}
.itsat-stats-grid .elementor-counter-number-wrapper {
  text-align: center !important;
}
.itsat-stats-grid .elementor-counter-number {
  font-size: 56px !important;
  font-weight: 800 !important;
  color: #00d4aa !important;
  line-height: 1.1 !important;
}
.itsat-stats-grid .elementor-counter-title {
  text-align: center !important;
  color: #8b9cb3 !important;
  font-size: 15px !important;
  margin-top: 8px !important;
}

/* ── Testimonials ── */
.itsat-testimonial-card .elementor-testimonial-wrapper,
.itsat-testimonial-card .elementor-testimonial {
  background: #fff !important;
  border-radius: 16px !important;
  border-left: 4px solid #00d4aa !important;
  padding: 36px 32px !important;
  box-shadow: 0 8px 30px -8px rgba(10, 22, 40, 0.08) !important;
  height: 100% !important;
}
.itsat-testimonial-card .elementor-testimonial__content {
  margin-bottom: 16px !important;
}
.itsat-testimonial-card .elementor-testimonial__text {
  font-style: italic !important;
  color: #64748b !important;
}

/* ── Detail blocks (zig-zag) ── */
.elementor-element.itsat-detail-block {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 48px !important;
  width: 100% !important;
}
.elementor-element.itsat-detail-block > .e-con {
  flex: 0 0 calc(50% - 24px) !important;
  max-width: calc(50% - 24px) !important;
  width: calc(50% - 24px) !important;
}
.elementor-element.itsat-detail-reverse {
  flex-direction: row-reverse !important;
}
.itsat-detail-visual {
  min-height: 320px !important;
}

/* ── Footer ── */
.itsat-footer-section {
  background: #0a1628 !important;
}
.itsat-footer-section a {
  color: #00d4aa !important;
}
.itsat-footer-section h3,
.itsat-footer-section h5,
.itsat-footer-section .elementor-heading-title {
  color: #fff !important;
}

/* ── CTA ── */
.itsat-cta-box {
  width: 100% !important;
  max-width: 900px !important;
  margin: 0 auto !important;
}
.itsat-cta-box .elementor-button {
  background: #0a1628 !important;
  color: #fff !important;
}

/* ── Icons ── */
.elementor-widget-icon-box .elementor-icon i[class*="fa-"] {
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
  font-style: normal !important;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .elementor-element.itsat-services-grid,
  .elementor-element.itsat-why-grid,
  .elementor-element.itsat-test-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .elementor-element.itsat-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .elementor-element.itsat-footer-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 767px) {
  .itsat-hero-slider-section .itsat-slider-wrap {
    min-height: 85vh !important;
    height: 85vh !important;
  }
  .elementor-element.itsat-services-grid,
  .elementor-element.itsat-why-grid,
  .elementor-element.itsat-test-grid,
  .elementor-element.itsat-stats-grid,
  .elementor-element.itsat-footer-grid {
    grid-template-columns: 1fr !important;
  }
  .elementor-element.itsat-detail-block,
  .elementor-element.itsat-detail-reverse {
    flex-direction: column !important;
    flex-wrap: wrap !important;
  }
  .elementor-element.itsat-detail-block > .e-con {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}
