/*
Theme Name: Divi Child
Template: Divi-2
Version: 1.0
*/

/* =====WOOCOMMERCE PRODUCT GRID===== */

.woocommerce ul.products li.product a img {
  width: 100%;
  height: 220px;
  -o-object-fit: contain;
  object-fit: contain;
  -o-object-position: center;
  object-position: center;
  background: #ffffff;
  padding: 10px;
}

.woocommerce ul.products {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.woocommerce ul.products li.product {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

/* =========================
   HEADER MENU FIXES
========================= */

#main-header .et_pb_menu li a {
  color: #ffffff;
}

#main-header .et_pb_menu li a:hover,
#main-header .et_pb_menu li.current-menu-item > a,
#main-header .et_pb_menu li.current_page_item > a {
  color: #ffffff !important;
  background: transparent !important;
}

/* =========================
   WOOCOMMERCE ORDER PAGE
========================= */

.woocommerce-order-received .woocommerce-order,
.woocommerce-order-received .woocommerce-order p,
.woocommerce-order-received .woocommerce-order h2,
.woocommerce-order-received .woocommerce-order li {
  color: #ffffff !important;
}

.woocommerce-order-received .woocommerce-table__product-name a,
.woocommerce-order-received .woocommerce-table__product-name * {
  color: #ffffff !important;
  opacity: 1 !important;
}

/* =========================
   MOBILE TEXT BACKGROUND
========================= */

@media (max-width: 768px) {
  .mobile-text-bg {
    background: rgba(255, 255, 255, 0.85);
    padding: 15px;
    border-radius: 10px;
  }
}

/* =========================
   PARTNER SCROLLING GALLERY
========================= */

.partner-gallery {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.partner-gallery::before,
.partner-gallery::after {
  content: "";
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.partner-gallery::before {
  left: 0;
  background: linear-gradient(to right, #ffffff, transparent);
}

.partner-gallery::after {
  right: 0;
  background: linear-gradient(to left, #ffffff, transparent);
}

.partner-track {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 50px;
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
  -webkit-animation: scroll 45s linear infinite;
  animation: scroll 45s linear infinite;
}

.partner-gallery:hover .partner-track {
  -webkit-animation-play-state: paused;
  animation-play-state: paused;
}

.partner-track a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 140px;
  height: 70px;
}

.partner-track img {
  max-width: 100%;
  max-height: 100%;
  opacity: 0.85;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.partner-track img:hover {
  transform: scale(1.08);
  opacity: 1;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================
   BLURB HOVER CARD
========================= */

/* OPTIONAL: if you have a section wrapper class */
.rts-blurb-section {
  background: #0F265D;
  padding: 40px 20px;
}

/* BLURB CARD BASE (WHITE CARD) */
.rts-blurb-hover {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  padding: 25px;
  transition: all 0.28s ease;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Hover effect (NO background change) */
.rts-blurb-hover:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 18px 40px rgba(0,0,0,0.15);
  background: #ffffff !important;
}

/* Kill Divi inner overrides */
.rts-blurb-hover .et_pb_blurb_content,
.rts-blurb-hover .et_pb_blurb_container,
.rts-blurb-hover .et_pb_module_inner {
  background: transparent !important;
}

/* ICON animation (ONLY hovered card) */
.rts-blurb-hover .et_pb_main_blurb_image {
  position: relative;
  transition: transform 0.28s ease;
}

.rts-blurb-hover:hover .et_pb_main_blurb_image {
  transform: scale(1.15);
}

/* prevent Divi global icon scaling */
.et_pb_blurb .et_pb_main_blurb_image img {
  transform: none !important;
}

/* TEXT */
.rts-blurb-hover h4 {
  transition: color 0.28s ease;
}

.rts-blurb-hover:hover h4 {
  color: #1c6cff;
}

/* =========================
   WHY RTS BLOCK
========================= */

.why-rts-block {
  border-radius: 12px;
  background: transparent;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.why-rts-block:hover {
  transform: translateY(-6px) scale(1.02);
  background: #ffffff;
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.why-rts-block img {
  transition: transform 0.4s ease;
  width: 100%;
  height: auto;
}

.why-rts-block:hover img {
  transform: scale(1.05);
}

/* =========================
   TESTIMONIAL SLIDER
========================= */

.custom-testimonial-slider {
  max-width: 1200px;
  margin: auto;
  overflow: hidden;
  position: relative;
  padding-bottom: 50px;
  font-family: Helvetica, Arial, sans-serif;
}

.testimonial-wrapper {
  display: flex;
  transition: transform 0.6s ease;
}

.testimonial-slide {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.testimonial-card {
  flex: 0 0 30%;
  padding: 25px;
  background: rgba(255,255,255,0.05);
  border: 2px solid #ffffff;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  background: #0F265D;
  color: #ffffff;
  transform: translateY(-6px);
}

/* =========================
   KEY VALUES SECTION
========================= */

.key-values-section {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
}

.key-value-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  transition: all 0.35s ease;
}

.key-value-row:hover {
  transform: translateY(-6px);
}

.key-value-image img {
  transition: transform 0.4s ease;
}

.key-value-row:hover .key-value-image img {
  transform: scale(1.15);
}

.key-value-text {
  flex: 1;
  border: 3px solid #0F265D;
  border-radius: 30px;
  padding: 20px;
  background: #fff;
}

/* =========================
   SERVICE BLOCKS (OPTIMIZED)
========================= */

.service-blurb {
  position: relative;
  background: #0F265D;
  border: 1px solid rgba(255,255,255,0.6);
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
  will-change: transform, opacity;
}

.service-blurb.in-view {
  opacity: 1;
  transform: translateY(0);
}

.service-blurb::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(to top, #1f3f8a, #0F265D);
  transition: height 0.4s ease;
  z-index: 0;
}

.service-blurb * {
  position: relative;
  z-index: 1;
}

@media (hover: hover) {
  .service-blurb:hover::after {
    height: 100%;
  }

  .service-blurb:hover {
    transform: translateY(-5px);
  }
}

@media (max-width: 980px) {
  .service-blurb {
    transform: none !important;
    opacity: 1 !important;
  }

  .service-blurb::after {
    display: none;
  }
}

/* =========================
   PARTNER GRID SECTION
========================= */

/* ===== PARTNER SECTION ===== */
.partner-section {
  background: #0F265D;
  padding: 50px 5px;
  display: flex;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

/* GRID */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  flex: 1.8;
}

/* CARD */
.partner-card {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.25s ease;

  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-card img {
  width: 100%;
  max-height: 80px;
  object-fit: contain;
  display: block;
  margin: auto;
}

/* HOVER OVERLAY (fixed inset) */
.partner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px); /* Safari fix */

  color: #0F265D;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.partner-card:hover .partner-overlay {
  opacity: 1;
}

/* ANIMATION */
.partner-card.selected {
  animation: partner-bob 1.5s ease-in-out infinite;
}

@keyframes partner-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* LOCKED STATE */
.partner-section.locked .partner-card {
  opacity: 0.25;
  filter: grayscale(100%) blur(1px);
  pointer-events: none;
}

.partner-section.locked .partner-card.selected {
  opacity: 1;
  filter: none;
  pointer-events: auto;
}

/* INFO CARD */
.info-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #ffffff;
  border: 2px dashed #0F265D;
  cursor: default;
  border-radius: 12px;
  padding: 14px;
}

.info-content {
  padding: 10px;
}

.info-title {
  font-weight: 700;
  color: #0F265D;
  margin-bottom: 6px;
  font-size: 14px;
}

.info-text {
  font-size: 12px;
  color: #0F265D;
  opacity: 0.85;
  line-height: 1.4;
}

.partner-section.locked .info-card {
  opacity: 0.2;
  filter: grayscale(100%);
}

/* FEATURE PANEL (aspect-ratio replaced) */
.partner-feature {
  flex: 1;
  background: linear-gradient(135deg, #f5f5f5 0%, #e6e6e6 100%);
  border-radius: 14px;
  padding: 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  max-width: 320px;
  height: 420px; /* replaces aspect-ratio */

  position: relative;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.05);
}

.feature-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.partner-feature img {
  width: 100%;
  height: 80%;
  object-fit: contain;
}

/* CTA */
.feature-cta {
  margin-top: 12px;
  text-align: center;
  background: #0F265D;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.partner-feature.locked .feature-cta {
  opacity: 1;
}

/* MOBILE */
@media (max-width: 900px) {
  .partner-section {
    flex-direction: column;
  }

  .partner-feature {
    order: -1;
    max-width: 100%;
    height: auto; /* replaces aspect-ratio */
  }

  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* =========================
   SERVICE BLOCK SPOTLIGHT (RESTORED)
========================= */

.service-block {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover lift */
.service-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
}

/* Spotlight layer */
.service-block::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;

  background: radial-gradient(
    circle at var(--x, 50%) var(--y, 50%),
    rgba(28,108,255,0.35) 0%,
    rgba(28,108,255,0.12) 35%,
    rgba(28,108,255,0) 70%
  );

  opacity: 1;
  transition: background 0.1s ease;
}

/* Ensure content stays above spotlight */
.service-block > * {
  position: relative;
  z-index: 2;
}

/* Optional icon animation */
.service-block img {
  transition: transform 0.35s ease;
}

.service-block:hover img {
  transform: scale(1.08);
}

/* =========================
   PS SLIDER (DIVI SAFE FIX)
========================= */

/* Section wrapper (works even if Divi adds other classes) */
.et_pb_section.ps-slider-section {
  background: transparent;
  padding: 70px 20px;
  font-family: Roboto, Arial, sans-serif;
}

/* Container */
.ps-slider {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Slides wrapper */
.ps-slides {
  position: relative;
  min-height: 320px;
}

/* Slide base */
.ps-slide {
  position: absolute;
  inset: 0;

  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 25px;

  opacity: 0;
  pointer-events: none;

  transition: opacity 1s ease;
  -webkit-transition: opacity 1s ease;
}

/* Active slide */
.ps-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

/* Card */
.ps-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 4px solid rgba(15,38,93,0.9);
  height: 320px;

  transition: all 0.35s ease;
}

.ps-card:hover {
  transform: translateY(-4px);
  border-color: #0F265D;
  box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}

/* Image */
.ps-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay */
.ps-card::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to bottom,
    rgba(15, 38, 93, 0.05),
    rgba(15, 38, 93, 0.65)
  );
}

/* Content */
.ps-card-content {
  position: absolute;
  bottom: 0;
  padding: 22px;
  color: #fff;
  z-index: 2;
}

/* Title */
.ps-title {
  font-size: 18px;
  font-weight: 600;
}

/* Description */
.ps-desc {
  font-size: 14px;
  opacity: 0.9;
}

/* Progress */
.ps-progress {
  width: 40%;
  height: 2px;
  background: rgba(15,38,93,0.15);
  margin: 25px auto 0;
}

.ps-progress-bar {
  height: 100%;
  width: 0%;
  background: #0F265D;
}

/* Navigation */
.ps-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 25px;
}

.ps-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0F265D;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 992px) {
  .ps-slide {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .ps-slide {
    grid-template-columns: 1fr;
  }
}