/* ============================================
   River Tech School — Wix-Matched Styles
   ============================================ */

/* --- Fonts --- */
/* Palatino Linotype for body (system font, no import needed) */
/* Avenir Next for display headings (system font on Mac, fallback for others) */

:root {
  --color-bg: #f6f4f0;
  --color-text: #272443;
  --color-red: #e21c21;
  --color-pink-btn: #f0dddd;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-teacher-bg: #8B3A3A;
  --color-enroll-bg: #c0392b;
  --color-link: #e21c21;

  --font-body: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-display: "Avenir Next", "Avenir", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-nav: "Adobe Caslon Pro", "Palatino Linotype", Palatino, Georgia, serif;

  --content-max: 800px;
  --sidebar-width: 240px;
}

/* --- Base --- */
body {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
}

/* --- Layout: Sidebar + Content --- */
.page-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* --- Sidebar Navigation --- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  padding: 16px 12px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-logo {
  display: inline-block;
  background: var(--color-red);
  color: white;
  font-family: var(--font-nav);
  font-size: 22px;
  padding: 6px 14px;
  text-decoration: none;
  margin-bottom: 6px;
  border-radius: 2px;
}

.sidebar-tagline {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-black);
  margin-bottom: 16px;
  line-height: 1.4;
  white-space: nowrap;
}

.sidebar-tagline .love {
  color: var(--color-red);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav a {
  display: block;
  font-family: var(--font-nav);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 14px;
  border: 1.5px solid var(--color-text);
  color: var(--color-text);
  text-align: center;
  transition: background 0.2s, color 0.2s;
}

.sidebar-nav a:hover {
  background: var(--color-text);
  color: var(--color-white);
}

.sidebar-nav a.active {
  background: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}

/* --- Sidebar Submenus --- */
.sidebar-submenu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 12px;
  margin-top: 2px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease;
  margin-bottom: 2px;
}

.sidebar-submenu.open {
  max-height: 500px;
  opacity: 1;
}

/* Submenus controlled by JS hover/open class — no CSS :hover rule needed */

.sidebar-submenu a {
  font-family: var(--font-nav);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 10px;
  color: var(--color-text);
  border: none;
  text-align: left;
  transition: color 0.2s;
  border-left: 2px solid #ddd;
}

.sidebar-submenu a:hover {
  color: var(--color-red);
  border-left-color: var(--color-red);
  background: transparent;
}

.sidebar-submenu a.active {
  color: var(--color-red);
  font-weight: 700;
  border-left-color: var(--color-red);
  background: transparent;
}

/* Arrow indicator on parent links with submenus */
.sidebar-nav > a[data-has-submenu]::after {
  content: '▸';
  float: right;
  font-size: 12px;
  transition: transform 0.2s;
}

.sidebar-nav > a[data-has-submenu].expanded::after {
  transform: rotate(90deg);
}

/* --- Top Bar (Enroll + Social) --- */
.top-bar {
  position: fixed;
  top: 0;
  right: 0;
  left: var(--sidebar-width);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 30px;
  gap: 16px;
  z-index: 100;
  background: var(--color-bg);
}

.top-bar .enroll-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-enroll-bg);
  color: white;
  font-family: var(--font-nav);
  font-size: 16px;
  padding: 10px 22px;
  text-decoration: none;
  border-radius: 2px;
  transition: opacity 0.2s;
}

.top-bar .enroll-btn:hover {
  opacity: 0.85;
}

.top-bar .social-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.top-bar .social-icons a {
  display: flex;
  text-decoration: none;
}

.top-bar .social-icons a svg {
  width: 32px;
  height: 32px;
}

/* --- Announcement Banner --- */
.announcement-banner {
  background: var(--color-red);
  color: white;
  text-align: center;
  padding: 8px 20px;
  font-size: 15px;
  font-family: var(--font-body);
  margin-left: var(--sidebar-width);
}

.announcement-banner a {
  color: white;
  text-decoration: underline;
}

/* --- Main Content Area --- */
.main-content {
  margin-left: var(--sidebar-width);
  padding-top: 60px;
  flex: 1;
}

.content-area {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 20px 30px 60px;
}

/* --- Hero / Welcome --- */
.hero-section {
  text-align: center;
  padding: 10px 0 20px;
}

.hero-welcome {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  color: var(--color-red);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 4px;
  line-height: 1.15;
  font-style: normal;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  white-space: nowrap;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--color-text);
  margin-bottom: 30px;
  opacity: 0.7;
}

/* --- YouTube Embed --- */
.video-embed {
  width: 100%;
  aspect-ratio: 16/9;
  margin: 20px 0 40px;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Section Headings (red, uppercase, display font) --- */
.section-heading {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  color: var(--color-red);
  text-transform: uppercase;
  text-align: center;
  margin: 60px 0 10px;
  letter-spacing: 1px;
}

/* --- Sub-headings (Palatino, bold, black) --- */
.section-subheading {
  font-family: var(--font-body);
  font-size: 33px;
  font-weight: 700;
  color: var(--color-black);
  text-align: center;
  margin: 50px 0 10px;
}

.section-tagline {
  font-family: var(--font-body);
  font-size: 19px;
  font-style: italic;
  font-weight: 700;
  text-align: center;
  color: var(--color-text);
  margin-bottom: 20px;
}

/* --- Body Text --- */
.content-area p {
  margin-bottom: 20px;
  text-align: justify;
}

.content-area p strong {
  font-weight: 700;
}

.content-area a {
  color: var(--color-link);
  text-decoration: underline;
}

/* --- Pink/Salmon CTA Buttons --- */
.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 30px 0;
}

.cta-btn {
  display: inline-block;
  background: var(--color-pink-btn);
  color: var(--color-text);
  font-family: var(--font-nav);
  font-size: 17px;
  padding: 14px 40px;
  text-decoration: none;
  border-radius: 30px;
  text-align: center;
  min-width: 180px;
  transition: opacity 0.2s;
}

.cta-btn:hover {
  opacity: 0.75;
}

/* --- Tax Credit Box --- */
.info-box {
  border: 2px solid var(--color-text);
  border-radius: 8px;
  padding: 28px 32px;
  margin: 40px 0;
  text-align: center;
}

.info-box h3 {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.info-box p {
  text-align: center;
}

/* --- Teachers Section (Dark Background) --- */
.teachers-section {
  background-color: #7a2e2e;
  color: white;
  padding: 60px 0;
}

.teachers-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
}

.teachers-heading {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  color: white;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 50px;
  letter-spacing: 1px;
}

.teacher-card {
  margin-bottom: 50px;
}

.teacher-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 20px;
}

.teacher-info {
  text-align: center;
}

.teacher-info h3 {
  font-family: var(--font-nav);
  font-size: 21px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.teacher-info p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  text-align: justify;
  margin-bottom: 12px;
}

/* --- Discover Section (video banner) --- */
.discover-section {
  position: relative;
  width: calc(100vw - var(--sidebar-width));
  margin-left: calc(-30px);
  margin-top: 40px;
  margin-bottom: 40px;
}

.discover-section img,
.discover-section .video-overlay {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.discover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  text-align: center;
}

.discover-overlay h2 {
  font-family: var(--font-body);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* --- Footer --- */
.site-footer {
  margin-left: var(--sidebar-width);
  padding: 50px 30px 30px;
  color: #666;
}

.site-footer .footer-top {
  text-align: center;
  margin-bottom: 40px;
}

.site-footer .footer-logo {
  display: inline-block;
  background: var(--color-red);
  color: white;
  font-family: var(--font-nav);
  font-size: 18px;
  padding: 6px 14px;
  text-decoration: none;
  margin-bottom: 12px;
}

.site-footer .footer-tagline {
  font-family: var(--font-body);
  font-size: 24px;
  color: var(--color-text);
  margin-bottom: 6px;
}

.site-footer .footer-tagline .love {
  color: var(--color-red);
}

.site-footer .footer-title {
  font-family: var(--font-body);
  font-size: 18px;
  color: #999;
  margin-bottom: 20px;
}

.site-footer p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  font-style: italic;
  max-width: 700px;
  margin: 0 auto 20px;
  color: #888;
  text-align: center;
}

.footer-columns {
  display: flex;
  justify-content: center;
  gap: 80px;
  max-width: 800px;
  margin: 0 auto;
  padding: 30px 0;
  border-top: 1px solid #ddd;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}

.footer-col a,
.footer-col span {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  color: #888;
  text-decoration: none;
  margin-bottom: 6px;
}

.footer-col a:hover {
  color: var(--color-text);
}

.site-footer .footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  font-size: 12px;
  color: #bbb;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.site-footer .footer-bottom p {
  font-style: normal;
  font-size: 12px;
  color: #bbb;
}

@media (max-width: 900px) {
  .footer-columns {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
}

/* --- Separator --- */
.section-sep {
  text-align: center;
  color: #ccc;
  margin: 30px 0;
  font-size: 16px;
}

/* --- Images --- */
.content-image {
  width: 100%;
  margin: 20px 0;
  border-radius: 0;
}

/* --- Competency Based heading --- */
.competency-heading {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  font-style: italic;
  color: var(--color-red);
  text-transform: uppercase;
  text-align: center;
  margin: 60px 0 10px;
}

/* ============================================
   Responsive / Mobile
   ============================================ */
@media (max-width: 900px) {
  :root {
    --sidebar-width: 0px;
  }

  html, body {
    overflow-x: hidden;
  }

  .sidebar {
    display: none;
  }

  .mobile-header {
    display: flex;
  }

  .top-bar {
    left: 0;
  }

  .site-title {
    display: none;
  }

  .topbar-ticker-wrap {
    display: none;
  }

  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .main-content {
    margin-left: 0;
  }

  .announcement-banner {
    margin-left: 0;
  }

  .site-footer {
    margin-left: 0;
  }

  .teachers-section {
    margin-left: calc(-30px);
    width: 100vw;
  }

  .hero-welcome {
    font-size: 36px;
    letter-spacing: 1px;
  }

  .hero-title {
    font-size: 14px;
    letter-spacing: 1px;
    white-space: normal;
  }

  .section-heading {
    font-size: 32px;
  }

  .teacher-photo {
    width: 180px;
    height: 180px;
  }

  .teacher-info p {
    text-align: center;
  }
}

/* Mobile hamburger nav */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--color-bg);
  z-index: 200;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid #ddd;
}

.mobile-header .mobile-logo {
  background: var(--color-red);
  color: white;
  font-family: var(--font-nav);
  font-size: 16px;
  padding: 4px 10px;
  text-decoration: none;
}

.mobile-header .hamburger {
  font-size: 24px;
  color: var(--color-text);
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 300;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-overlay.open {
  display: flex;
}

.mobile-nav-overlay .close-btn {
  align-self: flex-end;
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--color-text);
}

.mobile-nav-overlay a {
  display: block;
  font-family: var(--font-nav);
  font-size: 18px;
  padding: 12px 0;
  text-decoration: none;
  color: var(--color-text);
  border-bottom: 1px solid #ddd;
}

.mobile-nav-overlay a.active {
  color: var(--color-red);
  font-weight: 700;
}

/* --- Mobile Submenus --- */
.mobile-submenu {
  display: none;
  flex-direction: column;
  padding-left: 20px;
  background: rgba(0,0,0,0.02);
}

.mobile-submenu.open {
  display: flex;
}

.mobile-submenu a {
  font-size: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  color: #555;
}

.mobile-submenu a.active {
  color: var(--color-red);
  font-weight: 700;
}

/* Arrow indicator on mobile parent links */
.mobile-nav-overlay > a[data-has-submenu]::after {
  content: '▸';
  float: right;
  font-size: 14px;
  transition: transform 0.2s;
}

.mobile-nav-overlay > a[data-has-submenu].expanded::after {
  transform: rotate(90deg);
}

@media (max-width: 900px) {
  .mobile-header {
    display: flex;
  }

  .main-content {
    padding-top: 56px;
  }

  .top-bar {
    display: none;
  }
}

/* --- Track Section (Image + Text side by side) --- */
.track-section {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin: 40px 0;
}

.track-section .track-image {
  width: 50%;
  max-width: 620px;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.track-section .track-text {
  flex: 1;
}

.track-section .track-text .section-heading {
  text-align: left;
  margin-bottom: 16px;
}

.track-section .track-text p {
  text-align: left;
}

@media (max-width: 900px) {
  .track-section {
    flex-direction: column;
  }
  .track-section .track-image {
    width: 100%;
  }
}

/* --- Inner Page Styles --- */
.page-hero-inner {
  text-align: center;
  padding: 40px 0 20px;
}

.page-hero-inner h1 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  color: var(--color-red);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.page-hero-inner p {
  font-family: var(--font-body);
  font-size: 19px;
  font-style: italic;
  color: var(--color-text);
  text-align: center;
}

/* --- Schedule Table --- */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  font-family: var(--font-body);
  font-size: 17px;
}

.schedule-table th {
  background: var(--color-text);
  color: var(--color-white);
  padding: 14px 20px;
  text-align: left;
  font-weight: 700;
}

.schedule-table td {
  padding: 14px 20px;
  border-bottom: 1px solid #ddd;
  color: var(--color-text);
}

.schedule-table tr:nth-child(even) td {
  background: rgba(0, 0, 0, 0.03);
}

/* --- Resource Cards Grid --- */
.resource-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 40px 0;
}

.resource-card {
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  transition: border-color 0.2s;
}

.resource-card:hover {
  border-color: var(--color-red);
}

.resource-card h3 {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 14px;
}

.resource-card p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 20px;
  text-align: center;
}

.resource-card .cta-btn {
  font-size: 15px;
  padding: 10px 28px;
  min-width: auto;
}

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

/* ============================================
   Interactive Elements
   ============================================ */

/* --- Scrolling Ticker --- */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  background: var(--color-bg);
  padding: 10px 0;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.ticker {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker-scroll 28s linear infinite;
}
.ticker-text {
  font-family: 'Palatino Linotype', 'Palatino', 'Book Antiqua', Georgia, serif;
  font-size: 18px;
  color: #DA392B;
  padding-right: 300px;
}
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Image Carousel --- */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  max-width: 100%;
  margin: 0 auto 8px;
  background: #ddd;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}
.carousel-slide {
  min-width: 100%;
  position: relative;
}
.carousel-slide img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.carousel-slide .carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: white;
  padding: 30px 20px 16px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: background 0.2s;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn:hover { background: white; }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
.carousel-dots {
  text-align: center;
  padding: 10px 0;
}
.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  margin: 0 4px;
  cursor: pointer;
  transition: background 0.3s;
  padding: 0;
}
.carousel-dots button.active { background: var(--color-red); }

/* --- Animated Counters --- */
.counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 30px 0;
}
.counter-card {
  text-align: center;
  padding: 24px 12px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.counter-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  color: var(--color-red);
  line-height: 1;
}
.counter-suffix {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-red);
}
.counter-label {
  font-family: var(--font-body);
  font-size: 14px;
  color: #666;
  margin-top: 6px;
  line-height: 1.3;
}

@media (max-width: 600px) {
  .counters { grid-template-columns: repeat(2, 1fr); }
  .counter-num { font-size: 36px; }
}

/* --- Testimonial Slider --- */
.testimonial-slider {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  min-height: 160px;
}
.testimonial-slide {
  display: none;
  animation: testimonialFadeIn 0.5s;
}
.testimonial-slide.active { display: block; }
@keyframes testimonialFadeIn { from { opacity: 0; } to { opacity: 1; } }
.testimonial-slide blockquote {
  font-family: var(--font-body);
  font-size: 19px;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}
.testimonial-slide cite {
  display: block;
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  color: var(--color-red);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.testimonial-nav {
  margin-top: 16px;
  text-align: center;
}
.testimonial-nav button {
  background: none;
  border: 2px solid #ccc;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  margin: 0 5px;
  transition: border-color 0.2s;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.testimonial-nav button:hover { border-color: var(--color-red); color: var(--color-red); }

/* --- FAQ Accordion --- */
.accordion { max-width: 100%; }
.accordion-item {
  border-bottom: 1px solid #ddd;
}
.accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 0;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.accordion-header:hover { color: var(--color-red); }
.accordion-icon {
  font-size: 22px;
  transition: transform 0.3s;
  color: var(--color-red);
  flex-shrink: 0;
}
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.accordion-body-inner {
  padding: 0 0 18px;
  font-size: 17px;
  color: #555;
  line-height: 1.7;
}
.accordion-body-inner ul {
  margin: 8px 0 8px 20px;
  padding: 0;
}
.accordion-body-inner li {
  margin-bottom: 4px;
}

/* ============================================
   Schedule Tabs & Tables
   ============================================ */
.schedule-tabs-container {
  margin: 2rem 0;
}
.schedule-date {
  text-align: center;
  font-size: 15px;
  color: #666;
  margin-bottom: 12px;
}
.schedule-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  justify-content: center;
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
}
.schedule-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 0;
  justify-content: center;
}
.schedule-tab {
  background: var(--color-pink-btn);
  border: 2px solid transparent;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1.3;
  text-align: center;
}
.schedule-tab small {
  font-size: 11px;
  opacity: 0.7;
}
.schedule-tab:hover {
  background: #e8c8c8;
}
.schedule-tab.active {
  background: var(--color-red);
  color: white;
  border-color: var(--color-red);
}
.schedule-tab.active small {
  opacity: 0.9;
}
.schedule-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 18px 0;
  border-radius: 8px;
  border: 1px solid #ddd;
}
.schedule-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.45;
}

/* Grade-level color coding */
.schedule-table .hs { color: #c0392b; }
.schedule-table .ms { color: #2471a3; }
.schedule-table .ue { color: #27864a; }
.schedule-table .ye { color: #d4880f; }

/* Tab-specific table coloring */
#panel-hs .schedule-table td:not(.time-cell) { color: #c0392b; }
#panel-ms .schedule-table td:not(.time-cell) { color: #2471a3; }
#panel-ue .schedule-table td:not(.time-cell) { color: #27864a; }
#panel-ye .schedule-table td:not(.time-cell) { color: #d4880f; }

/* Keep special rows neutral */
#panel-hs .schedule-table .assembly-row td,
#panel-ms .schedule-table .assembly-row td,
#panel-ue .schedule-table .assembly-row td,
#panel-ye .schedule-table .assembly-row td,
#panel-hs .schedule-table .end-row td,
#panel-ms .schedule-table .end-row td,
#panel-ue .schedule-table .end-row td,
#panel-ye .schedule-table .end-row td { color: #888; }
.schedule-table thead th {
  background: var(--color-text);
  color: white;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 8px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 2;
}
.schedule-table td {
  padding: 8px;
  border: 1px solid #ddd;
  vertical-align: top;
  text-align: center;
}
.schedule-table .time-cell {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
  background: #f9f7f3;
  text-align: center;
  min-width: 80px;
}
.schedule-table .assembly-row td {
  background: #f0ede8;
  font-style: italic;
  color: #888;
  padding: 6px 8px;
}
.schedule-table .lunch-row td {
  background: #fdf6e3;
  border-top: 2px solid #e2d5b0;
  border-bottom: 2px solid #e2d5b0;
}
.schedule-table .end-row td {
  background: #f0ede8;
  font-weight: 600;
  font-size: 12px;
  color: #888;
  padding: 6px 8px;
}

/* ── Quad cell: 2x2 grid (8:45, 9:35 rows) ── */
.cell-quad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
}
.cq-tl, .cq-tr, .cq-bl, .cq-br {
  padding: 2px 4px;
}
.cq-tr, .cq-br {
  border-left: 1px solid #ddd;
}
.cq-bl, .cq-br {
  border-top: 1px solid #ddd;
}

/* ── Side cell: two columns side-by-side ── */
.cell-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100%;
}
.cs-left, .cs-right {
  padding: 4px;
}
.cs-right {
  border-left: 1px solid #ddd;
}

/* ── Side-split cell: left tall, right splits top/bottom ── */
.cell-side-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100%;
}
.css-left {
  padding: 4px;
}
.css-right {
  border-left: 1px solid #ddd;
  display: flex;
  flex-direction: column;
}
.css-rt, .css-rb {
  padding: 4px;
  flex: 1;
}
.css-rb {
  border-top: 1px solid #ddd;
}

/* ── Tri cell: 2 top side-by-side + 1 full-width bottom (Friday) ── */
.cell-tri {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
}
.ct-tl {
  padding: 4px;
}
.ct-tr {
  padding: 4px;
  border-left: 1px solid #ddd;
}
.ct-bot {
  grid-column: 1 / -1;
  padding: 4px;
  border-top: 1px solid #ddd;
  text-align: center;
}

/* ── Vertical split: top/bottom stacked ── */
.split-top, .split-bottom {
  padding: 4px 2px;
}
.split-top {
  border-bottom: 1px dashed #ccc;
}

/* ── Lunch mini-table ── */
.lunch-mini {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin: 4px 0;
}
.lunch-mini th {
  font-weight: 700;
  padding: 3px 6px;
  border-bottom: 1px solid #e2d5b0;
  text-align: center;
  font-size: 11px;
}
.lunch-mini td {
  padding: 3px 6px;
  border: none;
  border-bottom: 1px solid #eee;
  text-align: center;
  font-size: 11.5px;
}
.lunch-mini td.hs { color: #c0392b; }
.lunch-mini td.ms { color: #2471a3; }
.lunch-mini td.ue { color: #27864a; }
.lunch-mini td.ye { color: #d4880f; }
.lunch-mini .lunch-time {
  font-weight: 600;
  white-space: nowrap;
  text-align: right;
  padding-right: 8px;
  font-size: 11px;
}
.lunch-note {
  display: block;
  font-size: 11px;
  color: #888;
  margin-top: 4px;
}

/* Mobile: horizontal scroll hint */
@media (max-width: 768px) {
  .schedule-table-wrap {
    position: relative;
  }
  .schedule-table-wrap::after {
    content: 'Scroll →';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 11px;
    color: #999;
    background: rgba(255,255,255,0.85);
    padding: 2px 8px;
    border-radius: 4px;
    pointer-events: none;
  }
  .schedule-tabs {
    gap: 4px;
  }
  .schedule-tab {
    font-size: 12px;
    padding: 8px 10px;
  }
}

/* ════════════════════════════════════════════════════════════════════
   School Calendar Timeline
   ════════════════════════════════════════════════════════════════════ */

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  color: #666;
}
.cal-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cal-dot--quarter    { background: #2471a3; }
.cal-dot--no-school  { background: #c0392b; }
.cal-dot--performance{ background: #8e44ad; }
.cal-dot--fieldtrip  { background: #27864a; }
.cal-dot--event      { background: #d4880f; }

.cal-timeline {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 0 0 28px;
}
/* The vertical line */
.cal-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ddd;
}

.cal-month-label {
  position: relative;
  font-weight: 700;
  font-size: 0.95rem;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 1.8rem 0 0.6rem 0;
  padding-left: 4px;
}
.cal-month-label::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: #999;
  border-radius: 50%;
}

.cal-event {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 4px;
  border-radius: 8px;
  transition: opacity 0.3s, background 0.3s;
}
.cal-event:hover {
  background: rgba(0,0,0,0.03);
}

/* The dot on the timeline */
.cal-event-dot {
  position: absolute;
  left: -24px;
  top: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  flex-shrink: 0;
}
/* Dot colors by type */
[data-type="quarter"] .cal-event-dot    { background: #2471a3; }
[data-type="no-school"] .cal-event-dot  { background: #c0392b; }
[data-type="performance"] .cal-event-dot{ background: #8e44ad; }
[data-type="fieldtrip"] .cal-event-dot  { background: #27864a; }
[data-type="event"] .cal-event-dot      { background: #d4880f; }

.cal-event-content {
  flex: 1;
}
.cal-date {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}
.cal-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
}
.cal-subtitle {
  font-size: 0.82rem;
  color: #777;
  margin-top: 1px;
}

/* Past events — faded */
.cal-event.cal-past {
  opacity: 0.38;
}
.cal-event.cal-past .cal-title {
  text-decoration: line-through;
  text-decoration-color: rgba(0,0,0,0.2);
}

/* Next upcoming event — highlighted */
.cal-event.cal-next {
  background: rgba(36, 113, 163, 0.08);
  border-left: 3px solid #2471a3;
  margin-left: -3px;
}
.cal-event.cal-next .cal-date {
  color: #2471a3;
}
.cal-event.cal-next .cal-title::after {
  content: ' ← Up Next';
  font-size: 0.72rem;
  font-weight: 700;
  color: #2471a3;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* No-school events get a subtle red background */
[data-type="no-school"]:not(.cal-past) {
  background: rgba(192, 57, 43, 0.05);
}
/* Performance events get a subtle purple background */
[data-type="performance"]:not(.cal-past) {
  background: rgba(142, 68, 173, 0.05);
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .cal-timeline {
    padding-left: 24px;
  }
  .cal-timeline::before {
    left: 6px;
  }
  .cal-month-label::before {
    left: -22px;
    width: 8px;
    height: 8px;
  }
  .cal-event-dot {
    left: -22px;
    width: 8px;
    height: 8px;
  }
  .cal-title {
    font-size: 0.88rem;
  }
  .cal-legend {
    gap: 8px 14px;
    font-size: 0.78rem;
  }
}

/* --- Cross-link Explore Buttons --- */
.explore-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 40px 0 20px;
}
.explore-links a {
  display: inline-block;
  background: var(--color-red);
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  transition: opacity 0.2s, transform 0.15s;
}
.explore-links a:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* --- Site Title in Top Bar --- */
.site-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.5px;
  white-space: nowrap;
  margin-right: auto;
}

/* --- Scroll to Top Button --- */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-text);
  color: white;
  font-size: 20px;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.scroll-to-top:hover {
  transform: translateY(-2px);
  background: var(--color-red);
}

/* --- Print Styles --- */
@media print {
  .sidebar, .mobile-header, .mobile-nav-overlay,
  .top-bar, .scroll-to-top, .ticker-wrap,
  .explore-links, .cta-buttons, .site-footer,
  .enroll-btn, .social-icons { display: none !important; }

  .main-content { margin-left: 0 !important; padding-top: 0 !important; }
  .content-area { max-width: 100% !important; padding: 0 !important; }

  body { background: white !important; color: black !important; font-size: 12pt; }

  .page-hero-inner h1 { font-size: 24pt; color: black !important; }
  .section-subheading { font-size: 16pt; color: black !important; }

  .schedule-table { font-size: 10pt; page-break-inside: avoid; }
  .schedule-table th, .schedule-table td { padding: 4px 6px; }

  img { max-width: 100% !important; page-break-inside: avoid; }
  a { color: black !important; text-decoration: none !important; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #666; }
  a[href^="#"]::after, a[href^="javascript"]::after { content: none; }
}

/* --- Testimonial Callout --- */
.testimonial-callout {
  background: white;
  border-left: 4px solid var(--color-red);
  padding: 24px 28px;
  margin: 40px 0;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.testimonial-callout blockquote {
  font-family: var(--font-body);
  font-size: 17px;
  font-style: italic;
  line-height: 1.6;
  color: var(--color-text);
  margin: 0 0 8px;
}
.testimonial-callout cite {
  font-family: var(--font-display);
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  color: var(--color-red);
}

/* --- Topbar Ticker (in top bar) --- */
.topbar-ticker-wrap {
  flex: 1;
  overflow: hidden;
  margin-right: 20px;
  mask-image: linear-gradient(to right, transparent, black 40px, black calc(100% - 40px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 40px, black calc(100% - 40px), transparent);
}
.topbar-ticker {
  display: inline-flex;
  white-space: nowrap;
  animation: topbar-scroll 28s linear infinite;
}
.topbar-ticker span {
  font-family: 'Palatino Linotype', 'Palatino', 'Book Antiqua', Georgia, serif;
  font-size: 18px;
  color: #DA392B;
  flex-shrink: 0;
  padding-right: 300px;
}
@keyframes topbar-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
