/* 全域設定 */
body {
  font-family: "Helvetica Neue", "Noto Sans TC", sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  scroll-behavior: smooth;
  background-color: #f9f9f9;
  color: #333;
}

/* 全域 h1 樣式 */
h1 {
  text-align: center;
  color: #004080;
  font-size: 2rem;
}

/* 全域 h2 樣式 (public H2 setting) */
h2 {
  text-align: center;
  color: #004080;
  font-size: 1.6rem;
}

/* 全站共用 section-title 樣式 */
.section-title {
  font-size: 1.6rem;
  text-align: center;
  color: #004080;
  margin: 0 0 1rem;
}

section {
  padding: 60px 20px;
  max-width: 900px;
  margin: auto;
  background-color: #fff;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

a {
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* iframe video */
iframe {
  max-width: 100%;
  height: auto;
  border: none;
}

/* blockquote 學生感謝文 */
blockquote {
  font-style: italic;
  margin: 20px;
  padding: 10px 20px;
  border-left: 4px solid #007acc;
  background-color: #f1f8ff;
}

/* footer */
footer {
  text-align: center;
  padding: 20px;
  background-color: #004080;
  color: #fff;
}

/* 響應式設計 */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
    max-height: 50vh;
    overflow-y: auto;
  }

  section {
    padding: 40px 15px;
  }

  .contact-form-section {
    padding: 40px 15px;
  }

  body {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .sidebar-list li>a {
    font-size: 18px;
  }
}

/* ✅ 手機選單優化：限制最大高度 + 滾動 */
.center-img {
  display: block;
  margin: 20px auto;
}

/* ⬇️ 補上導航列樣式 ⬇️ */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 64, 128, 0.9);
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 10px;
  padding-bottom: 10px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
}

.navbar .brand {
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 1.2em;
  text-decoration: none;
  gap: 8px;
}

.navbar .brand img {
  height: 40px;
  width: auto;
  display: inline-block;
  transition: all 0.3s ease;
}

.navbar .brand:hover img {
  filter: brightness(1.1);
  transform: scale(1.05);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.8em;
  cursor: pointer;
  padding: 12px 18px;
  margin-right: 10px;
}

.nav-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 100vw;
  box-sizing: border-box;
  padding-right: 20px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #00aaff;
}

.nav-links a:active {
  color: #0099cc;
}

.nav-links a.active {
  border-bottom: 2px solid #00aaff;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #004080;
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.active {
    max-height: 60vh;
    overflow-y: auto;
  }
}

/* ⬆️ 導航列樣式結束 ⬆️ */
.video-container {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 40px auto;
  padding-bottom: 56.25%;
  /* 16:9 比例 */
  height: 0;
  overflow: hidden;
}

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

.appointment-section {
  padding: 40px 20px;
  background-color: #f9f9f9;
  /* 或依照你整體配色調整 */
  margin-top: 40px;
  border-top: 1px solid #ccc;
}

.appointment-section .section-title {
  margin-bottom: 20px;
  font-size: 1.6rem;
  color: #003366;
}

.floating-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background-color: #00b900;
  color: white;
  font-size: 28px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transition: transform 0.2s ease;
}

.floating-cta:hover {
  transform: scale(1.1);
}

/* Hero section styles */
.hero {
  padding: 80px 20px;
  background: linear-gradient(135deg, #e0f0ff, #ffffff);
  text-align: center;
  border-bottom: 1px solid #ccc;
}

.hero h1 {
  font-size: 2rem;
  color: #004080;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 30px;
}

.hero-cta {
  display: inline-block;
  background-color: #004080;
  color: #fff;
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.hero-cta:hover {
  background-color: #0066cc;
}

.navbar-spacer {
  height: 60px;
  /* match your navbar height */
}

/* ⬇️ 聯絡表單樣式 ⬇️ */
.contact-form-section {
  max-width: 900px;
  margin: auto;
  padding: 60px 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-label {
  font-weight: bold;
  margin-bottom: 6px;
  color: #004080;
}

.form-input {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: #007acc;
  box-shadow: 0 0 5px rgba(0, 122, 204, 0.3);
}

.form-button {
  background-color: #004080;
  color: #fff;
  padding: 12px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.form-button:hover {
  background-color: #0066cc;
}

/* ⬆️ 聯絡表單樣式結束 ⬆️ */
/* 段落樣式：提升一般內文段落的字體大小與行距 */
p {
  font-size: 1.1rem;
  line-height: 1.7;
}