/* 변수 루트 스타일 */
:root {
    --max-width-desktop: 1920px;
    --max-width-content: 1200px;
    --max-width-info: 800px;
    --color-main: #0050ff;
    --color-bg: #fff;
    --color-border: #ddd;
    --color-text-main: #666;
    --color-text-sub: #999;
    --color-text-title: #333;
    --color-white: #fff;
    --color-overlay: rgba(50,50,50,0.7);
    --font-size-title: 24px;
    --font-size-subtitle: 16px;
    --font-size-news-title: 20px;
    --font-size-news-date: 16px;
    --font-size-video-title: 18px;
    --font-size-discount: 24px;
    --font-weight-light: 200;
    --font-weight-bold: bold;
}

/* 레이아웃 컨테이너 */
.container {
    padding: 87px 20px;
}
.subBody {
    padding-top: 0 !important;
}
.promotion-header,
.promotion-info {
    width: 100%;
    max-width: var(--max-width-desktop);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.promotion-header {
    height: 640px;
}

.promotion-info {
    padding: 70px 0 80px;
    height: auto;
}

/* 상단 포스터, 정보 영역 배경 */
.header-bg,
.info-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.promotion-header .bg-header-01 {
    background-image: url('/skin/image/content/community/dreamhigh/bg-header-01.png');
}

.promotion-info .bg-header-02 {
    background-image: url('/skin/image/content/community/dreamhigh/bg-header-02.png');
}

/* 상단 포스터 영역 */
.header-content,
.info-content {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}
.info-content .sub-text-container :is(.desktop, .tablet) {
    margin: 29px auto 0;
}
.header-elements {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: var(--max-width-content);
    margin: 0 auto;
    padding: 0;
}

/* 상단 정보 영역 */
.silhouette-container {
    position: absolute;
    left: 50%;
    top: 55%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.silhouette-image {
    width: auto;
    height: 480px;
    max-width: 100%;
    object-fit: contain;
}

.text-container {
    position: absolute;
    top: 40px;
    right: 0;
    z-index: 4;
}

.text-image {
    width: auto;
    height: 120px;
    max-width: 100%;
    object-fit: contain;
}

/* 정보 컨텐츠 영역 */
.info-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-content :is(.title-container, .sub-text-container, .schedule-container) img {
    margin: 0 auto;
}

.info-content :is(.title-container, .sub-text-container, .schedule-container) :is(.tablet, .mobile) {
    display: none;
}

.info-content :is(.title-container, .sub-text-container, .schedule-container) .desktop {
    display: block;
}

.info-content .sub-text-container:nth-child(2) {
    margin-top: 20px;
}

.info-elements {
    text-align: center;
    width: 100%;
    max-width: var(--max-width-info);
}

/* 할인 문의 영역 */
.star-container {
    margin: 40px 0;
}

.discount-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 40px;
}

.discount-title {
    width: fit-content;
    font-weight: var(--font-weight-light);
    font-size: var(--font-size-discount);
    padding: 16px 24px;
    color: var(--color-white);
    border: 1px solid var(--color-white);
}

.discount-text {
    display: flex;
    column-gap: 26px;
    font-weight: var(--font-weight-light);
    font-size: var(--font-size-discount);
    color: var(--color-white);
}
.discount-text span,
.discount-text a,
.discount-text a:link,
.discount-text a:visited {
    color: var(--color-white) !important;
    text-decoration: none;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 26px;
}

.section-title {
    font-size: var(--font-size-title);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-main);
}

.section-subtitle {
    font-size: var(--font-size-subtitle);
    color: var(--color-text-sub);
    text-align: right;
    margin: 0;
}

/* 영상 영역 */
.video-section {
    margin-bottom: 80px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 70px;
    margin-bottom: 40px;
}

.video-thumbnail {
    overflow: hidden;
    width: 100%;
    height: 187px;
    background-color: #000;
    position: relative;
    margin-bottom: 26px;
    cursor: pointer;
    text-align: center;
}

.video-thumbnail img {
    display: inline-block;
    height: 100%;
    object-position: top;
    object-fit: cover;
    /* vertical-align: bottom; */
}

.play-button {
    position: absolute;
    z-index: 5;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.video-title {
    font-size: var(--font-size-video-title);
    color: var(--color-text-main);
    line-height: 1.4;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 더보기 버튼 */
.more-button-wrap {
    margin-top: 70px;
}

.more-button {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 10px;
    background: none;
    border: 1px solid var(--color-text-main);
    min-width: 150px;
    min-height: 45px;
    margin: 0 auto;
    padding: 12px 30px;
    font-size: 16px;
    color: var(--color-text-main);
    cursor: pointer;
    transition: all 0.3s ease;
}

.more-button:hover {
    border-color: #333;
    color: #333;
}

/* News Section */
.news-section {
    margin-bottom: 80px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.news-item {
    border: 1px solid var(--color-border);
    padding: 20px;
    background-color: var(--color-bg);
    min-width: 0;
}
.news-item img {
    max-width: 50%;
    height: auto;
}
.news-logo {
    margin-bottom: 36px;
}

.logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    width: 100%;
    min-width: 240px;
    height: 130px;
    background-color: var(--color-bg);
    font-size: 14px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-main);
}

.news-date {
    font-size: var(--font-size-news-date);
    color: var(--color-text-sub);
    margin-bottom: 18px;
}

.news-title,
.news-source {
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-title {
    display: -webkit-box;
    margin-bottom: 12px;
    font-size: var(--font-size-news-title);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-title);
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-source {
    margin: 0;
    font-size: var(--font-size-news-date);
    color: var(--color-text-sub);
    word-break: break-all;
    white-space: nowrap;
}

/*  영상 모달 */
.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
}

.video-modal.active {
    display: block;
}

.video-modal__overlay {
    position: absolute;
    inset: 0;
    background: var(--color-overlay);
}

.video-modal__box {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    width: 1200px;
    max-width: 94vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.video-modal__header {
    background: var(--color-main);
    color: var(--color-white);
    font-size: 20px;
    font-weight: 600;
    padding: 12px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-modal__title {
    flex: 1;
    text-align: center;
    font-size: 18px;
}

.video-modal__close {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 20px;
    cursor: pointer;
}

.video-modal__content {
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1 1 auto;
    min-height: 320px;
    padding: 68px 44px;
    background: var(--color-bg);
}

.video-modal__content iframe {
    display: block;
    overflow: hidden;
    width: 100%;
    height: 100%;
    min-height: 320px;
    margin: 0;
    padding: 0;
    aspect-ratio: 16 / 9;
    border: none;
    background: #000;
    scrollbar-width: none; /* Firefox */
    &::-webkit-scrollbar { display: none; } /* Chrome, Safari */
}

/* 반응형 스타일 */
@media (max-width: 1200px) {
    .text-container { right: 48px; }
}

@media (max-width: 1024px) {
    .container { padding: 54px; }
    .video-modal__box { width: 96vw; }
    .video-modal__content { padding: 20px; }
    .video-grid,
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .promotion-info { padding: 93px 0 51px; }
    .text-container { right: 62px; }
    .promotion-header .bg-header-01 { background-position: 0 0; }
    .silhouette-container { left: 47%; }
    .silhouette-image { height: 413px; }
    .info-content :is(.title-container, .sub-text-container, .schedule-container) :is(.desktop, .mobile) { display: none; }
    .info-content :is(.title-container, .sub-text-container, .schedule-container) .tablet { display: block; }
    .video-thumbnail {height: 155px; }
    .video-thumbnail img { width: 100%; }
    .video-grid,
    .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 55px 20px; }
    .section-title { font-size: var(--font-size-title); }
    .video-modal__header { padding: 12px 20px; }
    .video-modal__content { padding: 20px; }
    .video-modal__content iframe { min-height: auto; }
}

@media (max-width: 640px) {
    .logo-placeholder { width: 100%; min-width: 100%;}
    .video-thumbnail { height: 144px; }
    .news-item img { max-width: 75% }
    .video-modal__box { width: 100vw; border-radius: 0; }
    .video-modal__header { font-size: 16px; padding: 10px 12px; }
    .video-modal__content { min-height: 180px; }
}

@media (max-width: 475px) {
    .container { padding: 54px 32px; }
    .info-content .title-container .tablet { margin: 0 auto; }
    .promotion-info { padding: 64px 0; }
    .video-thumbnail { height: 216px; }
    .text-container { right: 32px; }
    .text-image { height: 80px; }
    .info-content .title-container { padding: 0 16px; }
    .info-content .title-container .tablet { width: 100%; }
    .video-grid,
    .news-grid { grid-template-columns: 1fr; }
}

@media (max-width: 425px) {
    .container { padding: 54px 20px; }
    .text-container { top: 64px;right: 50%; transform: translateX(50%); }
    .text-image { height: 104px; }
    .silhouette-container { top: 62%; left: 50%; }
    .silhouette-image { height: 343px; max-width: none; }
    .info-content :is(.title-container, .sub-text-container, .schedule-container) :is(.desktop, .tablet) { display: none; }
    .info-content :is(.title-container, .sub-text-container, .schedule-container) .mobile { display: block; }
    .info-content .sub-text-container .mobile { margin-top: 18px; }
    .video-thumbnail { height: 180px; }
    .section-header { flex-direction: column; align-items: flex-start; row-gap: 8px; }
    .section-title { font-size: var(--font-size-title); }
}

@media (max-width: 320px) {
    .container { padding: 0 }
    .video-grid { margin-bottom: 0; padding: 0 32px; }
    .video-section { margin-bottom: 0; }
    .section-header { padding: 54px 32px 0; }
    .news-grid { gap: 0;
        && .news-item { margin-top: -1px; }
    }
    .video-thumbnail { height: 158px; }
    .video-modal__title {width: 150px; overflow: hidden; text-overflow: ellipsis; word-break: break-all; white-space: nowrap;}
}