/* Reset and Base Styles */

/* Prevent horizontal scrolling (fixes off-canvas menu issue) */
html {
  overflow-x: hidden;
}

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

body {
  font-family: "Microsoft JhengHei", "Segoe UI", Tahoma, Geneva, Verdana,
    sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
  overflow-x: hidden;
}

:root {
  --fade-duration: 0.9s;
  --fade-ease: ease;
  --fade-distance: 24px;
  --collapse-opacity-duration: 0.4s;
  --collapse-opacity-delay: 0.15s;
}

/* Global Fade Animations */
.fade-sequence {
  opacity: 0;
  transform: translateY(var(--fade-distance, 24px));
  transition: opacity var(--fade-duration, 0.9s) var(--fade-ease, ease),
    transform var(--fade-duration, 0.9s) var(--fade-ease, ease);
  transition-delay: 0ms;
  will-change: opacity, transform;
}

.fade-sequence.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition-delay: var(--fade-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  .fade-sequence {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }
}

/* Staggered Scroll Reveal Animations (Apple-style) */
.stagger-reveal {
  /* Container marker for staggered animations */
}

.stagger-reveal .slide-in-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.stagger-reveal .slide-in-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.25s; /* Stagger delay for second element */
  will-change: opacity, transform;
}

.stagger-reveal.is-visible .slide-in-left,
.stagger-reveal.is-visible .slide-in-right {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .stagger-reveal .slide-in-left,
  .stagger-reveal .slide-in-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }
}

/* Skip Link for Keyboard Navigation */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background-color: #1a5a5a;
  color: #ffffff;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: bold;
  z-index: 10000;
  border-radius: 0 0 4px 0;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid #2d7a5a;
  outline-offset: 2px;
}

/* Header and Navigation */
header {
  position: relative;
  color: #2d5a5a;
  padding: 1.5rem 0 0.1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  /* iOS风格毛玻璃效果 */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../images/header-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(0.5px);
  z-index: -2;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.brand-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.logo {
  position: relative;
  z-index: 2;
  margin-top: auto;
  margin-bottom: 0.5rem;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  height: 60px;
  width: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.logo-title {
  height: 50px;
  width: auto;
  display: block;
  transition: opacity 0.3s ease;
  margin-top: 0.5rem;
}

.logo a:hover .logo-icon,
.logo a:hover .logo-title {
  opacity: 0.85;
}

/* Legacy text logo styles (kept for backwards compatibility) */
.logo h1 {
  font-size: 2rem;
  margin-bottom: 0.2rem;
  color: #1a5a5a;
  font-weight: 600;
}

.logo p {
  font-size: 0.9rem;
  color: #3a7a7a;
  opacity: 0.9;
}

nav {
  position: relative;
  z-index: 2;
  margin-left: auto;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

nav ul li a {
  color: #2d5a5a;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  font-weight: 700;
  font-size: 1.15rem;
  position: relative;
  overflow: hidden;
  /* 毛玻璃效果基线 - 使用深色半透明 */
  background: rgba(26, 90, 90, 0.25);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  /* 增强阴影以提高对比度 */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  /* 白色外圈效果 */
  text-shadow: -1px -1px 0 rgba(255, 255, 255, 0.8),
    1px -1px 0 rgba(255, 255, 255, 0.8), -1px 1px 0 rgba(255, 255, 255, 0.8),
    1px 1px 0 rgba(255, 255, 255, 0.8), 0 0 3px rgba(255, 255, 255, 0.5);
}

nav ul li a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(168, 230, 255, 0.3) 0%,
    rgba(200, 245, 212, 0.3) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

nav ul li a:hover {
  transform: translateY(-2px) scale(1.05);
  background: rgba(26, 90, 90, 0.4);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15),
    0 3px 10px rgba(168, 230, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: #1a5a5a;
}

nav ul li a:hover::before {
  opacity: 1;
}

nav ul li a.active {
  background: rgba(26, 90, 90, 0.45);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
  color: #1a5a5a;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .header-container {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .brand-bar {
    width: 100%;
  }

  .logo {
    margin-bottom: 0;
  }

  nav {
    width: 100%;
    margin-left: 0;
    margin-top: 0;
  }

  nav ul {
    justify-content: center;
  }
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  background: rgba(26, 90, 90, 0.3);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  margin-left: auto;
  position: fixed;
  z-index: 1001;
}

.menu-toggle:hover {
  background: rgba(26, 90, 90, 0.45);
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #1a5a5a;
  margin: 3px 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.page-title {
  font-size: 2.5rem;
  color: #1a5a5a;
  margin-bottom: 2rem;
  text-align: center;
  border-bottom: 3px solid #7ecf9e;
  padding-bottom: 1rem;
  font-weight: 600;
}

/* Hero Section for Home Page */
.hero {
  position: relative;
  background-image: linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.45),
      rgba(0, 0, 0, 0.2)
    ),
    url("../images/hero-poster.png");
  background-size: cover, cover;
  background-position: center, center;
  color: white;
  text-align: center;
  padding: 4rem 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

/* Gradient overlay for better video text contrast */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
  z-index: 1;
  border-radius: 10px;
  pointer-events: none; /* Allows clicks to pass through to content */
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  border-radius: 10px;
}

.hero.reduced-motion .hero-video {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2; /* Updated from 1 to sit above gradient overlay */
  max-width: 720px;
  /* 添加文字阴影以提高可读性 */
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  /* 毛玻璃背景提高可读性 */
  background: rgba(26, 90, 90, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.75rem 2rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #2d7a5a 0%, #1a5a5a 100%);
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* 添加按钮阴影 */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  font-weight: 600;
}

.cta-button:hover {
  background: linear-gradient(135deg, #1a5a5a 0%, #0d3a3a 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Content Sections */
.content-section {
  background: white;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.content-section h3 {
  color: #1a5a5a;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.content-section p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* News and Event Lists */
.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.list-item {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.list-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.list-item h4 {
  color: #1a5a5a;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.list-item .date {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.list-item p {
  color: #555;
  line-height: 1.6;
}

.member-list {
  margin-top: 2rem;
}

.member-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.member-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.member-affiliation {
  font-size: 0.95rem;
  color: #555;
}

.list-item a {
  color: #2d7a5a;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.list-item a:hover {
  color: #1a5a5a;
  text-decoration: underline;
}

.list-feature {
  margin-left: 2rem;
  line-height: 2;
  padding-left: 0;
}

.list-compact {
  margin-left: 1.5rem;
  margin-top: 0.5rem;
  line-height: 1.8;
}

/* Featured News Styles */
.featured-news {
  position: relative;
  border: 2px solid #2d7a5a;
  background: linear-gradient(
    135deg,
    rgba(200, 245, 212, 0.15) 0%,
    rgba(168, 230, 255, 0.15) 100%
  );
  grid-column: 1 / -1;
}

.featured-badge {
  display: inline-block;
  background: linear-gradient(135deg, #2d7a5a 0%, #1a5a5a 100%);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.quote-highlight {
  background: rgba(200, 245, 212, 0.2);
  border-left: 4px solid #7ecf9e;
  padding: 1.25rem;
  margin: 1.5rem 0;
  border-radius: 8px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quote-highlight figcaption {
  color: #1a5a5a;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.quote-highlight blockquote {
  margin: 0;
}

.quote-highlight blockquote p {
  color: #2d5a5a;
  line-height: 1.7;
  margin: 0;
}

.feature-detail {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 2fr;
  gap: 1.5rem;
  align-items: center;
  margin: 2rem 0;
}

.feature-media {
  background: rgba(168, 230, 255, 0.2);
  border: 1px solid rgba(45, 122, 90, 0.2);
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.feature-media picture,
.feature-media img {
  display: block;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.feature-media img {
  height: auto;
}

.highlight-box {
  background: rgba(168, 230, 255, 0.15);
  border: 1px solid rgba(45, 122, 90, 0.3);
  padding: 1.25rem;
  margin: 1.5rem 0;
  border-radius: 8px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.article-emphasis {
  margin-top: 1.5rem;
}

.article-permalink {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2d7a5a;
  margin-top: 1rem;
  text-decoration: none;
}

.article-permalink::before {
  content: "#";
  font-weight: 700;
}

.article-permalink:hover,
.article-permalink:focus-visible {
  text-decoration: underline;
  color: #1a5a5a;
}

.highlight-box h5 {
  color: #1a5a5a;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.highlight-box p {
  color: #2d5a5a;
  line-height: 1.7;
  margin: 0;
}

.press-coverage-link {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(45, 122, 90, 0.2);
  text-align: center;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  color: #2d7a5a;
  padding: 0.9rem 1.8rem;
  text-decoration: none;
  border: 2px solid #2d7a5a;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #2d7a5a 0%, #1a5a5a 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(45, 122, 90, 0.3);
}

.upcoming-news {
  text-align: center;
  border: 1px dashed rgba(45, 122, 90, 0.4);
  background: rgba(168, 230, 255, 0.1);
}

.upcoming-note {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #2d7a5a;
  font-weight: 600;
}

/* Image Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item .caption {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gallery-item .caption h4 {
  color: #1a5a5a;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Organization Chart */
.org-chart {
  background: white;
  padding: 3rem 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
}

.org-level {
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.org-section {
  margin-bottom: 2.5rem;
}

.org-section-title {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: #1a5a5a;
}

/* Collapsible Sections */
.collapsible-header {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: color 0.3s ease;
}

.collapsible-header:hover {
  color: #2d7a5a;
}

.expand-hint {
  font-size: 0.85em;
  font-weight: normal;
  color: #2d7a5a; /* Darker teal for better visibility */
  opacity: 1; /* Fully opaque, no transparency */
  margin-left: 0.5rem;
}

.collapsible-section:not(.collapsed) .expand-hint {
  display: none; /* Hide hint when section is expanded */
}

.collapse-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  margin-left: 0.5rem;
}

.collapsible-section.collapsed .collapse-icon {
  transform: rotate(-90deg);
}

.collapsible-content {
  max-height: 10000px;
  overflow: hidden;
  padding: 0 1rem 1.5rem; /* Added bottom padding to prevent shadow clipping */
  opacity: 1;
  transition: max-height 0.5s ease,
    opacity var(--collapse-opacity-duration, 0.4s) ease
      var(--collapse-opacity-delay, 0.15s);
}

.collapsible-section.collapsed .collapsible-content {
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s ease var(--collapse-opacity-delay, 0.15s),
    opacity var(--collapse-opacity-duration, 0.4s) ease;
  padding: 0 1rem 0; /* Reset bottom padding when collapsed */
}

.org-section-honorary {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(26, 90, 90, 0.1);
}

.org-section-honorary .org-level {
  margin-bottom: 1.5rem;
}

.org-section-honorary .org-level::before,
.org-section-honorary .org-level::after {
  display: none;
}

.org-honorary-separator {
  height: 1px;
  margin: 2rem auto;
  width: 60%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(26, 90, 90, 0.2),
    transparent
  );
}

.org-section-executive {
  margin-top: 1.5rem;
}

.org-section-divider {
  height: 1px;
  margin: 1.5rem 0;
  background: linear-gradient(
    to right,
    transparent,
    rgba(26, 90, 90, 0.3),
    transparent
  );
}

/* Connecting Lines - Vertical */
.org-level:not(:first-child)::before {
  content: "";
  position: absolute;
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, #7ecf9e, transparent);
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
}

/* Connecting Lines - Horizontal (for multiple boxes in same level) */
.org-level:not(:first-child):not(:last-child)::after {
  content: "";
  position: absolute;
  height: 2px;
  background: #7ecf9e;
  top: -40px;
  left: 25%;
  right: 25%;
}

.org-box {
  display: inline-block;
  background: rgba(200, 245, 212, 0.3);
  color: #1a5a5a;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  margin: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 180px;
  cursor: pointer;
}

.org-box-honorary,
.org-box-advisor {
  background: rgba(255, 215, 100, 0.25);
  color: #1a5a5a;
  box-shadow: 0 8px 24px rgba(26, 90, 90, 0.12);
}

.org-box-honorary .org-name,
.org-box-advisor .org-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.org-box-honorary .org-divider,
.org-box-advisor .org-divider {
  height: 1px;
  background: rgba(26, 90, 90, 0.3);
  margin: 0.5rem 0;
}

.org-box-honorary .org-title,
.org-box-advisor .org-title {
  font-size: 0.9rem;
  opacity: 0.85;
}

.org-box .org-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.org-box .org-divider {
  height: 1px;
  background: rgba(26, 90, 90, 0.3);
  margin: 0.5rem 0;
}

.org-box .org-title {
  font-size: 0.9rem;
  opacity: 0.9;
}

.org-box-honorary .org-divider,
.org-box-advisor .org-divider {
  background: rgba(26, 90, 90, 0.3);
}

.org-box-honorary .org-avatar,
.org-box-advisor .org-avatar {
  background: rgba(26, 90, 90, 0.08);
  border-color: rgba(26, 90, 90, 0.25);
}

.org-box:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.org-box.leader {
  background: rgba(255, 200, 200, 0.4);
  font-size: 1.2rem;
  font-weight: bold;
  min-width: 220px;
  padding: 2rem 2.5rem;
}

.org-box.leader:hover {
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

/* Avatar Circle */
.org-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
  border: 3px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.org-box.leader .org-avatar {
  width: 80px;
  height: 80px;
  font-size: 2.5rem;
}

.org-box:hover .org-avatar {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Department Icon */
.org-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

.org-box h4 {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.org-box p {
  font-size: 0.95rem;
  opacity: 0.95;
  margin-bottom: 0.5rem;
}
/* ========== AFFILIATION VISIBILITY SWITCHES ==========
   Set to 'none' to hide, 'block' to show
   ===================================================== */
.org-section-honorary .org-affiliation {
  display: none;
}
.org-section-executive .org-affiliation {
  display: none;
}
.org-section-board .member-affiliation {
  display: none;
}

.org-chart-note {
  text-align: right;
  font-size: 0.85rem;
  color: #666;
  margin-top: 1.5rem;
}

.org-affiliation {
  font-size: 0.85rem;
  opacity: 0.9;
  /* Add word breaking and overflow handling for long affiliate names */
  word-break: break-word; /* Break long words at any character */
  overflow-wrap: break-word; /* Modern standard for overflow wrapping */
  hyphens: auto; /* Add hyphens where appropriate */
  line-height: 1.4; /* Better line spacing for multi-line text */
}

/* Contact Info - Hidden by default, shown on hover */
.org-contact {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
}

.org-box:hover .org-contact {
  opacity: 1;
  max-height: 100px;
}

.org-contact a {
  color: white;
  text-decoration: none;
  display: block;
  margin: 0.25rem 0;
  opacity: 0.9;
}

.org-contact a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Tenure Badge */
.org-tenure {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* Form Styles */
.form-container {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  max-width: 700px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #1a5a5a;
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Character counter for textarea fields */
.char-counter {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #666;
  text-align: right;
  transition: color 0.3s ease, font-weight 0.3s ease;
}

/* Color states based on usage percentage */
.char-counter.safe {
  color: #2d7a5a; /* Teal - plenty of space (0-70%) */
}

.char-counter.warning {
  color: #f59e0b; /* Orange - approaching limit (70-90%) */
  font-weight: 600;
}

.char-counter.danger {
  color: #dc2626; /* Red - near limit (90-100%) */
  font-weight: 600;
}

/* Enhanced focus state for accessibility */
textarea:focus + .char-counter {
  font-weight: 600;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 2px solid #2d7a5a;
  outline-offset: 2px;
  border-color: #2d7a5a;
  box-shadow: 0 0 5px rgba(45, 122, 90, 0.3);
}

/* Global focus styles for accessibility */
a:focus,
button:focus,
.submit-btn:focus {
  outline: 2px solid #2d7a5a;
  outline-offset: 2px;
}

.submit-btn {
  background: linear-gradient(135deg, #1a5a5a 0%, #2d7a5a 100%);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  width: 100%;
  font-weight: 600;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Loading state for submit buttons */
.submit-btn:disabled,
.btn-confirm:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.submit-btn.loading,
.btn-confirm.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.submit-btn.loading::after,
.btn-confirm.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

/* Form Section Headers */
.form-section-header {
  color: #1a5a5a;
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #7ecf9e;
}

.form-section-header:first-child {
  margin-top: 0;
}

/* Radio Button Groups */
.radio-group {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 0.5rem 0;
}

.radio-label,
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.75rem 1rem; /* Increased from 0.5rem to meet 44px touch target minimum */
  margin-bottom: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s;
  min-height: 44px; /* Ensure minimum 44px touch target */
}
.radio-label:hover {
  background: rgba(126, 207, 158, 0.1);
}

.radio-label input[type="radio"] {
  width: auto;
  margin: 0;
  cursor: pointer;
  accent-color: #2d7a5a;
}

/* Checkbox Groups */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(126, 207, 158, 0.05);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(126, 207, 158, 0.2);
}

.checkbox-label {
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.checkbox-label:hover {
  background: rgba(126, 207, 158, 0.15);
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
  cursor: pointer;
  accent-color: #2d7a5a;
}

/* Other Text Fields */
.other-text-field {
  margin-left: 1.5rem;
  margin-top: 0.5rem;
  display: none;
  animation: fadeIn 0.3s ease;
}

.other-text-field.show {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Confirmation Box */
.confirmation-box {
  background: rgba(200, 245, 212, 0.15);
  border: 1px solid rgba(126, 207, 158, 0.3);
  border-radius: 10px;
  padding: 1.5rem;
  line-height: 1.8;
}

.confirmation-box strong {
  color: #1a5a5a;
  font-size: 1.05rem;
  display: block;
  margin-bottom: 0.5rem;
}

.confirmation-checkbox {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.confirmation-checkbox input[type="checkbox"] {
  width: auto !important;
  margin-top: 0.25rem;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: #2d7a5a;
}

.confirmation-text {
  flex: 1;
  color: #333;
}

/* Two-column grid for checkboxes on larger screens */
@media (min-width: 600px) {
  .checkbox-group.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .checkbox-label {
    margin: 0;
  }

  /* "Other" checkbox and field span full width */
  .checkbox-label.other-option {
    grid-column: 1 / -1;
  }

  .other-text-field {
    grid-column: 1 / -1;
  }
}

/* Multi-step Form States */
.form-step {
  display: none;
  animation: fadeIn 0.4s ease;
}

.form-step.active {
  display: block;
}

/* Multi-Step Form Stepper Indicator */
.stepper-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3rem;
  padding: 2rem 1rem 1rem 1rem;
  position: relative;
}

.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  flex: 0 0 auto;
}

.stepper-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f5f5f5;
  border: 3px solid #d1d1d1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  color: #888;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
}

.stepper-number {
  display: block;
}

.stepper-check {
  display: none;
  width: 24px;
  height: 24px;
  color: white;
}

.stepper-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #888;
  transition: color 0.3s ease;
  text-align: center;
  max-width: 100px;
}

.stepper-line {
  flex: 1;
  height: 3px;
  background: #d1d1d1;
  margin: 0 0.5rem;
  position: relative;
  top: -24px;
  min-width: 40px;
  max-width: 120px;
  transition: background 0.3s ease;
}

/* Active Step */
.stepper-step.active .stepper-circle {
  background: #2d7a5a;
  border-color: #2d7a5a;
  color: white;
  box-shadow: 0 0 0 4px rgba(45, 122, 90, 0.1);
}

.stepper-step.active .stepper-label {
  color: #2d7a5a;
  font-weight: 600;
}

/* Completed Step */
.stepper-step.completed .stepper-circle {
  background: #7ecf9e;
  border-color: #7ecf9e;
  color: white;
}

.stepper-step.completed .stepper-number {
  display: none;
}

.stepper-step.completed .stepper-check {
  display: block;
}

.stepper-step.completed .stepper-label {
  color: #7ecf9e;
}

.stepper-step.completed + .stepper-line {
  background: #7ecf9e;
}

/* Responsive Stepper */
@media (max-width: 480px) {
  .stepper-container {
    padding: 1.5rem 0.5rem 0.5rem 0.5rem;
  }

  .stepper-circle {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .stepper-check {
    width: 20px;
    height: 20px;
  }

  .stepper-label {
    font-size: 0.75rem;
    max-width: 70px;
  }

  .stepper-line {
    min-width: 20px;
    max-width: 60px;
    top: -20px;
  }
}

/* Confirmation Review Page */
.review-container {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.review-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(126, 207, 158, 0.3);
}

.review-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.review-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #7ecf9e;
}

.review-section-header h4 {
  color: #1a5a5a;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  border: none;
  padding: 0;
}

/* Edit section button */
.btn-edit-section {
  background: transparent;
  border: 1px solid #2d7a5a;
  color: #2d7a5a;
  padding: 0.4rem 0.8rem;
  border-radius: 5px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
}

.btn-edit-section:hover {
  background: #2d7a5a;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(45, 122, 90, 0.2);
}

.btn-edit-section:active {
  transform: translateY(0);
}

/* Legacy h4 style (for compatibility) */
.review-section h4 {
  color: #1a5a5a;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #7ecf9e;
}

.review-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.75rem 1.5rem;
  line-height: 1.8;
}

.review-label {
  color: #666;
  font-weight: 600;
}

.review-value {
  color: #333;
}

.review-value.highlight {
  color: #1a5a5a;
  font-weight: 600;
}

.review-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.review-buttons button {
  flex: 1;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-back {
  background: white;
  color: #2d7a5a;
  border: 2px solid #2d7a5a;
}

.btn-back:hover {
  background: #f0f8f4;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(45, 122, 90, 0.2);
}

.btn-confirm {
  background: linear-gradient(135deg, #1a5a5a 0%, #2d7a5a 100%);
  color: white;
}

.btn-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(26, 90, 90, 0.3);
}

/* Success Page */
.success-container {
  background: white;
  padding: 3rem 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 600px;
  margin: 2rem auto;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #7ecf9e 0%, #2d7a5a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 3rem;
  color: white;
  animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.success-container h2 {
  color: #1a5a5a;
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.success-container p {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.reference-number {
  background: rgba(126, 207, 158, 0.15);
  border: 2px solid #7ecf9e;
  border-radius: 10px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.reference-number strong {
  display: block;
  color: #1a5a5a;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.reference-number .ref-code {
  color: #2d7a5a;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  font-family: "Courier New", monospace;
}

.success-info {
  background: rgba(200, 245, 212, 0.2);
  border-left: 4px solid #7ecf9e;
  padding: 1.5rem;
  text-align: left;
  margin: 2rem 0;
  border-radius: 5px;
}

.success-info h4 {
  color: #1a5a5a;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.success-info ul {
  list-style: none;
  padding-left: 0;
}

.success-info li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
  color: #555;
}

.success-info li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #7ecf9e;
  font-weight: bold;
}

.success-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.success-buttons a,
.success-buttons button {
  flex: 1;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-home {
  background: linear-gradient(135deg, #1a5a5a 0%, #2d7a5a 100%);
  color: white;
}

.btn-home:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(26, 90, 90, 0.3);
}

.btn-new {
  background: white;
  color: #2d7a5a;
  border: 2px solid #2d7a5a;
}

.btn-new:hover {
  background: #f0f8f4;
  transform: translateY(-2px);
}

/* Responsive for confirmation and success pages */
@media (max-width: 768px) {
  .review-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .review-label {
    font-weight: 600;
    margin-top: 0.5rem;
  }

  .review-buttons,
  .success-buttons {
    flex-direction: column;
  }

  .success-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }

  .reference-number .ref-code {
    font-size: 1.4rem;
  }
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
  align-items: start;
}

.contact-info {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.contact-info h3 {
  color: #1a5a5a;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.contact-item {
  margin-bottom: 1.5rem;
}

.contact-item h4 {
  color: #2d7a5a;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.map-container {
  background: white;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.map-container h3 {
  color: #1a5a5a;
  font-weight: 600;
}

.map-placeholder {
  width: 100%;
  height: 400px;
  background-color: #e0e0e0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  color: #999;
  font-size: 1.2rem;
  flex: 1;
  min-height: 400px;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #1a5a5a 0%, #2d7a5a 100%);
  color: white;
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  justify-items: start;
}

.footer-section h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #ffffff;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-section ul li a:hover {
  color: #c8f5d4;
  transform: translateX(5px);
}

.footer-section p {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; /* Increased from 40px to meet 44px touch target minimum */
  height: 44px; /* Increased from 40px to meet 44px touch target minimum */
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #2d7a5a 0%, #1a5a5a 100%);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.back-to-top.show {
  display: flex;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  /* Show hamburger menu on mobile */
  .menu-toggle {
    display: flex;
    right: 1.5rem;
    top: 1rem;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: auto; /* Dynamic width based on content */
    min-width: 200px; /* Minimum width to accommodate Chinese text */
    max-width: min(
      280px,
      40vw
    ); /* Maximum 280px or 40% of viewport width, whichever is smaller */
    height: 100vh; /* Full height */
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    padding: 5rem 0 2rem 0;
    overflow-y: auto;
    margin: 0;
  }

  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  nav ul li {
    width: 100%;
  }

  nav ul li a {
    padding: 1rem 2rem;
    border-radius: 0;
    width: 100%;
    text-align: left;
    font-size: 1rem;
    border-bottom: 1px solid rgba(26, 90, 90, 0.1);
    white-space: nowrap; /* Prevent text wrapping, menu will expand to fit content */
  }

  .logo-icon {
    height: 50px;
  }

  .logo-title {
    height: 40px;
  }

  .logo h1 {
    font-size: 1.7rem;
  }

  .hero {
    min-height: 400px;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .org-box {
    display: block;
    margin: 1rem auto;
    max-width: 300px;
  }

  .org-level::before,
  .org-level::after {
    display: none; /* Hide connecting lines on mobile */
  }

  .org-avatar {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .org-box.leader .org-avatar {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }

  .org-contact {
    opacity: 1;
    max-height: none;
    /* Always show contact info on mobile (no hover) */
  }

  main {
    padding: 0 1rem;
  }

  .hero-video {
    /* 在平板電腦上保持播放但可能降低解析度 */
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0 1rem;
  }

  .menu-toggle {
    right: 1rem;
    top: 0.8rem;
  }

  nav {
    width: 100%;
    right: -100%;
  }

  .logo-icon {
    height: 40px;
  }

  .logo-title {
    height: 32px;
  }

  .logo h1 {
    font-size: 1.5rem;
  }

  .hero {
    min-height: 350px;
    padding: 2rem 1rem;
  }

  .hero-content {
    padding: 1.5rem;
    border-radius: 15px;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .content-section,
  .form-container,
  .contact-info {
    padding: 1.5rem;
  }

  .list-grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .hero-video {
    /* 保持視頻播放，1.7MB 比大多數放大照片還小 */
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  footer {
    padding: 2rem 1rem;
  }

  .social-links {
    justify-content: center;
  }

  .press-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .media-grid {
    grid-template-columns: 1fr;
  }

  .filter-buttons {
    flex-direction: column;
  }

  .filter-btn {
    width: 100%;
  }
}

/* Press Ceremony Section Styles */
.press-ceremony-section {
  background: white;
  padding: 2.5rem;
  margin-bottom: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.section-title {
  color: #1a5a5a;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-align: center;
}

.press-highlight {
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  background: rgba(45, 122, 90, 0.08);
  text-align: center;
  color: #1a5a5a;
  font-weight: 600;
  line-height: 1.6;
  border: 1px solid rgba(45, 122, 90, 0.15);
}

/* Press Stats Panel */
.press-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  background: rgba(26, 90, 90, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 1024px) {
  .press-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .press-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.5rem;
  }
}

.stat-box {
  text-align: center;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  width: 100%;
}

/* Clickable stat boxes */
.stat-clickable {
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 12px;
  padding: 1rem;
  position: relative;
}

.stat-clickable:hover {
  background: rgba(45, 122, 90, 0.1);
  transform: translateY(-3px);
}

.stat-clickable:active {
  transform: translateY(-1px);
}

.stat-clickable:focus-visible {
  outline: 2px solid #2d7a5a;
  outline-offset: 2px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2d7a5a;
  display: block;
  line-height: 1;
  transition: color 0.3s ease;
}

.stat-clickable:hover .stat-number {
  color: #1a5a5a;
}

.stat-label {
  font-size: 0.9rem;
  color: #1a5a5a;
  margin-top: 0.5rem;
  display: block;
}

/* Filter Buttons */
.filter-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: 0.8rem 1.5rem; /* Increased from 0.75rem to meet 44px touch target minimum */
  border: 2px solid #2d7a5a;
  background: transparent;
  color: #2d7a5a;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1rem;
  font-weight: 600;
  font-family: "Microsoft JhengHei", "Segoe UI", sans-serif;
  min-height: 44px; /* Ensure minimum 44px touch target */
}

.filter-btn span[data-filter-count] {
  font-variant-numeric: tabular-nums;
}

.filter-btn:hover {
  background: rgba(45, 122, 90, 0.1);
  transform: translateY(-2px);
}
.filter-btn:focus-visible {
  outline: 3px solid #2d7a5a;
  outline-offset: 2px;
}

.filter-btn.active {
  background: linear-gradient(135deg, #2d7a5a 0%, #1a5a5a 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 122, 90, 0.3);
}

/* Media Grid */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.media-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(45, 122, 90, 0.15);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.media-card.is-hidden {
  display: none;
}

.media-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(45, 122, 90, 0.15);
  border-color: #2d7a5a;
}

.region-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.badge-hk {
  background: #2d7a5a;
  color: white;
}

.badge-cn {
  background: #7ecf9e;
  color: #1a5a5a;
}

.badge-apac {
  background: #a8e6ff;
  color: #1a5a5a;
}

.badge-intl {
  background: #f4e4a6;
  color: #5a5a1a;
}

.media-name {
  font-weight: 600;
  color: #1a5a5a;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.media-title {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.media-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #2d7a5a;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: auto;
  transition: all 0.3s ease;
}

.media-empty {
  text-align: center;
  color: #1a5a5a;
  font-weight: 600;
  margin-bottom: 1rem;
}

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

.media-results {
  color: #2d7a5a;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.load-more {
  padding: 0.85rem 1.75rem;
  border-radius: 30px;
  border: none;
  background: linear-gradient(135deg, #2d7a5a 0%, #1a5a5a 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(26, 90, 90, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.load-more:hover:not([aria-disabled="true"]) {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(26, 90, 90, 0.3);
}

.load-more[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.media-link:hover {
  color: #1a5a5a;
  gap: 0.6rem;
}

.external-icon {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.media-link:hover .external-icon {
  transform: translate(2px, -2px);
}

/* Founding Ceremony Spotlight Section (Homepage) */
.founding-spotlight {
  background: linear-gradient(
    135deg,
    rgba(200, 245, 212, 0.3) 0%,
    rgba(168, 230, 255, 0.3) 100%
  );
  border: 2px solid #2d7a5a;
  border-radius: 15px;
  padding: 3rem 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.founding-spotlight::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(45, 122, 90, 0.05) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.spotlight-badge {
  display: inline-block;
  background: linear-gradient(135deg, #2d7a5a 0%, #1a5a5a 100%);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(45, 122, 90, 0.3);
}

.spotlight-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.spotlight-text h2 {
  font-size: 2.2rem;
  color: #1a5a5a;
  margin-bottom: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
}

.spotlight-subtitle {
  font-size: 1.3rem;
  color: #2d7a5a;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.spotlight-description {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.spotlight-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

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

.stat-num {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #2d7a5a;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-text {
  display: block;
  font-size: 0.9rem;
  color: #1a5a5a;
  font-weight: 500;
}

.spotlight-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #2d7a5a 0%, #1a5a5a 100%);
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(45, 122, 90, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(45, 122, 90, 0.4);
  background: linear-gradient(135deg, #1a5a5a 0%, #0d3a3a 100%);
}

.btn-secondary-outline {
  display: inline-block;
  background: transparent;
  color: #2d7a5a;
  padding: 1rem 2rem;
  text-decoration: none;
  border: 2px solid #2d7a5a;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary-outline:hover {
  background: #2d7a5a;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 122, 90, 0.3);
}

.spotlight-image {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.spotlight-image picture {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.spotlight-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-caption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #1a5a5a;
  text-align: center;
}

/* Inline styles converted to classes */
.indented-list {
  margin-left: 2rem;
  line-height: 2;
}

.map-section-title {
  color: #1a5a5a;
  margin-bottom: 1rem;
}

.map-address {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.map-note {
  margin-top: 1rem;
  color: #666;
  font-size: 0.9rem;
}

.section-spacing {
  margin-top: 2rem;
}

.month-header {
  color: #1a5a5a;
  font-size: 2rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.view-more-item {
  cursor: pointer;
}

.view-more-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.view-more-gradient {
  height: 200px;
  background: linear-gradient(135deg, #2d7a5a 0%, #1a5a5a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.view-more-content {
  text-align: center;
  color: white;
}

.view-more-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.view-more-text {
  font-size: 1.3rem;
  font-weight: 600;
}

/* Responsive adjustments for spotlight */
@media (max-width: 768px) {
  .founding-spotlight {
    padding: 2rem 1.5rem;
  }

  .spotlight-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .spotlight-text h2 {
    font-size: 1.8rem;
  }

  .spotlight-subtitle {
    font-size: 1.1rem;
  }

  .spotlight-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem;
  }

  .stat-num {
    font-size: 2rem;
  }

  .stat-text {
    font-size: 0.8rem;
  }

  .spotlight-buttons {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary-outline {
    width: 100%;
    text-align: center;
  }

  .spotlight-image picture {
    aspect-ratio: 16 / 9;
  }

  .feature-detail {
    grid-template-columns: 1fr;
  }

  .placeholder-icon {
    font-size: 3rem;
  }
}
