/*
  Josh's Custom CSS Reset
  https://www.joshwcomeau.com/css/custom-css-reset/
*/

*, *::before, *::after {
  box-sizing: border-box;
}

*:not(dialog) {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

#root, #__next {
  isolation: isolate;
}
/* end of Josh's reset*/

html {
  font-size: clamp(0.875rem, 0.5vw + 0.75rem, 1.125rem);
}

html, body {
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

body {
  background-color: #086788;
  display: grid;
  grid-template-rows: auto 1fr auto;
  font-family: monospace;
  min-height: 100dvh; /* changed from height so content can grow */
  font-size: 1rem;
  text-align: center;
}

/* ── HEADER ── */
header {
  background-color: black;
  padding-bottom: 30px;
  margin-bottom: 5px;
  z-index: 10;
}

.titleBar {
  font-weight: 900;
  font-size: clamp(1.6rem, 5vw, 2.5rem); /* scales on mobile */
  color: #ffbf00;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 20px 5px 20px;
}

.subTitle {
  color: whitesmoke;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
  font-size: clamp(0.8rem, 2.5vw, 1rem);
  padding: 0 16px; /* prevents edge-to-edge text on narrow screens */
}

.logo-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
}

.logo-link .titleName {
  color: #ffbf00;
  margin-top: 10px;
}

.logo {
  justify-self: center;
  clip-path: circle();
}

/* ── NAV ── */
nav ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  width: 90%;
  max-width: 500px;
  margin: 20px auto;
  padding: 0;
  list-style: none;
}

nav li {
  width: 100%;
  height: 55px;
  display: flex;
  background-color: whitesmoke;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
}

/* ── MAIN CONTENT ── */
.mainContent {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
}

.contentWidget {
  flex: 1 1 260px; /* slightly smaller min so 3 fit sooner */
  max-width: 400px;
  font-size: 1rem;
  font-weight: 600;
  background-color: whitesmoke;
  margin: 10px; /* reduced from 20px so they don't overflow on mobile */
  padding: 20px;
  max-height: 400px;
  justify-self: center;
  border-radius: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.contentWidget:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.contentWidget h2 {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 1em;
}

.contentWidget p {
  font-weight: 500;
  font-size: 1rem;
}

/* ── FOOTER ── */
footer {
  align-self: end;
  background-color: #bfc0c0;
  padding: 30px 20px; /* added horizontal padding */
  margin-bottom: 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap; /* wraps columns on narrow screens */
  gap: 40px; /* fixed: was 20vw which is huge on mobile */
}

.footer-col.socials img {
  height: 50px;
}

.icons {
  display: flex;
  gap: 10px;
}

a {
  color: black;
  text-decoration: none;
}

/* ── EXECUTIVES PAGE ── */
.executiveContainer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
  justify-items: center;
  align-items: center;
}

.executiveContainer .contentWidget {
  margin: 0;
  padding: 2rem 1rem;
  height: 100%;
  width: 225px;
  max-height: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-bottom: 5px solid #ffb800;
}

.executiveContainer img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 4px solid #086788;
}

.execTitle {
  font-size: 0.75rem !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666;
  margin-bottom: 10px;
  order: 2;
}

p.execName {
  font-size: 1.2rem;
  font-weight: 900;
  color: #086788;
  margin-top: 5px;
  order: 3;
}

/* ── DEVPOST BUTTON ── */
.devpost-button {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #006684;
  color: white;
  border-radius: 5px;
  font-weight: 900;
  transition: background-color 0.2s;
}

.devpost-button:hover {
  background-color: #ffb800;
  color: black;
}

/* ── SIG PAGE ── */
.sigContainer {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sigContainer > * {
  width: 100%;
}

.pageTitle {
  color: #ffbf00;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  text-align: center;
  margin: 20px 0 10px;
}

.sectionHeader {
  color: #ffbf00;
  margin: 40px auto;
  text-align: center;
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  width: 100%;
}

.calendarWrapper {
  background: whitesmoke;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin: 10px;
}

.tableScroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
}

.sigTable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 10px;
  min-width: 600px;
}

.sigTable th {
  background: #006684;
  color: white;
  padding: 15px;
  border-radius: 8px;
}

.timeCol {
  font-weight: 900;
  color: #006684;
  text-align: right;
  width: 100px;
}

.event {
  background: #e0e0e0;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  border-left: 5px solid #ffb800;
  text-align: center;
}

.event span {
  font-weight: 400;
  font-size: 0.75rem;
  display: block;
  color: #666;
}

.sigGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
}

.sig-card {
  text-align: left;
  margin: 0 auto !important;
  max-height: none !important;
  width: 100%;
  max-width: 350px;
}

.sig-card h3 {
  color: #006684;
  margin-bottom: 5px;
}

.sig-lead {
  font-size: 0.8rem;
  color: #555;
  margin-top: 10px;
  border-top: 1px solid #ddd;
  padding-top: 5px;
}

/* ── WIDGETBOT (INVOLVED PAGE) ── */
.widgetbot-container {
  max-height: none;
  max-width: 900px;
  width: 100%;
  padding: 30px;
}

.widgetbot-container h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 20px;
  color: #006684;
}

.center-widgebot {
  width: 100%;
  min-height: 700px;
}

/* ════════════════════════════
   MOBILE BREAKPOINTS
════════════════════════════ */

@media (max-width: 500px) {
  /* Nav: single column stack */
  nav ul {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Footer: stack columns vertically */
  footer {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  /* Executive grid: single column */
  .executiveContainer {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  /* Exec cards: full width */
  .executiveContainer .contentWidget {
    width: 100%;
    max-width: 320px;
  }

  /* Main content widgets fill the screen */
  .contentWidget {
    flex: 1 1 100%;
    max-width: 100%;
    margin: 0;
    max-height: none; /* let content breathe */
  }

  .mainContent {
    padding: 12px;
    gap: 12px;
  }

  /* Widgetbot adjustments for mobile */
  .widgetbot-container {
    padding: 15px;
  }

  .center-widgebot {
    min-height: 500px;
  }

  .widgetbot-container widgetbot {
    height: 500px;
  }
}

@media (min-width: 501px) and (max-width: 900px) {
  /* Executive grid: 2 columns on mobile/tablet */
  .executiveContainer {
    grid-template-columns: repeat(2, 1fr);
  }
}