* {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: Arial, Helvetica, sans-serif;
      background: #ffffff;
      color: #111;
    }

    body.menu-open {
      overflow: hidden;
    }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 1000;
      height: 76px;
      background: #ffffff;
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      padding: 0 54px;
      border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    .hamburger {
      justify-self: start;
      width: 32px;
      height: 24px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      background: none;
      border: none;
      cursor: pointer;
      z-index: 1100;
      transition: transform 0.22s ease;
    }

    .hamburger:hover {
      transform: scale(1.15);
    }

    .hamburger span {
      width: 100%;
      height: 4px;
      background: #111;
      border-radius: 999px;
      transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .hamburger.active span:nth-child(1) {
      transform: translateY(10px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
      opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
      transform: translateY(-10px) rotate(-45deg);
    }

    .logo {
      justify-self: center;
      height: 60px;
      display: block;
      transition: transform 0.22s ease;
    }

    .logo:hover {
      transform: scale(1.05);
    }

    .search-area {
      justify-self: end;
      position: relative;
    }

    .search-area input {
      width: 220px;
      height: 40px;
      border: 1px solid #ddd;
      border-radius: 999px;
      padding: 0 42px 0 16px;
      font-size: 15px;
      outline: none;
      transition: border-color 0.22s ease, box-shadow 0.22s ease;
    }

    .search-area input:hover,
    .search-area input:focus {
      border-color: #aaa;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    }

    .search-icon {
      position: absolute;
      right: 14px;
      top: 50%;
      transform: translateY(-50%);
      width: 18px;
      height: 18px;
      pointer-events: none;
    }

    .mobile-search-button {
      display: none;
      background: none;
      border: none;
      cursor: pointer;
      transition: transform 0.22s ease;
    }

    .mobile-search-button:hover {
      transform: scale(1.08);
    }

    .menu-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.35);
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.25s ease, visibility 0.25s ease;
      z-index: 1001;
    }

    .menu-overlay.active {
      opacity: 1;
      visibility: visible;
    }

    .side-menu {
      position: fixed;
      top: 0;
      left: 0;
      width: 320px;
      max-width: 86%;
      height: 100vh;
      background: #ffffff;
      z-index: 1002;
      transform: translateX(-100%);
      transition: transform 0.3s ease;
      padding: 110px 28px 28px;
      box-shadow: 8px 0 30px rgba(0, 0, 0, 0.12);
    }

    .side-menu.active {
      transform: translateX(0);
    }

    .side-menu nav {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .side-menu a {
      color: #111;
      text-decoration: none;
      font-size: 28px;
      font-weight: 700;
      letter-spacing: -0.03em;
      padding: 14px 0;
      border-bottom: 1px solid rgba(0, 0, 0, 0.08);
      transition: transform 0.22s ease, opacity 0.22s ease;
    }

    .side-menu a:hover {
      transform: translateX(6px);
      opacity: 0.65;
    }

    .menu-close {
      position: absolute;
      top: 22px;
      right: 22px;
      width: 40px;
      height: 40px;
      border: none;
      background: none;
      cursor: pointer;
      color: #111;
      transition: transform 0.22s ease, opacity 0.22s ease;
    }

    .menu-close:hover {
      transform: scale(1.08);
      opacity: 0.7;
    }

    .main-grid {
      max-width: 1400px;
      margin: 0 auto;
      padding: 24px;
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
    }

    .card {
      position: relative;
      aspect-ratio: 9 / 14;
      border-radius: 14px;
      overflow: hidden;
      background: #eee;
      cursor: pointer;
      transition: transform 0.28s ease, box-shadow 0.28s ease;
    }

    .card:hover {
      transform: translateY(-6px);
      box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
    }

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.card:hover img {
  transform: scale(1.06);
  filter: brightness(1.08);
}

    .card::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.38) 28%,
        rgba(0, 0, 0, 0) 58%
      );
      transition: background 0.28s ease;
    }



.card-title {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  color: #ffffff;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  transition: transform 0.28s ease;
}
    
    .card-title .dropcap {
  font-family: 'EllieologyFont1', sans-serif;
  font-size: 1.75em;
  font-weight: 500;
  line-height: 0.8;
  display: inline-block;
  margin-right: 0.03em;
}

    .card:hover .card-title {
      transform: translateY(-6px);
    }

    @media (max-width: 1024px) {

      .site-header {
        height: 68px;
        padding: 0 24px;
      }

      .main-grid {
        grid-template-columns: repeat(3, 1fr);
      }

      .search-area {
        display: none;
      }

      .mobile-search-button {
        display: block;
        justify-self: end;
      }

      .card-title {
        font-size: 40px;
        left: 13px;
        right: 13px;
        bottom: 13px;
      }
    }

    @media (max-width: 768px) {
      .site-header {
        height: 68px;
        padding: 0 18px;
      }

      .logo {
        height: 38px;
      }

.hamburger {
  width: 26px;
  height: 20px;
}

.hamburger span {
  height: 3px;
}

      .side-menu {
        padding-top: 96px;
      }

      .side-menu a {
        font-size: 25px;
      }

      .main-grid {
        padding: 8px;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
      }

      .card {
        border-radius: 12px;
      }

      .card:hover {
        transform: none;
        box-shadow: none;
      }

      .card:hover img {
        transform: none;
      }

      .card:hover .card-title {
        transform: none;
      }

      .card-title {
        font-size: 24px;
        left: 13px;
        right: 13px;
        bottom: 13px;
      }
    }

/* ==========================
   HOMEPAGE COLORING SECTION
   ========================== */

.coloring-feature {
    position: relative;
    width: min(100% - 48px, 1352px);
    margin: 125px auto 24px;
    min-height: 550px;
    background-image: url('/assets/homepage/images/2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0 0 0 0;
    overflow: hidden;
}

.coloring-content {
    position: absolute;
    left: clamp(48px, 10vw, 140px);
    top: 50%;
    transform: translateY(-50%);
    width: clamp(340px, 32vw, 500px);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
}

.coloring-logo {
    width: clamp(150px, 16vw, 220px);
    height: auto;
    display: block;
    margin-bottom: 1px;
}

.coloring-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-transform: uppercase;
    line-height: 0.9;
}

.coloring-title .top-line,
.coloring-title .bottom-line {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    background: radial-gradient(
        ellipse at center,
        #FFD36A 0%,
        #FEB22E 15%,
        #B86A00 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.coloring-title .top-line {
    font-size: clamp(60px, 6.7vw, 92px);
    letter-spacing: 1px;
    -webkit-text-stroke: 1px rgba(145, 90, 0, 0.35);
}

.coloring-title .bottom-line {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.3vw, 18px);
    margin-top: 8px;
    font-size: clamp(38px, 4.2vw, 58px);
    font-weight: 500;
    letter-spacing: clamp(4px, 0.6vw, 8px);
    -webkit-text-stroke: 1px rgba(145, 90, 0, 0.35);
}

.coloring-title .bottom-line::before,
.coloring-title .bottom-line::after {
    content: "";
    width: clamp(52px, 6.5vw, 90px);
    height: 4px;
    border-radius: 2px;
    background: radial-gradient(
        ellipse at center,
        #FFD36A 0%,
        #FEB22E 35%,
        #B86A00 100%
    );
    box-shadow:
        0 1px 2px rgba(255,255,255,0.3),
        0 1px 4px rgba(0,0,0,0.08);
}

.coloring-subtitle {
    margin-top: 18px;
    font-family: 'Trebuchet MS', Arial, sans-serif;
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.45;
    font-weight: 500;
    color: #2f2f2f;
    text-align: center;
    width: 500px;
    max-width: 100%;
    text-shadow: none;
}

.coloring-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
    width: clamp(180px, 15vw, 220px);
    min-height: 50px;
    padding: 0 24px;
    background: linear-gradient(
        135deg,
        #4f48f5 0%,
        #7b35d9 14%,
        #b92abc 28%,
        #f20fa4 46%,
        #ff176f 62%,
        #ffd500 100%
    );
    color: #fff;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(18px, 1.5vw, 22px);
    font-weight: 600;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.coloring-button:active {
    transform: translateY(0);
    transition: all 0.5s ease;
}

.coloring-tablet {
    position: absolute;
    right: clamp(24px, 4vw, 50px);
    top: 55%;
    width: clamp(430px, 47vw, 650px);
    max-width: 52%;
    height: auto;
    z-index: 2;
    transform: translateY(-50%);
    filter: drop-shadow(0 8px 2px rgba(0,0,0,0.5));
}

/* ==========================
   COLORING CARD CAROUSEL
   ========================== */

.coloring-card-section {
    width: min(100% - 48px, 1352px);
    margin: -24px auto 150px;
    padding: 48px 56px 56px;
    background: #F1F2F3;
    border-radius: 0 0 0 0;
    position: relative;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.carousel-window {
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 28px;
    transition: transform 0.35s ease;
}

.coloring-card {
    flex: 0 0 calc((100% - 84px) / 4);
    background: #ffffff;
    border-radius: 18px;
    padding: 22px;
    text-decoration: none;
    color: #222;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.coloring-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.coloring-card img {
    width: 100%;
    height: clamp(220px, 22vw, 310px);
    object-fit: contain;
    margin-bottom: 16px;
}

.coloring-card span {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
    display: grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
    color: #111;
    transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-arrow:hover {
    transform: translateY(-50%) scale(1.08);
    background: #fff;
}

.carousel-arrow.left {
    left: -26px;
}

.carousel-arrow.right {
    right: -26px;
}

.chevron {
    width: 14px;
    height: 14px;
    border-right: 3px solid #111;
    border-bottom: 3px solid #111;
    transform: rotate(135deg);
    margin-left: 4px;
}

.carousel-arrow.right .chevron {
    transform: rotate(-45deg);
    margin-left: 0;
    margin-right: 4px;
}

/* ==========================
   TABLET
   ========================== */

@media (max-width: 1024px) {
    .coloring-feature {
        width: calc(100% - 32px);
        margin: 80px auto 0;
        min-height: 460px;
    }

    .coloring-content {
        left: 44px;
        width: 340px;
    }

    .coloring-tablet {
        width: 500px;
        max-width: 50%;
        right: 30px;
    }

    .coloring-subtitle {
        font-size: 16px;
        max-width: 340px;
    }

    .coloring-button {
        min-height: 50px;
        font-size: 19px;
    }

    .coloring-card-section {
        width: calc(100% - 32px);
        margin: -16px auto 80px;
        padding: 40px 44px 48px;
    }

    .carousel-track {
        gap: 24px;
    }

    .coloring-card {
        flex: 0 0 calc((100% - 24px) / 2);
    }

    .coloring-card img {
        height: 280px;
    }
}

/* ==========================
   MOBILE
   ========================== */

@media (max-width: 768px) {
    .coloring-feature {
        width: calc(100% - 16px);
        margin: 80px auto 0;
        padding: 36px 20px;
        min-height: auto;
        border-radius: 14px 14px 0 0;
        background-position: center;
    }

    .coloring-content {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 100%;
        margin: 0 auto;
    }

    .coloring-logo {
        width: 140px;
    }

    .coloring-title .top-line {
        font-size: clamp(46px, 13vw, 58px);
    }

    .coloring-title .bottom-line {
        font-size: clamp(30px, 8vw, 38px);
        letter-spacing: 4px;
        gap: 10px;
    }

    .coloring-title .bottom-line::before,
    .coloring-title .bottom-line::after {
        width: clamp(36px, 11vw, 54px);
        height: 3px;
    }

    .coloring-subtitle {
        margin-top: 16px;
        font-size: 16px;
        max-width: 340px;
    }

    .coloring-button {
        width: 180px;
        min-height: 46px;
        font-size: 18px;
        margin-top: 16px;
    }

    .coloring-tablet {
        display: none;
    }

    .coloring-card-section {
        width: calc(100% - 16px);
        margin: -8px auto 80px;
        padding: 34px 34px 42px;
        border-radius: 0 0 12px 12px;
    }

    .carousel-track {
        gap: 20px;
    }

    .coloring-card {
        flex: 0 0 100%;
        padding: 20px;
    }

    .coloring-card img {
        height: 260px;
    }

    .carousel-arrow {
        width: 44px;
        height: 44px;
    }

    .carousel-arrow.left {
        left: -22px;
    }

    .carousel-arrow.right {
        right: -22px;
    }

    .chevron {
        width: 12px;
        height: 12px;
        border-right-width: 3px;
        border-bottom-width: 3px;
    }
}

/* ==========================
   SMALL MOBILE
   ========================== */

@media (max-width: 480px) {
    .coloring-feature {
        padding: 32px 16px;
    }

    .coloring-logo {
        width: 125px;
    }

    .coloring-title .top-line {
        font-size: 44px;
    }

    .coloring-title .bottom-line {
        font-size: 29px;
        letter-spacing: 3px;
    }

    .coloring-title .bottom-line::before,
    .coloring-title .bottom-line::after {
        width: 34px;
    }

    .coloring-subtitle {
        font-size: 15px;
        line-height: 1.45;
    }

    .coloring-button {
        width: 170px;
        min-height: 44px;
        font-size: 17px;
    }

    .coloring-card-section {
        padding: 28px 24px 36px;
    }

    .coloring-card {
        border-radius: 16px;
        padding: 18px;
    }

    .coloring-card img {
        height: 220px;
    }

    .coloring-card span {
        font-size: 18px;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
    }

    .carousel-arrow.left {
        left: -18px;
    }

    .carousel-arrow.right {
        right: -18px;
    }
}


/* ==========================
   MEMORY MATCH GAME SECTION
   ========================== */

.memory-match-section {
    width: 100%;
    margin: 0 0 150px;
    padding-top: clamp(32px, 5vw, 64px);
    padding-bottom: clamp(32px, 5vw, 64px);
    overflow: hidden;
    background:
        radial-gradient(circle at 70% 45%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.35) 28%, transparent 52%),
        radial-gradient(circle at 23% 45%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.25) 26%, transparent 50%),
        linear-gradient(180deg, #dff5ff 0%, #c8ecff 100%);
}

.memory-match-container {
    width: min(100% - 48px, 1600px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.memory-match-copy {
    display: block;
    width: 100%;
}

.memory-match-title-wrapper {
    width: 100%;
    max-width: none;
    text-align: center;
}

.memory-match-title-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    filter:
        drop-shadow(0 12px 28px rgba(0, 0, 0, 0.2))
        drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
}

.memory-match-play-button {
    position: relative;
    display: block;
    width: 60%;
    max-width: none;
    margin: 30px auto 0;
    animation: nudgeTowardGrid 1.4s ease-in-out infinite;
    cursor: default;
    filter:
        drop-shadow(0 12px 28px rgba(0, 0, 0, 0.2))
        drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
}

.memory-match-play-button img {
    display: block;
    width: 100%;
    height: auto;
}

.memory-match-play-button span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: clamp(20px, 2.2vw, 30px);
    font-weight: 900;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

.memory-match-game {
    position: relative;
    width: 100%;
    max-width: none;
    min-width: 0;
}

.memory-match-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(8px, 1.2vw, 18px);
    width: 100%;
    min-width: 0;
}

.memory-match-card {
    position: relative;
    aspect-ratio: 1 / 1;
    border: 0;
    background: transparent;
    cursor: pointer;
    perspective: 900px;
}

.memory-match-card-inner {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transition: transform 0.45s ease;
    border-radius: 22px;
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.2),
        0 4px 10px rgba(0, 0, 0, 0.08);
}

.memory-match-card.flipped .memory-match-card-inner,
.memory-match-card.matched .memory-match-card-inner {
    transform: rotateY(180deg);
}

.memory-match-card-face {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    backface-visibility: hidden;
}

.memory-match-card-back {
    background-image: url('/assets/homepage/images/matching-game-card-back-512.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.memory-match-card-front {
    padding: 0;
    border-radius: 12px;
    background: #ffffff;
    transform: rotateY(180deg);
}

.memory-match-card-front img {
    display: block;
    width: 94%;
    height: 94%;
    object-fit: contain;
    border-radius: 8px;
}

.memory-match-complete {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    padding: 32px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition:
        opacity 0.30s ease,
        transform 0.30s ease,
        visibility 0s linear 0.30s;
}

.memory-match-complete.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition:
        opacity 0.30s ease,
        transform 0.30s ease;
}

.memory-match-complete h2,
.memory-match-complete p,
.memory-match-complete-button {
    font-family: "Trebuchet MS", Arial, sans-serif;
}

.memory-match-complete h2 {
    margin-bottom: 10px;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.memory-match-complete p {
    margin-bottom: 22px;
    font-size: 21px;
    font-weight: 600;
}

.memory-match-complete-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 30px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(
        135deg,
        #4f48f5 0%,
        #7b35d9 14%,
        #b92abc 28%,
        #f20fa4 46%,
        #ff176f 62%,
        #ffd500 100%
    );
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
}

@keyframes nudgeTowardGrid {
    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(14px);
    }
}

@media (max-width: 1024px) {
    .memory-match-container {
        grid-template-columns: 1fr;
    }

    .memory-match-title-image {
        width: 70%;
    }

    .memory-match-play-button {
        display: none;
    }
}

@media (max-width: 768px) {
    .memory-match-section {
        margin-bottom: 80px;
    }

    .memory-match-container {
        width: calc(100% - 16px);
    }

    .memory-match-grid {
        gap: 10px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
