/* [ZZAN Studio] 메인페이지 전용 스타일 */

.main-container {
    max-width: var(--container-width); /* 1200px로 통일 */
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 공통 섹션 헤더 스타일 --- */
.section-header {
    margin-bottom: 30px; /* 공통 여백 기본값 */
    text-align: left !important; 
    display: flex;
    align-items: flex-end;
    gap: 20px;
    position: relative;
}

.section-header h3 {
    font-size: 28px; 
    font-weight: 800; 
    line-height: 1.2;
    color: #111;
    font-family: 'Lexend', 'Pretendard', sans-serif;
}

.section-header .btn-more-plus {
    position: absolute;
    right: 0;
    bottom: 5px;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.section-header .btn-more-plus i {
    font-size: 18px;
}

/* 1. 모집 현황 & 프로그램 롤링 섹션 */
.main-program-status {
    padding: 0 0 10px; 
    margin-top: -20px; /* 배너와 간격을 40px 추가 확보 (-60px -> -20px) */
    background-color: transparent; 
    border-radius: 30px; 
    margin-bottom: 0; 
}

/* 프로그램 타이틀 바로 아래 여백 */
.main-program-status .section-header {
    margin-bottom: 40px; 
}

.status-flex-wrap {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

/* 좌측: 상태 박스 */
.status-info-box {
    flex: 0 0 380px;
    padding: 50px;
    border-radius: 30px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.status-info-box.is-open {
    background: linear-gradient(135deg, var(--point-color) 0%, #0033aa 100%);
    box-shadow: 0 20px 40px rgba(var(--point-color-rgb), 0.3);
}

.status-info-box.is-ready {
    background: linear-gradient(135deg, #444 0%, #222 100%);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.status-info-box .badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255,255,255,0.2);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
    width: fit-content;
}

.status-info-box .status-title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
}

.status-info-box .status-title .highlight {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 8px;
    text-decoration-color: rgba(255,255,255,0.4);
}

.status-info-box .status-period {
    font-size: 16px;
    opacity: 0.8;
    margin-bottom: 40px;
}

.status-info-box .status-btns a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: #fff;
    color: #000;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.status-info-box .status-btns a:hover {
    transform: translateX(5px);
}

.status-info-box.is-ready .status-btns a {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

/* 우측: 슬라이더 박스 */
.program-slider-box {
    flex: 1;
    min-width: 0; /* Swiper 버그 방지 */
    position: relative;
}

.main-program-swiper-container {
    padding: 10px 0; /* 상하 여백 추가하여 롤오버 시 잘림 방지 */
}

.main-program-swiper {
    overflow: visible !important; /* PC에서 롤오버 효과 가시성 확보 */
}

@media (max-width: 1024px) {
    .main-program-swiper {
        overflow: hidden !important; /* 모바일 페이드 효과 시 영역 밖 노출 방지 */
    }
    /* 모바일 페이드 전환 시 부드러운 투명도 처리 */
    .main-program-swiper .swiper-slide {
        transition: opacity 0.8s ease;
    }
}

.main-program-swiper .swiper-slide {
    font-size: 0; /* 불필요한 공백 렌더링 방지 */
}

.main-program-swiper .swiper-slide > * {
    font-size: initial; /* 자식 요소에서 폰트 사이즈 복구 */
}

.program-card {
    display: block;
    height: 420px;
    border-radius: 30px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.program-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.program-card .card-bg-wrap {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
    background: #f8f9fa;
    overflow: hidden;
}

.program-card .card-bg-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.program-card:hover .card-bg-wrap img {
    transform: scale(1.1);
}

.program-card .card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,0.7) 100%);
    z-index: 2;
}

.program-card .card-content {
    position: relative;
    z-index: 3;
    height: 100%;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* 하단 정렬 */
}

.program-card .content-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.program-card .badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255,255,255,0.9);
    color: var(--point-color);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.program-card .title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.4;
    color: #fff;
    word-break: keep-all;
    margin: 0;
}

.program-card .title .highlight {
    background-color: var(--point-color);
    color: #fff;
    padding: 2px 8px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    border-radius: 4px;
}

.program-card .no-thumb {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.program-card .bg-pattern {
    width: 100%; height: 100%;
    background-image: radial-gradient(var(--point-color) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
}

.slider-nav {
    position: absolute;
    bottom: -50px;
    right: 0;
    display: flex;
    gap: 10px;
}

.slider-nav .swiper-button-prev,
.slider-nav .swiper-button-next {
    position: static;
    width: 40px; height: 40px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 0;
}

.slider-nav .swiper-button-prev::after,
.slider-nav .swiper-button-next::after {
    font-size: 16px;
    font-weight: 900;
    color: #000;
}

/* 2. 비즈니스 허브 */
.main-business-hub {
    padding: 110px 0; 
    background-color: transparent;
}

.hub-header {
    margin-bottom: 40px; 
}

.hub-header .big-title {
    font-family: 'Lexend', sans-serif;
    font-size: 80px;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -2px;
    color: #111;
    text-align: left;
    margin: 0;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.main-business-hub.is-animated .big-title {
    opacity: 1;
    transform: translateY(0);
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.hub-item {
    display: block;
    position: relative;
    height: 300px;
    border-radius: 30px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hub-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.hub-item .bg-img {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}

.hub-item .bg-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hub-item:hover .bg-img img {
    transform: scale(1.1);
}

.hub-item .overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 2;
}

.hub-item .text-box {
    position: relative;
    z-index: 3;
    height: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    text-align: left;
}

.hub-item h4 {
    font-family: 'Lexend', sans-serif;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.hub-item p {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    word-break: keep-all;
    line-height: 1.4;
}

/* 3. 라이브 보드 (배틀리카 스타일) */
.main-live-board {
    padding: 60px 0; 
    background-color: transparent;
}

.board-flex {
    display: flex;
    gap: 60px;
}

.board-col {
    flex: 1;
}

.board-col .col-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #000;
}

.board-col .col-header h3 {
    font-family: 'Lexend', sans-serif;
    font-size: 26px;
    font-weight: 800;
}

/* 3. 뉴스 그리드 섹션 */
.main-news-board {
    padding: 60px 0; 
    background-color: transparent; 
}

/* 소식 타이틀 하단 여백 10px 추가 반영 (10px -> 20px) */
.main-news-board .section-header {
    margin-bottom: 40px;
}

.news-header p {
    font-size: 16px;
    color: #888;
    margin-bottom: 5px;
}

/* 뉴스 그리드 직접 연동 스타일 */
.news-grid-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.news-card-item {
    background: #fff;
    border-radius: 30px; /* 라운드 수치 통일 */
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    font-size: 0; /* 불필요한 공백 렌더링 방지 */
}

.news-card-item > * {
    font-size: initial; /* 자식 요소에서 폰트 사이즈 복구 */
}

.news-card-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.news-card .thumb {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-card .thumb img {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

.news-card:hover .thumb img {
    transform: scale(1.1);
}

.news-card .txt {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card .category {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--point-color);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.news-card .title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 15px;
    height: 54px; /* 2줄 높이 고정 */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: keep-all;
}

.news-card .date {
    font-size: 14px;
    color: #aaa;
}

/* 데이터 없음 가이드 스타일 */
.no-data-guide {
    padding: 50px;
    text-align: center;
    background: #fff;
    border: 2px dashed #eee;
    border-radius: 20px;
    color: #999;
}

/* 4. 하단 CTA */
.main-bottom-cta {
    padding: 60px 0; 
    background: #000;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.main-bottom-cta .cta-title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 20px;
}

.main-bottom-cta .cta-desc {
    font-size: 18px;
    opacity: 0.6;
    margin-bottom: 40px;
}

.main-bottom-cta .cta-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.main-bottom-cta .btn-primary {
    padding: 18px 40px;
    background: var(--point-color);
    color: #fff;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.main-bottom-cta .btn-primary:hover {
    background: #0044cc; /* 조금 더 짙은 파란색 */
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.main-bottom-cta .btn-outline {
    padding: 18px 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.main-bottom-cta .btn-outline:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: translateY(-5px);
}

/* 반응형 */
@media (max-width: 1024px) {
    .status-flex-wrap {
        flex-direction: column;
    }
    .status-info-box {
        flex: none;
        width: 100%;
    }
    .hub-grid {
        grid-template-columns: 1fr;
    }
    .board-flex {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .main-program-status {
        background-color: transparent; 
        padding: 20px 0 10px;
        margin-top: 0; 
    }
    .hub-header .big-title {
        font-size: 48px;
        line-height: 1.1;
    }
    .status-info-box .status-title {
        font-size: 28px;
    }
    .main-bottom-cta .cta-title {
        font-size: 30px;
    }
    .main-bottom-cta .cta-btns {
        flex-direction: column;
    }
    .news-grid-list {
        grid-template-columns: 1fr;
    }
    .news-card .thumb {
        height: auto;
        aspect-ratio: 16 / 10; /* 모바일에서 더 시원한 비율 제공 */
    }
}
