:root {
  --wmu-brown: #4A2E2A;
  --wmu-gold: #F2B705;
  --wmu-gold-dark: #C99700;
  --wmu-light: #F6F7F8;
}

/* =====================
   Base Styles
===================== */
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: var(--wmu-light);
  color: #222;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 2rem;
}

/* =====================
   Hero / Header
===================== */
.hero {
  padding: 4rem 1rem;
  background: linear-gradient(135deg, var(--wmu-brown), var(--wmu-gold));
  color: white;
  text-align: center;
}

.hero-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

.hero-left img { height: 65px; }
.hero-right img {
  height: 195px;   /* BIG header logo */
  width: auto;
}

.hero-center h1 { margin: 0; }
.hero-center p { margin-top: 8px; font-size: 0.95rem; }

/* =====================
   Navigation
===================== */
/* NAVBAR */
.navbar {
  background: white;
  border-bottom: 4px solid var(--wmu-gold);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--wmu-brown);
  padding: 0.4rem 0.25rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover {
  color: var(--wmu-gold-dark);
  border-bottom-color: var(--wmu-gold);
}

.nav-logo img {
  height: 58px;   /* bigger but still balanced */
  width: auto;
}
.nav-inner {
  padding: 1rem 1.5rem;
}




/* =====================
   Cards & Sections
===================== */
.card {
  background: white;
  padding: 2rem;
  border-radius: 14px;
  border-left: 6px solid var(--wmu-gold);
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

.stat {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  border-top: 4px solid var(--wmu-brown);
}
.who-image {
  margin-top: 1.5rem;
  text-align: center;
}

.who-image img {
  width: 100%;
  height: auto;          /* KEY: preserves aspect ratio */
  max-width: 100%;
  max-height: 500px;     /* optional: prevents absurdly tall images */
  object-fit: cover;   /* ensures full image is visible */
  border-radius: 12px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
/* =====================
   Section Spacing
===================== */
section {
  margin: 2rem 0;
}

/* Optional divider line */
.section-divider {
  width: 80px;
  height: 4px;
  background: var(--wmu-gold);
  margin: 3rem auto;
  border-radius: 2px;
}


/* =====================
   Team
===================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.officer-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
}
.officer-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;          /* Keeps image corners rounded */
  text-align: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.officer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.12);
}

.officer-card h3 {
  margin: 1rem 0 0.25rem;
  color: var(--wmu-brown);
}

.officer-card p {
  margin: 0 0 1.25rem;
  color: #666;
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.role-card {
  background: white;
  padding: 1.75rem;
  border-radius: 14px;
  border-left: 6px solid var(--wmu-brown);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.role-card h3 { margin-top: 0; color: var(--wmu-brown); }
/* =====================
   Faculty Advisors
===================== */
.advisor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.advisor {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.advisor:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.12);
}

.advisor img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.advisor-content {
  padding: 1.5rem;
}

.advisor h3 {
  margin: 0;
  color: var(--wmu-brown);
}

.advisor .role {
  margin: 0.5rem 0 1rem;
  color: var(--wmu-gold-dark);
  font-weight: 700;
}

.advisor p {
  color: #555;
  line-height: 1.6;
}
/* =====================
   Gallery
===================== */
.gallery-grid,
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery-grid img,
.image-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  transition: transform 0.2s ease;
}

.gallery-grid img:hover { transform: scale(1.04); }

details summary {
  cursor: pointer;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--wmu-brown);
}

/* =====================
   Sponsors
===================== */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.sponsor-grid img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  background: white;
  padding: 1rem;
  border-radius: 12px;
  border: 2px solid var(--wmu-gold);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.featured-sponsor {
  text-align: center;
  background: white;
  padding: 1.5rem;
  border-radius: 14px;
  border-left: 6px solid var(--wmu-gold);
}

/* =====================
   Social / CTA
===================== */
.social-grid,
.cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.social-card,
.cta-card {
  background: white;
  padding: 1.75rem;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.social-card { display: flex; align-items: center; gap: 1rem; }

/* =====================
   Calendar
===================== */
.calendar-event {
  display: flex;
  gap: 1.5rem;
  background: white;
  padding: 1.25rem;
  border-radius: 14px;
  border-left: 6px solid var(--wmu-brown);
}

/* =====================
   Footer
===================== */
footer {
  text-align: center;
  padding: 2rem;
  background: var(--wmu-brown);
  color: white;
}

/* HOME PAGE NAVBAR ONLY */
.home-navbar .nav-inner {
  justify-content: center;
}

.home-navbar .nav-links {
  justify-content: center;
}

.when-we-meet h2 {
  margin-bottom: 0.5rem;
}

.meeting-intro {
  color: #555;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.meeting-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.meeting-item {
  background: white;
  padding: 1.25rem;
  border-radius: 14px;
  border-left: 5px solid var(--wmu-gold);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.meeting-item h4 {
  margin: 0 0 0.4rem 0;
  color: var(--wmu-brown);
}

.meeting-item p {
  margin: 0;
  font-weight: 600;
}

.meeting-item span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.9rem;
  color: #555;
}

/* =====================
   Telemetry Test
===================== */
.telemetry-test button {
  background: var(--wmu-brown);
  border: none;
  color: white;
  cursor: pointer;
  font-weight: 700;
  padding: 0.75rem 1.1rem;
}

.telemetry-test button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.telemetry-actions {
  margin: 1rem 0;
}

.telemetry-meta {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 1rem 0;
}

.telemetry-meta div {
  background: white;
  border-left: 5px solid var(--wmu-gold);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  padding: 0.9rem;
}

.telemetry-meta dt {
  color: #555;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.telemetry-meta dd {
  margin: 0.25rem 0 0;
}

.telemetry-list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.telemetry-list-item {
  background: white;
  border-left: 5px solid var(--wmu-gold);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
}

/* =====================
   Race Telemetry
===================== */
.telemetry-race-header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.telemetry-race-header h2 {
  margin-bottom: 0.4rem;
}

.telemetry-race-header p {
  margin: 0;
}

.telemetry-race-header button {
  background: var(--wmu-brown);
  border: none;
  color: white;
  cursor: pointer;
  font-weight: 700;
  padding: 0.75rem 1.1rem;
}

.telemetry-race-header button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.telemetry-summary-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 1.5rem 0;
}

.telemetry-summary-card {
  background: white;
  border-left: 5px solid var(--wmu-gold);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  padding: 1rem;
}

.telemetry-summary-card span {
  color: #555;
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.telemetry-summary-card strong {
  color: var(--wmu-brown);
  display: block;
  font-size: 1.35rem;
  margin-top: 0.35rem;
}

.telemetry-progress {
  margin: 1.5rem 0;
}

.telemetry-progress-label {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.telemetry-progress-track {
  background: #e5e5e5;
  height: 14px;
  overflow: hidden;
}

.telemetry-progress-bar {
  background: var(--wmu-gold);
  height: 100%;
  transition: width 0.25s ease;
  width: 0;
}

.telemetry-map {
  background: #e5e5e5;
  height: 420px;
  margin: 1.5rem 0;
  width: 100%;
}

.telemetry-race-list {
  max-height: 420px;
  overflow: auto;
}

@media (max-width: 700px) {
  .telemetry-race-header,
  .telemetry-progress-label {
    align-items: flex-start;
    flex-direction: column;
  }

  .telemetry-map {
    height: 320px;
  }
  .telemetry-test details {
    width: 100%;
}

.telemetry-test summary {
    cursor: pointer;
    font-size: 1.4rem;
    font-weight: 700;
    padding: 10px 0;
    list-style: none;
}

.telemetry-test summary::-webkit-details-marker {
    display: none;
}

.telemetry-test summary::before {
    content: "▶ ";
    transition: transform 0.2s ease;
}

.telemetry-test details[open] summary::before {
    content: "▼ ";
}

.telemetry-test details > *:not(summary) {
    margin-top: 15px;
}
/* ==========================================
   RESPONSIVE DESIGN
========================================== */

/* Tablets */
@media (max-width:992px){

    .container{
        padding:1rem;
    }

    .hero{
        padding:3rem 1rem;
    }

    .hero-bar{
        grid-template-columns:1fr;
        text-align:center;
        gap:1.5rem;
    }

    .hero-left,
    .hero-right{
        justify-self:center;
    }

    .hero-right img{
        height:120px;
    }

    .nav-inner{
        flex-direction:column;
        gap:1rem;
    }

    .nav-links{
        flex-wrap:wrap;
        justify-content:center;
    }

    .calendar-event{
        flex-direction:column;
    }

    .telemetry-race-header{
        flex-direction:column;
        align-items:flex-start;
    }

    .telemetry-progress-label{
        flex-direction:column;
        align-items:flex-start;
    }

    .telemetry-map{
        height:320px;
    }

}

/* Phones */
@media (max-width:768px){

    body{
        font-size:16px;
    }

    .container{
        padding:1rem;
    }

    .hero{
        padding:2rem 1rem;
    }

    .hero h1{
        font-size:2rem;
    }

    .hero p{
        font-size:1rem;
    }

    .hero-left img{
        height:55px;
    }

    .hero-right img{
        height:90px;
    }

    .nav-links{
        width:100%;
        flex-direction:column;
        gap:.5rem;
    }

    .nav-links a{
        width:100%;
        text-align:center;
        padding:.9rem;
        border-radius:8px;
        background:#f6f7f8;
    }

    .team-grid,
    .roles-grid,
    .advisor-grid,
    .gallery-grid,
    .image-grid,
    .meeting-list,
    .social-grid,
    .cta-grid,
    .sponsor-grid,
    .telemetry-summary-grid,
    .telemetry-meta{
        grid-template-columns:1fr;
    }

    .officer-card img,
    .advisor img{
        height:260px;
    }

    .gallery-grid img,
    .image-grid img{
        height:auto;
    }

    iframe{
        width:100%;
        height:320px;
    }

    .telemetry-map{
        height:250px;
    }

    .telemetry-race-list{
        max-height:none;
    }

    button,
    .telemetry-test button,
    .telemetry-race-header button{
        width:100%;
    }

}

/* Small Phones */
@media (max-width:480px){

    .hero{
        padding:1.5rem .75rem;
    }

    .hero h1{
        font-size:1.6rem;
    }

    .hero p{
        font-size:.9rem;
    }

    .hero-right img{
        height:70px;
    }

    .nav-logo img{
        height:45px;
    }

    .card{
        padding:1rem;
    }

    .officer-card img,
    .advisor img{
        height:220px;
    }

    footer{
        padding:1.5rem .75rem;
        font-size:.85rem;
    }

}
