/* Lay-Down.com responsive cleanup for Mira */

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  padding: 0 !important;
}

img,
video,
iframe,
embed,
object {
  max-width: 100%;
  height: auto;
}

iframe {
  width: 100%;
}

.container,
.container-fluid {
  max-width: 100%;
}

.post-content,
.entry-content,
.single-post-content {
  overflow-wrap: anywhere;
  word-break: normal;
}

.post-content table,
.entry-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

input,
textarea,
select,
button {
  max-width: 100%;
}

textarea {
  width: 100%;
}

/* Modernized header — keeps Mira's structure intact */
#header-1.top-header {
  padding: 14px 22px;
  background: rgba(15, 16, 32, 0.88);
  border-bottom: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 8px 30px rgba(0,0,0,.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#header-1 .headerWrap {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
}

#header-1 .logo-1,
#header-1 .search-social,
#header-1 .nav-button-holder {
  float: none;
  display: flex;
  align-items: center;
}

#header-1 .search-social {
  justify-content: flex-start;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#header-1 .logo-1 {
  justify-content: center;
  padding-top: 0;
}

#header-1 .nav-button-holder {
  justify-content: flex-end;
}

#header-1 .logo-1 img {
  max-height: 68px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}

#header-1 .headerWrap4 {
  min-height: 76px;
}

#header-1 .logo-4 img {
  display: block;
  width: auto;
  max-width: 360px;
  max-height: 110px;
  object-fit: contain;
}

/* Header 4: centered brand row with primary navigation beneath it. */
#header-1.top-header4 {
  position: sticky;
  top: 0;
  padding-top: 14px;
  padding-bottom: 12px;
  background: linear-gradient(180deg, rgba(17, 27, 68, .98), rgba(29, 38, 87, .97));
  border-bottom: 1px solid rgba(255, 220, 124, .28);
  box-shadow: 0 10px 28px rgba(8, 13, 42, .2);
}

#header-1 .headerWrap4 {
  position: relative;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

#header-1 .logo-4 {
  flex: none;
  width: 100%;
  padding: 0;
  text-align: center;
}

#header-1 .logo-4 a {
  display: inline-flex;
  justify-content: center;
}

#header-1 .nav-holder-4 {
  width: 100%;
  text-align: center;
}

#header-1 .menu-nav-4 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0;
}

#header-1 .menu-nav-4 li {
  margin: 0;
}

#header-1 .menu-nav-4 li a {
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 38px;
  padding: 8px 18px;
  color: #fff8df;
  border: 0;
  border-radius: 999px;
  background: rgba(122, 105, 188, .2);
  background-image: none;
  box-shadow: inset 0 0 0 1px rgba(219, 205, 255, .35);
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none !important;
  text-shadow: 0 1px 1px rgba(5, 10, 34, .35);
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

#header-1 .menu-nav-4 li a::before,
#header-1 .menu-nav-4 li a::after {
  display: none !important;
  content: none !important;
}

#header-1 .menu-nav-4 li a:hover,
#header-1 .menu-nav-4 li a:focus,
#header-1 .menu-nav-4 .current-menu-item > a {
  color: #15204f;
  background: #ffdc7c;
  box-shadow: inset 0 0 0 1px #ffdc7c;
  text-shadow: none;
  transform: translateY(-1px);
}

#header-1 .search-social-4 {
  margin: 0;
  padding: 0;
  text-align: center;
}

#header-1 .search-social-4 .search-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  color: #15204f;
  background: #ffdc7c;
  border: 1px solid rgba(255, 248, 223, .8);
  border-radius: 50%;
  box-shadow: 0 5px 16px rgba(5, 10, 34, .25);
  cursor: pointer;
}

#header-1 .search-social-4 .search-btn:hover,
#header-1 .search-social-4 .search-btn:focus {
  color: #fff8df;
  background: #7a69bc;
}

/* Grouped story directory on the main Categories archive. */
.story-category-directory {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 58px 0 72px;
}

.story-category-directory__intro {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.story-category-directory__intro h2 {
  margin-bottom: 10px;
  color: #202b64;
}

.story-category-directory__intro p {
  margin: 0;
  color: #67627d;
  font-size: 18px;
}

.story-category-directory__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.story-category-card {
  padding: 26px;
  border: 1px solid #e4dcf7;
  border-radius: 22px;
  background: linear-gradient(145deg, #fffdf7, #f7f3ff);
  box-shadow: 0 12px 30px rgba(43, 37, 92, .08);
}

.story-category-card__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.story-category-card__heading h3 {
  margin: 0;
  font-size: 24px;
}

.story-category-card__heading h3 a {
  color: #403577;
}

.story-category-card__heading span {
  flex: none;
  padding: 5px 10px;
  color: #4b3e72;
  border-radius: 999px;
  background: #eee7ff;
  font-size: 13px;
  font-weight: 700;
}

.story-category-card__stories {
  margin: 0;
  padding: 0;
  list-style: none;
}

.story-category-card__stories li + li {
  margin-top: 9px;
}

.story-category-card__stories a {
  display: block;
  padding: 10px 13px;
  color: #313151;
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
  text-decoration: none;
}

.story-category-card__stories a:hover,
.story-category-card__stories a:focus {
  color: #182252;
  background: #ffecaa;
}

/* About page: custom bedtime banner with the exact site logo layered in. */
.page-id-137 .topCustomPageBkg {
  min-height: 500px;
  background-image:
    url('../images/lay-down-bedtime-logo.png'),
    url('../images/about-bedtime-banner.jpg') !important;
  background-repeat: no-repeat, no-repeat;
  background-position: center calc(100% - 24px), center center;
  background-size: min(380px, 34vw) auto, cover;
}

.page-id-137 .topCustomPageBkg .topHomeHolder {
  padding-bottom: 90px;
  text-shadow: 0 3px 14px rgba(5, 12, 42, .75);
}

/* About page: gently flying, opening books behind the page content. */
.page-id-137 #wrap-content {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 620px;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 220, 124, .24), transparent 24%),
    radial-gradient(circle at 82% 68%, rgba(175, 153, 238, .2), transparent 26%),
    linear-gradient(180deg, #fffdf7 0%, #f5f1ff 52%, #edf2ff 100%);
}

.page-id-137 #wrap-content > .container {
  position: relative;
  z-index: 2;
}

.about-book-animation {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.flying-book {
  --book-color: #7662b4;
  --book-accent: #ffdc7c;
  position: absolute;
  left: -100px;
  width: 88px;
  height: 62px;
  opacity: .48;
  perspective: 320px;
  filter: drop-shadow(0 10px 8px rgba(39, 34, 86, .22));
  animation: about-book-flight 18s linear infinite;
}

.flying-book__cover,
.flying-book__pages,
.flying-book__turning-page {
  position: absolute;
  inset: 5px 0 0;
  display: block;
  transform-style: preserve-3d;
}

.flying-book__cover::before,
.flying-book__cover::after,
.flying-book__pages::before,
.flying-book__pages::after,
.flying-book__turning-page::before,
.flying-book__turning-page::after {
  content: "";
  position: absolute;
  top: 0;
  width: 50%;
  height: 50px;
  box-sizing: border-box;
}

.flying-book__cover::before,
.flying-book__pages::before {
  right: 50%;
  transform-origin: right center;
}

.flying-book__cover::after,
.flying-book__pages::after {
  left: 50%;
  transform-origin: left center;
}

.flying-book__cover::before,
.flying-book__cover::after {
  z-index: 1;
  background:
    radial-gradient(circle at 72% 20%, rgba(255,255,255,.3) 0 3px, transparent 4px),
    linear-gradient(145deg, color-mix(in srgb, var(--book-color) 76%, white), var(--book-color));
  border: 3px solid color-mix(in srgb, var(--book-color) 72%, #2c275d);
}

.flying-book__cover::before { border-radius: 12px 3px 3px 12px; }
.flying-book__cover::after { border-radius: 3px 12px 12px 3px; }

.flying-book__pages::before,
.flying-book__pages::after,
.flying-book__turning-page::before,
.flying-book__turning-page::after {
  z-index: 2;
  top: 4px;
  height: 42px;
  background:
    repeating-linear-gradient(180deg, transparent 0 8px, rgba(100, 85, 138, .12) 8px 9px),
    #fffaf0;
  border: 1px solid rgba(105, 90, 144, .22);
  box-shadow: inset 0 -5px 0 rgba(255, 220, 124, .2);
}

.flying-book__pages::before {
  border-radius: 10px 2px 2px 10px;
  transform: rotateY(30deg);
}

.flying-book__pages::after {
  border-radius: 2px 10px 10px 2px;
  transform: rotateY(-30deg);
}

.flying-book__cover::before { transform: rotateY(22deg) translateZ(-3px); }
.flying-book__cover::after { transform: rotateY(-22deg) translateZ(-3px); }

.flying-book__turning-page {
  z-index: 4;
  pointer-events: none;
}

.flying-book__turning-page::before,
.flying-book__turning-page::after {
  left: 50%;
  right: auto;
  z-index: 4;
  border-radius: 2px 10px 10px 2px;
  transform-origin: left center;
  backface-visibility: visible;
  animation: about-book-page-turn 3.2s ease-in-out infinite;
}

.flying-book__turning-page::after {
  top: 6px;
  height: 38px;
  animation-delay: -1.35s;
  opacity: .92;
}

.flying-book__spine {
  position: absolute;
  z-index: 6;
  top: 10px;
  left: calc(50% - 1.5px);
  display: block;
  width: 3px;
  height: 39px;
  border-radius: 999px;
  background: var(--book-accent);
  box-shadow: 0 0 4px rgba(40, 31, 85, .28);
}

.flying-book__picture {
  position: absolute;
  z-index: 7;
  top: 15px;
  left: 13px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--book-color);
  border: 2px solid color-mix(in srgb, var(--book-color) 45%, white);
  border-radius: 50%;
  background: rgba(255, 250, 240, .92);
  font: 700 15px/1 Georgia, serif;
  transform: rotateY(22deg) translateZ(4px);
  box-shadow: 0 2px 4px rgba(44, 35, 92, .14);
}

.flying-book-1 .flying-book__picture::before { content: "★"; }
.flying-book-2 .flying-book__picture::before { content: "♥"; }
.flying-book-3 .flying-book__picture::before { content: "☾"; }
.flying-book-4 .flying-book__picture::before { content: "♛"; }
.flying-book-5 .flying-book__picture::before { content: "✿"; }
.flying-book-6 .flying-book__picture::before { content: "☁"; }
.flying-book-7 .flying-book__picture::before { content: "◆"; }
.flying-book-8 .flying-book__picture::before { content: "✦"; }

.flying-book-1 { top: 8%; --book-color: #7657c8; animation-duration: 17s; animation-delay: -3s; }
.flying-book-2 { top: 24%; --book-color: #e76582; animation-duration: 22s; animation-delay: -14s; transform: scale(.78); }
.flying-book-3 { top: 42%; --book-color: #3185bd; animation-duration: 19s; animation-delay: -8s; transform: scale(.92); }
.flying-book-4 { top: 64%; --book-color: #e09b32; animation-duration: 24s; animation-delay: -18s; transform: scale(.72); }
.flying-book-5 { top: 82%; --book-color: #9365cf; animation-duration: 20s; animation-delay: -11s; transform: scale(.86); }
.flying-book-6 { top: 16%; --book-color: #43a58b; animation-duration: 27s; animation-delay: -22s; transform: scale(.66); }
.flying-book-7 { top: 54%; --book-color: #d75169; animation-duration: 23s; animation-delay: -5s; transform: scale(.76); }
.flying-book-8 { top: 74%; --book-color: #477cd0; animation-duration: 26s; animation-delay: -16s; transform: scale(.64); }

@keyframes about-book-flight {
  0% { left: -100px; translate: 0 30px; rotate: -10deg; }
  24% { translate: 28vw -24px; rotate: 6deg; }
  52% { translate: 56vw 18px; rotate: -5deg; }
  76% { translate: 82vw -18px; rotate: 7deg; }
  100% { left: -100px; translate: calc(100vw + 190px) 20px; rotate: -8deg; }
}

@keyframes about-book-page-turn {
  0%, 12% { transform: rotateY(-22deg) translateZ(4px); }
  36% { transform: rotateY(-72deg) translateZ(13px) skewY(-5deg); }
  56% { transform: rotateY(-112deg) translateZ(13px) skewY(4deg); }
  78%, 100% { transform: rotateY(-160deg) translateZ(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .flying-book,
  .flying-book__turning-page::before,
  .flying-book__turning-page::after {
    animation: none;
  }

  .flying-book {
    display: none;
  }
}

/* About page editorial content. */
.about-story {
  position: relative;
  z-index: 2;
  padding: 24px 0 34px;
  color: #34334f;
}

.about-story__hero,
.about-story__feature {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(30px, 5vw, 64px);
  margin: 24px 0 64px;
}

.about-story__eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 12px;
  color: #56438f;
  border-radius: 999px;
  background: #eee7ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.about-story h1,
.about-story h2 {
  color: #20295f;
  letter-spacing: -.025em;
}

.about-story h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.03;
}

.about-story h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
}

.about-story p {
  font-size: 17px;
  line-height: 1.78;
}

.about-story__lead {
  color: #494367;
  font-size: 20px !important;
  line-height: 1.62 !important;
}

.about-story__button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 10px;
  padding: 12px 22px;
  color: #182252;
  border-radius: 999px;
  background: #ffdc7c;
  box-shadow: 0 10px 22px rgba(101, 73, 154, .15);
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.about-story__button:hover,
.about-story__button:focus {
  color: #fffaf0;
  background: #7059ae;
  box-shadow: 0 13px 26px rgba(68, 50, 119, .22);
  transform: translateY(-2px);
}

.about-story__image {
  position: relative;
  margin: 0;
}

.about-story__image::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 18px -14px -16px 18px;
  border-radius: 28px;
  background: linear-gradient(135deg, #ffdc7c, #b9a5ef);
  opacity: .65;
  transform: rotate(2deg);
}

.about-story__image img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 5px solid rgba(255,255,255,.88);
  border-radius: 28px;
  box-shadow: 0 24px 48px rgba(33, 37, 87, .2);
}

.about-story__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 72px;
}

.about-story__stats > div {
  padding: 24px 18px;
  border: 1px solid rgba(126, 103, 188, .2);
  border-radius: 20px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 12px 26px rgba(52, 47, 101, .08);
  text-align: center;
  backdrop-filter: blur(8px);
}

.about-story__stats strong {
  display: block;
  color: #6b51ad;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1;
}

.about-story__stats span {
  display: block;
  margin-top: 8px;
  color: #56516d;
  font-size: 14px;
  font-weight: 700;
}

.about-story__feature {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
}

.about-story__highlights {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.about-story__highlights li {
  position: relative;
  margin-top: 11px;
  padding-left: 30px;
  color: #46415f;
  font-weight: 650;
}

.about-story__highlights li::before {
  content: "★";
  position: absolute;
  left: 0;
  color: #d69d28;
}

.about-story__note {
  margin: 28px 0 8px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(108, 81, 173, .2);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(238,231,255,.85));
  text-align: center;
}

.about-story__note p {
  max-width: 760px;
  margin: 0 auto;
}

/* Modern bedtime-themed footer. */
body > footer {
  position: relative;
  overflow: hidden;
  padding: 58px 0 24px;
  color: rgba(255, 250, 232, .78);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 220, 124, .16) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 28%, rgba(255, 255, 255, .14) 0 1px, transparent 2px),
    radial-gradient(circle at 92% 72%, rgba(185, 165, 239, .18), transparent 25%),
    linear-gradient(145deg, #111b44 0%, #1d2657 58%, #29235d 100%);
  background-size: 150px 130px, 110px 100px, auto, auto;
  border-top: 1px solid rgba(255, 220, 124, .25);
}

body > footer::before {
  content: "";
  position: absolute;
  top: -55px;
  left: 50%;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255, 220, 124, .1);
  box-shadow: 0 0 70px rgba(255, 220, 124, .16);
  transform: translateX(-50%);
  pointer-events: none;
}

body > footer .container {
  position: relative;
  z-index: 1;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(150px, .7fr) minmax(170px, .8fr);
  gap: clamp(34px, 6vw, 78px);
  padding-bottom: 46px;
}

.footer-brand {
  max-width: 500px;
}

.footer-brand__logo {
  display: inline-flex;
  margin-bottom: 18px;
}

.footer-brand__logo img {
  display: block;
  width: min(300px, 100%);
  height: auto;
  max-height: 102px;
  object-fit: contain;
}

.footer-brand p {
  max-width: 460px;
  margin: 0;
  color: rgba(255, 250, 232, .72);
  font-size: 16px;
  line-height: 1.75;
}

.footer-links h2 {
  margin: 8px 0 18px;
  color: #ffdc7c;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body > footer .footer-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 11px;
}

.footer-links a {
  position: relative;
  display: inline-flex;
  color: rgba(255, 250, 232, .8);
  line-height: 1.5;
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}

.footer-links a::before {
  content: "";
  position: absolute;
  right: 100%;
  bottom: 1px;
  left: 0;
  height: 1px;
  background: #ffdc7c;
  transition: right .2s ease;
}

.footer-links a:hover,
.footer-links a:focus {
  color: #ffdc7c;
  transform: translateX(3px);
}

.footer-links a:hover::before,
.footer-links a:focus::before {
  right: 0;
}

body > footer .footer-widgets {
  margin: 0 0 38px;
  padding: 32px 0 8px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

body > footer .footer-widgets,
body > footer .footer-widgets a,
body > footer .footer-widgets .widgettitle {
  color: rgba(255, 250, 232, .82);
}

body > footer .bottom-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 58px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

body > footer .copyright {
  float: none;
  flex: 1 1 auto;
  width: auto;
  max-width: 100%;
  margin: 0;
  color: rgba(255, 250, 232, .58);
  font-size: 13px;
  letter-spacing: .02em;
}

body > footer .footer-social {
  float: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

body > footer .footer-social li {
  margin: 0;
}

body > footer .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #fff8df;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

body > footer .footer-social a:hover,
body > footer .footer-social a:focus {
  color: #182252;
  background: #ffdc7c;
  transform: translateY(-2px);
}

/* Modern Contact page. */
.page-id-6 #wrap-content {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 14%, rgba(255, 220, 124, .22) 0 2px, transparent 3px),
    radial-gradient(circle at 88% 24%, rgba(124, 105, 188, .16) 0 2px, transparent 3px),
    linear-gradient(180deg, #fffdf7 0%, #f6f2ff 56%, #eef3ff 100%);
  background-size: 130px 120px, 170px 150px, auto;
}

.contact-story {
  position: relative;
  z-index: 1;
  padding: clamp(34px, 6vw, 76px) 0 clamp(48px, 7vw, 90px);
}

.contact-story__intro,
.contact-story__layout {
  position: relative;
  z-index: 2;
}

.contact-moon-animation {
  position: absolute;
  z-index: 1;
  inset: 0 calc(50% - 50vw);
  overflow: hidden;
  pointer-events: none;
}

.contact-flying-moon {
  --moon-size: 42px;
  position: absolute;
  left: -100px;
  display: block;
  width: var(--moon-size);
  height: var(--moon-size);
  opacity: .38;
  filter: drop-shadow(0 0 11px rgba(255, 214, 112, .42));
  animation: contact-moon-flight 22s linear infinite;
}

.contact-flying-moon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff4ba, #ffd56d);
}

.contact-flying-moon::after {
  content: "";
  position: absolute;
  top: -6%;
  left: 34%;
  width: 92%;
  height: 92%;
  border-radius: 50%;
  background: #f7f3ff;
}

.contact-flying-moon i,
.contact-flying-moon i::before,
.contact-flying-moon i::after {
  position: absolute;
  z-index: 2;
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #d39e2f;
  box-shadow: 0 0 7px rgba(255, 220, 124, .75);
}

.contact-flying-moon i {
  top: 8%;
  right: -11px;
}

.contact-flying-moon i::before {
  content: "";
  top: 12px;
  right: 8px;
  transform: scale(.65);
}

.contact-flying-moon i::after {
  content: "";
  top: 23px;
  right: -3px;
  transform: scale(.8);
}

.contact-flying-moon-1 { top: 7%; animation-duration: 19s; animation-delay: -4s; }
.contact-flying-moon-2 { top: 20%; --moon-size: 30px; animation-duration: 25s; animation-delay: -17s; opacity: .28; }
.contact-flying-moon-3 { top: 37%; --moon-size: 52px; animation-duration: 23s; animation-delay: -10s; opacity: .24; }
.contact-flying-moon-4 { top: 57%; --moon-size: 35px; animation-duration: 28s; animation-delay: -22s; }
.contact-flying-moon-5 { top: 76%; --moon-size: 46px; animation-duration: 21s; animation-delay: -13s; opacity: .3; }
.contact-flying-moon-6 { top: 88%; --moon-size: 27px; animation-duration: 26s; animation-delay: -7s; }
.contact-flying-moon-7 { top: 29%; --moon-size: 24px; animation-duration: 30s; animation-delay: -25s; opacity: .25; }
.contact-flying-moon-8 { top: 68%; --moon-size: 32px; animation-duration: 24s; animation-delay: -2s; opacity: .32; }

@keyframes contact-moon-flight {
  0% { left: -100px; translate: 0 24px; rotate: -12deg; }
  25% { translate: 28vw -18px; rotate: 8deg; }
  52% { translate: 57vw 20px; rotate: -7deg; }
  78% { translate: 84vw -14px; rotate: 9deg; }
  100% { left: -100px; translate: calc(100vw + 200px) 18px; rotate: -10deg; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-flying-moon {
    display: none;
    animation: none;
  }
}

.contact-story__intro {
  max-width: 780px;
  margin: 0 auto 42px;
  text-align: center;
}

.contact-story__eyebrow {
  display: inline-flex;
  margin-bottom: 13px;
  padding: 7px 13px;
  color: #58438f;
  border-radius: 999px;
  background: #eee7ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.contact-story__intro h1 {
  margin: 0 0 16px;
  color: #20295f;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.contact-story__intro p {
  max-width: 690px;
  margin: 0 auto;
  color: #5a5670;
  font-size: 18px;
  line-height: 1.72;
}

.contact-story__layout {
  display: grid;
  grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr);
  gap: clamp(24px, 4vw, 46px);
  align-items: stretch;
}

.contact-story__details,
.contact-story__form-card {
  border: 1px solid rgba(110, 86, 173, .18);
  border-radius: 28px;
  box-shadow: 0 22px 48px rgba(46, 42, 96, .12);
}

.contact-story__details {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4vw, 42px);
  color: #fffaf0;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 220, 124, .22), transparent 24%),
    linear-gradient(145deg, #17224f, #2d2866);
}

.contact-story__moon {
  position: relative;
  width: 72px;
  height: 72px;
  margin-bottom: 28px;
  border-radius: 50%;
  background: #ffdc7c;
  box-shadow: 0 0 34px rgba(255, 220, 124, .3);
}

.contact-story__moon::after {
  content: "";
  position: absolute;
  top: -7px;
  left: 24px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #1b2354;
}

.contact-story__moon span {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: -26px;
  color: #ffdc7c;
  font-size: 21px;
}

.contact-story__details h2 {
  margin: 0 0 24px;
  color: #fffaf0;
  font-size: 29px;
}

.contact-story__details ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-story__details li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 13px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.11);
}

.contact-story__details li > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #ffdc7c;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
}

.contact-story__details strong,
.contact-story__details small {
  display: block;
}

.contact-story__details strong {
  margin-bottom: 3px;
  color: #fffaf0;
  font-size: 15px;
}

.contact-story__details small {
  color: rgba(255,250,240,.65);
  font-size: 13px;
  line-height: 1.55;
}

.contact-story__privacy {
  margin: 24px 0 0;
  padding-top: 20px;
  color: rgba(255,250,240,.56);
  border-top: 1px solid rgba(255,255,255,.11);
  font-size: 12px;
  line-height: 1.55;
}

.contact-story__form-card {
  padding: clamp(26px, 4vw, 44px);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
}

.contact-story__form-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 28px;
}

.contact-story__envelope {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  color: #5f4899;
  border-radius: 15px;
  background: #eee7ff;
  font-size: 23px;
}

.contact-story__form-heading h2 {
  margin: 0 0 3px;
  color: #252b60;
  font-size: 27px;
}

.contact-story__form-heading p {
  margin: 0;
  color: #746f83;
  font-size: 14px;
}

.contact-story__form-card .wpcf7-form p {
  margin: 0 0 16px;
}

.contact-story__form-card input[type="text"],
.contact-story__form-card input[type="email"],
.contact-story__form-card textarea {
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 13px 16px;
  color: #31314e;
  border: 1px solid #dcd6eb;
  border-radius: 14px;
  background: #fbfaff;
  outline: none;
  font-size: 16px;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.contact-story__form-card textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-story__form-card input:focus,
.contact-story__form-card textarea:focus {
  border-color: #8067bd;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(128, 103, 189, .14);
}

.contact-story__form-card #submit-contact {
  width: 100%;
  min-height: 52px;
  padding: 13px 22px;
  color: #17214f;
  border: 0;
  border-radius: 14px;
  background: #ffdc7c;
  box-shadow: 0 10px 22px rgba(83, 62, 141, .15);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.contact-story__form-card #submit-contact:hover,
.contact-story__form-card #submit-contact:focus {
  color: #fffaf0;
  background: #7059ae;
  box-shadow: 0 13px 25px rgba(70, 51, 124, .23);
  transform: translateY(-2px);
}

.contact-story__form-card .wpcf7-not-valid-tip {
  margin-top: 5px;
  font-size: 12px;
}

.contact-story__form-card .wpcf7-response-output {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
}

#header-1 .logo-txt {
  font-size: 31px;
  line-height: 1;
  letter-spacing: .02em;
  font-weight: 600;
}

#header-1 .search-social li a,
#header-1 .search-social .search-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: rgba(255,255,255,.86);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

#header-1 .search-social li a:hover,
#header-1 .search-social li a:focus,
#header-1 .search-social .search-btn:hover {
  background: rgba(255,255,255,.14);
  color: #fff;
  transform: translateY(-1px);
}

#header-1 .search-social .search-btn {
  cursor: pointer;
}

#header-1 .nav-button {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.07);
  transition: background-color .2s ease, transform .2s ease;
}

#header-1 .nav-button:hover,
#header-1 .nav-button:focus {
  background: rgba(255,255,255,.14);
  transform: translateY(-1px);
}

#header-1 .nav-button .icon-bar,
#header-1 .nav-button .icon-bar:before,
#header-1 .nav-button .icon-bar:after {
  border-radius: 999px;
}

.mask-nav-1 {
  background: rgba(15,16,32,.98);
}

.mask-nav-1 .menu-nav-1 a {
  letter-spacing: .03em;
}

@media (max-width: 991px) {
  .top-header {
    padding: 12px 16px;
  }

  .logo-1,
  .search-social,
  .nav-button-holder {
    width: 33.3333%;
  }

  .logo-1 img,
  .logo img {
    max-width: 180px;
    width: auto;
    height: auto;
  }

  #header-1 .search-social li:not(.search-btn) {
    display: none;
  }

  #header-1 .search-social {
    justify-content: flex-start;
  }

  h1 { font-size: 42px; }
  h2 { font-size: 34px; }
  h3 { font-size: 29px; }
  h4 { font-size: 24px; }

  .padding-tb56 {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .margin-t56 { margin-top: 38px; }
  .margin-b56 { margin-bottom: 38px; }
}

@media (max-width: 767px) {
  body {
    font-size: 16px;
    line-height: 1.65;
  }

  .container {
    width: 100%;
    padding-left: 18px;
    padding-right: 18px;
  }

  #header-1.top-header {
    padding: 9px 12px;
  }

  #header-1 .headerWrap,
  #header-1 .headerWrap4 {
    min-height: 62px;
  }

  .story-category-directory {
    width: min(100% - 28px, 620px);
    padding: 38px 0 50px;
  }

  .story-category-directory__grid {
    grid-template-columns: 1fr;
  }

  .story-category-card {
    padding: 20px;
  }

  .page-id-137 .topCustomPageBkg {
    min-height: 390px;
    background-position: center calc(100% - 16px), 58% center;
    background-size: min(230px, 66vw) auto, auto 100%;
  }

  .page-id-137 .topCustomPageBkg .topHomeHolder {
    padding-bottom: 72px;
  }

  .about-story {
    padding-top: 8px;
  }

  .about-story__hero,
  .about-story__feature {
    grid-template-columns: 1fr;
    gap: 28px;
    margin: 18px 0 48px;
  }

  .about-story__hero-copy {
    order: 1;
  }

  .about-story__image--hero {
    order: 2;
  }

  .about-story h1 {
    font-size: 39px;
  }

  .about-story__lead {
    font-size: 18px !important;
  }

  .about-story__stats {
    grid-template-columns: 1fr;
    margin-bottom: 52px;
  }

  .about-story__stats > div {
    padding: 20px 16px;
  }

  .about-story__image::before {
    inset: 12px -7px -10px 12px;
    border-radius: 22px;
  }

  .about-story__image img {
    border-width: 4px;
    border-radius: 22px;
  }

  body > footer {
    padding: 44px 0 20px;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 22px;
    padding-bottom: 34px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
    text-align: center;
  }

  .footer-brand__logo img {
    width: min(270px, 78vw);
  }

  .footer-brand p {
    margin: 0 auto;
  }

  body > footer .bottom-info {
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    text-align: center;
  }

  body > footer .copyright {
    width: 100%;
    max-width: 350px;
    line-height: 1.55;
  }

  .contact-story {
    padding: 32px 0 52px;
  }

  .contact-story__intro {
    margin-bottom: 30px;
  }

  .contact-story__intro h1 {
    font-size: 40px;
  }

  .contact-story__intro p {
    font-size: 16px;
  }

  .contact-story__layout {
    grid-template-columns: 1fr;
  }

  .contact-story__details,
  .contact-story__form-card {
    border-radius: 22px;
  }

  .contact-story__details {
    padding: 26px 22px;
  }

  .contact-story__form-card {
    padding: 24px 18px;
  }

  .contact-story__form-heading {
    align-items: flex-start;
  }

  #header-1.top-header4 {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  #header-1 .search-social-4 .search-btn {
    top: 4px;
    right: 4px;
  }

  #header-1 .headerWrap4 {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  #header-1 .logo-4 {
    width: 100%;
    padding-top: 30px;
  }

  #header-1 .button-holder4 {
    display: none !important;
  }

  #header-1 .search-social-4 {
    min-height: 0;
  }

  #header-1 .nav-holder-4 {
    display: block !important;
    width: 100%;
  }

  #header-1 .menu-nav-4 {
    display: flex;
    justify-content: center;
    gap: 7px;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
  }

  #header-1 .menu-nav-4 > li {
    display: block;
    flex: 0 1 auto;
  }

  #header-1 .menu-nav-4 li a {
    min-height: 36px;
    padding: 7px 13px;
    background: rgba(122, 105, 188, .2);
    font-size: 13px;
    line-height: 1.15;
  }

  #header-1 .menu-nav-4 li a:hover,
  #header-1 .menu-nav-4 li a:focus,
  #header-1 .menu-nav-4 .current-menu-item > a {
    color: #15204f;
    background: #ffdc7c;
    box-shadow: inset 0 0 0 1px #ffdc7c;
  }

  .logo-1,
  .search-social,
  .nav-button-holder {
    min-height: 44px;
  }

  .logo-1 {
    padding-top: 0;
  }

  #header-1 .logo-1 img,
  #header-1 .logo-4 img,
  #header-1 .logo img {
    max-width: min(260px, 84vw);
    max-height: 88px;
  }

  #header-1 .logo-txt {
    font-size: 25px;
    line-height: 1.1;
  }

  #header-1 .search-social li a,
  #header-1 .search-social .search-btn,
  #header-1 .nav-button {
    width: 40px;
    height: 40px;
  }

  h1 { font-size: 34px; line-height: 1.18; }
  h2 { font-size: 29px; line-height: 1.22; }
  h3 { font-size: 25px; line-height: 1.25; }
  h4 { font-size: 22px; }
  h5 { font-size: 19px; }

  blockquote {
    font-size: 19px;
    line-height: 1.55;
    margin: 28px 0;
    padding-left: 26px;
  }

  .post-title,
  .post-title a {
    overflow-wrap: anywhere;
  }

  .post-content,
  .entry-content {
    font-size: 16px;
    line-height: 1.7;
  }

  .post-content img,
  .entry-content img,
  .wp-caption {
    width: auto;
    max-width: 100%;
    height: auto;
  }

  .alignleft,
  .alignright {
    float: none;
    display: block;
    margin: 18px auto;
    max-width: 100%;
  }

  .padding-tb56 {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .margin-t56 { margin-top: 28px; }
  .margin-b56 { margin-bottom: 28px; }
  .margin-b35 { margin-bottom: 24px; }

  .widget {
    margin-bottom: 30px;
  }

  .footer-social,
  .get-social {
    flex-wrap: wrap;
  }

  input[type="text"],
  input[type="email"],
  input[type="url"],
  input[type="search"],
  input[type="password"],
  textarea,
  select {
    width: 100%;
    min-height: 44px;
    font-size: 16px;
  }

  button,
  input[type="submit"],
  .submit,
  #submit-contact,
  .comment-reply-link {
    min-height: 44px;
    touch-action: manipulation;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  h1 { font-size: 30px; }
  h2 { font-size: 26px; }
  h3 { font-size: 23px; }

  #header-1 .logo-1 img,
  #header-1 .logo-4 img,
  #header-1 .logo img {
    max-width: min(230px, 82vw);
    max-height: 78px;
  }

  #header-1 .search-social li a,
  #header-1 .search-social .search-btn,
  #header-1 .nav-button {
    width: 38px;
    height: 38px;
  }

  .post-meta,
  .post-single-meta,
  .meta-category {
    font-size: 12px;
  }
}

