/* ==========================================================================
   Raising Explorers – site header (matches the canvas design)
   ========================================================================== */
.re-header {
  --re-navy: #241F45;
  --re-ink: #4A4566;
  --re-yellow: #FFC425;
  --re-yellow-d: #D99A00;
  --re-orange: #F7931E;
  --re-orange-t: #FFF1E2;
  --re-purple-d: #6A3FC2;
  --re-lilac: #DCD7F2;
  --re-purple-t: #F2ECFD;
  position: sticky;
  top: 0;
  z-index: 999;
  background: #FFFFFF;
  box-shadow: 0 2px 0 #F1EDF9;
  transition: box-shadow .3s ease;
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--re-ink)
}

.admin-bar .re-header {
  top: 32px
}

@media (max-width:782px) {
  .admin-bar .re-header {
    top: 46px
  }
}

@media (max-width:600px) {
  .admin-bar .re-header {
    top: 0
  }
}

.re-header[data-scrolled="true"] {
  box-shadow: 0 10px 30px rgba(36, 31, 69, .10)
}

.re-header *,
.re-header *::before,
.re-header *::after {
  box-sizing: border-box
}

.re-header a {
  text-decoration: none
}

.re-header svg {
  display: block;
  flex: none
}

.re-top {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px clamp(16px, 4vw, 20px);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: padding .3s ease
}

.re-header[data-scrolled="true"] .re-top {
  padding-top: 8px;
  padding-bottom: 8px
}

/* logo (image already contains “The After School Learning Club”) */
.re-brand {
  flex: none;
  display: flex;
  align-items: center
}

.re-logo-img {
  display: block;
  height: 62px;
  width: auto;
  max-width: none;
  transition: height .3s ease
}

.re-header[data-scrolled="true"] .re-logo-img {
  height: 50px
}

.re-logo-text {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 24px;
  color: var(--re-navy)
}

/* ---------- desktop navigation ---------- */
.re-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  min-width: 0
}

.re-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none
}

.re-nav__list>li {
  position: relative;
  margin: 0;
  padding: 0
}

.re-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--re-navy) !important;
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease
}

.re-nav__link:hover,
.re-nav__link:focus-visible {
  background: var(--re-orange-t)
}

.re-nav__link.is-current {
  background: var(--re-yellow);
  font-weight: 800;
  padding: 0 14px
}

.re-chev {
  color: var(--re-orange);
  transition: rotate .25s ease
}

.re-nav__link.is-current .re-chev {
  color: var(--re-navy)
}

.re-menu:hover>.re-nav__link .re-chev,
.re-menu:focus-within>.re-nav__link .re-chev {
  rotate: 180deg
}

/* dropdown panels */
.re-drop {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  z-index: 60;
  width: 300px;
  padding: 10px;
  border-radius: 20px;
  background: #FFFFFF;
  border: 2px solid var(--re-navy);
  box-shadow: 0 6px 0 var(--re-navy), 0 24px 48px rgba(36, 31, 69, .18);
  opacity: 0;
  visibility: hidden;
  translate: 0 10px;
  transition: opacity .2s ease, translate .2s ease, visibility 0s linear .2s
}

.re-drop::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px
}

.re-menu:hover>.re-drop,
.re-menu:focus-within>.re-drop {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
  transition: opacity .2s ease, translate .2s ease
}

.re-nav__list>li:nth-last-child(-n+2)>.re-drop {
  left: auto;
  right: 0
}

.re-list,
.re-mega,
.re-sub {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px
}

.re-list>li,
.re-mega>li,
.re-sub>li {
  margin: 0;
  padding: 0
}

.re-dlink {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--re-navy) !important;
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.25;
  transition: background-color .2s ease, translate .2s ease
}

.re-dlink:hover,
.re-dlink:focus-visible {
  background: var(--re-orange-t);
  translate: 4px 0
}

.re-dlink.is-current {
  background: var(--re-orange-t);
  font-weight: 800
}

.re-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 3px
}

/* services: 2-column grid of icon tiles */
.re-drop--mega {
  width: 600px;
  padding: 14px;
  border-radius: 22px
}

.re-mega {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px
}

.re-dlink--tile {
  gap: 12px;
  min-height: 52px;
  padding: 6px 10px;
  border-radius: 14px;
  font-weight: 800
}

.re-tile {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  transition: rotate .35s cubic-bezier(.3, 1.6, .5, 1), scale .35s cubic-bezier(.3, 1.6, .5, 1)
}

.re-dlink:hover .re-tile {
  rotate: 12deg;
  scale: 1.1
}

.re-mega__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: 10px;
  padding: 12px 4px 0 10px;
  border-top: 2px dotted #E4DFF2
}

.re-mega__group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-weight: 800;
  font-size: 14.5px;
  color: var(--re-navy)
}

.re-mega__pin {
  color: #1F9A3E
}

.re-sep {
  color: #D99A00
}

.re-link {
  color: #0369A1 !important;
  font-weight: 800
}

.re-link:hover {
  text-decoration: underline !important;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px
}

/* buttons */
.re-header a.re-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 13px;
  background: var(--re-yellow);
  color: var(--re-navy) !important;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 15.5px;
  box-shadow: 0 4px 0 var(--re-yellow-d);
  transition: translate .18s ease, box-shadow .18s ease, filter .18s ease
}

.re-header a.re-btn:hover {
  translate: 0 -3px;
  filter: brightness(1.05)
}

.re-header a.re-btn:active {
  translate: 0 4px;
  box-shadow: 0 1px 0 rgba(36, 31, 69, .35)
}

.re-header a.re-btn svg {
  transition: translate .2s ease
}

.re-header a.re-btn:hover svg {
  translate: 5px 0
}

.re-header a.re-btn--block {
  width: 100%;
  min-height: 48px;
  margin-top: 8px
}

/* third level (e.g. Parents Info → Policies) */
.re-hassub {
  position: relative
}

.re-subchev {
  margin-left: auto;
  color: #6D28D9;
  transition: translate .2s ease
}

.re-hassub:hover>.re-dlink .re-subchev,
.re-hassub:focus-within>.re-dlink .re-subchev {
  translate: 3px 0
}

.re-sub {
  position: absolute;
  left: calc(100% + 14px);
  top: -12px;
  z-index: 70;
  width: 310px;
  padding: 10px;
  border-radius: 18px;
  background: #FFFFFF;
  border: 2px solid var(--re-navy);
  box-shadow: 0 6px 0 var(--re-navy), 0 24px 48px rgba(36, 31, 69, .18);
  opacity: 0;
  visibility: hidden;
  translate: -8px 0;
  transition: opacity .2s ease, translate .2s ease, visibility 0s linear .2s
}

.re-sub::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 0;
  bottom: 0;
  width: 18px
}

.re-hassub.is-left>.re-sub {
  left: auto;
  right: calc(100% + 14px);
  translate: 8px 0
}

.re-hassub.is-left>.re-sub::before {
  left: auto;
  right: -18px
}

.re-hassub.is-left:hover>.re-sub,
.re-hassub.is-left:focus-within>.re-sub {
  translate: 0 0
}

.re-hassub:hover>.re-sub,
.re-hassub:focus-within>.re-sub {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
  transition: opacity .2s ease, translate .2s ease
}

.re-sublink {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 4px 10px;
  border-radius: 10px;
  color: var(--re-navy) !important;
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.25
}

.re-sublink:hover,
.re-sublink:focus-visible {
  background: var(--re-purple-t)
}

.re-sublink.is-current {
  background: var(--re-orange-t);
  font-weight: 800
}

.re-sublink .re-dot {
  width: 8px;
  height: 8px
}

/* ---------- hamburger + tablet/phone menu ---------- */
.re-actions {
  flex: none;
  margin-left: 12px;
  display: flex;
  align-items: center;
  gap: 10px
}

.re-header .re-burger,
.re-header .re-burger:hover,
.re-header .re-burger:focus,
.re-header .re-burger:focus-visible {
  display: grid !important;
  place-items: center;
  width: 48px !important;
  height: 48px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 15px !important;
  background: #241F45 !important;
  color: #FFC425 !important;
  box-shadow: 0 5px 0 #6A3FC2 !important;
  cursor: pointer;
  line-height: 1 !important;
  font-size: 0 !important;
  transition: translate .18s ease, box-shadow .18s ease
}

.re-header .re-burger:focus-visible {
  outline: 3px solid #0369A1 !important;
  outline-offset: 3px
}

.re-header .re-burger:active {
  translate: 0 4px;
  box-shadow: 0 1px 0 #6A3FC2 !important
}

.re-header .re-burger svg {
  width: 22px;
  height: 22px;
  stroke: #FFC425
}

.re-burger__close {
  display: none !important
}

.re-burger[aria-expanded="true"] .re-burger__open {
  display: none !important
}

.re-burger[aria-expanded="true"] .re-burger__close {
  display: block !important
}

.re-mobmenu {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px) 16px
}

.re-mobmenu[hidden] {
  display: none !important
}

.re-panel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border-radius: 20px;
  background: var(--re-navy);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  animation: re-rise .45s cubic-bezier(.2, .8, .2, 1) both
}

@keyframes re-rise {
  from {
    opacity: 0;
    translate: 0 14px
  }

  to {
    opacity: 1;
    translate: 0 0
  }
}

.re-mlink,
.re-mgroup>summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  color: #FFFFFF !important;
  font-weight: 800;
  font-size: 17px;
  cursor: pointer
}

.re-mgroup>summary {
  list-style: none
}

.re-mgroup>summary::-webkit-details-marker {
  display: none
}

.re-mgroup>summary svg {
  color: var(--re-yellow);
  transition: rotate .25s ease
}

.re-mgroup[open]>summary svg {
  rotate: 180deg
}

.re-mlink:hover,
.re-mgroup>summary:hover {
  background: rgba(255, 255, 255, .12)
}

.re-mlink.is-current {
  background: var(--re-yellow);
  color: var(--re-navy) !important
}

.re-mgroup__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 2px 4px 10px 14px
}

.re-msub {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--re-lilac) !important;
  font-weight: 700;
  font-size: 16px
}

.re-msub:hover {
  background: rgba(255, 255, 255, .1);
  color: #FFFFFF !important
}

.re-msub.is-current {
  background: var(--re-yellow);
  color: var(--re-navy) !important;
  font-weight: 800
}

.re-msub2 {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 2px 0 6px 14px;
  padding-left: 10px;
  border-left: 2px dashed rgba(220, 215, 242, .35)
}

.re-msub2 a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 9px;
  color: var(--re-lilac) !important;
  font-weight: 700;
  font-size: 14.5px
}

.re-msub2 a:hover {
  background: rgba(255, 255, 255, .08)
}

.re-msub2 a.is-current {
  background: var(--re-yellow);
  color: var(--re-navy) !important;
  font-weight: 800
}

.re-setup-note {
  margin-left: auto;
  padding: 8px 12px;
  border-radius: 10px;
  background: #FDECEC;
  color: #B0222A !important;
  font-weight: 800;
  font-size: 14px
}

/* breakpoints: desktop menu from 1100px, hamburger below */
@media (min-width:1100px) {

  .re-actions,
  .re-mobmenu {
    display: none !important
  }
}

@media (max-width:1099px) {
  .re-desk {
    display: none !important
  }

  .re-actions {
    margin-left: auto
  }
}

@media (max-width:639px) {
  .re-top {
    gap: 8px
  }

  .re-logo-img {
    height: 44px
  }

  .re-header[data-scrolled="true"] .re-logo-img {
    height: 40px
  }
}

@media (prefers-reduced-motion:reduce) {
  .re-header * {
    transition-duration: .01ms !important;
    animation: none !important
  }
}

/* Header lines up exactly with the Elementor sections */
.re-header .re-top {
  max-width: calc(1440px + 80px) !important;
  /* Content Width + 40px each side */
  padding-left: 40px !important;
  padding-right: 40px !important;
}

@media (max-width:1024px) {
  .re-header .re-top {
    padding-left: 24px !important;
    padding-right: 24px !important
  }
}

@media (max-width:767px) {
  .re-header .re-top {
    padding-left: 16px !important;
    padding-right: 16px !important
  }
}

.re-header .re-mobmenu {
  padding-left: 16px !important;
  padding-right: 16px !important
}