@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&family=Outfit:wght@300;400;600;700;800&display=swap');

/* Variables & Reset */
:root {
  --primary-color: #0d2b4f;      /* Deep, premium blue */
  --secondary-color: #1a5c9f;    /* Bright, modern blue */
  --accent-color: #f77f00;       /* Vibrant orange accent */
  --accent-light: #ffba08;       /* Yellow/Orange highlight */
  --text-dark: #1a1a2e;
  --text-light: #5c677d;
  --bg-light: #f4f7f6;
  --bg-white: #ffffff;
  
  --font-kr: 'Noto Sans KR', sans-serif;
  --font-en: 'Outfit', sans-serif;

  /* Glassmorphism settings */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px 0 rgba(13, 43, 79, 0.08);
  
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-kr);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.3;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-color);
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary-color);
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: #fff;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(26, 92, 159, 0.2);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(26, 92, 159, 0.3);
  color: #fff;
}

.btn-primary span {
  display: inline-block;
  transition: transform 0.3s ease;
  margin-left: 6px;
}

.btn-primary:hover span {
  transform: translateX(4px);
}

.center-btn {
  text-align: center;
  margin-top: 2.5rem;
}

/* Top Bar */
.top-bar {
  background: linear-gradient(90deg, #101c2c 0%, #1a324f 100%);
  color: #fff;
  font-size: 0.85rem;
  padding: 10px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-contact {
  display: flex;
  gap: 20px;
  font-family: var(--font-en);
}

.top-links a {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 4px 14px;
  border-radius: 20px;
  margin-left: 10px;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.top-links a:hover {
  background-color: var(--accent-color);
  color: #fff;
}

.top-email:hover {
  color: var(--accent-color);
}

/* Glassmorphism Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.glassmorphism {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo-img {
  height: 65px;
  object-fit: contain;
  display: block;
  transition: transform 0.3s;
}

.logo-img:hover {
  transform: scale(1.05);
}

.main-nav > ul {
  display: flex;
  gap: 35px;
}

.main-nav a {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 5px;
}

.main-nav > ul > li > a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.main-nav > ul > li > a:hover::after {
  width: 100%;
}

.main-nav a:hover {
  color: var(--accent-color);
}

/* Dropdown Menu */
.has-dropdown {
  position: relative;
}

.dropdown-arrow {
  font-size: 0.7rem;
  transition: transform 0.3s;
  display: inline-block;
}

.has-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 20px);
  left: -20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  min-width: 220px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  padding: 10px 0;
  z-index: 999;
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 12px 25px;
  color: var(--text-dark) !important;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}

.dropdown-menu li a::after {
  display: none;
}

.dropdown-menu li a:hover {
  background-color: rgba(247, 127, 0, 0.08);
  color: var(--accent-color) !important;
  padding-left: 30px;
}

.header-right {
  display: flex;
  align-items: center;
}

.login-link {
  color: var(--text-light);
  font-weight: 500;
  font-family: var(--font-en);
}

#admin-login-btn { display: none; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 100px 0 120px;
  text-align: center;
  background: linear-gradient(135deg, #f4f7f6 0%, #e0e9f0 100%);
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a5c9f' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(26, 92, 159, 0.1);
  color: var(--secondary-color);
  border-radius: 20px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-title .highlight {
  background: linear-gradient(120deg, #389593 0%, #389593 35%, var(--accent-color) 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 50px;
  font-weight: 400;
}

.hero-video-wrapper {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.video-frame {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(13, 43, 79, 0.25);
  border: 8px solid rgba(255,255,255,0.8);
}

/* Glassmorphism Cards */
.glassmorphism-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 24px;
}

/* Welcome Section */
.welcome-section {
  padding: 100px 0;
  background-color: #fff;
  position: relative;
}

.welcome-content {
  max-width: 850px;
  margin: 0 auto;
  background: linear-gradient(to right bottom, #ffffff, #fdfdfd);
  padding: 60px;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.02);
  position: relative;
}

.welcome-content::before {
  content: '“';
  position: absolute;
  top: 20px;
  left: 30px;
  font-size: 8rem;
  font-family: Georgia, serif;
  color: rgba(26, 92, 159, 0.05);
  line-height: 1;
}

.welcome-heading {
  font-size: 1.5rem;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 800;
  line-height: 1.4;
  word-break: keep-all;
}

.welcome-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 24px;
  word-break: keep-all;
  position: relative;
  z-index: 1;
}

.welcome-content p strong {
  color: var(--accent-color);
  font-weight: 700;
}

.welcome-signature {
  margin-top: 50px;
  text-align: right;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 25px;
}

.welcome-signature p {
  margin-bottom: 5px;
  font-size: 1.05rem;
  color: var(--text-light);
}

.signature-name {
  font-size: 1.3rem !important;
  color: var(--primary-color) !important;
  font-weight: 700;
}

/* Worship Section */
.worship-section {
  padding: 100px 0;
  background: #f8fafc;
}

.worship-table-wrapper {
  max-width: 900px;
  margin: 0 auto;
  overflow-x: auto;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.04);
}

.glass-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
}

.glass-table th {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  color: #fff;
  padding: 20px;
  font-weight: 600;
  font-size: 1.1rem;
}

.glass-table td {
  padding: 25px 20px;
  border-bottom: 1px solid #eee;
  border-right: 1px solid #f5f5f5;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition-smooth);
}

.glass-table tbody tr:hover td {
  background-color: rgba(26, 92, 159, 0.03);
}

/* Pastor Section */
.pastor-section {
  padding: 100px 0;
  background-color: #fff;
  position: relative;
}

.pastor-card {
  display: flex;
  gap: 60px;
  padding: 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.pastor-photo-wrap {
  flex-shrink: 0;
  position: relative;
  width: 280px;
  height: 280px;
  z-index: 1;
}

.pastor-photo-bg {
  position: absolute;
  top: 15px; left: 15px;
  width: 100%; height: 100%;
  background: var(--accent-color);
  border-radius: 30px;
  z-index: -1;
  opacity: 0.2;
}

.pastor-photo {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  object-fit: cover;
  object-position: top center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.pastor-info {
  flex: 1;
}

.pastor-title-badge {
  display: inline-block;
  background: rgba(247, 127, 0, 0.1);
  color: var(--accent-color);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 15px;
}

.pastor-name {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.pastor-name-eng {
  font-family: var(--font-en);
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 30px;
}

.pastor-credentials {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.pastor-credentials li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 16px 20px;
  background: #f8fafc;
  border-radius: 12px;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.pastor-credentials li:hover {
  background: #fff;
  border-color: rgba(26, 92, 159, 0.1);
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
  transform: translateX(5px);
}

.credential-icon {
  font-size: 1.4rem;
  background: #fff;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.pastor-credentials li div {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.5;
}

.pastor-credentials li div strong {
  color: var(--text-dark);
  display: block;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

/* Vision Section */
.vision-section {
  padding: 120px 0;
  background-color: #f0f4f8; /* Soft tech background */
  position: relative;
}

.mission-statement {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.05);
  margin-bottom: 80px;
  max-width: 900px;
  margin-left: auto; margin-right: auto;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mission-statement::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.mission-title {
  font-size: 1.8rem;
  margin-bottom: 20px;
}
.mission-title span {
  font-family: var(--font-en);
  font-size: 1rem;
  color: var(--text-light);
  display: block;
  margin-top: 5px;
  font-weight: 500;
}

.mission-kor {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 12px;
  word-break: keep-all;
}

.mission-eng {
  font-family: var(--font-en);
  font-size: 1rem;
  color: var(--text-light);
}

.vision-header {
  text-align: center;
  margin-bottom: 50px;
}

.vision-main-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
}
.vision-main-title span {
  color: var(--secondary-color);
  font-family: var(--font-en);
}
.vision-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.vision-image-center {
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
}
.vision-main-img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.vision-map-container {
  position: relative;
  display: inline-block;
  max-width: 900px;
  width: 100%;
}

.vision-svg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  border-radius: 20px;
}

.vision-area {
  fill: transparent;
  cursor: pointer;
  transition: fill 0.3s;
}

.vision-area:hover {
  fill: rgba(255, 255, 255, 0.35);
}

.center-area:hover {
  fill: rgba(255, 255, 255, 0.45);
}

@keyframes highlight-glow {
  0% { box-shadow: 0 0 0 0 rgba(247, 127, 0, 0.7); transform: scale(1.05); }
  50% { box-shadow: 0 0 0 15px rgba(247, 127, 0, 0); transform: scale(1); }
  100% { box-shadow: 0 0 0 0 rgba(247, 127, 0, 0); }
}

.highlight-target {
  animation: highlight-glow 1.5s ease-out;
  border: 2px solid var(--accent-color) !important;
}

/* Gospel Center Card */
.gospel-center-card {
  max-width: 800px;
  margin: 0 auto 50px;
}
.gospel-center-inner {
  background: linear-gradient(135deg, var(--primary-color), #091c33);
  border-radius: 24px;
  padding: 50px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(13, 43, 79, 0.2);
  position: relative;
  overflow: hidden;
  color: #fff;
}
.gospel-bg-effect {
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(247,127,0,0.15) 0%, transparent 50%);
  animation: rotateBg 20s linear infinite;
}
@keyframes rotateBg {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.gospel-badge {
  display: inline-block;
  background: var(--accent-color);
  color: #fff;
  font-family: var(--font-en);
  font-weight: 800;
  padding: 8px 24px;
  border-radius: 30px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.gospel-center-title {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 10px;
  position: relative; z-index: 1;
}
.gospel-center-eng {
  font-family: var(--font-en);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
  position: relative; z-index: 1;
}
.gospel-center-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
  position: relative; z-index: 1;
  line-height: 1.8;
}

/* Vision Cards Grid */
.vision-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 80px;
}
.vision-card {
  background: #fff;
  border-radius: 20px;
  padding: 35px 25px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  transition: var(--transition-smooth);
  border: 1px solid rgba(0,0,0,0.02);
  position: relative;
  overflow: hidden;
}
.vision-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--accent-color);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.vision-card:hover::before {
  transform: scaleX(1);
}
.vision-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.vision-card-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  background: #f8fafc;
}
.vision-card-icon i {
  font-family: var(--font-en);
  font-size: 1.8rem;
  font-weight: 900;
  font-style: normal;
}
.vision-card h4 {
  font-family: var(--font-en);
  font-size: 1.3rem;
  margin-bottom: 5px;
}
.vision-card-eng {
  font-family: var(--font-en);
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 12px;
}
.vision-card-kor {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.vision-card-ministry {
  display: inline-block;
  font-size: 0.85rem;
  padding: 4px 12px;
  background: #f1f5f9;
  border-radius: 12px;
  color: var(--text-light);
}

/* Card Specific Colors */
.glory-card { background-color: rgba(143, 209, 158, 0.15); }
.glory-card .vision-card-icon { background: rgba(143, 209, 158, 0.3); color: #4aa366; }
.glory-card::before { background: #4aa366; }

.obedience-card { background-color: rgba(153, 132, 198, 0.15); }
.obedience-card .vision-card-icon { background: rgba(153, 132, 198, 0.3); color: #6b52a3; }
.obedience-card::before { background: #6b52a3; }

.service-card { background-color: rgba(223, 128, 194, 0.15); }
.service-card .vision-card-icon { background: rgba(223, 128, 194, 0.3); color: #b34d93; }
.service-card::before { background: #b34d93; }

.prayer-card { background-color: rgba(246, 196, 69, 0.15); }
.prayer-card .vision-card-icon { background: rgba(246, 196, 69, 0.3); color: #c49015; }
.prayer-card::before { background: #c49015; }

.evangelism-card { background-color: rgba(234, 95, 113, 0.15); }
.evangelism-card .vision-card-icon { background: rgba(234, 95, 113, 0.3); color: #b83346; }
.evangelism-card::before { background: #b83346; }

.love-card { background-color: rgba(166, 196, 224, 0.15); }
.love-card .vision-card-icon { background: rgba(166, 196, 224, 0.3); color: #5c8ab8; }
.love-card::before { background: #5c8ab8; }

/* GOSPEL Message */
.gospel-message-container {
  max-width: 900px;
  margin: 0 auto;
}
.gospel-message-content {
  background: #fff;
  border-radius: 24px;
  padding: 50px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.04);
}
.gospel-message-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 40px;
}
.highlight-gospel {
  font-family: var(--font-en);
  color: var(--accent-color);
  font-weight: 900;
}
.gospel-message-list {
  display: flex; flex-direction: column; gap: 20px;
  margin-bottom: 40px;
}
.gospel-message-list li {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 16px;
  transition: var(--transition-smooth);
}
.gospel-message-list li:hover {
  background: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  transform: translateX(10px);
}
.gospel-letter {
  font-family: var(--font-en);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--secondary-color);
  width: 50px; text-align: center;
}
.gospel-text h4 {
  font-family: var(--font-en);
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 5px;
}
.gospel-text p {
  font-size: 1rem;
  color: var(--text-light);
}

.gospel-message-footer {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #eee;
}
.gospel-summary {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 15px;
  color: var(--text-dark);
}
.gospel-verse {
  font-size: 0.95rem;
  color: var(--text-light);
  font-style: italic;
  background: #f8fafc;
  padding: 15px;
  border-radius: 12px;
  display: inline-block;
}

/* Gallery Section */
.gallery-section {
  padding: 100px 0;
  background: #fff;
}
.gallery-grid, .sermon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.gallery-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.05);
  background: #fff;
  transition: var(--transition-smooth);
}
.gallery-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 45px rgba(0,0,0,0.1);
}
.gallery-img {
  height: 220px;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  position: relative;
  overflow: hidden;
}

.gallery-info {
  padding: 15px;
}
.gallery-info h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}
.gallery-info .date {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 15px;
}
.more-link {
  color: var(--secondary-color);
  font-weight: 700;
  font-family: var(--font-en);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.more-link:hover {
  color: var(--accent-color);
}
.more-link:hover span {
  transform: translateX(4px);
}
.more-link span {
  transition: transform 0.3s;
}

/* Location Section */
.location-section {
  padding: 100px 0 150px;
  background: #f8fafc;
}
.location-container {
  display: flex;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.06);
}
.location-info {
  width: 35%;
  padding: 50px 40px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
}
.info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}
.info-item:last-child { margin-bottom: 0; }
.info-icon {
  font-size: 1.8rem;
}
.info-item h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 5px;
}
.info-item p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  line-height: 1.5;
}
.location-map-wrapper {
  width: 65%;
  min-height: 400px;
}

/* Footer */
.main-footer {
  background: #0b1a2d;
  color: #fff;
  padding: 80px 0 0;
  font-family: var(--font-kr);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-logo {
  height: 60px;
  margin-bottom: 20px;
  background-color: #ffffff;
  padding: 8px 12px;
  border-radius: 8px;
}
.brand-col .slogan {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 25px;
}
.social-icons {
  display: flex;
  gap: 15px;
}
.social-icons a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
}
.icon-circle {
  display: flex; 
  align-items: center; 
  justify-content: center;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: var(--transition-smooth);
}
.social-icons a:hover .icon-circle {
  background: #ff0000; /* Youtube Red */
  transform: translateY(-3px);
}
.social-icons a:hover .yt-text {
  color: #ff0000;
}
.yt-text {
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}
.footer-col h4 {
  font-family: var(--font-en);
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
}
.footer-col h4::after {
  content: '';
  position: absolute; left: 0; bottom: -8px;
  width: 30px; height: 2px;
  background: var(--accent-color);
}
.footer-col p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-bottom: 12px;
  line-height: 1.6;
}
.footer-col a:hover {
  color: var(--accent-color);
}
.footer-col ul li {
  margin-bottom: 12px;
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
}
.times-col .time-label {
  font-weight: 700;
  color: #fff;
  margin-right: 8px;
}
.links-col ul li a {
  display: inline-block;
  transition: transform 0.3s, color 0.3s;
}
.links-col ul li a:hover {
  transform: translateX(5px);
  color: var(--accent-color);
}

.footer-bottom {
  background: #06111e;
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  font-family: var(--font-en);
}
.scroll-top-btn {
  background: rgba(255,255,255,0.1);
  border: none; color: #fff;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition-smooth);
}
.scroll-top-btn:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  will-change: transform, opacity;
}
.fade-up {
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.scale-up {
  transform: scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.is-visible {
  opacity: 1;
  transform: translate(0) scale(1);
}
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* Staggered Animations */
.stagger-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.staggered-container.is-visible .stagger-item {
  opacity: 1;
  transform: translateY(0);
}
.staggered-container.is-visible .stagger-item:nth-child(1) { transition-delay: 0.1s; }
.staggered-container.is-visible .stagger-item:nth-child(2) { transition-delay: 0.2s; }
.staggered-container.is-visible .stagger-item:nth-child(3) { transition-delay: 0.3s; }
.staggered-container.is-visible .stagger-item:nth-child(4) { transition-delay: 0.4s; }
.staggered-container.is-visible .stagger-item:nth-child(5) { transition-delay: 0.5s; }
.staggered-container.is-visible .stagger-item:nth-child(6) { transition-delay: 0.6s; }

/* Discipleship Section */
.discipleship-section {
  padding: 100px 0;
  background-color: #fff;
}
.discipleship-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.training-card {
  background: #f8fafc;
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  transition: var(--transition-smooth);
}
.training-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  background: #fff;
  border: 1px solid rgba(26, 92, 159, 0.1);
}
.training-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
}
.training-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}
.training-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Mission Section */
.mission-section {
  padding: 100px 0;
  background-color: #f0f4f8;
}
.mission-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.mission-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.05);
  transition: var(--transition-smooth);
}
.mission-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 45px rgba(0,0,0,0.1);
}
.mission-img-placeholder {
  height: 250px;
  position: relative;
}
.mission-img-placeholder.local-bg { background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%); }
.mission-img-placeholder.world-bg { background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%); }
.mission-content {
  padding: 35px;
}
.mission-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}
.mission-content p {
  color: var(--text-light);
  line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 992px) {
  .vision-cards, .gallery-grid, .discipleship-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mission-container {
    grid-template-columns: 1fr;
  }
  .pastor-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 15px; /* Reduced padding to increase width */
    width: 100%;
    box-sizing: border-box;
  }
  .pastor-credentials {
    width: 100%;
  }
  .pastor-credentials li {
    text-align: left;
    padding: 15px 12px;
    gap: 12px;
  }
  .pastor-credentials li div {
    font-size: 0.85rem;
    word-break: keep-all;
  }
  .pastor-credentials li div strong {
    font-size: 0.95rem;
  }
  .location-container {
    flex-direction: column;
  }
  .location-info, .location-map-wrapper {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-contact { display: none; }
  .top-links { margin-left: auto; }
  
  .main-nav, .login-link { display: none; }
  .mobile-menu-btn { display: block; }
  
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1rem; padding: 0 10px; word-break: keep-all; line-height: 1.5; margin-bottom: 30px; }
  .section-title { font-size: 1.8rem; }
  
  .welcome-content { padding: 40px 25px; }
  .welcome-content::before { font-size: 5rem; top: 10px; left: 15px; }
  
  .vision-cards, .gallery-grid, .discipleship-grid, .sermon-grid {
    grid-template-columns: 1fr;
  }
  .gospel-message-content {
    padding: 30px 15px; /* Reduce side padding to get more width */
  }
  .gospel-message-list li {
    flex-direction: column;
    text-align: center;
    padding: 20px 10px; /* Reduce side padding of each li */
  }
  .gospel-text h4, .gospel-text p, .gospel-summary, .gospel-verse {
    word-break: keep-all; /* Prevent awkward word breaks */
  }
  .gospel-message-list li:hover {
    transform: translateY(-5px);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom-inner {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  /* Table and Component Optimization for Mobile */
  .board-table .col-author, .board-table .col-views { display: none; }
  .board-table .col-title { width: auto; }
  .glass-table th, .glass-table td { padding: 12px 5px; font-size: 0.85rem; }
  .gospel-center-inner { padding: 30px 20px; }
  .gospel-center-title { font-size: 1.5rem; }
  .pastor-photo-wrap { width: 220px; height: 220px; }
}

/* Notice Board Table Styles */
.board-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-family: var(--font-kr);
}
.board-table th {
  padding: 15px 10px;
  border-bottom: 2px solid var(--primary-color);
  font-weight: 700;
  color: var(--primary-color);
  background: #f8fafc;
}
.board-table td {
  padding: 15px 10px;
  border-bottom: 1px solid #eee;
  color: var(--text-dark);
  text-align: center;
}
.board-table .col-num { width: 8%; }
.board-table .col-title { width: 55%; text-align: left; }
.board-table .col-author { width: 12%; }
.board-table .col-date { width: 15%; color: #888; font-size: 0.9rem; }
.board-table .col-views { width: 10%; color: #888; font-size: 0.9rem; }

.board-table tbody tr {
  transition: background 0.3s;
  cursor: pointer;
}
.board-table tbody tr:hover {
  background-color: #f1f5f9;
}
.board-title-text {
  font-weight: 500;
  color: var(--text-dark);
}
.file-icon {
  margin-left: 8px;
  color: #666;
  font-size: 0.9em;
}

/* Modal Viewer Styles */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px;
}
.viewer-content {
  background: #fff;
  width: 100%;
  max-width: 98vw;
  height: 98vh;
  border-radius: 6px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.viewer-header {
  padding: 3px 15px;
  background: var(--primary-color);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.viewer-header h2 {
  font-size: 0.95rem;
  margin: 0;
}
.modal-close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.viewer-meta {
  padding: 4px 15px;
  background: #f8fafc;
  border-bottom: 1px solid #eee;
  color: #666;
  font-size: 0.8rem;
}
.viewer-body {
  padding: 5px 15px;
  overflow-y: auto;
  flex: 1;
  min-height: 200px;
  font-size: 1.05rem;
  line-height: 1.5;
}
.viewer-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 5px;
  border: 1px solid #eee;
}
.viewer-footer {
  padding: 8px 15px;
  border-top: 1px solid #eee;
  background: #fafafa;
}
