/* =======================
   General Container
   ======================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =======================
   Header & Navigation
   ======================= */
header {
  background-color: #2a5d84;
  color: #fff;
  padding: 15px 0;
}

header .site-title {
  font-size: 1.5rem;
  font-weight: bold;
  display: inline-block;
  margin-right: 20px;
}

header .nav a {
  color: #fff;
  text-decoration: none;
  margin-right: 15px;
  font-weight: bold;
}

header .nav a:hover {
  text-decoration: underline;
}

/* =======================
   Hero Banner Image
   ======================= */
.hero-banner .hero-image {
  width: 100%;
  height: auto;
  display: block;
}

/* =======================
   Hero Text Below Image
   ======================= */
.hero-text {
  text-align: center;
  color: #000; /* black text */
  margin: 20px 0 40px 0;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero-text p {
  font-size: 1.2rem;
  line-height: 1.5;
}

/* =======================
   Page Headings
   ======================= */
main h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #2a5d84;
}

main p {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

/* =======================
   Cards Grid
   ======================= */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  justify-content: center;
}

.card {
  flex: 1 1 300px;
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.card h3 {
  color: #1f3f5e;
  margin-bottom: 10px;
}

.card p {
  line-height: 1.5;
}

/* =======================
   Resident Resources Section
   ======================= */
.resident-resources {
  margin-top: 40px;
  padding: 20px;
  background-color: #f0f8ff;
  border-radius: 8px;
}

.resident-resources h2 {
  color: #2a5d84;
  margin-bottom: 15px;
}

.resident-resources h3 {
  color: #1f3f5e;
  margin-top: 20px;
  margin-bottom: 10px;
}

.resident-resources p {
  line-height: 1.5;
  font-size: 1rem;
}

.resident-resources a {
  color: #1f78b4;
  font-weight: bold;
  text-decoration: none;
}

.resident-resources a:hover {
  text-decoration: underline;
}

.resident-resources em {
  display: block;
  margin-top: 10px;
  font-size: 0.9rem;
  color: #555;
}

.resident-resources .resource-card {
  margin-bottom: 20px;
  padding: 15px;
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* =======================
   Footer
   ======================= */
footer {
  background-color: #2a5d84;
  color: #fff;
  text-align: center;
  padding: 15px 0;
  margin-top: 40px;
}

footer .small {
  font-size: 0.9rem;
}

/* =======================
   Responsive Adjustments
   ======================= */
@media (max-width: 768px) {
  .cards {
    flex-direction: column;
    align-items: center;
  }

  header .nav a {
    display: block;
    margin: 5px 0;
  }
}
