
/* Base reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* Typography & global */
html { 
  font-size: clamp(12px, 1.2vw + 0.7rem, 18px);
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans KR", "Apple SD Gothic Neo", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* background: #f6f7fb; */
  background: #f0ede9;
  /* background: #e5e7eb; */
  /* background: #dbe4f0; */
  /* background: #ccd5df; */
  color: #222;
  line-height: 1.8;
  padding: 20px;
  -webkit-text-size-adjust: 100%;
}

/* Card layout similar to hyo7.com feel */
header, section, footer {
  max-width: 960px;
  margin: 28px auto;
  background: #fff;
  border-radius: 14px;
  padding: clamp(20px, 3vw, 36px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

/* Header */
header .logo { max-height: 84px; margin-bottom: 8px; }
header h1 { font-size: clamp(1.8rem, 4.2vw, 2.4rem); color: #243447; letter-spacing: -0.01em; }
.subtitle { font-size: clamp(1.05rem, 2.5vw, 1.2rem); color: #667085; margin-top: 6px; }

header {
  text-align: center;
  margin: 0px auto;
  padding: 30px 20px;
  background: linear-gradient(135deg, #e6f0ff, #ffffff);
  color: #243447;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 40px 40px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.verse {
  font-style: italic;
  font-size: 1rem;
  color: #5e6b78;
  margin-top: 1rem;
}

header h1 {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(2.4rem, 5vw, 3rem);
  font-weight: 700;
  color: #1f2937;
  letter-spacing: -0.5px;
  position: relative;
}
header h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #94a3b8;
  border-radius: 4px;
  margin: 12px auto 0;
}

/* Section titles */
h2 { 
  font-size: clamp(1.25rem, 3.4vw, 1.7rem); 
  margin-bottom: 14px; 
  color: #2962ff; 
  font-weight: 700;
}

/* Body text */
p, li, td { font-size: clamp(1rem, 2.6vw, 1.125rem); }
p + p { margin-top: 8px; }
ul { padding-left: 1.2em; }
.vision ul li { margin: 6px 0; }

/* Table (worship schedule) */
.worship table {
  width: 100%;
  border-collapse: separate; 
  border-spacing: 0; 
  border-top: 5px double rgb(22, 122, 198);
  border-bottom: 5px double rgb(22, 122, 198);
  border-left: 1px solid transparent; 
  border-right: 1px solid transparent; 
  overflow: hidden; /* 모서리 둥글게 할 경우 필요할 수 있음 */
}

.worship td {
  border: 1px solid #e6e8ee; 
  padding: clamp(4px, 1.6vw, 8px);
  vertical-align: top;
  font-size: clamp(14px, 1.2vw, 16px); 
}

/* Make table scroll on very small widths without shrinking text */
@media (max-width: 480px) {
  .worship table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* Map & video iframes */
.location iframe {
  width: 100%;
  height: clamp(260px, 40vw, 420px);
  border: 0;
  border-radius: 12px;
  background: #f1f3f5;
}

/* Footer */
footer p { text-align: center; color: #6b7280; font-size: clamp(0.6rem, 0.8rem, 1rem); }

/* Spacing helpers */
section + section { margin-top: 22px; }

.youtube-button {
    display: inline-flex; /* 아이콘과 텍스트를 한 줄에 정렬 */
    align-items: center; /* 세로 중앙 정렬 */
    justify-content: center; /* 가로 중앙 정렬 (내부 요소가 공간을 차지하지 않을 때) */
    padding: 10px 20px; /* 버튼 내부 여백 */
    margin-top: 20px; /* 지도 아래 여백 */
    background-color: #FF0000; /* YouTube 브랜드 색상 */
    color: white; /* 글자색 */
    text-decoration: none; /* 밑줄 제거 */
    font-family: Arial, sans-serif; /* 폰트 */
    font-size: 16px;
    font-weight: bold;
    border: none; /* 테두리 제거 */
    border-radius: 5px; /* 모서리 둥글게 */
    cursor: pointer; /* 마우스 오버 시 포인터 변경 */
    transition: background-color 0.3s ease; /* 호버 효과 부드럽게 */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); /* 은은한 그림자 */
}

.youtube-button:hover {
    background-color: #CC0000; /* 호버 시 색상 변경 */
}

.youtube-icon {
    width: 24px; /* 아이콘 크기 */
    height: 24px;
    margin-right: 8px; /* 아이콘과 텍스트 사이 간격 */
    vertical-align: middle; /* 세로 정렬 */
}

/* 컨테이너 스타일 */
.contact-info-section {
    padding: 20px; /* 섹션 내부 여백 */
    background-color: #f9f9f9; /* 배경색으로 섹션 구분 */
    border-radius: 8px; /* 모서리 둥글게 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 은은한 그림자 효과 */
    margin-top: 30px; /* 위쪽 여백 */
    text-align: center; /* 내부 텍스트 중앙 정렬 */
}

/* 제목 스타일 */
.contact-info-section h2 {
    color: #333; /* 글자색 */
    font-size: 26px; /* 폰트 크기 */
    margin-bottom: 20px; /* 아래 여백 */
    position: relative;
    padding-bottom: 10px; /* 밑줄을 위한 패딩 */
}

/* 제목 아래 예쁜 밑줄 */
.contact-info-section h2::after {
    content: '';
    position: absolute;
    left: 50%; /* 중앙 정렬 */
    transform: translateX(-50%); /* 중앙 정렬 */
    bottom: 0;
    width: 60px; /* 밑줄 길이 */
    height: 3px; /* 밑줄 두께 */
    background-color: rgb(22, 122, 198); /* 교회 로고 색상과 유사하게 */
    border-radius: 5px; /* 밑줄 끝 둥글게 */
}

/* 주소 스타일 */
.contact-info-section .address {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px; /* 아래 여백 */
}

.contact-info-section .address a {
    color: rgb(22, 122, 198); /* 강조 색상 */
    text-decoration: none; /* 기본 밑줄 제거 */
}

/* 전화번호 링크 스타일 */
.contact-info-section .phone-number {
    display: inline-flex; /* 아이콘과 텍스트 정렬을 위해 */
    align-items: center; /* 세로 중앙 정렬 */
    font-size: 18px;
    color: rgb(22, 122, 198); /* 강조 색상 */
    font-weight: bold;
    text-decoration: none; /* 기본 밑줄 제거 */
    padding: 8px 15px; /* 버튼처럼 보이도록 패딩 */
    border: 2px solid rgb(22, 122, 198); /* 테두리 */
    border-radius: 5px; /* 모서리 둥글게 */
    transition: all 0.3s ease; /* 호버 효과 */
}

/* 전화번호 링크 호버/활성화 시 스타일 */
.contact-info-section .phone-number:hover,
.contact-info-section .phone-number:active {
    background-color: rgb(22, 122, 198); /* 배경색 변경 */
    color: white; /* 글자색 변경 */
    transform: translateY(-2px); /* 살짝 위로 뜨는 효과 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* 그림자 추가 */
}

/* 아이콘 추가 (선택 사항: Font Awesome 또는 이미지 아이콘) */
/* Font Awesome 사용 예시: (HTML <head>에 Font Awesome CDN 추가 필요)
   <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
*/
.contact-info-section .phone-number::before {
    content: '\f095'; /* Font Awesome 전화 아이콘 코드 */
    font-family: 'Font Awesome 5 Free'; /* Font Awesome 폰트 패밀리 */
    font-weight: 900; /* 아이콘 두께 */
    margin-right: 8px; /* 아이콘과 텍스트 사이 간격 */
    color: inherit; /* 부모 요소의 색상 상속 */
}

/* 주소 아이콘 (선택 사항) */
.contact-info-section .address::before {
    content: '\f3c5'; /* Font Awesome 지도 마커 아이콘 코드 */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 8px;
    color: rgb(22, 122, 198);
}

/* 모바일 화면을 위한 조정 */
@media (max-width: 768px) {
    .contact-info-section {
        padding: 15px;
        margin-top: 20px;
    }
    .contact-info-section h2 {
        font-size: 22px;
    }
    .contact-info-section .address,
    .contact-info-section .phone-number {
        font-size: 16px;
    }
}

.location-map {
  width: 80%;
}

/* 반응형 내비게이션 바 */
.navbar {
  background-color: #243447;
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 10px 0;
  margin: -20px;
}
.nav-container {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}
.nav-logo {
  color: #fff;
  font-size: 1.4rem;
  white-space: nowrap;
  text-decoration: none;
  font-weight: bold;
}
.nav-menu {
  list-style: none;
  display: flex;
  gap: 16px;
}
.nav-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
  padding: 6px 12px;
  transition: background-color 0.3s ease;
}
.nav-menu a:hover {
  background-color: #394b5a;
  border-radius: 5px;
}

/* 햄버거 메뉴 버튼 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.nav-toggle span {
  background-color: #fff;
  height: 3px;
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
  display: block;
}

/* 모바일에서 메뉴 숨기고 버튼 보이기 */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .nav-logo {
    white-space: nowrap; /* 줄바꿈 방지 */
    font-size: 1.1rem;
    flex-shrink: 0; /* 축소되지 않도록 */
    margin-right: 10px;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 50%;
    background-color: #243447;
    position: absolute;
    top: 50px; /* 헤더 아래 */
    right: 0;
    z-index: 1000;
    padding: 0 0 10px 10px;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
  }

  .nav-toggle {
    display: block;
    /* cursor: pointer; */
  }
}

/* 스크롤 이동 시 섹션 제목이 메뉴에 가리지 않게 */
section {
  scroll-margin-top: 70px;
}

.slider {
  overflow: hidden;
  position: relative;
  margin-top: 10px;
  height: 40vh;
  min-height: 300px;
  width: 100%;
  background-color: #000;
}
.slide-track {
  display: flex;
  animation: scroll 20s linear infinite;
  height: 100%;
}
.slide {
  flex: 0 0 40vh;
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.slide img {
  height: 40vh;
  min-height: 300px;
  width: auto;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-2000px); }
}

.more-button {
  padding: 12px 24px;
  background-color: #243447;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
}
.more-button:hover {
  background-color: #3a4b60;
}

/* gallery */
/*
body { font-family: sans-serif; margin: 0px; ba
ckground: #f5f5f5; }
h2 { margin-top: 40px; }
*/
.gallery { display: flex; flex-wrap: wrap; gap: 10px; }
.gallery img {
  width: clamp(100px, 28vw, 300px);
  height: clamp(100px, 28vw, 300px);
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  background: white;
}
.category { margin-bottom: 40px; }

