html {
  scroll-behavior: smooth !important;

  header {
    background-color: #1a1a1a !important; /* The !important ensures it stays black */
    color: #ffffff;
    padding: 40px 20px;
    text-align: center;
    border-bottom: 5px solid #d4af37;
  }

  header h1 {
    margin: 0;
    font-size: 2.5em;
    letter-spacing: 2px;
    color: #ffffff;
  }

  header h2 {
    margin: 5px 0;
    color: #d4af37;
    font-size: 1.8em;
  }

  header nav {
    margin-top: 20px;
  }

  header nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
  }

  header nav a:hover {
    color: #d4af37;
  }
}

/* 1. UNIVERSAL STYLES */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #fcfcfc;
  color: #333;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #d4af37;
}

/* 2-Column Grid Layout */
.member-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px 0;
}

/* Individual Card Styling */
.member-card {
  flex: 1 1 calc(45% - 20px); /* This forces 2 columns on most screens */
  min-width: 300px;
  background: #ffffff;
  border-left: 5px solid #d4af37; /* The Black Diamond Gold */
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.member-card:hover {
  background-color: #fff9e6;
  transform: translateY(-2px);
  transition: all 0.2s ease;
}

.card-call a {
  color: #1a1a1a;
  font-weight: bold;
  text-decoration: none;
  background: #f0f0f0;
  padding: 5px 10px;
  border-radius: 4px;
}

.card-call a:hover {
  background: #d4af37;
  color: white;
}

.status-tag {
  display: block;
  font-size: 0.8em;
  color: #666;
  text-transform: uppercase;
}

/* 3. HOME PAGE SECTIONS (The Columns & History) */
.mission-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 40px auto;
}

.mission-card {
  flex: 1;
  min-width: 300px;
  padding: 20px;
  margin: 10px;
  background: #fff;
  border-top: 4px solid #d4af37;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.history-box {
  max-width: 900px;
  margin: 60px auto;
  padding: 40px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

/* 4. ROSTER TABLE STYLES */
.table-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

thead tr {
  background-color: #1a1a1a;
  color: #ffffff;
  text-align: left;
  border-bottom: 4px solid #d4af37;
}

th,
td {
  padding: 15px 20px;
}

tbody tr:nth-of-type(even) {
  background-color: #f8f8f8;
}
tbody tr:hover {
  background-color: #fff9e6;
}

/* 5. SEARCH BAR */
#memberSearch {
  width: 100%;
  max-width: 400px;
  padding: 12px;
  margin-bottom: 20px;
  border: 2px solid #1a1a1a;
  border-radius: 4px;
}

/* 6. FOOTER */
footer {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 40px 20px;
  text-align: center;
  margin-top: 60px;
  border-top: 5px solid #d4af37;
}

/* --- CONSOLIDATED REPEATER TABLE STYLES --- */
.repeater-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Matches your roster shadow */
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.repeater-table th {
  background-color: #1a1a1a; /* Club Black */
  color: #d4af37; /* Club Gold */
  padding: 15px 20px;
  text-align: left;
  border-bottom: 4px solid #d4af37; /* Thick gold line matches Roster header */
}

.repeater-table td {
  border-bottom: 1px solid #eee;
  padding: 12px 20px;
  color: #333;
}

.repeater-table tr:nth-child(even) {
  background-color: #f8f8f8;
}

.repeater-table tr:hover {
  background-color: #fff9e6; /* Light gold tint on hover */
}

/* MOBILE RESPONSIVENESS for Repeaters */
@media screen and (max-width: 600px) {
  .repeater-table thead {
    display: none; /* Hide headers on small phones */
  }
  .repeater-table td {
    display: block;
    text-align: right;
    border-bottom: 1px solid #eee;
    padding-left: 50%;
    position: relative;
  }
  /* This adds labels back in for mobile users */
  .repeater-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 15px;
    font-weight: bold;
    text-align: left;
  }
}
/* --- 7. PHOTO GALLERY & MEMORIAL STYLES --- */
.photo-gallery {
  display: grid;
  /* Automatically creates columns that are at least 280px wide */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.photo-gallery figure {
  margin: 0;
  background: #ffffff;
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-bottom: 4px solid #1a1a1a; /* Matches your header/footer theme */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.photo-gallery figure:hover {
  border-bottom-color: #d4af37; /* Switches to Gold on hover */
  background-color: #fff9e6; /* Matches your table hover color */
  transform: translateY(-5px);
}

.photo-gallery img {
  width: 100%;
  height: 200px; /* Forces a uniform height for a clean grid */
  object-fit: cover; /* Prevents photos from looking stretched */
  border-radius: 4px;
}

.photo-gallery figcaption {
  padding-top: 12px;
  font-size: 0.95em;
  color: #333;
  text-align: center;
  line-height: 1.4;
}

/* Special styling for Silent Key mentions in captions */
.photo-gallery figcaption b,
.photo-gallery figcaption strong {
  color: #1a1a1a;
  border-bottom: 1px solid #d4af37;
}

/* Mobile adjustment for gallery */
@media screen and (max-width: 600px) {
  .photo-gallery {
    grid-template-columns: 1fr; /* Single column on phones */
  }
}

/* --- LIGHTBOX INFO CARD LAYOUT --- */
.lightbox-card {
  display: flex;
  flex-direction: row; /* Puts photo on left, text on right */
  background-color: #1a1a1a; /* Matches your header/footer charcoal */
  border: 2px solid #d4af37; /* Gold border accent */
  border-radius: 8px;
  width: 700px;
  height: 450px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.lightbox-card-photo {
  width: 50%;
  height: 100%;
  object-fit: contain;
  background-color: #111; /* Letterboxes odd-sized photos safely */
}

.lightbox-card-info {
  width: 50%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

.card-callsign {
  font-size: 2.2em;
  color: #d4af37; /* Clean club gold */
  font-weight: bold;
  margin: 0 0 10px 0;
  letter-spacing: 1px;
}

.card-date {
  font-style: italic;
  color: #e0e0e0; /* Bright off-white for excellent contrast */
  font-weight: 600; /* Makes the lettering bold and clear */
  font-size: 1.2em; /* Bumps the size up slightly so it's easy to read */
  margin: 0;
}

/* Responsive: Stack photo on top of text on smaller screens/phones */
@media screen and (max-width: 750px) {
  .lightbox-card {
    flex-direction: column;
    width: 90%;
    height: auto;
    max-height: 85vh;
  }
  .lightbox-card-photo {
    width: 100%;
    height: 250px;
  }
  .lightbox-card-info {
    width: 100%;
    padding: 20px;
  }
}
.card-callsign {
  font-size: 2.2em;
  color: #d4af37 !important; /* Forces your beautiful club gold */
  font-weight: bold;
  margin: 0 0 10px 0;
  letter-spacing: 1px;
}

.card-date {
  font-style: italic;
  color: #ffffff !important; /* Forces a crisp, bold, solid white for maximum readability */
  font-weight: 700 !important; /* Makes it extra bold */
  font-size: 1.3em; /* Bumps the size up so it stands out */
  margin: 0;
}
