/* 
 * 雙躍關懷成長協會 (Cultural Bridges Association)
 * Global Stylesheet
 */

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

:root {
  --primary-color: #1b6f51;
  --primary-light: #eff7f4;
  --primary-dark: #124d38;
  --accent-color: #e6a817;
  --accent-light: #fef8eb;
  --text-dark: #2c3e35;
  --text-light: #6a7f75;
  --bg-color: #fbfdfc;
  --card-bg: #ffffff;
  --border-color: #e2e8e5;
  --font-sans: 'Outfit', 'Inter', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(27, 111, 81, 0.05);
  --shadow-md: 0 8px 24px rgba(27, 111, 81, 0.08);
  --shadow-lg: 0 16px 40px rgba(27, 111, 81, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 52px;
  width: auto;
  transition: var(--transition-smooth);
  /* Apply CSS filter to transform white logo/text into our brand dark green (#1b6f51) */
  filter: brightness(0) invert(36%) sepia(35%) saturate(1074%) hue-rotate(113deg) brightness(93%) contrast(91%);
}

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

nav.main-navigation {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 8px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 10px 16px;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.nav-item.active .nav-link {
  color: #ffffff;
  background-color: var(--primary-color);
}

.nav-btn {
  background-color: var(--accent-color);
  color: #ffffff !important;
  border-radius: 30px;
  padding: 10px 24px;
  box-shadow: 0 4px 12px rgba(230, 168, 23, 0.2);
}

.nav-btn:hover {
  background-color: #d19412;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(230, 168, 23, 0.3);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--primary-color);
  margin: 5px 0;
  transition: var(--transition-smooth);
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 140px 0 100px 0;
  color: #ffffff;
  text-align: center;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(27, 111, 81, 0.85), rgba(18, 77, 56, 0.95));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.2;
  letter-spacing: 2px;
}

.hero-subtitle {
  font-size: 1.35rem;
  font-weight: 300;
  margin-bottom: 40px;
  opacity: 0.9;
  letter-spacing: 1px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 30px;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(230, 168, 23, 0.3);
}

.btn-primary:hover {
  background-color: #d19412;
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
}

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

/* --- Normal Page Hero --- */
.page-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 80px 0;
  color: #ffffff;
  text-align: center;
  background-image: url('../images/bg.png');
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(27, 111, 81, 0.9), rgba(18, 77, 56, 0.95));
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-breadcrumbs {
  font-size: 0.95rem;
  opacity: 0.8;
}

.page-breadcrumbs a {
  color: #ffffff;
}

.page-breadcrumbs span {
  margin: 0 8px;
}

/* --- Section Formatting --- */
section {
  padding: 80px 0;
}

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

.section-gray {
  background-color: var(--primary-light);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px auto;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 30px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  font-weight: 300;
}

/* --- Feature Cards & Grid --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

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

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transition: var(--transition-smooth);
  transform-origin: left;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(27, 111, 81, 0.15);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 64px;
  height: 64px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 24px;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.card-text {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- About Founder Section --- */
.about-founder-grid {
  display: flex;
  align-items: center;
  gap: 56px;
}

.about-founder-img-wrapper {
  flex: 1;
  position: relative;
}

.about-founder-img-wrapper::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent-color);
  border-radius: var(--radius-md);
  z-index: 1;
}

.about-founder-img {
  width: 100%;
  border-radius: var(--radius-md);
  display: block;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-md);
}

.about-founder-content {
  flex: 1.2;
}

.founder-quote {
  font-size: 1.25rem;
  color: var(--primary-color);
  font-weight: 500;
  border-left: 4px solid var(--accent-color);
  padding-left: 20px;
  margin-bottom: 24px;
  line-height: 1.5;
}

.founder-text {
  color: var(--text-light);
  margin-bottom: 20px;
}

.founder-signature {
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 24px;
}

.founder-signature span {
  font-weight: 400;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-left: 12px;
}

/* --- Stats Bar --- */
.stats-bar {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.stats-item {
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.stats-item:last-child {
  border-right: none;
}

.stats-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1;
  margin-bottom: 8px;
}

.stats-label {
  font-size: 1rem;
  font-weight: 300;
  opacity: 0.9;
}

/* --- Donation Page Grid --- */
.donation-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.donation-method-box {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 40px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.donation-method-box h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.donation-info-list li {
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-color);
}

.donation-info-list li:last-child {
  border-bottom: none;
}

.donation-label {
  font-weight: 600;
  color: var(--text-dark);
  display: inline-block;
  width: 120px;
}

.donation-value {
  color: var(--text-light);
}

.qrcode-container {
  display: flex;
  align-items: center;
  gap: 24px;
  background-color: var(--primary-light);
  padding: 24px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
}

.qrcode-img {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  background: white;
  padding: 8px;
}

.qrcode-text {
  font-size: 0.95rem;
  color: var(--primary-dark);
  line-height: 1.5;
}

/* --- News / Blog Style --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

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

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.news-img-holder {
  width: 100%;
  height: 200px;
  background-color: var(--primary-light);
  position: relative;
  overflow: hidden;
}

.news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.news-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--primary-color);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
}

.news-content {
  padding: 24px;
}

.news-meta {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.news-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.4;
}

.news-excerpt {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Contact Us Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
}

.contact-info-card {
  background-color: var(--primary-color);
  color: white;
  border-radius: var(--radius-md);
  padding: 48px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.contact-info-list {
  margin: 32px 0;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-icon {
  font-size: 1.25rem;
  color: var(--accent-color);
  margin-top: 4px;
}

.contact-info-text {
  font-weight: 300;
  opacity: 0.9;
}

.contact-info-text strong {
  display: block;
  font-weight: 600;
  opacity: 1;
  margin-bottom: 4px;
  color: white;
}

.contact-form {
  background-color: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 48px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--bg-color);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-input:focus {
  border-color: var(--primary-color);
  background-color: white;
  outline: none;
  box-shadow: 0 0 0 4px rgba(27, 111, 81, 0.1);
}

/* --- Footer --- */
footer#colophon {
  background-color: var(--primary-dark);
  background-size: cover;
  background-position: center;
  position: relative;
  color: #ffffff;
  padding: 80px 0 40px 0;
}

footer#colophon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(18, 77, 56, 0.95);
  z-index: 1;
}

.footer-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-widget-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--accent-color);
  position: relative;
  padding-bottom: 8px;
}

.footer-widget-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-about-text {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 20px;
  line-height: 1.6;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 4px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  opacity: 0.85;
}

.footer-contact-icon {
  color: var(--accent-color);
  margin-top: 3px;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-icon-link {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition-smooth);
}

.social-icon-link:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

.footer-bottom {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* --- Table Styles --- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.transparency-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: white;
}

.transparency-table th {
  background-color: var(--primary-color);
  color: white;
  padding: 16px 20px;
  font-weight: 500;
}

.transparency-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dark);
}

.transparency-table tr:last-child td {
  border-bottom: none;
}

.transparency-table tr:nth-child(even) {
  background-color: var(--primary-light);
}

/* --- Mobile Responsive Rules --- */
@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-founder-grid {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  header.site-header {
    height: auto;
  }
  .header-container {
    height: 70px;
  }
  .mobile-nav-toggle {
    display: block;
  }
  nav.main-navigation {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--border-color);
    padding: 16px 0;
  }
  nav.main-navigation.open {
    display: block;
  }
  .nav-list {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    padding: 0 24px;
  }
  .nav-link {
    padding: 12px 16px;
  }
  .nav-btn {
    text-align: center;
    margin-top: 8px;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  .hero-buttons {
    flex-direction: column;
    padding: 0 24px;
  }
  .grid-2, .grid-3, .contact-grid, .donation-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .stats-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 24px;
  }
  .stats-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
  .contact-form {
    padding: 24px;
  }
  .contact-info-card {
    padding: 32px;
  }
}
