/* North Start School - Base styles */

/* Home / About statistics — compact cards */
.home-stats-grid {
  width: 100%;
}
.home-stat-card .counter {
  font-variant-numeric: tabular-nums;
}
.home-stat-card span:last-child {
  word-break: break-word;
  hyphens: auto;
}
/* About — vision & mission 50/50 cards */
.about-vm-card {
  min-height: 100%;
}
@media (min-width: 1024px) {
  .about-vm-card + .about-vm-card {
    margin-top: 0;
  }
}

@media (min-width: 1024px) {
  .home-stats-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .home-stats-grid:has(.home-stat-card:nth-child(4):last-child) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .home-stats-grid:has(.home-stat-card:nth-child(5):last-child) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
body { padding-top: 0; }
.card { transition: box-shadow 0.2s; }
.card:hover { box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.1); }

/* CKEditor / rich HTML rendered via |richtext */
.prose p { margin-bottom: 1em; }
.prose p:last-child { margin-bottom: 0; }
.prose ul,
.prose ol { margin: 0.75em 0 1em; padding-left: 1.5em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.35em; }
.prose a { color: #00296b; text-decoration: underline; }
.prose a:hover { color: #e8a020; }
.prose h2,
.prose h3,
.prose h4 { margin-top: 1.25em; margin-bottom: 0.5em; font-weight: 700; color: #00296b; }
.prose strong { font-weight: 600; }
.prose img { max-width: 100%; height: auto; border-radius: 0.5rem; }

/* Home page horizontal carousels (programs + student stories) */
.carousel-track {
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  cursor: grab;
  scroll-snap-type: none;
}
.carousel-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}
.carousel-track.is-dragging .carousel-slide {
  pointer-events: none;
}
.carousel-slide:focus-visible {
  outline: 2px solid #e8a020;
  outline-offset: 3px;
}

/* Notice popup — image carousel with Prev / Next */
.notice-popup-root:not(.hidden) {
  animation: noticeFadeIn 0.35s ease-out;
}
@keyframes noticeFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.notice-popup-card {
  animation: noticeCardIn 0.4s ease-out;
}
@keyframes noticeCardIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.notice-popup-header-title {
  letter-spacing: 0.06em;
}
.notice-popup-media {
  flex-shrink: 0;
}
.notice-popup-image {
  display: block;
}
.notice-popup-excerpt {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}
.notice-popup-cta {
  min-width: 10rem;
}
.notice-popup-nav-btn:not(:disabled):hover i {
  transform: translateX(-2px);
}
.notice-popup-nav-btn--next:not(:disabled):hover i {
  transform: translateX(2px);
}
.carousel-track img {
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

/* Footer — wide News & Events subscribe (spans brand + useful-links width) */
.footer-brand-col {
  grid-column: span 1;
}
@media (min-width: 768px) {
  .footer-brand-col {
    grid-column: span 2;
  }
}
.footer-newsletter {
  width: 100%;
  max-width: 100%;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
}
.footer-newsletter-form {
  width: 100%;
}
.footer-newsletter-input {
  min-width: 0;
}
@media (min-width: 1024px) {
  .footer-newsletter-form .footer-newsletter-input {
    min-height: 3rem;
  }
  .footer-newsletter-btn {
    min-height: 3rem;
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }
}

/* Home — campus video section: 50/50 left/right on tablet+ */
section#home-scroll-video .home-scroll-video-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 2rem !important;
  width: 100% !important;
}
section#home-scroll-video .home-scroll-video-col {
  flex: 0 0 calc(50% - 1rem) !important;
  width: calc(50% - 1rem) !important;
  max-width: calc(50% - 1rem) !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
@media (max-width: 767px) {
  section#home-scroll-video .home-scroll-video-grid {
    flex-direction: column !important;
  }
  section#home-scroll-video .home-scroll-video-col {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}
