/* ==========================================================================
   안병하기념사업회 (An Byeong-ha Memorial Society) Modern Web Stylesheet
   - Aesthetic Palette: Deep Police Navy & Regal Memorial Gold & Clean Minimalist
   - 100% Responsive, Zero-Dependency, Pure Vanilla CSS
   ========================================================================== */

:root {
  /* Primary & Accent Colors */
  --primary-dark: #0a1424;
  --primary-navy: #16243b;
  --navy-light: #223759;
  --accent-gold: #c99e32;
  --accent-gold-light: #e5b94e;
  --accent-gold-soft: rgba(201, 158, 50, 0.15);
  
  /* Neutral Palette */
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-light: #f1f5f9;
  --border-color: #e2e8f0;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  /* Shadow & Transitions */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(10, 20, 36, 0.08);
  --shadow-lg: 0 12px 28px rgba(10, 20, 36, 0.14);
  --shadow-xl: 0 20px 40px rgba(10, 20, 36, 0.22);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ================= CSS RESET & BASE ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.68;
  word-break: keep-all;
  overflow-x: hidden;
}

.serif {
  font-family: 'Noto Serif KR', Georgia, serif;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 5.5rem 0;
}

.bg-light {
  background-color: var(--bg-light);
}

.bg-dark {
  background-color: var(--primary-dark);
}

.text-white {
  color: var(--text-white) !important;
}

.text-gray {
  color: #cbd5e1 !important;
}

.text-muted {
  color: var(--text-muted);
}

.text-center {
  text-align: center;
}

.img-shadow {
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
}

/* ================= SECTION TITLES ================= */
.section-title-wrap {
  margin-bottom: 3.5rem;
}

.sub-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--primary-navy);
  background-color: rgba(22, 36, 59, 0.08);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.sub-badge.gold {
  color: var(--accent-gold-light);
  background-color: rgba(201, 158, 50, 0.15);
  border: 1px solid rgba(201, 158, 50, 0.3);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.title-underline {
  width: 52px;
  height: 4px;
  background-color: var(--primary-navy);
  margin: 0 auto 1.25rem;
  border-radius: 2px;
}

.title-underline.gold {
  background-color: var(--accent-gold);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.65rem;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary-navy);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(22, 36, 59, 0.3);
}

.btn-primary:hover {
  background-color: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(22, 36, 59, 0.4);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.18);
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-gold {
  background-color: var(--accent-gold);
  color: #1a1200;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(201, 158, 50, 0.35);
}

.btn-gold:hover {
  background-color: var(--accent-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(201, 158, 50, 0.5);
}

.btn-block {
  width: 100%;
}

/* ================= TOP BAR ================= */
.top-bar {
  background-color: #060d17;
  color: #94a3b8;
  font-size: 0.82rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.badge-gold {
  background: var(--accent-gold);
  color: #0a1424;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  font-size: 0.72rem;
  margin-right: 0.45rem;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.global-lang-box {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.78rem;
  color: #cbd5e1;
}

.global-lang-box i {
  color: var(--accent-gold-light);
}

.goog-te-gadget-simple {
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
  font-size: 0.75rem !important;
  font-family: inherit !important;
}

.goog-te-gadget-simple span,
.goog-te-gadget-simple a {
  color: #cbd5e1 !important;
}

.goog-te-gadget-icon {
  display: none !important;
}

.top-links a:hover {
  color: var(--text-white);
}

.btn-quick-tribute {
  background-color: rgba(201, 158, 50, 0.2);
  color: var(--accent-gold-light);
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  border: 1px solid rgba(201, 158, 50, 0.4);
  font-weight: 600;
}

.btn-quick-tribute:hover {
  background-color: var(--accent-gold);
  color: #060d17 !important;
}

/* ================= HEADER & NAV ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.8rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-gold);
}

.brand-title {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.brand-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.6rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  padding: 0.35rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-navy);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-navy);
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  padding: 0;
}

.mobile-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background-color: var(--primary-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-toggle.open span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}
.mobile-toggle.open span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.open span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

.mobile-menu.active {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  padding: 0 1.25rem;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-link:hover {
  color: var(--accent-gold);
}

/* ================= HERO SECTION ================= */
.hero-section {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  background: url('assets/optimized/hero_bg.jpg') center center / cover no-repeat;
  color: var(--text-white);
  padding: 6rem 0;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(10, 20, 36, 0.94) 0%, rgba(22, 36, 59, 0.88) 60%, rgba(10, 20, 36, 0.96) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201, 158, 50, 0.2);
  color: var(--accent-gold-light);
  border: 1px solid rgba(201, 158, 50, 0.4);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 1.35rem;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.hero-lead {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #e2e8f0;
  margin-bottom: 2.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.75rem;
}

.stat-card {
  border-left: 2px solid var(--accent-gold);
  padding-left: 0.85rem;
}

.stat-num {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-gold-light);
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: #cbd5e1;
}

/* ================= PRESIDENTIAL QUOTE ================= */
.quote-section {
  background-color: var(--bg-card);
  padding: 4.5rem 0;
}

.quote-box {
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  border-left: 5px solid var(--primary-navy);
  border-radius: var(--radius-md);
  padding: 2.5rem 3rem;
  margin-bottom: 3rem;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.quote-icon {
  font-size: 2.2rem;
  color: rgba(22, 36, 59, 0.15);
  position: absolute;
  top: 1.5rem;
  left: 1.8rem;
}

.quote-text {
  font-size: 1.45rem;
  line-height: 1.8;
  color: var(--primary-dark);
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 2;
}

.quote-author {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Creed Box */
.creed-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-sm);
}

.creed-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: var(--primary-navy);
}

.creed-header i {
  font-size: 1.5rem;
  color: var(--accent-gold);
}

.creed-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
}

.creed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.creed-item {
  background: var(--bg-light);
  padding: 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  position: relative;
}

.creed-item.highlight {
  background: rgba(201, 158, 50, 0.12);
  border-color: var(--accent-gold);
  grid-column: span 3;
}

.creed-num {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary-navy);
  background: rgba(22, 36, 59, 0.12);
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
  margin-bottom: 0.4rem;
}

.creed-item.highlight .creed-num {
  background: var(--accent-gold);
  color: #060d17;
}

.creed-item p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-main);
}

/* ================= ABOUT SECTION ================= */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 3.5rem;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-main-img {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.about-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.75rem;
}

.about-sub-heading {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.about-text-wrap p {
  margin-bottom: 1.15rem;
  font-size: 1.02rem;
  color: #334155;
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.pillar-box {
  background: var(--bg-card);
  padding: 1.25rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.pillar-box i {
  font-size: 1.75rem;
  color: var(--primary-navy);
  margin-bottom: 0.65rem;
}

.pillar-box h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.35rem;
}

.pillar-box p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0;
}

/* ================= GREETING DETAIL ================= */
.greeting-section {
  background: #fdfdfd;
}

.greeting-paper {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 4rem 4.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.greeting-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.greeting-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.greeting-body p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #334155;
  margin-bottom: 1.35rem;
}

.greeting-body .salute {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-navy);
}

.greeting-highlight-box {
  background: #f8fafc;
  border-left: 4px solid var(--accent-gold);
  padding: 1.35rem 1.75rem;
  margin: 2rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.greeting-highlight-box h4 {
  font-size: 1.05rem;
  color: var(--primary-navy);
  margin-bottom: 0.35rem;
}

.greeting-highlight-box p {
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 0;
  color: #1e293b;
}

.greeting-sign {
  text-align: right;
  margin-top: 3rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-navy);
}

/* ================= TIMELINE SECTION ================= */
.timeline-section {
  position: relative;
}

.timeline-container {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 1rem 0;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 3px;
  background: rgba(255, 255, 255, 0.15);
}

.timeline-block {
  position: relative;
  margin-bottom: 2.75rem;
  padding-left: 72px;
}

.timeline-dot {
  position: absolute;
  left: 21px;
  top: 6px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--navy-light);
  border: 3px solid var(--text-white);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.timeline-dot.special {
  background: var(--accent-gold);
  border-color: #ffd700;
  box-shadow: 0 0 12px var(--accent-gold);
}

.timeline-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.timeline-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateX(4px);
}

.special-card {
  background: rgba(201, 158, 50, 0.12);
  border-color: rgba(201, 158, 50, 0.4);
}

.special-card:hover {
  border-color: var(--accent-gold);
}

.timeline-year {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.highlight-year {
  color: #0a1424;
  background: var(--accent-gold);
}

.timeline-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.65rem;
}

.timeline-card p {
  font-size: 0.96rem;
  line-height: 1.65;
  color: #cbd5e1;
}

/* ================= ACTIVITIES SECTION ================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.card-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.card-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary-navy);
  color: var(--text-white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
}

.card-body {
  padding: 1.25rem;
}

.card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.card-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ================= VIDEO SECTION ================= */
.video-player-wrap {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.responsive-video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  background-color: #000;
}

.responsive-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-meta {
  padding: 1.75rem 2rem;
}

.video-meta h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.video-meta p {
  font-size: 0.98rem;
  color: var(--text-muted);
}

.video-playlist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.video-thumb-card {
  display: flex;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  text-align: left;
  transition: var(--transition);
}

.video-thumb-card:hover,
.video-thumb-card.active {
  border-color: var(--primary-navy);
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.video-thumb-card.active {
  border-left: 4px solid var(--primary-navy);
}

.thumb-img-box {
  position: relative;
  width: 110px;
  height: 70px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
}

.thumb-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.thumb-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.v-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
}

.thumb-info h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.3;
  margin: 0.2rem 0;
}

.thumb-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ================= GALLERY (PHOTO ARCHIVE) ================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  height: 240px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 20, 36, 0.9) 0%, rgba(10, 20, 36, 0.3) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: var(--text-white);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-overlay i {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--accent-gold-light);
}

.gallery-overlay h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.gallery-overlay span {
  font-size: 0.8rem;
  color: #cbd5e1;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* ================= TRIBUTE (GUESTBOOK) ================= */
.tribute-section {
  background: #ffffff;
}

.flower-offering-box {
  background: linear-gradient(135deg, #1b263b 0%, #0d1b2a 100%);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  text-align: center;
  color: var(--text-white);
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-md);
}

.flower-icon i {
  font-size: 2.5rem;
  color: var(--accent-gold-light);
  margin-bottom: 0.5rem;
}

.flower-count-label {
  display: block;
  font-size: 0.95rem;
  color: #94a3b8;
  margin-bottom: 0.25rem;
}

.flower-count-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent-gold-light);
  letter-spacing: -0.02em;
}

.flower-unit {
  font-size: 1.25rem;
  color: #e2e8f0;
  margin-left: 0.3rem;
}

.btn-flower {
  background: var(--accent-gold);
  color: #060d17;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 0.95rem 2rem;
  border-radius: 50px;
  margin-top: 1.25rem;
  box-shadow: 0 4px 20px rgba(201, 158, 50, 0.4);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-flower:hover {
  background: var(--accent-gold-light);
  transform: scale(1.04);
}

.flower-thanks {
  display: block;
  font-size: 0.92rem;
  color: #cbd5e1;
  margin-top: 0.85rem;
  font-weight: 600;
}

.guestbook-container {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 2.5rem;
}

.guestbook-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.25rem;
}

.form-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.35rem;
}

.form-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text-main);
  background: #f8fafc;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-navy);
  background: #ffffff;
}

.guestbook-list-wrap {
  display: flex;
  flex-direction: column;
}

.list-header {
  margin-bottom: 1rem;
}

.list-header h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.tribute-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.tribute-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  transition: var(--transition);
}

.tribute-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}

.tb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.tb-author {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-navy);
}

.tb-affiliation {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 0.35rem;
  font-weight: normal;
}

.tb-time {
  font-size: 0.78rem;
  color: var(--text-light);
}

.tb-content {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #334155;
}

/* ================= LOCATION & CONTACT ================= */
.location-grid {
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: 2rem;
}

.contact-card,
.map-visual-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.25rem;
}

.contact-heading {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
}

.contact-info-list {
  list-style: none;
  margin-bottom: 2rem;
}

.contact-info-list li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}

.contact-icon {
  width: 42px;
  height: 42px;
  background: rgba(22, 36, 59, 0.08);
  color: var(--primary-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.contact-text strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.contact-text p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 0;
}

.map-action-buttons {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.btn-map-google {
  background: #4285f4;
  color: #ffffff;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
}

.btn-map-kakao {
  background: #fee500;
  color: #191919;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
}

.donation-box {
  background: #f8fafc;
  border-left: 3px solid var(--accent-gold);
  padding: 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.donation-box h4 {
  font-size: 0.95rem;
  color: var(--primary-navy);
  margin-bottom: 0.35rem;
}

.donation-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.4rem;
}

.donation-contact {
  font-weight: 600;
  color: #1e293b !important;
}

.office-map-img {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}

.map-visual-caption p {
  font-size: 0.95rem;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

/* ================= LIGHTBOX MODAL ================= */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 36, 0.92);
  backdrop-filter: blur(8px);
}

.lightbox-content {
  position: relative;
  z-index: 2001;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  font-size: 2.5rem;
  color: var(--text-white);
  line-height: 1;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox-caption {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--text-white);
  text-align: center;
  font-weight: 500;
}

/* ================= FOOTER ================= */
.site-footer {
  background: #08111d;
  color: #94a3b8;
  padding: 4.5rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer-brand h3 {
  font-size: 1.45rem;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.footer-address {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 0.75rem;
}

.footer-right {
  text-align: right;
}

.footer-sns {
  display: flex;
  justify-content: flex-end;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.footer-sns a {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}

.footer-sns a:hover {
  background: var(--accent-gold);
  color: #08111d;
}

.copyright {
  font-size: 0.82rem;
  line-height: 1.7;
}

.zero-cost-badge {
  color: var(--accent-gold-light);
  font-weight: 600;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary-navy);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* ================= 9. DONATION & SUPPORT SECTION ================= */
.donation-section {
  background: var(--bg-body);
  position: relative;
}

.donation-card-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 960px;
  margin: 0 auto;
}


.donation-account-box {
  background: linear-gradient(135deg, #0d172a 0%, #172640 100%);
  color: #fff;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  margin: 2.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(212, 160, 23, 0.35);
}

.bank-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bank-tag {
  background: rgba(212, 160, 23, 0.2);
  color: #ffd700;
  border: 1px solid rgba(212, 160, 23, 0.5);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
}

.bank-verified {
  color: #4ade80;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.account-number-display {
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
}

.account-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.bank-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #60a5fa;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.account-owner {
  font-size: 0.95rem;
  color: #cbd5e1;
}

.account-code-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.account-number {
  font-family: 'Noto Sans KR', monospace, sans-serif;
  font-size: 2.15rem;
  font-weight: 900;
  letter-spacing: 2.5px;
  color: #ffd700;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.35);
}

.btn-copy {
  background: linear-gradient(135deg, #d4a017 0%, #b8860b 100%);
  color: #0d1527;
  border: none;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
  box-shadow: 0 4px 15px rgba(212, 160, 23, 0.3);
}

.btn-copy:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 160, 23, 0.45);
  background: #ffdb4d;
}

.btn-copy:active {
  transform: scale(0.96);
}

.copy-success-msg {
  min-height: 1.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #4ade80;
  margin-top: 0.85rem;
  transition: opacity 0.3s ease;
}

.account-guide {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0;
}

.account-guide i {
  color: #ffd700;
  margin-right: 0.25rem;
}

.donation-usage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 0 2.25rem 2.25rem;
}

.usage-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
}

.usage-item:hover {
  border-color: var(--accent-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.usage-icon {
  font-size: 1.75rem;
  color: var(--accent-gold);
  background: rgba(212, 160, 23, 0.1);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.usage-text h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.usage-text p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-body);
  margin: 0;
}

.donation-notice-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 2.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.notice-col p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.notice-col i {
  color: var(--accent-gold);
  margin-right: 0.25rem;
}

.btn-outline-gold {
  border: 1.5px solid var(--accent-gold);
  color: var(--primary-navy);
  background: transparent;
  padding: 0.65rem 1.25rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.btn-outline-gold:hover {
  background: var(--accent-gold);
  color: #fff;
}

.nav-link.nav-highlight {
  color: var(--accent-gold) !important;
  font-weight: 800 !important;
}

.btn-quick-donate {
  background: linear-gradient(135deg, #d4a017 0%, #b8860b 100%);
  color: #0d1527 !important;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition-fast);
}

.btn-quick-donate:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

/* ================= RESPONSIVE MEDIA QUERIES ================= */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.85rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .location-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .top-links {
    display: none;
  }
  .main-nav {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .hero-section {
    padding: 4rem 0 3rem;
    min-height: auto;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .hero-stat-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .creed-grid {
    grid-template-columns: 1fr;
  }
  .creed-item.highlight {
    grid-column: span 1;
  }
  .greeting-paper {
    padding: 2rem 1.5rem;
  }
  .timeline-container::before {
    left: 18px;
  }
  .timeline-block {
    padding-left: 50px;
  }
  .timeline-dot {
    left: 11px;
  }
  .video-playlist-grid {
    grid-template-columns: 1fr;
  }
  .guestbook-container {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-right {
    text-align: center;
  }
  .footer-sns {
    justify-content: center;
  }
  .desktop-br {
    display: none;
  }
  .donation-account-box {
    padding: 1.5rem 1.25rem;
    margin: 1.25rem 1rem;
  }
  .account-number-display {
    padding: 1.25rem 1rem;
  }
  .account-number {
    font-size: 1.45rem;
    letter-spacing: 1px;
    word-break: break-all;
  }
  .donation-usage-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem 1.5rem;
  }
  .donation-notice-footer {
    padding: 1.25rem 1rem;
    flex-direction: column;
    text-align: center;
  }
}
