* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
/* ---------Global Styles---------- */
:root {
  --text: #262626;
  --background: #f9f5ec;
  --primary: #6e8d5d;
  --secondary: #c4a484;
  --accent: #a3522d;
}


/* ---------Base / Mobile styles (default)---------- */
body {
  font-family: 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  background-color: var(--background);
  color: var(--text);
  padding: 1rem;
}
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1rem;
}
a {
  text-decoration: none;
}
h1, h2, h3, h4 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary);
}
h1 {
  font-size: 1.5rem; 
}
h1 a {
  color: var(--primary);
  transition: color 0.3s ease;
}
h1 a:hover {
  color: var(--accent);
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.25rem;
}
h4 {
  font-size: 1rem;
}
p {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 1rem;
}
button {
  display: inline-block;
  text-decoration: none;
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 2rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

button:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
/* CTA button */
.cta-wrapper {
  text-align: center;
}
.cta-button {
  display: inline-block;
  background-color: var(--accent);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 2rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}
.cta-button:hover {
  background-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}


/* header */
header {
  padding: 0.5rem 0;
  margin: 0 auto;
}
.logo {
  width: 90%;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  justify-content: center;
}
.logo img {
  width: 50px;
}

/* Navigation hamburger */

.nav-menu .menu-list {
  display: none;
  padding: 1rem;
}
.nav-menu .menu-icon {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text);
}
.nav-menu #menu-toggle:checked ~ .menu-list {
  display: block;
}
.nav-menu .menu-list ul {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.nav-menu .menu-list a {
  color: var(--text);
  font-weight: bold;
  display: block;
  padding: 0.5rem 0;
}
.nav-menu .menu-list a:hover {
  background-color: var(--secondary);
  color: var(--background);
}
.menu-icon {
  float: right;
  position: relative;
  top: -40px;
}

/* Hero image */
.homeHero {
  clear: both;
  position: relative;
  overflow: hidden;
  height: 450px;
}

.hero-content h2{
  font-size: 1.5rem;
  color:#ffffff;
}
.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero-slide {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: 0;
  animation: slideFade 10s infinite;
}
.hero-slide:nth-child(1) {
  animation-delay: 0s;
}
.hero-slide:nth-child(2) {
  animation-delay: 5s;
}

@keyframes slideFade {

  0%, 49.99% {
    opacity: 1;
    z-index: 1;
  }
  
  50%, 100% {
    opacity: 0;
    z-index: 0;
  }
}

.hero-content {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;  
  /* color: #ffffff; */
  text-align: center;
  background: rgba(0,0,0,0.4);
  padding: 1rem 2rem;
  border-radius: 4px;
}

/* Main */

/* Trail stories */
.trail-stories {
  padding: 2rem 1rem;
}
.trail-header {
  text-align: center;
  /* margin-bottom: 1.5rem; */
}
.story-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}
.story-card {
  background-color: #ffffff;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 0.75rem;
  
}
.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}
.story-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.story-content {
  padding: 1rem;
}
.story-content p {
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.85;
  margin-bottom: 0.75rem;
}
.story-card.featured {
  min-width: 100%;
}

/* Read More*/
.read-more {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
}
.read-more::after {
  content: "→";
  display: inline-block;
  margin-left: 0.25rem;
  transition: transform 0.3s ease;
}
.read-more:hover {
  color: var(--secondary);
}
.read-more:hover::after {
  transform: translateX(4px);
}

/* Explore by Tags  */
[aria-labelledby="tag-heading"] {
  padding: 1rem 0.5rem;
}
[aria-labelledby="tag-heading"] h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.tag-list {
  gap: 0.5rem;
}
.tag-list button {
  background-color: #ffffff;
  color: var(--primary);
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 400;
  border: 1px solid var(--primary);
  border-radius: 1rem;
  margin: 0.25rem;
}

/* Voices from the Trail */
.trail-voices {
  padding: 2rem 1rem;
  text-align: center;
}

.voices-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.voices-list blockquote {
  position: relative;
  padding: 1rem 1.5rem;
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  font-style: italic;
  color: var(--text);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.voices-list blockquote:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}
.voices-list blockquote::before {
  content: "“";
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  font-size: 3rem;
  color: var(--secondary);
  line-height: 1;
}
.voices-list cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-weight: 600;
  color: var(--primary);
  text-align: right;
}

/* Table Style */
.responsive-table {
  margin: 2rem auto;
  max-width: 850px;
}
.responsive-table h2 {
  text-align: center;
  margin-bottom: 1rem;
}
table {
  line-height: 1.25;
  font-size: 0.65rem;
  border-collapse: collapse;
  margin: 2rem auto;
}
table caption {
  color: var(--accent);
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 1rem;
}
table a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
table a:hover {
  color: var(--secondary);
}
th,td {
  /* border: 1px solid var(--secondary); */
  padding: 0.5rem;
}
th {
  background-color: var(--accent);
  color: #ffffff;
  font-weight: bold;
}
tr:nth-of-type(even) {
  background-color: #ffffff;
}

/* Form Styles */
.contact-form {
  margin: 0 auto;
  padding: 2rem;
  border-radius: 0.5rem;
}
.contact-form h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}
.contact-form p {
  /* text-align: center; */
  margin-bottom: 1rem;
}
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 2rem auto;
}
form label {
  font-weight: 600;
  color: var(--primary);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group small {
  font-size: 0.75rem;
  color: var(--secondary);
}
.checkbox-group {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 0;
  margin-bottom: 0.5rem;
}
.checkbox-group label {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text);
  margin-left: 0.5rem;
}
.checkbox-group input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
}
input, textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--secondary);
  border-radius: 0.25rem;
  font-size: 0.9rem;
  color: var(--text);
}
input[type="file"] {
  padding: 0.25rem;
}
.form-group .submit-button {
  padding: 0.75rem 1.5rem;
}

/* Photo Gallery */
.photo-gallery {
  padding: 2rem 1rem;
}
.photo-gallery h2, .photo-gallery p {
  text-align: center;
  margin-bottom: 1.5rem;
}

.grid-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.grid-gallery img {
  width: 100%;
  height: auto;
  display: block;
}
.grid-gallery figcaption {
  background: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  padding: 0.5rem;
  font-size: 0.8rem;
}
/* Video Gallery */
.video-gallery {
  max-width: 1200px;
  padding: 2rem 1rem;
  margin: 0 auto;
}
.video-gallery h2, .featured-video > p {
  text-align: center;
  margin-bottom: 1.5rem;
}
.video-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
video {
  width: 100%;
  height: auto;
}
.video-description {
  margin-top: 0.5rem;
}
.more-trail-video {
  margin-top: 1rem;
}
.more-trail-video ul {
  list-style: none;
}
.more-trail-video li {
  margin-bottom: 0.75rem;
  position: relative;
}

.more-trail-video a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 500;
}

.more-trail-video a:hover {
  color: var(--secondary);
  text-decoration: underline;
}
  /* News Section */
  .news-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Headline */
.news-section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

/* News article cards */
.news-section article {
  background-color: #ffffff;
  border-left: 6px solid var(--primary);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  transition: transform 0.2s ease;
}

.news-section article:hover {
  transform: translateY(-4px);
}

/* Headline inside card */
.news-section article h3 {
  color: var(--accent);
}

/* Time element */
.news-section time {
  font-weight: bold;
  color:  var(--accent);
}

/* Link style */
.news-section a {
  color: #2b6cb0;
  text-decoration: underline;
}

.news-section a:hover {
  text-decoration: none;
}

/* Trail Article style */
article {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  background-color: #ffffff;
  /* border-radius: 12px; */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);  
}

article h2 {
  font-size: 1.8rem;
  margin: 1.25rem 0;
  line-height: 1.3;
}

article p {
  margin-bottom: 1.2rem;
}

article ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

article ul li {
  margin-bottom: 0.6rem;
  list-style-type: disc;
}

.trail-video {
  margin-top: 2rem;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  margin: 2rem auto;
}

.trail-video iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Footer */
.site-footer {
  background-color: var(--primary);
  color: #ffffff;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.site-footer p {
  color: #ffffff;
}
.site-footer a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Branding */
.footer-branding h3 {
  color: #ffffff;
}
.footer-branding p em {
  font-style: italic;
  opacity: 0.8;
}
.footer-branding p:last-of-type {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Footer Navigation */
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.footer-nav a {
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
}
.footer-nav a:hover {
  text-decoration: underline;
}

/* Social Icons */
.footer-social {
  display: flex;
  gap: 1rem;
}
.footer-social a {
  font-size: 1.25rem;
  transition: color 0.3s ease, transform 0.2s ease;
}
.footer-social a:hover {
  color: var(--secondary);
  transform: translateY(-2px);
}

/* Legal */
.footer-legal p {
  font-size: 0.75rem;
  opacity: 0.8;
  margin: 0.25rem 0;
}
.footer-legal a {
  font-size: 0.75rem;
  text-decoration: underline;
  transition: color 0.3s ease;
}
.footer-legal a:hover {
  color: var(--text);
}


/* ----------Medium screen (Tablet)---------- */
@media (min-width: 600px) {

/* Site navigation */
  .nav-menu .menu-icon,
  .nav-menu #menu-toggle {
    display: none;
  }
  .nav-menu {
    display: block !important;
    width: 100%;
    margin: 0.5rem auto;
    text-align: center;
    padding: 0;
  }
  .nav-menu .menu-list {
    display: block;
  }
  .nav-menu .menu-list ul {
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
  }
  .nav-menu .menu-icon {
    float: none;
    position: static;
    top: auto;
  }
  .logo {
    width: 100%;
  }
/* trail stories */
  .trail-stories .story-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .story-card.featured {
    grid-column: span 2;
  }

/* voice from the trail */
  .voices-list {
    grid-template-columns: repeat(2, 1fr);
  }

/* footer */
  .site-footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: left;
    padding: 2rem 4rem;
  }
  .footer-branding {
    grid-column: 1;
  }
  .footer-nav {
    grid-column: 2;
  }
  .footer-nav ul {
    justify-content: flex-start;
  }
  .footer-social {
    grid-column: 3;
    justify-self: center;
  }
  .footer-legal {
    grid-row: 2;
    grid-column: 1 / 4;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.875rem;
  }
/* Table */
  table {
  line-height: 1.5;
  font-size: 0.9rem;
  }
}

/* ----------Large screen (Desktop)----------- */
@media (min-width: 960px) {
  /* Header and Site navigation */
  .site-header {
    display: flex;
    justify-content: space-between;
    align-items: last baseline;
    padding: 1rem 2rem;
  }
  .logo {
    justify-content: start;
  }
  .logo img {
    width: 100px;
  }
  .logo h1 {
    font-size: 2rem;
  }
  .nav-menu .menu-list ul {
    position: relative;
    top: 10px;
  }

  /* trail stories */
   .trail-stories .story-cards {
    grid-template-columns: repeat(3, 1fr);
  }



  /* Voices from the Trail */
    .voices-list {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Form Styles */
  .contact-form {
    max-width: 800px;
  }
  .form-group, .checkbox-group {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 1rem;
  }
  .form-group small {
    grid-column: 2 / 5;
    font-size: 0.8rem;
  }
  .file-upload #myFile {
    grid-column: 2 / 5;
    padding: 0.5rem;
  }
  .file-upload {
    grid-column: 2 / 5;
  }
  .checkbox-group input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    justify-self: end;
  }
  .form-group .submit-button {
    grid-column: 2;
    width: 60%;
  }
  /* Photo Gallery */
  .grid-gallery figure:hover {
  transform: scale(1.5);
  transition: transform 0.3s ease;
 }

  /* Video Gallery */
  .video-container {
    flex-wrap: nowrap;
  }
  video {
    max-width: 70%;
  }

  /* footer */
    .site-footer {
    grid-template-columns: repeat(4, 1fr);
    text-align: left;
    padding: 2rem 6rem;
  }
  .footer-legal {
    grid-row: 1;
    grid-column: 4;
    justify-self: end;
    margin-top: 0;
    text-align: right;
  }
}
