/*
Theme Name: 비랜딩 - 뉴저지 더바인교회
Theme URI: https://tvcnj.com/
Author: 비랜딩 (blanding.kr)
Author URI: https://blanding.kr
Description: Responsive theme matching the Figma design for The Vine Church of New Jersey. Includes WordPress Customizer bindings for easy image and content administration.
Version: 1.3.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vine-church-theme
*/

:root {
  --primary-color: #ff2a6d;
  --primary-hover: #e61e50;
  --dark-bg: #111111;
  --dark-surface: #1e1e1e;
  --light-bg: #ffffff;
  --text-main: #111111;
  --text-muted: #666666;
  --border-color: #eeeeee;
  --container-width: 1140px;
}

/* Base Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Pretendard', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background-color: var(--light-bg);
  color: var(--text-main);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Optional event banners managed in the WordPress Customizer. */
.main-card-banners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  gap: 20px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto 48px;
}

.main-card-banner-link {
  display: block;
  overflow: hidden;
  border: 1px solid #e7e7e7;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.main-card-banner-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
}

.main-card-banner-link img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 5;
  object-fit: cover;
}

@media (max-width: 767px) {
  .main-card-banners {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    overflow: visible;
    padding: 0;
    margin: 0 auto 40px;
  }

  .main-card-banner-link {
    width: 100%;
    flex: none;
    scroll-snap-align: none;
  }
}

/* Global SVG constraint - prevent SVGs from taking full width */
svg:not(.cross-icon) {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Containers */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.text-center {
  text-align: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* Typography */
.section-title-serif {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  color: #111111;
}

.section-subtitle-sub {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.5;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 90vh;
  max-height: 800px;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 60px;
  color: #ffffff;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}

.top-nav {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cross-icon {
  width: 28px;
  height: 28px;
  color: #ffffff;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.logo-sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.75);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.nav-links a:hover {
  color: #ffffff;
}

.hero-content {
  position: relative;
  z-index: 2;
  margin-bottom: 60px;
  max-width: 600px;
}

.hero-subtitle {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
}

.hero-title {
  font-size: 48px;
  font-weight: 300; /* Lighter weight matching Figma */
  line-height: 1.35;
  letter-spacing: -1px;
}

/* Quick Links Row - Transparent & Minimalist matching Figma */
.quick-links {
  position: relative;
  background-color: #ffffff;
  padding: 60px 0;
  border-bottom: 1px solid #f1f3f5;
}

.quick-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
}

.quick-card:hover {
  transform: translateY(-4px);
}

.quick-icon-wrapper {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111111;
  background-color: #f8f9fa;
  border-radius: 50%;
  margin-bottom: 16px;
  transition: background-color 0.2s ease;
}

.quick-card:hover .quick-icon-wrapper {
  background-color: #e9ecef;
}

.quick-icon-wrapper svg {
  width: 28px;
  height: 28px;
}

.quick-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #111111;
}

.quick-card p {
  font-size: 13px;
  color: #888888;
}

/* Welcome Section */
.welcome-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.welcome-header {
  text-align: center;
  margin-bottom: 56px;
}

.welcome-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}

.video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background-color: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.video-mockup {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.play-overlay:hover {
  background-color: rgba(0,0,0,0.35);
}

.play-btn {
  width: 64px;
  height: 64px;
  background-color: #ff2a6d;
  border: none;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 42, 109, 0.4);
  transition: transform 0.2s ease;
}

.play-overlay:hover .play-btn {
  transform: scale(1.1);
}

.play-btn svg {
  width: 22px;
  height: 22px;
  margin-left: 4px;
}

.video-title {
  position: relative;
  z-index: 2;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  align-self: flex-start;
  background-color: rgba(0,0,0,0.6);
  padding: 4px 10px;
  border-radius: 4px;
}

.video-embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}

.sermon-info {
  padding-left: 10px;
}

.sermon-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #ff2a6d;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.sermon-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #111111;
}

.sermon-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.sermon-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sermon-links li a {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.sermon-links li a:hover {
  color: #ff2a6d;
}

.icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.icon-circle svg {
  width: 16px;
  height: 16px;
}

.red-bg {
  background-color: #ff2a6d;
  box-shadow: 0 4px 12px rgba(255, 42, 109, 0.2);
}

.gray-bg {
  background-color: #888888;
}

/* Title Underline Decors */
.slogan-title-wrapper {
  display: inline-block;
  position: relative;
  padding-bottom: 12px;
}

.slogan-title-wrapper::after {
  content: '';
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 0;
  height: 2px;
  background-color: #111111;
}

/* Departments Section - Alternating Rows on White Background matching Figma */
.departments-section {
  padding: 80px 0;
  background-color: #ffffff;
  border-top: 1px solid #f1f3f5;
}

.dept-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin-top: 64px;
}

.dept-row {
  display: flex;
  align-items: center;
  gap: 80px;
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.dept-row.reverse {
  flex-direction: row-reverse;
}

.dept-image-area {
  flex-shrink: 0;
  position: relative;
  width: 220px;
  height: 240px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
}

.dept-arch-bg {
  position: absolute;
  bottom: 0;
  width: 200px;
  height: 160px;
  border-radius: 100px 100px 0 0;
  z-index: 1;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
  display: none !important; /* Hidden because backgrounds are now baked into Feature Images */
}

.dept-pop-img {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100% !important;
  object-fit: contain;
  object-position: bottom center !important;
  z-index: 2;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dept-image-area:hover .dept-pop-img {
  transform: scale(1.06) translateY(-6px);
}

.coral-bg { background-color: #ff8080; }
.yellow-bg { background-color: #ffd27f; }
.green-bg { background-color: #8edc9c; }
.blue-bg { background-color: #8ec3dc; }
.purple-bg { background-color: #3f6b8a; } /* Dark blue/teal */
.lavender-bg { background-color: #cda8ff; } /* Purple */
.softblue-bg { background-color: #a8d5ff; }

.dept-info-area {
  flex: 1;
}

.dept-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #111111;
}

.dept-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.65;
}

.dept-link {
  font-size: 14px;
  font-weight: 700;
  color: #ff2a6d;
  display: inline-block;
}

.dept-link:hover {
  text-decoration: underline;
}

/* Affiliated Schools Section - Teal Background Cards matching Figma */
.schools-section {
  padding: 80px 0;
  background-color: #ffffff;
  border-top: 1px solid #f1f3f5;
}

.schools-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 56px;
}

.header-line {
  height: 1px;
  background-color: #dddddd;
  flex: 1;
  max-width: 100px;
}

.schools-title {
  font-size: 28px;
  font-weight: 700;
  color: #111111;
  letter-spacing: -0.5px;
}

.school-card {
  background-color: #c5e2e8; /* Soft teal background */
  border-radius: 16px;
  border: none;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.school-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.school-image-box {
  height: 190px;
  overflow: hidden;
  position: relative;
  background-color: #ffffff;
}

.school-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.school-card:hover .school-img {
  transform: scale(1.04);
}

.crown-icon-wrapper {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background-color: #4ea8de;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  z-index: 2;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.crown-icon-wrapper svg {
  width: 16px;
  height: 16px;
}

.school-info {
  padding: 24px;
  background-color: #c5e2e8;
  text-align: center;
}

.school-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: #1e3d43;
  margin-bottom: 6px;
}

.school-info p {
  font-size: 11px;
  font-weight: 600;
  color: rgba(30, 61, 67, 0.7);
  letter-spacing: 0.5px;
}

/* Arch Shape crop for the 3rd card */
.school-card.arch-crop .school-image-box {
  border-radius: 90px 90px 0 0;
  margin: 16px 16px 0;
  height: 174px;
}

/* Bible Quote Section */
.quote-section {
  padding: 90px 0;
  background-color: #f8f9fa;
  position: relative;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.bible-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  font-style: italic;
  max-width: 800px;
  margin: 0 auto 20px;
  color: #222222;
  line-height: 1.45;
}

.bible-cite {
  font-size: 13px;
  font-weight: 600;
  color: #666666;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
}

/* News & Cards Section (Side-by-side) */
.news-cards-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.graphic-card {
  height: 320px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  display: flex;
  align-items: flex-end;
  padding: 36px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.graphic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(transparent 30%, rgba(0,0,0,0.85) 100%);
  z-index: 1;
}

.card-overlay-text {
  position: relative;
  z-index: 2;
  text-align: left;
}

.card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ff2a6d;
  margin-bottom: 8px;
}

.graphic-card h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}

.graphic-card p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.card-sub-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
  line-height: 1.4;
}

.card-bold-desc {
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 6px;
}

.card-bottom-info {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

/* Card-in-card overlay layout for Discipleship Card */
.graphic-card.discipleship-card {
  background-image: url('images/news_discipleship.png');
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.graphic-card.discipleship-card::before {
  display: none; /* Disable dark gradient as we have a white card */
}

.discipleship-overlay-box {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 28px;
  width: 100%;
  height: 100%;
  color: #333333;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
  text-align: left;
}

.discipleship-overlay-box .card-tag {
  color: #ff2a6d;
  font-weight: 700;
  font-size: 11px;
}

.discipleship-overlay-box h3 {
  font-size: 20px;
  font-weight: 700;
  color: #111111;
}

.discipleship-overlay-box .card-sub-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 13px;
  color: #666666;
}

.discipleship-overlay-box .card-bold-desc {
  font-size: 14px;
  font-weight: 700;
  color: #111111;
}

.discipleship-overlay-box .card-bottom-info {
  font-size: 11px;
  color: #888888;
}

/* News & Events List Section */
.news-section {
  padding: 80px 0;
  background-color: #ffffff;
  border-top: 1px solid #f1f3f5;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 12px;
  border-bottom: 1px solid #eeeeee;
  transition: background-color 0.2s ease;
}

.news-item:first-child {
  border-top: 1px solid #eeeeee;
}

.news-item:hover {
  background-color: #fafafa;
}

.news-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.news-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

.badge-blue { background-color: #e3f2fd; color: #1e88e5; }
.badge-green { background-color: #e8f5e9; color: #43a047; }
.badge-yellow { background-color: #fffde7; color: #fbc02d; }
.badge-purple { background-color: #f3e5f5; color: #8e24aa; }

.news-title {
  font-size: 16px;
  font-weight: 600;
  color: #111111;
}

.news-title:hover {
  color: #ff2a6d;
}

.news-date {
  font-size: 13.5px;
  color: #999999;
}

/* Footer Area */
.footer-area {
  background-color: var(--dark-bg);
  color: rgba(255, 255, 255, 0.6);
  padding: 80px 0 60px;
  font-size: 14px;
  border-top: 1px solid #222;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
}

.footer-logo h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.footer-copyright-inline{margin:0;color:rgba(255,255,255,.4);font-size:13px;line-height:1.65}

.church-address {
  line-height: 1.7;
}

.social-icons {
  display: flex;
  gap: 16px;
}

.social-icons a {
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.2s ease;
}

.social-icons a:hover {
  background-color: #ff2a6d;
}

.social-icons a svg {
  width: 16px;
  height: 16px;
}

.footer-links {
  text-align: left;
}

.footer-links h4 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 24px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links ul a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-links ul a:hover {
  color: #ffffff;
}

/* Hidden elements */
.hidden {
  display: none !important;
}

/* Responsive Overrides */
@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .welcome-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .sermon-info {
    padding-left: 0;
  }
  .dept-row, .dept-row.reverse {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 30px 24px;
  }
  .hero-title {
    font-size: 36px;
  }
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none; /* We can add a mobile hamburger menu later */
  }
  .news-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .news-date {
    align-self: flex-end;
  }
}

/* ============================================================
   SUBPAGE STYLES — PREMIUM DESIGN
   ============================================================ */

/* Animated gradient keyframes */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes floatOrb {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(255,42,109,0.15); }
  50% { box-shadow: 0 0 40px rgba(255,42,109,0.3); }
}

/* ---- Subpage Hero Banner ---- */
.subpage-hero {
  background: linear-gradient(-45deg, #0f0c29, #1a1a2e, #302b63, #24243e);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  padding: 0 60px 80px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  min-height: 260px;
}

.subpage-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,42,109,0.15) 0%, transparent 70%);
  animation: floatOrb 8s ease-in-out infinite;
  pointer-events: none;
}

.subpage-hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 15%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
  animation: floatOrb 10s ease-in-out infinite reverse;
  pointer-events: none;
}

.subpage-hero .top-nav {
  padding-top: 40px;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.subpage-hero .nav-links a {
  color: rgba(255,255,255,0.85);
}
.subpage-hero .nav-links a:hover {
  color: #fff;
  text-shadow: 0 0 12px rgba(255,255,255,0.4);
}

.subpage-hero-content {
  max-width: var(--container-width);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.8s ease;
}

.subpage-title {
  font-family: 'Pretendard', sans-serif;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, #ffffff 0%, #e0e0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Subpage Content Area ---- */
.subpage-content {
  padding: 80px 0 120px;
  background-color: #fafafa;
  position: relative;
}

.subpage-content .container {
  animation: fadeInUp 0.6s ease 0.2s both;
}

/* ---- Section Tags ---- */
.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  color: #ff2a6d;
  text-transform: uppercase;
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 8px;
}

.section-tag::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, #ff2a6d, #ff6b9d);
  border-radius: 2px;
}

/* ---- Section Title ---- */
.section-title-serif {
  font-family: 'Pretendard', sans-serif;
  font-weight: 800;
  letter-spacing: -1px;
}

.section-subtitle-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ---- Content Lead ---- */
.content-lead {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  color: #222;
  margin: 16px 0;
  line-height: 1.4;
}

.content-text {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ============================================================
   ABOUT PAGE — Premium Cards
   ============================================================ */

.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.info-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 44px 32px 36px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff2a6d, #ff6b9d, #c084fc);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.info-card:hover::before {
  transform: scaleX(1);
}

.info-card-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #fff0f5 0%, #fce4ec 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  transition: all 0.3s ease;
}

.info-card:hover .info-card-icon {
  background: linear-gradient(135deg, #ff2a6d 0%, #ff6b9d 100%);
  transform: scale(1.1) rotate(5deg);
}

.info-card-icon svg {
  width: 28px;
  height: 28px;
  color: #ff2a6d;
  transition: color 0.3s ease;
}

.info-card:hover .info-card-icon svg {
  color: #ffffff;
}

.info-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #111;
}

.info-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---- Pastor Section ---- */
.pastor-card {
  display: flex;
  gap: 48px;
  align-items: center;
  background: #ffffff;
  border-radius: 28px;
  padding: 56px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.04);
}

.pastor-image-placeholder {
  width: 180px;
  height: 180px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pastor-image-placeholder::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(255,42,109,0.2);
}

.pastor-info h3 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #111;
}

.pastor-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ---- Worship Times ---- */
.times-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.time-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.time-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff2a6d, #c084fc);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.time-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.07);
}

.time-card:hover::after {
  opacity: 1;
}

.time-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: #555;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.time-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, #ff2a6d, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.time-desc {
  font-size: 12px;
  color: #aaa;
  letter-spacing: 0.5px;
}

/* ---- Map ---- */
.map-wrapper {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  margin-bottom: 32px;
}

.location-info {
  text-align: center;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
}

.location-info strong {
  color: #111;
}

/* ============================================================
   WORSHIP PAGE — Schedule Grid
   ============================================================ */

.worship-schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.worship-type-card {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: transform 0.3s ease;
}

.worship-type-card:hover {
  transform: translateY(-4px);
}

.worship-type-header {
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.worship-type-card.sunday .worship-type-header {
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 100%);
  color: #fff;
}

.worship-type-card.weekday .worship-type-header {
  background: linear-gradient(135deg, #ff2a6d 0%, #ff6b9d 100%);
  color: #fff;
}

.worship-day { font-size: 26px; font-weight: 800; }
.worship-day-en { font-size: 11px; font-weight: 700; letter-spacing: 3px; opacity: 0.6; }

.worship-type-body {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.worship-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #f5f5f5;
}

.worship-item:last-child { border-bottom: none; padding-bottom: 0; }
.worship-item h4 { font-size: 15px; font-weight: 700; color: #222; }
.worship-item p { font-size: 14px; color: var(--text-muted); font-weight: 600; }

/* ---- Sermon Video ---- */
.sermon-video-large {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  position: relative;
}

.sermon-video-large::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 27px;
  background: linear-gradient(135deg, #ff2a6d, #c084fc, #6366f1);
  z-index: -1;
}

.sermon-video-large iframe { width: 100%; height: 100%; }

/* ---- Sermon Archive ---- */
.sermon-archive-list { max-width: 700px; margin: 0 auto; }

.sermon-archive-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 16px;
  border-bottom: 1px solid #f1f3f5;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.sermon-archive-item:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.sermon-archive-date { font-size: 13px; color: var(--text-muted); flex-shrink: 0; width: 90px; }

.sermon-archive-title { font-size: 16px; font-weight: 700; color: #222; transition: color 0.2s; }
.sermon-archive-title:hover { color: #ff2a6d; }

/* ============================================================
   MINISTRIES PAGE — Department Cards
   ============================================================ */

.dept-detail-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.dept-detail-card {
  display: flex;
  gap: 48px;
  align-items: flex-end; /* Align elements to the bottom of the card */
  background: #ffffff;
  border-radius: 28px;
  padding: 32px 48px 0 48px; /* Reduced top padding, zero bottom padding to make image flush */
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: visible; /* Prevent image cutoff */
}

.dept-detail-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #ff2a6d, #c084fc);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 28px 0 0 28px; /* Match card rounded corners */
}

.dept-detail-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.07);
}

.dept-detail-card:hover::before { opacity: 1; }

.dept-detail-card:nth-child(even) { flex-direction: row-reverse; }
.dept-detail-card:nth-child(even)::before { left: auto; right: 0; border-radius: 0 28px 28px 0; }

.dept-detail-visual {
  flex-shrink: 0;
  position: relative;
  width: 460px;
  max-width: 100%;
  aspect-ratio: 460 / 392;
  height: auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
}

.dept-detail-content {
  flex: 1;
  align-self: center; /* Center the text vertically relative to the card */
  padding-bottom: 32px; /* Pad text slightly from bottom on smaller screens */
}

.dept-age-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: #ff2a6d;
  background: linear-gradient(135deg, rgba(255,42,109,0.08) 0%, rgba(192,132,252,0.08) 100%);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.dept-detail-content h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #111;
}

.dept-detail-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

.dept-detail-meta {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  background: #f8f9fa;
  display: inline-block;
  padding: 6px 14px;
  border-radius: 8px;
}

/* ============================================================
   SCHOOLS PAGE — Detail Cards
   ============================================================ */

.school-detail-card {
  display: flex;
  gap: 0;
  align-items: stretch;
  margin-bottom: 40px;
  background: #ffffff;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
  transition: all 0.35s ease;
}

.school-detail-card:hover {
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.school-detail-card:nth-child(even) { flex-direction: row-reverse; }

.school-detail-image {
  flex: 0 0 40%;
  min-height: 320px;
  background: linear-gradient(135deg, #c5e2e8 0%, #a8d8ea 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.school-detail-image img { width: 100%; height: 100%; object-fit: cover; }

.school-detail-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 8px 16px;
  border-radius: 24px;
}

.school-detail-content {
  flex: 1;
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.school-detail-content h3 {
  font-size: 26px;
  font-weight: 800;
  color: #111;
  margin-bottom: 16px;
}

.school-detail-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 28px;
}

.school-detail-info { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }

.school-info-item {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: #444;
  background: #f8f9fa;
  padding: 10px 16px;
  border-radius: 10px;
}

.school-info-item strong { color: #111; }

/* ============================================================
   MISSION PAGE — Area Cards
   ============================================================ */

.mission-areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.mission-area-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 44px 32px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.mission-area-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.mission-area-icon {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  transition: transform 0.3s ease;
}

.mission-area-card:hover .mission-area-icon {
  transform: scale(1.1) rotate(-5deg);
}

.mission-area-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 14px; color: #111; }
.mission-area-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ---- Missionary Card ---- */
.missionary-card {
  display: flex;
  gap: 40px;
  align-items: center;
  background: #ffffff;
  border-radius: 28px;
  padding: 52px;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.04);
}

.missionary-image-placeholder {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.missionary-info h4 { font-size: 20px; font-weight: 800; color: #111; margin-bottom: 6px; }
.missionary-location { font-size: 12px; color: #ff2a6d; font-weight: 700; margin-bottom: 14px; letter-spacing: 0.5px; }
.missionary-info p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ============================================================
   DISCIPLESHIP PAGE — Step Cards
   ============================================================ */

.discipleship-steps {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

/* Connecting line */
.discipleship-steps::before {
  content: '';
  position: absolute;
  left: 45px;
  top: 60px;
  bottom: 60px;
  width: 2px;
  background: linear-gradient(180deg, #ff2a6d, #c084fc, #6366f1);
  opacity: 0.15;
  border-radius: 2px;
}

.disc-step-card {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  background: #ffffff;
  border-radius: 24px;
  padding: 40px 44px;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: all 0.35s ease;
  position: relative;
  z-index: 1;
}

.disc-step-card:hover {
  transform: translateX(8px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.07);
  border-color: rgba(255,42,109,0.1);
}

.disc-step-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 56px;
  font-weight: 900;
  background: linear-gradient(135deg, #ff2a6d, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.25;
  flex-shrink: 0;
  line-height: 1;
  transition: opacity 0.3s ease;
}

.disc-step-card:hover .disc-step-number {
  opacity: 0.5;
}

.disc-step-content h3 { font-size: 22px; font-weight: 800; color: #111; margin-bottom: 6px; }

.disc-step-duration {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: #ff2a6d;
  background: rgba(255,42,109,0.06);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.disc-step-content p:last-child { font-size: 14px; color: var(--text-muted); line-height: 1.8; }

/* ============================================================
   NEWS PAGE — List
   ============================================================ */

.news-page-list { max-width: 800px; margin: 0 auto; }

.news-page-item {
  padding: 28px 24px;
  border-bottom: 1px solid #f1f3f5;
  border-radius: 16px;
  transition: all 0.2s ease;
}

.news-page-item:hover {
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  border-bottom-color: transparent;
}

.news-page-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.news-page-date { font-size: 12px; color: #bbb; font-weight: 600; }

.news-page-item h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.news-page-item h3 a { color: #111; transition: color 0.2s; }
.news-page-item h3 a:hover { color: #ff2a6d; }

.news-page-excerpt { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ---- Page Quote ---- */
.page-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-style: italic;
  color: #444;
  margin-top: 20px;
  line-height: 1.5;
  position: relative;
  padding: 0 32px;
}

.page-quote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 48px;
  color: rgba(255,42,109,0.2);
  font-family: Georgia, serif;
}

.page-quote cite { font-size: 13px; font-style: normal; color: #bbb; }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #ff2a6d 0%, #ff6b9d 100%);
  color: #ffffff;
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(255,42,109,0.25);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #e61e50 0%, #ff2a6d 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(255,42,109,0.35);
  color: #ffffff;
}

.btn-primary:hover::before { opacity: 1; }

.btn-outline {
  display: inline-block;
  border: 2px solid #ff2a6d;
  color: #ff2a6d;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ff2a6d, #ff6b9d);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
  z-index: -1;
}

.btn-outline:hover {
  color: #ffffff;
  border-color: transparent;
}

.btn-outline:hover::before { transform: scaleX(1); }

/* ---- CTA Block ---- */
.cta-block {
  background: #ffffff;
  border-radius: 28px;
  padding: 56px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff2a6d, #c084fc, #6366f1);
}

.cta-block h3 { font-size: 24px; font-weight: 800; color: #111; margin-bottom: 12px; }
.cta-block p { font-size: 15px; color: var(--text-muted); line-height: 1.8; }

/* ---- Empty State ---- */
.empty-state { text-align: center; padding: 80px 0; color: #ccc; font-size: 15px; }

/* ---- Pagination ---- */
.pagination { text-align: center; margin-top: 48px; }

.pagination .page-numbers {
  display: inline-block;
  padding: 10px 18px;
  margin: 0 4px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  background: #ffffff;
  border: 1px solid #eee;
  transition: all 0.2s ease;
}

.pagination .page-numbers.current {
  background: linear-gradient(135deg, #ff2a6d, #ff6b9d);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(255,42,109,0.25);
}

.pagination .page-numbers:hover:not(.current) {
  border-color: #ff2a6d;
  color: #ff2a6d;
}

/* ============================================================
   RESPONSIVE — SUBPAGES
   ============================================================ */

@media (max-width: 768px) {
  .subpage-hero { padding: 0 24px 48px; min-height: 200px; }
  .subpage-hero .top-nav { padding-top: 24px; }
  .subpage-title { font-size: 32px; }

  .info-cards-grid, .times-grid, .worship-schedule-grid, .mission-areas-grid {
    grid-template-columns: 1fr;
  }

  .pastor-card, .dept-detail-card, .dept-detail-card:nth-child(even),
  .school-detail-card, .school-detail-card:nth-child(even),
  .missionary-card, .disc-step-card {
    flex-direction: column;
  }

  .pastor-image-placeholder { width: 140px; height: 140px; margin: 0 auto; }
  .school-detail-image { flex: none; width: 100%; min-height: 200px; }
  .school-detail-content { padding: 32px; }
  .cta-block { padding: 36px 24px; }
  .discipleship-steps::before { display: none; }
}

/* ============================================================
   ENHANCED MOTION & EFFECTS
   ============================================================ */

/* ---- Scroll Progress Bar ---- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff2a6d, #c084fc, #6366f1);
  z-index: 99999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ---- Scroll Reveal (content always visible, animation on scroll) ---- */
@keyframes revealEntrance {
  0% { opacity: 0.7; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes revealItemEntrance {
  0% { opacity: 0.6; transform: translateY(16px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.reveal-section.revealed {
  animation: revealEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-item.revealed {
  animation: revealItemEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}


/* ---- Glassmorphism ---- */
.glass-card {
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* ---- Animated Gradient Border ---- */
@keyframes borderRotate {
  0% { --angle: 0deg; }
  100% { --angle: 360deg; }
}

.gradient-border {
  position: relative;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(from var(--angle, 0deg), #ff2a6d, #c084fc, #6366f1, #22d3ee, #ff2a6d);
  z-index: -1;
  animation: borderRotate 4s linear infinite;
}

/* ---- Enhanced Hero ---- */
.subpage-hero {
  min-height: 300px !important;
}

.subpage-hero .top-nav {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-scrolled {
  background: rgba(15, 12, 41, 0.9) !important;
  padding: 12px 0 !important;
  transition: all 0.3s ease;
}

/* ---- Mesh Gradient Background ---- */
.subpage-content {
  background: 
    radial-gradient(ellipse at 10% 20%, rgba(255,42,109,0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 80%, rgba(99,102,241,0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(192,132,252,0.02) 0%, transparent 50%),
    #fafafa !important;
}

/* ---- Gradient Text ---- */
.gradient-text {
  background: linear-gradient(135deg, #ff2a6d, #c084fc, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-animate {
  background: linear-gradient(90deg, #ff2a6d, #c084fc, #6366f1, #22d3ee, #ff2a6d);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Enhanced Cards ---- */
.info-card {
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.info-card:hover .info-card-icon {
  animation: pulseGlow 1.5s ease infinite;
}

.time-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.time-card:hover {
  transform: translateY(-10px) scale(1.03) !important;
}

/* ---- Tilt Card Support ---- */
.tilt-card {
  transition: transform 0.15s ease;
  transform-style: preserve-3d;
}

/* ---- Enhanced CTA ---- */
.cta-block {
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,245,255,0.9) 100%) !important;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.cta-block::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(255,42,109,0.03), transparent, rgba(99,102,241,0.03), transparent);
  animation: borderRotate 20s linear infinite;
}

/* ---- Enhanced Buttons ---- */
.btn-primary {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.05) !important;
  box-shadow: 0 16px 40px rgba(255,42,109,0.35) !important;
}

.btn-outline {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.btn-outline:hover {
  transform: translateY(-3px) scale(1.05);
}

/* ---- Worship Cards Enhanced ---- */
.worship-type-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.worship-type-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 24px 50px rgba(0,0,0,0.08) !important;
}

.worship-type-card.sunday .worship-type-header {
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%) !important;
  position: relative;
  overflow: hidden;
}

.worship-type-card.sunday .worship-type-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.worship-type-card.weekday .worship-type-header {
  background: linear-gradient(135deg, #ff2a6d 0%, #ff6b9d 50%, #c084fc 100%) !important;
  position: relative;
  overflow: hidden;
}

.worship-type-card.weekday .worship-type-header::before {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -20%;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

/* ---- Disc Step Enhanced ---- */
.disc-step-card {
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.disc-step-card:hover {
  transform: translateX(12px) scale(1.02) !important;
  border-left: 3px solid #ff2a6d !important;
}

/* ---- Mission Area Enhanced ---- */
.mission-area-card {
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.mission-area-card:hover {
  transform: translateY(-14px) rotate(-1deg) !important;
}

/* ---- Dept Card Enhanced ---- */
.dept-detail-card {
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.dept-detail-card:hover {
  transform: translateY(-8px) scale(1.01) !important;
}

/* ---- Section Divider Wave ---- */
.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: -1px;
}

.wave-divider svg {
  width: 100%;
  height: 60px;
  display: block;
}

/* ---- Footer Enhanced ---- */
.site-footer {
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,42,109,0.3), rgba(99,102,241,0.3), transparent);
}

/* ---- Animated Dot Pattern ---- */
@keyframes dotPulse {
  0%, 100% { opacity: 0.03; }
  50% { opacity: 0.08; }
}

.subpage-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle, #333 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.03;
  animation: dotPulse 8s ease infinite;
  pointer-events: none;
}

/* ---- Animated Section Tag ---- */
.section-tag {
  position: relative;
  overflow: hidden;
}

.section-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,42,109,0.1), transparent);
  animation: shimmer 3s ease infinite;
}

/* ==========================================================================
   FOOTER STYLING OVERRIDES (Patched by Agent)
   ========================================================================== */
.footer-area {
  background-color: #000000 !important;
  color: rgba(255, 255, 255, 0.6) !important;
}
.footer-logo-img {
  width: 40px !important;
  height: 78px !important;
  object-fit: contain !important;
  margin-bottom: 4px;
}

@media (max-width: 991px) {
  /* Footer Mobile Stacking and Centering matching Figma */
  .footer-area {
    background-color: #000000 !important;
    padding: 60px 20px 40px 20px !important;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    text-align: left !important;
  }
  .footer-info {
    align-items: flex-start !important;
    text-align: left !important;
    gap: 16px !important;
  }
  .footer-logo {
    justify-content: flex-start !important;
  }
  .footer-links {
    text-align: left !important;
  }
  .footer-links ul {
    align-items: flex-start !important;
  }
  .social-icons {
    justify-content: flex-start !important;
  }
}

/* ============================================================
   CUSTOM MEMBER LOGIN / REGISTRATION
   ============================================================ */
.member-auth-page {
  background: #f5f5f2;
  padding: 72px 32px 96px;
  min-height: 760px;
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
}

.member-auth-shell {
  width: min(1180px, 100%);
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(380px, .9fr) minmax(480px, 1.1fr);
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(20, 20, 17, .09);
}

.member-auth-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 680px;
  padding: 52px 54px 46px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 78% 14%, rgba(255,255,255,.13) 0, rgba(255,255,255,0) 32%),
    linear-gradient(145deg, #2f3f32 0%, #152019 100%);
}

.member-auth-intro::after {
  content: '';
  position: absolute;
  right: -145px;
  bottom: -155px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  box-shadow: 0 0 0 54px rgba(255,255,255,.035), 0 0 0 108px rgba(255,255,255,.025);
}

.member-auth-brand,
.member-auth-intro-copy,
.member-auth-verse {
  position: relative;
  z-index: 1;
}

.member-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .09em;
  text-decoration: none;
}

.member-auth-brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
}

.member-auth-brand-mark svg {
  width: 38px;
  height: 38px;
}

.member-auth-eyebrow,
.member-account-eyebrow {
  display: block;
  margin-bottom: 18px;
  color: #dfe8d6;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
}

.member-auth-intro-copy h1 {
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(38px, 3.3vw, 54px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.045em;
}

.member-auth-intro-copy p {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 16px;
  line-height: 1.85;
}

.member-auth-verse {
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: 14px;
  line-height: 1.6;
}

.member-auth-verse span {
  display: block;
  margin-top: 3px;
  color: rgba(255,255,255,.48);
  font-size: 12px;
}

.member-auth-panel {
  align-self: center;
  width: min(520px, calc(100% - 64px));
  margin: 0 auto;
  padding: 54px 0;
}

.member-auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 42px;
  border-bottom: 1px solid #dcded9;
}

.member-auth-tabs a {
  position: relative;
  padding: 0 10px 17px;
  color: #969a93;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.member-auth-tabs a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: transparent;
}

.member-auth-tabs a.is-active {
  color: #17201a;
}

.member-auth-tabs a.is-active::after {
  background: #253b2b;
}

.member-auth-heading {
  margin-bottom: 30px;
}

.member-auth-heading > span {
  display: block;
  margin-bottom: 8px;
  color: #788573;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
}

.member-auth-heading h2,
.member-account-view h2 {
  margin: 0 0 10px;
  color: #171a18;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -.04em;
}

.member-auth-heading p {
  margin: 0;
  color: #7d827c;
  font-size: 15px;
  line-height: 1.6;
}

.member-auth-notice {
  margin: 0 0 24px;
  padding: 13px 16px;
  border: 1px solid;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.member-auth-notice.is-error {
  color: #a0373b;
  border-color: #efcfd0;
  background: #fff7f7;
}

.member-auth-notice.is-success {
  color: #355d3e;
  border-color: #cfdfd2;
  background: #f4faf5;
}

.member-auth-form {
  display: grid;
  gap: 20px;
}

.member-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.member-form-field {
  display: grid;
  gap: 9px;
}

.member-form-field label {
  color: #343936;
  font-size: 14px;
  font-weight: 600;
}

.member-form-field label span {
  color: #b1454b;
}

.member-form-field input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid #dfe1dc;
  border-radius: 10px;
  outline: none;
  background: #fbfbfa;
  color: #171a18;
  font-family: inherit;
  font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.member-form-field input::placeholder {
  color: #a6aaa4;
}

.member-form-field input:focus {
  border-color: #405b46;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(64,91,70,.1);
}

.member-form-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  width: fit-content;
  color: #696f69;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}

.member-form-check input {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: #2d4934;
}

.member-form-agree {
  margin-top: 2px;
}

.member-auth-submit,
.member-auth-secondary {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.member-auth-submit {
  width: 100%;
  border: 1px solid #223828;
  background: #223828;
  color: #fff;
}

.member-auth-submit:hover {
  background: #172a1c;
  transform: translateY(-1px);
}

.member-auth-secondary {
  border: 1px solid #d9ddd8;
  background: #fff;
  color: #333a35;
}

.member-auth-secondary:hover {
  background: #f6f7f5;
}

.member-auth-switch {
  margin: 0;
  color: #858a84;
  font-size: 14px;
  text-align: center;
}

.member-auth-switch a {
  color: #294330;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.member-form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.member-account-view {
  padding: 30px 0;
  text-align: center;
}

.member-account-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  margin: 0 auto 28px;
  border-radius: 50%;
  color: #2b4632;
  background: #edf3ed;
}

.member-account-icon svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.member-account-eyebrow {
  color: #788573;
  margin-bottom: 10px;
}

.member-account-email {
  margin: 12px 0 34px;
  color: #838983;
  font-size: 15px;
}

.member-account-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 900px) {
  .member-auth-page {
    padding: 38px 20px 70px;
  }

  .member-auth-shell {
    grid-template-columns: 1fr;
    max-width: 620px;
  }

  .member-auth-intro {
    min-height: 310px;
    padding: 34px 36px;
  }

  .member-auth-intro-copy h1 {
    margin-top: 34px;
    font-size: 38px;
  }

  .member-auth-intro-copy p,
  .member-auth-verse {
    display: none;
  }

  .member-auth-panel {
    width: min(520px, calc(100% - 48px));
    padding: 46px 0 56px;
  }
}

@media (max-width: 560px) {
  .member-auth-page {
    padding: 20px 14px 54px;
  }

  .member-auth-shell {
    border-radius: 20px;
  }

  .member-auth-intro {
    min-height: 250px;
    padding: 28px 26px;
  }

  .member-auth-intro-copy h1 {
    margin: 24px 0 0;
    font-size: 31px;
  }

  .member-auth-eyebrow {
    margin-bottom: 10px;
  }

  .member-auth-panel {
    width: calc(100% - 40px);
    padding: 38px 0 46px;
  }

  .member-auth-tabs {
    margin-bottom: 34px;
  }

  .member-auth-heading h2,
  .member-account-view h2 {
    font-size: 30px;
  }

  .member-form-grid,
  .member-account-actions {
    grid-template-columns: 1fr;
  }
}
    
/* Figma mobile welcome specs and scroll reveal overrides */
@media (max-width: 991px) {
  .welcome-header h2.section-title-serif {
    font-size: 64px !important;
  }
  .welcome-header p.section-subtitle-sub {
    font-size: 16px !important;
    font-weight: 200 !important;
  }
  .church-address {
    font-size: 15px !important;
    font-family: 'Figtree', sans-serif !important;
  }
  .reveal-on-scroll {
    opacity: 0 !important;
    transform: translateY(30px) !important;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    will-change: opacity, transform !important;
  }
  .reveal-on-scroll.revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
}
/* ==========================================================================
   AGENT PATCEDFIGMA MOBILE SPECIFIC IMPLEMENTATIONS
   ========================================================================== */

/* General styles for new Figma elements */
.news-header-tag {
  display: block;
  font-family: 'Pretendard', sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #555555 !important;
  margin-bottom: 4px !important;
}
.news-title-with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}
.news-header-icon {
  width: 24px;
  height: 24px;
  color: #111111;
}
.news-more-container {
  display: none;
}
.footer-logo-mobile-text {
  display: none;
}
.footer-copyright-mobile {
  display: none;
}
.footer-mobile-location {
  display: none;
}
.desktop-only-footer-text {
  display: inline;
}

@media (max-width: 991px) {
  /* Slogan text size adjustments on mobile */
  .dept-section-title {
    font-size: 38px !important;
  }
  .dept-section-subtitle {
    font-size: 20px !important;
    margin-bottom: 32px !important;
  }
  
  /* Card ordering and overlap fixes */
  .graphic-card {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 0 !important;
  }
  .card-bottom-image {
    order: 1 !important;
    border-radius: 24px 24px 0 0 !important;
    margin-top: 0 !important;
    margin-bottom: -24px !important;
  }
  .card-bottom-image img {
    border-radius: 24px 24px 0 0 !important;
  }
  .card-top-content {
    order: 2 !important;
    border-radius: 24px !important;
    height: auto !important;
    min-height: 269px !important;
    padding-top: 24px !important;
  }
  .discipleship-card-img {
    border-radius: 24px 24px 0 0 !important;
    margin-top: 0 !important;
    margin-bottom: -24px !important;
  }
  .discipleship-card-content {
    border-radius: 24px !important;
  }
  
  /* News horizontal list style on mobile */
  .news-item {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px 0 !important;
  }
  .news-badge {
    display: none !important;
  }
  .news-left {
    display: block !important;
    flex: 1 !important;
  }
  .news-title {
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #111111 !important;
  }
  .news-date {
    font-size: 15px !important;
    color: #888888 !important;
    align-self: center !important;
    margin-left: 16px !important;
    white-space: nowrap !important;
  }
  .news-plus-link {
    display: none !important;
  }
  .news-more-container {
    display: flex !important;
    justify-content: flex-end !important;
    margin-top: 16px !important;
    padding-right: 12px !important;
  }
  .news-more-arrow {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    color: #111111 !important;
  }
  
  /* News header styling matching Figma mobile page */
  .news-header-tag {
    font-size: 14px !important;
    color: #666666 !important;
  }
  .news-section h2.section-title-serif {
    font-size: 31px !important;
    font-weight: 600 !important;
    font-family: 'Figtree', sans-serif !important;
    margin-bottom: 4px !important;
  }
  .news-section p.section-subtitle-sub {
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #777777 !important;
  }
  
  /* Footer overrides matching Figma mobile page */
  .footer-logo-img, .footer-logo > h3:not(.footer-logo-mobile-text) {
    display: none !important;
  }
  .footer-logo h3.footer-logo-mobile-text {
    display: block !important;
    font-family: 'Figtree', sans-serif !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
    margin-bottom: 16px !important;
    text-align: left !important;
  }
  .footer-area .footer-logo > h3 {display:block!important;font-size:22px!important;line-height:1.25!important;margin:0!important;color:#fff!important}
  .desktop-only-footer-text {
    display: none !important;
  }
  .footer-links {
    display: none !important;
  }
  .footer-copyright-mobile {
    display: none !important;
    text-align: left !important;
    margin-top: 32px !important;
    font-family: 'Pretendard', sans-serif !important;
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.4) !important;
    line-height: 1.6 !important;
    width: 100% !important;
  }
  .footer-copyright-mobile p {
    margin: 0 !important;
    padding: 0 !important;
  }
  .footer-mobile-location {
    display: block !important;
    text-align: left !important;
    margin-top: 16px !important;
    width: 100% !important;
  }
  .footer-mobile-location a {
    font-family: 'Pretendard', sans-serif !important;
    font-size: 15px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: underline !important;
  }
  .footer-bottom {
    display: none !important;
  }
  .bible-quote {
    font-size: 18px !important;
  }
  .dept-desc br {
    display: none !important;
  }
  .quick-card {
    border-right: none !important;
  }
}

/* ============================================================
   SUBPAGE GLOBAL HEADER (MOCKUP STYLE)
   ============================================================ */
.subpage-global-header {
  background-color: #ffffff !important;
  padding: 24px 0 0 0 !important;
  border: none !important;
  position: relative !important;
  z-index: 100 !important;
}
.subpage-header-container {
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 80px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 40px !important;
}
.subpage-header-logo {
  flex: 0 0 180px !important;
  margin-top: 10px !important;
}
.subpage-header-logo img {
  width: 180px !important;
  height: 34px !important;
  object-fit: contain !important;
  display: block !important;
}
.subpage-header-right {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  margin-top: 15px !important;
}
.subpage-header-member {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 24px !important;
}
.subpage-header-member a {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif !important;
  font-size: 18px !important;
  font-weight: 300 !important;
  color: #000000 !important;
  text-decoration: none !important;
  line-height: 1 !important;
}
.subpage-header-member .divider {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif !important;
  font-size: 18px !important;
  font-weight: 300 !important;
  color: #000000 !important;
}
.subpage-header-nav {
  width: 100% !important;
}
.subpage-header-container{border-bottom:1px solid #000!important}
.subpage-nav-links {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 32px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 0 24px 0 !important;
  border-bottom: 0 !important;
  width: 100% !important;
}
.subpage-nav-links li {
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}
.subpage-nav-links a {
  font-family: 'Pretendard Variable', 'Pretendard', sans-serif !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #000000 !important;
  text-decoration: none !important;
  transition: opacity 0.2s ease !important;
}
.subpage-nav-links a:hover {
  opacity: 0.7 !important;
}
.subpage-nav-links .current-menu-item a {
  color: #000000 !important;
  opacity: 1 !important;
}

/* Fallback Title Area for other subpages */
.subpage-default-title-area {
  background-color: #f7f7f9 !important;
  padding: 60px 0 !important;
  text-align: center !important;
  border-bottom: 1px solid #e5e5e5 !important;
  margin-bottom: 50px !important;
}
.subpage-default-title-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
}
.subpage-default-title {
  font-family: 'Pretendard', sans-serif !important;
  font-size: 32px !important;
  font-weight: 700 !important;
  color: #111111 !important;
  margin: 0 !important;
}

/* Mobile global header show/hide toggles */
.mobile-global-header {
  display: none !important;
}

@media (max-width: 991px) {
  .subpage-global-header {
    display: none !important;
  }
  .mobile-global-header {
    display: block !important;
    background-color: #EAEAEA !important;
    position: relative !important;
    z-index: 1000 !important;
    height: 112px !important;
    border-bottom-left-radius: 20px !important;
    border-bottom-right-radius: 20px !important;
    overflow: hidden !important;
    transition: height 0.3s ease, border-radius 0.3s ease !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03) !important;
    box-sizing: border-box !important;
  }
  .mobile-global-header.open {
    height: 515px !important;
    border-bottom-left-radius: 20px !important;
    border-bottom-right-radius: 20px !important;
  }
  
  .mobile-header-bar {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 112px !important;
    position: relative !important;
    padding: 60px 20px 20px 20px !important;
    background-color: #EAEAEA !important;
    box-sizing: border-box !important;
  }
  .mobile-header-logo {
    display: block !important;
  }
  .mobile-header-logo img {
    width: 173px !important;
    height: 32px !important;
    object-fit: contain !important;
    display: block !important;
  }
  
  /* Hamburger button & animation */
  .mobile-menu-toggle {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 5px !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 10px !important;
    position: absolute !important;
    right: 20px !important;
    top: 76px !important; /* Centered relative to the 32px logo which is 60px from the top: 60 + 16 = 76 */
    transform: translateY(-50%) !important;
    z-index: 1010 !important;
    width: 44px !important;
    height: 44px !important;
  }
  .mobile-menu-toggle .hamburger-line {
    display: block !important;
    width: 24px !important;
    height: 2px !important;
    background-color: #333333 !important;
    transition: all 0.3s ease !important;
  }
  
  /* Toggled open states */
  .mobile-global-header.open .mobile-menu-toggle .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg) !important;
  }
  .mobile-global-header.open .mobile-menu-toggle .hamburger-line:nth-child(2) {
    opacity: 0 !important;
  }
  .mobile-global-header.open .mobile-menu-toggle .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg) !important;
  }
  
  /* Dropdown menu overlay */
  .mobile-menu-overlay {
    display: none !important;
    position: absolute !important;
    top: 112px !important;
    left: 0 !important;
    width: 100% !important;
    height: 403px !important;
    background-color: #EAEAEA !important;
    z-index: 999 !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding-bottom: 20px !important;
  }
  .mobile-global-header.open .mobile-menu-overlay {
    display: flex !important; /* Force visible layout when header open */
  }
  
  .mobile-menu-links {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .mobile-menu-links li {
    border-bottom: 1px solid #d5d5d5 !important;
    text-align: center !important;
    margin: 0 20px !important; /* Prevents border lines from touching edges */
    padding: 0 !important;
    display: block !important;
  }
  .mobile-menu-links li:first-child {
    border-top: 1px solid #d5d5d5 !important;
  }
  .mobile-menu-links a {
    display: block !important;
    padding: 13.5px 0 !important;
    font-family: 'Pretendard Variable', 'Pretendard', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #000000 !important;
    text-decoration: none !important;
    line-height: 100% !important;
    text-align: center !important;
  }
  
  .mobile-menu-footer {
    padding: 28px 20px 0 20px !important;
    text-align: center !important;
    background-color: #EAEAEA !important;
    box-sizing: border-box !important;
  }
  .mobile-login-btn {
    display: block !important;
    background-color: #000000 !important;
    color: #ffffff !important;
    font-family: 'Pretendard Variable', 'Pretendard', sans-serif !important;
    font-size: 16px !important;
    font-weight: 300 !important;
    padding: 15px 0 !important;
    width: 100% !important;
    max-width: 353px !important;
    height: 46px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    text-align: center !important;
    box-sizing: border-box !important;
    line-height: 100% !important;
    margin: 0 auto !important;
  }
}

.staff-img-empty{display:flex;align-items:center;justify-content:center;background:#eef2f1;color:#7a8581;font-size:14px;font-weight:600}
