/* Base Styles */
body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  background: #fffaf9;
  color: #333;
  font-size: 16px;
}

html {
  scroll-behavior: smooth;
}

h1,
h2 {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 1.2rem 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.home-link {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: white;
  text-decoration: none;
  background-color: #7c57d2;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.home-link:hover {
  background-color: #6845b3;
}

.flex-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background-color: #5833a9;
  color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.flex-header h1 {
  margin: 0;
  font-size: 2rem;
}

/* Logo + Nav */
.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: #5833a9;
}

.logo span {
  font-weight: 600;
  color: #f47d7d;
}

nav a {
  margin: 0 1rem;
  text-decoration: none;
  color: #444;
  font-weight: 600;
}

/* Buttons */
button,
.btn,
.subscribe-section button {
  display: inline-block;
  background-color: #f675a8;
  color: white;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 2rem;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover,
.btn:hover,
.subscribe-section button:hover {
  background-color: #e05f92;
}

.subscribe {
  background: #fcd34d;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  border: none;
}

/* Hero Section */
.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: #dff0fc;
  padding: 2rem;
  position: relative;
}

.hero-text {
  text-align: center;
  max-width: 400px;
  margin: auto;
}

.hero h1 {
  font-size: 2.5rem;
  color: #5833a9;
}

.hero h1 span {
  color: #f47d7d;
}

.cta {
  background: #f47d7d;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
}

/* Hero Image */
.hero-image img {
  max-width: 300px;
  margin-top: 2rem;
}

.character-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}
.character-card {
  background: #fff;
  border-radius: 16px;
  padding: 1rem;
  width: 180px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
}
.character-card:hover {
  .character-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem auto;
    max-width: 1000px;
    padding: 0 1rem;
  }

  .character-card {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    text-align: center;
    width: 200px;
    transition:
      transform 0.3s ease,
      box-shadow 0.3s ease;
  }

  .character-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }

  /* Responsive */
  @media (max-width: 768px) {
    .character-card {
      width: 45%;
    }
  }

  @media (max-width: 480px) {
    .character-card {
      width: 90%;
    }
  }
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.character-info p {
  display: none;
  font-size: 0.9rem;
  color: #444;
  margin-top: 0.5rem;
}
.character-card.expanded .character-info p {
  display: block;
}
.character-filters {
  margin: 1rem 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.filter-btn {
  background: #ffdd59;
  border: none;
  padding: 6px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  color: #254e70;
}
.filter-btn:hover {
  background-color: #ffeaa7;
}

/* Caption / Audio */
.narrating-badge {
  display: none;
  font-size: 14px;
  color: #fff;
  background-color: #f47d7d;
  padding: 0.4em 0.8em;
  border-radius: 20px;
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
}

.caption {
  font-size: 16px;
  color: #444;
  text-align: center;
  margin-top: 12px;
  font-style: italic;
  opacity: 0;
  animation: fadeIn 1.2s ease-in-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Explore Feelings Buttons */
.emotion-btn {
  display: inline-block;
  padding: 1rem 1.5rem;
  border-radius: 2rem;
  font-weight: bold;
  text-decoration: none;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.emotion-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Shared styles moved outside media query */
.book-card {
  padding: 0.6rem;
  max-width: 95%;
}

.book-card p {
  font-size: 0.85rem;
}

.book-card img {
  height: 140px;
  width: auto;
  display: block;
  margin: 0 auto 0.4rem;
}

.book-card a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.bulletin-note {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s;
}

.bulletin-note:hover {
  transform: scale(1.03);
}

/* Mobile-specific layout tweaks */
@media screen and (max-width: 480px) {
  .book-grid {
    gap: 0.8rem;
  }
}
nav a.bulletin-link {
  color: #ff6b6b;
  font-weight: 700;
  animation: pulse 1.8s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.9;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@media (max-width: 600px) {
  #announcementBar button {
    top: 8px;
    right: 10px;
    font-size: 0.8rem;
    padding: 2px 6px;
    background-color: transparent;
    color: #254e70;
  }

  #announcementBar {
    padding-right: 2rem; /* Gives room for the button */
  }
}
.book-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.book-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  max-width: 320px;
  padding: 1rem;
  text-align: center;
}

.book-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
  object-fit: contain;
}

.book-info h4 {
  color: #254e70;
  margin: 0.5rem 0;
}

.book-info p {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #444;
  margin-bottom: 1rem;
}

.book-info a {
  color: #ff6b6b;
  text-decoration: none;
  font-weight: 600;
}

.book-info a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .book-card {
    max-width: 90%;
  }

  .book-grid {
    flex-direction: column;
    align-items: center;
  }
}
.book-card img:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}
.book-card:hover {
  background-color: #fff9f4;
}
.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  padding: 1rem 1.2rem;
  max-width: 300px;
  text-align: left;
}

.testimonial p {
  font-size: 0.95rem;
  color: #333;
  margin: 0.5rem 0;
}

.testimonial small {
  display: block;
  font-size: 0.85rem;
  color: #555;
  margin-top: 0.5rem;
}

@media (max-width: 600px) {
  .testimonial {
    max-width: 100%;
  }
}
.subscribe-form {
  margin-top: 1rem;
}

.subscribe-form input[type="email"] {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  margin: 0 0.5rem;
}

.subscribe-form button {
  padding: 10px 16px;
  background-color: #f675a8;
  color: white;
  border: none;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
}

.subscribe-form button:hover {
  background-color: #e05f92;
}

.social-icons {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-icons img {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}

.social-icons img:hover {
  transform: scale(1.1);
}

@media (max-width: 600px) {
  .subscribe-form {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .subscribe-form input[type="email"] {
    margin: 0.5rem 0;
    width: 80%;
  }
}
.book-club-box {
  background-color: #fff2e5;
  color: #ff6b6b;
  font-weight: bold;
  padding: 0.7rem 1.5rem;
  border-radius: 16px;
  font-size: 1.5rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  margin-top: 0.5rem;
  display: inline-block;
}
@media (max-width: 480px) {
  .book-club-box,
  .book-banner {
    font-size: 1.1rem;
    padding: 0.6rem 1.2rem;
  }
}
/* 🔔 Bouncy Bulletin Style */
.bouncy-bulletin {
  animation:
    bounceIn 1.5s ease-in-out 1,
    pulseBubble 4s ease-in-out infinite;
  background-color: #ffdd59;
  color: #254e70;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  margin: 1rem auto;
  max-width: 750px;
  font-size: 0.95rem;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease-in-out;

  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.bulletin-text {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
  line-height: 1.3;
}

.bouncy-bulletin span {
  color: #ff6b6b;
}

.bouncy-bulletin button {
  background: none;
  border: none;
  color: #6c5ce7;
  font-size: 0.85rem;
  font-weight: bold;
  cursor: pointer;
  padding-left: 0.5rem;
}

/* 🎈 Animations */
@keyframes bounceIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  60% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

@keyframes pulseBubble {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}
@media (max-width: 480px) {
  .bouncy-bulletin {
    flex-direction: column;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    gap: 0.3rem;
  }

  .bouncy-bulletin button {
    margin-top: 0.3rem;
    font-size: 0.8rem;
  }
}
.site-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.1;
  font-family: "Baloo 2", sans-serif;
}
#logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

#logo img {
  height: 32px;
}
/* 💛 Characters Section Heading */
.characters-heading {
  font-size: 2.2rem;
  color: #254e70;
  font-weight: 800;
  text-align: center;
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.characters-heading .emoji-wave {
  font-size: 1.8rem;
  margin-right: 0.4rem;
  display: inline-block;
  animation: waveHand 1.8s infinite;
  transform-origin: 70% 70%;
}

.characters-heading .highlight {
  color: #ff6b6b;
}

/* 👋 Subtle wave animation */
@keyframes waveHand {
  0% {
    transform: rotate(0deg);
  }
  15% {
    transform: rotate(14deg);
  }
  30% {
    transform: rotate(-8deg);
  }
  45% {
    transform: rotate(14deg);
  }
  60% {
    transform: rotate(-4deg);
  }
  75% {
    transform: rotate(10deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
@media (max-width: 480px) {
  .characters-heading {
    font-size: 1.6rem;
  }
}
/* 🌈 Divider Line */
.section-divider {
  width: 80px;
  height: 4px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #ff6b6b, #ace7ff);
  margin: 0.5rem auto 1rem;
}

/* ✨ Subtext Prompt */
.section-subtext {
  text-align: center;
  font-size: 1.05rem;
  color: #444;
  margin-bottom: 0.8rem;
  font-style: italic;
}
.mood-checkin {
  text-align: center;
  margin: 1.5rem auto;
  padding: 2rem 1rem;
  max-width: 700px;
}

.mood-checkin h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #254e70;
}

.mood-emojis {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.mood-emojis button {
  font-size: 2rem;
  background: #fff7d6;
  border: none;
  border-radius: 50%;
  padding: 0.8rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.mood-emojis button:hover {
  transform: scale(1.15);
  background: #ffdd59;
}

#mood-response {
  font-size: 1.1rem;
  color: #444;
  padding: 0.8rem 1.2rem;
  border-left: 4px solid #ff6b6b;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  display: inline-block;
  margin-top: 1rem;
}

.clear-mood-btn {
  margin-top: 0.6rem;
  background: none;
  border: none;
  color: #888;
  font-size: 0.9rem;
  cursor: pointer;
}
@keyframes fadeInBubble {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.mood-emojis button img {
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.mood-emojis button:hover img {
  transform: scale(1.2);
  filter: drop-shadow(0 0 10px rgba(255, 153, 0, 0.5));
}

.mood-emojis button:active img {
  transform: scale(1);
  filter: drop-shadow(0 0 6px rgba(255, 255, 0, 0.4));
}
#mood-check {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInMood 1.2s ease-out 0.5s forwards;
}

@keyframes fadeInMood {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.emotion-badge {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 1.2rem;
  background: #fff8dc;
  padding: 4px 6px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.character-card {
  position: relative; /* Required for absolute emoji badge */
}
.character-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 1rem;
  width: 180px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
}

.character-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.emoji {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.5rem;
  cursor: default;
}
.emotion-badge {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 1.4rem;
  cursor: pointer;
}

.mood-tooltip {
  position: absolute;
  background: #fff8dc;
  padding: 6px 10px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  font-size: 0.85rem;
  color: #444;
  z-index: 999;
}
.character-card {
  transition: background-color 0.4s ease;
}
.mood.active::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140%;
  height: 140%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 239, 118, 0.5) 20%,
    rgba(255, 239, 118, 0) 80%
  );
  filter: blur(8px);
  z-index: -1;
  pointer-events: none;
}
@keyframes glowPulse {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.mood.active {
  position: relative;
  z-index: 1;
}
.mood {
  position: relative;
  display: inline-block;
  border-radius: 50%;
  padding: 0.4rem;
  background-color: #fff6d6;
}
body {
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
  max-width: 100%;
}
.dismiss-btn {
  display: inline-block;
  overflow: visible;
}
#drawingCanvas {
  width: 100%;
  max-width: 500px;
  height: 400px;
  background-color: #fffbea;
  border: 1px solid #ccc;
  border-radius: 12px;
  touch-action: none;
}

.canvas-wrapper {
  text-align: center;
  margin: 2rem auto;
}

#clearBtn {
  margin-top: 1rem;
  padding: 0.7rem 1.5rem;
  background-color: #ff66b6;
  border: none;
  color: white;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}
@keyframes breathe {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.5);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
}
canvas {
  touch-action: none; /* Prevent scrolling during touch drawing */
}
select#moodSelect {
  padding: 0.4rem 0.6rem;
  border-radius: 12px;
  border: 1px solid #ccc;
  background-color: #fff;
  font-size: 1rem;
  margin-right: 0.5rem;
}
#storyOutput {
  animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.sound-player button {
  background: #ff66b6;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.sound-player button:hover {
  background: #e455a1;
}

@media (max-width: 600px) {
  .sound-player button {
    width: 100%;
  }
}
.sound-btn {
  margin: 0.5rem;
  background: #ff66b6;
  color: white;
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.sound-btn:hover {
  background: #ff4fa1;
}
/* === NAVIGATION === */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  padding: 1rem 1.2rem;
  border-bottom: 2px solid #eee;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.navbar-menu {
  display: flex;
  gap: 1rem;
}

.navbar-menu a {
  text-decoration: none;
  color: #254e70;
  font-weight: 500;
}

/* Hamburger Button */
.hamburger {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #254e70;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
}

/* Mobile Nav Styles */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: #ffffff;
  padding: 1rem;
  border-top: 1px solid #eee;
  width: 100%;
}

.mobile-nav a {
  padding: 0.5rem 0;
  text-decoration: none;
  color: #254e70;
  overflow-x: auto;
  white-space: nowrap;
}

.mobile-nav.show {
  display: flex;
}

/* Show hamburger + hide nav on small screens */
@media (max-width: 768px) {
  .navbar-menu {
    display: none;
  }

  .hamburger {
    display: block;
  }
}
.language-switch {
  text-align: right;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  background: #f9f9f9;
  border-bottom: 1px solid #eee;
}

.language-switch a {
  margin: 0 0.4rem;
  text-decoration: none;
  color: #254e70;
  font-weight: 600;
  transition: color 0.3s ease;
}

.language-switch a:hover {
  color: #ff6b6b;
}
@media (max-width: 768px) {
  .language-switch {
    display: none;
  }
}
#language-select {
  margin: 0.5rem 1rem;
  padding: 0.4rem 0.6rem;
  font-size: 0.95rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: #fff;
  cursor: pointer;
}
@media (max-width: 600px) {
  section p {
    font-size: 1rem;
    padding: 0 1rem;
  }

  section img {
    width: 120px;
    height: 120px;
  }
}
@media (max-width: 480px) {
  h2 {
    font-size: 1.5rem;
  }
  .worksheet-item h3 {
    font-size: 1rem;
  }
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
  }
}
.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body {
  padding-top: 80px; /* Match header height */
}

.page-content {
  padding: 1rem;
}

/* ===== Home page refinement ===== */
.home-start {
  width: min(1100px, 92vw);
  margin: 1.25rem auto 1.75rem;
  padding: 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(37, 78, 112, 0.08);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(37, 78, 112, 0.09);
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: #ff6b6b;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-start__copy h2 {
  margin: 0;
  color: #254e70;
  font-family: "Nunito", sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.home-start__copy p:last-child {
  margin: 0.65rem 0 0;
  max-width: 62ch;
  color: #4c6172;
  line-height: 1.65;
}

.home-start__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 0.65rem;
}

.home-start__actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: #f5fbff;
  border: 1px solid #dceef6;
  color: #254e70;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background-color 0.16s ease;
}

.home-start__actions a:hover,
.home-start__actions a:focus-visible {
  background: #fff7e6;
  box-shadow: 0 8px 18px rgba(255, 201, 74, 0.2);
  transform: translateY(-1px);
}

.mood-check-strip {
  width: min(920px, 92vw);
  margin: 0 auto 2rem;
  padding: 1.25rem 1rem 1.4rem;
  background: #ffffff;
  border: 1px solid rgba(37, 78, 112, 0.08);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(37, 78, 112, 0.08);
  text-align: center;
}

.mood-check-strip .mood-heading {
  margin: 0;
  color: #254e70;
  font-family: "Nunito", sans-serif;
}

.mood-helper {
  margin: 0.35rem auto 1rem;
  color: #5a6d7a;
  max-width: 52ch;
  line-height: 1.5;
}

.mood-check-strip .mood-row {
  margin-top: 0.75rem;
}

.mood-check-strip .mood {
  width: 92px;
  height: 92px;
  box-shadow: 0 6px 14px rgba(37, 78, 112, 0.08);
  border: 1px solid rgba(255, 221, 89, 0.5);
}

.mood-check-strip .mood-img {
  width: 74px;
  height: 74px;
}

#mood-response-wrapper {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

#mood-response {
  background: #fff7e6;
  border: 1px solid #ffe0a3;
  border-radius: 14px;
  padding: 0.8rem 1rem;
  line-height: 1.5;
}

.ny-banner {
  padding-top: 1rem;
}

.carousel-container {
  border-bottom: 1px solid rgba(37, 78, 112, 0.08);
}

@media (max-width: 820px) {
  .home-start {
    grid-template-columns: 1fr;
  }

  .home-start__actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .home-start__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-start,
  .mood-check-strip {
    width: min(94vw, 440px);
    border-radius: 14px;
  }

  .mood-check-strip .mood {
    width: 78px;
    height: 78px;
  }

  .mood-check-strip .mood-img {
    width: 62px;
    height: 62px;
  }
}

/* ===== Vooks-style sliding book shelf ===== */
.book-rail-section {
  background: #fff;
  padding: 2.5rem 0 3rem;
  overflow: hidden;
}

.book-rail-section > h2 {
  width: min(1120px, 92vw);
  margin: 0 auto 0.75rem;
  color: #254e70;
  font-family: "Nunito", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.12;
  text-align: left;
}

.book-rail-header {
  width: min(1120px, 92vw);
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.book-rail-subtitle {
  margin: 0.15rem 0 0;
  max-width: 62ch;
  color: #526a7d;
  line-height: 1.55;
}

.book-rail-controls {
  display: flex;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.book-rail-btn {
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(37, 78, 112, 0.12);
  border-radius: 50%;
  background: #fff;
  color: #254e70;
  box-shadow: 0 8px 18px rgba(37, 78, 112, 0.12);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}

.book-rail-btn:hover,
.book-rail-btn:focus-visible {
  background: #fff7e6;
  box-shadow: 0 10px 24px rgba(255, 201, 74, 0.22);
  transform: translateY(-1px);
}

.book-rail-window {
  width: min(1180px, 100vw);
  margin: 0 auto;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: none;
  scroll-padding-left: 4vw;
  scroll-behavior: auto;
  scrollbar-width: none;
  padding: 0 4vw 1rem;
}

.book-rail-window.is-manual {
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
}

.book-rail-window::-webkit-scrollbar {
  display: none;
}

#emotional-literacy .book-grid.book-rail-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  gap: 1rem !important;
  max-width: none !important;
  width: max-content !important;
  margin: 0 !important;
  padding: 0.25rem 0 1rem !important;
  align-items: stretch !important;
}

#emotional-literacy .book-card {
  width: clamp(230px, 24vw, 300px) !important;
  max-width: none !important;
  flex: 0 0 clamp(230px, 24vw, 300px);
  margin: 0 !important;
  scroll-snap-align: start;
  border: 1px solid rgba(37, 78, 112, 0.08);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(37, 78, 112, 0.09);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

#emotional-literacy .book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(37, 78, 112, 0.14);
}

#emotional-literacy .book-card img {
  height: 210px;
  width: 100%;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
}

#emotional-literacy .book-info h4 {
  color: #254e70;
  font-size: 1rem;
  line-height: 1.25;
}

#emotional-literacy .book-info p {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#emotional-literacy .book-info a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 0.35rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  background: #ff6b6b;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

#emotional-literacy .book-info a:hover {
  background: #e95b5b;
  text-decoration: none;
}

.book-rail-window.is-paused .book-card {
  animation-play-state: paused;
}

@media (max-width: 720px) {
  .book-rail-section {
    padding: 2rem 0 2.5rem;
  }

  .book-rail-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .book-rail-controls {
    align-self: flex-end;
  }

  #emotional-literacy .book-card {
    width: min(78vw, 300px) !important;
    flex-basis: min(78vw, 300px);
  }

  #emotional-literacy .book-card img {
    height: 190px;
  }
}

/* ===== Refined feelings finder ===== */
.feelings-section {
  background: linear-gradient(180deg, #fff7e8 0%, #ffffff 100%);
  padding: 3rem 1rem;
  text-align: center;
}

.feelings-section > h2 {
  width: min(1040px, 92vw);
  margin: 0 auto 1.4rem !important;
  color: #254e70;
  font-family: "Nunito", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.7rem) !important;
  line-height: 1.1;
}

.feelings-section > h2::after {
  content: "Choose one feeling to begin. Each path opens a friendly page with language, stories, and simple support.";
  display: block;
  max-width: 680px;
  margin: 0.65rem auto 0;
  color: #536a7a;
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
}

.feelings-grid {
  width: min(1040px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid rgba(37, 78, 112, 0.08);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(37, 78, 112, 0.09);
}

.feelings-grid .emotion-btn {
  min-height: 120px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.75rem !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 18px rgba(37, 78, 112, 0.08);
  font-weight: 900;
  line-height: 1.2;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.feelings-grid .emotion-btn:hover,
.feelings-grid .emotion-btn:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(37, 78, 112, 0.14);
  filter: saturate(1.05);
}

.feelings-grid > div {
  grid-column: span 5;
  margin: 0 !important;
  display: flex;
  justify-content: center;
}

.feelings-grid > div .emotion-btn,
.feelings-grid > div a[href="interactive-tools.html"] {
  min-height: 0;
  width: min(100%, 360px);
  border-radius: 999px !important;
  box-shadow: 0 8px 18px rgba(37, 78, 112, 0.08) !important;
}

.feelings-grid > div a[href="interactive-tools.html"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1.2rem !important;
}

@media (max-width: 860px) {
  .feelings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feelings-grid > div {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .feelings-section {
    padding: 2.25rem 0.75rem;
  }

  .feelings-grid {
    width: min(94vw, 420px);
    gap: 0.65rem;
    padding: 0.75rem;
  }

  .feelings-grid .emotion-btn {
    min-height: 96px;
    font-size: 0.95rem !important;
  }
}

/* ===== Refined worksheet downloads ===== */
.worksheet-section {
  padding: 3rem 1rem;
  background: linear-gradient(180deg, #fff2e5 0%, #fff9f2 100%);
  text-align: center;
}

.worksheet-section > h2 {
  margin: 0 0 0.5rem !important;
  color: #254e70 !important;
  font-family: "Nunito", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem) !important;
}

.worksheet-section__sub {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

.worksheet-grid {
  width: min(1040px, 92vw);
  margin: 0 auto;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem !important;
}

.worksheet-section .worksheet-card {
  max-width: none;
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(37, 78, 112, 0.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(37, 78, 112, 0.09);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.worksheet-section .card-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: #fff8ef;
  border: 1px solid rgba(37, 78, 112, 0.06);
}

.worksheet-section .worksheet-card h3 {
  min-height: 2.8em;
}

.worksheet-section .worksheet-card p {
  flex: 1;
  line-height: 1.45;
}

.worksheet-section .worksheet-card .btn {
  border-radius: 999px !important;
  min-height: 42px;
}

@media (max-width: 860px) {
  .worksheet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .worksheet-grid {
    width: min(94vw, 420px);
    grid-template-columns: 1fr;
  }
}

/* ===== Lower page trust, subscribe, creator, contact ===== */
.trust-section {
  background: linear-gradient(180deg, #e8f8ff 0%, #f7fcff 100%) !important;
  padding: 3rem 1rem !important;
}

.trust-section > h2,
.subscribe-section > h2 {
  font-family: "Nunito", sans-serif;
  color: #254e70 !important;
  font-size: clamp(1.7rem, 3vw, 2.45rem) !important;
  margin: 0 0 1.25rem !important;
}

.trust-section .testimonial-grid {
  width: min(1040px, 92vw);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 auto;
}

.trust-section .testimonial {
  max-width: none;
  background: #fff;
  border: 1px solid rgba(37, 78, 112, 0.08);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(37, 78, 112, 0.08);
  padding: 1.25rem;
}

.trust-section .testimonial p {
  line-height: 1.55;
}

.subscribe-section {
  width: min(900px, 92vw);
  margin: 2rem auto 0;
  padding: 1.5rem !important;
  background: #fff !important;
  border: 1px solid rgba(37, 78, 112, 0.08);
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(37, 78, 112, 0.08);
}

.subscribe-form {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.subscribe-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
  color: #254e70;
  font-weight: 800;
}

.subscribe-form input[type="email"] {
  min-width: min(70vw, 320px);
  min-height: 44px;
  margin: 0;
}

.subscribe-form button {
  min-height: 44px;
  border-radius: 999px;
}

#why-this-matters {
  background: linear-gradient(180deg, #fff7e8 0%, #ffeaf0 100%) !important;
  padding: 3.25rem 1rem !important;
}

#why-this-matters > div {
  max-width: 860px !important;
}

#why-this-matters h2 {
  color: #254e70 !important;
  font-family: "Nunito", sans-serif !important;
  font-size: clamp(1.8rem, 3vw, 2.55rem) !important;
}

#why-this-matters p {
  color: #36536a !important;
}

.creator-section {
  background: #ffffff !important;
  padding: 2.5rem 1rem !important;
}

#about-teaser {
  width: min(900px, 92vw);
  margin: 0 auto;
  background: #f8fcff;
  border: 1px solid rgba(37, 78, 112, 0.08);
  border-radius: 20px;
  box-shadow: 0 16px 34px rgba(37, 78, 112, 0.09);
  padding: 2rem 1rem !important;
}

.contact-section {
  background: #f7fafc !important;
  padding: 3rem 1rem !important;
}

.contact-section h2 {
  color: #254e70 !important;
  font-family: "Nunito", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem) !important;
}

.contact-section form {
  background: #fff;
  padding: 1rem;
  border: 1px solid rgba(37, 78, 112, 0.08);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(37, 78, 112, 0.08);
}

.contact-section input,
.contact-section textarea {
  border-radius: 12px !important;
  border: 1px solid #d7e4ec !important;
  font: inherit;
}

.contact-section button {
  background: #254e70 !important;
}

.quick-logout {
  display: block !important;
  width: max-content;
}

.site-footer {
  margin-top: 0 !important;
  padding: 1.25rem 1rem !important;
  background: #254e70;
  color: #fff !important;
}

@media (max-width: 760px) {
  .trust-section .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .subscribe-form {
    align-items: stretch;
  }

  .subscribe-form label,
  .subscribe-form button {
    width: 100%;
  }

  .subscribe-form input[type="email"] {
    width: 100%;
    min-width: 0;
  }
}

</style>

/* ===== Extracted from home.html internal style block ===== */
body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: #333;
  background: #dff6ff;
}

h1,
h2,
h3,
.hero-title,
.character-name {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 10px 20px;
}

#logo {
  font-size: 1.5em;
  line-height: 1.2;
}
nav a {
  margin: 0 10px;
  text-decoration: none;
  color: #333;
  font-size: 0.9em;
}

#announcementBar {
  background: #ffeb99;
  color: #333;
  padding: 10px 20px;
  border-radius: 4px;
  position: relative;
  margin: 10px;
  font-size: 16px;
}
/* Style for close button (anchor or button) */
#announcementBar a#closeAnnouncement,
#announcementBar button#closeAnnouncement {
  text-decoration: none;
  color: #333;
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  font-weight: bold;
  background: none;
  border: none;
  cursor: pointer;
}
main {
  text-align: center;
  padding: 2em 1em;
}
.hero-title {
  font-size: 2em;
  margin: 0.5em 0 0.2em;
}
.hero-title span:first-child {
  color: #8e44ad;
}
.hero-title span:last-child {
  color: #e84393;
}
.tagline {
  font-size: 1.2em;
  margin-bottom: 1em;
}
.cta-button {
  background: #e84393;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  display: inline-block;
  font-weight: bold;
}
.cta-button:hover {
  opacity: 0.9;
}
audio {
  display: block;
  margin: 1em auto;
  outline: none;
}
audio + p {
  font-size: 0.9em;
  color: #555;
  font-style: italic;
}
/* Mobile spacing fixes */
@media (max-width: 600px) {
  #announcementBar {
    padding-right: 60px;
  }
  #announcementBar a#closeAnnouncement,
  #announcementBar button#closeAnnouncement {
    font-size: 14px;
    top: 10px;
    transform: none;
  }
}
.character-card {
  transition: background-color 0.4s ease;
}
.character-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem auto;
  max-width: 1100px;
  padding: 0 1rem;
}

.character-card {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  padding: 1rem;
  text-align: center;
  width: 160px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
}

.character-card img {
  width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.character-card:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.character-info p {
  display: none;
  font-size: 0.85rem;
  color: #444;
  margin-top: 0.5rem;
  line-height: 1.3;
}

.character-card.expanded .character-info p {
  display: block;
}

.character-name {
  font-weight: 800;
  color: #254e70;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.character-filters {
  margin: 1rem 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  background: #ffdd59;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  color: #254e70;
  font-size: 0.9rem;
}

.filter-btn:hover {
  background-color: #ffeaa7;
}

.character-filters .filter-btn[aria-pressed="true"] {
  background: #254e70;
  color: #fff;
  box-shadow: 0 5px 12px rgba(37, 78, 112, 0.2);
}

/* 🔍 Responsive Tweaks */
@media (max-width: 768px) {
  .character-card {
    width: 130px;
  }
  .character-card img {
    max-height: 100px;
  }
  .character-name {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .character-card {
    width: 100px;
    padding: 0.75rem;
  }
  .character-card img {
    max-height: 90px;
  }
  .character-name {
    font-size: 0.85rem;
  }
  .character-info p {
    font-size: 0.75rem;
  }
}
.character-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 1rem;
  width: 180px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
}

.character-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.emoji {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.5rem;
  cursor: default;
}
.emotion-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
.mood.active {
  box-shadow: 0 0 0 6px rgba(255, 235, 59, 0.4); /* soft yellow glow */
  border-radius: 50%;
  transition: box-shadow 0.3s ease;
}
.mood.active::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140%;
  height: 140%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 239, 118, 0.5) 20%,
    rgba(255, 239, 118, 0) 80%
  );
  filter: blur(8px);
  z-index: -1;
  pointer-events: none;
}
.clear-btn {
  background-color: #ddd;
  color: #333;
}

.clear-btn:hover {
  background-color: #ccc;
}
.language-switcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #fff;
  border-radius: 12px;
  padding: 8px 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  gap: 10px;
  align-items: center;
}

.language-switcher img {
  width: 24px;
  height: 24px;
  cursor: pointer;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.language-switcher img:hover {
  transform: scale(1.1);
}
.worksheet-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 260px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
}

.worksheet-card:hover,
.worksheet-card:active {
  transform: scale(1.04);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

.floating-image-container {
  display: inline-block;
  animation: float 5s ease-in-out infinite;
}

.why-image {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.why-image:hover {
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .why-image {
    max-width: 90%;
  }

  #why-this-matters h2 {
    font-size: 1.6rem;
  }

  #why-this-matters p {
    font-size: 1rem;
  }
}
.navbar-menu a,
.mobile-nav a {
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.navbar-menu a:hover,
.mobile-nav a:hover {
  color: #ff6b6b;
  text-shadow:
    0 0 6px rgba(255, 107, 107, 0.7),
    0 0 10px rgba(255, 107, 107, 0.5);
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.mood-heading {
  color: #ff6b6b;
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.mood-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.mood-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff6d6;
  transition: transform 0.25s ease;
}

.mood-img:hover {
  transform: scale(1.15) rotate(2deg);
}
.carousel-container {
  width: 100%;
  height: 500px;
  overflow: hidden;
  position: relative;
}

.carousel {
  display: flex;
  transition: transform 1s ease-in-out;
  width: 600%; /* 6 slides */
  height: 100%;
}

.carousel-slide {
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
  background-size: cover;
  background-position: center;
}

/* ✅ Replace these with your own Canva banners */
.banner1 {
  background-image: url("images/banner1.webp");
}
.banner2 {
  background-image: url("images/banner2.webp");
}
.banner3 {
  background-image: url("images/banner3.webp");
}
.banner4 {
  background-image: url("images/banner4.webp");
}
.banner5 {
  background-image: url("images/banner5.webp");
}
.banner6 {
  background-image: url("images/banner6.webp");
}

.carousel-dots {
  position: absolute;
  bottom: 15px;
  width: 100%;
  text-align: center;
}

.carousel-dots .dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: #ccc;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
}

.carousel-dots .dot.active {
  background-color: #ff6b6b;
}
@media (max-width: 768px) {
  .carousel-container {
    height: 240px;
  }

  .carousel {
    height: 100%;
  }

  .carousel-slide {
    height: 90%;
    background-size: contain; /* fits image fully */
    background-repeat: no-repeat;
    background-position: center;
  }
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  display: none;
}

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

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

@media (min-width: 769px) {
  .carousel-arrow {
    display: block;
  }
}
/* === Off-canvas mobile nav (ADD below your existing CSS) === */
.welcome-audio {
  width: min(1100px, 92vw);
  margin: 22px auto 10px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  padding: 14px 16px;
}

.welcome-audio-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.welcome-audio-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
  flex: 1;
}

.welcome-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff3f6;
  border: 1px solid rgba(255, 107, 107, 0.25);
  font-size: 20px;
  flex: 0 0 auto;
}

.welcome-audio-text .welcome-title {
  font-weight: 800;
  color: #254e70;
  line-height: 1.1;
  font-size: 14px;
  letter-spacing: 0.2px;
}

.welcome-audio-text .welcome-subtitle {
  font-weight: 800;
  color: #333;
  margin-top: 2px;
  font-size: 13px;
}

.welcome-helper {
  margin-top: 4px;
  font-size: 12px;
  color: #555;
}

.welcome-audio-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.welcome-btn {
  border: none;
  background: #254e70;
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
  white-space: nowrap;
}
.welcome-btn:hover {
  transform: translateY(-1px);
}
.welcome-btn:active {
  transform: translateY(0px);
  opacity: 0.9;
}

.welcome-btn.is-on {
  background: #1f9d5a;
}

.welcome-link {
  color: #ff6b6b;
  font-weight: 800;
  text-decoration: none;
  padding: 10px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.welcome-link:hover {
  background: rgba(255, 107, 107, 0.1);
  text-decoration: underline;
}

/* Mobile polish */
@media (max-width: 520px) {
  .welcome-audio {
    padding: 12px 12px;
  }
  .welcome-audio-right {
    width: 100%;
    justify-content: space-between;
  }
  .welcome-btn {
    flex: 1;
    text-align: center;
  }
  .welcome-link {
    flex: 0 0 auto;
  }
}

/* Backdrop behind the slide-in menu */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9998;
}
.nav-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* Slide-in panel */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(84vw, 360px);
  height: 100dvh;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 9999;
  padding: 1rem;
  border-radius: 16px 0 0 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
}
.mobile-nav.open {
  transform: translateX(0);
}

/* Lock page scroll when menu is open */
.body-lock {
  overflow: hidden;
}

/* Simple hamburger visibility (hide on desktop) */
@media (min-width: 769px) {
  .hamburger {
    display: none;
  }
}

/* Optional: tidy link tap targets inside the panel */
.mobile-nav a {
  padding: 1rem 0;
  text-decoration: none;
  color: #333;
  font-weight: 600;
}
/* The circle background */
.mood {
  width: 100px; /* your existing size */
  height: 100px;
  border-radius: 50%;
  background: #fff6d6;
  display: inline-flex; /* centers child */
  align-items: center;
  justify-content: center;
  overflow: hidden; /* crop video to circle */
}

/* The animated icon itself */
.mood-anim {
  width: 80px; /* icon size inside circle */
  height: 80px;
  display: block;
  border-radius: 50%;
  object-fit: cover; /* fill nicely */
}
.card-thumb {
  width: 100%;
  aspect-ratio: 4 / 3; /* Adjust to fit your design */
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.card-thumb > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff; /* fills the gaps around the image */
  display: block;
}
/* ===== HLM Resources (compact two-column) ===== */
:root {
  --hlm-navy: #254e70;
  --hlm-coral: #ff6b6b;
  --ta-green: #24b159; /* up/down button color */
}

/* Section + header */
.hlm-res {
  background:
    radial-gradient(ellipse 80% 60% at 60% 20%, rgba(175, 109, 255, 0.18), transparent 65%),
    radial-gradient(ellipse 70% 60% at 20% 80%, rgba(255, 100, 180, 0.16), transparent 65%),
    radial-gradient(ellipse 65% 40% at 50% 60%, rgba(120, 190, 255, 0.2), transparent 68%),
    linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
  padding: 2.5rem 1rem;
}
.hlm-res__header {
  max-width: 1100px;
  margin: 0 auto 1rem;
  padding: 0 1rem;
}
.hlm-res__header h2 {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  color: var(--hlm-navy);
  margin: 0 0 0.25rem;
}
.hlm-res__sub {
  color: #476882;
  margin: 0.25rem 0 0;
}

/* === GRID: LEFT intro (wider) | RIGHT panel (narrower) === */
.hlm-res__grid {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: minmax(420px, 560px) minmax(340px, 440px); /* <-- narrow panel */
  gap: 40px;
  align-items: start;
}
@media (max-width: 980px) {
  .hlm-res__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* LEFT column (intro + visual) */
.hlm-res__intro h2 {
  font-family: "Nunito", sans-serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 1.6vw + 1.2rem, 2.6rem);
  color: #0d0a8f;
  margin: 0 0 0.5rem;
}
.hlm-res__intro p {
  color: #243a59;
  line-height: 1.7;
  font-size: 1.05rem;
  margin: 0 0 1.2rem;
  max-width: 46ch;
}
.hlm-res__note {
  font-size: 0.92rem;
  color: #64748b;
  margin: 0.75rem 0 0;
}
.hlm-res__art {
  width: min(420px, 92%);
  height: auto;
  display: block;
  border-radius: 12px;
}

/* Optional legacy aside/chips/cta (kept so nothing breaks if used elsewhere) */
.hlm-res__aside {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.hlm-res__aside h3 {
  margin: 0.25rem 0 0.5rem;
  color: var(--hlm-navy);
  font-family: "Nunito", sans-serif;
}
.hlm-res__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}
.hlm-chip {
  display: inline-block;
  background: #fff0b3;
  color: var(--hlm-navy);
  font-weight: 800;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
}
.hlm-res__cta {
  display: inline-block;
  background: var(--hlm-coral);
  color: #fff;
  text-decoration: none;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  font-weight: 800;
}

/* ===== Topic panel (narrow cobalt) ===== */
.hlm-topic-panel {
  position: relative;
  width: 100%;
  height: 520px;
  background:
    radial-gradient(ellipse 80% 60% at 5% 40%, rgba(175, 109, 255, 0.48), transparent 67%),
    radial-gradient(ellipse 70% 60% at 45% 45%, rgba(255, 100, 180, 0.41), transparent 67%),
    radial-gradient(ellipse 62% 52% at 83% 76%, rgba(255, 235, 170, 0.44), transparent 63%),
    radial-gradient(ellipse 60% 48% at 75% 20%, rgba(120, 190, 255, 0.36), transparent 66%),
    linear-gradient(45deg, #254e70 0%, #426f91 100%);
  color: #fff; /* keep your brand navy */
  border-radius: 28px;
  box-shadow: 0 16px 44px rgba(16, 31, 53, 0.25);
  padding: 64px 20px;
  overflow: hidden;
}
.hlm-tp__heading {
  position: absolute;
  right: 22px;
  top: 18px;
  color: #dfe8ef;
  font-weight: 800;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Rail + thumb re-aligned for narrow panel */
.hlm-tp__track {
  position: absolute;
  left: 52px;
  top: 64px;
  bottom: 64px;
  width: 8px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.22),
    rgba(255, 255, 255, 0.12)
  );
  border-radius: 10px;
}
.hlm-tp__thumb {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 80px;
  min-height: 42px;
  background: #fff;
  border-radius: 10px;
  opacity: 0.98;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transform: translateY(0);
  transition:
    transform 0.08s linear,
    height 0.12s ease;
}

/* Up/Down buttons (green) */
.hlm-tp__nav {
  position: absolute;
  left: 36px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: var(--ta-green);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
  user-select: none;
}
.hlm-tp__nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}
.hlm-tp__up {
  top: 16px;
}
.hlm-tp__down {
  bottom: 16px;
}

/* List + search sized for narrow panel */
.hlm-tp__list {
  list-style: none;
  margin: 0;
  padding: 0 12px 0 96px;
  height: 100%;
  overflow: auto;
  scroll-behavior: smooth;
}
.hlm-tp__list::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.hlm-tp__list a {
  display: block;
  padding: 14px 0;
  border-radius: 12px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.2px;
  text-decoration: none;
  font-size: clamp(1.15rem, 1vw + 0.9rem, 1.8rem);
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}
.hlm-tp__list a:hover,
.hlm-tp__list a:focus {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  transform: translateX(4px);
}
.hlm-tp__list a:active {
  background: rgba(255, 255, 255, 0.18);
}

.hlm-tp__search {
  margin: 10px 18px 10px 96px;
}
.hlm-tp__search input {
  width: 100%;
  max-width: 440px;
  border: 0;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  outline: 2px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 700;
}
.hlm-tp__search input::placeholder {
  color: #e6eef5;
  opacity: 0.85;
}

@media (max-width: 520px) {
  .hlm-topic-panel {
    height: 500px;
    padding: 56px 16px;
  }
  .hlm-tp__track {
    left: 44px;
    top: 56px;
    bottom: 56px;
  }
  .hlm-tp__nav {
    left: 30px;
  }
}
/* HARD CLAMP: keep the cobalt panel narrow and right-aligned */
.hlm-topic-panel {
  width: auto !important;
  max-width: 440px !important; /* <- adjust to taste (e.g., 420px) */
  margin-left: auto !important; /* push panel to the right */
  margin-right: 0 !important;
  height: 520px; /* keep your height */
  border-radius: 28px;
}

/* Rail & content offsets sized for the narrower panel */
.hlm-tp__track {
  left: 52px !important;
  top: 64px;
  bottom: 64px;
  width: 8px;
}
.hlm-tp__nav {
  left: 36px !important;
  width: 40px;
  height: 40px;
  border-radius: 12px;
}
.hlm-tp__up {
  top: 16px;
}
.hlm-tp__down {
  bottom: 16px;
}
.hlm-tp__search {
  margin: 10px 18px 10px 96px !important;
}
.hlm-tp__list {
  padding: 0 12px 0 96px !important;
}
.hlm-tp__list a {
  font-size: clamp(1.15rem, 1vw + 0.9rem, 1.8rem);
}

/* Mobile can go full width */
@media (max-width: 980px) {
  .hlm-topic-panel {
    max-width: none !important;
    margin-left: 0 !important;
  }
  .hlm-res__art-wrap {
    margin: 0 auto;
  } /* optional */
}

/* ===== HLM Resources: minor desktop refinements ===== */
@media (min-width: 981px) {
  /* make panel a touch slimmer */
  .hlm-topic-panel {
    max-width: 420px !important;
  }

  /* slightly smaller list type + tighter leading */
  .hlm-tp__list a {
    font-size: clamp(1.05rem, 0.8vw + 0.9rem, 1.6rem);
    line-height: 1.25;
  }

  /* a little more breathing room in the grid */
  .hlm-res__grid {
    grid-template-columns: minmax(460px, 560px) minmax(320px, 420px);
    gap: 32px;
  }
}

/* Image styling */
.hlm-res__art {
  width: min(420px, 92%);
  height: auto;
  display: block;
  border-radius: 12px;
}

/* Picture wrapper (only if you added the class to <picture>) */
.hlm-res__art-wrap {
  display: block;
  max-width: 420px;
  width: 92%;
}
.hlm-res__note {
  margin: 0.75rem 0 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}
.hlm-res__note--callout {
  color: #7a5900; /* readable on light bg */
  background: #fff7e6;
  border: 1px solid #ffd27a;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
}
.hlm-res__note--callout strong {
  color: #5a3f00;
  font-weight: 800;
}
/* ✅ FIX: Tight, centered book grid (no huge empty gaps) */
#emotional-literacy .book-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(220px, 260px)) !important;
  justify-content: center !important; /* centers the whole grid */
  gap: 22px !important;
  max-width: 1180px !important; /* prevents stretching */
  margin: 0 auto !important;
  padding: 0 16px !important;
  align-items: start !important;
}

/* ✅ Cards should fill their grid column (no auto-centering inside a giant cell) */
#emotional-literacy .book-card {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

/* ✅ Responsive: 3 / 2 / 1 columns */
@media (max-width: 1100px) {
  #emotional-literacy .book-grid {
    grid-template-columns: repeat(3, minmax(220px, 260px)) !important;
  }
}
@media (max-width: 820px) {
  #emotional-literacy .book-grid {
    grid-template-columns: repeat(2, minmax(220px, 260px)) !important;
  }
}
@media (max-width: 520px) {
  #emotional-literacy .book-grid {
    grid-template-columns: 1fr !important;
  }
}
/* 💛 Welcome Banner */
.ny-banner {
  padding: 12px 14px;
  background: #ffffff;
}

.ny-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 18px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 14px;

  background: linear-gradient(
    90deg,
    rgba(255, 107, 107, 0.18),
    rgba(37, 78, 112, 0.15),
    rgba(255, 221, 89, 0.2)
  );

  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.ny-emoji {
  font-size: 1.6rem;
}

.ny-title {
  font-weight: 900;
  color: #254e70;
  font-size: 1.05rem;
}

.ny-sub {
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0.85;
  margin-top: 4px;
}

@media (max-width: 720px) {
  .ny-banner-inner {
    padding: 12px 14px;
  }
  .ny-title {
    font-size: 1rem;
  }
  .ny-sub {
    font-size: 0.85rem;
  }
}
.ny-banner {
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.ny-banner.hide {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}
/* =========================================================
   START HERE / NEXT STEP – FINAL (HOVER + CLICK + TOUCH)
   Replace your entire Next Step CSS with this block
   ========================================================= */

/* Section shell */
.next-step {
  max-width: 980px;
  margin: 1.75rem auto 0;
  padding: 1.2rem 1rem 1.4rem;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Title + subtitle */
.next-step__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #222;
  text-align: center;
}

.next-step__sub {
  margin: 0.35rem 0 1rem;
  text-align: center;
  color: #555;
}

/* Grid */
.next-step__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

/* =========================================================
   CARD – works for BOTH <button> and <a>
   ========================================================= */
.next-step__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;

  padding: 0.95rem 0.75rem;
  border-radius: 16px;

  background: #fff !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  text-decoration: none;

  cursor: pointer;
  user-select: none;

  /* normalize button defaults */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* remove default focus outline (we add our own) */
  outline: none;

  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease;
}

/* Normalize native button/link differences */
button.next-step__card {
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: center;

  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  background: #fff !important;

  padding: 0.95rem 0.75rem; /* ensure same as <a> */
}

a.next-step__card {
  color: inherit;
}

/* ✅ HOVER (mouse) — highlight ALL cards */
.next-step__card:hover {
  background: #fff7e6 !important;
  border-color: rgba(255, 201, 74, 0.95) !important;
  box-shadow: 0 12px 24px rgba(255, 201, 74, 0.22) !important;
  transform: translateY(-2px);
}

/* ✅ KEYBOARD FOCUS (tab users) */
.next-step__card:focus-visible {
  background: #fff7e6 !important;
  border-color: rgba(255, 201, 74, 0.95) !important;
  box-shadow:
    0 0 0 3px rgba(255, 201, 74, 0.35),
    0 12px 24px rgba(255, 201, 74, 0.2) !important;
  transform: translateY(-2px);
}

/* ✅ CLICK / TAP (touch + mouse down) */
.next-step__card:active {
  background: #ffeab8 !important;
  border-color: rgba(255, 201, 74, 1) !important;
  box-shadow: 0 6px 14px rgba(255, 201, 74, 0.22) !important;
  transform: translateY(0);
}

/* Labels */
.next-step__label {
  font-weight: 800;
  color: #222;
}

.next-step__hint {
  font-size: 0.88rem;
  color: #666;
  text-align: center;
}

/* Subtle text response on hover */
.next-step__card:hover .next-step__label,
.next-step__card:focus-visible .next-step__label {
  color: #254e70;
}
.next-step__card:hover .next-step__hint,
.next-step__card:focus-visible .next-step__hint {
  color: #444;
}

/* =========================================================
   ICONS – keep consistent / no weird hover behavior
   ========================================================= */
.next-step__icon {
  width: 1.9rem;
  height: 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 1.45rem;
  line-height: 1;

  /* Prevent icon from capturing hover/tap */
  pointer-events: none;

  /* Keep stable appearance */
  opacity: 0.95;
}

/* If you want the ✎ symbol to look a bit more “icon-like” */
.next-step__icon--symbol {
  font-size: 1.35rem;
}

/* Footer note */
.next-step__note {
  margin: 0.9rem 0 0;
  text-align: center;
  color: #666;
  font-size: 0.95rem;
}

/* Express dialog */
.express-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.express-modal.is-open {
  display: flex;
}

.express-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 39, 52, 0.48);
  backdrop-filter: blur(3px);
}

.express-modal__panel {
  position: relative;
  width: min(480px, 100%);
  padding: 1.25rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(25, 39, 52, 0.24);
  z-index: 1;
}

.express-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.express-modal__title {
  color: #254e70;
  font-family: "Nunito", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
}

.express-modal__sub {
  margin-top: 0.2rem;
  color: #596c79;
  font-size: 0.95rem;
}

.express-modal__close {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  min-height: 38px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background: #fff0f4;
  color: #c9476b;
  font-size: 1.1rem;
}

.express-modal__label {
  display: block;
  margin: 0 0 0.45rem;
  color: #254e70;
  font-weight: 700;
}

.express-modal__textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  padding: 0.8rem;
  border: 1px solid #d7e3eb;
  border-radius: 12px;
  font: inherit;
  color: #243a4a;
}

.express-modal__textarea:focus {
  outline: 2px solid rgba(255, 107, 107, 0.3);
  border-color: #ff6b6b;
}

.express-modal__actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 1rem;
}

.express-modal__btn {
  width: auto;
  min-width: 92px;
  margin: 0;
  background: #ff6b6b;
}

.express-modal__btn--ghost {
  background: #f2f7fa;
  color: #254e70;
}

.express-modal__btn--ghost:hover {
  background: #e6f0f5;
}

.express-modal__saved {
  margin-top: 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: #eafbf0;
  color: #1c6a44;
  font-weight: 700;
}

body.modal-open {
  overflow: hidden;
}

/* Mobile */
@media (max-width: 720px) {
  .next-step__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .express-modal {
    align-items: flex-end;
    padding: 0.6rem;
  }

  .express-modal__panel {
    border-radius: 18px 18px 12px 12px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .next-step__card {
    transition: none;
  }
  .next-step__card:hover,
  .next-step__card:focus-visible {
    transform: none;
  }
}
/* Optional: show “you chose this” for links after click */
a.next-step__card:visited {
  border-color: rgba(255, 201, 74, 0.85) !important;
}

/* Sticky “selected” style using a class (best) */
.next-step__card.is-selected {
  background: #fff7e6 !important;
  border-color: rgba(255, 201, 74, 1) !important;
  box-shadow: 0 10px 20px rgba(255, 201, 74, 0.2) !important;
}
/* Modal: smoother entrance */
.express-modal__panel {
  animation: popIn 0.18s ease-out;
}
@keyframes popIn {
  from {
    transform: translateY(8px) scale(0.98);
    opacity: 0.6;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Better buttons */
.express-modal__btn {
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    filter 0.12s ease;
}
.express-modal__btn:hover {
  filter: brightness(0.98);
}
/* Smooth scroll for Talk → Contact */
html {
  scroll-behavior: smooth;
}

/* Prevent sticky headers from covering Contact */
#contact {
  scroll-margin-top: 90px; /* adjust if header height changes */
}

/* Visible 2026 testimonial refresh */
.trust-section {
  background: linear-gradient(180deg, #eaf8ff 0%, #ffffff 100%) !important;
  padding: 3.4rem 1rem !important;
}

.trust-section > h2 {
  margin: 0 auto 0.4rem !important;
  color: #254e70 !important;
  font-family: "Nunito", sans-serif !important;
  font-size: clamp(1.9rem, 4vw, 3rem) !important;
}

.trust-section__sub {
  max-width: 680px;
  margin: 0 auto 1.5rem;
  color: #4f6678;
  font-size: 1.05rem;
  line-height: 1.6;
}

.trust-section .testimonial-grid {
  width: min(1080px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.trust-section .testimonial {
  position: relative;
  max-width: none;
  min-height: 230px;
  padding: 1.35rem 1.25rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  background: #fff;
  border: 1px solid rgba(37, 78, 112, 0.1);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(37, 78, 112, 0.12);
}

.trust-section .testimonial::before {
  content: "";
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: #ff6b6b;
  display: block;
  margin-bottom: 0.75rem;
}

.trust-section .testimonial p:first-child {
  width: max-content;
  margin: 0 0 0.75rem !important;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: #fff7d6;
  color: #7a5600;
  font-size: 0.95rem !important;
  letter-spacing: 1px;
}

.trust-section .testimonial p:not(:first-child) {
  margin: 0.2rem 0 1rem;
  color: #243a4a;
  font-size: 1.02rem;
  line-height: 1.6;
}

.trust-section .testimonial small {
  color: #254e70;
  font-weight: 800;
}

@media (max-width: 820px) {
  .trust-section .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .trust-section .testimonial {
    min-height: auto;
  }
}

/* ===== Extracted inline styles from home.html ===== */
.u-style-001 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff2e5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: "DM Sans", sans-serif;
  font-size: 1.1rem;
  color: #254e70;
  z-index: 9999;
}

.u-style-002 {
  border: 6px solid #ffdd59;
  border-top: 6px solid #ff6b6b;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

.u-style-003 {
  margin: 0;
}

.u-style-004 {
  text-decoration: none;
  color: inherit;
}

.u-style-005 {
  height: 30px;
}

.u-style-006 {
  color: #254e70;
}

.u-style-007 {
  color: #ff6b6b;
}

.u-style-008 {
  background: #fff3f6;
  padding: 0.8rem 1rem;
  text-align: center;
  font-family: "Nunito", sans-serif;
  border-bottom: 2px solid #ffb6c1;
  transition: opacity 0.5s ease;
  flex-wrap: wrap;
}

.u-style-009 {
  color: #ff6b6b;
  font-weight: bold;
  text-decoration: underline;
  margin: 0 0.5rem;
}

.u-style-010 {
  color: #ff6b6b;
  font-weight: bold;
  text-decoration: underline;
  margin: 0 0.5rem;
}

.u-style-011 {
  color: #ff6b6b;
  font-weight: bold;
  text-decoration: underline;
  margin: 0 0.5rem;
}

.u-style-012 {
  color: #254e70;
  font-weight: bold;
  text-decoration: underline;
  margin: 0 0.5rem;
}

.u-style-013 {
  margin-left: 1rem;
  background: transparent;
  border: none;
  color: #999;
  cursor: pointer;
}

.u-style-014 {
  margin-top: 1.5rem;
  text-align: center;
}

.u-style-015 {
  display: none;
  font-size: 1.2rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 1rem;
}

.u-style-016 {
  background-color: #fff9c4;
  color: #333;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 25px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.3s ease;
  display: none;
}

.u-style-017 {
  text-align: center;
}

.u-style-018 {
  font-size: 2rem;
  text-align: center;
  font-weight: 700;
  color: #333;
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.u-style-019 {
  display: none;
}

.u-style-020 {
  display: none;
}

.u-style-021 {
  display: none;
}

.u-style-022 {
  display: none;
}

.u-style-023 {
  display: none;
}

.u-style-024 {
  display: none;
}

.u-style-025 {
  display: none;
}

.u-style-026 {
  display: none;
}

.u-style-027 {
  display: none;
}

.u-style-028 {
  display: none;
}

.u-style-029 {
  display: none;
}

.u-style-030 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.u-style-031 {
  background-color: #ff6b6b;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-size: 1rem;
}

.u-style-032 {
  background-color: #ace7ff;
  color: #254e70;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-size: 1rem;
}

.u-style-033 {
  background-color: #ffdd59;
  color: #254e70;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-size: 1rem;
}

.u-style-034 {
  background-color: #cfffe1;
  color: #254e70;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-size: 1rem;
}

.u-style-035 {
  background-color: #e8ddff;
  color: #254e70;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-size: 1rem;
}

.u-style-036 {
  margin-top: 2rem;
}

.u-style-037 {
  background-color: #fff0b3;
  color: #254e70;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-size: 1rem;
}

.u-style-038 {
  text-align: center;
  margin: 1.25rem 0 0;
}

.u-style-039 {
  background-color: #ff66b6;
  color: #fff;
  padding: 0.8rem 1.8rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: inline-block;
}

.u-style-040 {
  display: none;
}

.u-style-041 {
  color: #254e70;
  font-size: 2rem;
}

.u-style-042 {
  margin-bottom: 2rem;
  color: #555;
  font-size: 1.05rem;
}

.u-style-043 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.u-style-044 {
  margin: 1rem 0 0.5rem;
  color: #254e70;
  font-size: 1.1rem;
}

.u-style-045 {
  font-size: 0.95rem;
  color: #555;
}

.u-style-046 {
  display: inline-block;
  margin-top: 1rem;
  background-color: #ff6b6b;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
}

.u-style-047 {
  margin: 1rem 0 0.5rem;
  color: #254e70;
  font-size: 1.1rem;
}

.u-style-048 {
  font-size: 0.95rem;
  color: #555;
}

.u-style-049 {
  display: inline-block;
  margin-top: 1rem;
  background-color: #ff6b6b;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
}

.u-style-050 {
  margin: 1rem 0 0.5rem;
  color: #254e70;
  font-size: 1.1rem;
}

.u-style-051 {
  font-size: 0.95rem;
  color: #555;
}

.u-style-052 {
  display: inline-block;
  margin-top: 1rem;
  background-color: #ff6b6b;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
}

.u-style-053 {
  background-color: #dff6ff;
  padding: 2rem 1rem;
  text-align: center;
}

.u-style-054 {
  color: #254e70;
  margin-bottom: 1.5rem;
}

.u-style-055 {
  font-size: 1.2rem;
}

.u-style-056 {
  font-size: 1.2rem;
}

.u-style-057 {
  font-size: 1.2rem;
}

.u-style-058 {
  background-color: #dff6ff;
  padding: 2rem 1rem;
  text-align: center;
}

.u-style-059 {
  color: #254e70;
  margin-bottom: 1rem;
}

.u-style-060 {
  background: linear-gradient(to bottom, #fff2e5, #ffeaf0);
  padding: 3rem 1rem;
  text-align: center;
  font-family: "DM Sans", sans-serif;
}

.u-style-061 {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1rem;
}

.u-style-062 {
  color: #ff66b6;
  font-size: 2rem;
  font-family: "Comic Neue", cursive;
  margin: 1rem 0;
}

.u-style-063 {
  font-size: 1.1rem;
  color: #254e70;
  line-height: 1.7;
  padding: 0 1rem;
}

.u-style-064 {
  background-color: #f5f5f5;
  padding: 3rem 1rem;
  text-align: center;
  font-family: "DM Sans", sans-serif;
}

.u-style-065 {
  text-align: center;
  padding: 1.75rem 0 1.25rem;
}

.u-style-066 {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-position: center 12%;
  display: block;
  margin: 0 auto 1.1rem;
  border: 6px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.1),
    0 4px 10px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  outline: 1px solid rgba(37, 78, 112, 0.14);
  outline-offset: 6px;
  background: #fff;
}

.u-style-067 {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(37, 78, 112, 0.06);
  border: 1px solid rgba(37, 78, 112, 0.12);
  color: #254e70;
  font-weight: 800;
  font-size: 0.88rem;
  margin-bottom: 0.85rem;
}

.u-style-068 {
  margin: 0 0 0.55rem;
  font-weight: 900;
  color: #254e70;
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  letter-spacing: -0.3px;
}

.u-style-069 {
  max-width: 720px;
  margin: 0 auto 1.1rem;
  font-size: 1.05rem;
  color: rgba(20, 20, 20, 0.78);
  line-height: 1.85;
  letter-spacing: 0.2px;
}

.u-style-070 {
  color: #254e70;
}

.u-style-071 {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.u-style-072 {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.82rem 1.5rem;
  background: linear-gradient(135deg, #254e70, #2e6fa0);
  color: #fff;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(37, 78, 112, 0.22);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.u-style-073 {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.82rem 1.5rem;
  background: rgba(0, 128, 96, 0.1);
  color: #0b5b4a;
  border: 1px solid rgba(0, 128, 96, 0.22);
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.u-style-074 {
  background: #f9f9f9;
  padding: 2.2rem 1rem;
  text-align: center;
}

.u-style-075 {
  color: #5833a9;
  font-size: 1.85rem;
  margin-bottom: 0.4rem;
}

.u-style-076 {
  margin-bottom: 1.2rem;
  color: #555;
}

.u-style-083 {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: #888;
}

.u-style-084 {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #aaa;
}

.u-style-085 {
  display: inline-block;
  margin: 1.6rem auto 0;
  padding: 0.55rem 1.4rem;
  background-color: #ffe066;
  color: #254e70;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition:
    background-color 0.25s ease,
    transform 0.15s ease;
}

.u-style-086 {
  margin-top: 2.5rem;
  padding: 1rem;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
}

.u-style-087 {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: #cfffe1;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  font-family: "DM Sans", sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  gap: 10px;
}

.u-style-088 {
  color: #254e70;
  font-size: 0.95rem;
}

.u-style-089 {
  height: 1em;
  vertical-align: middle;
  margin: 0 4px;
}

.u-style-090 {
  background: #ff6b6b;
  color: #fff;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-weight: bold;
  font-size: 0.85rem;
  cursor: pointer;
}

.u-style-091 {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: #ffdd59;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  font-family: "DM Sans", system-ui, sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2147483647;
}

.u-style-092 {
  color: #254e70;
}

.u-style-093 {
  background: #254e70;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

/* Hover states moved out of home.html inline handlers */
.u-style-016:hover {
  transform: scale(1.05);
}

.u-style-066:hover {
  transform: scale(1.06);
}

.u-style-072:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(37, 78, 112, 0.28);
}

.u-style-073:hover {
  transform: translateY(-1px);
  background: rgba(0, 128, 96, 0.14);
  border-color: rgba(0, 128, 96, 0.28);
}

.u-style-085:hover {
  background-color: #ffd43b;
  transform: translateY(-1px);
}

/* ===== Refined site header and navigation ===== */
body {
  --announcement-height: 52px;
  padding-top: calc(72px + var(--announcement-height));
  transition: padding-top 0.25s ease;
}

body.announcement-dismissed {
  --announcement-height: 0px;
}

.site-header {
  position: fixed;
  height: 72px;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1200;
  padding: 0;
  border-bottom: 1px solid #e7eef3;
  box-shadow: 0 4px 16px rgba(37, 78, 112, 0.06);
}

.site-header .navbar {
  width: min(1180px, 100%);
  height: 72px;
  margin: 0 auto;
  padding: 0 1.25rem;
  border: 0;
  box-shadow: none;
}

.brand-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.site-header .site-title {
  font-family: "Nunito", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.navbar-menu {
  align-items: center;
  gap: 0.2rem;
}

.navbar-menu > a,
.nav-more > summary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  color: #254e70;
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  list-style: none;
  text-decoration: none;
}

.navbar-menu > a:hover,
.nav-more > summary:hover {
  background: #f3fafd;
  color: #254e70;
  text-shadow: none;
}

.nav-more {
  position: relative;
}

.nav-more summary::-webkit-details-marker {
  display: none;
}

.nav-more summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 0.55rem;
  border-right: 2px solid #577084;
  border-bottom: 2px solid #577084;
  transform: rotate(45deg) translateY(-2px);
}

.nav-more[open] summary {
  background: #f3fafd;
}

.nav-more__panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  min-width: 190px;
  padding: 0.45rem;
  background: #fff;
  border: 1px solid #e6eef3;
  border-radius: 12px;
  box-shadow: 0 18px 36px rgba(37, 78, 112, 0.16);
  z-index: 1200;
}

.nav-more__panel a {
  display: block;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  color: #254e70;
  font-weight: 700;
  text-decoration: none;
}

.nav-more__panel a:hover {
  background: #f5fafd;
  color: #ff6b6b;
  text-shadow: none;
}

nav a.bulletin-link {
  animation: none;
}

.hamburger {
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 1px solid #e5edf3;
  border-radius: 10px;
  background: #fff;
  color: #254e70;
  font-size: 1.3rem;
}

.language-switcher {
  position: fixed;
  top: calc(var(--announcement-height) + 86px);
  right: 16px;
  bottom: auto;
  padding: 0.5rem 0.65rem;
  gap: 0.4rem;
  border: 1px solid #e6eef3;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(37, 78, 112, 0.1);
  background: rgba(255, 255, 255, 0.96);
}

.language-switcher__label {
  padding: 0 0.25rem 0 0.1rem;
  color: #526b7d;
  font-size: 0.78rem;
  font-weight: 800;
}

.language-switcher a {
  display: inline-flex;
  border-radius: 50%;
}

.announcement-bar {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  transform: none;
  z-index: 1100;
  width: 100%;
  height: var(--announcement-height);
  min-height: var(--announcement-height);
  margin: 0 !important;
  padding: 0.45rem 1rem !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: nowrap;
  overflow: hidden;
  background: #fff7e6 !important;
  border: 0;
  border-bottom: 1px solid #ffe4ac;
  border-radius: 0 !important;
  color: #254e70 !important;
  font-size: 0.9rem !important;
  box-shadow: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.announcement-bar strong {
  color: #254e70;
  margin-right: 0.2rem;
}

.announcement-bar a {
  margin: 0 !important;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: #fff;
  color: #254e70 !important;
  text-decoration: none !important;
  font-weight: 700 !important;
}

.announcement-bar a:hover {
  color: #ff6b6b !important;
}

.announcement-bar button {
  width: auto;
  max-width: none;
  min-height: 36px;
  margin: 0 0 0 0.25rem !important;
  padding: 0.35rem 0.65rem !important;
  color: #526b7d !important;
  background: transparent !important;
  border: 0;
  font-size: 0.85rem;
}

.announcement-bar .announcement-dismiss {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 38px;
  margin-left: 0.45rem !important;
  padding: 0.38rem 0.6rem 0.38rem 0.82rem !important;
  border: 1px solid #e94f58 !important;
  border-radius: 999px;
  background: #ff6b6b !important;
  color: #fff !important;
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(223, 65, 76, 0.27);
  animation: announcement-dismiss-pulse 3.4s ease-in-out infinite;
}

.announcement-bar .announcement-dismiss:hover,
.announcement-bar .announcement-dismiss:focus-visible {
  border-color: #c53d48 !important;
  background: #e6535d !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(197, 61, 72, 0.34);
}

.announcement-bar .announcement-dismiss:focus-visible {
  outline: 3px solid #254e70;
  outline-offset: 2px;
}

.announcement-dismiss__icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.23);
  font-size: 1.05rem;
  line-height: 1;
}

@keyframes announcement-dismiss-pulse {
  0%,
  78%,
  100% {
    box-shadow: 0 4px 12px rgba(223, 65, 76, 0.27);
  }
  88% {
    box-shadow:
      0 4px 12px rgba(223, 65, 76, 0.27),
      0 0 0 7px rgba(255, 107, 107, 0.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .announcement-bar .announcement-dismiss {
    animation: none;
  }
}

@media (max-width: 1100px) {
  .announcement-bar a:nth-of-type(n + 3) {
    display: none;
  }
}

@media (max-width: 900px) {
  .announcement-bar strong,
  .announcement-bar a:nth-of-type(n + 2) {
    display: none;
  }
}

.mobile-nav {
  padding: 1rem 0.9rem 1.5rem;
  overflow-y: auto;
}

.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  color: #254e70;
  font-family: "Nunito", sans-serif;
  font-size: 1.15rem;
}

.mobile-nav__close {
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background: #f3fafd;
  color: #254e70;
  font-size: 1.35rem;
}

.mobile-nav__label {
  margin: 0.75rem 0 0.25rem;
  color: #728a9a;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.mobile-nav a {
  padding: 0.8rem 0.65rem;
  margin: 0.1rem 0;
  border-radius: 9px;
  color: #254e70;
}

.mobile-nav a:hover {
  background: #f3fafd;
  text-shadow: none;
}

@media (max-width: 768px) {
  body {
    --announcement-height: 48px;
    padding-top: calc(64px + var(--announcement-height));
  }

  .site-header,
  .site-header .navbar {
    height: 64px;
  }

  .site-header .navbar {
    padding: 0 0.8rem;
  }

  .site-header .site-title {
    font-size: 1.14rem;
  }

  .hamburger {
    display: inline-flex;
  }

  .language-switcher {
    position: static;
    width: max-content;
    margin: 0.65rem auto;
    box-shadow: none;
  }

  .announcement-bar {
    top: 64px;
    width: 100%;
    margin: 0 !important;
    padding: 0.4rem 0.55rem !important;
    justify-content: center;
    gap: 0.35rem;
  }

  .announcement-bar strong,
  .announcement-bar a:nth-of-type(n + 2) {
    display: none;
  }

  .announcement-bar a:first-of-type {
    max-width: calc(100vw - 118px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .announcement-bar .announcement-dismiss {
    min-height: 36px;
    margin-left: 0.15rem !important;
    padding: 0.32rem 0.45rem 0.32rem 0.68rem !important;
  }
}

/* Mobile essentials: persistent language access and a true sliding book shelf. */
@media (max-width: 768px) {
  .language-switcher {
    position: fixed !important;
    top: auto !important;
    right: 0.7rem !important;
    bottom: calc(0.7rem + env(safe-area-inset-bottom)) !important;
    z-index: 1300;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    width: max-content;
    max-width: calc(100vw - 1.4rem);
    margin: 0 !important;
    padding: 0.38rem 0.45rem;
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e2ebf0;
    border-radius: 999px;
    box-shadow: 0 10px 26px rgba(37, 78, 112, 0.17);
  }

  .language-switcher__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .language-switcher a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
  }

  .language-switcher a:hover,
  .language-switcher a:focus-visible {
    background: #f3fafc;
  }
}

#emotional-literacy .book-grid.book-rail-track {
  display: flex !important;
  grid-template-columns: none !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  gap: 1rem !important;
  width: max-content !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0.25rem 0 1rem !important;
  align-items: stretch !important;
}

#emotional-literacy .book-card {
  width: clamp(230px, 24vw, 300px) !important;
  flex: 0 0 clamp(230px, 24vw, 300px) !important;
  scroll-snap-align: start;
}

@media (max-width: 720px) {
  .book-rail-section {
    padding: 1.55rem 0 2.15rem;
  }

  .book-rail-section > h2 {
    width: calc(100% - 2rem);
    margin-bottom: 0.55rem;
    font-size: clamp(1.42rem, 6vw, 1.72rem);
    line-height: 1.18;
  }

  .book-rail-header {
    width: calc(100% - 2rem);
    margin-bottom: 0.85rem;
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
  }

  .book-rail-header > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
  }

  .book-rail-subtitle {
    font-size: 0.91rem;
    line-height: 1.42;
  }

  .book-rail-controls {
    align-self: center;
    gap: 0.35rem;
  }

  .book-rail-btn {
    width: 39px;
    height: 39px;
    font-size: 1.58rem;
  }

  .book-rail-window {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    scroll-padding-left: 1rem;
    -webkit-overflow-scrolling: touch;
  }

  #emotional-literacy .book-grid.book-rail-track {
    gap: 0.78rem !important;
    align-items: flex-start !important;
  }

  #emotional-literacy .book-card {
    width: min(70vw, 266px) !important;
    flex-basis: min(70vw, 266px) !important;
    padding: 0.75rem !important;
    border-radius: 15px;
  }

  #emotional-literacy .book-card img {
    height: 168px;
    margin-bottom: 0.65rem;
  }

  #emotional-literacy .book-info h4 {
    margin: 0.28rem 0;
    font-size: 0.96rem;
  }

  #emotional-literacy .book-info p {
    margin-bottom: 0.7rem;
    font-size: 0.87rem;
    line-height: 1.38;
    -webkit-line-clamp: 3;
  }

  #emotional-literacy .book-info a {
    min-height: 38px;
    padding: 0.5rem 0.68rem;
    font-size: 0.88rem;
  }
}

/* ===== Refined opening experience ===== */
.carousel-container {
  width: min(1180px, calc(100% - 2rem));
  height: auto;
  aspect-ratio: 16 / 5.6;
  margin: 0.65rem auto 1rem;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(37, 78, 112, 0.08);
  border-radius: 16px;
  background: #f5fafd;
  box-shadow: 0 12px 28px rgba(37, 78, 112, 0.09);
}

.carousel {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.carousel-dots {
  position: absolute;
  bottom: 0.7rem;
  left: 50%;
  width: auto;
  padding: 0.35rem 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 10px rgba(37, 78, 112, 0.09);
}

.carousel-dots .dot {
  width: 9px;
  height: 9px;
  min-height: 9px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #b8cbd7;
  transition:
    width 0.2s ease,
    background-color 0.2s ease;
}

.carousel-dots .dot.active {
  width: 25px;
  background: #ff6b6b;
}

.carousel-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(37, 78, 112, 0.72);
  font-size: 1.15rem;
  transition:
    background-color 0.18s ease,
    transform 0.18s ease;
}

.carousel-arrow:hover {
  background: #254e70;
  transform: translateY(-50%) scale(1.03);
}

.home-start {
  margin: 0.4rem auto 1.25rem;
  padding: clamp(1.1rem, 2vw, 1.6rem);
}

.home-start__copy .eyebrow {
  color: #ff6b6b;
}

.section-divider {
  margin: 1.25rem auto 1rem;
}

@media (max-width: 768px) {
  .carousel-container {
    width: calc(100% - 1rem);
    aspect-ratio: 16 / 8;
    margin: 0.5rem auto 0.75rem;
    border-radius: 12px;
  }

  .carousel-slide {
    height: 100%;
    background-size: cover;
  }

  .carousel-arrow {
    display: none;
  }

  .carousel-dots {
    bottom: 0.45rem;
  }

  .home-start {
    margin: 0.25rem auto 1rem;
  }
}

@media (max-width: 480px) {
  .announcement-bar a {
    font-size: 0.82rem;
  }

  .carousel-container {
    aspect-ratio: 16 / 9;
  }

  .home-start__copy p:last-child {
    font-size: 0.95rem;
  }
}

/* ===== Topic library refinement ===== */
.hlm-res {
  padding: clamp(2.4rem, 5vw, 3.5rem) 1rem;
  background:
    radial-gradient(ellipse 80% 60% at 60% 20%, rgba(175, 109, 255, 0.22), transparent 65%),
    radial-gradient(ellipse 70% 60% at 20% 80%, rgba(255, 100, 180, 0.2), transparent 65%),
    radial-gradient(ellipse 65% 40% at 50% 60%, rgba(120, 190, 255, 0.24), transparent 68%),
    linear-gradient(180deg, #f7fbfd 0%, #ffffff 100%);
}

.hlm-res__grid {
  width: min(1120px, 100%);
  max-width: 1120px;
  margin: 0 auto;
  padding: 0;
  grid-template-columns: minmax(290px, 0.84fr) minmax(420px, 1.16fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.hlm-res__intro h2 {
  color: #254e70;
  font-size: clamp(1.75rem, 2vw + 1rem, 2.35rem);
  line-height: 1.15;
}

.hlm-res__intro p {
  color: #455a69;
  font-size: 1rem;
}

.hlm-res__intro .hlm-res__note--callout {
  color: #7a5900;
}

.hlm-res__art-wrap {
  margin-top: 1rem;
}

.topic-library {
  width: 100%;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid #dbe7ec;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 42px rgba(37, 78, 112, 0.1);
  backdrop-filter: blur(10px);
}

.topic-library__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.topic-library__head .eyebrow {
  margin: 0 0 0.22rem;
  color: #ff6b6b;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topic-library__head h3 {
  margin: 0;
  color: #254e70;
  font-family: "Nunito", sans-serif;
  font-size: 1.35rem;
  line-height: 1.2;
}

.topic-library__search {
  display: block;
  flex: 0 1 200px;
}

.topic-library__search input {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 0.82rem;
  border: 1px solid #cad9e0;
  border-radius: 10px;
  background: #fff;
  color: #243a59;
  font: inherit;
}

.topic-library__search input:focus {
  border-color: #254e70;
  outline: 3px solid rgba(37, 78, 112, 0.13);
}

.topic-library__featured {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.topic-card {
  display: block;
  min-height: 76px;
  padding: 0.82rem 0.9rem;
  border: 1px solid #e0e9ed;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(240, 248, 251, 0.9));
  color: #254e70;
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    transform 0.18s ease;
}

.topic-card--primary {
  grid-column: span 2;
  background:
    radial-gradient(125% 125% at 50% 10%, rgba(255, 255, 255, 0.94) 40%, rgba(20, 184, 166, 0.24) 100%);
}

.topic-card span {
  display: block;
  font-weight: 800;
}

.topic-card small {
  display: block;
  margin-top: 0.18rem;
  color: #607786;
  font-size: 0.88rem;
}

.topic-card:hover,
.topic-card:focus-visible {
  border-color: #84afc3;
  background: #f2f9fb;
  transform: translateY(-1px);
}

.topic-more {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid #e8eff2;
}

.topic-more summary {
  color: #254e70;
  font-weight: 800;
  cursor: pointer;
  list-style-position: inside;
}

.topic-library__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.topic-library__list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.48rem 0.72rem;
  border: 1px solid #dce8ed;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #254e70;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}

.topic-library__list a:hover,
.topic-library__list a:focus-visible {
  border-color: #84afc3;
  background: #f2f9fb;
}

.topic-library__empty {
  margin: 1rem 0 0.15rem;
  padding: 0.75rem;
  border-radius: 10px;
  background: #fff5f5;
  color: #7d4650;
  text-align: center;
  font-weight: 700;
}

.topic-card[hidden],
.topic-library__list li[hidden],
.topic-library__empty[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .hlm-res__grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .hlm-res__intro {
    max-width: 640px;
  }

  .hlm-res__art-wrap {
    margin: 1rem auto 0;
  }
}

@media (max-width: 560px) {
  .topic-library__head {
    display: block;
  }

  .topic-library__search {
    margin-top: 0.85rem;
  }

  .topic-library__featured {
    grid-template-columns: 1fr;
  }

  .topic-card--primary {
    grid-column: auto;
  }
}

/* ===== Character gallery refinement ===== */
.characters-section {
  padding: clamp(2.1rem, 4vw, 3.25rem) 1rem;
  background: #fff;
  text-align: left;
}

.characters-header {
  width: min(820px, 100%);
  margin: 0 auto;
  text-align: center;
}

.characters-header .eyebrow {
  margin: 0 0 0.38rem;
  color: #ff6b6b;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

#characters .u-style-018 {
  display: block;
  margin: 0;
  color: #254e70;
  font-family: "Nunito", sans-serif;
  font-size: clamp(1.55rem, 2vw + 1rem, 2.15rem);
  line-height: 1.18;
}

.character-instructions {
  max-width: 560px;
  margin: 0.65rem auto 0;
  color: #566d7b;
  font-size: 1rem;
  line-height: 1.55;
}

#characters .character-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 980px;
  margin: 1.4rem auto 1.35rem;
}

#characters .filter-btn {
  min-height: 42px;
  padding: 0.55rem 0.95rem;
  border: 1px solid #d8e5ea;
  border-radius: 999px;
  background: #fff;
  color: #254e70;
  font-size: 0.92rem;
  font-weight: 800;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}

#characters .filter-btn:hover,
#characters .filter-btn:focus-visible {
  border-color: #89afc0;
  background: #f2f8fb;
}

#characters .filter-btn[aria-pressed="true"] {
  border-color: #254e70;
  background: #254e70;
  color: #fff;
  box-shadow: none;
}

#characters .character-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.85rem;
  width: min(1120px, 100%);
  max-width: 1120px;
  margin: 0 auto;
  padding: 0;
  align-items: start;
}

#characters .character-card {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0.7rem 0.7rem 0.78rem;
  border: 1px solid #e0eaee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(37, 78, 112, 0.06);
  text-align: left;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

#characters .character-card:hover,
#characters .character-card:focus-visible {
  border-color: #a9c7d4;
  box-shadow: 0 10px 22px rgba(37, 78, 112, 0.11);
  transform: translateY(-2px);
  outline: none;
}

#characters .character-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  max-height: none;
  margin: 0 0 0.6rem;
  border-radius: 8px;
  object-fit: contain;
  background: #f8fbfc;
}

#characters .character-name {
  margin: 0;
  color: #254e70;
  font-size: 1rem;
  font-weight: 800;
}

#characters .character-info p {
  margin: 0.48rem 0 0;
  color: #536a79;
  font-size: 0.84rem;
  line-height: 1.45;
}

#characters .character-card.expanded {
  border-color: #9cc4d4;
  background: #f8fcfe;
}

@media (max-width: 980px) and (min-width: 721px) {
  #characters .character-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .characters-section {
    padding: 1.8rem 0 2.1rem;
  }

  .characters-header {
    padding: 0 1rem;
  }

  #characters .character-filters {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 1.2rem 0 1rem;
    padding: 0 1rem 0.2rem;
    scrollbar-width: none;
  }

  #characters .character-filters::-webkit-scrollbar,
  #characters .character-grid::-webkit-scrollbar {
    display: none;
  }

  #characters .filter-btn {
    flex: 0 0 auto;
  }

  #characters .character-grid {
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0.75rem;
    max-width: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 1rem 0.55rem;
    scrollbar-width: none;
  }

  #characters .character-card {
    flex: 0 0 min(68vw, 218px);
    scroll-snap-align: start;
  }
}

/* ===== Worksheet chooser refinement ===== */
.worksheet-section {
  padding: clamp(2.2rem, 5vw, 3.4rem) 1rem;
}

.worksheet-section__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
  width: min(1040px, 92vw);
  margin: 0 auto 1.25rem;
  text-align: left;
}

.worksheet-section__header .eyebrow {
  margin: 0 0 0.28rem;
  color: #e05c66;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.worksheet-section__header h2 {
  margin: 0 0 0.35rem !important;
  color: #254e70 !important;
  font-family: "Nunito", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.35rem) !important;
}

.worksheet-section__header .worksheet-section__sub {
  margin: 0;
  text-align: left !important;
}

.worksheet-picker {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.42rem;
  max-width: 395px;
}

.worksheet-picker a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.45rem 0.7rem;
  border: 1px solid #efd9cb;
  border-radius: 999px;
  background: #fff;
  color: #254e70;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.worksheet-picker a:hover,
.worksheet-picker a:focus-visible {
  border-color: #e6977f;
  background: #fffaf6;
}

.worksheet-section .worksheet-card {
  align-items: flex-start;
  border-radius: 10px;
  text-align: left;
  scroll-margin-top: 96px;
}

.worksheet-section .card-thumb {
  width: 100%;
  border-radius: 8px;
}

.worksheet-tag {
  display: inline-flex;
  align-items: center;
  margin: 0.8rem 0 0.25rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #fff2e5;
  color: #a64d41;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.worksheet-section .worksheet-card h3 {
  min-height: 0;
  margin: 0.25rem 0 0.35rem !important;
  text-align: left !important;
}

.worksheet-section .worksheet-card p {
  margin: 0.15rem 0 0.9rem !important;
  text-align: left !important;
}

.worksheet-section .worksheet-card .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.worksheet-file-note {
  display: block;
  width: 100%;
  margin-top: 0.42rem;
  color: #6b7d88;
  font-size: 0.78rem;
  text-align: center;
}

@media (max-width: 1040px) {
  .worksheet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .worksheet-section__header {
    display: block;
    margin-bottom: 1rem;
  }

  .worksheet-picker {
    justify-content: flex-start;
    margin-top: 1rem;
    max-width: none;
  }
}

/* ===== Emotional literacy impact points ===== */
#why-this-matters .u-style-063 {
  max-width: 680px;
  margin: 0 auto 1.35rem !important;
  line-height: 1.65 !important;
}

.impact-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  width: min(900px, 100%);
  margin: 0 auto;
}

.impact-point {
  padding: 0.9rem 0.95rem;
  border: 1px solid #e1e9ed;
  border-radius: 10px;
  background: #fff;
  text-align: left;
}

.impact-point strong {
  display: block;
  margin-bottom: 0.28rem;
  color: #254e70;
  font-family: "Nunito", sans-serif;
  font-size: 1rem;
}

.impact-point span {
  display: block;
  color: #536b79;
  font-size: 0.93rem;
  line-height: 1.5;
}

@media (max-width: 680px) {
  .impact-points {
    grid-template-columns: 1fr;
  }
}

/* ===== Localized member home refinements ===== */
.localized-home .announcement-bar {
  align-items: center;
  background: #fff4ef !important;
  border-bottom: 1px solid #f5d9ce !important;
  box-sizing: border-box;
  display: flex;
  flex-wrap: nowrap !important;
  gap: 0.55rem;
  justify-content: center;
  min-height: 64px;
  overflow: hidden;
  padding: 0.65rem 1rem !important;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease !important;
}

.localized-home .announcement-label {
  color: #254e70;
  flex: 0 0 auto;
  font-weight: 800;
  white-space: nowrap;
}

.localized-home .announcement-link {
  background: #fff;
  border: 1px solid #f1d7cf;
  border-radius: 999px;
  color: #9b4036 !important;
  display: inline-block;
  font-weight: 700 !important;
  margin: 0 !important;
  max-width: 295px;
  overflow: hidden;
  padding: 0.42rem 0.7rem;
  text-decoration: none !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.localized-home .announcement-link:hover,
.localized-home .announcement-link:focus-visible {
  background: #fffaf7;
  border-color: #d96858;
}

.localized-home .announcement-dismiss {
  align-items: center;
  background: #c94e40 !important;
  border: 2px solid #fff !important;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(168, 58, 45, 0.25);
  color: #fff !important;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font:
    800 0.94rem "Nunito",
    sans-serif;
  gap: 0.45rem;
  justify-content: center;
  margin: 0 0 0 0.25rem !important;
  min-height: 43px;
  padding: 0.4rem 0.72rem 0.4rem 0.95rem;
}

.localized-home .announcement-dismiss:hover,
.localized-home .announcement-dismiss:focus-visible {
  background: #aa382e !important;
  box-shadow: 0 6px 18px rgba(168, 58, 45, 0.35);
  transform: translateY(-1px);
}

.localized-home .announcement-dismiss__icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: inline-flex;
  font-size: 1.12rem;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.localized-home .localized-book-shelf {
  background: #fff;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 3rem) clamp(0.8rem, 3vw, 1.5rem) !important;
}

.localized-home .localized-book-shelf h2 {
  color: #254e70;
  text-align: center;
}

.localized-home .localized-rail-controls {
  display: flex;
  gap: 0.55rem;
  justify-content: flex-end;
  margin: 0.35rem auto 0.35rem;
  max-width: 1000px;
}

.localized-home .localized-rail-controls button {
  align-items: center;
  background: #fff;
  border: 1px solid #d4e6f1;
  border-radius: 50%;
  color: #254e70;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.45rem;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.localized-home .localized-rail-controls button:hover,
.localized-home .localized-rail-controls button:focus-visible {
  background: #254e70;
  border-color: #254e70;
  color: #fff;
}

.localized-home .auto-book-rail {
  display: flex !important;
  gap: 1rem !important;
  margin: 0 auto !important;
  max-width: 1080px !important;
  overflow-x: auto !important;
  padding: 1rem 0.35rem 1.2rem !important;
  scrollbar-width: none;
  scroll-snap-type: none !important;
  touch-action: pan-x;
}

.localized-home .auto-book-rail::-webkit-scrollbar {
  display: none;
}

.localized-home .auto-book-rail > * {
  border-radius: 22px !important;
  box-shadow: 0 7px 22px rgba(37, 78, 112, 0.09);
  box-sizing: border-box;
  flex: 0 0 clamp(250px, 26vw, 300px) !important;
  min-width: 0 !important;
  padding: 1rem !important;
  scroll-snap-align: none !important;
  text-align: center;
}

.localized-home .auto-book-rail h3,
.localized-home .auto-book-rail p strong {
  color: #173c59;
}

.localized-home .auto-book-rail img,
.localized-home .auto-book-rail .book-cover {
  border-radius: 14px !important;
  display: block !important;
  height: 205px !important;
  margin: 0.85rem auto 0 !important;
  max-width: 100% !important;
  object-fit: contain;
  width: 100% !important;
}

.localized-home .auto-book-rail a,
.localized-home .auto-book-rail button {
  background: #356c91 !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #fff !important;
  cursor: pointer;
  display: inline-block !important;
  font-weight: 800 !important;
  margin-top: 0.65rem !important;
  padding: 0.58rem 1.05rem !important;
  text-decoration: none !important;
}

.localized-home .auto-book-rail a:hover,
.localized-home .auto-book-rail button:hover {
  background: #234f70 !important;
}

.localized-home #worksheets {
  background: #fff8f2 !important;
  padding: clamp(2rem, 4vw, 3rem) clamp(0.8rem, 3vw, 1.5rem) !important;
}

.localized-home #worksheets .scroll-container,
.localized-home #worksheets .book-scroll-wrapper,
.localized-home #worksheets .worksheet-rail {
  gap: 1rem !important;
  padding: 1rem 0.35rem !important;
}

.localized-home #worksheets .worksheet-card,
.localized-home #worksheets .book-card {
  border: 1px solid #f0e2d7;
  box-shadow: 0 6px 18px rgba(37, 78, 112, 0.07);
}

.localized-home .hlm-res,
.localized-home .hlm-res--full {
  background:
    radial-gradient(ellipse 80% 60% at 60% 20%, rgba(175, 109, 255, 0.22), transparent 65%),
    radial-gradient(ellipse 70% 60% at 20% 80%, rgba(255, 100, 180, 0.2), transparent 65%),
    radial-gradient(ellipse 65% 40% at 50% 60%, rgba(120, 190, 255, 0.24), transparent 68%),
    linear-gradient(180deg, #f6fbff 0%, #ffffff 100%) !important;
  padding-block: clamp(2.2rem, 5vw, 3.5rem) !important;
}

.localized-home .hlm-topic-panel {
  border-radius: 24px !important;
  box-shadow: 0 12px 30px rgba(24, 57, 84, 0.12);
  overflow: hidden;
}

.localized-home .ko-menu-toggle {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: inherit !important;
  padding: 0.35rem !important;
}

.localized-home .ko-home-start {
  align-items: center;
  background: #f6fbff;
  border: 1px solid #e3eef4;
  border-radius: 24px;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  margin: clamp(1.3rem, 3vw, 2rem) auto;
  max-width: 1050px;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.localized-home .ko-home-start__copy {
  max-width: 590px;
}

.localized-home .ko-eyebrow {
  color: #c94e40;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 0.35rem;
  text-transform: uppercase;
}

.localized-home .ko-home-start h2 {
  color: #254e70;
  font-size: clamp(1.55rem, 3vw, 2rem);
  margin: 0 0 0.45rem;
}

.localized-home .ko-home-start__copy > p:last-child {
  color: #536a7a;
  line-height: 1.65;
  margin: 0;
}

.localized-home .ko-home-start__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
  max-width: 355px;
}

.localized-home .ko-home-start__actions a {
  background: #fff;
  border: 1px solid #d7e6ef;
  border-radius: 999px;
  color: #254e70;
  font-weight: 800;
  padding: 0.63rem 0.9rem;
  text-decoration: none;
}

.localized-home .ko-home-start__actions a:hover,
.localized-home .ko-home-start__actions a:focus-visible {
  background: #254e70;
  border-color: #254e70;
  color: #fff;
}

.localized-home .ko-feelings > h2::after {
  content: "지금 마음에 가까운 감정을 골라 보세요. 짧은 이야기와 도움이 되는 방법을 함께 만날 수 있어요.";
}

.localized-home .ko-feelings .emotion-btn:nth-child(1) {
  background: #fff2e5;
}
.localized-home .ko-feelings .emotion-btn:nth-child(2) {
  background: #fadbd8;
}
.localized-home .ko-feelings .emotion-btn:nth-child(3) {
  background: #d2f7f7;
}
.localized-home .ko-feelings .emotion-btn:nth-child(4) {
  background: #e3f2fd;
}
.localized-home .ko-feelings .emotion-btn:nth-child(5) {
  background: #cfffe1;
}

.localized-home .ko-feelings__more {
  gap: 0.65rem;
  margin-top: 0.35rem !important;
}

.localized-home .ko-feelings__more .ko-more-feelings {
  background: #ff6b6b;
  color: #fff;
}

.localized-home .ko-feelings__more .ko-tools {
  background: #254e70;
  color: #fff;
}

.localized-home .ko-worksheet .worksheet-section__header .eyebrow,
.localized-home .ko-worksheet .worksheet-tag {
  text-transform: none;
}

.localized-home .ko-subscribe {
  background: #fff7ee;
  border-radius: 26px;
  margin: clamp(2rem, 5vw, 3.2rem) auto;
  max-width: 820px;
  padding: clamp(1.8rem, 4vw, 2.6rem) 1rem;
  text-align: center;
}

.localized-home .ko-subscribe form {
  align-items: center;
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.2rem;
}

.localized-home .ko-subscribe input {
  border: 1px solid #d8dfe3;
  border-radius: 999px;
  box-sizing: border-box;
  font-size: 1rem;
  max-width: 100%;
  min-height: 48px;
  padding: 0.65rem 1rem;
  width: 310px;
}

.localized-home .ko-subscribe button {
  background: #c94e40 !important;
  border: 0 !important;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  min-height: 48px;
  padding: 0.65rem 1.25rem;
}

.localized-home .ko-footer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.localized-home .ko-logout {
  background: #fff !important;
  border: 1px solid #d7e6ef !important;
  border-radius: 999px;
  color: #254e70 !important;
  cursor: pointer;
  font-weight: 800;
  padding: 0.42rem 0.8rem !important;
}

.localized-home .ja-menu-toggle {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: inherit !important;
  padding: 0.35rem !important;
}

.localized-home .ja-home-start {
  align-items: center;
  background: #f6fbff;
  border: 1px solid #e3eef4;
  border-radius: 24px;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  margin: clamp(1.3rem, 3vw, 2rem) auto;
  max-width: 1050px;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.localized-home .ja-home-start__copy {
  max-width: 600px;
}

.localized-home .ja-eyebrow {
  color: #c94e40;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 0.35rem;
  text-transform: uppercase;
}

.localized-home .ja-home-start h2 {
  color: #254e70;
  font-size: clamp(1.55rem, 3vw, 2rem);
  margin: 0 0 0.45rem;
}

.localized-home .ja-home-start__copy > p:last-child {
  color: #536a7a;
  line-height: 1.7;
  margin: 0;
}

.localized-home .ja-home-start__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
  max-width: 355px;
}

.localized-home .ja-home-start__actions a {
  background: #fff;
  border: 1px solid #d7e6ef;
  border-radius: 999px;
  color: #254e70;
  font-weight: 800;
  padding: 0.63rem 0.9rem;
  text-decoration: none;
}

.localized-home .ja-home-start__actions a:hover,
.localized-home .ja-home-start__actions a:focus-visible {
  background: #254e70;
  border-color: #254e70;
  color: #fff;
}

.localized-home .ja-feelings > h2::after {
  content: "いまの気持ちに近いものを選んでみましょう。短いお話と、心を助けるヒントに出会えます。";
}

.localized-home .ja-feelings .emotion-btn:nth-child(1) {
  background: #fff2e5;
}
.localized-home .ja-feelings .emotion-btn:nth-child(2) {
  background: #fadbd8;
}
.localized-home .ja-feelings .emotion-btn:nth-child(3) {
  background: #d2f7f7;
}
.localized-home .ja-feelings .emotion-btn:nth-child(4) {
  background: #e3f2fd;
}
.localized-home .ja-feelings .emotion-btn:nth-child(5) {
  background: #cfffe1;
}

.localized-home .ja-feelings__more {
  gap: 0.65rem;
  margin-top: 0.35rem !important;
}

.localized-home .ja-feelings__more .ja-more-feelings {
  background: #ff6b6b;
  color: #fff;
}

.localized-home .ja-feelings__more .ja-tools {
  background: #254e70;
  color: #fff;
}

.localized-home .ja-worksheet .worksheet-section__header .eyebrow,
.localized-home .ja-worksheet .worksheet-tag {
  text-transform: none;
}

.localized-home .ja-subscribe {
  background: #fff7ee;
  border-radius: 26px;
  margin: clamp(2rem, 5vw, 3.2rem) auto;
  max-width: 820px;
  padding: clamp(1.8rem, 4vw, 2.6rem) 1rem;
  text-align: center;
}

.localized-home .ja-subscribe form {
  align-items: center;
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.2rem;
}

.localized-home .ja-subscribe input {
  border: 1px solid #d8dfe3;
  border-radius: 999px;
  box-sizing: border-box;
  font-size: 1rem;
  max-width: 100%;
  min-height: 48px;
  padding: 0.65rem 1rem;
  width: 310px;
}

.localized-home .ja-subscribe button {
  background: #c94e40 !important;
  border: 0 !important;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  min-height: 48px;
  padding: 0.65rem 1.25rem;
}

.localized-home .ja-footer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.localized-home .ja-logout {
  background: #fff !important;
  border: 1px solid #d7e6ef !important;
  border-radius: 999px;
  color: #254e70 !important;
  cursor: pointer;
  font-weight: 800;
  padding: 0.42rem 0.8rem !important;
}

.localized-home .tw-menu-toggle {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: inherit !important;
  padding: 0.35rem !important;
}

.localized-home .tw-home-start {
  align-items: center;
  background: #f6fbff;
  border: 1px solid #e3eef4;
  border-radius: 24px;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  margin: clamp(1.3rem, 3vw, 2rem) auto;
  max-width: 1050px;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.localized-home .tw-home-start__copy {
  max-width: 600px;
}

.localized-home .tw-eyebrow {
  color: #c94e40;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 0.35rem;
}

.localized-home .tw-home-start h2 {
  color: #254e70;
  font-size: clamp(1.55rem, 3vw, 2rem);
  margin: 0 0 0.45rem;
}

.localized-home .tw-home-start__copy > p:last-child {
  color: #536a7a;
  line-height: 1.7;
  margin: 0;
}

.localized-home .tw-home-start__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
  max-width: 355px;
}

.localized-home .tw-home-start__actions a {
  background: #fff;
  border: 1px solid #d7e6ef;
  border-radius: 999px;
  color: #254e70;
  font-weight: 800;
  padding: 0.63rem 0.9rem;
  text-decoration: none;
}

.localized-home .tw-home-start__actions a:hover,
.localized-home .tw-home-start__actions a:focus-visible {
  background: #254e70;
  border-color: #254e70;
  color: #fff;
}

.localized-home .tw-feelings > h2::after {
  content: "選一個最接近現在心情的感受，閱讀短篇故事，也找到可以幫助自己的小方法。";
}

.localized-home .tw-feelings .emotion-btn:nth-child(1) {
  background: #fff2e5;
}
.localized-home .tw-feelings .emotion-btn:nth-child(2) {
  background: #fadbd8;
}
.localized-home .tw-feelings .emotion-btn:nth-child(3) {
  background: #d2f7f7;
}
.localized-home .tw-feelings .emotion-btn:nth-child(4) {
  background: #e3f2fd;
}
.localized-home .tw-feelings .emotion-btn:nth-child(5) {
  background: #cfffe1;
}

.localized-home .tw-feelings__more {
  gap: 0.65rem;
  margin-top: 0.35rem !important;
}

.localized-home .tw-feelings__more .tw-more-feelings {
  background: #ff6b6b;
  color: #fff;
}

.localized-home .tw-feelings__more .tw-tools {
  background: #254e70;
  color: #fff;
}

.localized-home .tw-worksheet .worksheet-section__header .eyebrow,
.localized-home .tw-worksheet .worksheet-tag {
  text-transform: none;
}

.localized-home .tw-subscribe {
  background: #fff7ee;
  border-radius: 26px;
  margin: clamp(2rem, 5vw, 3.2rem) auto;
  max-width: 820px;
  padding: clamp(1.8rem, 4vw, 2.6rem) 1rem;
  text-align: center;
}

.localized-home .tw-subscribe form {
  align-items: center;
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.2rem;
}

.localized-home .tw-subscribe input {
  border: 1px solid #d8dfe3;
  border-radius: 999px;
  box-sizing: border-box;
  font-size: 1rem;
  max-width: 100%;
  min-height: 48px;
  padding: 0.65rem 1rem;
  width: 310px;
}

.localized-home .tw-subscribe button {
  background: #c94e40 !important;
  border: 0 !important;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  min-height: 48px;
  padding: 0.65rem 1.25rem;
}

.localized-home .tw-footer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.localized-home .tw-logout {
  background: #fff !important;
  border: 1px solid #d7e6ef !important;
  border-radius: 999px;
  color: #254e70 !important;
  cursor: pointer;
  font-weight: 800;
  padding: 0.42rem 0.8rem !important;
}

@media (max-width: 900px) {
  .localized-home .announcement-link--extra {
    display: none;
  }
}

@media (max-width: 720px) {
  .localized-home .announcement-bar {
    gap: 0.42rem;
    justify-content: space-between;
    min-height: 58px;
    padding: 0.5rem 0.7rem !important;
  }

  .localized-home .announcement-label {
    display: none;
  }

  .localized-home .announcement-link {
    flex: 1 1 auto;
    font-size: 0.88rem;
    min-width: 0;
  }

  .localized-home .announcement-dismiss {
    font-size: 0.86rem;
    min-height: 40px;
    padding: 0.35rem 0.48rem 0.35rem 0.7rem;
  }

  .localized-home .localized-rail-controls {
    margin-right: 0.15rem;
  }

  .localized-home .auto-book-rail {
    gap: 0.8rem !important;
    padding: 0.8rem 0 1.1rem !important;
  }

  .localized-home .auto-book-rail > * {
    flex-basis: min(70vw, 266px) !important;
    padding: 0.85rem !important;
  }

  .localized-home .auto-book-rail img,
  .localized-home .auto-book-rail .book-cover {
    height: 168px !important;
  }

  .localized-home .ko-home-start {
    align-items: stretch;
    display: block;
    margin-inline: 0.8rem;
  }

  .localized-home .ko-home-start__actions {
    justify-content: flex-start;
    margin-top: 1rem;
    max-width: none;
  }

  .localized-home .ko-subscribe {
    margin-inline: 0.8rem;
  }

  .localized-home .ko-subscribe form {
    flex-direction: column;
  }

  .localized-home .ko-subscribe input,
  .localized-home .ko-subscribe button {
    width: min(100%, 330px);
  }

  .localized-home .ja-home-start {
    align-items: stretch;
    display: block;
    margin-inline: 0.8rem;
  }

  .localized-home .ja-home-start__actions {
    justify-content: flex-start;
    margin-top: 1rem;
    max-width: none;
  }

  .localized-home .ja-subscribe {
    margin-inline: 0.8rem;
  }

  .localized-home .ja-subscribe form {
    flex-direction: column;
  }

  .localized-home .ja-subscribe input,
  .localized-home .ja-subscribe button {
    width: min(100%, 330px);
  }

  .localized-home .tw-home-start {
    align-items: stretch;
    display: block;
    margin-inline: 0.8rem;
  }

  .localized-home .tw-home-start__actions {
    justify-content: flex-start;
    margin-top: 1rem;
    max-width: none;
  }

  .localized-home .tw-subscribe {
    margin-inline: 0.8rem;
  }

  .localized-home .tw-subscribe form {
    flex-direction: column;
  }

  .localized-home .tw-subscribe input,
  .localized-home .tw-subscribe button {
    width: min(100%, 330px);
  }
}

/* =====================================================
   Phase B additions — home.html
   ===================================================== */

/* --- Welcome greeting banner --- */
.member-welcome-greeting {
  background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
  border-bottom: 2px solid #ffe082;
  padding: 1rem 1.25rem;
}

.member-welcome-greeting__inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.member-welcome-greeting__badge {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}

.member-welcome-greeting__title {
  margin: 0 0 0.2rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: #5a3e00;
}

.member-welcome-greeting__sub {
  margin: 0;
  font-size: 0.88rem;
  color: #7a5a00;
  line-height: 1.45;
}

@media (max-width: 480px) {
  .member-welcome-greeting {
    padding: 0.85rem 1rem;
  }
  .member-welcome-greeting__title {
    font-size: 0.97rem;
  }
}

/* --- Nav logout button (desktop) --- */
.nav-logout-btn {
  background: none;
  border: 1.5px solid var(--accent-dark, #e7a800);
  border-radius: 999px;
  color: var(--accent-dark, #e7a800);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav-logout-btn:hover,
.nav-logout-btn:focus-visible {
  background: var(--accent-dark, #e7a800);
  color: #fff;
  outline: none;
}

/* --- Mobile nav logout button --- */
.mobile-nav-logout-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-top: 1px solid rgba(0,0,0,.07);
  color: #c0392b;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.85rem 1.25rem;
  margin-top: 0.25rem;
}

.mobile-nav-logout-btn:hover,
.mobile-nav-logout-btn:focus-visible {
  background: #fff5f5;
  outline: none;
}

/* --- Quick logout button (bottom of page) --- */
button.quick-logout {
  display: inline-block;
  background: none;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  padding: 0.4rem 1.1rem;
  transition: background 0.15s, color 0.15s;
}

button.quick-logout:hover,
button.quick-logout:focus-visible {
  background: rgba(0,0,0,.06);
  outline: none;
}

/* --- Magic Jar video section --- */
.magic-jar-section {
  background: linear-gradient(135deg, #e8f4fd 0%, #d6eaf8 100%);
  padding: 3rem 1.25rem;
  text-align: center;
}

.magic-jar-section__inner {
  max-width: 640px;
  margin: 0 auto;
}

.magic-jar-section h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #1a4a6e;
  margin: 0.4rem 0 0.6rem;
}

.magic-jar-section__sub {
  font-size: 0.93rem;
  color: #3a6a8e;
  margin: 0 0 1.4rem;
}

.magic-jar-section video {
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  cursor: pointer;
  display: block;
  margin: 0 auto;
}

@media (max-width: 480px) {
  .magic-jar-section {
    padding: 2rem 1rem;
  }
  .magic-jar-section h2 {
    font-size: 1.3rem;
  }
}

/* --- Contact CTA link (replacing the form) --- */
.contact-cta-link {
  display: inline-block;
  margin: 1rem 0 0.75rem;
  background: var(--accent, #FFDD59);
  color: #3a2e00;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.contact-cta-link:hover,
.contact-cta-link:focus-visible {
  background: var(--accent-dark, #e7c200);
  transform: translateY(-1px);
  outline: none;
}

/* =====================================================
   Phase E — home.html dark mode toggle buttons
   ===================================================== */

/* Desktop nav pill */
.nav-theme-btn {
  background: none;
  border: 1.5px solid rgba(37,78,112,.25);
  border-radius: 999px;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1;
  min-height: 44px;
  padding: 0 .75rem;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}

.nav-theme-btn:hover,
.nav-theme-btn:focus-visible {
  background: rgba(37,78,112,.07);
  border-color: rgba(37,78,112,.5);
  outline: none;
}

body.dark-mode .nav-theme-btn {
  border-color: rgba(255,255,255,.25);
  color: #f5f5f5;
}

body.dark-mode .nav-theme-btn:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.5);
}

/* Mobile nav row */
.mobile-nav-theme-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,.06);
  color: #254E70;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  min-height: 44px;
  padding: .75rem 1.25rem;
}

.mobile-nav-theme-btn:hover,
.mobile-nav-theme-btn:focus-visible {
  background: rgba(37,78,112,.05);
  outline: none;
}

body.dark-mode .mobile-nav-theme-btn {
  color: #f5f5f5;
  border-bottom-color: rgba(255,255,255,.08);
}

/* =====================================================
   Dark mode — full ruleset for home.html
   (style-index.css carried these for index.html;
    home.html loads style.css so they must live here)
   ===================================================== */

html.dark-mode {
  background: #121212 !important;
  color: #f5f5f5 !important;
}
body.dark-mode {
  background: #121212 !important;
  color: #f5f5f5 !important;
}

/* Header / nav */
html.dark-mode .site-header,
html.dark-mode .navbar {
  background: #1e1e1e !important;
  border-bottom-color: #2a2a2a !important;
  box-shadow: none !important;
}
body.dark-mode .site-header,
body.dark-mode .navbar {
  background: #1e1e1e !important;
  border-bottom-color: #2a2a2a !important;
  box-shadow: none !important;
}

html.dark-mode .navbar-menu a,
html.dark-mode .site-title,
html.dark-mode .site-title span {
  color: #f5f5f5 !important;
}
body.dark-mode .navbar-menu a,
body.dark-mode .site-title,
body.dark-mode .site-title span {
  color: #f5f5f5 !important;
}

html.dark-mode .nav-more summary,
html.dark-mode .nav-more__panel {
  background: #1e1e1e;
  color: #f5f5f5;
}
body.dark-mode .nav-more summary,
body.dark-mode .nav-more__panel {
  background: #1e1e1e;
  color: #f5f5f5;
}

html.dark-mode .nav-more__panel a {
  color: #f5f5f5;
}
body.dark-mode .nav-more__panel a {
  color: #f5f5f5;
}

/* Mobile nav */
html.dark-mode .mobile-nav {
  background: #1a1a1a;
  color: #f5f5f5;
}
body.dark-mode .mobile-nav {
  background: #1a1a1a;
  color: #f5f5f5;
}

html.dark-mode .mobile-nav a,
html.dark-mode .mobile-nav__label {
  color: #ccc;
}
body.dark-mode .mobile-nav a,
body.dark-mode .mobile-nav__label {
  color: #ccc;
}

/* Cards, sections, panels */
html.dark-mode .u-style-010,
html.dark-mode .carousel-slide,
html.dark-mode .home-start__card,
html.dark-mode .next-step__card,
html.dark-mode .topic-card,
html.dark-mode .hlm-res,
html.dark-mode .hlm-res__intro,
html.dark-mode .book-card,
html.dark-mode .worksheet-card,
html.dark-mode .trust-section,
html.dark-mode .creator-card,
html.dark-mode .subscribe-section,
html.dark-mode .contact-section,
html.dark-mode .magic-jar-section {
  background: #1f1f1f !important;
  color: #f5f5f5 !important;
  border-color: #2a2a2a !important;
}
body.dark-mode .u-style-010,
body.dark-mode .carousel-slide,
body.dark-mode .home-start__card,
body.dark-mode .next-step__card,
body.dark-mode .topic-card,
body.dark-mode .hlm-res,
body.dark-mode .hlm-res__intro,
body.dark-mode .book-card,
body.dark-mode .worksheet-card,
body.dark-mode .trust-section,
body.dark-mode .creator-card,
body.dark-mode .subscribe-section,
body.dark-mode .contact-section,
body.dark-mode .magic-jar-section {
  background: #1f1f1f !important;
  color: #f5f5f5 !important;
  border-color: #2a2a2a !important;
}

/* Welcome greeting */
html.dark-mode .member-welcome-greeting {
  background: #2a2200 !important;
  border-bottom-color: #5a4500 !important;
}
body.dark-mode .member-welcome-greeting {
  background: #2a2200 !important;
  border-bottom-color: #5a4500 !important;
}

html.dark-mode .member-welcome-greeting__title {
  color: #ffe082 !important;
}
body.dark-mode .member-welcome-greeting__title {
  color: #ffe082 !important;
}

html.dark-mode .member-welcome-greeting__sub {
  color: #c8a050 !important;
}
body.dark-mode .member-welcome-greeting__sub {
  color: #c8a050 !important;
}

/* Mood check-in */
html.dark-mode .mood-section,
html.dark-mode .mood-check {
  background: #1f1f1f !important;
  color: #f5f5f5 !important;
}
body.dark-mode .mood-section,
body.dark-mode .mood-check {
  background: #1f1f1f !important;
  color: #f5f5f5 !important;
}

/* Footer */
html.dark-mode .site-footer,
html.dark-mode footer {
  background: #1a1a1a !important;
  color: #aaa !important;
  border-top-color: #2a2a2a !important;
}
body.dark-mode .site-footer,
body.dark-mode footer {
  background: #1a1a1a !important;
  color: #aaa !important;
  border-top-color: #2a2a2a !important;
}

/* Inputs and textareas */
html.dark-mode input,
html.dark-mode textarea,
html.dark-mode select {
  background: #2c2c2c !important;
  border-color: #555 !important;
  color: #f5f5f5 !important;
}
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
  background: #2c2c2c !important;
  border-color: #555 !important;
  color: #f5f5f5 !important;
}

/* Smooth transitions */
body,
.site-header,
.navbar,
.mobile-nav,
.member-welcome-greeting {
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

/* ===== Site polish pass: navigation, focus states, and topic browsing ===== */
:root {
  --hlm-surface: #ffffff;
  --hlm-soft-blue: #f3fafd;
  --hlm-soft-mint: #e9fbf7;
  --hlm-soft-pink: #fff0f5;
  --hlm-focus: rgba(37, 78, 112, 0.22);
}

:focus-visible {
  outline: 3px solid var(--hlm-focus);
  outline-offset: 3px;
}

#explore-feelings,
#resources,
#emotional-literacy,
#worksheets,
#contact {
  scroll-margin-top: calc(82px + var(--announcement-height, 0px));
}

.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.navbar-menu > a,
.nav-more > summary,
.nav-logout-btn,
.nav-theme-btn {
  white-space: nowrap;
}

.navbar-menu > a:focus-visible,
.nav-more > summary:focus-visible,
.nav-more__panel a:focus-visible,
.hamburger:focus-visible,
.nav-logout-btn:focus-visible,
.nav-theme-btn:focus-visible {
  outline: 3px solid rgba(37, 78, 112, 0.2);
  outline-offset: 2px;
}

.hamburger {
  box-shadow: 0 8px 20px rgba(37, 78, 112, 0.09);
}

.hamburger[aria-expanded="true"] {
  background: #254e70;
  border-color: #254e70;
  color: #fff;
}

.nav-backdrop {
  background: rgba(14, 31, 43, 0.42);
  backdrop-filter: blur(2px);
}

.mobile-nav {
  gap: 0.08rem;
  border-left: 1px solid rgba(219, 231, 236, 0.9);
  background:
    radial-gradient(125% 125% at 50% 10%, rgba(255, 255, 255, 0.98) 42%, rgba(20, 184, 166, 0.12) 100%),
    #fff;
}

.mobile-nav a,
.mobile-nav button {
  min-height: 44px;
}

.mobile-nav a:focus-visible,
.mobile-nav button:focus-visible {
  outline: 3px solid rgba(37, 78, 112, 0.2);
  outline-offset: 2px;
}

.mobile-nav__close:hover,
.mobile-nav__close:focus-visible {
  background: #e6f4f8;
  color: #173e5c;
}

.body-lock {
  overflow: hidden;
  touch-action: none;
}

.hlm-res {
  position: relative;
  overflow: hidden;
}

.hlm-res::before {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 78, 112, 0.16), transparent);
  content: "";
}

.topic-library {
  border-radius: 16px;
  background:
    radial-gradient(125% 125% at 50% 10%, rgba(255, 255, 255, 0.95) 40%, rgba(20, 184, 166, 0.16) 100%),
    rgba(255, 255, 255, 0.92);
}

.topic-library__head h3 {
  letter-spacing: 0;
}

.topic-library__search input {
  padding-left: 2.25rem;
  background:
    linear-gradient(90deg, transparent 0 0),
    #fff;
}

.topic-library__search {
  position: relative;
}

.topic-library__search::before {
  position: absolute;
  left: 0.78rem;
  top: 50%;
  z-index: 1;
  width: 0.82rem;
  height: 0.82rem;
  border: 2px solid #7a96a5;
  border-radius: 50%;
  transform: translateY(-58%);
  content: "";
}

.topic-library__search::after {
  position: absolute;
  left: 1.43rem;
  top: 58%;
  z-index: 1;
  width: 0.42rem;
  height: 2px;
  border-radius: 999px;
  background: #7a96a5;
  transform: rotate(45deg);
  content: "";
}

.topic-card {
  position: relative;
  padding-left: 3.25rem;
}

.topic-card::before {
  position: absolute;
  left: 0.86rem;
  top: 0.86rem;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(37, 78, 112, 0.08);
  color: #254e70;
  font-size: 1rem;
  content: ".";
}

.topic-card:nth-child(1)::before { content: "E"; background: #fff0f5; color: #cf596a; }
.topic-card:nth-child(2)::before { content: "~"; background: #e9fbf7; color: #108a78; }
.topic-card:nth-child(3)::before { content: "!"; background: #fff7dc; color: #9d7100; }
.topic-card:nth-child(4)::before { content: "+"; background: #edf4ff; color: #315d93; }
.topic-card:nth-child(5)::before { content: "C"; background: #e9fbf7; color: #108a78; }
.topic-card:nth-child(6)::before { content: "H"; background: #fff0f5; color: #cf596a; }

.topic-card:hover,
.topic-card:focus-visible,
.topic-library__list a:hover,
.topic-library__list a:focus-visible {
  box-shadow: 0 10px 24px rgba(37, 78, 112, 0.1);
}

.topic-more summary {
  min-height: 42px;
  padding: 0.3rem 0;
}

@media (max-width: 768px) {
  #explore-feelings,
  #resources,
  #emotional-literacy,
  #worksheets,
  #contact {
    scroll-margin-top: calc(74px + var(--announcement-height, 48px));
  }

  .mobile-nav {
    width: min(88vw, 380px);
    padding: 1rem 0.9rem 1.5rem;
  }
}

@media (max-width: 420px) {
  .site-header .site-title {
    font-size: 1rem;
  }

  .topic-card {
    padding-left: 0.9rem;
    padding-top: 3.15rem;
  }

  .topic-card::before {
    top: 0.82rem;
  }
}

/* =====================================================
   Gentle motion layer
   Order: entrance, card lift, button feedback, selective glow.
   ===================================================== */
@keyframes hlm-soft-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hlm-calm-glow {
  0%,
  100% {
    box-shadow: 0 14px 34px rgba(37, 78, 112, 0.1);
  }

  50% {
    box-shadow: 0 18px 42px rgba(20, 184, 166, 0.18);
  }
}

/* 1. Page and section entrance */
main > section,
.hero,
.section,
.topic-library,
.worksheet-section,
.resource-page,
.feelings-guide,
.book-section,
.song-section {
  animation: hlm-soft-rise 0.56s ease-out both;
}

/* 2. Card hover lift */
.character-card,
.book-card,
.worksheet-card,
.topic-card,
.resource-card,
.next-step__card,
.video-card,
.song-card,
.tool-card,
.audiobook-card,
.login-box {
  will-change: transform;
}

.character-card:hover,
.book-card:hover,
.worksheet-card:hover,
.topic-card:hover,
.resource-card:hover,
.next-step__card:hover,
.video-card:hover,
.song-card:hover,
.tool-card:hover,
.audiobook-card:hover {
  transform: translateY(-4px);
}

.character-card:focus-within,
.book-card:focus-within,
.worksheet-card:focus-within,
.topic-card:focus-within,
.resource-card:focus-within,
.next-step__card:focus-within,
.video-card:focus-within,
.song-card:focus-within,
.tool-card:focus-within,
.audiobook-card:focus-within {
  transform: translateY(-3px);
}

/* 3. Button press feedback */
.btn,
.next-step__card,
.vid-btn,
.share-row button,
.mobile-nav-toggle,
.dark-mode-toggle {
  transition:
    transform 0.18s ease,
    box-shadow 0.24s ease,
    background-color 0.24s ease,
    border-color 0.24s ease,
    color 0.24s ease;
}

.btn:active,
.vid-btn:active,
.share-row button:active,
.mobile-nav-toggle:active,
.dark-mode-toggle:active {
  transform: scale(0.98);
}

/* 4. Selective glow for genuinely featured moments */
.announcement-card,
.topic-card--primary,
.newyear-banner:not([hidden]) {
  animation: hlm-calm-glow 4.8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
