@charset "utf-8";

/* Section Page Layout Styles */

/* Page Container */
.section-page {
    padding-top: 90px; /* Header height */
    min-height: 100vh;
    background: #f8f9fa;
}

/* Breadcrumb - Integrated into Banner */
.breadcrumb {
    background: transparent;
    padding: 0;
    border-bottom: none;
}

.breadcrumb-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.4);
}

.breadcrumb-current {
    color: #fff;
    font-weight: 500;
}

/* Section Banner */
.section-banner {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: #fff;
    padding: 30px 0 50px 0;
    text-align: center;
}

.section-banner h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 20px 0 10px 0;
}

.section-banner p {
    font-size: 1.1rem;
    opacity: 0.7;
}

/* Main Content Layout */
.section-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 30px;
    display: flex;
    gap: 40px;
}

/* Sidebar */
.section-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.sidebar-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    padding: 15px 20px;
    background: #ba0c2f;
    color: #fff;
    border-radius: 8px 8px 0 0;
}

.sidebar-menu {
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    /* overflow: hidden은 데스크톱 전용 - 모바일 칩 테두리 클리핑 방지를 위해 미디어쿼리로 이동 */
}

.sidebar-menu a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: all 0.3s;
    font-size: 15px;
}

.sidebar-menu a:last-child {
    border-bottom: none;
}

.sidebar-menu a:hover {
    background: #f5f5f5;
    color: #ba0c2f;
    padding-left: 25px;
}

.sidebar-menu a.active {
    background: #fff5f7;
    color: #ba0c2f;
    font-weight: 600;
    border-left: 4px solid #ba0c2f;
}

/* Main Area */
.section-main {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 40px;
    min-height: 500px;
}

.section-main h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.content-placeholder {
    color: #999;
    text-align: center;
    padding: 100px 0;
    font-size: 1.1rem;
}

.content-placeholder i {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    color: #ddd;
}

/* Greeting Page Visual Section */
.intro-visual {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    width: 100%;
    aspect-ratio: 166 / 100; /* 원본 이미지 비율(1.66:1) 유지 */
    background: #000;
}

.intro-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transition: transform 0.5s ease;
}

.intro-visual:hover img {
    transform: scale(1.05);
}

.visual-text {
    position: absolute;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    color: #fff;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.visual-text h3 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

.intro-visual p {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Product Detail Page Styles */
.product-detail {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.product-detail img {
    max-width: 100%;
    height: auto;
}

/* Dealers Page Styles */
.dealers-wrapper {
    display: flex; /* 상하 구조로 변경 */
    flex-direction: column;
    gap: 40px;
}





.list-area {
    width: 100%;
}

.center-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2열 명확화 및 오버플로우 방지 */
    gap: 20px;
}

.center-list li {
    display: flex;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.center-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-color: #ddd;
}

.center-region {
    background: #f8f9fa;
    color: #ba0c2f;
    font-weight: 700;
    padding: 20px 0; /* 좌우 여백을 빼고 너비 120px 안에서 중앙 정렬 */
    width: 120px; /* 고정 너비 확장 (4글자 + 여백 확보) */
    min-width: 120px;
    max-width: 120px;
    box-sizing: border-box; /* 패딩이 너비에 포함되도록 설정 */
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #ebebeb;
    font-size: 1.1rem;
}

.center-details {
    padding: 20px;
    flex: 1;
    text-align: left;
}

.center-details h3 {
    font-size: 1.15rem; /* 제목 글씨 약간 확대 */
    color: #333;
    margin: 0 0 10px 0;
    word-break: keep-all; /* 가로 넘침 방지 */
}

.center-details p {
    font-size: 0.95rem;
    color: #666;
    margin: 0 0 5px 0;
    word-break: keep-all; /* 가로 넘침 방지 */
    line-height: 1.4;
}

.center-details p i {
    color: #ba0c2f;
    width: 16px;
    margin-right: 5px;
}

/* 데스크톱 전용: 사이드바 메뉴 overflow 클리핑 */
@media screen and (min-width: 1025px) {
    .sidebar-menu {
        overflow: hidden;
    }
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .section-page {
        padding-top: 60px !important; /* 모바일 헤더 높이에 맞춤 */
        background: #f8f9fa !important; /* 배경색을 다시 밝은 톤으로 복구 */
    }

    .section-content {
        flex-direction: column;
        padding: 8px 20px 20px 20px; /* 상하 여백을 칩 간격(8px)과 동일하게 통일 */
        gap: 8px; /* 칩과 제목 사이 간격 = 칩-칩 간격과 동일 */
    }

    .section-sidebar {
        width: 100%;
    }

    .sidebar-menu {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        background: transparent !important;
        padding: 0 !important;
        gap: 8px !important;
        box-shadow: none !important;
        margin-top: 8px;
    }

    .sidebar-menu a {
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-width: 0;
        padding: 6px 12px !important; /* 더욱 콤팩트한 칩 사이즈 */
        border-radius: 20px;
        border: 1px solid rgba(0, 0, 0, 0.1);
        background: #fff;
        font-size: 13px;
        color: #333;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        transition: all 0.2s ease;
    }

    .sidebar-menu a:last-child {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* 데스크톱의 border-bottom: none 상속 초기화 */
    }

    .sidebar-menu a:hover {
        padding-left: 20px;
    }

    .sidebar-menu a.active {
        background: #ba0c2f !important;
        color: #fff !important;
        border-color: #ba0c2f !important;
        font-weight: 500;
    }

    /* 모바일 브레드크럼 위치 조정 (타이틀과 간격 확보) */
    .breadcrumb {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        padding-top: 15px !important; /* 헤더로부터 살짝 뗌 */
        margin-bottom: 5px !important; /* 타이틀과의 조화로운 간격 확보 */
        background: transparent !important;
        z-index: 5;
    }

    .breadcrumb-inner {
        padding: 0 15px;
        justify-content: flex-start !important; /* 좌측 정렬 */
        color: rgba(255, 255, 255, 0.7) !important;
    }

    .breadcrumb a {
        color: rgba(255, 255, 255, 0.7) !important;
    }

    .breadcrumb-separator {
        color: rgba(255, 255, 255, 0.4) !important;
    }

    .breadcrumb-current {
        color: #fff !important;
    }

    .section-banner {
        padding: 5px 0 45px 0 !important; /* 하단 패딩 확보로 컨텐츠와 분리감 조성 */
        background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%) !important;
        text-align: left !important;
    }

    .section-banner h1 {
        margin: 5px 0 5px 0 !important;
        padding-left: 15px !important;
        text-align: left !important;
    }

    .section-banner p {
        padding-left: 15px !important;
        text-align: left !important;
    }

    .section-main {
        padding: 25px;
    }
}

@media screen and (max-width: 600px) {
    .section-banner {
        padding: 10px 15px 30px 15px !important;
        text-align: left !important;
    }

    .section-banner h1 {
        font-size: 1.8rem;
    }

    .sidebar-menu a {
        min-width: 0;
        border: 1px solid rgba(0, 0, 0, 0.1);
        padding: 8px 12px !important;
    }

    /* 모바일에서 제품 상세 이미지를 화면 폭에 꽉 차게 */
    .section-main {
        padding: 15px 8px;
    }

    /* 모바일 인사말 비주얼 섹션 최적화 */
    .intro-visual {
        margin-bottom: 25px;
        border-radius: 8px;
        aspect-ratio: 1.66 / 1; /* 일관성 있는 비율 유지 */
    }

    .visual-text {
        left: 20px;
        width: calc(100% - 40px);
    }

    .visual-text h3 {
        font-size: 1.2rem !important; /* 캐러셀 스타일 체감 반영 */
        margin-bottom: 8px;
    }

    .visual-text p {
        font-size: 0.85rem !important;
    }

    /* 제품 상세페이지 모바일 최적화 */
    .section-content {
        padding: 20px 0 !important; /* 좌우 패딩 제거하여 전체 너비 확보 */
    }

    .section-main h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .section-main {
        padding: 15px 5px !important; /* 사이드 간격 최소화 */
    }

    .product-detail {
        padding: 15px 0 !important; /* 내부 패딩 제거하여 이미지 너비 확보 */
        border-radius: 0;
        box-shadow: none;
    }

    .product-detail img {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Dealers Page Mobile Styles */
    .dealers-wrapper {
        gap: 20px;
    }

    .map-area {
        padding: 20px 10px;
    }

    .center-list {
        grid-template-columns: 1fr; /* 모바일에서는 1열 */
    }

    .center-list li {
        flex-direction: column;
    }

    .center-region {
        border-right: none;
        border-bottom: 1px solid #ebebeb;
        padding: 10px;
        min-width: auto;
    }

    .center-details {
        padding: 15px;
    }
}

/* ===== Purchase Page Styles ===== */

/* Section Title */
.purchase-section-title {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eee;
}

.purchase-section-title i {
    color: #ba0c2f;
    margin-right: 8px;
}

/* Horizontal Step Diagram */
.purchase-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
    padding: 30px 10px;
    background: #f8f9fa;
    border-radius: 12px;
}

.purchase-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    max-width: 200px;
}

.step-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ba0c2f 0%, #8a0a24 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(186, 12, 47, 0.3);
}

.step-num {
    font-size: 0.75rem;
    font-weight: 700;
    color: #ba0c2f;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.step-label {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
}

.step-desc {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.5;
}

.step-arrow {
    display: flex;
    align-items: center;
    padding-top: 24px;
    color: #ccc;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin: 0 8px;
}

.step-arrow-down {
    display: none;
}

/* Benefits Cards */
.purchase-benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.benefit-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
}

.benefit-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
}

.benefit-card--green .benefit-card-header {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: #fff;
}

.benefit-card--blue .benefit-card-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: #fff;
}

.benefit-card-header h3 {
    font-size: 1.15rem;
    margin: 0;
    color: #fff;
}

.benefit-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.benefit-card-subtitle {
    padding: 16px 24px 0;
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Benefit List */
.benefit-list {
    list-style: none;
    padding: 16px 24px 24px;
    margin: 0;
}

.benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.benefit-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.benefit-list-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #e8f5e9;
    color: #28a745;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.benefit-list li strong {
    display: block;
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 2px;
}

.benefit-list li span {
    font-size: 0.85rem;
    color: #888;
}

/* Subsidy Timeline */
.subsidy-timeline {
    padding: 16px 24px 24px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    padding-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 32px;
    bottom: 0;
    width: 2px;
    background: #d0e2ff;
}

.timeline-item--last::before {
    display: none;
}

.timeline-marker {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0d6efd;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
    z-index: 1;
}

.timeline-marker--done {
    background: #28a745;
    font-size: 0.75rem;
}

.timeline-content {
    flex: 1;
    padding-top: 4px;
}

.timeline-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.timeline-meta {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 4px;
}

.timeline-meta i {
    margin-right: 4px;
}

.timeline-actor {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.actor-buyer {
    background: #fff3e0;
    color: #e65100;
}

.actor-seller {
    background: #fce4ec;
    color: #ba0c2f;
}

.actor-gov {
    background: #e3f2fd;
    color: #0d47a1;
}

/* Contact Bar */
.purchase-contact-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: #333;
    color: #fff;
    border-radius: 12px;
    font-size: 1.05rem;
}

.purchase-contact-bar i {
    color: #ba0c2f;
    font-size: 1.3rem;
}

.purchase-contact-bar strong {
    font-size: 1.3rem;
    color: #fff;
    letter-spacing: 1px;
}

/* Purchase Page Responsive */
@media screen and (max-width: 768px) {
    .purchase-steps {
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 20px;
    }

    .purchase-step {
        max-width: 100%;
        width: 100%;
    }

    .step-arrow {
        display: none;
    }

    .step-arrow-down {
        display: block;
        color: #ccc;
        font-size: 1.2rem;
        padding: 8px 0;
        text-align: center;
    }

    .step-icon {
        width: 56px;
        height: 56px;
        font-size: 1.3rem;
    }

    .purchase-benefits {
        grid-template-columns: 1fr;
    }
}

/* YouTube Videos Grid */
.yt-videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.yt-video-item {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.yt-video-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.yt-video-item iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 12px;
}

/* YouTube Shorts Grid */
.shorts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.shorts-item {
    position: relative;
    width: 100%;
    padding-bottom: 177.78%; /* 9:16 aspect ratio */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shorts-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.shorts-item iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 12px;
}

@media screen and (max-width: 1024px) {
    .shorts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media screen and (max-width: 600px) {
    .yt-videos-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .yt-video-item {
        border-radius: 8px;
    }

    .yt-video-item iframe {
        border-radius: 8px;
    }

    .shorts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .shorts-item {
        border-radius: 8px;
    }

    .shorts-item iframe {
        border-radius: 8px;
    }
}
