/* Base Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f7f5;
  color: #2e2e2e;
  line-height: 1.6;
  position: relative;
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  z-index: 0;
}
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/Background\ image.jpg'); /* Replace with your image path */
  background-size: cover;
  background-position: center;
  opacity: 0.2; /* 20% fade */
  z-index: -1;
  pointer-events: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  background: linear-gradient(to right, #3a6043, #2f3e2f);
  color: white;
  padding: 25px 0;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 25px;
  list-style: none;
  padding-top: 10px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #c7e8cc;
}

main.container {
  display: flex;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.content {
  flex: 3;
}

/* Photo of the Month */
.photo-of-the-month {
  margin: 2rem auto;
  max-width: 1000px;
  padding: 1rem;
  border-radius: 12px;
  background-color: #e9f0ed;
  box-shadow: 0 0 10px rgba(128, 127, 127, 0.4);
}

.photo-container {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.photo-container img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  filter: brightness(90%);
  margin-bottom: 0.5rem;
}

.photo-caption {
  padding: 1rem 0.5rem 0;
  color: #2e563f; /* Dark green for caption text */
  text-align: center;
}

.photo-caption h2 {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
  color: #2e563f;
}

.photo-caption p {
  font-size: 1rem;
  color: #464646;
  line-height: 1.4;
}

.sweat-factor-section {
  background: #f4f4f4;
  padding: 40px 20px;
  text-align: center;
  border-top: 2px solid #ccc;
}

.sweat-factor-section h2 {
  font-size: 2em;
  margin-bottom: 10px;
}

.sweat-desc {
  max-width: 650px;
  margin: 0 auto 30px;
  font-size: 1.1em;
  color: #444;
}

.sweat-levels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.sweat-box {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  width: 200px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
  text-align: left;
}

.sweat-box:hover {
  transform: scale(1.05);
  background-color: #f0f0f0;
}

.sweat-box h3 {
  font-size: 1.4em;
  text-align: center;
  margin-bottom: 10px;
}

.sweat-box ul {
  list-style-type: disc;
  padding-left: 20px;
  color: #333;
  font-size: 0.95em;
}

.sweat-box ul li {
  margin-bottom: 6px;
}

/* Sidebar */
.sidebar {
  flex: 1;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  min-width: 280px;
  color: #2e2e2e;
  font-size: 0.95rem;
}

/* Sidebar Headings */
.sidebar h3,
.sidebar h4 {
  text-align: center;
  margin-bottom: 1rem;
  color: #2e563f;
}

.sidebar-about {
  background: #f4f4f4;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.about-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  border: 2px solid #ccc;
}

.sidebar-about h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
}

.sidebar-about p {
  font-size: 0.9em;
  color: #444;
  margin-bottom: 10px;
}

.about-link {
  display: inline-block;
  margin-top: 5px;
  font-size: 0.9em;
  color: #006400;
  text-decoration: none;
}

.about-link:hover {
  text-decoration: underline;
}

.sidebar-lnt {
  background: #e6f3ea;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.sidebar-lnt h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #2e5939;
  text-align: center;
}

.sidebar-lnt ul {
  list-style-type: none;
  padding-left: 20px;
  font-size: 0.9em;
  color: #2e2e2e;
  text-align: left;
}

.sidebar-lnt ul li {
  margin-bottom: 6px;
}

.lnt-link {
  display: block;
  margin: 10px auto 0;
  font-size: 0.85em;
  text-decoration: none;
  color: #006400;
  text-align: center;
}

.lnt-link:hover {
  text-decoration: underline;
}

.sidebar-wildlife {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  overflow: hidden;
  text-align: left;
}

.wildlife-photo {
  width: 100%;
  height: auto;
  display: block;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.sidebar-wildlife h3 {
  font-size: 1.3em;
  margin: 15px 20px 10px;
  color: #2e5939;
  text-align: center;
}

.sidebar-wildlife ul {
  list-style-type: circle;
  padding: 0 20px 20px 40px;
  color: #333;
  font-size: 0.9em;
}

.sidebar-wildlife ul li {
  margin-bottom: 8px;
}

.sidebar-didyouknow {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  overflow: hidden;
  text-align: left;
}

.didyouknow-photo {
  width: 100%;
  height: auto;
  display: block;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.sidebar-didyouknow h3 {
  font-size: 1.3em;
  margin: 15px 20px 10px;
  color: #2e5939;
  text-align: center;
}

.sidebar-didyouknow p {
  font-size: 0.9em;
  padding: 0 20px 10px;
  color: #333;
}

.trail-link {
  display: block;
  text-align: center;
  margin-bottom: 15px;
  font-size: 0.85em;
  color: #006400;
  text-decoration: none;
}

.trail-link:hover {
  text-decoration: underline;
}

/* Sidebar Tip Boxes */
.tip-box {
  margin-bottom: 25px;
  background: #e9f0ed;
  padding: 15px;
  border-left: 5px solid #3a6043;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.tip-box h4 {
  margin-bottom: 10px;
  color: #2e563f;
}

.tip-box ul li::before {
  content: "\f6ec"; /* Unicode for fa-person-hiking */
  font-family: "Font Awesome 6 Free";
  font-weight: 900; /* solid */
  color: #3a6043; /* a nice hiking-green */
  margin-right: 8px;
  position: relative;
  left: 0;
  top: 2px;
  font-size: 1rem;
}

.tip-box ul li {
  list-style: none;
  padding-left: 28px;
  margin-bottom: 10px;
  position: relative;
}

.tip-box ul li i.fa-person-hiking {
  margin-right: 8px;
  color: #3a6043;
  font-size: 1rem;
  vertical-align: middle;
}

.sweat-factor-box {
  background: #ffffff;
  padding: 15px;
  border-left: 5px solid #3a6043;
  border-radius: 6px;
  margin-bottom: 25px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.sweat-factor-box h4 {
  color: #2e563f;
  margin-bottom: 10px;
  font-weight: 700;
}

.sweat-factor-list {
  list-style: none;
  padding-left: 0;
}

.sweat-factor-list li {
  margin-bottom: 10px;
  font-weight: 600;
  color: #464646;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.sweat-icons {
  font-size: 1.3rem;
  color: #3a6043;
  line-height: 1;
}

/* Sections */
section {
  background-color: #ffffff;
  padding: 20px;
  margin-bottom: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* Typography: Headings centered and styled */
h2,
h3,
h4 {
  text-align: center;
  color: #2e563f;
  margin-bottom: 1rem;
  font-weight: 600;
  padding-top: 1rem;
}

/* Paragraphs justified with indent */
p {
  text-align: justify;
  text-indent: 1.2em;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #2e2e2e;
}

section p {
  margin-bottom: 1rem;
}

/* Trail Cards */
.trail-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: space-between;
}

.trail-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centers content vertically */
  align-items: center; 
  padding: 20px;
  border-radius: 10px;
  text-decoration: none;
  color: #f5f5f5; /* Light text for dark background */
  min-height: 180px;
  flex: 1 1 calc(33.33% - 10px);
  background-size: cover;
  background-position: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trail-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

/* Background dim overlay */
.trail-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* 30% visible */
  z-index: 0;
  border-radius: 10px;
}

.trail-card h4,
.trail-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #f0f0f0; /* Lighter text */
}

.trail-card h4 {
  position: relative;
  z-index: 1;
  font-size: 1.25rem;
  margin: 0;
}

.trail-card p {
  position: absolute;
  bottom: 15px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 0.95rem;
  z-index: 1;
  margin: 0;
}

/* Background images for each trail */
.trail-card.bushkill-falls {
  background-image: url('images/George Childs Waterfalls cover shot.jpg');
}

.trail-card.dingmans-falls {
  background-image: url('images/Sohola\ Falls.jpg');
}

.trail-card.raymondskill-falls {
  background-image: url('images/Beltsville\ Waterfalls.jpg');
}

/* Trail List */
.trail-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
  margin-top: 20px;
  list-style: none;
  padding-left: 0;
}

.trail-list li {
  font-weight: 500;
  font-size: 1.1rem;
}

.trail-list li a {
  display: block;
  padding: 12px 18px;
  background-color: #e0ede8;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  color: #2e563f;
  transition: background-color 0.2s;
}

.trail-list li a:hover {
  transform: scale(1.05);
  background-color: #d0e6dc;
  color: #1f3f2f;
}

/* Photo Gallery */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.photo-gallery img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.photo-gallery img:hover {
  transform: scale(1.05);
}

/* Camping List */
.camping-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
  margin-top: 20px;
  list-style: none;
  padding-left: 0;
  color: #2e2e2e;
}

.camping-list li {
  background-color: #e0ede8;
  padding: 10px 15px;
  border-radius: 6px;
  font-weight: 500;
  margin-bottom: 0.7rem;
}

/* Footer */
footer {
  background-color: #2e563f;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  font-size: 0.9rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (min-width: 900px) {
  main.container {
    display: flex;
    gap: 40px;
  }

  section.content {
    flex: 3;
  }

  aside.sidebar {
    flex: 1;
    margin-top: 0;
  }
}

@media (max-width: 800px) {
  .trail-card {
    flex: 1 1 100%;
  }
}