/* General Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  /* Using Poppins for body/UI */
  line-height: 1.6;
  color: #333;
  /* Dark text for readability */
  background-color: #EAEAEA;
  /* Light Gray background */
}

.container {
  max-width: 960px;
  margin: auto;
  padding: 0 20px;
}

h1,
h2,
h3 {
  font-family: 'Playfair Display', serif;
  /* Using Playfair Display for headings */
  margin-bottom: 0.8rem;
  line-height: 1.3;
  color: #2DAA9E;
  /* Darker Teal for headings */
}

h1 {
  font-size: 2.8rem;
}

h2 {
  font-size: 2.2rem;
  border-bottom: 3px solid #66D2CE;
  /* Lighter Teal accent line */
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.6rem;
  color: #2DAA9E;
  /* Darker Teal for post titles */
}

p {
  margin-bottom: 1rem;
  color: #444;
  /* Slightly darker gray for paragraphs */
}

a {
  color: #66D2CE;
  /* Lighter Teal for links */
  text-decoration: none;
  font-weight: 600;
  /* Poppins bold */
}

a:hover {
  color: #2DAA9E;
  /* Darker Teal on hover */
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1rem;
  border-radius: 8px;
  /* Rounded corners for images */
}

/* Header Styles */
header {
  background: #E3D2C3;
  /* Beige/Tan header background */
  color: #333;
  padding: 2rem 0;
  text-align: center;
  margin-bottom: 2rem;
  border-bottom: 4px solid #2DAA9E;
  /* Darker teal bottom border */
}

header h1 a {
  color: #2DAA9E;
  /* Darker Teal */
  text-decoration: none;
}

header h1 a:hover {
  text-decoration: none;
}

header .tagline {
  font-size: 1.1rem;
  font-style: italic;
  color: #555;
  margin-bottom: 0;
}

/* Main Content Styles */
main {
  padding-bottom: 2rem;
}

.intro {
  background-color: #ffffff;
  /* White intro box */
  padding: 1.5rem 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  text-align: center;
  border-left: 5px solid #66D2CE;
  /* Lighter Teal accent */
}

/* Interactive Features */
.interactive-features {
  margin-bottom: 2rem;
  text-align: center;
}

#search-box {
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 25px;
  width: 60%;
  max-width: 400px;
  background-color: #ffffff;
  color: #333;
  font-family: 'Poppins', sans-serif;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#search-box::placeholder {
  color: #999;
  opacity: 1;
}

#search-box:focus {
  outline: none;
  border-color: #66D2CE;
  /* Lighter Teal focus border */
  box-shadow: 0 0 8px rgba(102, 210, 206, 0.4);
  /* Lighter Teal glow */
}

/* Blog Post Styles */
#blog-posts h2 {
  text-align: center;
  border-bottom: none;
  margin-bottom: 2rem;
  color: #2DAA9E;
  /* Darker Teal */
}

.blog-post {
  background-color: #ffffff;
  /* White background for posts */
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
  border-left: 5px solid #2DAA9E;
  /* Darker Teal accent border */
}

.blog-post:hover {
  transform: translateY(-5px);
}

.blog-post .meta {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 0.5rem;
  /* Reduced margin */
  font-style: italic;
  font-family: 'Poppins', sans-serif;
  /* Use body font for meta */
}

.read-more {
  display: inline-block;
  background-color: #2DAA9E;
  /* Darker Teal button */
  color: #ffffff;
  /* White text */
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  /* Pill shape button */
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-weight: 600;
  /* Poppins bold */
  margin-top: 0.5rem;
  /* Add some space above button */
}

.read-more:hover {
  background-color: #66D2CE;
  /* Lighter teal on hover */
  color: #ffffff;
  text-decoration: none;
}

#no-results {
  color: #555;
  font-size: 1.1rem;
}

/* Footer Styles */
footer {
  background-color: #E3D2C3;
  /* Beige/Tan footer */
  color: #444;
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 2rem;
  border-top: 4px solid #2DAA9E;
  /* Darker teal top border */
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.4rem;
  }

  #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: 1.2rem 1.5rem;
  }
}