@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');
@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-5Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-8ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}
:root {
    --primary-color: #7d57f0;
    --primary-dark: #4C26C9;
    --bg-purple-light: #F1EDFC;
    --bg-gray: #F4F5F8;
    --text-main: #222222;
    --text-sub: #777777;
    --border-color: #E5E5E5;
    --white: #FFFFFF;
}
html, body {
    overflow-x: hidden;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.5;
    font-size: 1rem;
}
ul, ol { list-style: none;}
a { text-decoration: none; color: inherit;}
.inner {
    width: 100%;
    max-width: 1212px;
    margin: 0 auto;
    padding: 0 1.25rem;
}
.top-nav {
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    height: 36px;
    display: flex;
    align-items: center;
}
.top-nav .inner {
    display: flex;
    align-items: center;
    height: 100%;
}
.top-nav .logo {
    display: flex;
    align-items: center;
}
.top-purple-bg {
    background-color: var(--bg-purple-light);
    position: relative;
    overflow: hidden;
    padding-bottom: 3rem;
    z-index: 1;
}
.top-purple-bg::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-750px);
    width: 300px;
    height: 300px;
    background: url('/images/bg2.png') top no-repeat;
    z-index: 0;
    pointer-events: none;
}
.top-purple-bg::after {
    content: '';
    position: absolute;
    top: -60px;
    left: 48%;
    transform: translateX(400px);
    width: 300px;
    height: 300px;
    background: url('/images/bg1.png') center no-repeat;
    z-index: 0;
    pointer-events: none;
}
.header-flex, .main-news-section, .latest-news-section {
    position: relative;
    z-index: 10;
}
.mid-white-bg {
    background-color: var(--white);
    padding: 3rem 0;
}
.photo-news-bg {
    background-color: var(--primary-color);
    padding: 3rem 0;
}
.bottom-white-bg {
    background-color: var(--white);
    /* padding: 3rem 0 0; */
}
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 0 2rem;
}
.header-flex h1 {
    font-family: 'Paperozi';
    font-size: 2.8rem;
    color: var(--primary-color);
    font-weight: 800;
}
.header-flex h1 b {
    font-weight: 800;
    color: var(--text-main);
}
.d-day-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.d-day-wrap .date {
    font-family: 'Paperozi';
    font-size: 0.9rem;
    color: var(--text-main);
}
.d-day-wrap .d-day {
    font-family: 'Paperozi';
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}
.main-news-wrap, .latest-news-wrap, .regional-news-wrap, .timeline-wrap, .shorts-wrap {
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: 0 5px 15px rgba(34,20,77,0.2);
    position: relative;
    z-index: 10;
}
.section-header {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.75rem;
}
.section-header h2 {
    font-size: 1.25rem;
    font-weight: 800;
}.arrow-icon {
    display: inline-block; width: 25px; height: 25px; margin-left: 8px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E") center / cover no-repeat;
    transition: transform 0.3s ease-out;
}
.section-header:hover .arrow-icon {
    transform: translateX(6px);
}
.main-news-wrap > a > div:first-child,.news-grid > a > div:first-child,
.regional-news-list > a > div:first-child,.photo-grid > a > div:first-child {
    overflow: hidden;
    border-radius: 10px;
}
.main-news-wrap > a img,.news-grid > a img,
.regional-news-list > a img,.photo-grid > a img {
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    transition: filter 0.3s ease;
    display: block;
}
.main-news-wrap > a:hover img,.news-grid > a:hover img,
.regional-news-list > a:hover img,.photo-grid > a:hover img { 
    filter: brightness(1.08); 
}

.main-news-wrap > a:hover h2,.news-grid > a:hover h3,
.regional-news-list > a:hover h3,.photo-grid > a:hover > div:last-child p {
    text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.main-news-wrap > a h2,.news-grid > a h3,.regional-news-list > a h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.badge {
    display: inline-block;
    width: 2.5rem;
    height: 1.5rem;
    line-height: 1.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    margin-right: 0.4rem;
    vertical-align: text-bottom;
}
.badge.exclusive { color: #fff; background: #ff581d; } 
.badge.breaking { color: #fff; background: #3454a3; } 
.main-news-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    align-items: start;
    margin-bottom: 2rem;
}
.main-news-wrap > a {
    display: flex;
    flex-direction: column;
}
.main-news-wrap > a > div:first-child {
    width: 100%;
    margin-bottom: 1.25rem;
}
.main-news-wrap > a h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    line-height: 1.4;
}
.main-news-wrap > a p {
    font-size: 0.95rem;
    color: var(--text-sub);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2.5rem;
    row-gap: 2.5rem;
    align-items: start;
    margin-top: 1rem;
}
.regional-news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.news-grid > a,.regional-news-list > a {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.news-grid > a > div:first-child,.regional-news-list > a > div:first-child {
    width: 190px;
    height: 117px;
    flex-shrink: 0;
}

.news-grid > a > div:last-child,.regional-news-list > a > div:last-child {
    flex: 1;
    min-width: 0;
}
.news-grid > a h3,.regional-news-list > a h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    word-break: keep-all;
}
.news-grid > a p,.regional-news-list > a p {
    font-size: 0.95rem;
    color: var(--text-sub);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.two-col-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}
.tabs {
    display: flex;
    flex-wrap: wrap; 
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.tab { 
    padding: 0.6rem 1.25rem; 
    border: none; 
    background-color: var(--bg-gray); 
    color: var(--text-sub); 
    border-radius: 20px; 
    font-size: 0.9rem; 
    font-weight: 600; 
    cursor: pointer; 
    font-family: inherit; 
    transition: background-color 0.2s ease, color 0.2s ease; 
}
.tab:not(.active):hover {
    background-color: #E6E8ED; 
    color: var(--text-main); 
}
.tab.active { 
    background-color: var(--primary-color); 
    color: var(--white); 
}
.timeline-list {
    position: relative;
    padding: 0;
    margin-top: 2rem;
}
.timeline-list li {
    position: relative;
    display: flex;
    padding-bottom: 2.8rem;
    align-items: flex-start;
}
.timeline-list li:last-child {
    padding-bottom: 0;
}
.timeline-list li::before {
    content: '';
    position: absolute;
    left: 110px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #D9D9D9;
    transform: translateX(-50%);
    z-index: 2;
}
.timeline-list li.active::before {
    background-color: var(--primary-color);
}
.timeline-list li::after {
    content: '';
    position: absolute;
    left: 110px;
    top: 10px;
    bottom: -10px;
    width: 1px;
    background-color: #EBEBEB;
    transform: translateX(-50%);
    z-index: 1;
}
.timeline-list li:first-child::after {
    top: -20px;
}
.timeline-list li:last-child::after {
    display: none;
}
.timeline-list .date {
    width: 110px;
    padding-right: 1.5rem;
    text-align: right;
    font-size: 1rem;
    color: #999999;
    line-height: 1.5;
    flex-shrink: 0;
    box-sizing: border-box;
}
.timeline-list li.active .date {
    color: var(--primary-color);
    font-weight: 700;
}
.timeline-list .event {
    padding-left: 1.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #999999;
    flex: 1;
    line-height: 1.5;
}
.timeline-list li.active .event {
    color: var(--text-main);
    font-weight: 700;
}
.timeline-list .event span {
    display: block;
    font-size: 0.85rem;
    color: #999999;
    font-weight: 400;
    margin-top: 0.3rem;
}
.photo-news-section .section-header h2 {
    color: var(--white);
}
.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 0.75rem;
}
.photo-grid > a {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
}
.photo-grid > a > div:first-child {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.photo-grid > a > div:last-child {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 8rem 1.5rem 1.5rem;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.7) 60%, rgba(0, 0, 0, 1) 100%);
    z-index: 2;
}
.photo-grid > a > div:last-child p {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.shorts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.shorts-grid > div {
    background-color: #111;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 9 / 16;
}
.shorts-grid > div iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.main-footer {
    text-align: center;
    padding: 2.5rem 1.25rem;
    font-size: 0.9rem;
    color: var(--text-sub);
    background-color: var(--white);
}

/* ==========================================
   미디어 쿼리 (태블릿)
   ========================================== */
@media screen and (max-width: 1024px) {
    .two-col-section { grid-template-columns: 1fr; }
    .photo-grid, .shorts-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid {grid-template-columns: repeat(1, 1fr);}
}


/* ==========================================
   미디어 쿼리 (모바일 - max: 768px)
   ========================================== */
@media screen and (max-width: 768px) {
    .top-purple-bg {padding-bottom: 2rem;}
    .mid-white-bg, .photo-news-bg{padding: 2rem 0;}
    /* .bottom-white-bg {padding: 2rem 0 0;} */
    .top-purple-bg::before{
        left: -121px;
        transform: none;
    }
    .header-flex{
        padding: 2rem 0 1.5rem;
    }
    .header-flex h1 {
        font-size: 1.75rem;
    }
    .d-day-wrap .date {
        display: none;
    }
    .d-day-wrap .d-day {
        font-size: 0.85rem;
        color: var(--white);
        background: linear-gradient(to bottom, #a200fb, #4C26C9);
        padding: 0.35rem 0.6rem;
        line-height: 1.2;
    }
    .badge{
        width: 2rem;
        height: 1.4rem;
    }
    .news-grid{
        margin-top: .5rem;
    }
    .section-header{
        margin-bottom: 0.5rem;
    }
    .two-col-section {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        min-width: 0; 
        width: 100%;
    }
    .main-news-wrap, .news-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        min-width: 0;
        width: 100%;
    }
    .main-news-wrap, .latest-news-wrap, .regional-news-wrap, .timeline-wrap, .shorts-wrap {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .main-news-wrap, .latest-news-wrap, .regional-news-wrap {
        padding: 1.5rem 1.25rem;
        row-gap: 3rem;
    }

    .news-grid > a > div:first-child, .regional-news-list > a > div:first-child {
        width: 110px; height: 80px;
    }
    .news-grid > a h3, .regional-news-list > a h3 {
        font-size: 1.1rem; margin-bottom: 0.4rem;
    }
    .news-grid > a p, .regional-news-list > a p {
        font-size: 0.85rem; -webkit-line-clamp: 1;
    }
    .timeline-wrap {
        padding: 1.5rem 0; 
    }
    .timeline-wrap .section-header {
        padding: 0 1.25rem;
    }
    .timeline-list {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        padding: 0.5rem 1.25rem 0.5rem;
        margin-top: 0.6rem;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 1.25rem;
        -webkit-overflow-scrolling: touch;
    }
    .timeline-list::-webkit-scrollbar { display: none; }
    .timeline-list li {
        flex: 0 0 auto;
        flex-direction: column;
        align-items: center;
        padding: 0;
        width: 140px; 
        scroll-snap-align: start;
    }
    .timeline-list .date {
        width: 100%;
        height: 3.5rem; 
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: 0.9rem;
    }
    .timeline-list li::before {
        left: 50%;
        top: 4rem; 
        transform: translateX(-50%);
        z-index: 2;
    }
    .timeline-list li::after,.timeline-list li:first-child::after {
        content: '';
        position: absolute;
        left: 50%;
        top: calc(4rem + 6px); /* 이제 데스크탑 -20px에 밀리지 않고 찰떡같이 붙습니다! */
        width: 100%; 
        height: 1px;
        background-color: #EBEBEB;
        z-index: 1;
        transform: none;
    }
    .timeline-list li:last-child::after {
        display: none; 
    }

    .timeline-list .event {
        padding: 2.2rem 0 0; 
        text-align: center;
        font-size: 0.95rem;
    }
    .timeline-list::after { content: ''; flex: 0 0 1px; }
    .photo-grid { gap: 1rem; }
    .photo-grid > a > div:last-child { padding: 4rem 1rem 1rem; }
    .photo-grid > a > div:last-child p { font-size: 0.9rem; }
    .shorts-wrap {
        padding: 1.5rem 0;
    }
    .shorts-wrap .section-header {
        padding: 0 1.25rem;
    }
    .shorts-grid {
        display: flex;
        overflow-x: auto;
        padding: 0 1.25rem 1.25rem;
        gap: 1rem;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 1.25rem;
        -webkit-overflow-scrolling: touch;
    }
    .shorts-grid::-webkit-scrollbar { display: none; }
    .shorts-grid > div {
        flex: 0 0 160px;
        scroll-snap-align: start;
    }
    .shorts-grid::after {
        content: '';
        flex: 0 0 1px;
    }
}