/* ==========================================================================
   Long Island Korean School — Children's Book (v2) Theme Styles
   ========================================================================== */

:root {
  --liks-sun:       #ffc93c;   /* sunny yellow */
  --liks-coral:     #ff6b6b;   /* warm red */
  --liks-coral-d:   #e85454;
  --liks-sky:       #aee3f5;   /* sky blue */
  --liks-blue:      #4a90d9;
  --liks-leaf:      #7fb069;   /* grass green */
  --liks-grass:     #58b368;
  --liks-grape:     #9b7ede;   /* soft purple */
  --liks-cream:     #fff8ec;   /* warm paper */
  --liks-ink:       #2d3a5f;   /* soft navy text */
  --liks-ink-soft:  #5b6478;
  --liks-white:     #ffffff;
  --liks-footer-bg: #2b4a6f;
  --liks-footer-dk: #1f3854;
  --liks-radius:    18px;
}

/* Preserve position:sticky while preventing horizontal scrollbars */
html,
body {
  overflow-x: clip !important;
}

body,
body.custom-background {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--liks-ink);
  background-color: var(--liks-cream);
  line-height: 1.7;
  margin: 0;
  padding: 0;
}

.liks-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.liks-icon {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex: none;
  display: block;
}

/* ================= TOP BAR ================= */
.liks-topbar {
  background: var(--liks-coral);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 500;
  font-family: 'Noto Sans KR', sans-serif;
}

.liks-topbar .liks-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 42px;
  gap: 14px;
}

.liks-topbar a {
  color: #ffffff;
  text-decoration: none;
}

.liks-topbar a:hover {
  text-decoration: underline;
  color: #ffffff;
}

.liks-topbar-left {
  display: flex;
  align-items: center;
  gap: 22px;
}

.liks-topbar-left span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.liks-np-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.22);
  border: 1.5px dashed rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
  color: #ffffff;
}

/* ================= MAIN HEADER ================= */
.liks-site-header {
  background: var(--liks-white);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 3px 0 rgba(45, 58, 95, 0.06), 0 8px 24px rgba(45, 58, 95, 0.08);
}

body.admin-bar .liks-site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .liks-site-header {
    top: 46px;
  }
}

@media (max-width: 600px) {
  body.admin-bar .liks-site-header {
    top: 0;
  }
}

.liks-site-header .liks-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  gap: 18px;
  position: relative;
}

/* Brand lockup */
.liks-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  text-decoration: none !important;
  color: var(--liks-ink);
}

.liks-brand-icon {
  width: 54px;
  height: 54px;
  flex: none;
  display: block;
}

.liks-brand-text {
  line-height: 1.15;
}

.liks-brand-text .liks-ko {
  font-family: 'Jua', 'Noto Sans KR', sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--liks-ink);
  display: block;
}

.liks-brand-text .liks-ko em {
  font-style: normal;
  color: var(--liks-coral);
}

.liks-brand-text .liks-en {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--liks-ink-soft);
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
}

/* Primary Navigation */
.liks-main-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.liks-main-nav > a {
  font-family: 'Jua', 'Noto Sans KR', sans-serif;
  font-size: 16.5px;
  font-weight: 400;
  color: var(--liks-ink);
  padding: 9px 13px;
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none !important;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
  display: inline-flex;
  align-items: center;
}

.liks-main-nav > a:hover {
  transform: translateY(-2px) rotate(-1deg);
}

.liks-main-nav > a:nth-child(6n+1):hover { background: #ffe9a8; }
.liks-main-nav > a:nth-child(6n+2):hover { background: #cdefff; }
.liks-main-nav > a:nth-child(6n+3):hover { background: #d9f0c8; }
.liks-main-nav > a:nth-child(6n+4):hover { background: #e4d9fb; }
.liks-main-nav > a:nth-child(6n+5):hover { background: #ffd9d9; }
.liks-main-nav > a:nth-child(6n+6):hover { background: #ffe9c8; }

.liks-main-nav > a.active {
  background: var(--liks-sun);
  box-shadow: 0 3px 0 #e0a924;
}

.liks-main-nav > a.liks-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--liks-coral) !important;
  color: #ffffff !important;
  font-size: 16.5px;
  padding: 10px 18px;
  margin-left: 4px;
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--liks-coral-d);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.liks-main-nav > a.liks-header-cta .liks-icon {
  fill: #ffffff;
}

.liks-main-nav > a.liks-header-cta:hover,
.liks-main-nav > a.liks-header-cta.is-current {
  background: var(--liks-coral-d) !important;
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--liks-coral-d);
}

/* Mobile Hamburger */
.liks-nav-toggle {
  display: none;
}

.liks-nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 12px 10px;
  margin: 0;
  border-radius: 12px;
  transition: background-color 0.2s ease;
}

.liks-nav-toggle-label:hover {
  background: var(--liks-cream);
}

.liks-nav-toggle-label span,
.liks-nav-toggle-label span::before,
.liks-nav-toggle-label span::after {
  content: '';
  display: block;
  width: 26px;
  height: 3px;
  background: var(--liks-ink);
  border-radius: 3px;
  position: relative;
  transition: 0.25s ease;
}

.liks-nav-toggle-label span::before {
  position: absolute;
  top: -8px;
}

.liks-nav-toggle-label span::after {
  position: absolute;
  top: 8px;
}

.liks-nav-toggle:checked + .liks-nav-toggle-label span {
  background: transparent;
}

.liks-nav-toggle:checked + .liks-nav-toggle-label span::before {
  top: 0;
  transform: rotate(45deg);
}

.liks-nav-toggle:checked + .liks-nav-toggle-label span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ================= MAIN CONTENT HARMONIZATION ================= */
#maincontainer.liks-maincontainer {
  background: transparent;
  padding-top: 28px;
  padding-bottom: 16px;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

#maincontainer.liks-maincontainer > #content.container {
  max-width: 1160px;
  padding-left: 24px;
  padding-right: 24px;
}

/* Preserve full-width Elementor page templates */
body.page-template-template-full-width-page-builder.elementor-page #maincontainer.liks-maincontainer > #content.container {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

/* Warm white card look for inner pages & single posts */
.content-first {
  background: var(--liks-white);
  border-radius: var(--liks-radius);
  padding: 32px 36px;
  margin-bottom: 28px;
  border: 1.5px solid rgba(45, 58, 95, 0.06);
  box-shadow: 0 3px 0 rgba(45, 58, 95, 0.05), 0 10px 28px rgba(45, 58, 95, 0.06);
}

/* On the homepage, let the MetaSlider, Content Views cards, and Flickr gallery breathe directly on cream */
body.home .content-first {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

body.home .content-first .content-second {
  display: none;
}

/* Page & Post titles */
.content-second {
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 2px dashed rgba(45, 58, 95, 0.14);
}

.content-second h1.the-title,
.content-second h2.the-title,
.content-second .entry-title {
  font-family: 'Jua', 'Noto Sans KR', sans-serif !important;
  font-size: clamp(26px, 3.2vw, 34px) !important;
  line-height: 1.3 !important;
  color: var(--liks-ink) !important;
  margin: 0 !important;
}

.content-second .entry-title a {
  color: var(--liks-ink);
  text-decoration: none;
}

.content-second .entry-title a:hover {
  color: var(--liks-coral);
}

.entry-content {
  color: var(--liks-ink);
  font-size: 15.5px;
  line-height: 1.8;
}

.entry-content a {
  color: var(--liks-blue);
}

.entry-content a:hover {
  color: var(--liks-coral);
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* MetaSlider framing on homepage */
.metaslider {
  border-radius: var(--liks-radius);
  overflow: hidden;
  box-shadow: 0 4px 0 rgba(45, 58, 95, 0.06), 0 12px 30px rgba(45, 58, 95, 0.10);
  margin-bottom: 36px !important;
  background: var(--liks-white);
}

.metaslider .nivoSlider {
  margin-bottom: 0 !important;
  box-shadow: none !important;
}

/* Content Views grid cards on homepage */
.pt-cv-wrapper {
  margin-top: 12px;
  margin-bottom: 28px;
}

.pt-cv-wrapper .pt-cv-ifield {
  background: var(--liks-white);
  border-radius: var(--liks-radius);
  padding: 22px 24px;
  height: 100%;
  border: 1.5px solid rgba(45, 58, 95, 0.07);
  box-shadow: 0 3px 0 rgba(45, 58, 95, 0.05), 0 8px 20px rgba(45, 58, 95, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pt-cv-wrapper .pt-cv-ifield:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 rgba(45, 58, 95, 0.07), 0 12px 26px rgba(45, 58, 95, 0.09);
}

.pt-cv-wrapper .pt-cv-content-item {
  margin-bottom: 24px !important;
}

.pt-cv-wrapper .pt-cv-title,
.pt-cv-wrapper .pt-cv-title a {
  font-family: 'Jua', 'Noto Sans KR', sans-serif !important;
  font-size: 20px !important;
  line-height: 1.4 !important;
  color: var(--liks-ink) !important;
  text-decoration: none;
}

.pt-cv-wrapper .pt-cv-title a:hover {
  color: var(--liks-coral) !important;
}

.pt-cv-wrapper .pt-cv-content {
  color: var(--liks-ink-soft);
  font-size: 14.5px;
  line-height: 1.7;
  margin-top: 8px;
}

.pt-cv-wrapper .pt-cv-readmore,
.pt-cv-wrapper .pt-cv-readmore.btn-success {
  display: inline-block;
  margin-top: 12px;
  font-family: 'Jua', 'Noto Sans KR', sans-serif !important;
  font-size: 14.5px !important;
  font-weight: 400 !important;
  background-color: var(--liks-coral) !important;
  border: none !important;
  color: #ffffff !important;
  padding: 7px 18px !important;
  border-radius: 999px !important;
  box-shadow: 0 3px 0 var(--liks-coral-d);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.pt-cv-wrapper .pt-cv-readmore:hover,
.pt-cv-wrapper .pt-cv-readmore.btn-success:hover {
  background-color: var(--liks-coral-d) !important;
  transform: translateY(1px);
  box-shadow: 0 1px 0 var(--liks-coral-d);
  color: #ffffff !important;
}

/* Photonic Flickr gallery card */
.photonic-stream {
  background: var(--liks-white);
  border-radius: var(--liks-radius);
  padding: 18px;
  border: 1.5px solid rgba(45, 58, 95, 0.06);
  box-shadow: 0 3px 0 rgba(45, 58, 95, 0.05), 0 10px 24px rgba(45, 58, 95, 0.06);
}

/* Sidebar widgets (if shown on sidebar templates) */
.widget_sidebar_main {
  background: var(--liks-white);
  border-radius: var(--liks-radius);
  padding: 22px 24px;
  margin-bottom: 24px;
  border: 1.5px solid rgba(45, 58, 95, 0.06);
  box-shadow: 0 3px 0 rgba(45, 58, 95, 0.05), 0 8px 20px rgba(45, 58, 95, 0.05);
}

.widget_sidebar_main .right-widget-title {
  font-family: 'Jua', 'Noto Sans KR', sans-serif !important;
  color: var(--liks-ink);
  border-bottom: 2px dashed var(--liks-sun);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

/* Pagination */
.navigation.pagination .nav-links .page-numbers {
  border-radius: 999px;
  border-color: var(--liks-sky) !important;
  color: var(--liks-ink);
  font-family: 'Jua', 'Noto Sans KR', sans-serif;
  margin: 0 3px;
  padding: 6px 14px;
}

.navigation.pagination .nav-links .page-numbers.current,
.navigation.pagination .nav-links .page-numbers:hover {
  background: var(--liks-sun) !important;
  border-color: var(--liks-sun) !important;
  color: var(--liks-ink) !important;
}

/* ================= FOOTER SCENE & FOOTER ================= */
.liks-footer-scene {
  margin-top: 64px;
  line-height: 0;
  background: transparent;
}

.liks-footer-scene svg {
  width: 100%;
  height: 150px;
  display: block;
}

.liks-site-footer {
  background: var(--liks-footer-bg);
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 14.5px;
  line-height: 1.65;
}

.liks-site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.liks-site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.liks-footer-main {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1.15fr 1.1fr;
  gap: 42px;
  padding: 30px 0 48px;
}

.liks-footer-brand img {
  height: 44px;
  width: auto;
  margin-bottom: 16px;
  display: block;
}

.liks-footer-brand p {
  max-width: 300px;
  line-height: 1.8;
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.85);
}

.liks-footer-brand .liks-nonprofit-line {
  margin-top: 14px;
  margin-bottom: 0;
  color: var(--liks-sun);
  font-size: 13.5px;
}

.liks-footer-col h3 {
  font-family: 'Jua', 'Noto Sans KR', sans-serif !important;
  font-weight: 400 !important;
  color: var(--liks-sun) !important;
  font-size: 18px !important;
  line-height: 1.3 !important;
  margin: 0 0 16px !important;
  padding: 0;
}

.liks-footer-col ul li {
  margin-bottom: 9px;
}

.liks-footer-col > ul:not(.liks-footer-contact):not(.liks-footer-hours) a {
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
}

.liks-footer-col > ul:not(.liks-footer-contact):not(.liks-footer-hours) a::before {
  content: '❋ ';
  color: var(--liks-sun);
  font-size: 11px;
}

.liks-footer-col > ul:not(.liks-footer-contact):not(.liks-footer-hours) a:hover {
  color: var(--liks-sun);
  padding-left: 4px;
}

.liks-footer-contact li {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.liks-footer-contact .liks-icon {
  margin-top: 4px;
  fill: var(--liks-sun);
}

.liks-footer-contact a:hover {
  color: var(--liks-sun);
}

.liks-footer-hours li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  margin-bottom: 0;
  border-bottom: 1.5px dashed rgba(255, 255, 255, 0.18);
}

.liks-footer-hours li span:last-child {
  color: #ffffff;
  font-weight: 700;
}

.liks-footer-donate {
  margin-top: 18px;
  display: inline-block;
  font-family: 'Jua', 'Noto Sans KR', sans-serif;
  font-size: 16px;
  background: var(--liks-sun);
  color: var(--liks-ink) !important;
  padding: 11px 24px;
  border-radius: 999px;
  box-shadow: 0 4px 0 #d9a52b;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none !important;
}

.liks-footer-donate:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #d9a52b;
  color: var(--liks-ink) !important;
}

.liks-footer-bottom {
  background: var(--liks-footer-dk);
  padding: 18px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.liks-footer-bottom .liks-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.liks-footer-bottom a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.liks-footer-bottom a:hover {
  color: var(--liks-sun);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1080px) {
  .liks-topbar-left .liks-hide-sm {
    display: none;
  }

  .liks-nav-toggle-label {
    display: block;
  }

  .liks-site-header {
    position: relative;
    top: 0 !important;
  }

  .liks-main-nav {
    position: absolute;
    top: calc(100% + 6px);
    left: 12px;
    right: 12px;
    background: var(--liks-white);
    border: 3px solid var(--liks-sun);
    border-radius: 20px;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    gap: 4px;
    display: none;
    box-shadow: 0 14px 30px rgba(45, 58, 95, 0.18);
    z-index: 1000;
  }

  .liks-main-nav > a {
    font-size: 18px;
    padding: 12px 14px;
  }

  .liks-main-nav > a.liks-header-cta {
    justify-content: center;
    margin-left: 0;
    margin-top: 8px;
  }

  .liks-nav-toggle:checked ~ .liks-main-nav {
    display: flex;
  }

  .liks-footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }
}

@media (max-width: 640px) {
  .liks-wrap,
  #maincontainer.liks-maincontainer > #content.container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .liks-site-header .liks-wrap {
    min-height: 78px;
  }

  .liks-brand-icon {
    width: 44px;
    height: 44px;
  }

  .liks-brand-text .liks-ko {
    font-size: 20px;
  }

  .liks-brand-text .liks-en {
    font-size: 9.5px;
    letter-spacing: 0.12em;
  }

  .content-first {
    padding: 22px 18px;
  }

  .liks-footer-scene svg {
    height: 95px;
  }

  .liks-footer-main {
    grid-template-columns: 1fr;
  }

  .liks-np-badge {
    display: none;
  }
}
