/*
 * 라스베가스 한인 비전교회 공식 홈페이지 스타일시트
 * 최종 수정일: 2025-07-02
 * 제작 방식: 모바일 퍼스트 (Mobile-First)
 */

/* ---------------------------------- */
/* 1. 기본 설정 (Variables & Reset)    */
/* ---------------------------------- */
:root {
  --primary-color: #3b8595;
  --dark-blue: #0a5555;
  --text-color: #333333;
  --text-light: #555555;
  --bg-color: #f8f9fa;
  --white-color: #ffffff;
  --gray-border: #e0e0e0;

  --font-family: 'Noto Sans KR', sans-serif;
  --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  --border-radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  color: var(--text-color);
  background-color: var(--white-color);
  line-height: 1.7;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------------------------------- */
/* 2. 헤더 & 푸터                      */
/* ---------------------------------- */
.site-header {
  text-align: center;
  padding: 20px 0;
  position: relative;
}

.site-header img {
  width: 180px;
  height: auto;
}

.language-switcher {
  position: absolute;
  top: 20px;
  right: 20px;
}

.language-switcher button {
  background-color: var(--primary-color);
  color: var(--white-color);
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.language-switcher button:hover {
  background-color: var(--dark-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.language-switcher button:active {
  transform: translateY(0);
}

.site-footer {
  background-color: var(--bg-color);
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid var(--gray-border);
}

.social-links {
  margin-bottom: 20px;
}

.social-links a {
  color: var(--text-light);
  font-size: 28px;
  margin: 0 15px;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--primary-color);
}

.copyright {
  font-size: 14px;
  color: #888;
}

/* ---------------------------------- */
/* 3. 주요 섹션 스타일                 */
/* ---------------------------------- */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.3;
}

.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

section {
  padding: 60px 0;
}

#hero {
  position: relative; /* <<<<< 이 속성이 추가되었습니다. (핵심 수정사항) */
  height: 50vh;
  background: url('new_church.jpeg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white-color);
  padding: 0;
  overflow: hidden; /* 자식 요소가 부모를 벗어나지 않도록 설정 */
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  /* height 속성은 제거하고, top/left/right/bottom으로 전체를 덮도록 변경했습니다. */
}



.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 48px;
  letter-spacing: 2px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 24px;
  letter-spacing: 2px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

#info-cards {
  background-color: var(--bg-color);
}

/* ---------------------------------- */
/* 4. 카드 디자인 (모바일 기본)         */
/* ---------------------------------- */
.card {
  background-color: var(--white-color);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 30px;
}

.card-title {
  font-size: 22px;
  color: var(--dark-blue);
  padding-bottom: 15px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--gray-border);
}

.service-times {
  list-style: none;
}
.service-times li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--gray-border);
}
.service-times li:last-child {
  border-bottom: none;
}
.service-times span:first-child {
  font-weight: 700;
}

.pastor-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.pastor-photo img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.pastor-info h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.pastor-info h3 small {
  font-weight: 400;
  color: var(--text-light);
}
.pastor-info ul {
  list-style: none;
  text-align: left;
  display: inline-block;
}
.pastor-info ul li {
  font-size: 15px;
  margin-bottom: 5px;
}

/* ---------------------------------- */
/* 5. 갤러리 & 지도                   */
/* ---------------------------------- */
.swiper-slide {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}
.swiper-slide img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.swiper-slide img:hover {
  transform: scale(1.05);
}

#location {
  background-color: var(--bg-color);
}
.location-info {
  text-align: center;
  margin-bottom: 30px;
  font-size: 18px;
}
.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  height: 400px;
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------------------------------- */
/* 6. 이미지 모달                     */
/* ---------------------------------- */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
}
.modal-content {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 10px;
}
.close-btn {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 40px;
  color: var(--white-color);
  cursor: pointer;
}

/* 첫 방문 팝업 스타일 */
#firstVisitPopup.modal {
  display: none;
  position: fixed;
  z-index: 99999;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}
#firstVisitPopup .modal-inner {
  position: relative;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#firstVisitPopup .close-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 32px;
  color: #fff;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}
@media (max-width: 767px) {
  #firstVisitPopup .modal-inner img {
    max-width: 96vw;
    max-height: 60vh;
  }
  #firstVisitPopup .close-btn {
    font-size: 28px;
    width: 32px; height: 32px;
    top: -6px; right: -6px;
  }
}

/* ---------------------------------- */
/* 6.5. 모바일 반응형 (767px 이하)    */
/* ---------------------------------- */
@media (max-width: 767px) {
  .language-switcher {
    top: 15px;
    right: 10px;
  }
  
  .language-switcher button {
    padding: 6px 12px;
    font-size: 13px;
  }
}

/* ---------------------------------- */
/* 7. 태블릿 반응형 (768px 이상)     */
/* ---------------------------------- */
@media (min-width: 768px) {
  #info-cards .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .card {
    margin-bottom: 0;
  }
  .pastor-card {
    grid-column: 1 / -1; /* 담임목사 카드는 가로로 넓게 */
  }
  .pastor-profile {
    flex-direction: row; /* 가로 배치 시작 */
    text-align: left;
  }
  .pastor-photo img {
    width: 180px;
    height: 180px;
  }
  .pastor-info ul {
    display: block;
  }
}

/* ---------------------------------- */
/* 8. PC 반응형 (1024px 이상)        */
/* ---------------------------------- */
@media (min-width: 1024px) {
  #hero {
    height: 60vh;
    background-attachment: fixed; /* Parallax 효과 */
  }
  .hero-content h1 {
    font-size: 64px;
  }
  #info-cards .container {
    grid-template-columns: repeat(3, 1fr);
  }
  .pastor-card {
    grid-column: auto; /* 다시 1칸 차지 */
  }
  .pastor-profile {
    flex-direction: column; /* PC에서는 다시 세로 배치 */
    text-align: center;
  }
  .pastor-photo img {
    width: 150px;
    height: 150px;
  }
  .pastor-info ul {
    display: inline-block;
  }
}

/* style.css에 추가 */
.hero-content h1,
.hero-content p {
  font-family: 'Asta Sans', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
}
