/**

 * Xuan Cuong Handicraft - Module: workshop.css

 * Workshop & Heritage Story, VTV Feature & Video Popup Modal

 */


/* ==========================================================================
   WORKSHOP & FAMILY HERITAGE (#EFF3DD)
   ========================================================================== */
.section-workshop-family {
    background: url("../../images/noise-bg-beige.png");
    padding: 6rem 0;
}

.workshop-header {
    margin-bottom: 3.5rem;
}

.workshop-title {
    color: #1A1A1A;
    max-width: 800px;
    white-space: pre-line;
}

.workshop-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
    align-items: center;
    width: 100%;
}

.workshop-photo-col {
    width: 100%;
}

.workshop-photo-wrap {
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.workshop-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.workshop-story-card {
    background-color: #FFFFFF;
    height: 750px;
    padding: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.story-p1,
.story-p2,
.workshop-story-card p {
    font-weight: 500;
    font-style: normal;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 0;
    color: var(--xc-text-link);
    margin-bottom: 1.5rem;
}

.story-p2 {
    margin-bottom: 2rem;
}

.btn-story-red {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background-color: var(--xc-primary);
    color: #FFFFFF;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 1.125rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-story-red:hover {
    background-color: var(--xc-primary-light);
    color: #FFFFFF;
    transform: translateX(4px);
}


/* ==========================================================================
   FIGMA VER 2 NEW COMPONENTS & SECTIONS
   ========================================================================== */

/* 1. Workshop Story & VTV Feature (Node 4259:5627) */
.section-workshop-vtv {
    background-image: url("../../images/noise-bg-beige.png");
    padding: 90px 0;
    position: relative;
}

.workshop-vtv-header {
    margin-bottom: 40px;
    text-align: left;
}

.workshop-vtv-title {
    color: var(--text-black, #1E262B);
    text-align: left;
    /* heading-title */

    font-size: var(--fs-heading);
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-top: 0.4rem;
}

.workshop-vtv-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
}

.workshop-video-wrapper {
    position: relative;
    overflow: hidden;
    max-height: 600px;
}

.workshop-video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.btn-video-play-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 4;
}

.btn-video-play-pulse:hover {
    transform: translate(-50%, -50%) scale(1.1);
    filter: brightness(1.15);
}

.btn-video-play-pulse .play-video-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
    border-radius: 50%;
}

/* ==========================================================================
   VIDEO POPUP MODAL (YouTube Embed) - Minimalist & Border-only
   ========================================================================== */
.xc-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999999;
    display: none;
    pointer-events: none;
    align-items: center;
    justify-content: center;
    padding: 30px 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
}

.xc-video-modal.is-active {
    display: flex;
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.xc-video-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 9, 8, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
}

.xc-video-modal-dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1040px;
    background: #000000;
    border-radius: 0;
    border: 1px solid rgba(214, 191, 137, 0.45);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.9);
    transform: scale(0.96);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: visible;
}

.xc-video-modal.is-active .xc-video-modal-dialog {
    transform: scale(1);
}

.xc-video-modal-close {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(50%, -50%);
    width: 32px;
    height: 32px;
    background: var(--xc-primary, #881111);
    color: white;
    border: 1px solid var(--brown, #534833);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    z-index: 20;
    transition: background-color 0.25s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.xc-video-modal-close:hover {
    background: var(--xc-primary-light, #a81c1c);
    color: #FFFFFF;
    transform: translate(50%, -50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65);
}

.xc-video-modal-close svg {
    display: block;
    width: 20px;
    height: 20px;
}

.xc-video-modal-body {
    width: 100%;
    line-height: 0;
    background: #000000;
    border-radius: 0;
}

.xc-video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000000;
    border-radius: 0;
}

.xc-video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
}

@media (max-width: 768px) {
    .xc-video-modal {
        padding: 24px 20px;
    }

    .xc-video-modal-close {
        width: 38px;
        height: 38px;
    }

    .xc-video-modal-close svg {
        width: 18px;
        height: 18px;
    }
}



/* Padding phải = --edge-gutter để chữ thẳng mép phải container (240px ở màn 1920px) */
.workshop-story-box {
    padding: 80px var(--edge-gutter) 80px 80px;
    background: #FFF;
    min-height: 752px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.workshop-story-box .story-lead {
    color: var(--xc-text-black, #1E262B);
    font-size: var(--fs-body);
    font-weight: 500;
    line-height: 28px;
    margin-bottom: 32px;
}

.workshop-story-box .story-sub {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--xc-muted-text);
    font-style: italic;
}

.story-header {
    display: flex;
    flex-direction: column;
}

.story-action-row {
    margin-bottom: 5rem;
}