/* ===============================
   Import Google Fonts
================================= */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans&family=Roboto+Slab&family=Lato&display=swap');

/* ===============================
   Base Reset
================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: #ffffff;
  color: #333;
  line-height: 1.6;
}

/* ===============================
   Header & Navigation
================================= */
header {
  background-color: #2E8B57;
  color: #fff;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1002;
}

.logo {
  font-family: 'Roboto Slab', serif;
  font-size: 1.8rem;
  font-weight: bold;
}

.logo h1 {
  font-size: inherit;
  font-weight: inherit;
  margin: 0; /* 可选：去掉 h1 自带的外边距 */
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  position: static;
  z-index: auto;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-family: 'Lato', sans-serif;
}

nav a:hover,
nav a.active {
  text-decoration: underline;
  font-weight: bold;
}

/* ===============================
   Responsive Menu (Mobile)
================================= */
#menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 1100;
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    background-color: #2E8B57;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    z-index: 1003;
  }

  nav ul.show {
    display: flex;
  }

  nav ul li {
    border-bottom: 1px solid #ffffff55;
  }

  nav ul li a {
    display: block;
    padding: 1rem;
    width: 100%;
    color: #fff;
    text-decoration: none;
  }

  nav ul li a:hover {
    background-color: #3CB371;
  }

  #menu-toggle {
    display: block;
  }
}

@media (min-width: 769px) {
  nav ul {
    display: flex !important;
    flex-direction: row;
    gap: 1.5rem;
    position: static;
    z-index: auto;
  }

  #menu-toggle {
    display: none;
  }
}

/* ===============================
   Hero Section with Video
================================= */
.hero {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: white;
  z-index: 0;
}

.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.hero-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero-text {
  z-index: 1;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  max-width: 90%;
}

/* ===============================
   CTA Button
================================= */
.cta-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: #006400;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #228B22;
}

/* ===============================
   Features Section (Homepage)
================================= */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 2rem 1rem;
  background-color: #f4f4f4;
}

.feature {
  flex: 1 1 250px;
  margin: 1rem;
  background: #fff;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
}

/* ===============================
   Announcements (Homepage)
================================= */
.announcements {
  padding: 2rem 1rem;
  text-align: center;
}

/* ===============================
   Card Grid (Attractions / Hiking)
================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 1rem;
}

.card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card img {
  width: 100%;
  height: 255px;
  object-fit: cover;
  object-position: center;
}

.card-content {
  padding: 1.2rem;
}

.card-content h3 {
  margin-top: 0;
  color: #006400;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card-content p {
  line-height: 1.6;
  color: #333;
}

.card-content em {
  color: #444;
  font-style: italic;
  display: block;
  margin-top: 0.5rem;
}
/* 整个卡片去掉默认链接样式 */
.card {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* 悬停时卡片放大和加阴影 */
.card:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* 标题始终绿色、加粗、下划线 */
.card h3 {
  color: #006400;
  font-weight: bold;
  text-decoration: underline;
}

/* 段落文本颜色继承，默认无下划线 */
.card p {
  color: inherit;
  text-decoration: none;
}

/* 段落文字 hover 时加下划线 */
.card:hover p {
  text-decoration: underline;
  color: #2E8B57; /* 可选：加一个 hover 颜色更亮的绿色 */
}
/* ===============================
   Map Section (Hiking page)
================================= */
.trail-map {
  max-width: 100%;
  height: auto;
  max-height: 500px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  object-fit: contain;
}

/* ===============================
   Footer
================================= */
footer {
  text-align: center;
  background-color: #4682B4;
  color: #fff;
  padding: 1rem;
  margin-top: 2rem;
}

/* ===============================
   Contact Form
================================= */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Open Sans', sans-serif;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #2E8B57;
  box-shadow: 0 0 5px rgba(46, 139, 87, 0.4);
}

/* ===============================
   Thank You Page Styles
================================= */
.thank-you {
  max-width: 700px;
  margin: 5rem auto;
  padding: 2rem;
  background-color: #f0fff4;
  border: 1px solid #c3e6cb;
  border-radius: 12px;
  color: #2e8b57;
  text-align: center;
}

.thank-you h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.thank-you p {
  color: #333;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-align: left;
}

/* ===============================
   Accessibility: Visually Hidden
================================= */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.card-content a:hover {
  text-decoration: underline;
  color: #2E8B57; /* 或你喜欢的绿色 */
}
