* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #fff;
  background-color: #000; /* fallback if image missing */

  /* Full-screen background image behind all content */
  background-image: url('../images/elsed.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.container {
  width: min(1300px, 96%);
  margin: 0 auto;
  padding: 1rem 0;
}

.sticky-intro {
  position: sticky;
  top: 0;
  z-index: 3;
}

.site-header {
  background: rgba(1,42,74,0.85); /* slight transparency so background shows through */
  color: white;
  padding: 1rem 0;
  position: relative;
  z-index: 2;
  text-align: center;
}

.site-header h1 { 
  margin: 0;
  font-size: 2.4rem;
}

nav { 
  margin-top: 0.75rem; 
  display: flex;
  justify-content: center;
  gap: 1.2rem;
}
nav a { color: #c9d6df; text-decoration: none; font-size: 1.2rem; }
nav a.active, nav a:hover { color: white; }

.sticky-intro .site-header h1 {
  font-size: 8.5rem;
}

.sticky-intro nav a {
  font-size: 5.2rem;
}

.hero { display: grid; gap: 1.5rem; align-items: center; margin: 0 0 2rem 0; }

/* hero background area uses the site background image; overlay keeps text readable */
.hero-bg {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 120px;
  padding: 4rem;
  color: white;
  background: transparent; /* use the site background image */
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35); /* darken hero area for readability */
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 960px;
  text-align: center;
}
.hero-text h2 {
  margin-top: 0;
  display: block;
  margin-bottom: 0.5rem;
  font-size: 3.5rem;
}
.hero-text p {
  display: block;
  margin-top: 0.5rem;
  font-size: 2.4rem;
}

.hero-image img { width: 100%; height: auto; border-radius: 12px; display: block; }

.team-overview h3, .section-list h2, .event-list h2 { margin-top: 0; }

.officer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 5rem; }

/* New layout for officers: centered Sr.DEE and DEE, two-up for ADEE photos */
.officers-layout { display: grid; gap: 5rem; }
.centered { display: flex; justify-content: center; }
.two-up {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 500px));
  justify-content: center;
  gap: 1rem;
}

.card {
  width: min(500px, 100%);
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  display: block;
}
.card h4 { margin: 1rem; }
.card p { margin: 0 1rem 1rem; color: #444; }

/* Ensure card headings are visible on white background */
.card h4 {
  color: #000;
  font-weight: 700;
  text-align: center;
  font-size: 1.05rem;
  margin: 0.75rem 1rem;
}

.section-list, .event-list { display: grid; gap: 1rem; }
.section-list article, .event-list li { background: white; padding: 1rem; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.section-list a, .event-list a { color: #012a4a; text-decoration: none; font-weight: 600; }
.section-list a:hover, .event-list a:hover { text-decoration: underline; }

/* Style for the team heading so it appears black, bold, centered on white */
.team-overview { text-align: center; }
.team-overview h3 {
  display: inline-block;
  background: #fff;
  color: #000;
  font-weight: 700;
  font-size: 3.4rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  margin: 0 0 1rem 0;
}
.section-details { display: grid; gap: 1rem; }
.engineer-grid, .event-photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.engineer-card, .event-photo-card { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.engineer-card img, .event-photo-card img { width: 100%; display: block; }
.engineer-card h4, .event-photo-card h4 { margin: 0.75rem 1rem 0.25rem; }
.engineer-card p, .event-photo-card p { margin: 0 1rem 1rem; color: #555; }

footer { background: #011627; color: #d9e2ec; padding: 1rem 0; text-align: center; }
footer p { margin: 0; }

@media (max-width: 680px) {
  .hero { grid-template-columns: 1fr; }
  .two-up { grid-template-columns: minmax(0, 500px); }
}
