/* HydroNeo ProductTestimonials component (added 24 Sep 2026)
   Fixed customer-proof block: centred heading, video card left, 3 stacked testimonial cards right.
   Used by: iot-monitoring-automation.html (#testimonials) and farmos.html (#farmer-stories).
   Same visual treatment as the homepage CustomerProofSection (8px card gap, 8px badge spacing,
   standard .section-title / .section-desc sizes). Video pop-up: assets/js/hn-video-modal.js.

   VERSION SWITCH (per page, on the section element):
     data-testimonials-version="new"     shows the new ProductTestimonials block
     data-testimonials-version="legacy"  shows the preserved legacy block (IoT page)
     data-testimonials-version="hidden"  hides the whole section (FarmOS: its previous state, no section) */
[data-testimonials-version="new"] [data-legacy-testimonials] { display: none; }
[data-testimonials-version="legacy"] .pt { display: none; }
[data-testimonials-version="hidden"] { display: none; }

.pt { --pt-accent: var(--secondary-vivid, #01ADEF); }
.pt-inner { max-width: 1160px; margin: 0 auto; }
.pt-header { text-align: center; margin-bottom: 2.5rem; }
.pt .pt-header .section-label { display: block; font-size: 0.78rem; color: var(--pt-accent); margin-bottom: 1.05rem; }
.pt .pt-title em { color: var(--pt-accent); }
.pt .pt-desc { margin: 0 auto; }

.pt-grid { display: grid; grid-template-columns: minmax(0, 507fr) minmax(0, 734fr); column-gap: 32px; align-items: stretch; }

.pt-media {
 position: relative; isolation: isolate; display: block; width: 100%; height: 100%; min-height: 480px;
 padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: pointer;
 background: linear-gradient(160deg, var(--primary-light, #0a4fa8) 0%, var(--primary, #06377A) 55%, var(--primary-dark, #042860) 100%);
 color: #fff; text-align: left; font: inherit;
}
.pt-media:focus-visible { outline: 3px solid var(--secondary, #017a9e); outline-offset: 4px; }
.pt-media-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 30%; transition: transform 0.6s ease; }
.pt-media:hover .pt-media-img { transform: scale(1.03); }
.pt-media::after {
 content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
 background: linear-gradient(180deg, rgba(6,55,122,0) 42%, rgba(6,55,122,0.5) 62%, rgba(6,55,122,0.85) 80%, rgba(6,55,122,0.97) 92%, #06377A 100%);
}
.pt-play {
 position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
 display: flex; align-items: center; justify-content: center;
 background: rgba(255,255,255,0.78); color: var(--text-dark, #0e1b2e);
 -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
 box-shadow: 0 6px 24px rgba(4,40,96,0.25); transition: transform 0.2s ease, background 0.2s ease;
}
.pt-play svg { width: 40px; height: 40px; margin-left: 6px; display: block; }
.pt-media:hover .pt-play, .pt-media:focus-visible .pt-play { transform: scale(1.06); background: rgba(255,255,255,0.92); }
.pt-media[aria-disabled="true"] { cursor: default; }
.pt-media[aria-disabled="true"] .pt-play { display: none; }
.pt-media-overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 1.8rem 1.75rem; }
.pt-media-headline { display: block; font-family: 'Roboto', 'Poppins', sans-serif; font-weight: 500; font-size: clamp(2.1rem, 3.5vw, 3rem); line-height: 1.1; }
.pt-media-sub { display: block; margin-top: 0.875rem; font-family: 'Roboto', 'DM Sans', sans-serif; font-weight: 400; font-size: clamp(1.3rem, 2.3vw, 1.98rem); line-height: 1.3; }

.pt-cards { display: flex; flex-direction: column; gap: 8px; }
.pt-card { flex: 1; margin: 0; background: #fff; border: 1px solid var(--border, #d0dcea); border-radius: 16px; padding: 20px; }
.pt-pill { display: inline-block; background: var(--primary, #06377A); color: #fff; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 0.75rem; line-height: 1.25; padding: 7px 10px; border-radius: 50px; margin-bottom: 14px; } /* visible badge-to-quote gap: 16px */
.pt-quote-ico { font-family: 'Poppins', sans-serif; font-size: 2rem; line-height: 1; height: 8px; overflow: hidden; color: var(--secondary, #017a9e); opacity: 0.25; margin-bottom: 2px; } /* visible quote-to-text gap: 8px */
.pt-card blockquote { margin: 0; }
.pt-card blockquote p { margin: 0; font-size: 0.875rem; line-height: 1.69; font-style: italic; color: var(--text-mid, #3a4a5c); }
.pt-author { display: flex; align-items: center; gap: 12px; margin-top: 1.25rem; }
.pt-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.pt-name { display: block; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.875rem; line-height: 1.45; color: var(--primary, #06377A); }
.pt-meta { display: block; font-size: 0.78rem; line-height: 1.4; color: var(--text-light, #62738a); }

@media (max-width: 1024px) {
 .pt-grid { column-gap: 24px; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); }
 .pt-media-overlay { padding: 0 1.5rem 1.5rem; }
}
@media (max-width: 900px) {
 .pt-grid { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
 .pt-media { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
 .pt-inner { max-width: 720px; }
}
@media (max-width: 600px) {
 .pt-header { margin-bottom: 2rem; }
 .pt-media { aspect-ratio: 4 / 5; }
 .pt-media-overlay { padding: 0 1.25rem 1.35rem; }
 .pt-card { padding: 18px 16px; }
}
@media (prefers-reduced-motion: reduce) {
 .pt-media-img, .pt-play { transition: none; }
 .pt-media:hover .pt-media-img { transform: none; }
}
