/*
 * Power Solar — New Homepage
 * Assign ps-home-hero to the hero row and keep all ps-* classes scoped to it.
 */

.ps-home-hero { overflow: hidden; }
.ps-home-hero .fl-row-content-wrap,
.ps-home-hero .fl-row-content,
.ps-home-hero .fl-col-group { min-height: 630px; }

@media (min-width: 769px) {
  .ps-home-hero .fl-col-group { display: flex; align-items: stretch; }
  .ps-home-hero .ps-hero-copy { flex: 0 0 57% !important; max-width: 57% !important; }
  .ps-home-hero .ps-hero-visual { flex: 0 0 43% !important; max-width: 43% !important; }
}

.ps-hero-copy { position: relative; z-index: 4; display: flex; align-items: center; }
.ps-hero-content { max-width: 650px; padding: 70px 25px 70px 55px; color: #fff; opacity: 0; will-change: transform, opacity; }
.ps-hero-content .uabb-infobox-title-prefix { color: #ff6800; font-family: Poppins, sans-serif; font-size: 17px; font-weight: 700; letter-spacing: .02em; line-height: 1.15; }
.ps-hero-content .uabb-infobox-title { color: #fff; font-family: Poppins, sans-serif; font-size: 50px; font-weight: 800; line-height: 1.03; }
.ps-home-hero .ps-hero-content .uabb-infobox-text.uabb-text-editor,
.ps-home-hero .ps-hero-content .uabb-infobox-text.uabb-text-editor p { color: #fff !important; font-family: Sarabun, sans-serif !important; font-size: 16px !important; font-weight: 400 !important; line-height: 1.35 !important; }

.ps-hero-content a.uabb-button,
.ps-hero-content .uabb-creative-button,
.ps-hero-content .ast-button { padding: 15px 22px !important; color: #fff !important; border: 0 !important; border-radius: 0 !important; background: #ff6800 !important; transition: background-color .3s ease, box-shadow .3s ease, transform .3s ease; }
.ps-hero-content a.uabb-button .uabb-button-text { color: #fff !important; font-family: Sarabun, sans-serif !important; font-size: 16px !important; font-weight: 800 !important; }
.ps-hero-content a.uabb-button:hover,
.ps-hero-content .uabb-creative-button:hover { background: #e85e00 !important; box-shadow: 0 12px 24px rgba(0, 0, 0, .25); transform: translateY(-5px); }

.ps-hero-visual,
.ps-hero-visual > .fl-col-content { position: relative; min-height: 630px; height: 100%; overflow: visible; }
.ps-hero-visual .ps-hero-powerwall,
.ps-hero-visual .ps-hero-presenter { position: absolute !important; margin: 0 !important; opacity: 0; will-change: transform, opacity; }
.ps-hero-powerwall { z-index: 1; top: 25px; left: -5px; width: min(40vw, 450px); }
.ps-hero-presenter { z-index: 3; right: -18px; bottom: -52px !important; width: min(55.6vw, 600px); }
.ps-hero-powerwall img,
.ps-hero-presenter img { display: block; width: 100%; height: auto; }

.ps-home-hero.is-in-view .ps-hero-content { animation: psHeroCopy 1.1s cubic-bezier(.16, 1, .3, 1) .15s forwards; }
.ps-home-hero.is-in-view .ps-hero-powerwall { animation: psPowerwallIn 1.25s cubic-bezier(.16, 1, .3, 1) .4s forwards; }
.ps-home-hero.is-in-view .ps-hero-presenter { animation: psPresenterIn 1.3s cubic-bezier(.16, 1, .3, 1) .65s forwards; }
.ps-home-hero.is-in-view .ps-hero-powerwall img { animation: psPowerwallFloat 6s ease-in-out 1.7s infinite; }

@keyframes psHeroCopy { from { opacity: 0; transform: translateX(-55px); } to { opacity: 1; transform: translateX(0); } }
@keyframes psPowerwallIn { from { opacity: 0; transform: translateY(-75px) scale(.9); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes psPresenterIn { from { opacity: 0; transform: translateX(90px) translateY(45px) scale(.92); } to { opacity: 1; transform: translateX(0) translateY(0) scale(1); } }
@keyframes psPowerwallFloat { 0%, 100% { transform: translateY(0) rotate(-.5deg); } 50% { transform: translateY(-12px) rotate(.5deg); } }

/* =========================================
   FAST-COUNT METRICS STRIP
   Use ps-metrics on a Beaver Builder row or HTML section.
========================================= */
.ps-metrics { position: relative; overflow: hidden; padding: 30px clamp(20px, 5vw, 85px); background: #f2f3f5; }
.ps-metrics-inner { display: grid; grid-template-columns: 1.65fr repeat(3, 1fr); max-width: 1440px; margin: 0 auto; }
.ps-metrics-intro,
.ps-metric { min-width: 0; padding: 6px 28px; }
.ps-metrics-intro { padding-left: 0; }
.ps-metric { border-left: 1px solid #c8d0df; }
.ps-metrics-title { margin: 0 0 4px; color: #1f4298; font-family: Poppins, sans-serif; font-size: clamp(24px, 2vw, 34px); font-weight: 800; line-height: 1.04; }
.ps-metrics-copy,
.ps-metric-label { margin: 0; color: #5b5b5b; font-family: Sarabun, sans-serif; font-size: 15px; font-weight: 400; line-height: 1.25; }
.ps-metric-number { display: block; margin-bottom: 4px; color: #1f4298; font-family: Poppins, sans-serif; font-size: clamp(24px, 2.1vw, 36px); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.ps-metric.is-counted .ps-metric-number { animation: psMetricLand .45s cubic-bezier(.16, 1, .3, 1) both; }

@keyframes psMetricLand { from { opacity: .4; transform: translateY(8px) scale(.92); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* Solutions row + inline services list */
.ps-solutions-row { margin-top: 24px; padding-bottom: 100px; border-top: 4px solid #e8e8e8; }
.ps-solutions-row .fl-row-content-wrap { padding-top: 18px; }
.ps-inline-service-list { padding-top: 0; }
.ps-inline-service-list ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; margin: 0; padding: 0; list-style: none; }
.ps-inline-service-list li { display: flex; align-items: center; color: #1f4298; font-family: Poppins, sans-serif; font-size: 14px; font-weight: 500; line-height: 1.35; }
.ps-inline-service-list li + li::before { content: "|"; display: inline-block; margin: 0 5px; color: #ff6800; font-weight: 700; }

/* Solutions section heading — use only on the Solutions heading module. */
.ps-solutions-intro { max-width: 850px; margin: 0 auto; padding: 20px; text-align: center; }
.ps-solutions-intro .uabb-infobox-content { text-align: center !important; }
.ps-solutions-intro .uabb-infobox-title-prefix { margin: 0 0 10px !important; color: #ff6800; font-family: Poppins, sans-serif; font-size: 16px; font-weight: 700; letter-spacing: .02em; line-height: 1.1; text-transform: uppercase; }
.ps-solutions-intro .uabb-infobox-title { max-width: 760px; margin: 0 auto 14px !important; color: #1f4298; font-family: Poppins, sans-serif; font-size: clamp(38px, 4.4vw, 62px); font-weight: 800; line-height: .98; }
.ps-solutions-intro .uabb-infobox-text,
.ps-solutions-intro .uabb-infobox-text p { max-width: 590px; margin: 0 auto !important; color: #5b5b5b; font-family: Sarabun, sans-serif; font-size: 18px; font-weight: 400; line-height: 1.3; }

/* Solutions card — UABB Info Box with image above title */
.ps-solution-card { width: 288px !important; max-width: 100%; margin: 0 auto; }
.ps-solution-card .fl-module-content { margin: 0; }
.ps-solution-card .uabb-infobox { position: relative; height: 400px; min-height: 400px; overflow: hidden; border-radius: 22px; color: #fff; background: linear-gradient(135deg, #253f98 0%, #1f75bd 100%); box-shadow: 0 10px 22px rgba(18, 57, 132, .14); transition: transform .35s ease, box-shadow .35s ease; }
.ps-solution-card .uabb-infobox:hover { box-shadow: 0 18px 34px rgba(18, 57, 132, .27); transform: translateY(-8px); }
.ps-solution-card .uabb-infobox-content { display: flex; flex-direction: column; height: 100%; min-height: 400px; }
.ps-solution-card .uabb-imgicon-wrap { display: block !important; width: 100% !important; margin: 0 !important; padding: 0 !important; overflow: hidden; }
.ps-solution-card .uabb-image,
.ps-solution-card .uabb-image-content { display: block !important; width: 100% !important; max-width: none !important; margin: 0 !important; overflow: hidden; }
.ps-solution-card .uabb-image img,
.ps-solution-card .uabb-photo-img { display: block !important; width: 100% !important; max-width: none !important; height: 180px !important; object-fit: cover; transition: transform .55s ease; }
.ps-solution-card .uabb-infobox:hover .uabb-image img,
.ps-solution-card .uabb-infobox:hover .uabb-photo-img { transform: scale(1.06); }
.ps-solution-card .uabb-infobox-title-wrap { position: relative; min-height: 78px; margin: 0; padding: 19px 22px 14px; }
.ps-solution-card .uabb-infobox-title-wrap::after { content: ""; display: block; width: 100%; height: 1px; margin-top: 10px; background: rgba(255, 255, 255, .22); }
.ps-solution-card .uabb-infobox-title { margin: 0 !important; padding: 0 !important; color: #fff !important; background: transparent !important; font-family: Poppins, sans-serif; font-size: 18px; font-weight: 800; line-height: 1.15; }
.ps-solution-card .uabb-infobox-text-wrap { display: flex; flex: 1; flex-direction: column; padding: 0 22px 20px; }
.ps-solution-card .uabb-infobox-text,
.ps-solution-card .uabb-infobox-text p { min-height: 57px; margin: 0 !important; color: #fff; font-family: Sarabun, sans-serif; font-size: 14px; font-weight: 400; line-height: 1.35; }
.ps-solution-card .uabb-infobox-cta-link,
.ps-solution-card .uabb-infobox-cta-link a,
.ps-solution-card .uabb-infobox-cta-link span { position: absolute; bottom: 22px; left: 22px; display: inline-block; margin: 0; padding: 0; color: #fff !important; font-family: Poppins, sans-serif; font-size: 16px; font-weight: 700; line-height: 1.1; text-decoration: none !important; }
.ps-solution-card .uabb-infobox-cta-link a::after { content: "→"; margin-left: 8px; color: #ff6800; font-size: 20px; line-height: 0; vertical-align: -1px; }

/* A Sol y Verdad feature row */
.ps-sol-y-verdad-row { overflow: hidden; background: radial-gradient(circle at 0% 0%, rgba(255, 159, 129, .62), transparent 32%), linear-gradient(115deg, #273f96 0%, #1f75bd 100%); }
.ps-sol-y-verdad-row .fl-row-content-wrap { padding: 76px clamp(20px, 6vw, 86px); }
.ps-sol-y-verdad-row .fl-col-group-nested { display: flex; align-items: center; gap: clamp(36px, 5vw, 72px); max-width: 1120px; margin: 0 auto; }
.ps-sol-y-verdad-row .fl-col-group-nested > .fl-col:first-child { flex: 0 0 43% !important; width: 43% !important; max-width: 43% !important; }
.ps-sol-y-verdad-row .fl-col-group-nested > .fl-col:last-child { flex: 0 0 calc(57% - clamp(36px, 5vw, 72px)) !important; width: calc(57% - clamp(36px, 5vw, 72px)) !important; max-width: calc(57% - clamp(36px, 5vw, 72px)) !important; }
.ps-sol-y-verdad-square-image { max-width: 395px; margin: 0 auto; }
.ps-sol-y-verdad-square-image .fl-module-content { margin: 0 !important; padding: 0 !important; }
.ps-sol-y-verdad-square-image .pp-photo,
.ps-sol-y-verdad-square-image .pp-photo-content,
.ps-sol-y-verdad-square-image .pp-photo-content-inner { display: block; width: 100%; }
.ps-sol-y-verdad-square-image img { display: block; width: 100%; height: auto; }
.ps-sol-y-verdad-copy { max-width: 600px; color: #fff; }
.ps-sol-y-verdad-copy .uabb-infobox-content { color: inherit; }
.ps-sol-y-verdad-copy .uabb-imgicon-wrap,
.ps-sol-y-verdad-copy .uabb-image,
.ps-sol-y-verdad-copy .uabb-image-content { display: block; width: 48px !important; margin: 0 0 12px !important; }
.ps-sol-y-verdad-copy .uabb-photo-img { display: block; width: 48px !important; height: auto !important; }
.ps-sol-y-verdad-copy .uabb-infobox-title-prefix { margin: 0 0 10px !important; color: #ff6800; font-family: Poppins, sans-serif; font-size: 16px; font-weight: 700; letter-spacing: .03em; line-height: 1.1; text-transform: uppercase; }
.ps-sol-y-verdad-copy .uabb-infobox-title { max-width: 580px; margin: 0 0 18px !important; color: #fff; font-family: Poppins, sans-serif; font-size: clamp(38px, 3.8vw, 52px); font-weight: 800; line-height: 1.04; }
.ps-sol-y-verdad-copy .uabb-infobox-text,
.ps-sol-y-verdad-copy .uabb-infobox-text p { max-width: 560px; margin: 0 !important; color: #fff; font-family: Sarabun, sans-serif; font-size: 16px; font-weight: 400; line-height: 1.38; }
.ps-sol-y-verdad-copy .uabb-infobox-cta-link { display: inline-flex; align-items: center; gap: 11px; margin-top: 30px; color: #fff !important; font-family: Poppins, sans-serif; font-size: 18px; font-weight: 700; line-height: 1; text-decoration: none !important; }
.ps-sol-y-verdad-copy .uabb-infobox-cta-link::before { content: "▶"; display: grid; width: 42px; height: 42px; place-items: center; padding-left: 3px; color: #fff; border-radius: 50%; background: #ff6800; font-size: 22px; transition: transform .3s ease, box-shadow .3s ease; }
.ps-sol-y-verdad-copy .uabb-infobox-cta-link:hover::before { box-shadow: 0 0 0 9px rgba(255, 104, 0, .2); transform: scale(1.1); }

/* Three-card layout: spacing only; individual card typography remains unchanged. */
@media (min-width: 769px) {
  .ps-solutions-row .fl-col-group-nested { display: flex; justify-content: center; gap: 32px; max-width: 1260px; margin: 48px auto 0; padding: 0 20px; }
  .ps-solutions-row .fl-col-group-nested > .fl-col { flex: 0 1 auto; width: auto !important; }
  .ps-solutions-row .fl-col-group-nested > .fl-col > .fl-col-content { display: flex; justify-content: center; }
}

/* Reusable page-section reveal. Add ps-animate to any new homepage row/module. */
.ps-animate { opacity: 0; transform: translateY(42px); transition: opacity .9s ease, transform .9s cubic-bezier(.16, 1, .3, 1); }
.ps-animate.ps-visible { opacity: 1; transform: none; }
.ps-animate.ps-from-left { transform: translateX(-60px); }
.ps-animate.ps-from-right { transform: translateX(60px); }
.ps-animate.ps-visible.ps-from-left,
.ps-animate.ps-visible.ps-from-right { transform: none; }

@media (max-width: 768px) {
  .ps-home-hero .fl-row-content-wrap,
  .ps-home-hero .fl-row-content,
  .ps-home-hero .fl-col-group,
  .ps-hero-visual,
  .ps-hero-visual > .fl-col-content { min-height: auto; }
  .ps-hero-content { padding: 65px 20px 35px; }
  .ps-hero-content .uabb-infobox-title { font-size: 45px; }
  .ps-hero-visual,
  .ps-hero-visual > .fl-col-content { min-height: 480px !important; }
  .ps-hero-powerwall { top: 15px; left: 0; width: 78vw; }
  .ps-hero-presenter { right: -12px; bottom: -8px !important; width: 78vw; }
  .ps-metrics { padding: 30px 20px; }
  .ps-metrics-inner { grid-template-columns: 1fr 1fr; gap: 20px 0; }
  .ps-metrics-intro { grid-column: 1 / -1; padding: 0 0 14px; }
  .ps-metric { padding: 4px 16px; }
  .ps-metric:nth-child(2) { border-left: 0; padding-left: 0; }
  .ps-solutions-row { margin-top: 16px; }
  .ps-solutions-row .fl-row-content-wrap { padding-top: 14px; }
  .ps-inline-service-list li { font-size: 13px; }
  .ps-solutions-intro { padding: 10px 20px; }
  .ps-solutions-intro .uabb-infobox-title { font-size: 42px; }
  .ps-solutions-intro .uabb-infobox-text,
  .ps-solutions-intro .uabb-infobox-text p { font-size: 16px; }
  .ps-solution-card { width: 100% !important; max-width: 340px; }
  .ps-solution-card .uabb-infobox,
  .ps-solution-card .uabb-infobox-content { height: auto; min-height: 0; }
  .ps-solution-card .uabb-infobox-cta-link,
  .ps-solution-card .uabb-infobox-cta-link a,
  .ps-solution-card .uabb-infobox-cta-link span { position: static; margin-top: 18px; }
  .ps-solution-card .uabb-image img,
  .ps-solution-card .uabb-photo-img { height: 210px; }
  .ps-solutions-row .fl-col-group-nested { margin-top: 34px; }
  .ps-sol-y-verdad-row .fl-row-content-wrap { padding: 56px 20px; }
  .ps-sol-y-verdad-row .fl-col-group-nested { display: block; }
  .ps-sol-y-verdad-row .fl-col-group-nested > .fl-col:first-child { width: 100% !important; max-width: none !important; margin-bottom: 40px; }
  .ps-sol-y-verdad-row .fl-col-group-nested > .fl-col:last-child { width: 100% !important; max-width: none !important; }
  .ps-sol-y-verdad-square-image { max-width: 390px; }
  .ps-sol-y-verdad-copy { max-width: 560px; margin: 0 auto; }
  .ps-sol-y-verdad-copy .uabb-infobox-title { font-size: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .ps-hero-content,
  .ps-hero-powerwall,
  .ps-hero-presenter,
  .ps-animate { opacity: 1; animation: none !important; transform: none !important; transition: none !important; }
  .ps-metric.is-counted .ps-metric-number { animation: none !important; }
}

/* Process / six-step section
   Assign ps-process-row to the row, ps-process-intro ps-animate to its heading
   Info Box, and ps-process-step ps-animate to each of the six step Info Boxes.
   Do not use ps-solutions-intro on this section. */
.ps-process-row {
  border-top: 1px solid #cbdcf6;
  background: #fff;
}

.ps-process-row .fl-row-content-wrap {
  padding: 64px 20px 78px;
}

.ps-process-intro {
  max-width: 700px;
  margin: 0 auto 50px;
  text-align: center;
}

.ps-process-intro .uabb-infobox-title-prefix {
  margin: 0 0 8px !important;
  color: #ff6800 !important;
  font-family: Poppins, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}

.ps-process-intro .uabb-infobox-title {
  max-width: 620px;
  margin: 0 auto !important;
  color: #24479d !important;
  font-family: Poppins, sans-serif;
  font-size: clamp(38px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.02;
}

.ps-process-row .fl-col-group-nested {
  max-width: 780px;
  margin: 0 auto;
}

.ps-process-row .fl-col-group-nested + .fl-col-group-nested {
  margin-top: 34px;
}

.ps-process-step {
  position: relative;
  min-height: 308px;
  overflow: hidden;
  border-left: 1px solid #d5e2fa;
}

.ps-process-step .fl-module-content {
  position: relative;
  z-index: 1;
  margin: 0 !important;
  padding: 70px 20px 22px !important;
}

/* The number comes from the Info Box prefix field: 01 through 06. */
.ps-process-step .uabb-infobox-title-prefix {
  position: absolute;
  z-index: 0;
  top: -82px;
  left: 4px;
  margin: 0 !important;
  color: #f1f1f1 !important;
  font-family: Poppins, sans-serif;
  /* Sized to match the background numerals in the approved mockup. */
  font-size: 150px;
  font-weight: 300;
  letter-spacing: -.08em;
  line-height: 1;
  pointer-events: none;
}

/* Override UABB/theme typography applied to the prefix <p> element. */
.ps-process-step p.uabb-infobox-title-prefix,
.ps-process-step .uabb-infobox-title-wrap .uabb-infobox-title-prefix {
  font-family: "Poppins", sans-serif !important;
  font-weight: 300 !important;
  font-style: normal !important;
  font-synthesis: none;
}

.ps-process-step .uabb-infobox-content {
  position: relative;
  isolation: isolate;
  font-family: Sarabun, sans-serif;
}

/* If an orange SVG/PNG is selected in the Info Box image/icon field. */
.ps-process-step .uabb-imgicon-wrap,
.ps-process-step .uabb-image,
.ps-process-step .uabb-image-content {
  position: relative;
  z-index: 2;
  display: block;
  width: 64px !important;
  margin: 0 0 8px !important;
}

.ps-process-step .uabb-photo-img {
  display: block;
  width: 64px !important;
  height: 46px !important;
  object-fit: contain;
}

.ps-process-step .uabb-icon-wrap,
.ps-process-step .uabb-icon {
  color: #ff6800 !important;
  font-size: 36px !important;
  line-height: 1;
}

.ps-process-step .uabb-infobox-title {
  position: relative;
  z-index: 2;
  margin: 0 0 7px !important;
  color: #24479d !important;
  font-family: Poppins, sans-serif;
  font-size: 25px; /* Poppins Bold, 19pt */
  font-weight: 700;
  line-height: 1.15;
}

.ps-process-step .uabb-infobox-text,
.ps-process-step .uabb-infobox-text p {
  position: relative;
  z-index: 2;
  max-width: 225px;
  margin: 0 !important;
  color: #5f5f5f !important;
  font-family: Sarabun, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.36;
}

/* Stagger the centre items (02 and 05) while keeping every divider aligned. */
@media (min-width: 769px) {
  .ps-process-row .fl-col-group-nested > .fl-col:nth-child(2) .ps-process-step .fl-module-content {
    transform: translateY(86px);
  }
}

@media (max-width: 768px) {
  .ps-process-row .fl-row-content-wrap { padding: 52px 20px; }
  .ps-process-intro { margin-bottom: 30px; }
  .ps-process-intro .uabb-infobox-title { font-size: 38px; }
  .ps-process-row .fl-col-group-nested + .fl-col-group-nested { margin-top: 0; }
  .ps-process-step { min-height: 220px; margin-bottom: 22px; }
  .ps-process-step .fl-module-content { padding: 60px 20px 20px !important; }
  .ps-process-step .uabb-infobox-title-prefix { top: -52px; font-size: 116px; }
}

/* Customer testimonial cards
   Row: ps-testimonials-row | heading: ps-testimonials-intro ps-animate
   Nested three-column group: ps-testimonials-grid
   Each Info Box: ps-testimonial-card ps-animate
   Portrait Photo module in the same column: ps-testimonial-avatar
   Bottom button: ps-testimonials-more */
.ps-testimonials-row {
  overflow: hidden;
  background: #f5f5f5;
}

.ps-testimonials-row .fl-row-content-wrap {
  padding: 68px 20px 158px;
}

.ps-testimonials-intro {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.ps-testimonials-intro .uabb-infobox-content { text-align: center !important; }
.ps-testimonials-intro .uabb-infobox-title-prefix {
  margin: 0 0 10px !important;
  color: #ff6800 !important;
  font-family: Poppins, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}
.ps-testimonials-intro .uabb-infobox-title {
  max-width: 650px;
  margin: 0 auto 14px !important;
  color: #24479d !important;
  font-family: Sarabun, sans-serif !important;
  font-size: clamp(38px, 4.4vw, 62px);
  font-weight: 400;
  line-height: .98;
}
.ps-testimonials-intro .uabb-infobox-text,
.ps-testimonials-intro .uabb-infobox-text p {
  max-width: 620px;
  margin: 0 auto !important;
  color: #5b5b5b !important;
  font-family: Sarabun, sans-serif !important;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
}

.ps-testimonials-grid { max-width:100%; margin: 0 auto; }
.ps-testimonials-grid .fl-col-group-nested { max-width: 1200px; margin: 0 auto; }
.ps-testimonials-grid .fl-col-group-nested > .fl-col > .fl-col-content { position: relative; }
.ps-testimonial-card { width: 100% !important; max-width: 300px; margin: 0 auto; }
.ps-testimonial-card .fl-module-content { margin: 0 !important; }
.ps-testimonial-card .uabb-infobox {
  position: relative;
  min-height: 550px;
  overflow: hidden;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, #253f98 0%, #1f7dbf 100%);
  box-shadow: 0 10px 24px rgba(22, 57, 132, .12);
}
.ps-testimonial-card .uabb-infobox-content { display: flex; flex-direction: column; min-height: 550px; }
.ps-testimonial-card .uabb-infobox-content::before {
  content: "";
  position: absolute;
  z-index: 4;
  top: 145px;
  left: 20px;
  width: 58px;
  height: 58px;
  border: 2px solid rgba(255, 255, 255, .85);
  border-radius: 10px;
  background-color: #24479d;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .18);
}
.ps-testimonial-card .uabb-infobox-content { position: relative; }
.ps-testimonial-alex .uabb-infobox-content::before { background-image: url("https://powersolarpr.com/wp-content/uploads/2026/09/testimonio-alex-carrasquillo-power-solar-puerto-rico.jpg"); }
.ps-testimonial-esther .uabb-infobox-content::before { background-image: url("https://powersolarpr.com/wp-content/uploads/2026/09/testimonio-esther-cirino-power-solar-puerto-rico.jpg"); }
.ps-testimonial-norma .uabb-infobox-content::before { background-image: url("https://powersolarpr.com/wp-content/uploads/2026/09/testimonio-norma-trinidad-power-solar-puerto-rico.jpg"); }
.ps-testimonial-card .uabb-imgicon-wrap,
.ps-testimonial-card .uabb-image,
.ps-testimonial-card .uabb-image-content { display: block !important; width: 100% !important; margin: 0 !important; overflow: hidden; }
.ps-testimonial-card .uabb-photo-img { display: block !important; width: 100% !important; height: 180px !important; object-fit: cover; }
.ps-testimonial-card .uabb-infobox-title-wrap { padding: 35px 22px 8px; }
.ps-testimonial-card .uabb-infobox-title-prefix {
  margin: 0 0 5px !important;
  color: #fff !important;
  font-family: Poppins, sans-serif;
  font-size: 20px; /* Poppins Extra Bold, 17pt */
  font-weight: 800;
  line-height: 1.1;
}
.ps-testimonial-card .uabb-infobox-title {
  position: relative;
  margin: 0 !important;
  padding-bottom: 10px;
  color: #fff !important;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  font-family: Sarabun, sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
}
.ps-testimonial-card .uabb-infobox-title::before {
  content: "\f041";
  display: inline-block;
  margin-right: 7px;
  color: #ff6800;
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome !important;
  font-size: 15px;
  font-weight: 900;
}
.ps-testimonial-card .uabb-infobox-text-wrap { display: flex; flex: 1; flex-direction: column; padding: 0 22px 24px; }
.ps-testimonial-card .uabb-infobox-text,
.ps-testimonial-card .uabb-infobox-text p {
  margin: 0 !important;
  color: #fff !important;
  font-family: Sarabun, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
}
.ps-testimonial-card .uabb-infobox-cta-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 22px;
  padding-bottom: 22px;
  color: #fff !important;
  font-family: Poppins, sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none !important;
}
.ps-testimonial-card .uabb-infobox-cta-link::after { content: "→"; margin-left: 9px; color: #ff6800; font-size: 28px; line-height: .7; }

/* Add a regular Beaver Builder Photo module in each card column for the portrait. */
.ps-testimonial-avatar {
  position: absolute;
  z-index: 3;
  top: 145px;
  left: max(22px, calc(50% - 123px));
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .8);
  border-radius: 10px;
  background: #24479d;
}
.ps-testimonial-avatar .fl-module-content { margin: 0 !important; }
.ps-testimonial-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }

.ps-testimonials-more { margin-top: 42px; }
.ps-testimonials-more .uabb-button { padding: 14px 24px !important; color: #fff !important; border: 0 !important; border-radius: 0 !important; background: #ff6800 !important; }
.ps-testimonials-more .ps-button-primary {
  width: 300px;
  max-width: 100%;
}

/* Partners logo ticker */
.ps-partners-row .ps-ticker-logos,
.ps-asociaciones-row .ps-ticker-logos {
  margin-top: -30px;
}

.ps-partners-row .ps-ticker-logos img {
  max-width: 250px;
}

.ps-asociaciones-row .ps-ticker-logos img {
  max-width: 160px;
}

/* Keep only the Asociaciones logos static on desktop; use their ticker on mobile. */
@media (min-width: 769px) {
  .ps-asociaciones-row .pp-logos-wrapper.pp-logos-ticker {
    --ticker-animation: none !important;
    display: flex !important;
    width: 100% !important;
    justify-content: space-evenly !important;
    animation: none !important;
    transform: none !important;
  }
  .ps-asociaciones-row .pp-logos-wrapper.pp-logos-ticker .pp-logo-clone { display: none !important; }
}

@media (max-width: 768px) {
  .ps-asociaciones-row .pp-logos-wrapper.pp-logos-ticker {
    --ticker-animation: pp-ticker !important;
    animation-name: pp-ticker !important;
    animation-duration: var(--ticker-speed, 60s) !important;
    animation-timing-function: linear !important;
    animation-iteration-count: infinite !important;
  }
  .ps-asociaciones-row .pp-logos-wrapper.pp-logos-ticker .pp-logo-clone { display: block !important; }
}

/* Frequently asked questions
   Row: ps-faq-row | left Info Box: ps-faq-intro | UABB FAQ: ps-home-faq */
.ps-faq-row {
  border-bottom: 1px solid #d9d9d9;
  background: #fff;
}
.ps-faq-row .fl-row-content-wrap { padding: 76px 20px 82px; }
.ps-faq-row .fl-col-group-nested { max-width: 1120px; margin: 0 auto; }

.ps-faq-intro { max-width: 500px; }
.ps-faq-intro .uabb-infobox-title-prefix {
  margin: 0 0 9px !important;
  color: #ff6800 !important;
  font-family: Poppins, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}
.ps-faq-intro .uabb-infobox-title {
  margin: 0 0 14px !important;
  color: #24479d !important;
  font-family: Poppins, sans-serif;
  font-size: clamp(38px, 4vw, 52px);
  font-weight: 800;
  line-height: .98;
}
.ps-faq-intro .uabb-infobox-text,
.ps-faq-intro .uabb-infobox-text p {
  max-width: 420px;
  margin: 0 !important;
  color: #5b5b5b !important;
  font-family: Sarabun, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.35;
}
.ps-faq-intro .uabb-infobox-button { margin-top: 24px; }
.ps-faq-intro .uabb-button {
  padding: 13px 32px !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #ff6800 !important;
  box-shadow: none !important;
}
.ps-faq-intro .uabb-button-text {
  color: #fff !important;
  font-family: Sarabun, sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.ps-home-faq { max-width: 510px; margin-left: auto; }
.ps-home-faq .uabb-faq-item {
  margin: 0 !important;
  border: 0 !important;
  border-top: 1px solid #d9d9d9 !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.ps-home-faq .uabb-faq-item:last-child { border-bottom: 1px solid #d9d9d9 !important; }
.ps-home-faq .uabb-faq-questions-button {
  display: flex !important;
  align-items: center;
  min-height: 49px;
  padding: 12px 10px 12px 4px !important;
  background: transparent !important;
}
.ps-home-faq .uabb-faq-question-label {
  order: 1;
  margin: 0 !important;
  color: #555 !important;
  font-family: Poppins, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}
.ps-home-faq .uabb-faq-icon-wrap {
  order: 2;
  margin-left: auto;
  color: #ff6800 !important;
}
.ps-home-faq .uabb-faq-button-icon {
  color: inherit !important;
  font-size: 17px;
  font-weight: 900;
  -webkit-text-stroke: .4px currentColor;
}
.ps-home-faq .uabb-faq-content {
  padding: 0 36px 18px 4px !important;
  color: #5b5b5b;
  background: transparent !important;
  font-family: Sarabun, sans-serif;
  font-size: 16px;
  line-height: 1.38;
}
.ps-home-faq .uabb-faq-content p { margin: 0 !important; }

@media (min-width: 769px) {
  .ps-faq-row .fl-col-group-nested { display: flex; align-items: center; gap: clamp(50px, 8vw, 120px); }
  .ps-faq-row .fl-col-group-nested > .fl-col:first-child { flex: 0 1 42%; }
  .ps-faq-row .fl-col-group-nested > .fl-col:last-child { flex: 1 1 58%; }
}
@media (max-width: 768px) {
  .ps-faq-row .fl-row-content-wrap { padding: 54px 20px; }
  .ps-faq-intro { margin-bottom: 42px; }
  .ps-faq-intro .uabb-infobox-title { font-size: 40px; }
  .ps-home-faq { margin: 0; }
}

/* Articles section
   Row: ps-articles-row | heading: ps-articles-intro ps-animate
   Advanced Posts module: ps-articles-grid | bottom button module: ps-articles-more */
.ps-articles-row { background: #fff; }
.ps-articles-row .fl-row-content-wrap { padding: 72px 20px 66px; }
.ps-articles-intro { max-width: 760px; margin: 0 auto 42px; text-align: center; }
.ps-articles-intro .uabb-infobox-content { text-align: center !important; }
.ps-articles-intro .uabb-infobox-title-prefix {
  margin: 0 0 8px !important;
  color: #ff6800 !important;
  font-family: Poppins, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}
.ps-articles-intro .uabb-infobox-title {
  max-width: 600px;
  margin: 0 auto 14px !important;
  color: #24479d !important;
  font-family: Poppins, sans-serif;
  font-size: clamp(38px, 4.3vw, 56px);
  font-weight: 800;
  line-height: .98;
}
.ps-articles-intro .uabb-infobox-text,
.ps-articles-intro .uabb-infobox-text p {
  max-width: 650px;
  margin: 0 auto !important;
  color: #5b5b5b !important;
  font-family: Sarabun, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
}

.ps-articles-grid { max-width: 1050px; margin: 0 auto; }
.ps-articles-grid .uabb-blog-posts {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  height: auto !important;
}
.ps-articles-grid .uabb-post-wrapper {
  position: static !important;
  width: auto !important;
  height: auto !important;
}
.ps-articles-grid .uabb-blog-posts-shadow {
  height: 100% !important;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 7px 16px rgba(21, 55, 126, .11) !important;
}
.ps-articles-grid .uabb-blog-post-inner-wrap {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  overflow: hidden;
  background: #fff;
}
.ps-articles-grid .uabb-post-thumbnail { flex: 0 0 180px; overflow: hidden; }
.ps-articles-grid .uabb-post-thumbnail a,
.ps-articles-grid .uabb-post-thumbnail img { display: block; width: 100%; height: 100%; }
.ps-articles-grid .uabb-post-thumbnail img { object-fit: cover; }
.ps-articles-grid .uabb-blog-post-content {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 13px 18px 56px;
  background: #fff;
  text-align: left !important;
}
.ps-articles-grid .uabb-post-meta {
  margin: 0 0 7px !important;
  color: #24479d !important;
  font-family: Sarabun, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left !important;
}
.ps-articles-grid .uabb-post-heading { margin: 0 !important; text-align: left !important; }
.ps-articles-grid .uabb-post-heading a {
  display: block;
  color: #303030 !important;
  font-family: Sarabun, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.18;
  text-decoration: none !important;
}
.ps-articles-grid .uabb-read-more-text {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 64px;
  margin: 0 !important;
  padding: 18px 26px !important;
  background: #29479d !important;
  text-align: left !important;
}
.ps-articles-grid .uabb-read-more-text a {
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  color: #fff !important;
  font-family: Sarabun, sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
}
.ps-articles-grid .uabb-next-right-arrow { margin-left: 7px; color: #ff6800 !important; font-size: 19px; }
.ps-articles-more { margin-top: 44px; }

@media (max-width: 768px) {
  .ps-articles-row .fl-row-content-wrap { padding: 54px 20px; }
  .ps-articles-intro { margin-bottom: 34px; }
  .ps-articles-intro .uabb-infobox-title { font-size: 40px; }
  .ps-articles-grid .uabb-blog-posts { grid-template-columns: 1fr; gap: 26px; }
  .ps-articles-grid .uabb-blog-post-inner-wrap { min-height: 0; }
  .ps-articles-grid .uabb-post-thumbnail { flex-basis: 200px; }
}

/* Nadia contact banner
   Row: ps-talk-energy-row | Info Box: ps-talk-energy-content
   Set the panoramic image in the Row settings; no background image is declared here. */
.ps-talk-energy-row {
  position: relative;
  z-index: 2;
  overflow: visible;
}
.ps-talk-energy-row .fl-row-content-wrap,
.ps-talk-energy-row .fl-row-content,
.ps-talk-energy-row .fl-col-group,
.ps-talk-energy-row .fl-col,
.ps-talk-energy-row .fl-col-content { min-height: 550px; }
.ps-talk-energy-row .fl-row-content-wrap { position: relative; overflow: visible; }
.ps-talk-energy-content { max-width: 1050px; margin: 0 auto; text-align: center; }
.ps-talk-energy-content .fl-module-content { margin: 0 !important; }
.ps-talk-energy-content .uabb-infobox-content {
  position: relative;
  min-height: 550px;
  padding: 190px 20px 42px;
  box-sizing: border-box;
}
.ps-talk-energy-content .uabb-imgicon-wrap,
.ps-talk-energy-content .uabb-image,
.ps-talk-energy-content .uabb-image-content {
  position: absolute;
  z-index: 2;
  top: -48px;
  left: 50%;
  display: block !important;
  width: 260px !important;
  margin: 0 !important;
  transform: translateX(-50%);
}
.ps-talk-energy-content .uabb-photo-img { display: block; width: 100% !important; height: auto !important; }
.ps-talk-energy-content .uabb-infobox-title-wrap,
.ps-talk-energy-content .uabb-infobox-text-wrap { position: relative; z-index: 3; }
.ps-talk-energy-content .uabb-infobox-title-prefix {
  max-width: 850px;
  margin: 0 auto 12px !important;
  color: #fff !important;
  font-family: Poppins, sans-serif;
  font-size: clamp(40px, 4.2vw, 56px);
  font-weight: 800;
  line-height: 1.04;
}
.ps-talk-energy-content .uabb-infobox-text,
.ps-talk-energy-content .uabb-infobox-text p {
  max-width: 780px;
  margin: 0 auto !important;
  color: #fff !important;
  font-family: Sarabun, sans-serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.35;
}
.ps-talk-energy-content .uabb-infobox-button { margin-top: 30px; }
.ps-talk-energy-content .uabb-button {
  padding: 14px 28px !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #ff6800 !important;
  box-shadow: none !important;
}
.ps-talk-energy-content .uabb-button-text {
  color: #fff !important;
  font-family: Sarabun, sans-serif;
  font-size: 17px;
  font-weight: 700;
}
@media (max-width: 768px) {
  .ps-talk-energy-row .fl-row-content-wrap,
  .ps-talk-energy-row .fl-row-content,
  .ps-talk-energy-row .fl-col-group,
  .ps-talk-energy-row .fl-col,
  .ps-talk-energy-row .fl-col-content { min-height: 570px; }
  .ps-talk-energy-content .uabb-infobox-content { min-height: 570px; padding: 205px 20px 38px; }
  .ps-talk-energy-content .uabb-imgicon-wrap,
  .ps-talk-energy-content .uabb-image,
  .ps-talk-energy-content .uabb-image-content { top: -28px; width: 230px !important; }
  .ps-talk-energy-content .uabb-infobox-title-prefix { font-size: 38px; }
  .ps-talk-energy-content .uabb-infobox-text,
  .ps-talk-energy-content .uabb-infobox-text p { font-size: 17px; }
}

/* Leave room for Nadia's portrait above the next banner. */
.ps-articles-row { margin-bottom: 90px; }

@media (max-width: 768px) {
  .ps-articles-row { margin-bottom: 55px; }
}

/* FAQ layout refinement — assign ps-faq-layout to the nested two-column group. */
.ps-faq-row { border-bottom: 0; }
.ps-faq-row .fl-row-content-wrap { position: relative; }
.ps-faq-row .fl-row-content-wrap::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 0;
  width: 100vw;
  height: 1px;
  transform: translateX(50%);
  background: #d9d9d9;
}

@media (min-width: 769px) {
  .ps-faq-row .ps-faq-layout {
    display: flex;
    align-items: center;
    gap: 74px;
    max-width: 870px;
    margin: 0 auto;
  }
  .ps-faq-row .ps-faq-layout > .fl-col:first-child { flex: 0 0 390px; }
  .ps-faq-row .ps-faq-layout > .fl-col:last-child { flex: 1 1 auto; min-width: 0; }
  .ps-faq-row .ps-faq-layout .ps-home-faq { max-width: none; }
}

/* Puerto Rico control-energy banner
   Row: ps-control-energy-row | Info Box: ps-control-energy-content */
.ps-control-energy-row {
  position: relative;
  z-index: 2;
  overflow: visible;
}

.ps-control-energy-row .fl-row-content-wrap {
  position: relative;
  min-height: 447px;
  overflow: visible;
}

.ps-control-energy-row .fl-row-content-wrap::after {
  display: none;
}

.ps-control-energy-row .fl-row-content,
.ps-control-energy-row .fl-col-group,
.ps-control-energy-row .fl-col,
.ps-control-energy-row .fl-col-content {
  position: relative;
  z-index: 1;
  min-height: 447px;
}

.ps-control-energy-content {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.ps-control-energy-content .fl-module-content { margin: 0 !important; }
.ps-control-energy-content .uabb-infobox-content {
  position: relative;
  min-height: 447px;
  padding: 232px 20px 38px;
  box-sizing: border-box;
  color: #fff;
}

.ps-control-energy-content .uabb-imgicon-wrap,
.ps-control-energy-content .uabb-image,
.ps-control-energy-content .uabb-image-content {
  position: absolute;
  z-index: 2;
  top: -25px;
  left: 50%;
  display: block !important;
  width: 250px !important;
  margin: 0 !important;
  transform: translateX(-50%);
}

.ps-control-energy-content .uabb-photo-img {
  display: block;
  width: 100% !important;
  height: auto !important;
}

.ps-control-energy-content .uabb-infobox-title-wrap,
.ps-control-energy-content .uabb-infobox-text-wrap { position: relative; z-index: 3; }
.ps-control-energy-content .uabb-infobox-title-prefix {
  margin: 0 0 12px !important;
  color: #fff !important;
  font-family: Poppins, sans-serif;
  font-size: clamp(34px, 4vw, 44px);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}
.ps-control-energy-content .uabb-infobox-title {
  margin: 0 !important;
  color: #fff !important;
  font-family: Poppins, sans-serif;
  font-size: clamp(16px, 1.7vw, 21px);
  font-weight: 700;
  line-height: 1.25;
}
.ps-control-energy-content .ps-control-divider { padding: 0 6px; color: #ff6800; }
.ps-control-energy-content .uabb-infobox-text,
.ps-control-energy-content .uabb-infobox-text p {
  margin: 12px 0 0 !important;
  color: #ff6800 !important;
  font-family: Poppins, sans-serif;
  font-size: clamp(30px, 3.3vw, 40px);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .ps-control-energy-row .fl-row-content-wrap,
  .ps-control-energy-row .fl-row-content,
  .ps-control-energy-row .fl-col-group,
  .ps-control-energy-row .fl-col,
  .ps-control-energy-row .fl-col-content { min-height: 500px; }
  .ps-control-energy-content .uabb-infobox-content { min-height: 500px; padding: 260px 20px 40px; }
  .ps-control-energy-content .uabb-imgicon-wrap,
  .ps-control-energy-content .uabb-image,
  .ps-control-energy-content .uabb-image-content { width: 230px !important; top: -18px; }
  .ps-control-energy-content .uabb-infobox-title { font-size: 15px; }
  .ps-control-energy-content .ps-control-divider { padding: 0 3px; }
}

@media (min-width: 769px) {
  .ps-testimonials-grid .fl-col-group-nested {
    display: flex;
    justify-content: center;
    gap: clamp(28px, 4vw, 58px);
    padding: 0 20px;
  }
  .ps-testimonials-grid .fl-col-group-nested > .fl-col {
    flex: 1 1 0;
    width: auto !important;
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .ps-testimonials-row .fl-row-content-wrap { padding: 54px 20px; }
  .ps-testimonials-intro { margin-bottom: 34px; }
  .ps-testimonials-intro .uabb-infobox-title { font-size: 40px; }
  .ps-testimonial-card { width: 100% !important; max-width: 350px; margin-bottom: 28px; }
  .ps-testimonial-card .uabb-infobox,
  .ps-testimonial-card .uabb-infobox-content { min-height: 0; }
  .ps-testimonial-card .uabb-infobox-text,
  .ps-testimonial-card .uabb-infobox-text p { font-size: 18px; }
  .ps-testimonial-avatar { left: 50%; transform: translateX(-153px); }
}


/* Testimonial cards: same desktop height + CTA aligned at bottom */
@media (min-width: 769px) {
  .ps-testimonial-card .uabb-infobox,
  .ps-testimonial-card .uabb-infobox-content {
    height: 600px !important;
    min-height: 600px !important;
  }

  .ps-testimonial-card .uabb-infobox-left-right-wrap {
    height: 100%;
  }

  .ps-testimonial-card .uabb-infobox-text-wrap {
    min-height: 0;
  }

  .ps-testimonial-card .uabb-infobox-cta-link {
    margin-top: auto !important;
  }
}

/* Hero artwork: use one fixed desktop artboard so the Powerwall and presenter
   keep their relationship as the browser width changes. */
@media (min-width: 769px) {
  .ps-home-hero .ps-hero-copy {
    flex: 1 1 auto !important;
    max-width: calc(100% - 600px) !important;
  }

  .ps-home-hero .ps-hero-visual {
    flex: 0 0 600px !important;
    max-width: 600px !important;
  }

  .ps-home-hero .ps-hero-powerwall {
    top: 25px;
    left: -145px;
    width: 450px;
  }

  .ps-home-hero .ps-hero-presenter {
    right: -18px;
    bottom: -52px !important;
    width: 600px;
  }
}

/* Make the testimonial heading match the Solutions section heading. */
.ps-testimonials-intro { max-width: 850px; padding: 20px; }
.ps-testimonials-intro .uabb-infobox-content { text-align: center !important; }
.ps-testimonials-intro .uabb-infobox-title-prefix {
  margin: 0 0 10px !important;
  color: #ff6800 !important;
  font-family: Poppins, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.1;
  text-transform: uppercase;
}
.ps-testimonials-intro .uabb-infobox-title {
  max-width: 760px;
  margin: 0 auto 14px !important;
  color: #1f4298 !important;
  font-family: Poppins, sans-serif !important;
  font-size: clamp(38px, 4.4vw, 62px);
  font-weight: 800;
  line-height: .98;
}
.ps-testimonials-intro .uabb-infobox-text,
.ps-testimonials-intro .uabb-infobox-text p {
  max-width: 590px;
  margin: 0 auto !important;
  color: #5b5b5b !important;
  font-family: Sarabun, sans-serif !important;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
}

/* =========================================
   RESPONSIVE HOMEPAGE LAYER
   Final tablet and phone overrides. Keep this block at the end of the file.
========================================= */

/* Tablet: protect the hero copy while retaining the artwork composition. */
@media (min-width: 769px) and (max-width: 1024px) {
  .ps-home-hero .ps-hero-copy {
    flex: 0 0 55% !important;
    max-width: 55% !important;
  }

  .ps-home-hero .ps-hero-visual {
    flex: 0 0 45% !important;
    max-width: 45% !important;
  }

  .ps-home-hero .ps-hero-content { padding-left: 36px; }
  .ps-home-hero .ps-hero-content .uabb-infobox-title { font-size: 44px; }
  .ps-home-hero .ps-hero-powerwall { left: -105px; width: 370px; }
  .ps-home-hero .ps-hero-presenter { right: -16px; width: 490px; }

  .ps-testimonials-grid .fl-col-group-nested { gap: 20px; }
  .ps-testimonial-card { max-width: 280px; }
}

/* Phone: one-column content, comfortable gutters, and no horizontal overflow. */
@media (max-width: 768px) {
  .ps-home-hero,
  .ps-sol-y-verdad-row,
  .ps-testimonials-row,
  .ps-talk-energy-row,
  .ps-control-energy-row { overflow-x: hidden; }

  .ps-home-hero .fl-col-group,
  .ps-home-hero .ps-hero-copy,
  .ps-home-hero .ps-hero-visual {
    width: 100% !important;
    max-width: none !important;
  }

  .ps-home-hero .ps-hero-content { max-width: 560px; margin: 0 auto; }
  .ps-home-hero .ps-hero-content .uabb-infobox-title { font-size: clamp(38px, 11vw, 45px); }

  .ps-metrics-inner { max-width: 560px; margin: 0 auto; }
  .ps-solution-card,
  .ps-testimonial-card { margin-right: auto; margin-left: auto; }

  .ps-testimonials-grid .fl-col-group-nested,
  .ps-faq-row .ps-faq-layout {
    display: block !important;
  }

  .ps-testimonials-grid .fl-col-group-nested > .fl-col,
  .ps-faq-row .ps-faq-layout > .fl-col {
    width: 100% !important;
    max-width: none !important;
  }

  .ps-testimonials-more .ps-button-primary {
    width: min(300px, 100%);
  }

  .ps-talk-energy-content .uabb-button,
  .ps-control-energy-content .uabb-button,
  .ps-faq-intro .uabb-button { max-width: 100%; }
}

/* Compact phones: tighten oversized headings and hero artwork without changing copy. */
@media (max-width: 480px) {
  .ps-hero-visual,
  .ps-hero-visual > .fl-col-content { min-height: 420px !important; }
  .ps-hero-powerwall { width: 82vw; }
  .ps-hero-presenter { width: 82vw; }

  .ps-solutions-intro .uabb-infobox-title,
  .ps-testimonials-intro .uabb-infobox-title,
  .ps-process-intro .uabb-infobox-title,
  .ps-faq-intro .uabb-infobox-title,
  .ps-articles-intro .uabb-infobox-title { font-size: 36px; }

  .ps-talk-energy-content .uabb-infobox-title-prefix { font-size: 34px; }
  .ps-talk-energy-content .uabb-infobox-text,
  .ps-talk-energy-content .uabb-infobox-text p { font-size: 16px; }

  .ps-control-energy-content .uabb-infobox-title-prefix { font-size: 31px; }
  .ps-testimonial-card { max-width: 340px; }
}
