/* ======================================
   環球慈善基金會 - Global Charity Foundation
   Main Stylesheet
====================================== */

:root {
  --primary: #8B1A1A;
  --primary-dark: #6B0F0F;
  --primary-light: #C0392B;
  --gold: #C8A96E;
  --gold-light: #E8C98E;
  --white: #FFFFFF;
  --off-white: #F8F5F0;
  --light-gray: #F2EDE8;
  --mid-gray: #999;
  --dark-gray: #333;
  --text: #2C2C2C;
  --border: #DDD5C8;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-hover: 0 8px 30px rgba(139,26,26,0.2);
  --transition: all 0.3s ease;
  --font-tc: 'Noto Serif TC', 'Source Han Serif TC', 'STSong', serif;
  --font-sc: 'Noto Serif SC', 'Source Han Serif SC', 'SimSun', serif;
  --font-en: 'Garamond', 'Georgia', serif;
  --radius: 8px;
  --radius-lg: 16px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-tc);
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  overflow-x: hidden;
}
body.lang-sc { font-family: var(--font-sc); }
/* 翻譯後保持原有字體，不做更換 */
/* body.lang-en { font-family: var(--font-en); } */

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 { line-height: 1.4; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.6rem); }
h4 { font-size: clamp(1rem, 2vw, 1.3rem); }
p { margin-bottom: 1rem; }

/* ===== UTILITIES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 30px; }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-primary { color: var(--primary); }
.section-py { padding: 80px 0; }
.section-py-sm { padding: 50px 0; }

/* Section Title Style */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 {
  color: var(--primary);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}
.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 12px auto 0;
  border-radius: 2px;
}
.section-title p {
  color: var(--mid-gray);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  letter-spacing: 0.05em;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
  border: 2px solid var(--gold);
}
.btn-gold:hover {
  background: #A8894E;
  border-color: #A8894E;
  transform: translateY(-2px);
}
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  padding: 6px 0;
  letter-spacing: 0.05em;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.top-bar-left { display: flex; gap: 20px; align-items: center; }
.top-bar-right { display: flex; gap: 10px; align-items: center; }
.top-bar a:hover { color: var(--gold-light); }

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
  display: flex;
  gap: 8px;
  align-items: center;
}
.lang-btn {
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.6);
  color: #fff;
  padding: 6px 16px;
  font-size: 0.85rem;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.lang-btn:hover, .lang-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

/* ===== HEADER / NAVBAR ===== */
.header {
  background: var(--white);
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.logo-img {
  width: auto;
  height: 60px;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.logo-img img { width: auto; height: 60px; object-fit: contain; }
.logo-text { line-height: 1.2; }
.logo-text .name-tc {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}
.logo-text .name-en {
  font-size: 0.72rem;
  color: var(--mid-gray);
  letter-spacing: 0.08em;
  display: block;
  font-family: var(--font-en);
  text-transform: uppercase;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-item { position: relative; }
.nav-link {
  display: block;
  padding: 10px 16px;
  font-size: 0.95rem;
  color: var(--dark-gray);
  font-weight: 600;
  border-radius: 4px;
  transition: var(--transition);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: var(--light-gray);
}
.nav-link.active { color: var(--primary); }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  border-top: 3px solid var(--primary);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: 100;
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 11px 18px;
  font-size: 0.9rem;
  color: var(--text);
  transition: var(--transition);
  border-bottom: 1px solid var(--light-gray);
}
.nav-dropdown a:last-child { border-bottom: none; }
.nav-dropdown a:hover {
  color: var(--primary);
  background: var(--off-white);
  padding-left: 24px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  border-radius: 2px;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #5C0A0A 40%, #3D0505 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C8A96E' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.5) 0%, transparent 60%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  color: var(--white);
  padding: 80px 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,169,110,0.25);
  border: 1px solid rgba(200,169,110,0.5);
  color: var(--gold-light);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero h1 span { color: var(--gold); }
.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  max-width: 550px;
  line-height: 1.9;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(200,169,110,0.3);
}
.hero-stat { text-align: center; }
.hero-stat .num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.hero-stat .label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.05em;
  margin-top: 4px;
}
.hero-image {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}
.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  animation: bounce 2s infinite;
}
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 30px;
  background: rgba(200,169,110,0.5);
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ===== NEWS TICKER ===== */
.news-ticker {
  background: var(--primary);
  color: var(--white);
  padding: 10px 0;
  overflow: hidden;
}
.ticker-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}
.ticker-label {
  flex-shrink: 0;
  background: var(--gold);
  color: var(--white);
  padding: 4px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 3px;
  letter-spacing: 0.08em;
}
.ticker-content {
  overflow: hidden;
  flex: 1;
}
.ticker-items {
  display: flex;
  gap: 60px;
  animation: ticker 35s linear infinite;
  white-space: nowrap;
}
.ticker-items:hover { animation-play-state: paused; }
.ticker-item {
  font-size: 0.88rem;
  opacity: 0.9;
  flex-shrink: 0;
}
.ticker-item a:hover { color: var(--gold-light); }
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== ABOUT HOME SECTION ===== */
.about-home {
  background: var(--off-white);
  padding: 90px 0;
}
.about-home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.about-home-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
}
.about-home-img img { width: 100%; height: 100%; object-fit: cover; }
.about-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  gap: 16px;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
}
.about-img-placeholder .icon { font-size: 4rem; opacity: 0.7; }
.about-img-placeholder span { font-size: 1.1rem; opacity: 0.8; letter-spacing: 0.1em; }
.about-home-img .img-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: var(--primary);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}
.about-home-img .img-badge strong { display: block; font-size: 1.8rem; color: var(--gold); }
.about-home-img .img-badge span { font-size: 0.8rem; opacity: 0.85; }

.about-home-content { padding: 10px 0; }
.about-home-content .label {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}
.about-home-content h2 { color: var(--primary); margin-bottom: 20px; }
.about-home-content p { color: #555; margin-bottom: 14px; }
.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0 32px;
}
.about-value-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 3px solid var(--primary);
}
.about-value-item .icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.about-value-item h4 { font-size: 0.9rem; color: var(--primary); margin-bottom: 2px; }
.about-value-item p { font-size: 0.82rem; color: var(--mid-gray); margin: 0; }

/* ===== NEWS SECTION ===== */
.news-section { padding: 90px 0; background: var(--white); }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0,0,0,0.07);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}
.news-card-img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #f0e8e0 0%, #ddd0c0 100%);
  position: relative;
  overflow: hidden;
}
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.4;
}
.news-card-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}
.news-card-body { padding: 22px; }
.news-card-date { font-size: 0.8rem; color: var(--mid-gray); margin-bottom: 8px; }
.news-card-body h3 {
  font-size: 1rem;
  color: var(--dark-gray);
  margin-bottom: 10px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-body p {
  font-size: 0.87rem;
  color: #666;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-link {
  font-size: 0.87rem;
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.news-card-link:hover { gap: 10px; }

/* ===== MISSIONS SECTION ===== */
.missions-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #5C1010 100%);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}
.missions-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C8A96E' fill-opacity='0.05'%3E%3Cpath d='M40 0l40 40-40 40L0 40z'/%3E%3C/g%3E%3C/svg%3E");
}
.missions-section .section-title h2 { color: var(--white); }
.missions-section .section-title h2::after { background: var(--gold); }
.missions-section .section-title p { color: rgba(255,255,255,0.7); }
.missions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}
.mission-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(200,169,110,0.25);
  border-radius: var(--radius-lg);
  padding: 0;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.mission-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
}
.mission-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.mission-card:hover .mission-img img {
  transform: scale(1.07);
}
.mission-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--gold);
  transform: translateY(-6px);
}
.mission-card .mission-icon {
  margin-top: 20px;
}
.mission-icon {
  width: 72px;
  height: 72px;
  background: rgba(200,169,110,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
  border: 2px solid rgba(200,169,110,0.4);
  transition: var(--transition);
}
.mission-card:hover .mission-icon {
  background: var(--gold);
  border-color: var(--gold);
}
.mission-card h3 { color: var(--gold); font-size: 1.1rem; margin-bottom: 12px; padding: 0 24px; }
.mission-card p { color: rgba(255,255,255,0.75); font-size: 0.88rem; line-height: 1.8; padding: 0 24px 24px; margin-bottom:0; }

/* ===== GALLERY HOME ===== */
.gallery-home { padding: 90px 0; background: var(--off-white); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 12px;
  margin-bottom: 36px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--light-gray);
}
.gallery-item:first-child {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(139,26,26,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  color: var(--white);
  font-size: 2rem;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8d5c0 0%, #d4c0a8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  opacity: 0.5;
}

/* ===== JOIN SECTION (CTA) ===== */
.join-cta {
  background: var(--white);
  padding: 90px 0;
}
.join-cta-inner {
  background: linear-gradient(135deg, var(--off-white) 0%, #EDE5D8 100%);
  border-radius: var(--radius-lg);
  padding: 60px 70px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.join-cta-inner::before {
  content: '✦';
  position: absolute;
  right: 80px;
  top: -40px;
  font-size: 15rem;
  color: var(--primary);
  opacity: 0.04;
  line-height: 1;
}
.join-cta-inner h2 { color: var(--primary); margin-bottom: 12px; }
.join-cta-inner p { color: #666; max-width: 500px; margin: 0; }
.join-cta-actions { display: flex; gap: 14px; flex-shrink: 0; }

/* ===== FOOTER ===== */
.footer {
  background: #1a0505;
  color: rgba(255,255,255,0.8);
  padding-top: 70px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo { margin-bottom: 20px; }
.footer-brand .logo-text .name-tc { color: var(--gold); }
.footer-brand .logo-text .name-en { color: rgba(255,255,255,0.5); }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.6); line-height: 1.9; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.social-btn {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: var(--transition);
}
.social-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }

.footer-col h4 {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(200,169,110,0.3);
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-col ul li a:hover { color: var(--gold); padding-left: 4px; }
.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 0.87rem;
  color: rgba(255,255,255,0.6);
}
.footer-contact-item .icon { color: var(--gold); flex-shrink: 0; margin-top: 2px; font-size: 0.85rem; }
.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  gap: 20px;
  flex-wrap: wrap;
}
.footer-bottom a:hover { color: var(--gold); }

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #5C1010 100%);
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C8A96E' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-content { position: relative; z-index: 1; text-align: center; color: var(--white); }
.page-hero-content h1 { color: var(--white); margin-bottom: 12px; }
.page-hero-content p { color: rgba(255,255,255,0.8); font-size: 1.05rem; max-width: 600px; margin: 0 auto 20px; }
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: var(--gold); }

/* ===== FORM STYLES ===== */
.form-section { padding: 80px 0; }
.form-container { max-width: 800px; margin: 0 auto; }
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 50px 60px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-gray);
  margin-bottom: 8px;
}
.form-group label .required { color: var(--primary); margin-left: 3px; }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139,26,26,0.1); }
.form-control::placeholder { color: #bbb; }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }
.form-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.form-check input[type="checkbox"] { margin-top: 3px; accent-color: var(--primary); width: 16px; height: 16px; flex-shrink: 0; cursor: pointer; }
.form-check label { font-size: 0.88rem; color: #555; cursor: pointer; line-height: 1.6; }
.form-submit { text-align: center; margin-top: 30px; }
.form-note { font-size: 0.82rem; color: var(--mid-gray); text-align: center; margin-top: 14px; }
.form-success {
  display: none;
  background: #f0f9f0;
  border: 1px solid #7ac97a;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  color: #2d7a2d;
  margin-top: 20px;
}
.form-success.show { display: block; }

/* ===== ABOUT PAGE ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0,0,0,0.07);
  transition: var(--transition);
  border: 1px solid var(--border);
  text-align: center;
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.team-card-photo {
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, var(--light-gray), var(--border));
  position: relative;
  overflow: hidden;
}
.team-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--primary);
  opacity: 0.3;
}
.team-card-body { padding: 20px; }
.team-card-body h4 { color: var(--primary); margin-bottom: 4px; }
.team-card-body .role { font-size: 0.82rem; color: var(--mid-gray); }

/* ===== GALLERY PAGE ===== */
.gallery-masonry {
  columns: 4;
  column-gap: 16px;
}
.gallery-masonry-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.gallery-masonry-item img { width: 100%; display: block; transition: transform 0.4s ease; }
.gallery-masonry-item:hover img { transform: scale(1.05); }
.gallery-masonry-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(139,26,26,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  color: var(--white);
  font-size: 2rem;
}
.gallery-masonry-item:hover .overlay { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox-inner { position: relative; max-width: 90vw; max-height: 90vh; }
.lightbox-inner img { max-width: 100%; max-height: 90vh; border-radius: var(--radius); }
.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  align-items: start;
}
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--light-gray);
}
.contact-info-item:last-of-type { border-bottom: none; }
.contact-icon-wrap {
  width: 46px;
  height: 46px;
  background: var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info-item h4 { font-size: 0.88rem; color: var(--mid-gray); margin-bottom: 4px; font-weight: 500; }
.contact-info-item p { margin: 0; font-size: 0.95rem; color: var(--text); font-weight: 600; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 8888;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(3px);
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 24px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
}
.modal-header h3 { color: var(--white); font-size: 1.2rem; }
.modal-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,0.35); }
.modal-body { padding: 30px; }
.modal-footer {
  padding: 20px 30px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(139,26,26,0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 999;
  border: none;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ===== MOBILE NAV OVERLAY ===== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 90vw);
  height: 100vh;
  background: var(--white);
  z-index: 2000;
  box-shadow: -5px 0 30px rgba(0,0,0,0.2);
  transition: right 0.3s ease;
  overflow-y: auto;
}
.mobile-nav.open { right: 0; }
.mobile-nav-header {
  background: var(--primary);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-nav-header .logo-text .name-tc { color: var(--gold); font-size: 1rem; }
.mobile-nav-header .logo-text .name-en { color: rgba(255,255,255,0.6); }
.mobile-nav-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-nav-body { padding: 20px; }
.mobile-nav-item { border-bottom: 1px solid var(--light-gray); }
.mobile-nav-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 4px;
  font-weight: 600;
  color: var(--dark-gray);
  font-size: 1rem;
}
.mobile-nav-link:hover { color: var(--primary); }
.mobile-nav-sub { padding: 0 0 8px 16px; display: none; }
.mobile-nav-sub.open { display: block; }
.mobile-nav-sub a { display: block; padding: 8px 4px; font-size: 0.9rem; color: #666; border-bottom: 1px solid var(--light-gray); }
.mobile-nav-sub a:last-child { border-bottom: none; }
.mobile-nav-sub a:hover { color: var(--primary); }
.mobile-lang {
  display: flex;
  gap: 8px;
  padding: 20px 4px;
}
.mobile-lang .lang-btn {
  border: 1px solid var(--border);
  color: var(--dark-gray);
  padding: 6px 14px;
  border-radius: 4px;
}
.mobile-lang .lang-btn.active { background: var(--primary); border-color: var(--primary); color: var(--white); }
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1999;
}
.mobile-overlay.open { display: block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .missions-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .gallery-masonry { columns: 3; }
}

@media (max-width: 900px) {
  .about-home-grid { grid-template-columns: 1fr; gap: 40px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .gallery-grid .gallery-item:first-child { grid-column: 1; grid-row: 1; }
  .join-cta-inner { grid-template-columns: 1fr; padding: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-card { padding: 36px 30px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-image { width: 40%; opacity: 0.25; }
  .hero-stats { gap: 24px; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }
  .top-bar-left { display: none; }
  .news-grid { grid-template-columns: 1fr; }
  .missions-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .hero-stat { flex: 0 0 calc(50% - 10px); }
  .form-row { grid-template-columns: 1fr; }
  .gallery-masonry { columns: 2; }
}

@media (max-width: 480px) {
  .section-py { padding: 60px 0; }
  .container { padding: 0 16px; }
  .missions-grid { grid-template-columns: 1fr; }
  .hero-content { padding: 60px 0; }
  .hero h1 { font-size: 1.7rem; }
  .hero-actions { flex-direction: column; }
  .about-values { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-masonry { columns: 1; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .join-cta-inner { padding: 30px 24px; }
  .join-cta-actions { flex-direction: column; width: 100%; }
  .form-card { padding: 28px 20px; }
}

/* ===== ANIMATIONS ===== */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ===== PAGE TABS ===== */
.tab-nav {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 10px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--mid-gray);
  border-radius: 4px 4px 0 0;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); background: var(--off-white); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== DONATION SECTION ===== */
.donation-section {
  background: var(--off-white);
  padding: 90px 0;
}
.donation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.donation-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}
.amount-btn {
  padding: 10px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark-gray);
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
}
.amount-btn:hover, .amount-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(139,26,26,0.05);
}

/* Lang hidden */
[data-lang] { display: none; }
.lang-tc [data-lang="tc"] { display: block; }
.lang-sc [data-lang="sc"] { display: block; }
.lang-en [data-lang="en"] { display: block; }
.lang-tc [data-lang-inline="tc"],
.lang-sc [data-lang-inline="sc"],
.lang-en [data-lang-inline="en"] { display: inline; }
