:root {
  --primary-color: #0a3d6b;
  --secondary-color: #4a7c4a;
  --bg-warm: #f8f9fa;
  --text-main: #333333;
  --text-dim: #555555;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #ffffff;
  color: var(--text-main);
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  letter-spacing: -0.5px;
  line-height: 1.6;
}

section {
  padding: 120px 0;
  border: 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.index-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #ececec;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

body.index-page {
  padding-top: 64px;
}

.index-header .header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.index-logo {
  height: 38px;
  width: auto;
  display: block;
}

.index-menu-shell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.index-member-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.index-member-nav a {
  color: var(--primary-color);
  text-decoration: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  padding: 8px 10px;
  border-radius: 999px;
}

.index-member-nav a:hover {
  background: #f3f7fb;
}

.index-auth {
  display: flex;
  align-items: center;
}

.index-auth a,
.index-auth-btn {
  color: #ffffff;
  background: var(--primary-color);
  border: 1px solid var(--primary-color);
  text-decoration: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.index-auth a:hover,
.index-auth-btn:hover {
  background: #0d4f89;
  border-color: #0d4f89;
}

.index-member-nav[hidden],
.index-auth[hidden],
.index-menu-toggle[hidden],
.index-menu-shell[hidden] {
  display: none !important;
}

.contact-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}

.contact-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.auth-gate-card {
  margin: 0;
  width: 100%;
  max-width: 430px;
  background: #fff;
  border: 1px solid #d8e0ea;
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(14, 29, 46, 0.11);
  padding: 24px;
}

.auth-gate-logo {
  width: 48px;
  height: 48px;
  display: block;
  margin: 0 auto 10px;
  border-radius: 12px;
}

.auth-gate-card h2 {
  margin: 0;
  text-align: center;
  color: #172b44;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.auth-gate-actions {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border-radius: 12px;
  text-decoration: none;
}

.google-login-btn {
  gap: 12px;
  border: 1px solid #d6dbe3;
  background: #fff;
  color: #1f2937;
  font-size: 15px;
  font-weight: 700;
  border-radius: 10px;
}

.google-login-icon {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.google-login-text {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1;
}

.image-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid #d4deea;
  background: #fff;
  text-decoration: none;
  color: #1c2d3f;
  font-weight: 700;
  overflow: hidden;
}

.image-login-btn img {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
}

.image-login-kakao {
  border-color: #f3d367;
  background: #fee500;
}

.image-login-fallback {
  padding: 0 14px;
}

.auth-main-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid #c8d3e2;
  color: #173a6a;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
}

.auth-main-logout {
  cursor: pointer;
}

.auth-gate-legal {
  margin: 14px 0 0;
  color: #7a8da0;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.auth-disabled {
  margin: 0;
  color: #5f7284;
  text-align: center;
  font-size: 13px;
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-modal[hidden] {
  display: none !important;
}

.login-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(8, 15, 26, 0.42);
  cursor: pointer;
}

.login-modal .auth-gate-card {
  position: relative;
  z-index: 1;
  max-width: 357px;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  padding: 38px 34px 24px;
  border-radius: 20px;
}

.login-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: #5f7284;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

body.login-modal-open {
  overflow: hidden;
}

.login-modal .auth-gate-logo {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
}

.login-modal .auth-gate-card h2 {
  font-size: 22px;
  line-height: 1.25;
}

.login-modal .auth-gate-actions {
  margin-top: 38px;
  gap: 14px;
  align-items: center;
}

.login-modal .social-login-btn {
  min-height: 44px;
}

.login-modal .image-login-btn {
  min-height: 39px;
}

.login-modal .auth-gate-actions > .social-login-btn,
.login-modal .auth-gate-actions > .image-login-btn {
  width: 83%;
}

.login-modal .auth-gate-actions > .image-login-btn img {
  width: 100%;
  max-width: none;
}

.login-modal .auth-gate-legal {
  margin-top: auto;
  padding-top: 28px;
  padding-bottom: 0;
}

.index-theme-btn {
  color: var(--primary-color);
  background: #ffffff;
  border: 1px solid #d6e0ea;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.index-theme-btn:hover {
  background: #f6f9fc;
  border-color: #bfd0e1;
}

.index-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid #d6e0ea;
  border-radius: 10px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  cursor: pointer;
}

.index-menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: #2f4f6f;
}

body {
  letter-spacing: -0.8px;
  word-break: keep-all;
}

.hero-premium {
  padding: 100px 0 60px !important;
  text-align: center;
  background: #ffffff;
}

.hero-logo-minimal {
  width: 240px;
  height: auto;
  margin-bottom: 30px;
}

.intro-premium {
  padding-top: 20px;
  background: #ffffff;
  text-align: center;
}

.main-slogan-refined {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0a3d6b;
  letter-spacing: -1.2px;
  margin-top: 40px;
  margin-bottom: 20px;
}

.main-slogan-refined::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: #a3d9a5;
  margin: 20px auto 0;
  opacity: 0.6;
}

.sub-slogan-refined {
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin: 25px 0 0;
}

.worship-premium {
  background: var(--bg-warm);
}

.worship-one-row {
  display: flex;
  justify-content: center;
  max-width: 850px;
  margin: 0 auto;
  gap: 20px;
  flex-wrap: nowrap;
}

.worship-unit {
  flex: 1;
  min-width: 180px;
  background: #ffffff;
  border: 1px solid #eaeaea;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  padding: 35px 20px !important;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
}

.worship-unit:hover {
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.worship-unit h4 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}

.worship-unit p {
  margin: 0;
  color: #56616b;
}

.ministry-premium {
  background: #ffffff;
}

.ministry-center-list {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.m-box {
  margin-bottom: 80px;
  position: relative;
}

.m-box:last-child {
  margin-bottom: 0;
}

.m-box::after {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background-color: #e0e0e0;
  margin: 40px auto 0;
}

.m-box:last-child::after {
  display: none;
}

.m-box span {
  display: block;
  font-size: 1.8rem;
  color: var(--secondary-color) !important;
  font-weight: 800;
  font-style: italic;
  margin-bottom: 10px;
}

.m-box h4 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.m-box p {
  margin: 0;
}

.youtube-soft-integration {
  background-color: #f9fbf9;
  padding: 50px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.youtube-flex-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  max-width: 900px;
}

.youtube-text-group .sub-label {
  display: block;
  font-size: 0.75rem;
  color: var(--secondary-color);
  letter-spacing: 1.5px;
  margin-bottom: 5px;
}

.youtube-text-group p {
  margin: 0;
  font-size: 1.1rem;
  color: #444;
}

.btn-minimal-outline {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid #aaaaaa !important;
  color: #333333 !important;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 2px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-minimal-outline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: #fff;
}

.location-premium {
  background: #ffffff;
}

.location-split {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(240px, 0.8fr);
  gap: 28px;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}

.map-box {
  width: 100%;
  min-height: 350px;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}

.map-box iframe {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border: 0;
}

.info-box {
  width: 100%;
  padding-top: 20px;
}

.info-box h3 {
  margin: 0 0 10px;
  color: #1a1a1a;
}

.info-box p {
  margin: 0 0 8px;
}

.hero-minimal {
  padding: 180px 0 100px;
  text-align: center;
  background: #ffffff;
}

.hero-logo-small {
  width: 220px;
  max-width: min(75vw, 220px);
  height: auto;
  filter: contrast(1.1);
}

.intro-modern {
  padding-top: 20px;
  background: #ffffff;
  text-align: center;
}

.main-slogan {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-top: 40px;
  color: var(--primary-color);
  margin-bottom: 25px;
}

.main-slogan::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin: 18px auto 0;
  background: var(--secondary-color);
}

.sub-slogan {
  font-size: 1.15rem;
  color: #888;
  font-weight: 300;
  line-height: 1.8;
  margin: 25px 0 0;
}

.worship-modern {
  background: var(--bg-warm);
}

.section-label {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 2px;
  color: #78909c;
  margin-bottom: 10px;
}

.section-title {
  color: var(--primary-color);
  font-size: 2.2rem;
  letter-spacing: -1px;
  margin: 0 0 44px;
  text-align: center;
}

.events-premium {
  background-color: #ffffff;
  padding: 100px 0;
}

.event-list {
  max-width: 800px;
  margin: 0 auto;
}

.event-item {
  display: flex;
  align-items: flex-start;
  border-bottom: 1.5px solid #e0e0e0;
  padding: 45px 0;
  margin: 0 auto;
  max-width: 800px;
}

.event-item:last-child {
  border-bottom: none;
}

.event-date {
  min-width: 100px;
  text-align: center;
  margin-right: 40px;
}

.event-date .month {
  display: block;
  font-size: 0.9rem;
  color: #888;
  letter-spacing: 2px;
}

.event-date .day {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  font-family: Georgia, serif;
  color: var(--secondary-color) !important;
  line-height: 1.2;
}

.event-tag {
  display: block;
  width: 100%;
  background-color: #f0f7f0;
  color: #4a7c4a !important;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.event-body {
  flex: 1;
}

.event-body h3 {
  font-size: 1.4rem;
  margin: 0 0 10px 0;
  color: #222;
}

.event-body p {
  color: #666;
  font-size: 1rem;
  margin: 0;
}

.worship-flex-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 15px;
}

.worship-box {
  flex: 1;
  min-width: 180px;
  padding: 25px;
  background: #fbfbfb;
  border-radius: 4px;
  text-align: center;
  border: 1px solid #f0f0f0;
}

.worship-box h4 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}

.worship-box p {
  margin: 0;
  color: #56616b;
}

.youtube-cta-bar {
  background-color: #1a2533;
  padding: 60px 0;
  color: #ffffff;
}

.youtube-flex-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.youtube-message .label {
  display: block;
  font-size: 0.85rem;
  color: var(--secondary-color);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.youtube-message h3 {
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0;
}

.youtube-message strong {
  font-weight: 700;
  color: #ffffff;
}

.btn-youtube-gold {
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid #ffffff;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-youtube-gold:hover {
  background-color: #ffffff;
  color: #1a2533;
}

.ministry-modern {
  background: #ffffff;
}

.ministry-list-center {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.m-item {
  margin-bottom: 80px;
}

.m-item:last-child {
  margin-bottom: 0;
}

.m-item em {
  display: block;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.m-item h4 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.m-item p {
  margin: 0;
}

.location-modern {
  background: #ffffff;
}

.location-grid {
  display: flex;
  gap: 40px;
}

.map-area {
  flex: 1.5;
  min-height: 340px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ececec;
}

.map-area iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
}

.info-area {
  flex: 1;
}

.info-area h3 {
  margin: 0 0 10px;
  color: #1a1a1a;
}

.info-area p {
  margin: 0 0 8px;
}

.parking-note {
  margin-top: 15px;
  font-weight: 700;
  color: var(--primary-color);
}

.index-footer {
  background: #fff;
  border-top: 1px solid #efefef;
  padding: 24px 0;
  text-align: center;
  font-size: 0.92rem;
  color: #666;
}

.index-footer a {
  color: var(--primary-color);
  text-decoration: none;
}

body.app-dark-mode {
  background: #151c25;
  color: #d8e0ea;
}

body.app-dark-mode .index-header {
  background: rgba(22, 30, 40, 0.94);
  border-bottom-color: #33455b;
}

body.app-dark-mode .index-theme-btn {
  background: #1f2b3a;
  border-color: #41546b;
  color: #e1eaf4;
}

body.app-dark-mode .hero-minimal,
body.app-dark-mode .intro-modern,
body.app-dark-mode .ministry-modern,
body.app-dark-mode .location-modern {
  background: #151c25;
}

body.app-dark-mode .main-slogan,
body.app-dark-mode .section-title {
  color: #d7e6f7;
}

body.app-dark-mode .sub-slogan,
body.app-dark-mode .m-item p,
body.app-dark-mode .info-area p {
  color: #afbccb;
}

body.app-dark-mode .worship-modern {
  background: #1a2533;
}

body.app-dark-mode .worship-box {
  background: #202d3d;
  border-color: #32465e;
}

body.app-dark-mode .worship-box p {
  color: #b8c7d8;
}

body.app-dark-mode .map-area {
  background: #121922;
  border-color: #32465e;
}

body.app-dark-mode .index-footer {
  background: #121922;
  border-top-color: #2c3c50;
  color: #9fb0c3;
}

@media (max-width: 900px) {
  body.index-page {
    padding-top: 74px;
  }

  section {
    padding: 80px 0;
  }

  .index-header .header-inner {
    min-height: 74px;
    padding: 16px 14px;
  }

  .index-logo {
    height: 32px;
  }

  .main-slogan { font-size: 2.1rem; }
  .main-slogan-refined { font-size: 1.35rem; }

  .worship-flex-row {
    overflow-x: visible;
    padding-bottom: 0;
  }
  .worship-one-row {
    overflow-x: visible;
    padding-bottom: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .worship-unit {
    min-width: 0;
    width: 100%;
  }

  .location-split {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 520px;
  }

  .map-box {
    min-height: 300px;
  }

  .map-box iframe {
    min-height: 300px;
  }

  .info-box {
    padding-top: 0;
  }

  .index-header .index-menu-toggle {
    display: inline-flex;
  }

  .index-header .index-menu-shell {
    display: none;
    position: absolute;
    right: 20px;
    top: calc(100% - 4px);
    width: min(320px, calc(100vw - 40px));
    background: #ffffff;
    border: 1px solid #e5edf5;
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(18, 37, 58, 0.14);
    padding: 12px;
    z-index: 80;
    gap: 10px;
    flex-direction: column;
    align-items: stretch;
  }

  .index-header .index-menu-shell.open {
    display: flex;
  }

  .index-header .index-member-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .index-header .index-member-nav a {
    border-radius: 10px;
  }

  .index-header .index-auth,
  .index-header .index-theme-btn {
    width: 100%;
  }

  .index-header .index-auth a,
  .index-header .index-auth-btn,
  .index-header .index-theme-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .youtube-flex-container {
    flex-direction: column;
    text-align: center;
  }
  .youtube-flex-wrap {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 680px) {
  body.index-page {
    padding-top: 74px;
  }

  .index-header .header-inner {
    min-height: 74px;
    padding: 16px 14px;
  }

  .auth-gate-card {
    max-width: 100%;
  }

  .login-modal {
    padding: 14px;
  }

  .login-modal .auth-gate-card {
    min-height: 380px;
    padding: 26px 18px 20px;
  }

  .login-modal .auth-gate-card h2 {
    font-size: 20px;
  }

  .login-modal .auth-gate-actions {
    margin-top: 30px;
    align-items: center;
  }

  .login-modal .auth-gate-actions > .social-login-btn,
  .login-modal .auth-gate-actions > .image-login-btn {
    width: 90%;
  }

  .login-modal .auth-gate-legal {
    margin-top: auto;
    padding-top: 18px;
  }

  .hero-minimal {
    padding: 130px 0 72px;
  }

  .main-slogan {
    font-size: 1.85rem;
    margin-top: 28px;
  }

  .sub-slogan {
    font-size: 1rem;
    line-height: 1.8;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .worship-box {
    min-width: 160px;
    padding: 20px 16px;
  }

  .youtube-message h3 {
    font-size: 1.24rem;
  }

  .m-item h4 {
    font-size: 1.3rem;
  }
}

@media (max-width: 600px) {
  .event-item {
    flex-direction: column;
  }

  .event-date {
    text-align: left;
    margin-bottom: 20px;
    margin-right: 0;
    display: flex;
    align-items: baseline;
    gap: 10px;
  }

  .event-date .day {
    font-size: 1.8rem;
  }
}

@media (max-width: 680px) {
  .hero-premium {
    padding: 60px 0 30px !important;
  }

  .main-slogan-refined {
    font-size: 1.6rem !important;
    line-height: 1.4;
  }

  .event-tag {
    font-size: 0.9rem !important;
    padding: 3px 10px;
  }

  .worship-unit {
    padding: 20px 10px !important;
  }
}
