
/* Google Font applied globally via body inline style */
.navbar-brand img { height: 96px; }
.hero-cover { position: relative; overflow: hidden; border-radius: .75rem; }
.hero-cover img { width: 100%; height: 420px; object-fit: cover; filter: brightness(0.8); }
.hero-overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 2rem; }
.hero-card { background: rgba(0,0,0,0.55); color: #fff; border-radius: .75rem; padding: 1rem 1.25rem; max-width: 780px; }
.section-title { border-bottom: 3px solid #e8e8e2; padding-bottom: .5rem; margin-bottom: 1rem; }
.card-article img { width: 100%; height: 180px; object-fit: cover; }
.card-article .card-title a { color: inherit; text-decoration: none; }
.card-article .card-title a:hover { text-decoration: underline; }
.footer a:hover { text-decoration: underline; }
/* Contact / Forms */
.form-error { font-size: .9rem; margin-top: .25rem; display:none; }
.form-success { display:none; }
/* Newsletter widget */
.newsletter-box { border: 1px solid #e5e5e5; border-radius: .75rem; padding: 1rem; }
/* Weather widget */
.weather-box { border: 1px solid #e5e5e5; border-radius: .75rem; padding: 1rem; }
.weather-current { font-size: 2rem; font-weight: 700; }


/* === Visual Refinements === */

/* Reduce vertical spacing between sections */
section.container {
  margin-bottom: 2rem !important;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Tighter spacing for section titles and cards */
.section-title {
  margin-bottom: 0.75rem;
  padding-bottom: 0.25rem;
}

.row.g-3 {
  --bs-gutter-y: 1rem;
}

/* Slightly smaller gap below hero */
.hero-cover {
  margin-bottom: 1.5rem;
}

/* Darker, more readable article card titles */
.card-article .card-title a {
  color: #222222;
  text-decoration: none;
  font-weight: 600;
}

.card-article .card-title a:hover {
  text-decoration: underline;
  color: #000000;
}



/* === Layout Fix: 3 cards per row (no white space) === */
.row.article-row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -0.75rem;
  margin-left: -0.75rem;
}
.card-article-wrapper {
  padding: 0.75rem;
}
@media (min-width: 992px) {
  .card-article-wrapper {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }
}

/* === Hero Overlay Fix: Mobile title visibility === */
.hero-overlay {
  align-items: flex-end;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.2) 100%);
}

@media (max-width: 576px) {
  .hero-overlay {
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0,0,0,0.7);
  }
  .hero-card {
    background: transparent;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  }
  .hero-card h1 {
    font-size: 1.5rem;
  }
}



/* === Final Hero Mobile Visibility Fix === */
.hero-cover img {
  height: auto;
  max-height: 420px;
}

@media (max-width: 576px) {
  .hero-cover img {
    height: auto;
    max-height: none;
  }
  .hero-card {
    padding: 1.25rem;
    background: rgba(0,0,0,0.5);
    border-radius: 1rem;
    text-shadow: 0 2px 6px rgba(0,0,0,0.7);
  }
  .hero-card h1 {
    font-size: 1.25rem;
    line-height: 1.4;
  }
  .hero-card p {
    font-size: 0.95rem;
  }
}



/* === Redesigned Mobile Hero Layout (v5) === */

/* Default desktop overlay retained */
.hero-cover {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
}
.hero-cover img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  filter: brightness(0.8);
}

/* On mobile, stack image and text instead of overlay */
@media (max-width: 768px) {
  .hero-cover {
    display: flex;
    flex-direction: column;
  }
  .hero-cover img {
    height: auto;
    filter: brightness(1);
  }
  .hero-overlay {
    position: static;
    background: none;
    padding: 1rem 0 0 0;
  }
  .hero-card {
    background: none;
    color: #111;
    text-shadow: none;
    padding: 0;
  }
  .hero-card h1 {
    font-size: 1.4rem;
    line-height: 1.3;
  }
  .hero-card p {
    font-size: 1rem;
  }
  .hero-card a.btn {
    margin-top: 0.5rem;
  }
}
