/* People Stories Interactive Component */
.people-stories-interactive-wrapper {
    background: var(--color-white);
    padding: 370px 0 40px;
}

.people-stories-interactive-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Initial State */
.people-stories-initial-state {
    text-align: center;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.people-stories-initial-state.fade-out {
    opacity: 0;
}

/* Typography */
.people-stories-headline {
    font-size: 3.0rem;    /* 30px */
    line-height: 4.0rem;  /* 40px */
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--color-dark-gray);
    margin-bottom: 24px;
}

.people-stories-body {
    font-size: var(--font-size-body);
    line-height: var(--font-lh-body);
    font-family: 'Poppins', sans-serif;
    color: var(--color-medium-gray);
    margin-bottom: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Image Section */
.people-stories-image-section {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.people-stories-main-image {
    width: 100%;
    margin: 0;
}

.people-stories-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Clickable Areas */
.people-stories-clickable-areas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.people-stories-click-target {
    position: absolute;
    height: 100%;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
    /* Width and left position will be set inline by PHP */
}

/* Remove hardcoded positioning - now handled dynamically */
/* Legacy classes kept for backward compatibility if needed */
.people-stories-click-target-1 {
    left: 0%;
    width: 25%;
}

.people-stories-click-target-2 {
    left: 25%;
    width: 25%;
}

.people-stories-click-target-3 {
    left: 50%;
    width: 25%;
}

.people-stories-click-target-4 {
    left: 75%;
    width: 25%;
}

/* Nameplate Hover Effects */
.people-stories-nameplate-hover {
    position: absolute;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 5;
}

.people-stories-click-target:hover .people-stories-nameplate-hover {
    opacity: 1;
    transform: translateY(0);
}

.people-stories-nameplate-bg {
    position: relative;
    width: 200px;
    height: auto;
    margin: 0;
}

.people-stories-nameplate-bg img {
    width: 100%;
    height: auto;
    display: block;
}

.people-stories-nameplate-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;
}

.people-stories-person-name {
    font-size: 3.0rem;
    line-height: 3.0rem;
    font-weight: 600;
    color: var(--color-white);
    text-transform: uppercase;
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;
}

/* Position nameplates differently for each person */
.people-stories-click-target-1 .people-stories-nameplate-hover {
    top: 33%;
    left: 10%;
}

.people-stories-click-target-2 .people-stories-nameplate-hover {
    top: 33%;
    left: 10%;
}

.people-stories-click-target-3 .people-stories-nameplate-hover {
    top: 33%;
    right: 12%;
}

.people-stories-click-target-4 .people-stories-nameplate-hover {
    top: 33%;
    right: 24%;
}

/* Secondary State */
.people-stories-secondary-state {
    opacity: 0;
    display: none;
    transition: opacity 0.5s ease-in-out;
}

.people-stories-secondary-state.fade-in {
    opacity: 1;
    display: block;
}

/* Profile Navigation Icons */
.people-stories-profile-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 100px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
}

.people-stories-profile-nav-icon {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.people-stories-profile-nav-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 133px;
    height: 133px;
    border-radius: 50%;
    background-color: var(--color-blue);
    transition: all 0.3s ease;
    z-index: 1;
}

.people-stories-profile-nav-icon:hover::before {
    background-color: var(--color-red);
}

.people-stories-profile-nav-icon.active::before {
    background-color: var(--color-yellow);
}

.people-stories-profile-nav-icon.active:hover::before {
    background-color: var(--color-yellow);
}

.people-stories-profile-icon {
    position: relative;
    z-index: 2;
    margin: 0 0 16px 0;
    border-radius: 50%;
    overflow: hidden;
    width: 133px;
    height: 133px;
}

.people-stories-profile-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.people-stories-profile-nav-name {
    font-size: 2.0rem;     /* 20px */
    line-height: 2.4rem;   /* 24px */
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    color: var(--color-dark-gray);
    text-align: center;
    margin: 0;
    z-index: 2;
    position: relative;
    text-transform: uppercase;
}

/* Profile Content Wrapper */
.people-stories-profile-content-wrapper {
    position: relative;
    max-width: 1194px;
    margin: 0 auto;
}

/* Profile Disclaimer */
.people-stories-profile-disclaimer {
    position: absolute;
    bottom: -40px;
    left: 33.5%; /* Approximately 400px from a 1194px container */
    font-size: 1.0rem; /* 10px */
    line-height: 1.2rem; /* 12px */
    font-family: 'Poppins', sans-serif;
    color: var(--color-nav-gray);
    margin: 0;
    white-space: nowrap;
    z-index: 5;
}

/* Initial State Disclaimer (Desktop) */
.people-stories-initial-disclaimer {
    text-align: center;
    font-size: 1.0rem; /* 10px */
    line-height: 1.2rem; /* 12px */
    font-family: 'Poppins', sans-serif;
    color: var(--color-nav-gray);
    margin: 20px 0 0;
}

/* Mobile Disclaimer */
.people-stories-mobile-disclaimer {
    text-align: center;
    font-size: 1.0rem; /* 10px */
    line-height: 1.2rem; /* 12px */
    font-family: 'Poppins', sans-serif;
    color: var(--color-nav-gray);
    margin: 20px 0 0;
    padding: 0 20px;
}

/* Close Button */
.people-stories-close-button {
    position: absolute;
    top: 20px;
    right: 40px;
    z-index: 10;
    cursor: pointer;
    transition: opacity 0.3s ease;
    margin: 0;
}

.people-stories-close-button:hover {
    opacity: 0.7;
}

.people-stories-close-button img {
    width: 22px;
    height: 22px;
}

/* Navigation Arrows */
.people-stories-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    transition: opacity 0.3s ease;
    margin: 0;
}

.people-stories-nav-arrow:hover {
    opacity: 0.7;
}

.people-stories-nav-arrow-left {
    left: -60px;
}

.people-stories-nav-arrow-right {
    right: -60px;
}

.people-stories-nav-arrow.hidden {
    display: none;
}

/* Profile Background */
.people-stories-profile-background {
    width: 1194px;
    height: 585px;
    margin: 0 auto;
    display: block;
    position: relative;
}

.people-stories-profile-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Profile Content */
.people-stories-profile-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    padding: 40px;
    box-sizing: border-box;
}

/* Profile Main Image */
.people-stories-profile-main-image {
    width: 530px;
    position: absolute;
    left: -75px;
    bottom: -160px;
}

.people-stories-profile-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Profile Text Content */
.people-stories-profile-text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 60px 6% 0 38%;
}

.people-stories-profile-name {
    font-size: 12.0rem;    /* 120px */
    line-height: 12.0rem;   /* 30px */
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--color-white);
    margin: 0 auto 14px;
    text-transform: uppercase;
}

.people-stories-profile-description {
    font-size: var(--font-size-body);
    line-height: var(--font-lh-body);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--color-white);
    margin: 0 auto 40px;
    text-align: center;
}

/* Profile Quote Section */
.people-stories-profile-quote-section {
    position: relative;
    padding: 25px 0;
    border-top: 2px solid var(--color-yellow);
    border-bottom: 2px solid var(--color-yellow);
}

.people-stories-profile-quote {
    font-size: 3.0rem;     /* 30px */
    line-height: 4.0rem;   /* 40px */
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--color-yellow);
    margin: 0;
    text-align: center;
    padding: 0;
    position: relative;
    width: 110%;
    left: 50%;
    transform: translateX(-50%);
}

/* Quote Icons */
.people-stories-quote-icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 8px 16px;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.people-stories-quote-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 32px;
    background-color: var(--color-red);
    border-radius: 50%;
}

.people-stories-quote-opening {
    top: -16px;
}

.people-stories-quote-closing {
    bottom: -16px;
}

.people-stories-quote-icon img {
    /* Use SVG's natural aspect ratio: 15.947×13.649 */
    width: 29px !important;
    height: 25px !important;
    max-width: 29px;
    max-height: 25px;
    min-width: 29px;
    min-height: 25px;
    position: relative;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

/* Video Section Container */
.people-stories-video-section {
    margin-top: 40px;
}

.people-stories-video-section [class*="profile-video-"] {
    margin: 0 auto;
    opacity: 1;
    transition: opacity 0s ease;
}

/* Video Placeholder */
.people-stories-video-placeholder {
    max-width: 1194px;
    margin: 0 auto;
    padding: 40px 0;
    text-align: center;
    background-color: var(--color-background-gray);
    border: 2px dashed var(--color-medium-gray);
}

.people-stories-video-placeholder-text {
    font-size: var(--font-size-body);
    color: var(--color-medium-gray);
    margin: 0;
}

/* Video Player Section */
.people-stories-video-player-section {
    max-width: 1194px;
    margin: 0 auto;
    padding: 40px 0;
    text-align: center;
}

.people-stories-video-player-section .people-stories-video-placeholder-text {
    font-size: var(--font-size-body);
    color: var(--color-dark-gray);
    margin: 0 0 20px 0;
    font-weight: 600;
}

/* Responsive Video Container */
.people-stories-responsive-video-container {
    position: relative;
    width: 100%;
    margin: -80px auto 0;
    overflow: hidden;
}

.people-stories-responsive-video-container::before {
    content: '';
    display: block;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.people-stories-responsive-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Video Poster Functionality */
.people-stories-video-poster-container {
    position: relative;
    width: 100%;
    cursor: pointer;
}

.people-stories-video-poster-container::before {
    content: '';
    display: block;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.people-stories-video-poster-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.5s ease;
}

.people-stories-video-poster-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.people-stories-video-poster-container.playing iframe {
    display: block !important;
}

.people-stories-video-error {
    font-size: var(--font-size-body);
    color: var(--color-red);
    margin: 20px 0;
    padding: 20px;
    background: var(--color-background-gray);
    border-radius: 8px;
    border-left: 4px solid var(--color-red);
}

/* Legacy placeholder (to be removed) */
.people-stories-secondary-placeholder {
    font-size: var(--font-size-body);
    line-height: var(--font-lh-body);
    text-align: center;
    color: var(--color-medium-gray);
    padding: 60px 20px;
}

/* Responsive Design */
@media screen and (max-width: 1599px) {
    .people-stories-interactive-container {
        max-width: 1200px;
    }
    
    .people-stories-profile-content-wrapper {
        max-width: 1000px;
    }
    
    .people-stories-profile-background {
        width: 1000px;
        height: 490px; /* Maintains aspect ratio */
    }
    
    .people-stories-profile-main-image {
        width: 480px; /* Proportionally scaled from 570px */
        left: -90px; /* Adjusted positioning */
        bottom: -151px;
    }
    
    .people-stories-profile-name {
        font-size: 10.0rem; /* Scaled from 12.0rem */
        line-height: 10.0rem;
    }
    .people-stories-profile-text-content{
        padding-top: 0;
    }
    .people-stories-profile-quote{
        font-size: 2.5rem;
        line-height: 3.5rem;
    }
}

@media screen and (max-width: 1366px) {
    .people-stories-interactive-container {
        max-width: 1000px;
    }
    
    .people-stories-profile-content-wrapper {
        max-width: 900px;
    }
    
    .people-stories-profile-background {
        width: 900px;
        height: 440px;
    }
    
    .people-stories-profile-main-image {
        width: 430px;
        left: -80px;
        bottom: -146px;
    }
    
    .people-stories-profile-name {
        font-size: 9.0rem;
        line-height: 9.0rem;
    }
    
    .title-container {
        margin-bottom: 0;
    }

    .people-stories-profile-quote{
        font-size: 2.2rem;
        line-height: 3.2rem;
    }
}

@media screen and (max-width: 1023px) {

    /* Hide desktop interactive elements */
    .people-stories-initial-state,
    .people-stories-secondary-state,
    .people-stories-clickable-areas,
    .people-stories-nav-arrow,
    .people-stories-close-button {
        display: none !important;
    }

    .people-stories-interactive-wrapper {
        padding: 350px 0 0;
    }

    .people-stories-interactive-container {
        max-width: 100%;
        padding: 0;
    }

    /* Headline styling */
    .people-stories-headline {
        padding: 0 70px;
        margin-bottom: 0;
        text-align: center;
        font-size: 2.0rem;
        line-height: 2.6rem;
    }

    /* Main image section */
    .people-stories-image-section {
        margin-bottom: 60px;
    }

    /* Mobile Profile List */
    .people-stories-mobile-profiles {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .people-stories-mobile-profile {
        padding: 60px 20px;
        text-align: center;
    }

    /* Alternate background for even profiles */
    .people-stories-mobile-profile:nth-child(even) {
        background: var(--color-blue-gradient-extended-bottom);
    }

    /* Profile navigation icon adjustments */
    .people-stories-profile-nav-icon {
        margin: 0 auto;
        pointer-events: none;
    }

    .people-stories-profile-nav-icon::before {
        background-color: var(--color-blue);
    }

    /* Remove background for even profiles */
    .people-stories-mobile-profile:nth-child(even) .people-stories-profile-nav-icon::before {
        background-color: var(--color-bg-gray);
    }

    /* Profile content adjustments */
    .people-stories-profile-name {
        font-size: 4.3rem;
        line-height: 7.9rem;
        margin-bottom: 0;
        color: var(--color-dark-gray);
    }

    .people-stories-mobile-profile:nth-child(even) .people-stories-profile-name {
        color: var(--color-white);
    }

    .people-stories-profile-description {
        font-size: var(--font-size-body);
        line-height: var(--font-lh-body);
        margin: 0 50px 30px;
        color: var(--color-dark-gray);
    }

    .people-stories-mobile-profile:nth-child(even) .people-stories-profile-description {
        color: var(--color-white);
    }

    /* Mobile Video section adjustments */
    .people-stories-video-section {
        margin: 30px auto;
        max-width: 100%;
        padding: 0 20px;
    }

    /* Mobile Video Poster Enhancements */
    .people-stories-mobile .people-stories-video-poster-container {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.2);
        user-select: none;
        touch-action: manipulation;
    }

    .people-stories-mobile .people-stories-video-poster-container iframe {
        display: none;
        opacity: 0;
    }

    .people-stories-mobile .people-stories-video-poster-container.playing iframe {
        display: block !important;
        opacity: 1 !important;
    }

    .people-stories-mobile .people-stories-video-poster-container.playing .people-stories-video-poster-image {
        opacity: 0;
    }

    /* Quote section adjustments */


    .people-stories-mobile-profile .people-stories-profile-quote-section{
        position: relative;
        padding: 33px 0;
        border: none;
    }

    .people-stories-mobile-profile .people-stories-profile-quote-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-top: 1px solid var(--color-nav-gray);
        border-bottom: 1px solid var(--color-nav-gray);
        -webkit-mask-image: linear-gradient(to right, 
            transparent 0%, 
            transparent 30%, 
            black 30%, 
            black 70%, 
            transparent 70%, 
            transparent 100%
        );
        mask-image: linear-gradient(to right, 
            transparent 0%, 
            transparent 30%, 
            black 30%, 
            black 70%, 
            transparent 70%, 
            transparent 100%
        );
        pointer-events: none;
    }

    /* Even profiles - white borders */
    .people-stories-mobile-profile:nth-child(even) .people-stories-profile-quote-section::before {
        border-color: var(--color-white);
    }

    .people-stories-profile-quote {
        font-size: 2.2rem;
        line-height: 3.0rem;
        border-left: none;
    }

    .people-stories-mobile-profile:nth-child(even) .people-stories-profile-quote {
        color: var(--color-white);
    }

    .people-stories-mobile-profile:nth-child(even) .people-stories-profile-quote-section {
        border-color: var(--color-white);
    }

    /* Quote section adjustments for mobile */
    .people-stories-mobile-profile .people-stories-profile-quote-section {
        margin: 40px auto 0;
        max-width: 445px;
        padding: 30px 0;
        border-color: var(--color-nav-gray);
    }

    .people-stories-mobile-profile .people-stories-profile-quote {
        color: var(--color-nav-gray);
    }

    .people-stories-mobile-profile .people-stories-quote-icon::before {
        background-color: var(--color-white);
    }

    .people-stories-mobile-profile .people-stories-quote-icon img {
        filter: invert(57%) sepia(98%) saturate(1642%) hue-rotate(165deg) brightness(95%) contrast(91%);
        width: 28px !important;
        height: 24px !important;
        max-width: 28px;
        max-height: 24px;
        min-width: 28px;
        min-height: 24px;
    }

    /* Alternate (even) profile quote styling */
    .people-stories-mobile-profile:nth-child(even) .people-stories-profile-quote-section {
        border-color: var(--color-white);
    }

    .people-stories-mobile-profile:nth-child(even) .people-stories-profile-quote {
        color: var(--color-white);
    }

    .people-stories-mobile-profile:nth-child(even) .people-stories-quote-icon::before {
        background-color: var(--color-blue-dark);
    }

    .people-stories-mobile-profile:nth-child(even) .people-stories-quote-icon img {
        filter: brightness(0) invert(1);
    }
}

/* Hide mobile version above 1023px */
@media screen and (min-width: 1024px) {
    .people-stories-mobile {
        display: none;
    }
} 

@media screen and (max-width: 767px) {

    .people-stories-profile-quote {
        font-size: 1.6rem;
        line-height: 2.2rem;
        padding: 0 35px;
    }
}