/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

/* --- Reset & Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #f8f8f8;
    color: #333;
    -webkit-font-smoothing: antialiased;
}
/* --- 모든 페이지 h2 제목 스타일 통일 --- */
h2 {
    font-size: 2.5rem; /* 원하는 크기로 조절 */
    text-align: center;
    margin-bottom: 20px;
}
/* --- 모든 페이지 h3 제목 스타일 통일 --- */
h3 {
    font-size: 2.0rem; /* 원하는 크기로 조절 */
    margin-bottom: 20px;
}
/* --- 모든 페이지 p 본문 스타일 통일 --- */
p {
    font-size: 1rem; /* 원하는 크기로 조절 */
    line-height: 1.6; /* 줄 간격 */
    color: #555; /* 기본 글자색 */
}
a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 40px; /* 페이지 상하 여백 추가 */
}

/* --- Sub-page Header (메인 외 모든 페이지) --- */
header {
    display: flex;
    align-items: center;
    padding: 20px 40px;
    color: #333;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.logo {
    flex-shrink: 0;
}
.logo a {
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}

nav {
    flex-grow: 1;
    text-align: center;
}
nav a {
    margin: 0 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.header-contact {
    flex-shrink: 0;
}
.contact-button {
    border: 1px solid #333;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background-color 0.3s, color 0.3s;
}
.contact-button:hover {
    background-color: #333;
    color: #fff;
}

.logo .logo-main {
    display: block;
    font-size: 1.5rem;
}
.logo .logo-sub {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    color: #999;
}

/* --- Main Page Hero Section (index.html 전용) --- */
.hero-section {
    height: 100vh; /* 화면 높이를 100% 채움 */
    position: relative;
    background-image: url('main-background.jpg'); /* 배경 이미지 지정 */
    background-size: cover;
    background-position: center;
    
    /* Flexbox를 이용한 중앙 정렬 */
    display: flex;
    align-items: flex-start; /* 세로 상단 정렬로 변경 */
    justify-content: center; /* 가로 중앙 정렬은 유지 */
    padding-top: 5vh; /* 화면 상단에서부터의 거리 조절 */

    text-align: center;
    color: #fff;
}

/* 실제 콘텐츠는 필터 위에 위치하도록 설정 */
.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content .logo {
    margin-bottom: 30px;
}
.hero-content .logo a {
    line-height: 1.2;
}
.hero-content .logo .logo-main {
    display: block;
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 8px;
    color: navy;
    letter-spacing: 25px; /* 자간 17px 추가 */
}
.hero-content .logo .logo-sub {
    display: block;
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 3px;
    color: black;
    margin-top: 10px;
    letter-spacing: 17px; /* 자간 17px 추가 */
}

.hero-content .main-nav a {
    position: relative;
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    margin: 0 20px;
    padding: 10px 5px;
    transition: color 0.3s, transform 0.3s;
}

.hero-content .main-nav a:hover {
    transform: scale(1.1); /* 확대 효과 */
}

/* --- Program & Other Pages Content Styles --- */
.page-title-section {
    text-align: center;
    padding-bottom: 60px;
}
.page-title-section h2 {
    font-size: 2.0rem;
    margin-bottom: 15px;
}
.page-title-section p {
    font-size: 1.1rem;
    color: #666;
}

.program-card {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
    background-color: #fff;
    padding: 40px;
}
.program-card.reverse {
    flex-direction: row-reverse;
}
.program-card img {
    width: 45%;
    object-fit: cover;
    border-radius: 8px; /* 기존 스타일 유지 */
}
.program-details {
    width: 55%;
}
.program-details h3 {
    font-size: 2.0rem; /* ★★★ 제목 크기 통일 ★★★ */
    margin-bottom: 15px; /* 기본값으로 유지 */
    display: flex; /* 이모티콘과 텍스트를 한 줄에 정렬 */
    align-items: center; /* 세로 가운데 정렬 */
    gap: 10px; /* 제목과 이모티콘 사이 간격 */
}

.program-details h3 .program-emoji {
    font-size: 2.0rem; /* 이모티콘 크기도 제목과 동일하게 */
    line-height: 1; /* 이모티콘 줄 높이 조절 */
}
.program-details p {
    line-height: 1.8;
    margin-bottom: 30px;
    color: #555;
}
.price-table .price-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}
.price-item span:last-child {
    font-weight: 700;
}
.cta-button {
    display: inline-block;
    background-color: #333;
    color: #fff;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 30px;
    transition: background-color 0.3s;
    text-align: center;
    margin-top: 40px;
}
.cta-button:hover {
    background-color: #000;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: #fff;
    padding: 60px;
}
.info-section h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    border-bottom: 2px solid #333;
    padding-bottom: 15px;
}
.info-section ul {
    list-style: none;
}
.info-section li {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.8;
}

.contact-box {
    text-align: center;
    padding: 60px;
    background-color: #fff;
    margin-top: 60px;
}
.contact-box h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}
.contact-box p {
    color: #666;
    margin-bottom: 25px;
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    background: #fff;
    padding: 60px;
}
.about-content img {
    width: 30%;
}
.about-content .about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.about-content .about-text p, .about-content .about-text li {
    line-height: 2;
    color: #555;
    margin-bottom: 15px;
}
.about-content .about-text ul {
    list-style-position: inside;
}


/* --- Footer --- */
.site-footer {
    background-color: #222;
    color: #a0a0a0;
    padding: 50px 40px;
    font-size: 0.85rem;
    font-weight: 300;
}
.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}
.footer-info p {
    margin: 5px 0;
}
.footer-info .copyright {
    margin-top: 15px;
    color: #777;
}
.footer-social a {
    color: #fff;
    font-weight: 500;
    margin-left: 20px;
}
.footer-social a:hover {
    color: #ccc;
}


/* --- Mobile Responsive (모든 반응형 코드를 여기에 통합) --- */
@media (max-width: 768px) {
    .container {
        padding: 40px 20px;
    }
    
    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

    .hero-content .logo .logo-main {
        font-size: 2.5rem;
    }

    .program-card, .about-content {
        flex-direction: column !important;
        padding: 20px;
    }
    .program-card img, .program-details,
    .about-content img, .about-content .about-text {
        width: 100%;
    }

    .info-grid {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }

    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
    .footer-info { order: 2; }
    .footer-social { order: 1; }
    .footer-logo { order: 3; }
    .footer-social a {
        margin-left: 0;
        margin-right: 20px;
    }
}

/* 네비게이션 바 기본 상태 */
nav {
    background-color: transparent;   /* 기본 투명 */
    transition: background-color 0.3s ease;
    padding: 10px 0;
    text-align: center;   /* 메뉴 중앙 정렬 */
}

/* 마우스를 nav 전체에 올렸을 때 */
nav:hover {
    background-color: white;   /* 전체 흰색 띠 */
}

/* 기본 메뉴 스타일 */
nav a {
    margin: 0 20px;
    font-size: 1rem;
    font-weight: 500;
    color: black;              /* 글씨는 기본 검정 */
    padding: 10px 15px;
    transition: all 0.3s ease;
    display: inline-block;     /* 박스처럼 hover 되도록 */
}

/* 특정 메뉴 hover */
nav a:hover {
    color: skyblue;            /* 글씨 하늘색 */
    transform: scale(1.1);     /* 글씨 확대 */
}
/* === 메인(히어로) 화면 전용 네비게이션 효과 === */
.hero-content { 
  width: 100%;                /* 네비 바가 화면 전체 폭을 가질 수 있게 */
}

.hero-content .main-nav {
  display: flex;
  justify-content: center;
  gap: 40px;
  width: 100%;
  padding: 12px 0;
  background: transparent;    /* 기본은 투명 */
  transition: background-color .3s ease, box-shadow .3s ease;
  position: relative;
  z-index: 2;
}

/* 네비게이션 바 전체에 흰색 띠 */
.hero-content .main-nav:hover {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);  /* 선택사항: 살짝 그림자 */
}

/* 기본 메뉴 글자: 검정 */
.hero-content .main-nav a {
  color: #000;
  font-size: 1.4rem;
  font-weight: 500;
  padding: 8px 14px;
  display: inline-block;
  transition: color .3s ease, transform .3s ease;
}

/* 해당 메뉴만 하늘색 + 확대 */
.hero-content .main-nav a:hover {
  color: skyblue;             /* 원하면 #00B8FF 처럼 바꿔도 됨 */
  transform: scale(1.12);
}
/* --- Program Block Layout V2 Styles --- */
.program-block {
    background-color: #fff;
    padding: 40px;
    margin-bottom: 60px;
}

.top-content-container {
    display: flex;
    gap: 40px; /* 좌우 간격 */
    align-items: flex-start;
}

.main-content-item {
    flex: 2; /* 왼쪽 영역이 공간을 2만큼 차지 */
}

.sidebar-item {
    flex: 1; /* 오른쪽 영역이 공간을 1만큼 차지 */
}

.images-container {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    border-top: 1px solid #eee; /* 상단 콘텐츠와 구분선 */
    padding-top: 40px;
}

.image-item {
    flex: 1;
    text-align: center;
}
.image-item img {
    width: 100%;
    height: 600px; /* ★★★ 이미지 높이 고정 (원하는 높이로 조절 가능) ★★★ */
    display: block;
    border-radius: 8px;
    margin-bottom: 10px;
    object-fit: cover; /* ★★★ 이미지 비율 유지하며 지정된 공간 채우기 ★★★ */
}
.image-item p {
    font-weight: 500;
    color: #555;
    margin-top: 10px; /* 제목과 이미지 사이 간격 */
}
/* (선택) 모바일에서 과한 확대 방지 */
@media (max-width: 768px) {
  .hero-content .main-nav { gap: 24px; }
  .hero-content .main-nav a:hover { transform: scale(1.04); }
}
/* --- Info Table Styles --- */
.info-table {
    width: 100%;
    border-collapse: collapse; /* 테이블 선을 한 줄로 만듦 */
    margin-top: 30px;
    font-size: 0.95rem;
}

.info-table th,
.info-table td {
    border: 1px solid #e0e0e0; /* 연한 회색 테두리 */
    padding: 15px;
    text-align: center; /* 기본 가운데 정렬 */
    vertical-align: middle; /* 세로 가운데 정렬 */
}

.info-table thead {
    background-color: #f8f8f8; /* 제목 행 배경색 */
    font-weight: 500;
}

.info-table tbody td:nth-child(2) {
    text-align: left; /* '이용료' 열만 왼쪽 정렬 */
    line-height: 1.8;
}

.info-table .price {
    color: #e53935; /* 가격 텍스트 빨간색 */
    font-weight: 700;
}
/* --- Info Table Notice Text --- */
.info-table .notice-text {
    color: #e53935; /* 빨간색 */
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 15px;
}
/* --- 체험 프로그램 페이지 제목 여백 추가 --- */
.program-intro {
    padding-top: 0px; /* 이 줄을 추가하여 위 여백을 줍니다 */
    margin-bottom: 20px;
}
.program-intro h2 {
    font-size: 2.5rem; /* 원하는 크기로 조절 */
}

.program-intro p {
    font-size: 1.2rem; /* 설명 글씨 크기 */
    text-align: center; /* 제목과 설명 모두 가운데 정렬 */
}
/* --- 시간표 전용 스타일 (최종 수정) --- */
.schedule-table th,
.schedule-table td {
    border-bottom: none !important; /* !important 를 추가하여 강제로 적용 */
}

/* 시간표의 제목 행 아래쪽 테두리는 다시 표시 */
.schedule-table thead th {
    border-bottom: 1px solid #e0e0e0 !important;
}

/* 시간표의 마지막 행에만 아래쪽 테두리를 다시 추가 */
.schedule-table tbody tr:last-child td {
    border-bottom: 1px solid #e0e0e0 !important;
}
/* --- 소개 페이지 Intro 문구 스타일 --- */
.about-intro p {
    font-size: 1.2rem;   /* 글씨 크기 */
    color: #555;         /* 글씨 색상 */
    line-height: 1.8;    /* 줄 간격 */
    text-align: center;  /* 가운데 정렬 */
}
.about-intro {
    padding-top: 0px; /* 이 줄을 추가하여 위 여백을 줍니다 */
    margin-bottom: 20px;
}