/* Pretendard 폰트 적용 */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

/* Reset & Common */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', sans-serif;
    background: #FFFFFF;
    color: #000000;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}


.mo-br { display: none; }

/* Layout */
.news-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    isolation: isolate;
}





/* Main Content */
.news-main {
    width: 100%;
    max-width: 1920px;
    padding: var(--section-padding-y) var(--section-padding-x);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(30px, 6.25vw, 120px);
}

/* Featured Video Section */
.featured-news {
    width: 100%;
    max-width: 1680px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: clamp(20px, 3.5vw, 40px);
    padding: clamp(10px, 2vw, 20px);
    background: #F8F9FB;
    border-radius: clamp(16px, 1.56vw, 30px);
}

.video-box {
    flex: 201 1 0;
    min-width: 500px;
    height: auto;
    aspect-ratio: 1005 / 565;
    position: relative;
    border-radius: 20px; /* 검수 0708: 영상 R 30→20 (회색카드는 30 유지) */
    overflow: hidden;
}

.video-box .thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.video-box iframe,
.video-box #news-yt-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 20px;
    z-index: 1;   /* YouTube 임베드는 뒤에 깔림 */
}

/* 커스텀 재생버튼: 임베드 위 중앙 — YouTube 기본(빨간) 재생버튼을 덮어 대체(불투명) */
.play-btn { z-index: 2; background: rgba(0, 0, 0, 0.92); }
/* 재생 시작되면 커스텀 버튼 숨김 → YouTube 컨트롤(우측 하단 로고)만 노출 */
.video-box.is-playing .play-btn { display: none; }

.video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.play-btn {
    position: absolute;
    width: clamp(84px, 7vw, 112px);
    height: clamp(84px, 7vw, 112px);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.92);   /* 불투명 — 뒤 YouTube 빨간 재생버튼을 완전히 가림 */
    border-radius: 9000px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.play-btn::after {
    content: '';
    width: clamp(29.79px, 2.6vw, 50px);
    height: clamp(29.79px, 2.6vw, 50px);
    background: #D9D9D9;
    clip-path: polygon(20% 10%, 20% 90%, 90% 50%);
    border-radius: 0.5px;
}

.featured-content {
    flex: 119 1 0;
    min-width: 400px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: clamp(10px, 2vw, 20px) 0;
}

.featured-text-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: clamp(16px, 2.6vw, 30px);
    width: 100%;
}

.featured-title-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(10px, 1.5vw, 16px);
    width: 100%;
}

.yt-icon {
    width: clamp(30px, 3.5vw, 44px);
    height: clamp(30px, 3.5vw, 44px);
    object-fit: contain;
}

.tag-youtube {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 6px 12px;
    gap: 10px;
    width: auto;
    min-width: clamp(99px, 6.04vw, 116px);
    height: clamp(38px, 2.29vw, 44px);
    background: #FCE3CC;
    border-radius: 1000px;
    color: #F27100;
    font-weight: 500;
    font-size: clamp(16px, 1.04vw, 20px);
    line-height: 160%;
}

.featured-title {
    width: 100%;
    font-family: 'Pretendard';
    font-style: normal;
    font-weight: 600;
    font-size: clamp(18px, 1.875vw, 36px);
    line-height: 150%;
    color: #000000;
    display: flex;
    align-items: center;
    word-break: keep-all;
}

.featured-desc {
    width: 100%;
    font-family: 'Pretendard';
    font-style: normal;
    font-weight: 400;
    font-size: clamp(16px, 1.14vw, 22px);
    line-height: 160%;
    color: #363636;
    display: flex;
    align-items: center;
    word-break: keep-all;
}

.featured-hashtags {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    gap: clamp(8px, 0.625vw, 12px);
    width: 100%;
    height: auto;
}

.hashtag {
    font-family: 'Pretendard';
    font-style: normal;
    font-weight: 500;
    font-size: clamp(16px, 1.04vw, 20px);
    line-height: 160%;
    color: #A7A7A7;
    display: flex;
    align-items: center;
}

/* News List Section */
.news-list-section {
    width: 100%;
    max-width: 1680px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px;
    gap: 40px;
}

.section-title {
    width: 100%;
    font-family: 'Pretendard';
    font-style: normal;
    font-weight: 700;
    font-size: clamp(30px, 2.6vw, 50px);
    line-height: 140%;
    color: #000000;
    display: flex;
    align-items: center;
    height: 70px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(30px, 3.125vw, 60px) clamp(16px, 1.04vw, 20px);
    width: 100%;
}

.news-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: clamp(16px, 1.25vw, 24px);
    width: 100%;
}

.card-img {
    width: 100%;
    height: 226px;
    background: #EEEEEE;
    border-radius: 16px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px clamp(4px, 0.31vw, 6px);
    gap: 16px;
    width: 100%;
}

.card-title {
    width: 100%;
    min-height: clamp(58px, 4.06vw, 78px);
    font-family: 'Pretendard';
    font-style: normal;
    font-weight: 600;
    font-size: clamp(18px, 1.35vw, 26px);
    line-height: 150%;
    color: #000000;
    display: flex;
    align-items: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-all;
}

.card-date {
    width: 100%;
    height: auto;
    font-family: 'Pretendard';
    font-style: normal;
    font-weight: 500;
    font-size: clamp(16px, 1.04vw, 20px);
    line-height: 160%;
    color: #A7A7A7;
    display: flex;
    align-items: center;
}

/* More Button */
.btn-more-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.btn-more {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: clamp(10px, 0.83vw, 16px) clamp(18px, 1.25vw, 24px);
    gap: 6px;
    width: clamp(166px, 100%, 328px); /* Full width on mobile, fixed-ish on PC */
    max-width: 328px;
    height: clamp(45px, 3.125vw, 60px);
    border: 1px solid #D3D3D3;
    border-radius: clamp(10px, 0.73vw, 14px);
    background: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s;
}

@media (min-width: 768px) {
    .btn-more {
        width: 166px;
    }
}

.btn-more:hover {
    background: #F8F9FB;
}

.btn-more span {
    font-family: 'Pretendard';
    font-style: normal;
    font-weight: 700;
    font-size: clamp(16px, 0.93vw, 18px);
    line-height: 160%;
    color: #363636;
}

.btn-more i {
    width: 20px;
    height: 20px;
    position: relative;
}

.btn-more i::before,
.btn-more i::after {
    content: '';
    position: absolute;
    background: #4E4E4E;
}

.btn-more i::before {
    width: 14px;
    height: 2px;
    left: 3px;
    top: 9px;
}

.btn-more i::after {
    width: 2px;
    height: 14px;
    left: 9px;
    top: 3px;
}



/* ── 태블릿: 뉴스 그리드 2열 ── */
@media (min-width: 768px) and (max-width: 1439px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .video-box,
    .video-box .thumbnail {
        border-radius: 16px;
    }

    .featured-content {
        border-radius: 20px;
    }
}

/* Fluid responsive overrides instead of hard breaks where possible */
@media (max-width: 767px) {
    .mo-br { display: block; }

    .featured-news {
        flex-direction: column;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* Specific Design Parity Enforcement for 1920px */
@media (min-width: 1440px) {


    .news-main { padding: var(--section-padding-y) var(--section-padding-x); gap: 120px; }
    .featured-news { gap: 40px; padding: 20px; border-radius: 30px; }
    .video-box { border-radius: 20px; } /* 검수 0708: 영상 R 20 (회색카드 30) */
    .featured-content { padding: 20px 0; }
    .yt-icon { width: 44px; height: 44px; }
    .news-grid { gap: 60px 20px; }

}

/* Specific Design Parity Enforcement for 360px */
@media (max-width: 767px) {


    .news-main { padding: 40px 16px; gap: 80px; }
    .featured-news { padding: 12px 12px 20px; background: #F8F9FB; border-radius: 16px; gap: 20px; }
    .video-box { flex: none; width: 100%; height: auto; aspect-ratio: 306 / 172; min-width: 0; border-radius: 8px; } /* 검수 0708: 모바일 영상 R 16→8 */
    .video-box .thumbnail { border-radius: 8px; }
    .video-box iframe { border-radius: 8px; }
    .play-btn { width: 72px; height: 72px; }
    .featured-content { flex: none; width: 100%; min-width: 0; min-height: auto; padding: 0 8px; background: transparent; border-radius: 0; gap: 40px; justify-content: flex-start; }
    .featured-text-top { gap: 16px; }
    .featured-title-group { gap: 12px; }
    .yt-icon { width: 32px; height: 32px; }
    .featured-title { font-size: 18px; font-weight: 700; line-height: 160%; }
    .featured-desc { font-size: 16px; font-weight: 400; line-height: 160%; }
    .featured-hashtags { gap: 8px; flex-wrap: wrap; row-gap: 4px; }
    .hashtag { font-size: 16px; font-weight: 400; }
    .news-grid { gap: 30px; }
    .card-title { font-size: 18px; }
    .card-date { font-size: 16px; height: 26px; }
    .card-img { height: 184px; }
    .card-content { gap: 8px; }
    .news-list-section { gap: 20px; }
    .section-title { font-size: 24px; height: 36px; } /* 검수 0729: '동국산업 소식' 30→24 / 검수 0730: 타이틀 높이 70→36 */

}


/* ── 태블릿: 회색카드 20 / 영상 16 (검수 0708) ── */
@media (min-width: 768px) and (max-width: 1439px) {
    .featured-news {
        border-radius: 20px !important;
    }

    .video-box,
    .video-box .thumbnail,
    .video-box iframe {
        border-radius: 16px !important;
    }
}