:root {
  --maroon: #580000;
  --maroon-dark: #380000;
  --orange: #F25C05;
  --dark-gray: #1a1a1a;
  --light-gray: #f8f9fa;
  --white: #ffffff;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background: var(--light-gray);
  color: #222;
}

header {
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
  color: white;
  padding: 2rem 1rem;
  text-align: center;
  border-bottom: 4px solid var(--orange);
}

.header-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.school-logo {
  height: 95px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.header-text {
  text-align: left;
}

@media (max-width: 650px) {
  .header-text {
    text-align: center;
  }
}

header h1 {
  margin: 0;
  font-size: 2.1rem;
  letter-spacing: 0.5px;
}

header h2 {
  margin: 0.3rem 0 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  border-bottom: none;
  padding-bottom: 0;
  display: block;
  letter-spacing: 0.3px;
}

header p {
  margin: 0.4rem 0 0;
  opacity: 0.9;
  font-size: 1rem;
}

nav {
  background: var(--dark-gray);
  padding: 0.75rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
}

nav a:hover {
  color: var(--orange);
}

nav a.active {
  background: var(--maroon);
  color: white;
  border-bottom: 2px solid var(--orange);
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

section {
  background: var(--white);
  border-radius: 10px;
  padding: 1.8rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

h2 {
  margin-top: 0;
  color: var(--maroon);
  border-bottom: 3px solid var(--orange);
  padding-bottom: 0.4rem;
  display: inline-block;
}

h3 {
  color: var(--dark-gray);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.download-box {
  background: #fff8f5;
  border: 1px solid #ffdcd0;
  border-left: 5px solid var(--orange);
  border-radius: 6px;
  padding: 1rem;
  margin: 1rem 0 1.2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.gdoc-box {
  background: #f4f7fb;
  border: 1px solid #d0e0f5;
  border-left: 5px solid #1a73e8;
}

.band-box {
  background: #f3fbf6;
  border: 1px solid #c8ebd4;
  border-left: 5px solid #21c55b;
}

.download-info {
  flex: 1;
  min-width: 220px;
}

.download-info p {
  margin: 3px 0 0 0;
  font-size: 0.9rem;
  color: #555;
}

.download-btn {
  background-color: var(--maroon);
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
  white-space: nowrap;
}

.download-btn:hover {
  background-color: var(--orange);
}

.gdoc-btn {
  background-color: #1a73e8;
}

.gdoc-btn:hover {
  background-color: #1557b0;
}

.band-btn {
  background-color: #1db954;
}

.band-btn:hover {
  background-color: #169c46;
}

.checklist {
  padding-left: 1.2rem;
}

.checklist li {
  margin-bottom: 0.5rem;
}

.audio-player-container {
  background: var(--light-gray);
  padding: 12px 15px;
  border-radius: 6px;
  margin: 1rem 0;
  border: 1px solid #e2e8f0;
}

.audio-player-container label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 5px;
  color: var(--dark-gray);
}

audio {
  width: 100%;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 1rem 0;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Compact BCHS-Style Two-Column Calendar Split */
.calendar-split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-top: 1rem;
}

@media (max-width: 720px) {
  .calendar-split {
    grid-template-columns: 1fr;
  }
}

.calendar-container {
  position: relative;
  height: 380px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fafafa;
}

.calendar-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.calendar-sidebar {
  background: var(--light-gray);
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--maroon);
  border-radius: 8px;
  padding: 1.2rem;
}

.calendar-sidebar h3 {
  margin-top: 0;
  color: var(--maroon);
  font-size: 1.05rem;
}

.calendar-sidebar p {
  font-size: 0.92rem;
  color: #444;
  margin-bottom: 1rem;
}

/* Reusable Section Tile Grid */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 650px) {
  .tile-grid {
    grid-template-columns: 1fr;
  }
}

.section-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff8f5;
  border: 1px solid #ffdcd0;
  border-top: 6px solid var(--maroon);
  border-radius: 10px;
  padding: 1.6rem;
  text-decoration: none;
  color: var(--dark-gray);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-top-color 0.2s ease;
}

.section-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(88, 0, 0, 0.14);
  border-top-color: var(--orange);
}

.tile-icon {
  font-size: 2.2rem;
  margin-bottom: 0.6rem;
}

.section-tile h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.35rem;
  color: var(--maroon);
}

.section-tile p {
  margin: 0 0 1.2rem 0;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}

.tile-cta {
  display: inline-block;
  align-self: flex-start;
  background-color: var(--maroon);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.section-tile:hover .tile-cta {
  background-color: var(--orange);
}

footer {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #777;
  font-size: 0.9rem;
  background: #eaeaea;
  margin-top: 4rem;
}