/* ================================================================
   What People Say About Our Leader Section CSS (Exact Design Match)
   ================================================================ */

body.public-home-layout .campaign-home-page .home-people-slot #people-say.psm-media-section {
    --psm-orange: #f36f21;
    --psm-orange-hover: #d95a0e;
    background: #fff8f5 !important;
    padding: 28px 0 !important;
    font-family: 'Inter', 'Noto Sans Devanagari', sans-serif;
}

body.public-home-layout .campaign-home-page .home-people-slot #people-say .psm-media-shell {
    max-width: 1720px;
    margin: 0 auto;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 30px !important;
}

/* HEADER TYPOGRAPHY */
.psm-sub-kicker {
    color: #f36f21;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 8px;
}

.line-decorator {
    display: inline-block;
    width: 35px;
    height: 2px;
    background: #f36f21;
}

.psm-main-title {
    color: #0f172a;
    font-size: 36px;
    font-weight: 850;
    margin-bottom: 6px;
}

.psm-sub-subtitle {
    color: #64748b;
    font-size: 16px;
    margin-bottom: 15px;
}

.psm-title-bar-center {
    width: 50px;
    height: 3px;
    background: #f36f21;
    margin: 0 auto 20px;
    border-radius: 2px;
}

/* NAVIGATION ARROWS TOP RIGHT */
.psm-header-container {
    position: relative;
}

.psm-nav-arrows { display: none; }

.psm-arrow-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(243, 111, 33, 0.12);
}

.psm-arrow-btn:hover {
    border-color: #f36f21;
    color: #f36f21;
    box-shadow: 0 4px 12px rgba(243, 111, 33, 0.15);
}

/* CAROUSEL CONTAINER — THE SCROLL VIEWPORT */
.psm-carousel-wrap {
    position: relative;
    overflow: visible;
}

.psm-carousel-edge-controls {
    position: absolute;
    z-index: 4;
    top: 50%;
    right: 0;
    left: 0;
    height: 0;
    padding: 0;
    pointer-events: none;
    transform: translateY(-50%);
}

.psm-carousel-edge-controls .psm-arrow-btn,
.psm-people-actions .psm-share-voice-btn { pointer-events: auto; }
.psm-people-actions{position:absolute;z-index:6;top:-108px;right:0;display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.psm-see-more-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;padding:0 16px;border-radius:9px;background:#f45112;color:#fff;font-size:12px;font-weight:800;text-decoration:none;white-space:nowrap;box-shadow:0 5px 13px rgba(244,81,18,.2);transition:background .2s ease,transform .2s ease,box-shadow .2s ease}
.psm-see-more-link:hover{background:#d94008;color:#fff;text-decoration:none;transform:translateY(-1px);box-shadow:0 7px 17px rgba(244,81,18,.3)}

.psm-carousel-edge-controls .psm-arrow-prev,
.psm-carousel-edge-controls .psm-arrow-next {
    position: absolute;
    top: 0;
    width: 42px;
    height: 42px;
    transform: translateY(-50%);
}

.psm-carousel-edge-controls .psm-arrow-prev { left: -14px; }
.psm-carousel-edge-controls .psm-arrow-next { right: -14px; }

/* THIS IS THE ACTUAL SCROLL CONTAINER — JS scrollTo() targets this */
.psm-carousel {
    overflow-x: scroll;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    user-select: none;
    scroll-snap-type: x mandatory;
    /* Hide scrollbar on all browsers */
    scrollbar-width: none;          /* Firefox */
    -ms-overflow-style: none;       /* IE 10+ */
}

.psm-carousel::-webkit-scrollbar {
    display: none;                  /* Chrome/Safari */
}

/* TRACK — flex row of cards */
.psm-carousel-track {
    display: flex;
    gap: 20px;
}

.psm-card-item {
    flex: 0 0 280px;       /* fixed card width — scroll works by revealing hidden cards */
    min-width: 0;
    scroll-snap-align: start;
}

@media (min-width: 1400px) {
    .psm-card-item { flex: 0 0 300px; }
}

@media (max-width: 992px) {
    .psm-card-item { flex: 0 0 260px; }
}

@media (max-width: 768px) {
    .psm-card-item { flex: 0 0 85vw; }
}

.psm-card-inner {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.psm-card-inner:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.psm-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    touch-action: manipulation;
}

.psm-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.psm-quote-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #f36f21;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    pointer-events: none;
}

.psm-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.psm-play-btn {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.92);
    color: #f36f21;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    padding-left: 3px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

.psm-card-media:hover .psm-play-btn {
    transform: scale(1.1);
    background: #ffffff;
}

.psm-duration-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.8);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    pointer-events: none;
}

.psm-card-body {
    padding: 16px;
    position: relative;
    z-index: 1;
}

.psm-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.psm-person-name {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.psm-star-rating {
    color: #f59e0b;
    font-size: 11px;
}

.psm-person-location {
    font-size: 12px;
    color: #64748b;
}

/* SHARE YOUR VOICE CTA BANNER */
.psm-cta-banner {
    background: #fff1e8;
    border: 1px solid #ffd8bf;
    border-radius: 16px;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    touch-action: manipulation;
}

.psm-cta-content {
    display: flex;
    align-items: center;
    gap: 18px;
}

.psm-cta-icon-box {
    width: 54px;
    height: 54px;
    background: #ffffff;
    color: #f36f21;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(243, 111, 33, 0.12);
}

.psm-cta-text h4 {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 2px;
}

.psm-cta-text p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.psm-share-voice-btn {
    background: #f36f21;
    color: #ffffff;
    font-weight: 700;
    font-size: 12px;
    padding: 9px 14px;
    border-radius: 999px;
    border: none;
    transition: all 0.2s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(243, 111, 33, 0.12);
}

.psm-people-actions .psm-share-voice-btn {
    position: relative;
    top: auto;
    right: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    box-shadow: 0 0 0 3px rgba(243,111,33,.08), 0 7px 18px rgba(243,111,33,.28);
}

.psm-share-voice-btn:hover {
    background: #d95a0e;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(243,111,33,.12), 0 9px 22px rgba(243,111,33,.34);
}

.psm-card-inner,
.psm-card-body,
.psm-cta-content,
.psm-arrow-btn {
    position: relative;
    z-index: 1;
}

@media (max-width: 767px) {
    body.public-home-layout .campaign-home-page .home-people-slot #people-say.psm-media-section {
        padding: 24px 0 !important;
    }

    body.public-home-layout .campaign-home-page .home-people-slot #people-say .psm-media-shell {
        padding: 0 16px !important;
    }

    .psm-sub-kicker {
        gap: 10px;
        font-size: 11px;
    }

    .line-decorator {
        width: 24px;
    }

    .psm-main-title {
        font-size: 27px;
        line-height: 1.12;
    }

    .psm-sub-subtitle {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .psm-title-bar-center {
        margin-bottom: 12px;
    }

    .psm-arrow-btn {
        width: 38px;
        height: 38px;
    }

    .psm-carousel-edge-controls .psm-arrow-prev { left: -10px; }
    .psm-carousel-edge-controls .psm-arrow-next { right: -10px; }
    .psm-carousel-edge-controls .psm-arrow-btn { width: 34px; height: 34px; }
    .psm-people-actions{top:-94px;right:0;gap:6px}.psm-see-more-link{min-height:30px;padding:0 11px;border-radius:7px;font-size:10px}.psm-people-actions .psm-share-voice-btn{min-height:28px;padding:6px 9px;font-size:10px}

    .psm-card-body {
        padding: 13px;
    }
}

/* COMPACT CENTER LIGHTBOX POPUP */
.people-say-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

/* Backdrop sits behind player but inside lightbox */
.people-say-lightbox .psm-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(6px);
    cursor: pointer;
    z-index: 0;
}

.people-say-lightbox .psm-player-wrap {
    position: relative;
    z-index: 1;
}

/* Body scroll lock when lightbox is open */
body.psm-lb-open {
    overflow: hidden;
}

.people-say-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.people-say-lightbox .psm-player-wrap {
    position: relative;
    width: 90%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.people-say-lightbox video,
.people-say-lightbox iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.people-say-lightbox .psm-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 2;
}

.people-say-lightbox .psm-close:hover {
    background: #f36f21;
}

/* FIX BACKDROP DIMMING & DEACTIVATION FOR PEOPLE SAY MODALS */
#peopleSayCommentModal,
#peopleSayShareModal,
#peopleSayUploadModal,
#peopleSayAccessModal {
    z-index: 1060 !important;
}

.psm-modal-icon-badge {
    width: 38px;
    height: 38px;
    background: #fff1e8;
    color: #f36f21;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

#peopleSayUploadModal .modal-content {
    border-radius: 16px !important;
    border: none !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}

#peopleSayUploadModal .form-control {
    border-color: #cbd5e1;
    border-radius: 8px;
}

#peopleSayUploadModal .form-control:focus {
    border-color: #f36f21;
    box-shadow: 0 0 0 3px rgba(243, 111, 33, 0.15);
}

/* Isolated, compact People Says player. It cannot inherit the large video-gallery modal rules. */
.people-say-lightbox{z-index:2147483000!important;padding:18px!important}.people-say-lightbox .psm-video-dialog{position:relative;z-index:2;width:min(720px,calc(100vw - 32px));max-height:calc(100dvh - 36px);overflow:hidden;border:1px solid rgba(255,255,255,.18);border-radius:16px;background:#101419;box-shadow:0 26px 80px rgba(0,0,0,.55);transform:translateY(12px) scale(.97);transition:transform .22s cubic-bezier(.2,.8,.2,1)}.people-say-lightbox.is-open .psm-video-dialog{transform:translateY(0) scale(1)}.people-say-lightbox .psm-video-frame{width:100%;aspect-ratio:16/9;background:#000}.people-say-lightbox .psm-video-frame iframe,.people-say-lightbox .psm-video-frame video{display:block;width:100%;height:100%;border:0;object-fit:contain}.people-say-lightbox .psm-video-close{position:absolute;z-index:4;top:10px;right:10px;display:grid;place-items:center;width:36px;height:36px;border:1px solid rgba(255,255,255,.3);border-radius:50%;background:rgba(10,14,20,.78);color:#fff;font-size:16px;transition:background .2s ease,transform .2s ease}.people-say-lightbox .psm-video-close:hover{background:#f45112;transform:scale(1.06)}.people-say-lightbox .psm-video-footer{padding:11px 14px 13px;background:#101419;color:#fff}.people-say-lightbox .psm-video-footer h3{margin:0 0 9px;overflow:hidden;color:#fff;font-size:15px;font-weight:800;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.people-say-lightbox .psm-video-yt-bar{display:flex;align-items:center;justify-content:space-between;gap:12px}.people-say-lightbox .psm-video-yt-meta{font-size:12px;color:#cbd5e1}.people-say-lightbox .psm-video-yt-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.people-say-lightbox .yt-action-btn{display:inline-flex;align-items:center;gap:5px;min-height:31px;padding:0 9px;border:1px solid rgba(255,255,255,.17);border-radius:7px;background:#20262e;color:#fff;font-size:11px;font-weight:700;text-decoration:none}.people-say-lightbox .yt-action-btn:hover{background:#f45112;color:#fff}.psm-carousel{scroll-snap-type:none!important}@media(max-width:575.98px){.people-say-lightbox{padding:10px!important}.people-say-lightbox .psm-video-dialog{width:calc(100vw - 20px);border-radius:12px}.people-say-lightbox .psm-video-footer h3{font-size:13px}.people-say-lightbox .psm-video-yt-bar{align-items:flex-start;flex-direction:column}.people-say-lightbox .psm-video-yt-actions{justify-content:flex-start}}
