/*
Theme Name: Peekaboo Disciplined
Theme URI: https://anhngupeekaboo.com
Author: truc.mai
Author URI: https://anhngupeekaboo.com
Description: A strict custom layout theme for Peekaboo homepage sections.
Version: 1.0.0
Text Domain: peekaboo-disciplined
*/

:root {
  --pd-blue: #b07a4a;
  --pd-blue-dark: #473321;
  --pd-orange: #2f4a3b;
  --pd-orange-hover: #243a2e;
  --pd-gray-bg: #f0f0e8;
  --pd-gray-soft: #f3f3f3;
  --pd-page-bg: #f0f0e8;
  --pd-text: #1f2430;
  --pd-muted: #656b78;
  --pd-border: #d9d9d9;
  --pd-container: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans", Arial, sans-serif;
  color: var(--pd-text);
  background: var(--pd-page-bg);
  line-height: 1.45;
}

main,
.pd-program-page,
.pd-home-main,
.pd-home-main--blocks {
  background: var(--pd-page-bg);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.pd-container {
  width: min(var(--pd-container), calc(100% - 40px));
  margin-inline: auto;
}

.pd-topbar {
  background: #f5f5f5;
  border-bottom: 1px solid #e5e5e5;
  font-size: 15px;
}

.pd-topbar__row {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.pd-topbar__left,
.pd-topbar__right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.pd-topbar__left {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.pd-topbar-marquee {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 8%,
    rgba(0, 0, 0, 1) 92%,
    rgba(0, 0, 0, 0) 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 8%,
    rgba(0, 0, 0, 1) 92%,
    rgba(0, 0, 0, 0) 100%
  );
}

.pd-topbar-marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  white-space: nowrap;
  min-width: max-content;
  animation: pd-marquee 16s linear infinite;
}

.pd-topbar-marquee__track > span {
  display: inline-block;
  animation: pd-wave 2.3s ease-in-out infinite;
}

.pd-topbar-marquee__track > span:nth-child(2n) {
  animation-delay: 0.35s;
}

@keyframes pd-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes pd-wave {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

.pd-social {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #3048a1;
  border: 1px solid #cbd3f5;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.pd-social svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.pd-social:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(24, 40, 96, 0.2);
  background: #edf1ff;
}

.pd-topbar .is-hotline {
  color: #ca2f2f;
  font-weight: 700;
}

.pd-main-header {
  background: var(--pd-blue);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

body.pd-scrolled .pd-main-header {
  background: #95643a;
  box-shadow: 0 8px 24px rgba(57, 35, 18, 0.35);
}

.pd-main-header__row {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.pd-brand img {
  width: 100px;
  height: auto;
}

.pd-hamburger {
  display: none;
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  padding: 8px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.pd-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

body.pd-nav-open .pd-hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.pd-nav-open .pd-hamburger span:nth-child(2) {
  opacity: 0;
}

body.pd-nav-open .pd-hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body.pd-nav-open .pd-hamburger {
  opacity: 0;
  pointer-events: none;
}

.pd-nav {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.pd-nav-head {
  display: none;
}

.pd-nav-close {
  display: none;
}

.pd-nav__menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 26px;
}

.pd-nav__menu > li {
  position: relative;
}

.pd-nav__menu a {
  display: block;
  color: #fff;
  padding: 12px 0;
  white-space: nowrap;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.pd-nav__menu li.menu-item-has-children > a {
  padding-right: 16px;
}

.pd-nav__menu > li > a:hover {
  opacity: 0.82;
}

.pd-nav__menu > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.pd-nav__menu > li:hover > a::after {
  transform: scaleX(1);
}

.pd-nav__menu .sub-menu {
  margin: 0;
  padding: 8px 0;
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(12, 20, 44, 0.24);
  display: none;
  z-index: 80;
}

/* Hide mobile drill-down back button in desktop dropdowns */
@media (min-width: 921px) {
  .pd-nav__menu .sub-menu .pd-nav-drill-back-wrap,
  .pd-nav__menu .sub-menu .pd-nav-drill-back {
    display: none !important;
  }
}

/* Level 3 drill-down portal should match primary nav sub-menus */
.pd-nav-drill-portal .sub-menu,
.pd-nav-drill-portal .sub-menu li {
  list-style: none !important;
  margin: 0 !important;
  padding-left: 0 !important;
}
.pd-nav-drill-portal .sub-menu li::marker {
  color: transparent;
}
.pd-nav-drill-portal {
  background: transparent !important;
  color: var(--pd-drawer-text, #0e713f) !important;
}
.pd-nav-drill-portal .sub-menu {
  background: var(--pd-drawer-bg, rgb(255, 203, 112)) !important;
  color: var(--pd-drawer-text, #0e713f) !important;
}

.pd-nav-subtoggle {
  display: none;
}

.pd-nav__menu .sub-menu li + li {
  border-top: 1px solid #eef0f7;
}

.pd-nav__menu .sub-menu a {
  color: #22335c;
  padding: 10px 14px;
  font-size: 14px;
  text-transform: none;
}

.pd-nav__menu .sub-menu a:hover {
  background: #eef3ff;
}

.pd-nav__menu .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  border-radius: 8px;
}

.pd-nav__menu .sub-menu li.menu-item-has-children {
  position: relative;
}

.pd-nav__menu .sub-menu li.menu-item-has-children > a {
  padding-right: 28px;
}

.pd-nav__menu .sub-menu li.menu-item-has-children > a::after {
  content: "▸";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  opacity: 0.7;
}

.pd-cta {
  color: #fff;
  background: var(--pd-orange);
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 700;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.pd-nav-overlay {
  display: none;
}

.pd-quickfab {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 110;
}

.pd-quickfab__main {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(12, 18, 35, 0.28);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.pd-quickfab__main img,
.pd-quickfab__item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.pd-quickfab__menu {
  position: absolute;
  right: 0;
  bottom: 66px;
  display: grid;
  gap: 10px;
  opacity: 0;
  transform: translateY(10px) scale(0.94);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.pd-quickfab.is-open .pd-quickfab__menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.pd-quickfab__item {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: block;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(12, 18, 35, 0.2);
  background: transparent;
}

.pd-quickfab__item {
  opacity: 0;
  transform: translateY(10px) scale(0.88);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.pd-quickfab.is-open .pd-quickfab__main {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 16px 28px rgba(12, 18, 35, 0.34);
}

.pd-quickfab.is-open .pd-quickfab__item {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.pd-quickfab.is-open .pd-quickfab__item:nth-child(1) {
  transition-delay: 0.02s;
}

.pd-quickfab.is-open .pd-quickfab__item:nth-child(2) {
  transition-delay: 0.06s;
}

.pd-quickfab.is-open .pd-quickfab__item:nth-child(3) {
  transition-delay: 0.1s;
}

body.pd-nav-open .pd-quickfab {
  opacity: 0;
  pointer-events: none;
}

.pd-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(47, 74, 59, 0.35);
  background: var(--pd-orange-hover);
}

.pd-hero picture,
.pd-hero img {
  width: 100%;
}

.pd-hero {
  position: relative;
  overflow: hidden;
}

.pd-hero img {
  transform: scale(1.03);
  filter: saturate(1.04);
  transition: transform 0.5s ease;
}

.pd-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 14, 40, 0.06) 0%, rgba(9, 15, 43, 0.2) 100%);
  pointer-events: none;
  z-index: 1;
}

.pd-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -80px;
  height: 180px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 72%);
  filter: blur(6px);
  pointer-events: none;
  z-index: 1;
}

.pd-home-main > section {
  padding-block: 56px;
  background: var(--pd-gray-bg);
}

.pd-home-main--blocks {
  padding: 0 0 40px;
  background: #fff;
}

.pd-home-main--blocks .pd-container > *:first-child {
  margin-top: 0;
}

.pd-home-main--blocks > .wp-block-cover,
.pd-home-main--blocks > .wp-block-group,
.pd-home-main--blocks > .wp-block-columns,
.pd-home-main--blocks > .wp-block-gallery {
  margin-top: 0;
  margin-bottom: 0;
  padding-block: 56px;
  background: var(--pd-gray-bg);
}

.pd-home-main--blocks > .wp-block-cover {
  padding-block: 0;
  background: transparent;
}

.pd-home-main--blocks > *:nth-child(even):not(.wp-block-cover) {
  background: #efefef;
}

.pd-home-main--blocks .wp-block-cover__background.has-background-dim,
.pd-home-main--blocks .wp-block-cover__background.has-background-dim-20 {
  opacity: 0 !important;
}

.pd-home-main > section:nth-child(even) {
  background: #efefef;
}

.pd-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 900;
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

.pd-subtitle {
  margin: 14px auto 0;
  text-align: center;
  color: var(--pd-muted);
}

.pd-title-line {
  width: 110px;
  height: 3px;
  margin: 14px auto 0;
  background: #2f3645;
}

.pd-news-grid,
.pd-course-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.pd-card {
  background: #fff;
  border: 1px solid var(--pd-border);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.pd-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(16, 26, 66, 0.15);
}

.pd-card__body {
  padding: 16px 18px 22px;
}

.pd-news__title {
  font-size: 38px;
  color: #71482a;
  margin: 0;
  line-height: 1;
}

.pd-news__meta {
  color: #8b8f98;
  margin-top: 8px;
}

.pd-reason {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
  align-items: start;
  margin-top: 28px;
}

.pd-reason-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 22px;
}

.pd-reason-list li strong {
  display: block;
  font-size: 30px;
  margin-bottom: 6px;
}

.pd-reason-list li p {
  margin: 0;
  color: #474d5b;
}

.pd-course-card__body {
  text-align: center;
}

.pd-course-card__title {
  margin: 0;
  font-size: 40px;
}

.pd-btn {
  margin-top: 14px;
  display: inline-block;
  background: var(--pd-orange);
  color: #fff;
  padding: 10px 28px;
  border-radius: 6px;
  font-weight: 700;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.pd-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(47, 74, 59, 0.28);
  background: var(--pd-orange-hover);
}

.pd-highlight {
  color: #fff;
  background-size: cover;
  background-position: center;
}

.pd-highlight .pd-container {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: center;
}

.pd-gallery-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.pd-gallery-strip .pd-responsive-picture,
.pd-gallery-strip picture,
.pd-gallery-strip img {
  width: 100%;
}

.pd-gallery-strip .pd-responsive-picture img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.pd-gallery-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.pd-gallery-bar {
  background: var(--pd-blue);
  color: #fff;
  padding: 18px 0;
}

.pd-gallery-bar__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pd-form-wrap {
  background: var(--pd-gray-bg);
  padding: 48px 0 60px;
}

.pd-form-box {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: start;
}

.pd-form-card {
  background: #d8d8d8;
  padding: 18px;
}

.pd-form-card form {
  display: grid;
  gap: 12px;
}

.pd-input {
  border: 1px solid #ddd;
  min-height: 48px;
  padding: 10px 12px;
  font-size: 16px;
}

.pd-submit {
  width: fit-content;
  padding: 10px 24px;
  border: 0;
  color: #fff;
  background: var(--pd-orange);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pd-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(47, 74, 59, 0.3);
}

.pd-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.pd-reveal.is-inview {
  opacity: 1;
  transform: translateY(0);
}

.pd-footer {
  background: var(--pd-blue);
  color: #fff;
  padding: 50px 0;
}

.pd-footer-bottom {
  background: #172a67;
  color: #dfe6ff;
  text-align: center;
  padding: 14px 0;
  font-size: 14px;
}

.pd-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
}

.pd-footer h3 {
  margin-top: 0;
  font-size: 30px;
}

.pd-footer p,
.pd-footer li {
  margin: 0 0 10px;
  color: #e9ebff;
}

.pd-footer-contact__icons {
  display: flex;
  gap: 10px;
}

.pd-footer-contact__icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background: #ffffff;
  color: #0e713f;
}

.pd-custom-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 44px 0;
}

.pd-custom-block img {
  border-radius: 16px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 360px;
}

.pd-home-editor-blocks {
  padding: 30px 0 20px;
}

@media (max-width: 1100px) {
  .pd-nav__menu {
    gap: 16px;
    font-size: 14px;
  }
}

@media (max-width: 920px) {
  .pd-topbar__right {
    display: none;
  }
  .pd-topbar__row {
    min-height: 38px;
  }
  .pd-main-header__row {
    min-height: 72px;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 10px;
  }
  .pd-brand {
    z-index: 96;
  }
  .pd-brand img {
    width: 68px;
  }
  .pd-hamburger {
    display: inline-flex;
    z-index: 97;
  }
  .pd-cta {
    display: none;
  }
  .pd-nav,
  .pd-nav__menu .sub-menu,
  .pd-nav__menu .sub-menu .sub-menu,
  .pd-nav-drill-portal,
  .pd-nav-drill-portal > .sub-menu {
    --pd-drawer-bg: rgb(255, 203, 112);
    --pd-drawer-text: #0e713f;
  }
  .pd-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(86vw, 360px);
    height: 100dvh;
    background: rgb(255, 203, 112);
    color: #0e713f;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
    transform: translateX(102%);
    transition: transform 0.28s ease;
    z-index: 130;
    padding: 14px 16px 20px;
    overflow-y: auto;
  }
  .pd-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #0e713f;
    margin-bottom: 10px;
    padding: 6px 4px 10px;
    border-bottom: 1px solid rgba(14, 113, 63, 0.24);
  }
  .pd-nav-close {
    display: inline-flex;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    line-height: 1;
    color: #0e713f;
    background: rgba(14, 113, 63, 0.14);
    cursor: pointer;
  }
  body.pd-nav-open .pd-nav {
    transform: translateX(0);
  }
  .pd-nav-subtoggle {
    display: inline-flex !important;
    position: absolute;
    top: 8px;
    right: 0;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: rgba(14, 113, 63, 0.14);
    color: #0e713f;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
  }
  .pd-nav__menu .sub-menu .pd-nav-subtoggle {
    top: 4px;
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
  .pd-nav__menu {
    display: block !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .pd-nav__menu > li {
    display: block;
  }
  .pd-nav__menu .sub-menu {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: min(86vw, 360px) !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: 14px 16px 20px !important;
    list-style: none !important;
    background: rgb(255, 203, 112) !important;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12) !important;
    z-index: 135 !important;
    overflow-y: auto !important;
    transform: translateX(100%) !important;
    transition: transform 0.28s ease !important;
    pointer-events: none !important;
    display: block !important;
  }
  .pd-nav__menu > li.is-open > .sub-menu {
    transform: translateX(0) !important;
    pointer-events: auto !important;
  }
  .pd-nav__menu .sub-menu .sub-menu {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: min(86vw, 360px) !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: 14px 16px 20px !important;
    background: rgb(255, 203, 112) !important;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12) !important;
    z-index: 140 !important;
    overflow-y: auto !important;
    transform: translateX(100%) !important;
    transition: transform 0.28s ease !important;
    pointer-events: none !important;
    display: block !important;
  }
  .pd-nav__menu .sub-menu li.menu-item-has-children.is-open > .sub-menu {
    transform: translateX(0) !important;
    pointer-events: auto !important;
    display: block !important;
  }
  .pd-nav__menu .sub-menu a {
    color: #0e713f !important;
    padding: 7px 36px 8px 12px !important;
  }
  .pd-nav__menu .sub-menu li.menu-item-has-children > a {
    padding-right: 44px !important;
  }
  .pd-nav-drill-back,
  .pd-nav-level3-back {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 8px 0 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(14, 113, 63, 0.24);
    color: #0e713f;
    font-size: 14px;
    cursor: pointer;
    background: transparent;
    border: 0;
    font-family: inherit;
    width: 100%;
    text-align: left;
  }
  .pd-nav-drill-portal {
    position: fixed;
    top: 0;
    right: 0;
    width: min(86vw, 360px);
    height: 100dvh;
    pointer-events: none;
    z-index: 145;
  }
  .pd-nav-drill-portal > .sub-menu {
    pointer-events: auto;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 14px 16px 20px !important;
    list-style: none !important;
    background: rgb(255, 203, 112) !important;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12) !important;
    overflow-y: auto !important;
    transform: none !important;
    display: block !important;
  }
  .pd-nav-drill-portal > .sub-menu > li {
    padding: 0;
    position: relative;
  }
  .pd-nav-drill-portal > .sub-menu > li + li {
    border-top: 1px solid rgba(14, 113, 63, 0.2);
  }
  .pd-nav-drill-portal > .sub-menu a {
    display: block;
    color: #0e713f !important;
    padding: 7px 36px 8px 12px !important;
  }
  .pd-nav-drill-portal > .sub-menu .pd-nav-drill-back-wrap {
    border-bottom: 1px solid rgba(14, 113, 63, 0.24);
  }
  .pd-nav-drill-portal > .sub-menu .pd-nav-subtoggle {
    top: 50%;
    transform: translateY(-50%);
    right: 8px;
  }
  .pd-nav-drill-portal > .sub-menu li.menu-item-has-children > a {
    padding-right: 44px !important;
  }
  .pd-nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
    border: 0;
    z-index: 120;
  }
  .pd-nav-overlay[hidden] {
    display: none;
  }
  .pd-main-header__row {
    padding-block: 8px;
  }
  .pd-reason,
  .pd-highlight .pd-container,
  .pd-form-box,
  .pd-footer__grid {
    grid-template-columns: 1fr;
  }
  .pd-news-grid,
  .pd-course-grid {
    grid-template-columns: 1fr;
  }
  .pd-gallery-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pd-topbar__row {
    padding: 10px 0;
  }
  .pd-nav__menu {
    display: block;
    width: 100%;
    font-size: 15px;
  }
  .pd-nav__menu > li {
    border-bottom: 1px solid rgba(14, 113, 63, 0.2);
    padding: 0;
  }
  .pd-nav__menu > li > a {
    padding: 14px 36px 14px 6px;
  }
  .pd-nav__menu li.menu-item-has-children > a {
    cursor: pointer;
  }
  .pd-nav__menu > li > a::after {
    display: none;
  }
  .pd-nav-subtoggle {
    display: inline-flex;
    position: absolute;
    top: 8px;
    right: 0;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: rgba(14, 113, 63, 0.14);
    color: #0e713f;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
  }
  .pd-nav__menu .sub-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(86vw, 360px);
    height: 100dvh;
    margin: 0;
    padding: 14px 16px 20px;
    list-style: none;
    background: rgb(255, 203, 112);
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
    z-index: 135;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    pointer-events: none;
  }
  .pd-nav__menu > li.is-open > .sub-menu {
    transform: translateX(0);
    pointer-events: auto;
  }
  .pd-nav__menu .sub-menu a {
    color: #0e713f;
    font-size: 14px;
    padding: 7px 36px 8px 12px;
  }
  .pd-nav__menu .sub-menu li.menu-item-has-children > a {
    padding-right: 44px;
  }
  .pd-nav__menu .sub-menu .sub-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(86vw, 360px);
    height: 100dvh;
    margin: 0;
    padding: 14px 16px 20px;
    list-style: none;
    background: rgb(255, 203, 112);
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
    z-index: 140;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    pointer-events: none;
  }
  .pd-nav__menu .sub-menu li.menu-item-has-children.is-open > .sub-menu {
    transform: translateX(0);
    pointer-events: auto;
    display: block;
  }
  .pd-nav__menu .sub-menu .sub-menu a {
    font-size: 14px;
    padding: 12px 0;
    opacity: 1;
    color: #0e713f;
  }
  .pd-nav__menu .sub-menu li.menu-item-has-children > a::after {
    display: none;
  }
  .pd-nav__menu .sub-menu li.menu-item-has-children {
    position: relative;
  }
  .pd-nav__menu .sub-menu .pd-nav-subtoggle {
    display: inline-flex;
    top: 4px;
    right: 0;
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
  .pd-nav-drill-back,
  .pd-nav-level3-back {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(14, 113, 63, 0.24);
    color: #0e713f;
    font-size: 14px;
    cursor: pointer;
    background: transparent;
    border: 0;
    font-family: inherit;
    width: 100%;
    text-align: left;
  }
  .pd-nav__menu .sub-menu li + li {
    border-top: 0;
  }
  .pd-title {
    font-size: 34px;
  }
  .pd-custom-block {
    grid-template-columns: 1fr;
  }
  .pd-news__title,
  .pd-course-card__title {
    font-size: 32px;
  }
  .pd-quickfab {
    right: 12px;
    bottom: 12px;
    z-index: 112;
  }
}

@media (min-width: 921px) {
  .pd-nav__menu > li:hover > .sub-menu {
    display: block;
  }
  .pd-nav__menu .sub-menu li.menu-item-has-children:hover > .sub-menu {
    display: block;
  }
  .pd-nav-overlay {
    display: none !important;
  }
}

/* Brand refresh: Nunito + new Peekaboo palette */
:root {
  --pd-blue: #f7ac4c;
  --pd-blue-dark: #0e713f;
  --pd-orange: #3ab87c;
  --pd-orange-hover: #2d9b67;
  --pd-gray-bg: #fafae8;
  --pd-gray-soft: #fafae8;
  --pd-text: #0e713f;
  --pd-muted: #0e713f;
  --pd-border: #e7dfbf;
}

body,
button,
input,
select,
textarea {
  font-family: "Nunito", sans-serif !important;
  color: #0e713f;
}

body,
.pd-topbar,
.pd-home-main > section,
.pd-home-main > section:nth-child(even),
.pd-form-wrap,
.pd-program-page .pd-program-content,
.pd-program-page .pd-program-cta {
  background: #fafae8 !important;
}

.pd-main-header,
.pd-gallery-bar,
.pd-highlight,
.pd-footer,
.pd-footer-bottom,
.pd-nav {
  background-color: #f7ac4c !important;
}

.pd-nav,
.pd-nav__menu a,
.pd-gallery-bar,
.pd-highlight,
.pd-footer,
.pd-footer p,
.pd-footer li,
.pd-footer-bottom,
.pd-nav-head {
  color: #0e713f !important;
}

.pd-title-line {
  color: #3ab87c !important;
  background-color: #3ab87c !important;
}

.pd-highlight .pd-title,
.pd-gallery-bar .pd-title {
  color: #0e713f !important;
  background-color: transparent !important;
}

.pd-hamburger span {
  background: #0e713f !important;
}

.pd-cta,
.pd-btn,
.pd-submit,
.pd-nav-subtoggle,
.pd-nav-close {
  background: #3ab87c !important;
  color: #fff !important;
}

.pd-cta:hover,
.pd-btn:hover,
.pd-submit:hover {
  background: #2d9b67 !important;
}

/* Consistent borders for all clickable buttons */
.pd-cta,
.pd-btn,
.pd-submit,
.pd-nav-subtoggle,
.pd-nav-close,
.pd-hamburger {
  border: 2px solid #0e713f !important;
}

.pd-quickfab__main,
.pd-quickfab__item {
  border: 0 !important;
}

/* Remove card backgrounds per latest UI direction */
.pd-form-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.pd-course-grid .pd-card,
.pd-course-card {
  background: transparent !important;
}

/* Program detail page layout (smartkids, starters, movers...) */
.pd-program-page .pd-program-banner {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: 380px;
  position: relative;
  overflow: hidden;
}

.pd-program-page .home-banner,
.pd-program-page .banner-img {
  width: 100%;
  height: 100%;
}

.pd-program-page .banner-img {
  position: relative;
}

.pd-program-page .banner-img img {
  width: 100%;
  display: block;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0 72%, rgba(0, 0, 0, 0.22) 88%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0 72%, rgba(0, 0, 0, 0.22) 88%, rgba(0, 0, 0, 0) 100%);
}

.pd-program-page .banner-img::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.92) 100%);
  pointer-events: none;
}

.pd-program-page .pd-program-content {
  background: #fff;
  padding: 42px 0 20px;
}

.pd-program-page .pd-program-content h1,
.pd-program-page .pd-program-content h2 {
  margin: 0 0 14px;
  color: var(--pd-blue-dark);
  font-weight: 900;
  line-height: 1.2;
}

.pd-program-page .pd-program-content h1 {
  font-size: clamp(32px, 5vw, 58px);
  text-transform: uppercase;
}

.pd-program-page .pd-program-content .lead {
  font-size: 21px;
  color: #2f3645;
  margin-bottom: 18px;
}

.pd-program-page .pd-program-content p,
.pd-program-page .pd-program-content li {
  font-size: 18px;
  color: #434b5c;
}

.pd-program-page .pd-program-content ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.pd-program-page .pd-program-cta {
  background: #f5f5f5;
  padding: 36px 0 50px;
}

.pd-program-page .pd-program-cta-card {
  background: #ffffff;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  align-items: center;
}

.pd-program-page .pd-program-cta-card h3 {
  margin: 0 0 10px;
  font-size: 40px;
  color: var(--pd-blue-dark);
}

.pd-program-page .pd-program-cta-card p {
  margin: 0;
  color: #596173;
  font-size: 18px;
}

.pd-program-page .pd-program-form {
  display: grid;
  gap: 10px;
}

.pd-program-page .pd-program-form .pd-input {
  background: #f8f8f8;
}

@media (max-width: 900px) {
  .pd-program-page .pd-program-banner {
    height: 300px;
  }
  .pd-program-page .pd-program-cta-card {
    grid-template-columns: 1fr;
  }
}

.pd-team-fairy {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: radial-gradient(circle at 30% 20%, #fff6db 0%, #f2e5cb 40%, #e8d7b8 100%);
  padding: 54px 0 64px;
}

.pd-team-fairy .pd-container > h2 {
  text-align: center;
  margin: 0;
  color: #4a341f;
  font-size: clamp(34px, 5vw, 56px);
}

.pd-team-fairy .pd-container > p {
  text-align: center;
  color: #5d4a36;
  max-width: 760px;
  margin: 10px auto 32px;
}

.pd-team-fairy__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.pd-team-fairy__card {
  background: rgba(255, 252, 244, 0.85);
  border: 1px solid #d5c3a1;
  border-radius: 18px;
  padding: 14px 12px 16px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(76, 53, 33, 0.12);
}

.pd-team-fairy__card img {
  width: 138px;
  height: 138px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
  border: 4px solid #fff6df;
}

.pd-team-fairy__name {
  margin: 0;
  color: #3d2f1f;
  font-weight: 800;
}

.pd-team-fairy__role {
  margin: 4px 0 0;
  color: #6a543f;
}

@media (max-width: 1024px) {
  .pd-team-fairy__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .pd-team-fairy__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
