/**
 * Block Name: TPH - Hero Video
 * Styles for the Hero Video block
 */

.tph-hero-video {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 20rem 0 8rem 0;
    position: relative;
    background-color: #fff;
    min-height: 600px;
    @media (max-width: 768px) {
        padding: 4rem 0;
        min-height: auto;
    }
}

.tph-hero-video__decorative-image {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    z-index: 1;
    max-width: 400px;
    opacity: 0.9;
    
    @media (max-width: 768px) {
        display: none;
    }
}

.tph-hero-video__decorative-img {
    width: 100%;
    height: auto;
    display: block;
}

.tph-hero-video__container {
    max-width: 1408px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 2;
    
    @media (max-width: 768px) {
        padding: 0 1rem;
    }
}

.tph-hero-video__text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
    
    @media (max-width: 768px) {
        margin-bottom: 3rem;
    }
}

.tph-hero-video__title {
    color: #053b81;
    margin: 0 0 2rem 0;
    font-size: 4.8rem;
    font-weight: 600;
    line-height: 120%;
    
    @media (max-width: 768px) {
        font-size: 3.2rem;
        margin-bottom: 1.5rem;
    }
}

.tph-hero-video__content {
    color: #050505;
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 180%;
    letter-spacing: 0.25px;
    
    @media (max-width: 768px) {
        font-size: 1.6rem;
        line-height: 160%;
    }
}

.tph-hero-video__content p {
    margin: 0 0 1.5rem 0;
    color: #050505;
}

.tph-hero-video__content p:last-child {
    margin-bottom: 0;
}

.tph-hero-video__video-wrapper {
    width: 100%;
    position: relative;
    margin-top: 4rem;
}

.tph-hero-video__video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.tph-hero-video__video-container.playing {
    cursor: default;
}

.tph-hero-video__video-container.playing .tph-hero-video__placeholder,
.tph-hero-video__video-container.playing .tph-hero-video__play-button {
    display: none;
}

.tph-hero-video__placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.tph-hero-video__placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tph-hero-video__play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    background-color: #053b81;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s, transform 0.3s;
    font-family: 'Nunito Sans', sans-serif;
}

.tph-hero-video__play-button:hover {
    background-color: #04345c;
    box-shadow: 0 8px 32px 0 rgba(7,71,138,0.18);
    transform: translate(-50%, -50%) translateY(-2px);
}

.tph-hero-video__play-button:active {
    transform: translate(-50%, -50%) translateY(0);
}

.tph-hero-video__play-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.tph-hero-video__video-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.tph-hero-video__video-embed iframe,
.tph-hero-video__video-embed video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tph-hero-video__play-button {
        padding: 1rem 2rem;
        font-size: 1.4rem;
    }
    
    .tph-hero-video__play-icon {
        width: 20px;
        height: 20px;
    }
}
