/* RESET & BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Verdana", Arial, sans-serif;
  background-color: #ece5f0;
  color: #000;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* HEADER */
header {
  background-color: #003b36;
  width: 100%;
  padding: 80px 20px 40px;
  text-align: center;
  position: relative;
}
header h1 {
  font-size: 3rem;
  color: #ece5f0;
  letter-spacing: 2px;
}

/* FILTER BAR */
.filter-bar {
  background-color: #e98a15;
  display: none;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 15px 20px;
}
.filter-bar button {
  background-color: #fff;
  color: #003b36;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}
.filter-bar button.active,
.filter-bar button:hover {
  background-color: #003b36;
  color: #ece5f0;
}

/* INTRO SECTION */

.intro-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px 0;
    text-align: center;
}

.intro {
    max-width: 900px;
}

.intro p {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #000;
}

/* TILE GRID */
.tile-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 15px;
padding: 40px 20px;
flex: 1;
max-width: 1100px;
margin: 0 auto;
align-items: start;
}
.tile {
background-color: #fff;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 3px 6px rgba(0,0,0,0.1);
text-decoration: none;
color: inherit;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tile:hover {
transform: translateY(-4px);
box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}

.tile img {
width: 100%;
height: 140px; /* smaller, more proportional image */
object-fit: cover;
}

.tile-content {
padding: 12px 14px 18px;
}

.tile-content h3 {
font-size: 1.1rem;
margin-bottom: 6px;
color: #003b36;
}

.tile-content p {
font-size: 0.95rem;
color: #333;
}
/* BOTTOM BANNER (existing styles reused) */
#newsletter-banner {
  position: relative;
  width: 100%;
  background-color: #003b36;
  padding: 40px 20px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
  margin-top: 40px;
}

.banner-content { text-align: center; color: #ece5f0; }

/* NEWSLETTER FORM STYLES */
.banner-content form {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: 10px;
width: 100%;
max-width: 700px;
margin: 0 auto;
}

.banner-content h3 {
margin-bottom: 30px; /* increased gap below the heading */
font-size: 1.8rem;
}

.banner-content input[type="text"],
.banner-content input[type="email"] {
padding: 10px;
height: 58px;
min-width: 250px;
border-radius: 5px;
border: none;
flex: 1;
font-size: 1rem;
}

.banner-content button {
padding: 0 20px;
height: 58px;
border: none;
background-color: #e98a15;
color: white;
border-radius: 5px;
cursor: pointer;
font-size: 1rem;
font-weight: bold;
transition: background-color 0.2s ease;
}

.banner-content button:hover {
background-color: #bf7112;
}

#success-message {
display: none;
color: #ece5f0;
font-weight: bold;
text-align: center;
width: 100%;
margin-top: 15px;
}

a.back-link {
  display: inline-block;
  margin-bottom: 20px;
  text-decoration: none;
  color: #e98a15;
  font-weight: bold;
}
a.back-link:hover {
  text-decoration: underline;
}
.back-button {
  display: inline-block;
  background-color: #e98a15;
  color: #fff;
  padding: 10px 18px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s ease, transform 0.1s ease;
}

.back-button:hover {
  background-color: #bf7112;
  transform: translateY(-2px);
}

.back-button:active {
  transform: translateY(0);
}

img.feature {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 25px;
}

img.true {
  width: auto;
  height: auto;
  border-radius: 10px;
  margin-bottom: 25px;
}

.block-indent {
  text-align: left;     /* ensures text is left-aligned */
  padding-left: 40px;   /* shifts the whole block inward */
}

/* MOBILE ADJUSTMENTS */
@media (max-width: 767px) {
  header h1 { font-size: 2rem; }
  .tile-content p { font-size: 0.95rem; }
}

@media (max-width: 500px) {
.tile-grid {
grid-template-columns: 1fr; /* stack into a single column */
}

.tile img {
height: 160px; /* slightly taller image for mobile layout */
}

.tile-content {
padding: 16px;
}

.tile-content h3 {
font-size: 1.2rem;
}

.tile-content p {
font-size: 1rem;
}
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  padding: 40px 20px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}
