/* General Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: #EAEAEA;
  /* Light text for readability on dark background */
  background-color: #222222;
  /* Very Dark Gray background */
}

.container {
  max-width: 960px;
  margin: auto;
  padding: 0 20px;
}

h1,
h2,
h3 {
  font-family: 'Merriweather', serif;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

h1 {
  font-size: 2.8rem;
  color: #1DCD9F;
  /* Bright Teal for main title */
}

h2 {
  font-size: 2rem;
  color: #1DCD9F;
  /* Bright Teal for section titles */
  border-bottom: 3px solid #169976;
  /* Darker Teal accent line */
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  color: #1DCD9F;
  /* Bright Teal for post titles */
}

p {
  margin-bottom: 1rem;
  color: #E0E0E0;
  /* Slightly off-white for body paragraphs */
}

a {
  color: #1DCD9F;
  /* Bright Teal for links */
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1rem;
  border-radius: 5px;
  opacity: 0.9;
  /* Slightly transparent images blend better in dark themes */
}

/* Header Styles */
header {
  background: #000000;
  /* Black header background */
  color: #FFFFFF;
  padding: 2rem 0;
  text-align: center;
  margin-bottom: 2rem;
  border-bottom: 4px solid #169976;
  /* Darker teal bottom border */
}

header h1 a {
  color: #1DCD9F;
  /* Bright Teal */
  text-decoration: none;
}

header h1 a:hover {
  text-decoration: none;
}

header .tagline {
  font-size: 1.1rem;
  font-style: italic;
  color: #AAAAAA;
  /* Lighter gray for tagline */
  margin-bottom: 0;
}

/* Main Content Styles */
main {
  padding-bottom: 2rem;
}

.intro {
  background-color: #333333;
  /* Slightly lighter than body bg */
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  text-align: center;
  border-left: 5px solid #1DCD9F;
  /* Bright Teal accent */
}

/* Interactive Features */
.interactive-features {
  margin-bottom: 2rem;
  text-align: center;
}

#search-box {
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border: 1px solid #555555;
  /* Darker border */
  border-radius: 25px;
  width: 60%;
  max-width: 400px;
  background-color: #444444;
  /* Dark input background */
  color: #EAEAEA;
  /* Light text in input */
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#search-box::placeholder {
  /* Style placeholder text */
  color: #999999;
  opacity: 1;
  /* Firefox */
}

#search-box:focus {
  outline: none;
  border-color: #1DCD9F;
  /* Bright teal focus border */
  box-shadow: 0 0 8px rgba(29, 205, 159, 0.4);
  /* Teal glow */
}

/* Blog Post Styles */
#blog-posts h2 {
  text-align: center;
  border-bottom: none;
  /* Remove border for section title */
  margin-bottom: 2rem;
}

.blog-post {
  background-color: #333333;
  /* Slightly lighter background for posts */
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  /* Slightly stronger shadow for dark */
  transition: transform 0.2s ease-in-out;
  border-left: 5px solid #1DCD9F;
  /* Bright Teal accent border */
}

.blog-post:hover {
  transform: translateY(-5px);
}

.blog-post .meta {
  font-size: 0.9rem;
  color: #AAAAAA;
  /* Lighter gray for meta */
  margin-bottom: 1rem;
  font-style: italic;
}

.read-more {
  display: inline-block;
  background-color: #169976;
  /* Darker Teal button */
  color: #FFFFFF;
  /* White text */
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.read-more:hover {
  background-color: #1DCD9F;
  /* Brighter teal on hover */
  text-decoration: none;
}

#no-results {
  color: #AAAAAA;
  /* Light gray for no results */
  font-size: 1.1rem;
}

/* Footer Styles */
footer {
  background-color: #000000;
  /* Black footer */
  color: #AAAAAA;
  /* Light gray footer text */
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 2rem;
  border-top: 4px solid #169976;
  /* Darker teal top border */
}

/* Responsive Design (Remains the same - layout adjustments) */
@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  #search-box {
    width: 80%;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }

  header .tagline {
    font-size: 1rem;
  }

  .container {
    padding: 0 15px;
  }

  .blog-post {
    padding: 1rem;
  }
}