/* ========== Base / Reset ========== */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  margin: 0;
  font-family: Arial, sans-serif;
  padding-left: max(0px, env(safe-area-inset-left));
  padding-right: max(0px, env(safe-area-inset-right));
  padding-bottom: 84px;       /* space for footer */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

.link-to { color: blue; }
.link-to:hover { text-decoration: underline; }

/* ========== Footer ========== */
.site-footer {
  width: 100%;
  background: #000;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px 32px;
  padding: 16px 24px;
  flex-wrap: wrap;
}

.footer-left,
.footer-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 240px;
}

.footer-heading { font-weight: 700; font-size: 1.125rem; margin-bottom: 4px; }

.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #cc0500; }

.insta-logo { width: 32px; height: 32px; object-fit: contain; }
.insta-handle { font-size: 0.9rem; opacity: 0.85; }
.insta-handle:hover { color: #cc0500; text-decoration: underline; }

.footer-left > div { line-height: 1.35; }

@media (max-width: 600px) {
  .site-footer { flex-direction: column; align-items: flex-start; }
  .footer-right { align-items: flex-start; }
}

/* ========== Navbar ========== */
.navbar {
  display: flex;
  align-items: center;
  background-color: #000;
  padding: 0 20px;
}

.navbar img { height: 60px; margin-right: 40px; }

.nav-links { display: flex; gap: 20px; }

.nav-item { position: relative; margin: 0 5px; }
.nav-item > a {
  color: red;
  text-decoration: none;
  padding: 15px 10px;
  display: block;
}
.nav-item > a:hover { background-color: red; color: #fff; }

.dropdown {
  display: none;
  position: absolute;
  background-color: #000;
  top: 100%;
  left: 0;
  min-width: 180px;
  z-index: 1000;
}
.dropdown a {
  color: red;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}
.dropdown a:hover { background-color: red; color: #fff; }
.nav-item:hover .dropdown { display: block; }

.nav-links-right { margin-left: auto; display: flex; gap: 20px; }
.nav-links-right a {
  color: red;
  text-decoration: none;
  padding: 15px 10px;
  display: block;
}
.nav-links-right a:hover { background-color: red; color: #fff; }

.HomeLogo {
  width: 80px; height: 80px;
  background-image: url("/static/StatSite/BHSCC_Logo_BlackWhite.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
  margin: 0 20px;
}
.HomeLogo:hover { background-image: url("/static/StatSite/BHSCC_Logo_RedTrans.png"); }

/* ========== Hero / Headings / Pills ========== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-logo { width: 100%; height: auto; margin-bottom: 180px; }

.pill {
  display: block;
  width: clamp(280px, 60%, 900px);
  margin: 100px auto 80px;
  padding: 30px 20px;
  background: #000;
  color: #fff;
  border-radius: 16px;
  text-align: center;
  line-height: 3;
}

/* Full-bleed hero (fixed height, crops to fill, wins over other img rules) */


/* Utility shadow */
.shadow { box-shadow: 0 4px 12px rgba(0,0,0,0.3); }

/* Stacked heading block */
.stacked-headings {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 80%;
  margin: 40px auto;
  padding: 30px;
  background: grey;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}
.stacked-headings h1 {
  margin: 0;
  font-family: 'Courier New', Courier, monospace;
  font-size: 50px;
  font-weight: bold;
  color: #000;
}

.title-red-underline {
  color: #a10f0a;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  margin-left: 175px;
}

.match-stacked-p {
  width: 80%;
  margin: 40px auto;
  text-align: left;
  margin-left: 175px;
  color: #fff;
  font-size: x-large;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

/* Type presets */
.white-xl-georgia,
.white-xl-georgia-L {
  color: #fff;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  line-height: 1.6;
}
.white-xl-georgia ul,
.white-xl-georgia-L ul { margin: 0; padding-left: 20px; }
.white-xl-georgia-L ul { padding-left: 200px; }
.white-xl-georgia li,
.white-xl-georgia-L li { margin: .4rem 0 .4rem 20px; }

.WaitTime {
  margin-left: 175px;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

@media (max-width: 768px) {
  .title-red-underline {
    color: #a10f0a;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
    display: block;
    margin: 16px auto;
    text-align: center;
  }

  .match-stacked-p {
    width: 80%;
    margin: 40px auto;
    text-align: center;
    color: #fff;
    font-size: x-large;
    font-family: Georgia, 'Times New Roman', Times, serif;
  }

  .white-xl-georgia-L ul { padding-left: 20px; }

  .WaitTime {
    margin-left: 0;
    text-align: center;
  }
}

/* ========== About section ========== */
.about-section {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  margin: 40px auto;
  width: 80%;
}
.about-text { flex: 1; padding: 20px; }
.about-text p {
  color: #fff;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 30px;
  line-height: 1.6;
  margin: 0;
}

/* Don’t force height:100% (prevents conflicts with hero rules) */
.about-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}

/* ========== Centered media box ========== */
.center-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 400px;
  height: 400px;
  margin: 0 auto;
  text-align: center;
}
.center-box img {
  max-width: 100%;
  max-height: 70%;
  object-fit: contain;
  margin-top: 30px;
}
.center-box h2 { margin-top: 10px; }

/* ========== Buttons ========== */
.btn-container { margin: 30px 0 70px; display: flex; justify-content: center; }

.btn-member {
  display: inline-block;
  background: #e10600;
  color: #000;
  font-size: 20px;
  font-weight: bold;
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background-color .3s ease;
}
.btn-member:hover {
  transform: scale(1.1);
  background: #cc0500;
  color: #000;
}

/* ========== Text blocks ========== */
.stdio-txt {
  width: 40%;
  margin: 20px auto 0;
  text-align: center;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: medium;
}

/* ========== Mobile tweaks (layout-wide) ========== */
@media (max-width: 768px) {
  .navbar { flex-wrap: wrap; padding: 8px 12px; }
  .nav-links, .nav-links-right {
    flex: 1 1 100%;
    justify-content: center;
    gap: 16px;
  }
  .nav-item > a, .nav-links-right a { padding: 12px 8px; }
  .nav-item:focus-within .dropdown,
  .nav-item:hover .dropdown { display: block; }
  .nav-item > a { outline: none; }

  .hero { flex-direction: column; gap: 20px; margin: 24px 0; }
  .hero-logo { height: 140px; }

  .stacked-headings { width: 100%; margin: 24px 0; padding: 20px; }
  .stacked-headings h1 { font-size: 24px; } 

  .about-section {
    flex-direction: column;
    width: 100%;
    gap: 16px;
    margin: 24px 0;
    padding: 0 12px;
  }

  .btn-container { padding: 0 12px; }
  .btn-member { width: 100%; text-align: center; }
}

@media (max-width: 420px) {
  .hero-logo { height: 110px; }
  .stacked-headings h1 { font-size: 20px; }
}

/* ========== Google Form ========== */
.gform-wrap { max-width: 1000px; margin: 0 auto; }

/* Single scroll: form scrolls with page, not inside iframe */
.gform-iframe {
  width: 100%;
  border: 0;
  display: block;
  height: 3000px;              /* adjust as needed */
}

@media (max-width: 900px) { .gform-iframe { height: 3600px; } }
@media (max-width: 600px) { .gform-iframe { height: 4200px; } }

html, body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;   /* makes Chrome lighter / closer to Firefox */
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;                  /* stop fake bold/italic */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600; /* or 500 if you want lighter */
  margin: 0;
}

/* Wrapper */
.announcement-wrapper {
  padding: 1rem;
  display: flex;
  justify-content: center;
}

/* Card base */
.announcement-wrapper .announcement-card {
  background: #ffffff;
  color: #111111;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  max-width: 850px;  /* wider for more horizontal look */
  width: 100%;
}

/* Horizontal layout */
.announcement-wrapper .announcement-card.horizontal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Left side group */
.announcement-wrapper .announcement-left {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;        /* take up all horizontal space */
}

/* Title */
.announcement-wrapper .announcement-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Description */
.announcement-wrapper .announcement-description {
  margin: 0;
  line-height: 1.45;
}

/* Timestamp (right side) */
.announcement-wrapper .announcement-time {
  font-size: 0.85rem;
  color: #666;
  white-space: nowrap;   /* prevents wrapping */
  align-self: flex-start;
}

/* Responsive behavior for phones */
@media (max-width: 600px) {
  .announcement-wrapper .announcement-card.horizontal {
    flex-direction: column;
    align-items: flex-start;
  }

  .announcement-wrapper .announcement-time {
    margin-top: 0.5rem;
  }
}
