/* ===================================
   서브페이지 공통 스타일
   =================================== */

/* 전체 레이아웃 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fff;
}

/* ===================================
   서브 타이틀 박스
   =================================== */
.sub-title-box {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)), url('../img/green-7453780_1920.jpg') center/cover no-repeat;
    color: #fff;
    padding: 80px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sub-title-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    z-index: 0;
}

.sub-title-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.sub-title {
    font-size: 64px;
    font-weight: 300;
    margin-bottom: 10px;
    letter-spacing: 8px;
    text-transform: uppercase;
    font-family: 'Arial', sans-serif;
}

.sub-subtitle {
    font-size: 24px;
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: 0;
    letter-spacing: 2px;
}

/* 브레드크럼 */
.breadcrumb {
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.breadcrumb ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    list-style: none;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.breadcrumb a {
    color: #fff;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    font-weight: 400;
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb span {
    opacity: 0.95;
    font-weight: 500;
}

.breadcrumb i {
    font-size: 12px;
    opacity: 0.6;
}

/* ===================================
   서브 메뉴 박스
   =================================== */
.sub-menu-box {
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sub-menu-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.sub-menu-list {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 0;
}

.sub-menu-list li {
    flex: 0 0 auto;
}

.sub-menu-list li a {
    display: block;
    padding: 22px 35px;
    text-align: center;
    color: #666;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    position: relative;
    transition: all 0.3s ease;
    background: transparent;
}

.sub-menu-list li a:hover {
    color: #333;
    background: #fff;
}

.sub-menu-list li.active a {
    color: #004e50;
    background: #fff;
    font-weight: 600;
    box-shadow: 0 -3px 0 0 #004e50 inset;
}

/* ===================================
   서브 컨텐츠 박스
   =================================== */
.sub-content-box {
    padding: 80px 20px;
    min-height: 60vh;
}

.sub-content-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 섹션 타이틀 */
.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    text-align: center;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
    text-align: center;
    margin-bottom: 60px;
}

/* 정보 그리드 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.info-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.info-card-icon {
    font-size: 48px;
    color: #00a651;
    margin-bottom: 20px;
}

.info-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.info-card-value {
    font-size: 24px;
    font-weight: 700;
    color: #00a651;
    margin-bottom: 10px;
}

.info-card-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 정보 테이블 */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.info-table th,
.info-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.info-table th {
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
    width: 200px;
}

.info-table td {
    color: #666;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
    border-bottom: none;
}

.info-table tr:hover {
    background: #fafafa;
}

/* 이미지 갤러리 */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: #fff;
}

.gallery-item-title {
    font-size: 18px;
    font-weight: 600;
}

/* 버튼 스타일 */
.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: #00a651;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #008a43;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 166, 81, 0.3);
}

.btn-outline {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    color: #00a651;
    text-decoration: none;
    border: 2px solid #00a651;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #00a651;
    color: #fff;
}

/* ===================================
   Notice Box (유의사항)
   =================================== */
.notice-section {
    margin: 60px 0 0 0;
}

.notice-box {
    background: #fffbf5;
    border-left: 4px solid #ff9800;
    padding: 25px 35px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.notice-box .notice-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 18px;
}

.notice-box .notice-title i {
    font-size: 20px;
    color: #ff9800;
}

.notice-box .notice-content {
    color: #666;
    line-height: 1.9;
    font-size: 14px;
}

.notice-box .notice-content p {
    margin-bottom: 10px;
    padding-left: 18px;
    position: relative;
}

.notice-box .notice-content p::before {
    content: '※';
    position: absolute;
    left: 0;
    color: #ff9800;
    font-weight: bold;
    font-size: 15px;
}

.notice-box .notice-content p:last-child {
    margin-bottom: 0;
}

/* ===================================
   푸터
   =================================== */
.theme-footer {
    background: #1a1a1a;
    color: #999;
    padding: 60px 20px 40px;
    width: 100%;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-section p,
.footer-section li {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 8px;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #00a651;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    font-size: 13px;
}

/* ===================================
   반응형 - 태블릿
   =================================== */
@media (max-width: 1024px) {
    .sub-title {
        font-size: 36px;
    }
    
    .sub-menu-list {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .sub-menu-list li a {
        padding: 18px 25px;
        font-size: 14px;
    }
}

/* ===================================
   반응형 - 모바일
   =================================== */
@media (max-width: 768px) {
    .sub-title-box {
        padding: 60px 20px 40px;
    }
    
    .sub-title {
        font-size: 28px;
    }
    
    .sub-subtitle {
        font-size: 16px;
    }
    
    .sub-menu-box {
        /* top: 60px; removed to fix white gap with position: relative */
        top: 0;
    }
    
    .sub-menu-list {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .sub-menu-list li {
        flex: 0 0 auto;
    }
    
    .sub-menu-list li a {
        padding: 14px 18px;
        font-size: 13px;
    }
    
    .sub-content-box {
        padding: 40px 20px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .info-table th {
        width: 100px;
        padding: 15px 10px;
        font-size: 14px;
    }
    
    .info-table td {
        padding: 15px 10px;
        font-size: 14px;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* 스크롤바 스타일 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #00a651;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #008a43;
}

/* 페이지 안내문 (User Request) */
.page_info {
    margin-top: 40px;
    padding: 20px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    list-style: none;
    color: #888;
}

.page_info li {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 6px;
    position: relative;
    padding-left: 15px;
}

.page_info li::before {
    content: '※';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 11px;
}
