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

.tph-video-cards {
    width: 100%;
    padding: 8rem 0;
    position: relative;
    
    @media (max-width: 768px) {
        padding: 4rem 0;
    }
}

.tph-video-cards__container {
    max-width: 1408px;
    margin: 0 auto;
    padding: 0 2rem;
    
    @media (max-width: 768px) {
        padding: 0 1rem;
    }
}

.tph-video-cards__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    
    @media (max-width: 1024px) {
        grid-template-columns: repeat(2, 1fr);
    }
    
    @media (max-width: 768px) {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.tph-video-card {
    background-color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
    border-radius: 8px 0 8px 0;
    box-shadow: 8px 8px 20px 0px #97979740;
}

.tph-video-cards__header {
    margin-bottom: 4rem;
    text-align: center;
    
    @media (max-width: 768px) {
        margin-bottom: 2rem;
    }
}

.tph-video-cards__heading {
    color: #053b81;
    margin: 0 0 1rem 0;
}

.tph-video-cards__intro {
    max-width: 800px;
    margin: 0 auto;
}

.tph-video-cards__intro p {
    margin: 0;
}

.tph-video-card__content {
    padding: 3rem 3rem 6rem 3rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    
    @media (max-width: 768px) {
        padding: 2rem;
    }
}

.tph-video-card__title {
    color: #053b81;
    margin: 0 0 1rem 0;
    padding-bottom: 3rem;
}

.tph-video-card__description {
    margin: 0 0 1.5rem 0;
    flex-grow: 1;
}

.tph-video-card__description p {
    margin: 0;
}

.tph-video-card__image-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.tph-video-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tph-video-card__video-wrapper {
    width: 100%;
}

.tph-video-card__video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    cursor: pointer;
    overflow: hidden;
    border-radius: 0;
}

.tph-video-card__video-container.playing {
    cursor: default;
}

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

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

.tph-video-card__cta-button {
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.tph-video-card__play-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.tph-video-card__video-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.tph-video-card__video-embed iframe,
.tph-video-card__video-embed video {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Placeholder styles for editor */
.tph-video-cards--placeholder {
    padding: 2rem;
    background: #f0f0f0;
    border: 2px dashed #ccc;
    text-align: center;
}
