/* =========================================================
   FUMC Day School — Cleaned + Balanced Stylesheet
   (Focused on current index.html usage)
   ========================================================= */

/* -------------------------
   1) Variables + Base
-------------------------- */
:root {
  --accent-color: #1D157C;
  --primary-color: #1D157C;
  --primary-color-2: #3D33D6;
  --secondary-color: #3C5494;  
  --tertiary-color: #5B7BCE;

  --background-color: #E3EBFF;
  --light-color: #fdfdfd;
  --dark-color: #111111;
  --black-color: #111111;
  --gray-100: #F6F6F6;
  --gray-300: #DCDCDC;

  --body-font: "Roboto", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html { box-sizing: border-box; }

body {
  background-color: var(--light-color);
  font-family: var(--body-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 164%;
  letter-spacing: 0.32px;
  color: var(--dark-color);
  margin: 0;
}

p { color: var(--dark-color); }

a {
  color: inherit;
  text-decoration: none;
  transition: 0.3s ease-in-out;
}

a:hover { color: var(--tertiary-color); }

/* -------------------------
   2) Helpers / Utilities
-------------------------- */
.text-light { color: var(--light-color) !important; }
.text-primary { color: var(--primary-color) !important; }
.text-black { color: var(--black-color) !important; }

.bg-light { background-color: var(--light-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-tertiary { background-color: var(--tertiary-color) !important; }
.bg-gray { background-color: var(--gray-100) !important; }
.bg-background { background-color: var(--background-color) !important; }

/* -------------------------
   3) Global Section Rhythm
   (Balanced padding across page)
-------------------------- */
section {
  padding-top: 100px;
  padding-bottom: 100px;
}

/* Hero section should not get extra padding */
#slider {
  padding-top: 0;
  padding-bottom: 0;
}

/* Fine-tune special sections for visual balance */
#about { padding-top: 100px; padding-bottom: 100px; }
#programs { padding-top: 90px; padding-bottom: 100px; }
#class-calendars { padding-top: 90px; padding-bottom: 90px; }
#resources { padding-top: 80px; padding-bottom: 80px; }

/* Mobile rhythm */
@media (max-width: 999px) {
  section { padding-top: 70px; padding-bottom: 70px; }
  #about { padding-top: 90px; padding-bottom: 60px; }
  #programs { padding-top: 70px; padding-bottom: 80px; }
  #class-calendars { padding-top: 70px; padding-bottom: 70px; }
  #facilities { padding-top: 70px; padding-bottom: 70px; }
}

/* -------------------------
   4) Typography
-------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--black-color);
  text-transform: capitalize;
  font-weight: 700;
  letter-spacing: 0.84px;
  line-height: 115%;
}

@media (min-width: 1200px) {
  .display-1 { font-size: 6.5rem; }
}

/* -------------------------
   5) Buttons
-------------------------- */
.btn {
  --bs-btn-padding-x: 1.9rem;
  --bs-btn-padding-y: 0.8rem;
  --bs-btn-font-size: 1rem;
  --bs-btn-font-weight: 500;

  text-transform: uppercase;
  transition: 0.3s ease-in-out;
  border-radius: 0;
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--primary-color);
  --bs-btn-border-color: var(--primary-color);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--secondary-color);
  --bs-btn-hover-border-color: var(--secondary-color);
}

.btn-primary-2 {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--primary-color-2);
  --bs-btn-border-color: var(--primary-color);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--secondary-color);
  --bs-btn-hover-border-color: var(--secondary-color);
}

/* -------------------------
   6) Header + Nav
-------------------------- */
.header-top { transition: transform 0.8s ease-in-out; }
.header-top.hidden { transform: translateY(-100%); }

#primary-header { transition: transform 0.8s ease-in-out; }
#primary-header.hidden { transform: translateY(-50%); }

a.nav-link {
  text-transform: uppercase;
  color: var(--light-color);
  font-size: 14px;
  font-weight: 500;
}

a.nav-link:focus { color: var(--light-color); }

a.nav-link.active,
.nav-link.show,
a.nav-link:hover {
  color: var(--light-color) !important;
  outline: none;
}

@media only screen and (max-width: 610px) {
  #primary-header.hidden { transform: translateY(-105%); }
}

@media only screen and (max-width: 990px) {
  a.nav-link {
    color: var(--dark-color);
    font-size: 2rem;
    padding: 1rem 0 !important;
  }

  a.nav-link:focus { color: var(--dark-color); }

  a.nav-link.active,
  .nav-link.show,
  a.nav-link:hover {
    color: var(--dark-color) !important;
  }
}

/* Header mobile tightening (add to your stylesheet) */
.nav-logo { height: 44px; width: auto; }

@media (max-width: 991.98px){
  .first-header .info { gap: 10px; }
  .first-header .info li { margin-right: 0 !important; }
}

@media (max-width: 576px){
  .nav-logo { height: 40px; }
  .first-header { padding-left: 12px !important; padding-right: 12px !important; }
}

/* Dropdown styling for your "Admissions" menu */
.wsite-menu-item-wrap { position: relative; }

.wsite-menu-wrap {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 9999;
  display: none;            /* JS toggles this */
  min-width: 220px;
  background: #fff;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  padding: 0.5rem 0;
}

.wsite-menu-subitem a,
.wsite-menu-subitem-wrap a {
  display: block;
  padding: 0.5rem 1rem;
  color: #333;
}

.wsite-menu-subitem-wrap a:hover { background: #f0f0f0; }

/* -------------------------
   7) Slider / Hero
-------------------------- */
section#slider .banner-content { width: 50%; }

@media only screen and (max-width: 999px) {
  section#slider .banner-content { width: 66%; }
}

/* Dark overlay on hero image */
.swiper-slide { position: relative; }

.swiper-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1;
}

/* Keep hero text above overlay */
.swiper-slide .banner-content {
  position: relative;
  z-index: 2;
}

/* Hero height tuned for fixed double header */
.hero-slide {
  padding: 5rem 0;
  min-height: 420px;
}

@media (max-width: 767.98px) {
  .hero-slide { min-height: 55vh; }
}

/* -------------------------
   8) About
-------------------------- */
/* Section padding handled above; this section is a split layout in HTML */

/* -------------------------
   9) Programs Accordion
-------------------------- */
.programs-accordion{
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.program-item{
  border-radius: 14px;
  overflow: hidden;
  color: #fff;
}

.program-summary{
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}

.program-summary::-webkit-details-marker{ display:none; }

.program-title{
  font-weight: 700;
  letter-spacing: 0.2px;
}

.program-chevron{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,0.35);
}

.program-item[open] .program-chevron{
  transform: rotate(45deg);
}

.program-body{
  padding: 0 20px 18px 20px;
  opacity: 0.98;
  background: rgba(255,255,255,0.08);
}

.program-link{
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}

.program-link:hover{ opacity: 0.9; }

#programs details.program-item,
#programs details.program-item * {
  color: #fff !important;
}

#programs .program-subhead {
  opacity: 0.9;
  letter-spacing: 0.3px;
}

/* -------------------------
   10) Class Calendars Buttons
-------------------------- */
#class-calendars .btn{
  border-radius: 0;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.4px;
}

/* Class Calendar button colors */
#class-calendars .btn {
  background-color: #528557;
  border-color: #528557;
  color: #fff;
}

#class-calendars .btn:hover {
  background-color: #fc8f35;
  border-color: #fc8f35;
}

/* Alternate buttons (even tiles) */
#class-calendars .row > div:nth-child(even) .btn {
  background-color: #fc8f35;
  border-color: #fc8f35;
}

#class-calendars .row > div:nth-child(even) .btn:hover {
  background-color: #528557;
  border-color: #528557;
}

/* Keep original image sizing from the page:
   .teacher-card img { height: 240px; object-fit: cover; } */

/* Wrapper ONLY for positioning overlay (no height changes) */
.teacher-photo-wrap {
  position: relative;
}

/* Overlay (does not affect layout) */
.teacher-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

/* Force white text */
.teacher-overlay,
.teacher-overlay * {
  color: #fff !important;
}

.teacher-bio {
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
  margin: 0;
}

.teacher-photo-wrap:hover .teacher-overlay {
  opacity: 1;
}

.supply-link {
  font-weight: 600;
  color: #1D157C;
  text-decoration: none;
}

.supply-link:hover {
  text-decoration: underline;
}

/* -------------------------
   11) Resources / Resources Tiles
-------------------------- */
.resources{
  margin: auto;
  width: 25%;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
  position: absolute;
}

@media only screen and (max-width: 999px) {
  .resources{
    left: 0;
    transform: translateX(0%);
    position: static;
    width: 100%;
  }
}

.product-item img.post-image {
  transform: scale(1);
  transition: all 0.5s ease-in-out;
}

.product-item:hover img.post-image {
  opacity: 0.7;
  transform: scale(1.1);
}

.product-description {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.product-item:hover .product-description {
  opacity: 1;
  visibility: visible;
}

/* -------------------------
   12) Footer (compact)
-------------------------- */
#footer .footer-main {
  padding-top: 1.0rem;
  padding-bottom: 0.75rem;
}

#footer .footer-menu ul li {
  padding-bottom: 0.35rem;
}

#footer .footer-menu .widget-title {
  margin-bottom: 0.25rem;
}

#footer .social-links {
  margin-top: 0.75rem !important;
}

#footer .footer-bottom-wrapper {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 0.35rem;
  padding-bottom: 0.15rem;
}

#footer .footer-bottom p {
  font-size: 0.75rem;
}

#footer .footer-logo {
  max-height: 120px;
  height: auto;
  width: auto;
}

#footer .menu-list li {
  line-height: 1.2;
}

#footer .widget-title {
  margin-bottom: 10px;
}

/* ===== Footer: mobile-first cleanup without changing desktop layout ===== */

/* Ensure footer content has breathing room */
#footer .footer-main { padding-top: 28px; padding-bottom: 18px; }

/* Make footer links readable and consistent */
#footer .menu-list a{
  color: #fff;
  text-decoration: none;
  opacity: 0.92;
}
#footer .menu-list a:hover{
  text-decoration: underline;
  opacity: 1;
}

/* Bottom bar spacing */
#footer .footer-bottom-wrapper{
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 14px 0;
  margin-top: 18px;
}

@media (max-width: 991.98px){

  /* Stack left and right blocks */
  #footer .footer-left{
    flex-direction: column;
    gap: 14px !important;
  }

  /* Logo size on mobile */
  #footer .footer-logo{
    max-width: 170px;
    height: auto;
  }

  /* Make the 3 link columns behave better on small screens */
  #footer .footer-links .col-6{
    flex: 0 0 50%;
    max-width: 50%;
  }

  /* If you get an "orphan" third column, let it span full width on very small screens */
}

@media (max-width: 575.98px){

  /* On phones: make all link groups full width (no cramped 2-col layout) */
  #footer .footer-links .col-6{
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Center and clean up the bottom line */
  #footer .footer-bottom{
    flex-direction: column;
    align-items: flex-start !important;
    gap: 6px !important;
  }

  /* Reduce extra spacing from list items */
  #footer .menu-list li{ padding-bottom: 8px !important; }
}

/* Mobile-only header polish (desktop unchanged) */
@media (max-width: 991.98px){
  .first-header .info { gap: 10px; }
  .first-header .info li { margin-right: 0 !important; }
  /* Make sure the collapsed menu has spacing on mobile */
  #topNav { padding-top: 10px; }
}

/* Make sure the toggler is clickable above fixed header layers */
#header .navbar-toggler { position: relative; z-index: 1051; }

/* MOBILE NAV (collapse) – make it look like a real menu */
@media (max-width: 991.98px){

  /* The expanded panel */
  .first-header #topNav{
    width: 100%;
    margin-top: 10px;
    padding: 14px 12px;
    background: rgba(0,0,0,0.08);     /* subtle contrast on your blue */
    border-radius: 12px;
  }

  /* Force links to be readable */
  .first-header #topNav .nav-link{
    color: #fff !important;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 16px;
    padding: 12px 0 !important;
  }

  /* Make the nav stack full width */
  .first-header #topNav .navbar-nav{
    width: 100%;
    margin-right: 0 !important;
  }

  /* Dividers between items */
  .first-header #topNav .navbar-nav .nav-item{
    border-bottom: 1px solid rgba(255,255,255,0.18);
    padding: 0 6px;
  }
  .first-header #topNav .navbar-nav .nav-item:last-child{
    border-bottom: 0;
  }

  /* Social icons: center and separate */
  .first-header #topNav .social-links{
    width: 100%;
    justify-content: center;
    margin-top: 14px !important;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.18);
  }
}



/* -------------------------
   13) Back To Top Button
-------------------------- */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1050;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-in-out;
}

.back-to-top--visible {
  opacity: 1;
  pointer-events: auto;
}

/*----------------------------------------------*/
/* PDF Embed – Landscape Friendly */
/*----------------------------------------------*/
.pdf-frame {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.pdf-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Mobile adjustment */
@media (max-width: 576px) {
  .pdf-frame {
    aspect-ratio: 4 / 3;
  }
}

/* PDF responsive handling */
.pdf-mobile {
  display: none;
}

@media (max-width: 767px) {
  .pdf-desktop {
    display: none;
  }

  .pdf-mobile {
    display: block;
  }
}

/* =========================
   Toggleable Scrolling Notice Banner (FIXED)
   ========================= */
.notice-marquee {
  position: sticky;
  top: 0;
  z-index: 1065;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* Variants */
.notice-marquee.is-info    { background: #63f8e9; }
.notice-marquee.is-success { background: #6bf863; }
.notice-marquee.is-warning { background: #f8c163; }
.notice-marquee.is-danger  { background: #f87c63; }

.notice-marquee__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.notice-marquee__label {
  flex: 0 0 auto;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.08);
}

.notice-marquee__track {
  flex: 1 1 auto;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

/* Make the rail exactly 2x the viewport (two full-width chunks) */
.notice-marquee__rail {
  display: flex;
  width: 200%;
  animation: noticeMarqueeRail var(--notice-speed, 22s) linear infinite;
}

/* Each chunk is one full “screen width” of the banner */
.notice-marquee__content {
  flex: 0 0 50%;            /* 50% of the 200% rail = 100% of the viewport */
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-right: 0;         /* IMPORTANT: remove big gap */
}

/* Optional: if you want the line centered in the banner */
.notice-marquee__content {
  justify-content: center;
}

.notice-marquee__message { font-weight: 600; }

.notice-marquee__link {
  font-weight: 800;
  text-decoration: underline;
}

.notice-marquee__close {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  font-size: 1.15rem;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 10px;
  cursor: pointer;
}

.notice-marquee__close:hover {
  background: rgba(0,0,0,0.06);
}

/* Pause on hover/focus */
.notice-marquee:hover .notice-marquee__rail,
.notice-marquee:focus-within .notice-marquee__rail {
  animation-play-state: paused;
}

/* Move the rail left by exactly half its content (because it contains two copies) */
@keyframes noticeMarqueeRail {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .notice-marquee__rail {
    animation: none;
    transform: none;
  }
}

@media (max-width: 576px) {
  .notice-marquee__label { font-size: 0.85rem; }
  .notice-marquee__message { font-size: 0.92rem; }
}


