@charset "utf-8";

/**
 * ZZAN STUDIO Official Layout - Type B (Newsroom/Blog) 메인 전용 스타일
 */

/* ============================================================
   [핵심] 여백 제로화 및 푸터 밀착 (근본 해결 영역)
   ============================================================ */

/* 메인 Type B 전용 전체 컨테이너 여백 박멸 */
.layout-type_b .zzan-main-container {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.layout-type_b .type-b-container {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* 퀵링크 섹션 - 최하단 배치 시 여백 완전 제거 및 상단 여백 조정 */
.layout-type_b .quick-links-section {
    margin-bottom: 0 !important;
    padding-top: 60px !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

/* 푸터 상단 여백 및 경계선 제거 */
.layout-type_b .zzan-footer {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
}

/* 푸터 내부 콘텐츠의 상단 패딩으로 레이아웃 유지 */
.layout-type_b .zzan-footer .footer-inner {
    padding-top: 80px;
}

/* ============================================================
   [기본 레이아웃]
   ============================================================ */

.type-b-container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 30px 20px 0 20px;
    font-family: 'Pretendard', sans-serif;
}

/* 뉴스룸 섹션 공통 */
.type-b-section { margin-bottom: 80px; }

/* 1. 하이라이트 섹션 (상단 1열 와이드 -> PC 50%) */
.type-b-highlight-wrap {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
}

/* 섹션 1: 60/40 분할 */
.type-b-top-wrap {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    align-items: stretch;
}

.type-b-left-60 {
    flex: 0 0 calc(60% - 20px);
    max-width: calc(60% - 20px);
}

.type-b-right-40 {
    flex: 0 0 calc(40% - 20px);
    max-width: calc(40% - 20px);
}

.type-b-left-60, .type-b-left-50 {
    flex: 0 0 calc(60% - 20px);
    max-width: calc(60% - 20px);
}

.type-b-right-40, .type-b-right-50 {
    flex: 0 0 calc(40% - 20px);
    max-width: calc(40% - 20px);
}

/* 위젯 가로 너비 고정 */
.type-b-section .zzan-widget-container,
.type-b-section .zzan-list-hybrid,
.type-b-section .zzan-grid,
.type-b-section .zzan-webzine-item,
.type-b-section .zzan-card,
.type-b-section .zzan-list-normal,
.type-b-section .zzan-hybrid-li {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.type-b-section .zzan-webzine-item {
    display: block !important;
}

/* 섹션 4 전용 50:50 */
.type-b-top-wrap.s4 {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
}

.type-b-top-wrap.s4 .type-b-left-50 {
    flex: 0 0 calc(50% - 20px);
    max-width: calc(50% - 20px);
}

.type-b-top-wrap.s4 .type-b-right-50 {
    flex: 0 0 calc(50% - 20px);
    max-width: calc(50% - 20px);
}

/* 섹션 4 슬라이더 높이 보정 */
.type-b-top-wrap.s4 .zzan-slider-v2-container,
.type-b-top-wrap.s4 .zzan-slider-frame {
    height: 290px !important; 
    padding: 0 !important;
}

.type-b-top-wrap.s4 .zzan-ov-thumb {
    height: 290px !important;
    padding-bottom: 0 !important;
}

.type-b-top-wrap.s4 .zzan-ov-thumb img {
    height: 100% !important;
    object-fit: cover !important;
}

@media screen and (max-width: 1024px) {
    .type-b-top-wrap.s4 { display: block; }
    .type-b-top-wrap.s4 .type-b-left-50, 
    .type-b-top-wrap.s4 .type-b-right-50 { 
        max-width: 100%; 
        width: 100%; 
        margin-bottom: 30px; 
    }
}

/* 섹션 2: 100% 카드갤러리 */
.type-b-full {
    width: 100%;
    margin-bottom: 80px;
}

/* 모바일 대응 */
@media screen and (max-width: 1024px) {
    .type-b-top-wrap { display: block; }
    .type-b-left-40, .type-b-right-60 { max-width: 100%; width: 100%; margin-bottom: 40px; }
    
    .type-b-full .zzan-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media screen and (max-width: 768px) {
    .type-b-top-wrap { display: block; }
    .type-b-left-40, .type-b-right-60 { max-width: 100%; width: 100%; margin-bottom: 30px; }
    
    .type-b-full .zzan-grid {
        grid-template-columns: 1fr !important;
    }
    
    .type-b-triple {
        grid-template-columns: 1fr !important;
    }
    
    .type-b-section { margin-bottom: 60px; }
}

/* 섹션 3: 50/50 분할 (2열) */
.type-b-triple {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    width: 100%;
    box-sizing: border-box;
}

/* 뉴스룸 전용 퀵링크 섹션 (하단 배치용) */
.type-b-section.quick-links-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 100px 0 0 0 !important;
    background: var(--zzan-select-bg);
    margin-top: 80px;
}

.type-b-section.quick-links-section .type-a-container {
    padding-bottom: 100px !important;
}

.type-b-section.quick-links-section .bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 5;
}

/* Type B 전용 퀵링크 섹션 */
.type-b-quick-wrapper {
    position: relative;
    padding: 0 10px;
}

.type-b-quick-wrapper.no-slide .swiper-wrapper {
    display: flex;
    justify-content: flex-start;
}

.type-b-quick-wrapper .swiper-container {
    overflow: visible !important;
    padding: 40px 0;
    margin: -40px 0;
}

.type-b-quick-wrapper .swiper-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.4s ease;
}

.type-b-quick-wrapper .swiper-slide-visible {
    opacity: 1;
    visibility: visible;
}

/* 개별 카드 디자인 */
.type-b-quick-card {
    display: block !important;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #1a1a1b;
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 5;
}

.type-b-quick-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    text-decoration: none;
}

.type-b-quick-card .card-bg {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    transition: all 0.6s ease;
    z-index: 1;
}

.type-b-quick-card:hover .card-bg {
    transform: scale(1.1);
    opacity: 0.6;
}

.type-b-quick-card .card-content {
    position: relative;
    z-index: 10;
    height: 100%;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    pointer-events: none;
}

.type-b-quick-card .card-icon {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.type-b-quick-card:hover .card-icon {
    background: var(--zzan-neon);
    transform: rotate(-5deg) scale(1.1);
}

.type-b-quick-card:hover .card-icon img {
    filter: brightness(0);
}

.type-b-quick-card .card-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.type-b-quick-card .card-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.3;
    word-break: keep-all;
}

.type-b-quick-card .card-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.type-b-quick-card .card-more {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--zzan-neon);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 15px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.type-b-quick-card:hover .card-more {
    opacity: 1;
    gap: 12px;
}

.type-b-quick-card .card-more svg {
    width: 16px;
    height: 16px;
}

/* 화살표 스타일 */
.type-b-quick-section .quick-nav-prev,
.type-b-quick-section .quick-nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 50;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.type-b-quick-section .quick-nav-prev:hover,
.type-b-quick-section .quick-nav-next:hover {
    background: var(--zzan-neon);
    color: #000;
    transform: translateY(-50%) scale(1.1);
}

.type-b-quick-section .quick-nav-prev { left: -22px; }
.type-b-quick-section .quick-nav-next { right: -22px; }

.type-b-quick-section .quick-nav-prev svg,
.type-b-quick-section .quick-nav-next svg {
    width: 24px;
    height: 24px;
}

/* 페이지네이션 */
.type-b-quick-section .quick-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.type-b-quick-section .quick-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.2);
    opacity: 1;
    transition: all 0.3s ease;
}

.type-b-quick-section .quick-pagination .swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 4px;
    background: var(--zzan-neon);
}

/* 모바일 대응 */
@media screen and (max-width: 1024px) {
    .type-b-triple { grid-template-columns: 1fr 1fr; }
}

@media screen and (max-width: 768px) {
    .type-b-grid, .type-b-triple { grid-template-columns: 1fr; }
    .type-b-section { margin-bottom: 60px; }

    /* Type B 하이브리드 위젯 모바일 최적화 */
    .type-b-left-60, .type-b-right-40, .type-b-left-50, .type-b-right-50 {
        max-width: 100% !important;
        flex: 0 0 100% !important;
        width: 100% !important;
    }

    .type-b-left-60 {
        margin-bottom: 60px !important; /* 섹션 1 좌측 위젯 하단 여백 추가 */
    }

    .type-b-section .zzan-widget-list {
        display: block !important;
    }

    .type-b-section .list-item {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 20px !important;
    }

    /* 하이브리드 위젯 첫 번째 아이템(큰 썸네일) 조정 */
    .type-b-left-60 [data-list-type='hybrid'] .first-item .thumb-area {
        height: 200px !important;
    }

    /* 웹진형 위젯 모바일 스타일 */
    .type-b-right-40 [data-list-type='card_webzine'] .list-item {
        display: flex !important;
        gap: 15px;
        align-items: center;
    }

    .type-b-right-40 [data-list-type='card_webzine'] .thumb-area {
        width: 100px !important;
        height: 80px !important;
        flex-shrink: 0;
        margin-bottom: 0 !important;
    }

    .type-b-right-40 [data-list-type='card_webzine'] .title {
        font-size: 14px !important;
        margin-bottom: 5px !important;
    }
}
