body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #111;
  color: #eee;
}

.hero-section {
  background: url('images/em-background.jpg') no-repeat center center/cover;
  height: 300px;
  position: relative;
}

.hero-section .overlay {
  background: rgba(0,0,0,0.6);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
}

h1, h2 {
  color: #00bcd4;
}

section {
  padding: 60px 40px;
  position: relative;
}

/* Alternating section backgrounds */
.colored-section {
  background: linear-gradient(135deg, #1a1a1a, #222);
}

.colored-section-alt {
  background: linear-gradient(135deg, #202020, #2a2a2a);
}

/* Separator line between sections */
section::after {
  content: "";
  display: block;
  width: 90%;
  height: 2px;
  margin: 40px auto 0;
  background: linear-gradient(to right, #00bcd4, transparent);
  border-radius: 2px;
}

/* Text and image layout with 75/25 split */
.section-with-image {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.section-with-image .image {
  flex: 0 0 25%;   /* image takes 25% */
  text-align: left;
}

.section-with-image .text {
  flex: 0 0 75%;   /* text takes 75% */
  padding-left: 20px;
}

.section-with-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

/* Special layout for Engagement section */
.engagement.section-with-image {
  flex-direction: column; /* stack vertically */
}

.engagement.section-with-image .text {
  flex: 0 0 50%;   /* top half */
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
}

.engagement.section-with-image .image {
  flex: 0 0 50%;   /* bottom half */
  width: 100%;
  text-align: center;
}

.engagement.section-with-image img {
  max-width: 80%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

/* Focus Areas Grid - 3 cards per row */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.card {
  background: #222;
  padding: 20px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: auto;
  object-fit: contain; /* ensures full image is visible inside card */
  border-radius: 6px;
  margin-bottom: 15px;
  display: block;
}

.card h3 {
  color: #00bcd4;
  margin-bottom: 10px;
}

.card p {
  color: #ccc;
  font-size: 14px;
  line-height: 1.5;
}

footer {
  background: #000;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #aaa;
}

/* Responsive layout for mobile */
@media (max-width: 768px) {
  .section-with-image {
    flex-direction: column;
    text-align: center;
  }

  .section-with-image .text {
    padding-left: 0;
    margin-top: 20px;
    flex: 1 1 100%;
  }

  .section-with-image .image {
    width: 100%;
    flex: 1 1 100%;
    text-align: center;
  }

  .section-with-image img {
    max-width: 95%;
    height: auto;
  }

  .grid {
    grid-template-columns: 1fr; /* stack cards vertically on mobile */
  }

  .card img {
    height: auto;
  }
}
