@charset "utf-8";

/* ========================================
   메인 페이지 전용 스타일
   PHP 순서: 메인비주얼 → 최신글 → 갤러리 → 자료실 → 스폰서
   ======================================== */


/* ========================================
   1. 메인 비주얼 섹션
   ======================================== */
.mv-wrap {
    margin-top: var(--gap-9, 40px);
}

.mv-wrap.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 메인비주얼 메인 레이아웃 */
.mv-main-layout {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gap-7, 24px);
    margin: 0 auto;
    align-items: stretch;
    transition: grid-template-columns 0.3s ease, gap 0.3s ease; /* 그리드 전환 transition 추가 */
}

/* 왼쪽 슬라이더 영역 (9컬럼) */
.mv-slider-area {
    grid-column: span 9;
}

/* 오른쪽 사이드바 (3컬럼) */
.mv-sidebar {
    display: flex;
    flex-direction: column;
    grid-column: span 3;
    height: 100%; /* 비주얼 슬라이드와 높이 동기화 */
    transition: grid-column 0.3s ease, height 0.3s ease; /* 그리드 전환 transition 추가 */
}

/* 메인 비주얼 슬라이더 */
.mv-swiper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-sizing: border-box;
    border: none;
    width: 100%;
    margin: 0 auto;
}

.mv-slider-area .mv-swiper {
    width: 100%;
    margin: 0;
    height: 520px;
    transition: height 0.3s ease; /* 높이 변경 transition 추가 */
}

.mv-card {
    position: relative;
    display: block;
    height: 100%;
    color: #fff;
}

.mv-card__text {
    position: absolute;
    left: var(--padding-6, 48px);
    right: var(--padding-6, 48px);
    bottom: var(--padding-8, 64px);
    z-index: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.mv-card__section {
    font-size: var(--font-body, 0.9375rem);
    font-weight: 500;
    text-transform: uppercase;
}

.mv-card__title {
    font-size: 2rem;
    font-weight: 500;
    margin: 0;
}

.mv-card__summary {
    font-size: var(--font-h3, 1.125rem);
    font-weight: 400;
}

.mv-card__cta a {
    display: inline-flex;
    align-items: center;
    padding: var(--gap-2-5, 10px) var(--padding-7, 30px);
    border-radius: 999px;
    border: 1px solid #c5cad6;
    color: #ffffff;
    margin-top: var(--gap-3);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.mv-card__cta a:hover {
    background: #ffffff;
    color: #14203b;
}
.mv-card__image::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60%;
    z-index: 1; /* 이미지 위 */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    pointer-events: none;
}
.mv-card__image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.mv-card__image a,
.mv-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}

.mv-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f6;
    color: #8490a5;
    font-size: var(--font-body, 0.9375rem);
}

.mv-card--empty .mv-card__text {
    justify-content: center;
    text-align: center;
}

/* Swiper 애니메이션 */
.mv-card__title, 
.mv-card__summary { 
    opacity: 0; 
    transform: translateY(14px); 
}

.mv-card__cta a { 
    opacity: 0; 
    transform: translateY(14px); 
}

@keyframes mv-fade-up { 
    from { opacity: 0; transform: translateY(14px); } 
    to { opacity: 1; transform: none; } 
}

.swiper-slide-active .mv-card__title { 
    animation: mv-fade-up .6s ease .05s both; 
}

.swiper-slide-active .mv-card__summary { 
    animation: mv-fade-up .6s ease .15s both; 
}

.swiper-slide-active .mv-card__cta a { 
    animation: mv-fade-up .6s ease .25s both; 
}

/* Swiper 미초기화 폴백 */
.mv-swiper:not(.swiper-initialized) .mv-card__title,
.mv-swiper:not(.swiper-initialized) .mv-card__summary,
.mv-swiper:not(.swiper-initialized) .mv-card__cta a {
    opacity: 1;
    transform: none;
}

.mv-swiper:not(.swiper-initialized) .mv-dock { 
    display: flex; 
}

/* 슬라이더 컨트롤 */
.mv-dock { 
    position: absolute; 
    right: 0; 
    bottom: var(--gap-8, 32px); 
    display: flex; 
    justify-content: center;
    z-index: 5;
    padding: 0 var(--gap-8, 32px);
}

.mv-dock__inner {
    display: flex;
    gap: var(--gap-2, 8px);
    padding: 10px 16px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mv-button {
    background: none;
    border: none;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0.9;
    transition: opacity 0.2s;
    border-radius: 50%;
}

.mv-button:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.mv-button--pause.is-paused {
    opacity: 0.6;
}

.mv-button__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: 'FontAwesome';
    font-size: 14px;
    line-height: 1;
    font-weight: normal;
    color: inherit;
}

.mv-button--pause .mv-button__icon::before {
    content: '\f04c'; /* FontAwesome pause icon */
}

.mv-button--pause.is-paused .mv-button__icon::before {
    content: '\f04b'; /* FontAwesome play icon */
}

.mv-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.mv-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.3);
}

.mv-dot.is-active {
    background: var(--color-white);
    width: 24px;
    border-radius: 5px;
}


/* ========================================
   2. 이벤트 섹션 (사이드바)
   ======================================== */
.event-section {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    flex: 1; /* 남은 공간 채우기 */
    min-height: 0; /* flex 축소 허용 */
    transition: max-height 0.3s ease; /* 높이 변경 transition 추가 */
}

/* 간단한 이벤트 카드 (메인 페이지용) */
.event-card-simple {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: var(--padding-5, 24px);
    display: flex;
    flex-direction: column;
    gap: var(--gap-6, 20px);
}

.event-card-simple__title {
    font-size: var(--font-h3);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.4;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.event-card-simple__status {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
}

.event-card-simple__info {
    display: flex;
    flex-direction: column;
}

.event-info-row {
    display: flex;
    align-items: flex-start;
    gap: var(--gap-2, 8px);
    line-height: 1.6;
    font-size: 0.875rem;
}

.event-info-label {
    font-weight: 600;
    color: var(--color-text);
    flex-shrink: 0;
}

.event-info-value {
    color: var(--color-text-secondary);
    flex: 1;
}


/* ========================================
   3. 연간 행사일정 (사이드바)
   ======================================== */
.annual-events {
    margin-top: var(--gap-7, 24px);
    min-height:176px;
    border:1px solid var(--color-border);
    border-radius: 8px;
    padding: var(--padding-5, 24px);
    background: var(--color-white);
}

.annual-events__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--padding-2, 12px);
    border-bottom: 1px solid var(--color-border);
}

.annual-events__title {
    font-size: var(--font-h3, 1.125rem);
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.annual-events__more {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    transition: color 0.2s ease;
}

.annual-events__more:hover {
    color: var(--color-primary);
}

.annual-events__list {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.annual-event-item {
    padding: var(--padding-2, 12px) 0;
    border-bottom: 1px solid var(--color-border);
}

.annual-event-item a {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: var(--gap-4, 16px);
    text-decoration: none;
    color: inherit;
}

.annual-event-item__date {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-emphasis);
    align-self: center;
    
    
}

.annual-event-item__title {
    font-size: 0.875rem;
    color: var(--color-text);
    line-height: 1.4;
    word-break: break-all; /* 단어 중간에서도 줄바꿈 */
    overflow-wrap: break-word; /* 긴 단어 줄바꿈 */
}

.annual-events__empty {
    text-align: center;
    color: var(--color-text-secondary);
    padding: var(--padding-5, 24px) 0;
    font-size: 0.875rem;
}

/* 연간 행사일정 슬라이더 */
.annual-slider-viewport {
    overflow: hidden;
    width: 100%;
    touch-action: pan-y pinch-zoom; /* 수직 스크롤은 허용, 수평 스와이프는 제어 */
    -webkit-overflow-scrolling: touch;
}

.annual-slider-track {
    display: flex;
    transition: transform 0.5s ease-out; /* 더 느리고 부드러운 애니메이션 */
    will-change: transform; /* 성능 최적화 */
}

.annual-slider-page {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.annual-slider-page .annual-event-item {
    padding: var(--padding-2, 12px) 0;
    border-bottom: 1px solid var(--color-border);
}

.annual-slider-dots {
    display: flex;
    justify-content: center;
    gap: var(--gap-2, 8px);
    margin-top: var(--gap-6, 20px);
}

.annual-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-border);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.annual-slider-dot:hover {
    background: var(--color-text-secondary);
    transform: scale(1.2);
}

.annual-slider-dot.is-active {
    background: var(--color-primary);
    width: 24px;
    border-radius: 5px;
}


/* ========================================
   4. 최신글 섹션
   ======================================== */
.latest-news-combo {
    margin-top: var(--gap-7, 24px);
}

.latest-news-combo .latest-news-combo__inner {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    gap: var(--gap-7, 24px);
    align-items: start;
}

.latest-news-left {
    grid-column: span 16;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: var(--padding-5, 24px);
    min-height: 160px;
}

.latest-news-center { 
    display: none; /* Holionex 관련연구 + 학회지 섹션 숨김 */
    grid-column: span 8;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px; 
    padding: var(--padding-5, 24px);
    min-height: 160px;
}

.latest-news-right { 
    grid-column: span 8;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px; 
    padding: var(--padding-5, 24px);
    min-height: 160px;
}

/* 4-2. 최신글 헤더 공통 스타일 */
.latest-news-left__header,
.latest-news-center__header,
.latest-news-right__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--gap-4, 16px);
    padding-bottom: 0;
    border-bottom: 1px solid var(--color-primary);
    position: relative;
}

/* 4-3. 탭 컨테이너 공통 스타일 */
.latest-news-tabs,
.latest-news-center-tabs,
.latest-news-right-tabs {
    display: flex;
    align-items: center;
}

/* 4-4. 탭 버튼 공통 스타일 */
.latest-tab,
.latest-center-tab,
.latest-right-tab {
    padding: var(--gap-2, 8px) var(--gap-4, 16px);
    color: var(--color-text-secondary);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid transparent;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    border-bottom: none;
    background: transparent;
    transition: all 0.2s ease;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    min-width: 0;
}

.latest-tab:hover,
.latest-center-tab:hover,
.latest-right-tab:hover {
    color: var(--color-text);
}

.latest-tab--active,
.latest-center-tab--active,
.latest-right-tab--active {
    color: var(--color-text);
    border: 1px solid var(--color-primary);
    border-bottom: none !important;
    background: var(--color-white);
    position: relative;
    margin-bottom: -1px;
    z-index: 1;
    padding-bottom: calc(var(--gap-2, 8px) + 1px);
}

.latest-tab:focus, 
.latest-center-tab:focus,
.latest-right-tab:focus { 
    outline: 3px solid rgba(13, 18, 68, 0.12); 
    outline-offset: 2px; 
}
/* 4-7. 섹션 제목 스타일 */

.latest-news__header {
    padding-bottom: var(--padding-2, 12px);
    border-bottom: 1px solid var(--color-primary);
    margin-bottom: var(--gap-4, 16px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--gap-2, 8px); 
    position: relative;
}

.latest-news-title {
    font-size: var(--font-h3, 1rem);
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-text);
    margin: 0;
}

/* 4-5. 더보기 링크 스타일 */
.latest-more-link {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    padding-bottom: var(--gap-2, 8px);
    transition: color 0.2s ease;
}

.latest-more-link:hover {
    color: var(--color-primary);
}

/* 4-6. 최신글 리스트 공통 스타일 */
.latest-list {
    margin-top: var(--gap-3, 12px);
    min-height: 200px; /* 글이 없어도 최소 높이 유지 */
}

.latest-list__items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.latest-list__item {
    border-bottom: 1px solid var(--color-border);
}

.latest-list__item:last-child { 
    border-bottom: none; 
}

.latest-list__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap-4, 16px);
    padding: var(--padding-2, 12px) 0;
    color: inherit;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.latest-list__link:hover { 
    background: var(--color-bg-alt); 
}

.latest-list__subject { 
    color: var(--color-text); 
    line-height: 1.3; 
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    min-width: 0;
    flex: 1;
}

.latest-list__subject .subject-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space:normal;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.latest-list__subject .new_icon {
    flex-shrink: 0;
}

.latest-list__date { 
    color: var(--color-text-secondary); 
    white-space: nowrap; 
    font-size: 0.845rem;
    flex-shrink: 0;
}

.latest-list__item--empty {
    border-bottom: none;
}

.latest-list__empty { 
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center; 
    padding: var(--padding-6, 24px); 
    color: var(--color-text-secondary); 
}



/* ========================================
   5. 갤러리 최신글
   ======================================== */
.latest-gallery {
    margin-top: var(--gap-7, 24px);
}

.latest-gallery__inner {   
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: var(--padding-5, 24px);
}

.latest-gallery__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--gap-3, 12px);
}

.gallery-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-5, 20px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.gallery-item {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
}

.gallery-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    background: #f5f5f5;
}

.gallery-item__title {
    display: block;
    padding: 12px;
    font-weight: 500;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.latest-gallery__empty {
    padding: 40px;
    text-align: center;
    color: var(--color-text-secondary);
}


/* ========================================
   6. 자료실 섹션
   ======================================== */
/* 데스크톱: 자료실 레이아웃 (9:9:6 = 37.5%:37.5%:25%) */
.latest-news-combo--docs .latest-news-combo__inner {
    grid-template-columns: repeat(24, 1fr);
}

.latest-news-combo--docs .latest-news-left,
.latest-news-combo--docs .latest-news-right {
    grid-column: span 9;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: var(--padding-5, 24px);
}

.latest-news-combo--docs .latest-news-banner {
    grid-column: span 6;
    display: flex;
    flex-direction: column;
    gap: var(--gap-4, 16px);
}

.latest-news-banner {
    grid-column: span 6;
    display: flex;
    flex-direction: column;
    gap: var(--gap-4, 16px);
}

/* 배너 카드 */
.banner-card {
    display: flex;
    align-items: center;
    gap: var(--gap-4, 16px);
    padding: var(--padding-5, 24px);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.banner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.banner-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 27, 72, 0.1);
}


.banner-card__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 24px;
    transition: all 0.3s ease;
}

.banner-card--primary .banner-card__icon {
    background: rgba(0, 27, 72, 0.1);
    color: var(--color-primary);
}

.banner-card--secondary .banner-card__icon {
    background: rgba(243, 139, 30, 0.1);
    color: var(--color-accent);
}

.banner-card__content {
    flex: 1;
    min-width: 0;
}

.banner-card__title {
    font-size: var(--font-h4, 1rem);
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 4px 0;
}

.banner-card__desc {
    font-size: var(--font-small, 0.875rem);
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.4;
}

.banner-card__arrow {
    flex-shrink: 0;
    font-size: 20px;
    color: var(--color-text-secondary);
    transition: transform 0.3s ease;
}

.banner-card:hover .banner-card__arrow {
    color: var(--color-primary);
}


/* ========================================
   7. 스폰서 슬라이더
   ======================================== */
.sponsor-slider {
    margin-top: 40px;
}

.sponsor-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--gap-6, 20px);
}

.sponsor-carousel__container {
    overflow: hidden;
    flex: 1;
}

.sponsor-carousel__track {
    display: flex;
    transition: transform 0.5s ease;
}

.sponsor-carousel__slide {
    flex: 0 0 calc(100% / 6);
    min-width: 0;
    padding: 0 12px;
    box-sizing: border-box;
}

.sponsor-carousel__prev,
.sponsor-carousel__next {
    width: var(--layout-gutter-tablet, 40px);
    height: var(--layout-gutter-tablet, 40px);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sponsor-carousel__prev:hover,
.sponsor-carousel__next:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.sponsor-carousel__prev:disabled,
.sponsor-carousel__next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.sponsor-carousel__prev:disabled:hover,
.sponsor-carousel__next:disabled:hover {
    background: var(--color-white);
    color: inherit;
    border-color: var(--color-border);
}

.partner-card {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--gap-2, 8px);
    transition: all 0.3s ease;
}

.partner-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.partner-card span {
    font-size: var(--font-h3, 1rem);
    color: var(--color-text-secondary);
    font-weight: 500;
}

.partner-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


/* ========================================
   반응형: 1024px 이하 (태블릿)
   ======================================== */
@media (max-width: 1024px) {
    /* 메인 비주얼 */
    .mv-wrap {
        margin-top: calc(var(--header-height, 80px) + var(--gap-7, 24px));
    }

    .mv-main-layout {
        display: flex;
        flex-direction: column;
        height: auto;
        gap: var(--gap-7, 24px);
        transition: flex-direction 0.3s ease; /* 레이아웃 전환 transition 추가 */
    }

    .mv-sidebar {
        flex: none;
        order: 2;
        height: auto;
    }

    .mv-slider-area {
        flex: none;
        order: 1;
        transition: order 0.3s ease; /* 순서 변경 transition 추가 */
    }

    .mv-slider-area .mv-swiper { 
        height: auto;
        aspect-ratio: 1014 / 514;
        min-height: 400px; /* 최소 높이 지정 */
        max-height: 600px; /* 최대 높이 지정 */
    }

    .event-section {
        flex: none; /* 반응형에서는 자동 높이 */
        grid-template-columns: 1fr;
    }

    .annual-events {
        flex: none;
    }

    .mv-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .mv-card__image {
        order: 1;
    }

    .mv-card__image a,
    .mv-card__image img {
        object-position: center center; /* 반응형에서 중앙 정렬 */
    }

    .mv-card__text {
        left: var(--gap-8, 32px);
        right: var(--gap-8, 32px);
        bottom: var(--gap-9, 80px);
        padding: 0;
        gap: var(--gap-6, 20px);
    }

    .mv-card__title {
        font-size: 2rem;
    }

    .mv-card__summary {
        font-size: 1rem;
    }

    .mv-dock {
        bottom: var(--gap-6, 20px);
        padding: 0 var(--gap-8, 32px);
    }

    /* 최신글 */
    .latest-news-combo .latest-news-combo__inner {
        grid-template-columns: 1fr;
    }

    .latest-news-left { 
        grid-column: span 1;
        order: 1; 
    }

    .latest-news-center {
        display: none; /* 모바일에서도 숨김 */
        grid-column: span 1;
        order: 2;
    }

    .latest-news-right { 
        grid-column: span 1;
        order: 2; /* center가 숨겨져서 order 조정 */
    }

    .latest-news-banner {
        grid-column: 1 / -1;  /* 전체 너비 차지 */
        order: 4;
        display: grid !important;  /* flex 덮어쓰기 */
        flex-direction: row !important;  /* column 덮어쓰기 */
        grid-template-columns: repeat(2, 1fr);
        gap: var(--gap-4, 16px);
        width: 100%;
    }

    /* 자료실 섹션 세로 1컬럼 + 배너 2x1 레이아웃 */
    .latest-news-combo--docs .latest-news-combo__inner {
        grid-template-columns: 1fr;
        gap: var(--gap-7, 24px);
    }

    .latest-news-combo--docs .latest-news-left {
        grid-column: span 1;
        order: 1;
    }

    .latest-news-combo--docs .latest-news-right {
        grid-column: span 1;
        order: 2;
    }

    .latest-news-combo--docs .latest-news-banner {
        grid-column: 1 / -1;
        order: 3;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--gap-4, 16px);
        flex-direction: row;
    }

    /* 최신글 탭 반응형 */
    .latest-news-tabs,
    .latest-news-center-tabs,
    .latest-news-right-tabs {
        flex-wrap: wrap;
    }

    .latest-tab,
    .latest-center-tab,
    .latest-right-tab {
        font-size: 0.875rem;
        flex: 1 1 auto;
    }

    /* 갤러리 */
    .gallery-list { 
        grid-template-columns: repeat(2, 1fr); 
    }

    /* 스폰서 */
    .sponsor-carousel__slide {
        flex: 0 0 calc(100% / 4);
    }
}



/* ========================================
   반응형: 768px 이하 (모바일)
   ======================================== */
@media (max-width: 768px) {
    .latest-list {
        min-height: auto; /* 반응형에서는 높이 제약 해제 */
    }
    /* 메인 비주얼 */
    .mv-wrap {
        margin-top: calc(var(--header-height, 80px) + var(--gap-6, 20px));
    }

    .mv-main-layout {
        gap: var(--gap-6, 20px);
    }

    .mv-swiper {
        height: auto;
        aspect-ratio: 1014 / 514;
    }

    .mv-card__image a,
    .mv-card__image img {
        object-position: center center; /* 반응형에서 중앙 정렬 */
    }

    .mv-card__text {
        left: var(--gap-6, 20px);
        right: var(--gap-6, 20px);
        bottom: var(--gap-8-5, 72px);
        padding: 0;
        gap: var(--gap-4, 16px);
    }

    .mv-card__title {
        font-size: 1.75rem;
    }

    .mv-card__summary {
        font-size: var(--font-body, 0.875rem);
    }

    .mv-dock { 
        bottom: var(--gap-5, 16px);
        padding: 0 var(--gap-6, 20px);
    }

    .mv-dock__inner {
        padding: 8px 12px;
    }

    .mv-dot {
        width: var(--gap-2, 8px);
        height: var(--gap-2, 8px);
    }

    .mv-dot.is-active {
        width: var(--gap-6, 20px);
    }

    /* 이벤트 카드 */
    .event-card-simple {
        padding: var(--padding-4, 20px);
        gap: var(--gap-4, 16px);
    }

    .event-card-simple__title {
        font-size: var(--font-h3, 1rem);
    }

    .event-info-label,
    .event-info-value {
        font-size: var(--font-body, 0.875rem);
    }

    .event-info-label {
        min-width: 100px;
    }

    /* 연간 행사일정 */
    .annual-event-item {
        grid-template-columns: 50px 1fr;
        gap: var(--gap-3, 12px);
        padding: var(--gap-2-5, 10px) 0;
    }

    .annual-event-item a {
        grid-template-columns: 50px 1fr;
        gap: var(--gap-3, 12px);
    }

    .annual-event-item__date {
        font-size: var(--font-small, 0.8125rem);
    }

    .annual-event-item__title {
        font-size: var(--font-body, 0.875rem);
    }

    .annual-slider-dots {
        gap: var(--gap-1-5, 6px);
        margin-top: var(--gap-4, 16px);
    }

    .annual-slider-dot {
        width: var(--gap-2, 8px);
        height: var(--gap-2, 8px);
    }

    .annual-slider-dot.is-active {
        width: var(--gap-6, 20px);
    }

    /* 최신글 탭 */
    .latest-center-tab,
    .latest-right-tab {
        padding: var(--gap-1-5, 6px) var(--gap-2, 8px);
        font-size: 0.9rem;
    }

    /* 갤러리 */
    .gallery-list { 
        grid-template-columns: repeat(2, 1fr); 
    }

    /* 스폰서 슬라이더 */
    .sponsor-carousel__slide {
        flex: 0 0 calc(100% / 2);
    }

    .sponsor-carousel__prev,
    .sponsor-carousel__next {
        width: 32px;
        height: 32px;
        font-size: var(--font-body, 0.875rem);
    }

   
    
    /* gap 줄이기 */
    .latest-list__link {
        gap: var(--gap-2, 8px);
    }
}


/* ========================================
   반응형: 645px 이하 (모바일 가로)
   ======================================== */
@media (max-width: 645px) {
    /* 갤러리 */
    .gallery-list {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 최신글 헤더 - 탭과 더보기 가로 정렬 */
    .latest-news-left__header,
    .latest-news-center__header,
    .latest-news-right__header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
        gap: var(--gap-2, 8px);
        flex-wrap: wrap;
    }

    /* 최신글 탭 - 가로 유지, 텍스트에 맞춘 너비 */
    .latest-news-tabs,
    .latest-news-center-tabs,
    .latest-news-right-tabs {
        display: flex;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: var(--gap-1, 4px);
        flex: 1;
        min-width: 0;
    }

    .latest-tab,
    .latest-center-tab,
    .latest-right-tab {
        padding: var(--gap-1-5, 6px) var(--gap-2, 8px);
        font-size: 0.875rem;
        white-space: nowrap;
        flex: 0 1 auto;
        min-width: auto;
        border: 1px solid transparent;
        border-bottom: none;
        background: transparent;
        color: var(--color-text-secondary);
    }

    .latest-tab--active,
    .latest-center-tab--active,
    .latest-right-tab--active {
        color: var(--color-text);
        border: 1px solid var(--color-primary);
        border-bottom: none;
        background: var(--color-white);
        padding: calc(var(--gap-1-5, 6px) + 1px) var(--gap-2, 8px) var(--gap-1-5, 6px) var(--gap-2, 8px);
    }

    /* 더보기 링크 */
    .latest-more-link {
        padding: var(--gap-2, 8px) 0;
        white-space: nowrap;
        flex-shrink: 0;
    }

    
}


/* ========================================
   반응형: 480px 이하
   ======================================== */
@media (max-width: 480px) {
    .gallery-list { 
        grid-template-columns: repeat(2, 1fr); 
    }

    .annual-slider-dot {
        width: 7px;
        height: 7px;
    }

    .annual-slider-dot.is-active {
        width: 18px;
    }

    /* 배너 카드 반응형 조정 */
    .banner-card {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--gap-2, 8px);
        padding: var(--padding-4, 20px);
    }

    .banner-card__icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .banner-card__content {
        width: 100%;
    }

    .banner-card__title {
        font-size: var(--font-h4, 0.9rem);
        word-break: break-all;
    }

    .banner-card__desc {
        font-size: var(--font-small, 0.8125rem);
        display: none; /* 설명 텍스트 숨김 */
    }

    .banner-card__arrow {
        display: none; /* 화살표 숨김 */
    }


}


/* ========================================
   반응형: 360px 이하 (최소 모바일)
   ======================================== */
@media (max-width: 360px) {
    /* 메인 비주얼 */
    .mv-wrap {
        margin-top: var(--gap-4, 16px);
    }

    .mv-main-layout {
        gap: var(--gap-4, 16px);
    }

    .mv-swiper {
        height: auto;
        aspect-ratio: 1014 / 514;
        min-height: 280px;
    }

    .mv-card__text {
        left: var(--gap-6, 20px);
        right: var(--gap-6, 20px);
        bottom: var(--gap-8-5, 72px);
        padding: 0;
        gap: var(--gap-3, 12px);
    }

    .mv-card__title {
        font-size: 1.5rem;
    }

    .mv-card__summary {
        font-size: var(--font-small, 0.8125rem);
    }

    .mv-dock { 
        bottom: var(--gap-5, 16px);
        padding: 0 var(--gap-6, 20px);
    }

    .mv-dock__inner {
        padding: 8px 12px;
    }

    .mv-dot {
        width: 7px;
        height: 7px;
    }

    .mv-dot.is-active {
        width: 18px;
    }

    /* 이벤트 카드 */
    .event-card-simple {
        padding: var(--padding-3, 16px);
        gap: var(--gap-3, 12px);
    }

    /* 스폰서 */
    .sponsor-carousel__prev,
    .sponsor-carousel__next {
        width: 28px;
        height: 28px;
        font-size: var(--font-small, 0.8125rem);
    }
}
