/* layout.css - 정적페이지 공통 스타일 */


/* ================================
   LAYOUT
   ================================ */
.section-block {
    margin-bottom: var(--section-gap);
}

/* ================================
   HERO BANNER (공통)
   슬라이드 형태로 여러 이미지+텍스트+링크 교대 표시.
   각 슬라이드는 배경 이미지(background-image) 또는 주황 박스(폴백) 형태 모두 가능.
   위치/전환 애니메이션은 Swiper가 처리.
   ================================ */
.hero-banner {
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--color-primary); /* 로딩 전 영역 표시용 */
    height: 410px;
}

/* 슬라이드 - 시각적 스타일만 */
.hero-banner .swiper-slide {
    background-color: var(--color-primary);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 60px;
}

.hero-banner__content {
    max-width: 540px;
}

.hero-banner__title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-banner__desc {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 32px;
}

/* 좌우 버튼 - hover 시 스며들기 */
.hero-banner__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
}

    .hero-banner__btn--prev { left: 20px; }
    .hero-banner__btn--next { right: 20px; }

    .hero-banner__btn:hover {
        background-color: rgba(255, 255, 255, 0.4);
    }

.hero-banner:hover .hero-banner__btn {
    opacity: 1;
}

/* Swiper 페이지네이션 커스텀 */
.hero-banner .swiper-pagination-bullet {
    background-color: var(--color-border);
    opacity: 1;
}

.hero-banner .swiper-pagination-bullet-active {
    background-color: var(--color-text);
}

/* ================================
   HERO (메인 전용 - parallax swiper)
   ================================ */
.hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    background-color: var(--color-primary);
    background-image: linear-gradient(135deg, var(--color-primary) 0%, #c45000 100%);
    aspect-ratio: 16 / 6;
    min-height: 300px;
    max-height: 460px;
}

.hero__swiper {
    height: 100%;
}

.hero__swiper .swiper-slide {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 60px;
}

.slide-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.slide-info {
    max-width: 540px;
    position: relative;
    z-index: 1;
}

.slide-visual {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-visual__inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-visual img {
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
    display: block;
}

.hero__title {
    font-size: clamp(1.5rem, 2.8vw, 2.25rem);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
    margin-bottom: clamp(0.75rem, 1.2vw, 1rem);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}

.hero__desc {
    font-size: clamp(0.9375rem, 1.4vw, 1.125rem);
    line-height: 1.9;
    margin-bottom: clamp(1.5rem, 2.5vw, 2rem);
    opacity: 0.85;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.15);
}

/* 좌우 버튼 */
.hero__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
}

    .hero__btn--prev { left: 20px; }
    .hero__btn--next { right: 20px; }

    .hero__btn:hover {
        background-color: rgba(255, 255, 255, 0.4);
    }

.hero .swiper-pagination {
    bottom: 20px;
}

.hero .swiper-pagination-bullet {
    background-color: var(--color-border);
    opacity: 1;
}

.hero .swiper-pagination-bullet-active {
    background-color: var(--color-text);
}

/* ================================
   PAGE TITLE (공통 - 5,6,7페이지)
   ================================ */
.page-title {
    text-align: center;
    margin-bottom: var(--section-gap);
}

.page-title__main {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-title__sub {
    font-size: 18px;
}


/* ================================
   CARD (공통 카드 기본)
   ================================ */
.card {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--color-white);
}

/* ================================
   PANEL LAYOUT (좌 타이틀 + 우 콘텐츠)
   ================================ */
.panel-layout {
    display: flex;
    gap: 60px;
}

.panel-layout__head {
    font-size: 24px;
    font-weight: 700;
    flex: 1 1 0;
    min-width: 0;
}

.panel-layout__body {
    flex: 2 1 0;
    min-width: 0;
}

/* ================================
   CTA (공통 하단 CTA)
   ================================ */
.cta {
    text-align: center;
    padding: var(--section-gap) 0;
}

.cta__title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta__desc {
    font-size: 16px;
    margin-bottom: 32px;
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 768px) {

    /* 메인 히어로 */
    .hero {
        aspect-ratio: unset;
        height: clamp(280px, 50vw, 360px);
    }

    .slide-inner {
        padding: 40px 24px;
        align-items: center;
    }

    .slide-visual {
        display: none;
    }

    /* 히어로 배너 - 고정 height 대신 비율로 */
    .hero-banner {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .hero-banner .swiper-slide {
        padding: 24px 20px;
        align-items: flex-end;
    }

    .hero-banner__title {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .hero-banner__desc {
        font-size: 14px;
        margin-bottom: 16px;
    }

    /* 패널 레이아웃 */
    .panel-layout {
        flex-direction: column;
        gap: 24px;
    }

    /* 페이지 타이틀 */
    .page-title__main {
        font-size: 26px;
    }

    .page-title__sub {
        font-size: 15px;
    }

    /* CTA */
    .cta__title {
        font-size: 24px;
    }

    .cta__desc {
        font-size: 14px;
        margin-bottom: 24px;
    }
}