/* ===== Custom Styles for CSWCSS Education Fund ===== */

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Color variables */
:root {
  --primary: #1B3A5C;
  --primary-light: #2A5580;
  --secondary: #D4A843;
  --accent: #E8713A;
  --bg-warm: #F8F6F3;
  --bg-white: #FFFFFF;
  --text-dark: #2D2D2D;
  --text-muted: #6B7280;
}

/* Typography */
body {
  font-family: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  color: var(--text-dark);
}

/* Hero overlay gradient */
.hero-overlay {
  background: linear-gradient(135deg, rgba(27,58,92,0.85) 0%, rgba(27,58,92,0.5) 100%);
}

/* Gold accent underline */
.accent-underline {
  position: relative;
  display: inline-block;
}
.accent-underline::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
}

/* Card hover effects */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Image zoom on hover */
.img-zoom {
  overflow: hidden;
}
.img-zoom img {
  transition: transform 0.5s ease;
}
.img-zoom:hover img {
  transform: scale(1.08);
}

/* Button styles */
.btn-primary {
  background: var(--accent);
  color: white;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}
.btn-primary:hover {
  background: #d4622e;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(232,113,58,0.3);
}

.btn-secondary {
  background: var(--primary);
  color: white;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}
.btn-secondary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

/* Section divider */
.section-divider {
  width: 60px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
}

/* Stat counter */
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

/* Testimonial quote */
.quote-mark {
  font-size: 4rem;
  line-height: 1;
  color: var(--secondary);
  opacity: 0.5;
  font-family: Georgia, serif;
}

/* Navigation active state */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mobile menu */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-menu.open {
  transform: translateX(0);
}

/* Scroll animation */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Gallery lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 100;
  align-items: center;
  justify-content: center;
}
.lightbox.active {
  display: flex;
}
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}

/* Timeline */
.timeline-item {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid #E5E7EB;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--secondary);
  border: 2px solid white;
}

/* Board member cards */
.member-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid rgba(229, 231, 235, 0.8);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.member-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  border-color: var(--secondary);
}
.member-card.featured {
  background: linear-gradient(135deg, #F8F6F3, #fff);
  border-color: var(--secondary);
  box-shadow: 0 4px 12px rgba(212, 168, 67, 0.15);
}
.member-card .initial {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.member-card h4 {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
  line-height: 1.3;
}
.member-card p {
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.3;
  margin-top: 2px;
}

/* Board tabs */
.board-panel.hidden { display: none; }

/* Partner logos */
.partner-logo {
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}
.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

