*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}/*
! tailwindcss v3.4.18 | MIT License | https://tailwindcss.com
*//*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */ /* 3 */
  tab-size: 4; /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

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

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/
dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/
:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */
[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}
.\!container {
  width: 100% !important;
}
.container {
  width: 100%;
}
@media (min-width: 640px) {

  .\!container {
    max-width: 640px !important;
  }

  .container {
    max-width: 640px;
  }
}
@media (min-width: 768px) {

  .\!container {
    max-width: 768px !important;
  }

  .container {
    max-width: 768px;
  }
}
@media (min-width: 1024px) {

  .\!container {
    max-width: 1024px !important;
  }

  .container {
    max-width: 1024px;
  }
}
@media (min-width: 1280px) {

  .\!container {
    max-width: 1280px !important;
  }

  .container {
    max-width: 1280px;
  }
}
@media (min-width: 1536px) {

  .\!container {
    max-width: 1536px !important;
  }

  .container {
    max-width: 1536px;
  }
}
.visible {
  visibility: visible;
}
.invisible {
  visibility: hidden;
}
.static {
  position: static;
}
.fixed {
  position: fixed;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.block {
  display: block;
}
.inline {
  display: inline;
}
.flex {
  display: flex;
}
.table {
  display: table;
}
.grid {
  display: grid;
}
.hidden {
  display: none;
}
.grow {
  flex-grow: 1;
}
.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.resize {
  resize: both;
}
.border {
  border-width: 1px;
}
.uppercase {
  text-transform: uppercase;
}
.outline {
  outline-style: solid;
}
.ring {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 0 #0000;
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.transition {
  transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

html, body, #root {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100%;
}

body {
  background: #faf8fc;
  font-family: 'Baloo 2', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family:
    source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace;
}

.App {
  text-align: center;
}

/* Loading spinner styles for lazy loading */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #ffffff;
  color: #2e0f35;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

.loading-text {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
  opacity: 0.9;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.App-logo {
  height: 40vmin;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .App-logo {
    animation: App-logo-spin infinite 20s linear;
  }
}

.App-header {
  background-color: #282c34;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: calc(10px + 2vmin);
  color: white;
}

.App-link {
  color: #61dafb;
}

@keyframes App-logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.twig-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.twig-loader-lg {
  min-height: 140px;
}

.twig-loader-sm {
  min-height: 0;
}

.twig-loader-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  animation: twigSpin 1.1s linear infinite;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}

.twig-loader-sm .twig-loader-img {
  width: 18px;
  height: 18px;
}

.twig-loader-text {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #5b3d60;
  opacity: 0.9;
}

@keyframes twigSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Baloo 2",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  line-height: 1.6;
  color: #222;
  background: #fff;
  overflow-x: hidden;
}

/* Landing Container */
.landing-container {
  overflow-x: hidden;
  width: 100%;
}

/* Top Bar */
.top-bar {
  height: 0;
  background: transparent;
  width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: #ffffff;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero-section {
  background: #fff !important;
  border-radius: 0;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
  padding: 150px 0 10px 0;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 60px;
  transition: all 0.3s ease;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
}

.hero-text {
  flex: 1 1;
}

.hero-headline {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 24px;
  color: #2e0f35;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.headline-line {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.headline-line.highlight {
  background: linear-gradient(135deg, #e2842d, #c97222);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.headline-line.small-highlight {
  font-size: 0.7em;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #666;
  margin-bottom: 40px;
  line-height: 1.5;
  transition: all 0.3s ease;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.3s ease;
}

.cta-primary {
  background: #e2842d;
  color: #fff;
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: inline-block;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  box-sizing: border-box;
  box-shadow: 0 8px 25px rgba(226, 132, 45, 0.5);
  transform: translateY(-2px);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  flex-shrink: 0;
}

.cta-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.cta-primary:hover::before {
  left: 100%;
}

.cta-primary:hover {
  background: #c97222;
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(226, 132, 45, 0.6);
}

.cta-secondary {
  background: #fff;
  color: #e2842d;
  padding: 16px 32px;
  border: 2px solid #e2842d;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: inline-block;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  pointer-events: auto;
  cursor: pointer;
  z-index: 10;
  flex-shrink: 0;
}

.cta-secondary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #e2842d;
  transition: left 0.3s ease;
  z-index: -1;
}

.cta-secondary:hover::before {
  left: 0;
}

.cta-secondary:hover {
  color: #fff;
  transform: translateY(-2px);
}

.cta-kids-login {
  background: #c984c7;
  color: #ffffff;
  padding: 16px 10px;
  border: 2px solid #c984c7;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  white-space: nowrap;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  pointer-events: auto;
  cursor: pointer;
  z-index: 10;
  flex-shrink: 0;
  box-shadow: 0 8px 25px rgba(201, 132, 199, 0.35);
}

.cta-kids-login:hover {
  background: #b56ab2;
  border-color: #b56ab2;
  color: #ffffff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(201, 132, 199, 0.45);
}

/* Active and Inactive Button States */
.cta-primary.active {
  background: #e2842d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(226, 132, 45, 0.4);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.cta-primary.inactive {
  background: #fff;
  color: #e2842d;
  border: 2px solid #e2842d;
  transform: translateY(-2px);
  opacity: 0.7;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.cta-primary.inactive:hover {
  background: #fff;
  color: #e2842d;
  border: 2px solid #e2842d;
  transform: translateY(-2px);
  opacity: 1;
  box-shadow: 0 4px 15px rgba(226, 132, 45, 0.3);
}

.cta-secondary.active {
  background: #e2842d;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(224, 124, 30, 0.4);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.cta-secondary.inactive {
  background: #fff;
  color: #e2842d;
  border: 2px solid #e2842d;
  transform: translateY(-2px);
  opacity: 0.7;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  box-sizing: border-box;
  flex-shrink: 0;
}

/* Enhanced smooth transitions for state changes */
.cta-primary,
.cta-secondary,
.cta-kids-login {
  will-change:
    transform, background-color, color, border-color, opacity, box-shadow;
}

/* Smooth hover transitions that work with active states */
.cta-primary:not(.active):not(.inactive):hover {
  background: #c97222;
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(226, 132, 45, 0.6);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}

.cta-secondary:not(.active):not(.inactive):hover,
.cta-secondary.inactive:hover {
  color: #fff;
  transform: translateY(-2px);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(226, 132, 45, 0.4);
}

/* Enhanced active state animations */
.cta-primary.active {
  background: #e2842d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(226, 132, 45, 0.4);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.cta-secondary.active {
  background: #e2842d;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(226, 132, 45, 0.4);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  box-sizing: border-box;
  flex-shrink: 0;
}

/* Enhanced inactive state animations */
.cta-primary.inactive {
  background: #fff;
  color: #e2842d;
  border: 2px solid #e2842d;
  transform: translateY(-2px);
  opacity: 0.7;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.cta-primary.inactive:hover {
  background: #fff;
  color: #e2842d;
  border: 2px solid #e2842d;
  transform: translateY(-2px);
  opacity: 1;
  box-shadow: 0 6px 20px rgba(226, 132, 45, 0.3);
  cursor: pointer;
}

.cta-secondary.inactive {
  background: #fff;
  color: #e2842d;
  border: 2px solid #e2842d;
  transform: scale(1);
  opacity: 1;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: auto;
  cursor: pointer;
}

.cta-secondary.inactive:hover {
  color: #fff;
  transform: translateY(-2px) scale(1.02);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(226, 132, 45, 0.4);
}

/* Cross-hover animation: Get started button changes to white when hovering "Already got twig" */
.cta-primary.cross-hover {
  background: #ffffff !important;
  color: #e2842d !important;
  border: 2px solid #e2842d !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(226, 132, 45, 0.4) !important;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  cursor: pointer !important;
  z-index: 10 !important;
  position: relative !important;
}

/* Ensure cross-hover overrides all other states */
.cta-primary.cross-hover.active,
.cta-primary.cross-hover.inactive {
  background: #ffffff !important;
  color: #e2842d !important;
  border: 2px solid #e2842d !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(226, 132, 45, 0.4) !important;
}

/* Enhanced cursor hover effect for "Already got twig" button */
.cta-secondary:hover {
  color: #fff;
  transform: translateY(-2px);
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(226, 132, 45, 0.4);
}

/* Cursor pointer for all button states */
.cta-primary,
.cta-secondary,
.cta-kids-login {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Enhanced cursor hover effects */
.cta-primary:hover,
.cta-secondary:hover,
.cta-kids-login:hover {
  cursor: pointer;
}

/* Pulse animation for active buttons */
@keyframes buttonPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(226, 132, 45, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(226, 132, 45, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(226, 132, 45, 0);
  }
}

/* Slide in animation for header CTA */
@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Add pulse animation to active buttons */
.cta-primary.active,
.cta-secondary.active {
  animation: buttonPulse 2s infinite;
}

/* Enhanced shine effect for buttons */
.cta-primary::after,
.cta-secondary::after,
.cta-kids-login::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s ease;
  z-index: 1;
  pointer-events: none;
}

.cta-primary:hover::after,
.cta-secondary:hover::after,
.cta-kids-login:hover::after {
  left: 100%;
}

/* Ensure text stays above shine effect */
.cta-primary,
.cta-secondary,
.cta-kids-login {
  position: relative;
  z-index: 2;
}

/* Enhanced hover animation for "Get started" button */
.cta-primary:hover:not(.cross-hover) {
  background: #c97222;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(226, 132, 45, 0.4);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}

/* Ensure smooth transition back to normal state */
.cta-primary:not(.cross-hover) {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Enhanced cursor effects for better UX */
.cta-primary:active,
.cta-secondary:active,
.cta-kids-login:active {
  transform: translateY(0) scale(0.98);
  transition: all 0.1s ease;
  cursor: pointer;
}

/* Focus states for accessibility */
.cta-primary:focus,
.cta-secondary:focus,
.cta-kids-login:focus {
  outline: 2px solid #e2842d;
  outline-offset: 2px;
  cursor: pointer;
}

/* Disabled state styling */
.cta-primary:disabled,
.cta-secondary:disabled,
.cta-kids-login:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

/* Loading state animation */
@keyframes buttonLoading {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.cta-primary.loading,
.cta-secondary.loading,
.cta-kids-login.loading {
  position: relative;
  color: transparent;
  cursor: wait;
}

.cta-primary.loading::before,
.cta-secondary.loading::before,
.cta-kids-login.loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: buttonLoading 1s linear infinite;
}

/* Smooth transition for cross-hover effect */
.cta-primary.cross-hover::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(226, 132, 45, 0.2),
    transparent
  ) !important;
  transition: left 0.5s ease !important;
}

/* Hero Title with CTA beside it */
.hero-title-with-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  margin-bottom: 10px;
  text-align: center;
  position: relative;
  z-index: 20;
}

.hero-cta-beside-title {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex-shrink: 0;
  position: relative;
  z-index: 21;
}

.hero-frames-container {
  position: relative;
  width: 100%;
  height: 300px;
  margin-top: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 5%;
  pointer-events: none;
  z-index: 0;
}

.hero-frames-container img {
  pointer-events: none;
}

.hero-frame-1 {
  position: absolute;
  left: 0%;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 400px;
  object-fit: contain;
  z-index: 1;
  opacity: 0;
}

.hero-frame-1.animating {
  animation: walkingFromLeft 2.2s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 1;
}

@keyframes frameCycle {
  0% {
    opacity: 0;
    transform: translateY(-50%) scale(1);
    filter: blur(0px);
  }
  20% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    filter: blur(0px);
  }
  80% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    filter: blur(0px);
  }
  100% {
    opacity: 0;
    transform: translateY(-50%) scale(1);
    filter: blur(0px);
  }
}

@keyframes frame1BottomToTop {
  0% {
    opacity: 0;
    transform: translateY(50%) scale(1);
    filter: blur(0px);
  }
  20% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    filter: blur(0px);
  }
  80% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    filter: blur(0px);
  }
  100% {
    opacity: 0;
    transform: translateY(-50%) scale(1);
    filter: blur(0px);
  }
}

@keyframes walkingFromLeft {
  0% {
    opacity: 0.1;
    transform: translateX(-80px) translateY(-50%) scale(0.8);
    filter: blur(6px);
  }
  20% {
    opacity: 0.4;
    transform: translateX(-40px) translateY(-50%) scale(0.9);
    filter: blur(3px);
  }
  40% {
    opacity: 1;
    transform: translateX(0) translateY(-55%) scale(1);
    filter: blur(0px);
  }
  60% {
    opacity: 1;
    transform: translateX(0) translateY(-50%) scale(1);
    filter: blur(0px);
  }
  80% {
    opacity: 0.4;
    transform: translateX(40px) translateY(-50%) scale(0.9);
    filter: blur(3px);
  }
  100% {
    opacity: 0.1;
    transform: translateX(80px) translateY(-50%) scale(0.8);
    filter: blur(6px);
  }
}

@keyframes emergeFromBottom {
  0% {
    opacity: 0;
    transform: translateY(60%) translateY(-50%) scale(0.85);
    filter: blur(8px);
  }
  8% {
    opacity: 0.2;
    transform: translateY(20%) translateY(-50%) scale(0.92);
    filter: blur(6px);
  }
  20% {
    opacity: 0.8;
    transform: translateY(-10%) translateY(-50%) scale(0.98);
    filter: blur(3px);
  }
  35% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    filter: blur(0px);
  }
  60% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    filter: blur(0px);
  }
  80% {
    opacity: 0.6;
    transform: translateY(-50%) scale(0.99);
    filter: blur(2px);
  }
  100% {
    opacity: 0;
    transform: translateY(-50%) scale(0.97);
    filter: blur(6px);
  }
}

.hero-frame-2 {
  position: absolute;
  left: 15%;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 400px;
  object-fit: contain;
  z-index: 2;
  opacity: 0;
}

.hero-frame-2.animating {
  animation: walkingFromLeft 2.2s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 1;
}

.hero-frame-3 {
  position: absolute;
  left: 30%;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 400px;
  object-fit: contain;
  z-index: 3;
  opacity: 0;
}

.hero-frame-3.animating {
  animation: walkingFromLeft 2.2s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 1;
}

.hero-frame-4 {
  position: absolute;
  left: 45%;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 400px;
  object-fit: contain;
  z-index: 4;
  opacity: 0;
}

.hero-frame-4.animating {
  animation: walkingFromLeft 2.2s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 1;
}

.hero-frame-5 {
  position: absolute;
  left: 60%;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 400px;
  object-fit: contain;
  z-index: 5;
  opacity: 0;
}

.hero-frame-5.animating {
  animation: walkingFromLeft 2.2s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 1;
}

.hero-frame-6 {
  position: absolute;
  left: 75%;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 400px;
  object-fit: contain;
  z-index: 6;
  opacity: 0;
}

.hero-frame-6.animating {
  animation: walkingFromLeft 2.2s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 1;
}

.hero-frame-7 {
  position: absolute;
  left: 92%;
  top: 50%;
  transform: translateY(-50%);
  width: 220px;
  height: 460px;
  object-fit: contain;
  z-index: 1;
  opacity: 0;
}

.hero-frame-7.animating {
  animation: frameCycle 0.6s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes emergeFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-60%) translateY(-50%) scale(0.85);
    filter: blur(8px);
  }
  8% {
    opacity: 0.2;
    transform: translateX(-20%) translateY(-50%) scale(0.92);
    filter: blur(6px);
  }
  20% {
    opacity: 0.8;
    transform: translateX(5%) translateY(-50%) scale(0.98);
    filter: blur(3px);
  }
  35% {
    opacity: 1;
    transform: translateX(0) translateY(-50%) scale(1);
    filter: blur(0px);
  }
  60% {
    opacity: 1;
    transform: translateX(0) translateY(-50%) scale(1);
    filter: blur(0px);
  }
  80% {
    opacity: 0.6;
    transform: translateX(0) translateY(-50%) scale(0.99);
    filter: blur(2px);
  }
  100% {
    opacity: 0;
    transform: translateX(0) translateY(-50%) scale(0.97);
    filter: blur(6px);
  }
}

/* Service Panels Section */
.service-panels-section {
  /* background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%); */
  background:
    radial-gradient(
      1200px 600px at 10% 10%,
      rgba(201, 132, 199, 0.25),
      transparent 60%
    ),
    radial-gradient(
      1000px 600px at 90% 20%,
      rgba(226, 132, 45, 0.22),
      transparent 60%
    ),
    radial-gradient(
      800px 500px at 30% 90%,
      rgba(201, 132, 199, 0.18),
      transparent 60%
    );
  border-radius: 0;
  margin-bottom: 10px;
  padding: 10px 0 80px 0;
}

.service-panels-container {
  text-align: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
}

.service-panels-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px 0;
}

/* .service-panels {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 100%;
}

.service-panel {
  flex: 0 0 calc(50% - 10px);
  min-width: 320px;
  max-width: 400px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 20px 15px;
  border-radius: 24px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-sizing: border-box;
  transform-style: preserve-3d;
  perspective: 1000px;
  height: 420px;
  min-height: 420px;
}

/* Very large screens: 4 boxes in one row (only for very wide screens) */
@media (min-width: 1400px) {
  .service-panels {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .service-panel {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: calc(25% - 15px);
    min-width: 300px;
    max-width: 350px;
  }
}

/* Default 2x2 grid for most screen sizes */
@media (max-width: 1399px) {
  .service-panels {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  .service-panel {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: calc(50% - 10px);
    min-width: 320px;
    max-width: 400px;
    width: calc(50% - 10px) !important;
  }
}

/* Large desktop screens: 4 boxes in one row (but with smaller max-width) */
@media (min-width: 1200px) and (max-width: 1399px) {
  .service-panel {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: calc(25% - 15px);
    min-width: 250px;
    max-width: 280px;
  }
}

/* Force 2x2 grid when screen width is between 1000px and 1199px (laptop minimized) */
@media (max-width: 1199px) and (min-width: 1000px) {
  .service-panels {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  .service-panel {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: calc(50% - 10px);
    min-width: 320px;
    max-width: 400px;
    width: calc(50% - 10px) !important;
  }
}

/* Laptop screens: 2 rows of 2 boxes each (default behavior) */
@media (max-width: 1199px) and (min-width: 768px) {
  .service-panels {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  .service-panel {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: calc(50% - 10px);
    min-width: 320px;
    max-width: 400px;
    width: calc(50% - 10px) !important;
  }
}

/* Medium screens: 2 rows of 2 boxes each (maintain 2x2 as long as possible) */
@media (max-width: 767px) and (min-width: 601px) {
  .service-panels {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  .service-panel {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: calc(50% - 10px);
    min-width: 280px;
    max-width: 350px;
    width: calc(50% - 10px) !important;
  }
}

/* Small tablets: Force 2x2 grid */
@media (max-width: 800px) and (min-width: 601px) {
  .service-panels {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  .service-panel {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: calc(50% - 10px);
    min-width: 270px;
    max-width: 320px;
    width: calc(50% - 10px) !important;
  }
}

/* Small screens: 4 rows of 1 box each (only when absolutely necessary) */
@media (max-width: 600px) {
  .service-panels {
    gap: 15px;
  }

  .service-panel {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: calc(100% - 20px);
    min-width: 320px;
    max-width: 100%;
  }
}

/* Extra small screens: ensure single column layout */
@media (max-width: 480px) {
  .service-panels {
    gap: 12px;
  }

  .service-panel {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: calc(100% - 15px);
    min-width: 300px;
    max-width: 100%;
  }
}

.service-panel:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.service-panel:hover .card-inner {
  transform: rotateY(180deg);
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 10px 10px 30px 10px;
  box-sizing: border-box;
  overflow: visible;
}

.card-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #e2842d 0%, #c984c7 100%);
  border-radius: 24px;
  color: white;
  justify-content: center;
}

.back-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  margin: 0 0 15px 0;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.4;
  width: 100%;
}

.back-text {
  font-size: 0.95rem;
  font-weight: 400;
  color: white;
  margin: 0 0 12px 0;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  width: 100%;
}

.back-text:last-child {
  margin-bottom: 0;
}

.service-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #c984c7, #e2842d);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-panel:hover::before {
  transform: scaleX(1);
}

.panel-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  margin-top: 0;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  width: 100%;
  flex-shrink: 0;
}

.panel-icon-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.service-panel:hover .panel-icon {
  transform: scale(1.1);
}

.service-panel:hover .panel-icon-image {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.panel-title {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 1.36rem;
  margin-bottom: 15px;
  margin-top: 0;
  color: #2e0f35;
  transition: color 0.3s ease;
  text-align: center;
  line-height: 1.3;
  word-wrap: break-word;
  -webkit-hyphens: auto;
          hyphens: auto;
  text-transform: uppercase;
  min-height: 2.6em;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.service-panel:hover .panel-title {
  color: #e2842d;
}

.panel-description {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 24px;
  transition: color 0.3s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
          hyphens: auto;
  text-align: justify;
  text-justify: inter-word;
  white-space: normal;
  display: block;
}

.panel-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  margin-top: auto;
  margin-bottom: 10px;
  flex-grow: 1;
  justify-content: flex-start;
  padding: 0 5px 10px 5px;
  text-align: center;
  width: 100%;
}

.stat {
  font-size: 1.5rem;
  font-weight: 800;
  color: #e2842d;
  transition: transform 0.3s ease;
  text-align: center;
}

.service-panel:hover .stat {
  transform: scale(1.1);
}

.stat-label {
  font-size: 0.9rem;
  color: #2e0f35;
  font-weight: 600;
  transition: color 0.3s ease;
  text-align: center;
  line-height: 1.4;
  word-wrap: break-word;
  -webkit-hyphens: auto;
          hyphens: auto;
}

.service-panel:hover .stat-label {
  color: #e2842d;
}
*/


/* Why TWIG Section Title */
.why-twigs-title-section {
  background: #ffffff;
  padding: 20px 0 10px 0;
  text-align: center;
}

.why-twigs-title-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

.why-twigs-title-container .section-heading {
  color: #222;
  font-size: 2.6rem; /* Match FAQ title size */
  font-weight: 600; /* Match FAQ title weight */
  font-family: "Poppins", sans-serif; /* Match FAQ title font */
}

/* Match "What You Learn" section heading with FAQ title */
.service-panels-section .section-heading {
  font-size: 2.6rem; /* Match FAQ title size */
  font-weight: 600; /* Match FAQ title weight */
  font-family: "Poppins", sans-serif; /* Match FAQ title font */
}

/* Why TWIG Subsections — shared spacing */
.safe-exploration-section,
.build-skills-section,
.earn-learn-section,
.modules-grow-section {
  border-radius: 0;
  margin: 0;
  padding: 5px 0;
}

.safe-exploration-content,
.build-skills-content,
.earn-learn-content,
.modules-grow-content {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
  transition: all 0.3s ease;
}

.safe-exploration-text,
.build-skills-text,
.earn-learn-text,
.modules-grow-text {
  flex: 1 1;
}

.safe-exploration-section .section-description,
.build-skills-section .section-description,
.earn-learn-section .section-description,
.modules-grow-section .section-description {
  text-align: center;
  text-justify: none;
}

.safe-exploration-section .safe-illustration-img,
.build-skills-illustration,
.earn-learn-illustration,
.modules-grow-illustration {
  width: 320px;
  height: 245px;
  flex-shrink: 0;
}

/* Safe Exploration Section */
.safe-exploration-section {
  background: #ffffff;
}

.safe-exploration-content .safe-illustration-img {
  object-fit: cover;
}

.section-heading {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 2.6rem;
  margin-bottom: 15px;
  color: #222;
  transition: all 0.3s ease;
}

.subsection-heading {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 27px;
  margin-bottom: 10px;
  color: #222;
  transition: all 0.3s ease;
  text-align: center;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
  transition: all 0.3s ease;
}

.section-description {
  font-size: 1.3rem;
  color: #333;
  line-height: 1.5;
  transition: all 0.3s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
          hyphens: auto;
  text-align: justify;
  text-justify: inter-word;
}

.safe-illustration-img {
  width: 480px;
  max-width: 100%;
  height: 260px;
  display: block;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  object-fit: cover;
  object-position: center;
}

.safe-illustration-img:hover {
  transform: scale(1.02);
}

.safe-exploration-illustration {
  position: relative;
  width: 0.05px;
  height: 0.03px;
}

.calendar {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #87ceeb;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.calendar-day {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.character-group {
  position: absolute;
  top: 120px;
  left: 50px;
  display: flex;
  gap: 20px;
}

.character {
  width: 80px;
  height: 80px;
  background: #ff9500;
  border-radius: 12px;
  position: relative;
}

.character-1::before {
  content: "😊";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
}

.character-2::before {
  content: "😊";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
}

.tree-piggy {
  position: absolute;
  top: 120px;
  right: 50px;
}

.tree {
  width: 60px;
  height: 80px;
  background: #90ee90;
  border-radius: 8px;
  margin-bottom: 10px;
}

.piggy-bank {
  width: 40px;
  height: 40px;
  background: #ffb6c1;
  border-radius: 50%;
  position: relative;
}

.piggy-bank::before {
  content: "🐷";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
}

.calendar-piggy {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
}

/* Modules That Grow With You Section */
.modules-grow-section {
  background: #ffffff;
}

.modules-grow-illustration {
  position: relative;
  transition: all 0.3s ease;
}

.modules-grow-illustration img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.modules-grow-illustration:hover img {
  transform: scale(1.02);
}

/* For Parents Section */
.parents-section {
  background: #f8f9fa;
  border-radius: 0;
  margin-bottom: 10px;
  padding: 40px 0;
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
  flex: 1 1;
  text-align: left;
  position: relative;
  width: 340px;
  height: 260px;
  transition: all 0.3s ease;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 20px;
  transition: transform 0.3s ease;
  transform: scale(1.02);
}

/* For Builders & Teachers Section */
.builders-teachers-section {
  background: #f8f9fa;
  border-radius: 0;
  margin-bottom: 10px;
  padding: 40px 0;
}

.builders-teachers-content {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
  transition: all 0.3s ease;
}

.builders-teachers-text {
  flex: 1 1;
  text-align: left;
}
.builders-teachers-illustration {
  position: relative;
  width: 340px;
  height: 260px;
  transition: all 0.3s ease;
}

.builders-teachers-illustration img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.builders-teachers-illustration:hover img {
  transform: scale(1.02);
}

/* Build Money Skills Section */
.build-skills-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.build-skills-illustration {
  position: relative;
  transition: all 0.3s ease;
}

.build-skills-illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.build-skills-illustration:hover img {
  transform: scale(1.02);
}

/* Earn As You Learn Section */
.earn-learn-section {
  background: #ffffff;
}

.earn-learn-illustration {
  position: relative;
  transition: all 0.3s ease;
}

.earn-learn-illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.earn-learn-illustration:hover img {
  transform: scale(1.02);
}

/*   Section */
.faq-section {
  background: #ffffff;
  padding: 80px 0;
}

.faq-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
}

.faq-content {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

.faq-left {
  flex: 1 1;
  text-align: left;
}

.faq-right {
  flex: 1 1;
  text-align: left;
}

.faq-section-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.faq-title {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 2.6rem;
  color: #222;
  margin-top: 20px;
  margin-bottom: 10px;
  text-align: left;
}

.faq-intro {
  font-size: 1.3rem;
  color: #666;
  line-height: 1.6;
  text-align: left;
}

.faq-contact-link {
  color: #e2842d;
  text-decoration: none;
  font-weight: 1500;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 1.3rem;
  cursor: pointer;
  display: inline;
}

.faq-contact-link:hover {
  text-decoration: underline;
}

.faq-category-title {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 1.5rem;
  color: #000;
  margin-bottom: 20px;
  text-align: left;
}

.faq-list {
  text-align: left;
}

.faq-item {
  border-bottom: 1px solid #e5e5e5;
  padding: 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 20px 0;
}

.faq-question:hover {
  background-color: rgba(201, 132, 199, 0.1);
  border-radius: 8px;
  padding: 20px 15px;
}

.faq-question h4 {
  font-size: 1.1rem;
  font-weight: 500;
  color: #000;
  margin: 0;
}

.faq-icon {
  font-size: 1rem;
  color: #666;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.faq-icon.open {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 15px 0;
  color: #666;
  line-height: 1.6;
  animation: fadeIn 0.3s ease-in-out;
}

.faq-answer p {
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
          hyphens: auto;
  text-align: justify;
  text-justify: inter-word;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-cta {
  text-align: center;
  margin-top: 60px;
}

.faq-cta-title {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 1.8rem;
  color: #222;
  margin-bottom: 15px;
}

.faq-cta-text {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
}

.faq-cta-button {
  background: #e2842d;
  color: #ffffff;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-cta-button:hover {
  background: #c97222;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(226, 132, 45, 0.3);
}

/* Landing Page Footer */
.landing-container .footer {
  background: #ffffff;
  padding: 40px 0 20px 0;
  margin-top: 20px;
  border-top: 1px solid #e5e7eb;
  width: 100%;
}

/* Footer Top Section */
.landing-container .footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 0 60px;
  width: 100%;
  box-sizing: border-box;
}

.landing-container .footer-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.landing-container .footer-logo {
  display: flex;
  align-items: center;
}

/* Footer Mascot Animation */
.landing-container .footer-mascot {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.landing-container .footer-mascot-image {
  height: 60px;
  width: 60px;
  cursor: pointer;
  transition: all 0.3s ease;
  animation:
    mascotBounce 2s ease-in-out infinite,
    mascotFloat 3s ease-in-out infinite,
    mascotJump 4s ease-in-out infinite;
}

.landing-container .footer-mascot-image:hover {
  animation:
    mascotDance 0.6s ease-in-out infinite,
    mascotSpin 1s linear infinite;
  transform: scale(1.2);
}

.landing-container .footer-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #000000;
  text-decoration: none;
  transition: all 0.3s ease;
  opacity: 1;
}

.social-link:hover {
  color: #e2842d;
  opacity: 1;
  transform: scale(1.1);
}

.landing-container .footer-contact {
  display: flex;
  align-items: center;
}

.landing-container .contact-btn {
  background: #ff9500;
  color: #fff;
  border: none;
  padding: 18px 36px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 149, 0, 0.3);
}

.landing-container .contact-btn:hover {
  background: #e6850e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 149, 0, 0.4);
}

.landing-container .contact-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 149, 0, 0.3);
}

/* Footer Bottom Section */
.landing-container .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px 0 60px;
  width: 100%;
  box-sizing: border-box;
  border-top: 1px solid #e5e7eb;
}

.landing-container .footer-legal {
  display: flex;
  gap: 20px;
  align-items: center;
}

.legal-link {
  color: #6b7280;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.legal-link:hover {
  color: #374151;
}

/* FAQ Link in Footer */
.landing-container .footer-nav a.nav-link {
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.landing-container .footer-nav a.nav-link:hover {
  color: #3b82f6;
}

.build-with-us {
  flex: 1 1;
}

.footer-heading {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 1.5rem;
  margin-bottom: 4px;
  color: #2c3e50;
  transition: all 0.3s ease;
}

.footer-description {
  font-size: 1rem;
  color: #495057;
  line-height: 1.4;
  transition: all 0.3s ease;
}

.landing-container .contact-btn {
  background: #ff9500;
  color: #fff;
  border: none;
  padding: 18px 36px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 149, 0, 0.3);
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
}

.landing-container .contact-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.landing-container .contact-btn:hover::before {
  left: 100%;
}

.landing-container .contact-btn:hover {
  background: #e68500;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 149, 0, 0.4);
}

.landing-container .contact-btn:active {
  transform: translateY(0);
}

/* Footer Copyright */
.landing-container .footer-copyright {
  text-align: left;
}

.landing-container .footer-copyright p {
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 400;
  margin: 0;
}

/* Footer Mascot Animation */
.landing-container .footer-mascot {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.landing-container .footer-mascot-image {
  height: 60px;
  width: 60px;
  cursor: pointer;
  transition: all 0.3s ease;
  animation:
    mascotBounce 2s ease-in-out infinite,
    mascotFloat 3s ease-in-out infinite,
    mascotJump 4s ease-in-out infinite;
}

.landing-container .footer-mascot-image:hover {
  animation:
    mascotDance 0.6s ease-in-out infinite,
    mascotSpin 1s linear infinite;
  transform: scale(1.2);
}

/* Bouncy Animation */
@keyframes mascotBounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Floating Animation */
@keyframes mascotFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}

/* Dance Animation on Hover */
@keyframes mascotDance {
  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }
  25% {
    transform: translateX(-5px) rotate(-5deg);
  }
  75% {
    transform: translateX(5px) rotate(5deg);
  }
}

/* Spin Animation on Hover */
@keyframes mascotSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Subtle Left-to-Right Jump Animation */
@keyframes mascotJump {
  0%,
  100% {
    transform: translateX(0px);
  }
  25% {
    transform: translateX(8px);
  }
  50% {
    transform: translateX(0px);
  }
  75% {
    transform: translateX(-8px);
  }
}

.landing-container .footer-copyright p {
  color: #6c757d;
  font-size: 0.8rem;
  font-weight: 400;
  margin: 0;
  transition: color 0.3s ease;
}

.landing-container .footer-copyright p:hover {
  color: rgba(255, 255, 255, 1);
}

/* Enhanced Responsive Design */
@media (max-width: 1400px) {
  .hero-section,
  .service-panels-section,
  .safe-exploration-section,
  .build-skills-section,
  .earn-learn-section,
  .modules-grow-section,
  .builders-teachers-section,
  .faq-section {
    padding-left: 40px;
    padding-right: 40px;
  }

  .hero-content,
  .safe-exploration-content,
  .build-skills-content,
  .earn-learn-content,
  .modules-grow-content {
    gap: 20px;
  }

  .service-panels {
    gap: 30px;
  }

  .portfolio-grid {
    gap: 30px;
  }

  .prev-btn {
    left: -60px;
  }

  .next-btn {
    right: -60px;
  }
}

@media (max-width: 1200px) {
  .hero-content,
  .safe-exploration-content,
  .build-skills-content,
  .earn-learn-content,
  .modules-grow-content,
  .builders-teachers-content {
    gap: 40px;
  }

  .service-panels {
    gap: 20px;
  }

  .hero-headline {
    font-size: 3rem;
  }

  .section-heading {
    font-size: 2.2rem;
  }

  .subsection-heading {
    font-size: 1.3rem;
  }

  .hero-title-with-cta {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .hero-cta-beside-title {
    flex-direction: row;
    gap: 20px;
  }

  .hero-frames-container {
    padding: 0 3%;
  }

  .hero-frame-1 {
    width: 180px;
    height: 360px;
  }

  .hero-frame-2 {
    width: 180px;
    height: 360px;
  }

  .hero-frame-3 {
    width: 180px;
    height: 360px;
  }

  .hero-frame-4 {
    width: 180px;
    height: 360px;
  }

  .hero-frame-5 {
    width: 180px;
    height: 360px;
  }

  .hero-frame-6 {
    width: 180px;
    height: 360px;
  }

  .hero-frame-7 {
    width: 180px;
    height: 360px;
  }

  .section-heading {
    font-size: 1.4rem;
  }

  .subsection-heading {
    font-size: 1.1rem;
  }
}

@media (max-width: 900px) {
  .hero-content,
  .service-panels-container,
  .safe-exploration-content,
  .build-skills-content,
  .earn-learn-content,
  .modules-grow-content {
    padding-left: 30px;
    padding-right: 30px;
  }

  .hero-content,
  .safe-exploration-content,
  .build-skills-content,
  .earn-learn-content,
  .modules-grow-content,
  .builders-teachers-content {
    flex-direction: column;
    gap: 50px;
    text-align: center;
  }

  .service-panels {
    gap: 15px;
  }

  .prev-btn,
  .next-btn {
    display: none;
  }

  .hero-headline {
    font-size: 2.6rem;
  }

  .section-heading {
    font-size: 2rem;
  }

  .subsection-heading {
    font-size: 1.2rem;
  }

  .hero-title-with-cta {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .hero-cta-beside-title {
    flex-direction: row;
    gap: 15px;
  }

  .hero-frames-container {
    padding: 0 2%;
  }

  .hero-frame-1 {
    width: 130px;
    height: 240px;
    animation: emergeFromBottom 2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    filter: blur(8px);
  }

  .hero-frame-2 {
    width: 130px;
    height: 260px;
    animation: emergeFromLeft 2s cubic-bezier(0.23, 1, 0.32, 1) 1.8s forwards;
    filter: blur(8px);
  }

  .hero-frame-3 {
    width: 130px;
    height: 280px;
    animation: emergeFromLeft 2s cubic-bezier(0.23, 1, 0.32, 1) 2.8s forwards;
    filter: blur(8px);
  }

  .hero-frame-4 {
    width: 130px;
    height: 300px;
    animation: emergeFromLeft 2s cubic-bezier(0.23, 1, 0.32, 1) 3.8s forwards;
    filter: blur(8px);
  }

  .hero-frame-5 {
    width: 130px;
    height: 320px;
    animation: emergeFromLeft 2s cubic-bezier(0.23, 1, 0.32, 1) 4.8s forwards;
    filter: blur(8px);
  }

  .hero-frame-6 {
    width: 130px;
    height: 340px;
  }

  .hero-frame-7 {
    width: 130px;
    height: 360px;
    animation: emergeFromLeft 2s cubic-bezier(0.23, 1, 0.32, 1) 6.8s forwards;
    filter: blur(8px);
  }

  .section-heading {
    font-size: 1.4rem;
  }

  .subsection-heading {
    font-size: 1.1rem;
  }

  .footer-top {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 0 40px;
  }

  .footer-left {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .landing-container .footer-nav {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .social-links {
    gap: 20px;
  }

  .social-link {
    width: 22px;
    height: 22px;
  }

  .landing-container .footer-contact {
    justify-content: center;
  }

  .landing-container .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
    padding: 20px 40px 0 40px;
  }

  .landing-container .footer-legal {
    gap: 15px;
  }

  .safe-illustration-img {
    width: 400px;
  }

  .hero-buttons {
    align-items: center;
  }

  .cta-primary,
  .cta-secondary,
  .cta-kids-login {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 100px 0 30px 0;
  }

  .hero-content,
  .service-panels-container,
  .safe-exploration-content,
  .build-skills-content,
  .earn-learn-content,
  .modules-grow-content {
    padding: 0 20px;
  }

  .hero-headline {
    font-size: 2.2rem;
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .hero-buttons {
    gap: 12px;
  }

  .service-panels-section {
    padding: 20px 0 60px 0;
  }

  .section-heading {
    font-size: 1.4rem;
  }

  .subsection-heading {
    font-size: 1rem;
  }

  .hero-title-with-cta {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .hero-cta-beside-title {
    flex-direction: column;
    gap: 10px;
  }

  .hero-frames-container {
    padding: 0 1%;
    height: 180px;
    margin-top: 5px;
  }

  .hero-frame-1 {
    width: 100px;
    height: 180px;
    animation: emergeFromBottom 2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    filter: blur(8px);
  }

  .hero-frame-2 {
    width: 100px;
    height: 180px;
    animation: emergeFromLeft 2s cubic-bezier(0.23, 1, 0.32, 1) 1.8s forwards;
    filter: blur(8px);
  }

  .hero-frame-3 {
    width: 100px;
    height: 180px;
    animation: emergeFromLeft 2s cubic-bezier(0.23, 1, 0.32, 1) 2.8s forwards;
    filter: blur(8px);
  }

  .hero-frame-4 {
    width: 100px;
    height: 180px;
    animation: emergeFromLeft 2s cubic-bezier(0.23, 1, 0.32, 1) 3.8s forwards;
    filter: blur(8px);
  }

  .hero-frame-5 {
    width: 100px;
    height: 180px;
    animation: emergeFromLeft 2s cubic-bezier(0.23, 1, 0.32, 1) 4.8s forwards;
    filter: blur(8px);
  }

  .hero-frame-6 {
    width: 100px;
    height: 180px;
  }

  .hero-frame-7 {
    width: 100px;
    height: 180px;
    animation: emergeFromLeft 2s cubic-bezier(0.23, 1, 0.32, 1) 6.8s forwards;
    filter: blur(8px);
  }

  .section-heading {
    font-size: 1.4rem;
  }

  .subsection-heading {
    font-size: 1.1rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .section-description {
    text-align: left;
    text-justify: none;
  }

  .service-panel {
    padding: 40px 30px;
    height: 420px;
    min-height: 420px;
  }

  .panel-features {
    gap: 8px;
  }

  .feature {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

@media (max-width: 600px) {
  .hero-section {
    padding: 90px 0 25px 0;
  }

  .hero-content,
  .service-panels-container,
  .safe-exploration-content,
  .build-skills-content,
  .earn-learn-content,
  .modules-grow-content {
    padding: 0 20px;
  }

  .hero-headline {
    font-size: 1.9rem;
    margin-bottom: 12px;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .hero-buttons {
    gap: 10px;
  }

  .service-panels-section {
    padding: 15px 0 50px 0;
  }

  .section-heading {
    font-size: 1.4rem;
  }

  .subsection-heading {
    font-size: 1.1rem;
  }

  .section-heading {
    font-size: 1.4rem;
  }

  .subsection-heading {
    font-size: 1.1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-subtitle {
    font-size: 0.9rem;
  }

  .service-panel {
    padding: 30px 20px;
    height: 380px;
    min-height: 380px;
  }

  .panel-icon {
    font-size: 2.5rem;
  }

  .panel-icon-image {
    width: 60px;
    height: 60px;
  }

  .panel-title {
    font-size: 1.4rem;
  }

  .panel-description {
    font-size: 1rem;
    text-align: left;
    text-justify: none;
  }

  .stat {
    font-size: 1.1rem;
  }

  .panel-number {
    font-size: 2.5rem;
  }

  .safe-illustration-img {
    width: 280px;
  }

  .footer {
    padding: 30px 0 15px 0;
  }

  .footer-top {
    padding: 0 20px;
  }

  .landing-container .footer-bottom {
    padding: 20px 20px 0 20px;
  }

  .landing-container .footer-nav {
    flex-wrap: wrap;
    gap: 15px;
  }

  .footer-heading {
    font-size: 1.6rem;
  }

  .footer-description {
    font-size: 1.1rem;
  }

  .landing-container .contact-btn {
    padding: 15px 30px;
    font-size: 1rem;
    width: 100%;
    max-width: 250px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 80px 15px 20px 15px;
    border-radius: 0;
  }

  .hero-headline {
    font-size: 1.6rem;
    margin-bottom: 10px;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 0.85rem;
    margin-bottom: 18px;
    line-height: 1.4;
  }

  .hero-buttons {
    gap: 8px;
  }

  .hero-title-with-cta {
    gap: 15px;
  }

  .hero-cta-beside-title {
    gap: 8px;
  }

  .cta-primary,
  .cta-secondary,
  .cta-kids-login {
    padding: 12px 24px;
    font-size: 0.95rem;
    width: 100%;
    max-width: 280px;
  }

  .hero-frames-container {
    height: 200px;
    margin-top: 10px;
  }

  .safe-exploration-section,
  .build-skills-section,
  .earn-learn-section,
  .modules-grow-section {
    padding: 5px 15px;
    border-radius: 0;
  }

  .builders-teachers-section,
  .faq-section {
    padding: 60px 15px;
    border-radius: 0;
  }

  .faq-container {
    padding: 0 20px;
  }

  .faq-content {
    flex-direction: column;
    gap: 40px;
  }

  .faq-title {
    font-size: 1.6rem;
  }

  /* Match "What You Learn" and "Why Twig" with FAQ title at mobile */
  .service-panels-section .section-heading,
  .why-twigs-title-container .section-heading {
    font-size: 1.6rem; /* Match FAQ title mobile size */
  }

  .faq-category-title {
    font-size: 1.3rem;
  }

  .service-panels-section {
    padding: 15px 15px 60px 15px;
    border-radius: 0;
  }

  .section-heading {
    font-size: 1.4rem;
  }

  .subsection-heading {
    font-size: 1rem;
  }

  .section-heading {
    font-size: 1.4rem;
  }

  .subsection-heading {
    font-size: 1.1rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .section-subtitle {
    font-size: 0.8rem;
  }

  .service-panel {
    padding: 25px 15px;
    height: 360px;
    min-height: 360px;
  }

  .panel-icon {
    font-size: 2rem;
  }

  .panel-icon-image {
    width: 50px;
    height: 50px;
  }

  .panel-title {
    font-size: 1.3rem;
  }

  .panel-description {
    font-size: 0.9rem;
    text-align: left;
    text-justify: none;
  }

  .faq-question {
    padding: 15px 0;
  }

  .faq-question:hover {
    padding: 15px 10px;
  }

  .faq-answer {
    padding: 10px 0;
  }

  .faq-answer p {
    text-align: left;
    text-justify: none;
  }

  .stat {
    font-size: 1.1rem;
  }

  .panel-number {
    font-size: 2rem;
  }

  .safe-illustration-img {
    width: 250px;
  }

  .footer {
    padding: 15px 15px 8px 15px;
    border-radius: 8px 8px 0 0;
  }

  .footer-heading {
    font-size: 1.4rem;
  }

  .footer-description {
    font-size: 1rem;
  }

  .landing-container .contact-btn {
    padding: 12px 25px;
    font-size: 0.9rem;
    max-width: 200px;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .service-panel:hover {
    transform: none;
  }

  .cta-primary:hover,
  .cta-secondary:hover,
  .cta-kids-login:hover,
  .landing-container .contact-btn:hover {
    transform: none;
  }

  .indicator:hover {
    transform: none;
  }

  .feature:hover {
    transform: none;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus States for Accessibility */
.cta-primary:focus,
.cta-secondary:focus,
.cta-kids-login:focus,
.landing-container .contact-btn:focus,
.indicator:focus {
  outline: 2px solid #e2842d;
  outline-offset: 2px;
}

/* Loading States */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.6s ease-in;
}

.slide-up {
  animation: slideUp 0.6s ease-out;
}

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

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Menu Styles */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.mobile-menu-content {
  background: #ffffff;
  width: 90%;
  max-width: 400px;
  border-radius: 20px;
  padding: 30px;
  position: relative;
  animation: slideUp 0.3s ease;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.mobile-menu-header .logo {
  color: #2e0f35;
  font-size: 1.8rem;
}

.close-menu-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: #666;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close-menu-btn:hover {
  background: #f0f0f0;
  color: #333;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.mobile-nav-link {
  color: #333;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.mobile-nav-link:hover {
  color: #e2842d;
  padding-left: 10px;
}

.mobile-menu-cta {
  text-align: center;
}

.mobile-cta-primary {
  background: #e2842d;
  color: #fff;
  padding: 15px 30px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-block;
  width: 100%;
  text-align: center;
  transition: all 0.3s ease;
}

.mobile-cta-primary:hover {
  background: #c97222;
  transform: translateY(-2px);
}

/* Enhanced Mobile Navigation */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .nav.mobile-open {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
    animation: fadeIn 0.3s ease;
  }

  .nav.mobile-open .nav-link {
    font-size: 1.5rem;
    margin: 20px 0;
    opacity: 0;
    animation: slideIn 0.3s ease forwards;
  }

  .nav.mobile-open .nav-link:nth-child(1) {
    animation-delay: 0.1s;
  }
  .nav.mobile-open .nav-link:nth-child(2) {
    animation-delay: 0.2s;
  }
  .nav.mobile-open .nav-link:nth-child(3) {
    animation-delay: 0.3s;
  }
}

/* Touch-friendly button sizes */

.indicator {
  width: 16px;
  height: 16px;
}

.feature {
  padding: 10px 16px;
  font-size: 0.9rem;
}
/* Improved mobile spacing */
@media (max-width: 600px) {
  .service-panels {
    gap: 15px;
  }

  .panel-features {
    gap: 10px;
  }
}

/* Mobile-first animations */
@media (max-width: 768px) {
  .service-panel {
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease;
  }

  .service-panel:active {
    transform: scale(0.98);
  }

  .cta-primary:active,
  .cta-secondary:active,
  .cta-kids-login:active,
  .landing-container .contact-btn:active {
    transform: scale(0.95);
  }
}

/* Mobile performance optimizations */
@media (max-width: 768px) {
  .service-panel::before,
  .cta-primary::before,
  .cta-secondary::before,
  .cta-kids-login::before,
  .landing-container .contact-btn::before {
    display: none;
  }

  .service-panel:hover {
    transform: none;
    box-shadow: none;
  }

  .cta-primary:hover,
  .cta-secondary:hover,
  .cta-kids-login:hover,
  .landing-container .contact-btn:hover {
    transform: none;
    box-shadow: none;
  }
}

/* Mobile accessibility improvements */
@media (max-width: 768px) {
  .indicator[aria-label] {
    position: relative;
  }

  .indicator[aria-label]::after {
    content: attr(aria-label);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }

  .indicator[aria-label]:focus::after {
    opacity: 1;
  }
}

/* Additional mobile animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile scroll improvements */
@media (max-width: 768px) {
  .landing-container {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }

  .service-panels-section,
  .safe-exploration-section,
  .build-skills-section,
  .earn-learn-section,
  .modules-grow-section,
  .builders-teachers-section {
    scroll-margin-top: 80px;
  }
}

/* Mobile image optimizations */
@media (max-width: 768px) {
  .safe-illustration-img {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
}

/* Mobile button feedback */
@media (max-width: 768px) {
  .service-panel:active {
    background: #f8f9fa;
  }

  .indicator:active {
    background: #e2842d;
    transform: scale(1.3);
  }
}

/* Mobile menu button animations */
.mobile-menu-btn span {
  transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile menu overlay animations */
.mobile-menu-overlay {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mobile-menu-content {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Mobile touch targets */
@media (max-width: 768px) {
  .landing-container .footer-nav .nav-link,
  .mobile-nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .indicator {
    min-width: 44px;
    min-height: 44px;
  }

  .feature {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Mobile loading states */
@media (max-width: 768px) {
  .loading .service-panel {
    opacity: 0.6;
    pointer-events: none;
  }
}

/* Mobile scroll snap */

/* Mobile performance */
@media (max-width: 768px) {
  * {
    -webkit-tap-highlight-color: transparent;
  }

  .service-panel {
    will-change: transform;
  }
}

/* Mobile accessibility */
@media (max-width: 768px) {
  .indicator[aria-label] {
    position: relative;
  }

  .indicator[aria-label]::after {
    content: attr(aria-label);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }

  .indicator[aria-label]:focus::after {
    opacity: 1;
  }
}

/* Add at top: global will-change for smoother animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
  will-change: opacity, transform;
}

.reveal-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Subtle stagger for children */
.reveal-on-scroll.in-view .service-panel {
  animation: fadeUp 600ms ease both;
}

.reveal-on-scroll.in-view .service-panel:nth-child(1) {
  animation-delay: 60ms;
}
.reveal-on-scroll.in-view .service-panel:nth-child(2) {
  animation-delay: 120ms;
}
.reveal-on-scroll.in-view .service-panel:nth-child(3) {
  animation-delay: 180ms;
}
.reveal-on-scroll.in-view .service-panel:nth-child(4) {
  animation-delay: 240ms;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animated hero background */
.hero-section {
  position: relative;
  overflow: hidden;
  background: #fff !important;
}

.hero-animated-bg {
  position: absolute;
  inset: 0;
  /* background: radial-gradient(1200px 600px at 10% 10%, rgba(201,132,199,0.25), transparent 60%),
              radial-gradient(1000px 600px at 90% 20%, rgba(226,132,45,0.22), transparent 60%),
              radial-gradient(800px 500px at 30% 90%, rgba(201,132,199,0.18), transparent 60%); */
  filter: blur(0px);
  margin-bottom: 100px;
  padding: 300px 0;
  pointer-events: none;
  animation: bgFloat 24s ease-in-out infinite alternate;
}

.hero-gradient-orb {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(226, 132, 45, 0.3),
    rgba(201, 132, 199, 0.2),
    transparent 70%
  );
  filter: blur(40px);
  pointer-events: none;
  top: 20%;
  left: 60%;
  transform: translate(
    calc(50% - 50%),
    calc(50% - 50%)
  );
  transform: translate(
    calc(var(--mouse-x, 50%) - 50%),
    calc(var(--mouse-y, 50%) - 50%)
  );
  transition: transform 0.1s ease-out;
  animation: orbFloat 8s ease-in-out infinite;
}

@keyframes orbFloat {
  0%,
  100% {
    transform: translate(
        calc(50% - 50%),
        calc(50% - 50%)
      )
      scale(1);
    transform: translate(
        calc(var(--mouse-x, 50%) - 50%),
        calc(var(--mouse-y, 50%) - 50%)
      )
      scale(1);
  }
  50% {
    transform: translate(
        calc(50% - 50%),
        calc(50% - 50%)
      )
      scale(1.1);
    transform: translate(
        calc(var(--mouse-x, 50%) - 50%),
        calc(var(--mouse-y, 50%) - 50%)
      )
      scale(1.1);
  }
}

@keyframes bgFloat {
  0% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(-10px) scale(1.02);
  }
}

/* Floating particles */
.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
  animation: bubble 10s linear infinite;
  mix-blend-mode: screen;
  opacity: 0;
  transform: translate(
    calc(50% - 50%),
    calc(50% - 50%)
  );
  transform: translate(
    calc(var(--mouse-x, 50%) - 50%),
    calc(var(--mouse-y, 50%) - 50%)
  );
  transition: transform 0.1s ease-out;
}

.particle.animate {
  opacity: 1;
  animation:
    bubble 10s linear infinite,
    particleFloat 6s ease-in-out infinite;
}

@keyframes particleFloat {
  0%,
  100% {
    transform: translate(
        calc(50% - 50%),
        calc(50% - 50%)
      )
      scale(1);
    transform: translate(
        calc(var(--mouse-x, 50%) - 50%),
        calc(var(--mouse-y, 50%) - 50%)
      )
      scale(1);
  }
  50% {
    transform: translate(
        calc(50% - 50%),
        calc(50% - 50%)
      )
      scale(1.2);
    transform: translate(
        calc(var(--mouse-x, 50%) - 50%),
        calc(var(--mouse-y, 50%) - 50%)
      )
      scale(1.2);
  }
}

@keyframes bubble {
  0% {
    transform: translateY(20px) scale(0.9);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-120vh) scale(1.1);
    opacity: 0;
  }
}

/* Particle positions and timings */
.p-1 {
  left: 5%;
  bottom: -20px;
  animation-duration: 14s;
  animation-delay: 0s;
}
.p-2 {
  left: 12%;
  bottom: -20px;
  animation-duration: 12s;
  animation-delay: 2s;
}
.p-3 {
  left: 20%;
  bottom: -20px;
  animation-duration: 16s;
  animation-delay: 1s;
}
.p-4 {
  left: 28%;
  bottom: -20px;
  animation-duration: 13s;
  animation-delay: 3s;
}
.p-5 {
  left: 36%;
  bottom: -20px;
  animation-duration: 15s;
  animation-delay: 1.5s;
}
.p-6 {
  left: 44%;
  bottom: -20px;
  animation-duration: 18s;
  animation-delay: 2.5s;
}
.p-7 {
  left: 52%;
  bottom: -20px;
  animation-duration: 12s;
  animation-delay: 4s;
}
.p-8 {
  left: 60%;
  bottom: -20px;
  animation-duration: 17s;
  animation-delay: 0.5s;
}
.p-9 {
  left: 68%;
  bottom: -20px;
  animation-duration: 11s;
  animation-delay: 2.2s;
}
.p-10 {
  left: 76%;
  bottom: -20px;
  animation-duration: 14s;
  animation-delay: 1.2s;
}
.p-11 {
  left: 84%;
  bottom: -20px;
  animation-duration: 16s;
  animation-delay: 3.2s;
}
.p-12 {
  left: 90%;
  bottom: -20px;
  animation-duration: 13s;
  animation-delay: 2.8s;
}
.p-13 {
  left: 30%;
  bottom: -20px;
  animation-duration: 19s;
  animation-delay: 1.8s;
}
.p-14 {
  left: 70%;
  bottom: -20px;
  animation-duration: 20s;
  animation-delay: 2.4s;
}

/* Hero content layering */
.hero-content {
  position: relative;
  z-index: 1;
}

/* Enhanced responsive styles for new elements */
@media (max-width: 768px) {
  .headline-line {
    font-size: 2.5rem;
  }

  .hero-gradient-orb {
    width: 200px;
    height: 200px;
  }

  .particle {
    width: 6px;
    height: 6px;
  }
}

@media (max-width: 480px) {
  .headline-line {
    font-size: 2rem;
  }
}

.parents-know-more-btn {
  color: #e2842d;
  text-decoration: none;
  font-weight: 1500;
  background: none;
  border: none;
  padding: 0;
  margin-top: 8px;
  font-family: inherit;
  font-size: 1.3rem;
  cursor: pointer;
  display: inline;
}

.parents-know-more-btn:hover {
  text-decoration: underline;
}

.feedback-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
}

.feedback-modal {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.feedback-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
}

.feedback-modal-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: #1a1a1a;
  margin: 0 0 8px 0;
  text-align: center;
}

.feedback-modal-subtitle {
  font-size: 0.95rem;
  color: #666;
  text-align: center;
  margin: 0 0 28px 0;
}

.feedback-modal-field {
  margin-bottom: 20px;
}

.feedback-modal-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.feedback-modal-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: 'Poppins', sans-serif;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.feedback-modal-textarea:focus {
  border-color: #e2842d;
}

.feedback-modal-submit {
  width: 100%;
  padding: 14px;
  background: #e2842d;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: background 0.2s ease;
}

.feedback-modal-submit:hover:not(:disabled) {
  background: #c9731f;
}

.feedback-modal-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.feedback-modal-success {
  text-align: center;
  padding: 20px 0;
  font-size: 1rem;
  color: #2e7d32;
  font-weight: 500;
}
/* ChatBox - rule-based assistant (no LLM). Matches TWIG theme. Always visible on scroll (fixed). */
.chat-box-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #c984c7, #e2842d);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(201, 132, 199, 0.4);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

.chat-box-fab:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(201, 132, 199, 0.5);
}

.chat-box-panel {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 360px;
  max-width: calc(100vw - 48px);
  height: 480px;
  max-height: calc(100vh - 120px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow: hidden;
}

.chat-box-header {
  flex-shrink: 0;
  padding: 12px 16px;
  background: linear-gradient(135deg, #c984c7 0%, #e2842d 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-box-title {
  font-weight: 700;
  font-size: 1rem;
}

.chat-box-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  opacity: 0.9;
}

.chat-box-close:hover {
  opacity: 1;
}

.chat-box-messages {
  flex: 1 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8f9fa;
}

.chat-box-msg {
  display: flex;
  width: 100%;
}

.chat-box-msg--user {
  justify-content: flex-end;
}

.chat-box-msg--bot {
  justify-content: flex-start;
}

.chat-box-msg-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: left;
}

.chat-box-msg--user .chat-box-msg-bubble {
  background: linear-gradient(135deg, #c984c7, #e2842d);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-box-msg--bot .chat-box-msg-bubble {
  background: #fff;
  color: #2e0f35;
  border: 1px solid rgba(201, 132, 199, 0.2);
  border-bottom-left-radius: 4px;
}

.chat-box-msg-bubble--typing {
  color: #888;
}

.chat-box-msg-text {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
  text-align: left;
}

.chat-box-msg-parts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-box-faq-link {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(201, 132, 199, 0.2);
}

.chat-box-faq-link a {
  color: #c984c7;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.chat-box-faq-link a:hover {
  text-decoration: underline;
}

.chat-box-action-links {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(201, 132, 199, 0.2);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-box-action-btn {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #c984c7, #e2842d);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.chat-box-action-btn:hover {
  opacity: 0.95;
}

.chat-box-suggested {
  flex-shrink: 0;
  padding: 8px 16px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.chat-box-suggested-btn {
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(201, 132, 199, 0.4);
  background: rgba(201, 132, 199, 0.08);
  color: #2e0f35;
  font-size: 0.8rem;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.chat-box-suggested-btn:hover {
  background: rgba(201, 132, 199, 0.18);
  border-color: rgba(201, 132, 199, 0.6);
}

.chat-box-form {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  padding: 12px 16px 16px;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.chat-box-input {
  flex: 1 1;
  padding: 10px 14px;
  border: 1px solid rgba(201, 132, 199, 0.3);
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
  outline: none;
  transition: border-color 0.2s ease;
}

.chat-box-input:focus {
  border-color: #c984c7;
}

.chat-box-input::placeholder {
  color: #999;
}

.chat-box-send {
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #c984c7, #e2842d);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.chat-box-send:hover:not(:disabled) {
  opacity: 0.95;
}

.chat-box-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .chat-box-fab {
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }

  .chat-box-panel {
    bottom: 72px;
    right: 16px;
    left: 16px;
    width: auto;
    height: 420px;
  }
}
.chat-box-quick-replies {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-box-quick-reply-btn {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1.5px solid rgba(201, 132, 199, 0.5);
  background: rgba(201, 132, 199, 0.08);
  color: #2e0f35;
  font-size: 0.85rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
}

.chat-box-quick-reply-btn:hover {
  background: rgba(201, 132, 199, 0.2);
}
.card img 
{
    height: 80px;
    width: auto;
}

.title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.36rem;
    margin-bottom: 15px;
    margin-top: 0;
    color: #2e0f35;
    transition: color 0.3s ease;
    text-align: center;
    line-height: 1.3;
    word-wrap: break-word;
    -webkit-hyphens: auto;
            hyphens: auto;
    text-transform: uppercase;
    min-height: 2.6em;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}                             

.stat {
    font-size: 24px;
    padding: 10px
}

.card span {
    font-size: 0.9rem;
    color: #2e0f35;
    font-weight: 600;
    transition: color 0.3s ease;
    text-align: center;
    line-height: 1.4;
    word-wrap: break-word;
    -webkit-hyphens: auto;
            hyphens: auto;
}

.card
{
    font-family: 'Baloo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* border: 1px solid blue; */
    height: 400px;
    width: 300px;
    display: flex;
    flex: 0 0 300px;
    border-radius: 26px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    /* box-shadow: 5px 5px 15px 1px lightgray; */
    /* background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%); */
    background: linear-gradient(334deg,rgba(201, 132, 199, 0.7) 0%, rgba(255, 255, 255, 0.86) 52%, rgba(226, 132, 45, 0.67) 100%);
}

.front
{
    font-family: 'Baloo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    width: 93%;
    height: 95%;
    border-radius: 26px;
    display: flex;
    flex: 0 0 93%;
    align-items: center;
    flex-direction: column;
    transition: 500ms;
    z-index: 1;
}

.content 
{
    width: 80%;
}

.back
{
    font-family: 'Baloo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: absolute;
    display: none;
    width: 93%;
    height: 95%;
    border-radius: 26px;
    flex-direction: column;
    z-index: 1;
}



.front.icon {
    margin: 0px 0px 15px;
}

.front img {
    margin: 0px 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    width: auto;
    flex-shrink: 0;
}

.card .front
{
    z-index: 1;
}

.card::before 
{
    position: absolute;
    height: 150%;
    width: 50%;
    display: block;
    opacity: 0;
    content: " ";
    background: linear-gradient(90deg, #c984c7, #e2842d);
    animation: rotation_anim 8000ms infinite linear;
    transition: opacity 300ms;
    overflow: hidden;
    animation-play-state: paused;
}

.card:hover::before 
{
  opacity: 1;
  animation-play-state: running;
}

.card::after {
    position: absolute;
    content: " ";
    display: block;
    width: 290px;
    height: 390px;
    border-radius: 26px;
    background: linear-gradient(135deg, #f8f9fa 50%, #ffffff 100%);
    overflow: hidden;
    transition: 500ms;
}

.card:hover::after {
    position: absolute;
    display: block;
    width: 290px;
    height: 390px;
    border-radius: 26px;
    background: linear-gradient(135deg, #f8f9fa 50%, #ffffff 100%);
    overflow: hidden;
}

.card:hover {
    /* scale: 1.03; */
    transform: translateX(180deg);
}

@keyframes rotation_anim 
{
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.card:hover .front
{
    display: none;
    background: linear-gradient(334deg,rgba(201, 132, 199, 0.7) 0%, rgba(255, 255, 255, 0.86) 52%, rgba(226, 132, 45, 0.67) 100%);
}

.card:hover .back
{
    display: flex;
    justify-content: center;
    align-items: center;
    animation: flip 650ms ease-in-out forwards;
}

@keyframes flip 
{
    0%
    {
        background-color: lightgray;
        transform: rotateY(180deg);
    }


    100%
    {
        display: flex;
        justify-content: center;
        align-items: center;
        background: linear-gradient(334deg,rgba(203, 98, 199, 0.713) 0%, rgba(219, 113, 180, 0.86) 52%, rgba(181, 96, 18, 0.67) 100%);
        transform: rotateY(0deg);
    }
}

.back-title
{
    color: white;
    width: 80%;
    animation: reveal 1.5s forwards;
}

.back-content 
{
    font-family: 'Baloo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    width: 80%;
    animation: reveal 1.5s forwards;
}


@keyframes reveal 
{
    0% 
    {
        opacity: 0;
    }

    15% 
    {
        opacity: 0;
    }
    
    100% 
    {
        opacity: 1;
    }
}
/* Carousel.css */

.carousel-wrapper {
  position: relative;
  width: 100%;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  z-index: 10;
  background: white;
  border: none;
  border-radius: 50%;
  padding: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s;
}

.carousel-nav-btn-left {
  left: 0;
  transform: translate(-50%, -50%);
}

.carousel-nav-btn-right {
  right: 0;
  transform: translate(50%, -50%);
}

.carousel-nav-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.carousel-nav-btn-right:hover {
  transform: translate(50%, -50%) scale(1.1);
}

.carousel-nav-btn.disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.carousel-container {
  overflow: hidden;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: -webkit-fit-content;
  width: fit-content;
  -webkit-user-select: none;
          user-select: none;
}

.carousel-track.mobile {
  width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  cursor: grab;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.carousel-track.mobile::-webkit-scrollbar {
  display: none;
}

.carousel-track.mobile.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.carousel-item {
  flex-shrink: 0;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.carousel-indicator {
  height: 8px;
  width: 8px;
  border-radius: 4px;
  border: none;
  background: #ccc;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.carousel-indicator.active {
  width: 32px;
  background: #333;
}

.carousel-indicator:hover {
  opacity: 0.8;
}
.main-footer {
  background: #ffffff;
  padding-top: 10px;
  padding-bottom: 10px;
  margin-top: 0;
  border-top: 1px solid #e5e7eb;
  width: 100%;
}

.main-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  padding: 0 60px;
  width: 100%;
  box-sizing: border-box;
}

.main-footer-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.main-footer-logo {
  display: flex;
  align-items: center;
}

.main-footer-mascot {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.main-footer-mascot-image {
  height: 60px;
  width: 60px;
  cursor: pointer;
  transition: all 0.3s ease;
  animation:
    mascotBounce 2s ease-in-out infinite,
    mascotFloat 3s ease-in-out infinite,
    mascotJump 4s ease-in-out infinite;
}

.main-footer-mascot-image:hover {
  animation:
    mascotDance 0.6s ease-in-out infinite,
    mascotSpin 1s linear infinite;
  transform: scale(1.2);
}

.main-footer-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.main-footer-social-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.main-footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  color: #000000;
  text-decoration: none;
  transition: all 0.3s ease;
  opacity: 1;
}

.main-footer-social-link svg {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
}

.main-footer-social-link:hover {
  color: #e2842d;
  opacity: 1;
  transform: scale(1.1);
}

.main-footer-contact {
  display: flex;
  align-items: center;
}

.main-footer-contact-btn {
  background: #e2842d;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(226, 132, 45, 0.3);
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
  white-space: nowrap;
}

.main-footer-contact-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.main-footer-contact-btn:hover::before {
  left: 100%;
}

.main-footer-contact-btn:hover {
  background: #c97222;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(226, 132, 45, 0.4);
}

.main-footer-contact-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(226, 132, 45, 0.3);
}

.main-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 60px 0 60px;
  width: 100%;
  box-sizing: border-box;
  border-top: 1px solid #e5e7eb;
}

.main-footer-copyright {
  text-align: left;
}

.main-footer-copyright p {
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 400;
  margin: 0;
}

.main-footer-legal {
  display: flex;
  gap: 20px;
  align-items: center;
}

.main-footer-legal-link {
  color: #6b7280;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.main-footer-legal-link:hover {
  color: #374151;
}

@keyframes mascotBounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes mascotFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}

@keyframes mascotDance {
  0% {
    transform: translateY(0) rotate(0deg) scale(1.2);
  }
  25% {
    transform: translateY(-3px) rotate(-4deg) scale(1.2);
  }
  50% {
    transform: translateY(0) rotate(4deg) scale(1.2);
  }
  75% {
    transform: translateY(-2px) rotate(-2deg) scale(1.2);
  }
  100% {
    transform: translateY(0) rotate(0deg) scale(1.2);
  }
}

@keyframes mascotSpin {
  from {
    transform: scale(1.2) rotate(0deg);
  }
  to {
    transform: scale(1.2) rotate(360deg);
  }
}

@keyframes mascotJump {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 768px) {
  .main-footer-top,
  .main-footer-bottom {
    padding-left: 24px;
    padding-right: 24px;
  }

  .main-footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .main-footer-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .main-footer-nav {
    gap: 16px;
  }

  .main-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .main-footer-legal {
    flex-wrap: wrap;
    gap: 14px;
  }

  .main-footer-contact-btn {
    padding: 8px 18px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .main-footer {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .main-footer-top {
    margin-bottom: 5px;
  }

  .main-footer-mascot-image {
    width: 52px;
    height: 52px;
  }
}

.language-switcher {
  position: relative;
  display: flex;
  align-items: center;
}

.language-switcher__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.language-switcher__toggle:hover,
.language-switcher__toggle.is-open {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.language-switcher__icon {
  display: block;
}

.language-switcher__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 140px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  z-index: 1001;
}

.language-switcher__option {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  text-align: left;
  color: #333333;
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.language-switcher__option:last-child {
  border-bottom: none;
}

.language-switcher__option:hover {
  background: #f8f9fa;
  color: #e2842d;
}

.language-switcher__option.is-active {
  color: #933b91;
  font-weight: 600;
  background: rgba(147, 59, 145, 0.06);
}

/* Applied by PageWithHeader for fixed-header content offset */
.twig-header-offset {
  padding-top: 80px;
}

.header,
header.header,
header.header.scrolled {
  background: linear-gradient(to right, #F3821F, #AA4BA8);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  padding: 5px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px 0 80px;
}

.logo {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0;
}

.logo-image {
  height: 50px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-accent {
  position: absolute;
  inset: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 50px;
}

.header-get-started-btn {
  background: #ffffff;
  color: #933B91;
  border: none;
  padding: 8px 20px;
  height: 44px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0%;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  animation: headerGetStartedSlideIn 0.5s ease-out forwards;
}

.header-get-started-btn::before,
.header-get-started-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.header-get-started-btn::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.header-get-started-btn::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.header-get-started-btn:hover::before,
.header-get-started-btn:hover::after {
  left: 100%;
}

.header-get-started-btn:hover {
  background: #c97222;
  color: #ffffff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(226, 132, 45, 0.4);
}

.header-get-started-btn:active {
  transform: translateY(0) scale(0.98);
  transition: all 0.1s ease;
}

@keyframes headerGetStartedSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hamburger-menu-container {
  position: relative;
  display: none;
  align-items: center;
}

.hamburger-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  transition: all 0.3s ease;
}

.hamburger-menu-btn span {
  width: 25px;
  height: 3px;
  background: #ffffff;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

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

.hamburger-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

.hamburger-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  z-index: 1000;
  min-width: 220px;
  margin-top: 10px;
}

.hamburger-dropdown-btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: transparent;
  border: none;
  text-align: left;
  color: #333;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.hamburger-dropdown-btn:last-child {
  border-bottom: none;
}

.hamburger-dropdown-btn:hover {
  background: #f8f9fa;
  color: #e2842d;
}

@media (max-width: 768px) {
  .header-content {
    padding: 0 24px;
  }

  .header-get-started-btn {
    padding: 8px 18px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .header-content {
    padding: 0 16px;
  }

  .header-get-started-btn {
    display: none;
  }
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 50px;
}

.nav-link {
  background: none;
  border: none;
  color: #F8FAFC;
  font-family: 'Baloo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 20px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0%;
  cursor: pointer;
  padding: 0 12px;
  height: 50px;
  display: flex;
  align-items: center;
  border-radius: 4px;
  box-sizing: border-box;
  position: relative;
  transition: all 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  background: transparent;
  transition: background 0.2s ease;
}

.nav-link:hover {
  background: none;
  color: #000000;
  opacity: 1;
}

.nav-link.active {
  font-weight: 600;
  opacity: 1;
}

.nav-link.active::after {
  background: #ffffff;
}

.nav-link.active:hover::after {
  background: #ffffff;
}

.header-login-btn {
  background: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
  padding: 8px 20px;
  height: 44px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0%;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.header-login-btn::before,
.header-login-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.header-login-btn::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.header-login-btn::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.header-login-btn:hover::before,
.header-login-btn:hover::after {
  left: 100%;
}

.header-login-btn:hover {
  background: #c97222;
  color: #ffffff;
  border-color: #c97222;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(226, 132, 45, 0.4);
}

.header-login-btn:active {
  transform: translateY(0) scale(0.98);
  transition: all 0.1s ease;
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }

  .hamburger-menu-container {
    display: flex;
  }
}
.header-left {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 50px;
}

.nav-link-dropdown {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown-arrow {
  width: 6px;
  height: 6px;
  border-right: 1px solid #F8FAFC;
  border-bottom: 1px solid #F8FAFC;
  transform: rotate(45deg);
  display: inline-block;
  margin-top: -2px;
}

.nav-dropdown-container {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.08);
  min-width: 200px;
  overflow: hidden;
  z-index: 1001;
}

.nav-dropdown-item {
  display: block;
  width: 100%;
  padding: 12px 18px;
  background: transparent;
  border: none;
  text-align: left;
  color: #333;
  font-family: 'Baloo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-dropdown-item:last-child {
  border-bottom: none;
}

.nav-dropdown-item:hover {
  background: #f8f9fa;
  color: #e2842d;
}

/* Beat page-level resets (e.g. .pp *) and font rules (e.g. .kp-page button) */
header.header {
  padding: 5px 0;
}

header.header.scrolled {
  padding: 5px 0;
}

.header .header-content {
  padding: 0 40px 0 80px !important;
}

.header .header-left {
  gap: 32px;
}

.header .header-nav {
  gap: 28px;
}

.header .header-actions {
  gap: 20px;
}

.header .logo {
  padding: 0;
  height: 50px;
}

.header .nav-link {
  padding: 0 12px !important;
}

.header .nav-dropdown-item {
  padding: 12px 18px !important;
}

.header .nav-link,
.header .nav-dropdown-item {
  font-family: 'Baloo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.header .header-login-btn,
.header .header-get-started-btn {
  font-family: 'Poppins', sans-serif;
  padding: 8px 20px !important;
}

.header .nav-link,
.header .nav-dropdown-item,
.header .header-login-btn,
.header .header-get-started-btn {
  font-size: revert !important;
}

.header .nav-link {
  font-size: 20px !important;
}

.header .header-login-btn,
.header .header-get-started-btn {
  font-size: 16px !important;
}

/* Landing header nav — beat page-level .nav-link leaks (LandingPage, Library) */
.header .nav-link {
  color: #f8fafc !important;
  text-decoration: none !important;
  border-bottom: none !important;
}

.header .nav-link:hover {
  background: none !important;
  color: #000000 !important;
  opacity: 1 !important;
}

.header .nav-link.active {
  font-weight: 600 !important;
  opacity: 1 !important;
  border-bottom: none !important;
}

.header .nav-link.active:hover {
  color: #000000 !important;
}

.header .nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  background: transparent;
  transition: background 0.2s ease;
}

.header .nav-link.active::after {
  background: #ffffff !important;
}

.header .nav-link.active:hover::after {
  background: #ffffff !important;
}
.feature-tools-section {
  width: 100%;
  padding: 18px 0 60px;
  background: #ffffff;
  overflow: hidden;
}

.feature-tools-section__inner {
  width: min(1272px, calc(100% - 64px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-tools-section__title {
  margin: 0;
  color: #222222;
  font-family: "Poppins", sans-serif;
  font-size: 42px;
  line-height: 1.6;
  font-weight: 600;
  text-align: center;
}

.feature-tools-section__subtitle {
  margin: 0;
  margin-top: 10px;
  color: #666666;
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 400;
  text-align: center;
  max-width: 1300px;
}

.feature-tools-section__grid {
  width: 100%;
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(4, 300px);
  grid-gap: 14px;
  gap: 14px;
  justify-content: center;
}

.feature-card {
  position: relative;
  width: 300px;
  height: 400px;
  border-radius: 24px;
  overflow: hidden;
  padding: 28px 13px 14px 13px;
  color: #ffffff;
  box-sizing: border-box;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.feature-card__content {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  flex: 1 1;
  align-items: flex-start;
  width: 100%;
}

.feature-card--orange {
  background: #f99244;
}

.feature-card--coral {
  background: #d96f4f;
}

.feature-card--rose {
  background: #c35e79;
}

.feature-card--purple {
  background: #ba6abb;
}

.feature-card__rings {
  position: absolute;
  top: 0;
  right: 0;
  width: 88px;
  height: 88px;
  pointer-events: none;
}
.feature-card__icon-wrapper {
  position: relative;
  width: 72px;
  height: 72px;

  margin-left: 0; /* aligns with text */
  margin-bottom: 14px; /* closer to heading */

  flex-shrink: 0;
}

.feature-card__flower {
  position: absolute;
  inset: 0;
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.feature-card__icon {
  position: absolute;
  width: 42px;
  height: 42px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  object-fit: contain;
}

.feature-card__icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.feature-card__title {
  margin: 0 0 18px;
  width: 100%;
  max-width: 242px;
  font-family: "Poppins", sans-serif;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0;
}

.feature-card__description {
  margin: 0;
  width: 100%;
  max-width: 262px;
  font-family: "Baloo 2", sans-serif;
  font-size: 14.4px;
  line-height: 20.16px;
  font-weight: 600;
  color: #f6ecf7;
}

.feature-card__button {
  margin-top: auto;
  width: 100%;
  height: 32px;
  border-radius: 20px;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: #ffffff;
  box-sizing: border-box;
  flex-shrink: 0;
}

.feature-card__button--hidden {
  visibility: hidden;
  pointer-events: none;
}

.feature-card--orange .feature-card__button {
  background: #ffba92;
  border-color: #ad5707;
}

.feature-card--coral .feature-card__button {
  background: #d9a291;
  border-color: #82422f;
}

.feature-card--rose .feature-card__button {
  background: #e09aad;
  border-color: #ba2a50;
}

.feature-card--purple .feature-card__button {
  background: #c889cb;
  border-color: #7a2d78;
}

@media (max-width: 1200px) {
  .feature-tools-section__grid {
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    justify-content: center;
    gap: 24px;
  }
  .feature-card {
    min-width: 300px;
    padding: 32px 18px 16px;
  }
  .feature-card__button {
    font-size: 13px;
  }
  .feature-card__title {
    font-size: 22px;
  }

  .feature-card__description {
    font-size: 13px;
    line-height: 19px;
  }
  .feature-tools-section__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .feature-tools-section__grid {
    width: 100%;
    margin: 48px auto 0;
    display: grid;
    grid-template-columns: repeat(2, 300px);
    grid-gap: 24px;
    gap: 24px;
    justify-content: center;
    justify-items: center;
  }

  .feature-card {
    width: 300px;
  }
}
@media (max-width: 760px) {
  .feature-tools-section__grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .feature-card {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 640px) {
  .feature-tools-section {
    padding-top: 12px;
  }

  .feature-tools-section__grid {
    grid-template-columns: 1fr;
  }

  .feature-tools-section__title {
    font-size: 30px;
    line-height: 1.2;
  }

  .feature-tools-section__subtitle {
    font-size: 16px;
  }
}
@media (min-width: 768px) and (max-width: 1200px) {
  .feature-tools-section {
    padding: 32px 0 80px;
  }

  .feature-tools-section__inner {
    width: calc(100% - 64px);
    max-width: 900px;
  }

  .feature-tools-section__grid {
    margin-top: 42px;

    display: grid;
    grid-template-columns: repeat(2, 300px);

    grid-gap: 28px 28px;

    gap: 28px 28px;

    justify-content: center;
    align-items: stretch;
  }

  .feature-card {
    width: 300px;
    max-width: 300px;
    margin: 0 auto;
  }

  .feature-tools-section__title {
    font-size: 42px;
  }

  .feature-tools-section__subtitle {
    max-width: 720px;
    margin: 10px auto 0;
  }
}

.community-section {
  width: 100%;
  padding: 40px 0 60px;
  background: #ffffff;
  overflow: hidden;
}

.community-section__inner {
  width: min(1272px, calc(100% - 64px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.community-section__title {
  margin: 0;
  color: #222222;
  font-family: "Poppins", sans-serif;
  font-size: 42px;
  line-height: 1.4;
  font-weight: 600;
  text-align: center;
}

.community-section__carousel-wrap {
  width: 100%;
  margin-top: 42px;
  display: flex;
  align-items: stretch;
  gap: 16px;
}

.community-section__carousel {
  flex: 1 1;
  min-width: 0;
  overflow: hidden;
}

.community-section__track {
  display: flex;
  align-items: stretch;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(170, 75, 168, 0.45) transparent;
}

.community-section__track::-webkit-scrollbar {
  height: 8px;
}

.community-section__track::-webkit-scrollbar-thumb {
  background: rgba(170, 75, 168, 0.45);
  border-radius: 8px;
}

.community-section__nav-btn {
  flex-shrink: 0;
  align-self: center;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: #aa4ba8;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
  box-shadow: 0 4px 14px rgba(122, 45, 120, 0.22);
}

.community-section__nav-btn:hover:not(:disabled) {
  background: #7a2d78;
  transform: scale(1.06);
}

.community-section__nav-btn:disabled {
  opacity: 0.32;
  cursor: not-allowed;
  transform: none;
  background: #ccc;
}

.community-section__nav-btn:focus-visible {
  outline: 2px solid #aa4ba8;
  outline-offset: 2px;
}

.community-card {
  position: relative;
  flex: 0 0 min(100%, 300px);
  min-width: min(100%, 280px);
  max-width: 320px;
  min-height: 396px;
  border-radius: 24px;
  box-sizing: border-box;
  padding: 36px 28px 28px;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
}

.community-card--purple {
  background: #e6cbe9;
}

.community-card--orange {
  background: #ffd3bc;
}

.community-card__quote {
  flex-shrink: 0;
  width: 64px;
  height: auto;
}

.community-card__quote-text {
  margin: 0;
  padding: 24px 0;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  flex: 1 1;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
}

.community-card__author {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 24px;
}

.community-card__avatar {
  position: relative;
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.community-card__avatar-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.community-card__avatar-icon {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  object-fit: contain;
  pointer-events: none;
}

.community-card__author-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

.community-card__name {
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  text-align: left;
}

.community-card__role {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 400;
  text-align: left;
}

@media (max-width: 768px) {
  .community-section {
    padding: 28px 0 40px;
  }

  .community-section__inner {
    width: calc(100% - 32px);
  }

  .community-section__title {
    font-size: 28px;
  }

  .community-section__carousel-wrap {
    margin-top: 28px;
    gap: 8px;
  }

  .community-section__nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .community-section__track {
    gap: 16px;
  }

  .community-card {
    flex-basis: min(calc(100vw - 120px), 300px);
    min-width: min(calc(100vw - 120px), 280px);
    min-height: 0;
    padding: 28px 22px 22px;
  }

  .community-card__quote-text {
    margin-top: 20px;
    font-size: 15px;
  }

  .community-card__name {
    font-size: 16px;
  }
}

.kids-auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 10%, rgba(201, 132, 199, 0.35), transparent 30%),
    radial-gradient(circle at 90% 15%, rgba(226, 132, 45, 0.28), transparent 28%),
    linear-gradient(135deg, #fff8ef 0%, #fff 45%, #fbecff 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: 'Baloo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kids-auth-card {
  width: min(760px, 100%);
  background: rgba(255, 255, 255, 0.94);
  border: 2px solid rgba(201, 132, 199, 0.2);
  border-radius: 24px;
  box-shadow: 0 20px 56px rgba(46, 15, 53, 0.16);
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.kids-auth-email-link {
  background: transparent;
  border: none;
  color: #e2842d;
  cursor: pointer;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  margin-top: 14px;
  padding: 8px 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.kids-auth-email-link:hover {
  color: #c97222;
  transform: translateY(-1px);
}

.kids-auth-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(226, 132, 45, 0.08), transparent 45%, rgba(201, 132, 199, 0.1));
  pointer-events: none;
}

.kids-auth-card > * {
  position: relative;
  z-index: 1;
}

.kids-auth-back {
  background: transparent;
  color: #7d3d88;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  margin: 0;
  padding: 0;
}

.kids-auth-back:hover {
  color: #e2842d;
}

.kids-auth-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  min-height: 92px;
  padding: 0 110px;
}

.kids-auth-side-brand {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.kids-auth-side-brand img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(46, 15, 53, 0.16));
}

.kids-auth-copy {
  max-width: 460px;
  text-align: center;
}

.kids-auth-eyebrow {
  color: #e2842d;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 4px;
}

.kids-auth-hero h1 {
  color: #2e0f35;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
  margin: 0 0 12px;
}

.kids-auth-hero p {
  color: #5c4a60;
  font-size: 1rem;
  line-height: 1.28;
  margin: 0;
}

.kids-auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 8px;
  gap: 8px;
  background: #f6e7f7;
  border-radius: 16px;
  padding: 6px;
  margin-bottom: 14px;
}

.kids-auth-tabs button {
  border: none;
  border-radius: 15px;
  background: transparent;
  color: #6a3b70;
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  padding: 10px;
  transition: all 0.2s ease;
}

.kids-auth-tabs button.active {
  background: #ffffff;
  color: #e2842d;
  box-shadow: 0 8px 22px rgba(46, 15, 53, 0.12);
}

.kids-auth-error,
.kids-auth-success {
  border-radius: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  padding: 10px 12px;
}

.kids-auth-error {
  background: #fff0f0;
  border: 1px solid #ffb8b8;
  color: #9c2727;
}

.kids-auth-success {
  background: #efffed;
  border: 1px solid #a8e6a2;
  color: #276a23;
}

.kids-auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kids-auth-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 12px;
  gap: 12px;
}

.kids-auth-form label {
  color: #2e0f35;
  display: flex;
  flex-direction: column;
  font-size: 0.98rem;
  font-weight: 800;
  gap: 6px;
}

.kids-auth-form input {
  width: 100%;
  background: #ffffff;
  border: 2px solid #ead7ec;
  border-radius: 14px;
  color: #2e0f35;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  padding: 10px 12px;
  transition: all 0.2s ease;
}

.kids-auth-form input:focus {
  border-color: #e2842d;
  box-shadow: 0 0 0 4px rgba(226, 132, 45, 0.14);
}

.kids-auth-username,
.kids-auth-password {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-gap: 8px;
  gap: 8px;
}

.kids-auth-username button,
.kids-auth-password button {
  background: #fff5e8;
  border: 2px solid #e2842d;
  border-radius: 14px;
  color: #c97222;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0 12px;
}

.kids-auth-username button:hover,
.kids-auth-password button:hover {
  background: #e2842d;
  color: #ffffff;
}

.kids-auth-hint {
  color: #7d6a82;
  font-size: 0.84rem;
  font-weight: 600;
}

.kids-auth-reminder {
  background: #fff8ef;
  border: 1px solid rgba(226, 132, 45, 0.24);
  border-radius: 14px;
  color: #6a3b70;
  font-size: 0.92rem;
  font-weight: 800;
  margin: 0;
  padding: 10px 12px;
  text-align: center;
}

.kids-auth-submit {
  align-items: center;
  background: linear-gradient(135deg, #e2842d, #c984c7);
  border: none;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(226, 132, 45, 0.3);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 900;
  justify-content: center;
  margin-top: 2px;
  min-height: 46px;
  padding: 12px 20px;
  transition: all 0.2s ease;
}

.kids-auth-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(226, 132, 45, 0.38);
}

.kids-auth-submit:disabled {
  cursor: wait;
  opacity: 0.75;
}

.kids-icon-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: rgba(46, 15, 53, 0.22);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  padding:
    max(16px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
}

.kids-icon-popup {
  width: min(560px, 100%);
  margin: auto;
  flex-shrink: 0;
  background: #ffffff;
  border: 2px solid rgba(201, 132, 199, 0.28);
  border-radius: 24px;
  box-shadow: 0 26px 70px rgba(46, 15, 53, 0.22);
  padding: 24px;
  text-align: center;
}

.kids-icon-popup h2 {
  color: #2e0f35;
  font-family: 'Poppins', sans-serif;
  font-size: 1.7rem;
  line-height: 1.1;
  margin: 0 0 8px;
}

.kids-icon-copy {
  color: #5c4a60;
  font-size: 1rem;
  margin: 0 0 18px;
}

.kids-icon-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
  width: 100%;
}

.kids-icon-option {
  aspect-ratio: 1;
  min-width: 0;
  min-height: 44px;
  background: #fff8ef;
  border: 3px solid transparent;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.kids-icon-option:hover,
.kids-icon-option.selected {
  background: #fbecff;
  border-color: #c984c7;
  box-shadow: 0 10px 24px rgba(201, 132, 199, 0.28);
  transform: translateY(-2px);
}

.kids-icon-option img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.kids-icon-start {
  width: 100%;
  margin-top: 18px;
}

@media (max-width: 700px) {
  .kids-auth-page {
    padding: 12px;
  }

  .kids-auth-card {
    border-radius: 20px;
    padding: 16px;
  }

  .kids-auth-hero {
    align-items: flex-start;
    margin-bottom: 12px;
    min-height: 84px;
    padding: 0 0 0 94px;
  }

  .kids-auth-side-brand img {
    width: 68px;
    height: 68px;
  }

  .kids-auth-copy {
    max-width: none;
    padding-top: 4px;
  }

  .kids-auth-row,
  .kids-auth-username,
  .kids-auth-password {
    grid-template-columns: 1fr;
  }

  .kids-auth-username button,
  .kids-auth-password button {
    min-height: 42px;
  }

  .kids-icon-popup {
    padding: 16px;
    border-radius: 20px;
  }

  .kids-icon-popup h2 {
    font-size: 1.35rem;
  }

  .kids-icon-copy {
    font-size: 0.92rem;
    margin-bottom: 14px;
  }

  .kids-icon-grid {
    gap: 8px;
  }

  .kids-icon-option {
    border-radius: 16px;
    border-width: 2px;
    padding: 6px;
  }

  .kids-icon-start {
    margin-top: 14px;
    min-height: 48px;
  }
}

@media (max-width: 480px) {
  .kids-icon-overlay {
    padding:
      max(12px, env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right))
      max(12px, env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
  }

  .kids-icon-popup {
    padding: 14px;
  }

  .kids-icon-popup h2 {
    font-size: 1.2rem;
  }

  .kids-icon-copy {
    font-size: 0.88rem;
    line-height: 1.35;
    margin-bottom: 12px;
  }

  .kids-icon-grid {
    gap: 6px;
  }

  .kids-icon-option {
    border-radius: 14px;
    padding: 5px;
  }
}

@media (min-width: 701px) and (max-width: 1024px) {
  .kids-icon-popup {
    width: min(520px, 100%);
    padding: 20px;
  }

  .kids-icon-popup h2 {
    font-size: 1.5rem;
  }

  .kids-icon-grid {
    gap: 10px;
  }
}

@media (max-height: 720px) and (min-width: 701px) {
  .kids-auth-page {
    align-items: flex-start;
    padding: 12px 20px;
  }

  .kids-auth-card {
    padding: 18px 20px;
  }

  .kids-auth-back,
  .kids-auth-eyebrow {
    margin-bottom: 4px;
  }

  .kids-auth-hero {
    margin-bottom: 10px;
    min-height: 72px;
    padding: 0 88px;
  }

  .kids-auth-side-brand img {
    width: 66px;
    height: 66px;
  }

  .kids-auth-hero p {
    font-size: 0.94rem;
  }

  .kids-auth-tabs {
    margin-bottom: 10px;
  }

  .kids-auth-form {
    gap: 9px;
  }

  .kids-auth-form label {
    gap: 4px;
  }

  .kids-auth-form input {
    padding: 8px 10px;
  }

  .kids-auth-submit {
    min-height: 42px;
    padding: 10px 18px;
  }
}

.question-container 
{
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    font-size: 18px;
    width: 100%;
    background-color: white;
    margin-top: 20px;
}

.question 
{
    font-weight: 600;
    font-size: 17px;
    display: flex;
    align-self: flex-start;
    text-align: left;
    margin: 0px 20px 0px 20px;
    word-break: break-word;
}

.question-choices 
{
    word-wrap: break-word;
    text-align: left;
    margin: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.question-option 
{
    box-sizing: border-box;
    display: flex;
    /* align-items: center; */
    gap: 5px;
    padding: 8px;;
}

.question-option input
{
    margin-top: 4px;
    flex: 0 0 20px;
    -webkit-text-decoration: black;
            text-decoration: black;
    accent-color: white;
    width: 20px;
    height: 20px;
}

.question-option:hover:not(.disable),
.question-option input:hover:not(.disable) {
    background-color: #e2842d52;
    cursor: pointer;
    border: 1px solid #e2842d;
    border-radius: 20px;
}

.question-option.selected
{
    background-color: #e2842d52;
    border: 1px solid #e2842d;
    border-radius: 20px;
}

.question-option.selected.correct
{
    background-color: #c3e6cb;
    border: 1px solid #155724;
    border-radius: 20px;
    padding-left: 4px;
    padding-right: 10px;
}

.question-option.selected.incorrect, .question-option.selected.incorrect input 
{
    accent-color: red;
    border: 1px solid rgba(255, 0, 0, 0.762);
    background-color: rgb(255, 238, 238);
    border-radius: 20px;
    padding-left: 4px;
    padding-right: 10px;
}

.question-incorrect
{
    text-align: left;
    display: none;
}

.question-incorrect.show
{
    display: flex;
    flex-direction: column;
    align-items: start;
    padding-left: 20px;
}

.question-incorrect span
{
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 12px;
    border: 1px solid #155724;
    color: #155724;
    background-color: #c3e6cb;
}

.question-incorrect p
{
    margin-top: 20px;
    padding: 5px;
    width: 80%;
    padding-left: 10px;
    border-radius: 12px;
    border: 3px solid #155724;
    background-color: rgb(248, 249, 250);
}
.result-container 
{
    background-color: white;
    border: 1px solid black;
    border-radius: 12px;
    width: 560px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.result-close
{
    margin: 20px;
    width: 32px;
    height: 32px;
    border: 0px;
    font-size: 28px;
    background-color: transparent;
    border-radius: 100%;
    align-self: flex-end;
}

.result-close:hover
{
    cursor: pointer;
    background-color: rgb(245, 245, 245);
}

.result-image
{
    width: 98px;
    height: 98px;
    
}

.results
{
    font-size: 16px;
    width: 80%;
    padding: 20px;
    background-color: rgb(248, 249, 250);
    border: 1px solid lightgray;
    border-radius: 12px;
}

.results p 
{
    font-weight: 400;
    color: #666;
}

.results.perfect 
{
    border: 2px solid #155724;
    background-color: #c3e6cb;
}

.result-message 
{
    width: 80%;
}

.result-check mark 
{
    background-color: transparent;
    color: white;
    font-size: 18px;
}

.result-check {
  -webkit-appearance: button;
          appearance: button;
  background-color: gray;
  border: solid transparent;
  border-radius: 16px;
  border-width: 0 0 4px;
  box-sizing: border-box;
  color: #FFFFFF;
  cursor: pointer;
  display: inline-block;
  font-family: din-round,sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .8px;
  line-height: 20px;
  margin: 0;
  outline: none;
  overflow: visible;
  padding: 13px 16px;
  text-align: center;
  text-transform: uppercase;
  touch-action: manipulation;
  transform: translateZ(0);
  transition: filter .2s;
  user-select: none;
  -webkit-user-select: none;
  vertical-align: middle;
  white-space: nowrap;
}

.result-check:after {
  background-clip: padding-box;
  background-color: #13aa52;
  border: solid transparent;
  border-radius: 16px;
  border-width: 0 0 4px;
  bottom: -4px;
  content: "";
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: -1;
}

.result-check,
.result-check:focus {
  -webkit-user-select: auto;
          user-select: auto;
}

.result-check:disabled {
  cursor: auto;
}

.result-check:active {
  border-width: 4px 0 0;
  background: none;
}
.quiz-container 
{
    border-radius: 12px;
    padding: 20px;
    /* border: 1px solid black; */
    display: flex;
    flex: 0 1 600px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    max-width: 600px;
    height: auto;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: rgba(6, 24, 44, 0.4) 0px 0px 0px 2px, rgba(6, 24, 44, 0.65) 0px 4px 6px -1px, rgba(255, 255, 255, 0.08) 0px 1px 0px inset;
}

.quiz-error.hide
{
    display: none;
}

.quiz-error
{
    display: flex;
    gap: 10px;
    font-size: 16px;
    justify-content: center;
    align-items: center;
    padding: 5px 0px 5px 0px;
    border: 1px solid;
    border: 1px solid rgba(255, 0, 0, 0.762);
    border-radius: 20px;
    background-color: rgb(255, 238, 238);
    color: red;
}

.quiz-error img 
{
    width: 24px;
    height: 24px;
}

.quiz-close
{
    width: 32px;
    height: 32px;
    border: 0px;
    font-size: 28px;
    background-color: transparent;
    border-radius: 100%;
    align-self: flex-end;
}

.quiz-close:hover
{
    cursor: pointer;
    background-color: rgb(245, 245, 245);
}

.quiz-title 
{
    display: flex;
    flex-direction: column;
    align-items: start;
}

.quiz-subtitle
{
    text-align: left;
}

.quiz-btn 
{
    display: flex;
    align-self: flex-end;
    gap: 20px;
}

.quiz-btn.hide
{
    display: none;
}

.quiz-submit-btn 
{
    font-size: 16px;
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    background-color: #E2842D;
}

.quiz-cancel-btn 
{
    font-size: 16px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    border: 1px solid black;
    background-color: white;
}

.quiz-cancel-btn.hide, .quiz-submit-btn.hide
{
    display: none;
}

.quiz-cancel-btn:hover
{
    cursor: pointer;
    background-color: rgb(245, 245, 245);
}

.quiz-submit-btn:hover 
{
    cursor: pointer;
    background-color: rgb(201, 114, 32);
}
.game-page-container {
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for better mobile/tablet support */
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  width: 100%;
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height for better mobile/tablet support */
  max-height: 100vh;
  max-height: 100dvh; /* Dynamic viewport height for better mobile/tablet support */
  box-sizing: border-box;
}

.game-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(201, 132, 199, 0.1), rgba(226, 132, 45, 0.1));
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 120px;
  height: 120px;
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.shape-3 {
  width: 60px;
  height: 60px;
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

.shape-4 {
  width: 100px;
  height: 100px;
  top: 10%;
  right: 30%;
  animation-delay: 1s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

.game-header {
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 132, 199, 0.15);
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: space-between;
  position: relative;
  z-index: 100;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  min-height: 32px;
  height: 32px;
  max-height: 32px;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}

.game-header.animating {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 255, 136, 0.2);
}

.game-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.back-button {
  background: rgba(201, 132, 199, 0.1);
  border: 1px solid rgba(201, 132, 199, 0.3);
  color: #2e0f35;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 32px;
  height: 32px;
  flex-shrink: 0;
}

.back-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.back-button:hover::before {
  left: 100%;
}

.back-button:hover {
  background: rgba(201, 132, 199, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 132, 199, 0.4);
}

.back-arrow {
  font-size: 14px;
  font-weight: bold;
}

.game-title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1;
  min-width: 0;
  overflow: hidden;
}

.game-icon {
  font-size: 1.5rem;
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.game-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  color: #2e0f35;
  font-size: 1.2rem;
  margin: 0;
  background: linear-gradient(45deg, #2e0f35, #e2842d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Screen Controls */
.screen-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  position: relative;
  z-index: 101;
  flex-shrink: 0;
}

.screen-control-btn {
  background: rgba(201, 132, 199, 0.1);
  border: 1px solid rgba(201, 132, 199, 0.3);
  color: #2e0f35;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  min-width: 32px;
  height: 32px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.screen-control-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.screen-control-btn:hover::before {
  left: 100%;
}

.screen-control-btn:hover {
  background: rgba(201, 132, 199, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 132, 199, 0.4);
}

.screen-control-btn.animating {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 255, 136, 0.4);
}

.screen-control-btn.active {
  background: linear-gradient(135deg, #e2842d, #c984c7);
  color: #fff;
  border-color: #e2842d;
  box-shadow: 0 4px 15px rgba(226, 132, 45, 0.3);
}

.screen-control-btn.active:hover {
  background: linear-gradient(135deg, #c984c7, #e2842d);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 132, 199, 0.4);
}

.control-icon {
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
}

.game-content {
  flex: 1 1;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for better mobile/tablet support */
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height for better mobile/tablet support */
  max-height: 100vh;
  max-height: 100dvh; /* Dynamic viewport height for better mobile/tablet support */
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  min-width: 0;
}

.game-iframe-container {
  position: relative;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 100%;
  max-height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.game-iframe-container.animating {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 255, 136, 0.2);
}


.game-iframe {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  transform: none;
  transform-origin: center center;
}

.game-iframe::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 90%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 3s infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Fullscreen Mode */
.game-page-container.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height for better mobile/tablet support */
  z-index: 9999;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  overflow: hidden;
}

.game-page-container.fullscreen .game-header {
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(201, 132, 199, 0.1);
  min-height: 28px;
  height: 28px;
  max-height: 28px;
}

.game-page-container.fullscreen .game-content {
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for better mobile/tablet support */
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height for better mobile/tablet support */
  max-height: 100vh;
  max-height: 100dvh; /* Dynamic viewport height for better mobile/tablet support */
  overflow: hidden;
}

.game-iframe.fullscreen {
  width: 100vw;
  height: 100%;
  max-width: none;
  border-radius: 0;
  box-shadow: none;
}

/* Smallscreen Mode */
.game-iframe.smallscreen {
  width: 1200px;
  height: 750px;
  max-width: 1200px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.game-page-container.smallscreen .game-content {
  padding: 20px;
  justify-content: center;
  align-items: center;
}

@media (max-width: 768px) {
  .game-header {
    padding: 12px 15px;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-height: auto;
  }
  
  .back-button {
    padding: 10px 14px;
    font-size: 0.875rem;
    border-radius: 10px;
    order: 1;
    flex: 0 0 auto;
    min-height: 44px; /* Touch-friendly minimum */
  }
  
  .back-arrow {
    font-size: 16px;
  }
  
  .game-title-container {
    flex: 1 1 100%;
    order: 3;
    width: 100%;
    margin-top: 8px;
    justify-content: center;
  }
  
  .screen-controls {
    order: 2;
    flex: 0 0 auto;
    margin-left: auto;
    gap: 6px;
    z-index: 10;
    position: relative;
  }
  
  .game-title {
    font-size: 1.2rem;
    text-align: center;
  }
  
  .game-icon {
    font-size: 1.5rem;
  }
  
  .screen-controls {
    order: 2;
    flex: 0 0 auto;
    margin-left: auto;
    gap: 6px;
    z-index: 10;
    position: relative;
  }
  
  .screen-control-btn {
    min-width: 44px; /* Touch-friendly minimum */
    height: 44px;
    padding: 10px;
    border-radius: 10px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(201, 132, 199, 0.3);
  }
  
  .control-icon {
    font-size: 16px;
  }
  
  .game-content {
    padding: 0;
    min-height: 100vh;
    height: 100vh;
    max-height: 100vh;
  }
  
  .game-iframe {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
  
  .game-iframe.smallscreen {
    width: 100%;
    max-width: 100%;
    height: 100%;
  }
  
  .game-page-container.smallscreen .game-content {
    padding: 8px;
  }
  
  .shape {
    display: none;
  }
  
  /* Center loading state on mobile */
  .game-page-container > .unity-loading-state {
    padding: 24px;
    min-width: 240px;
    max-width: 85vw;
    gap: 16px;
  }
  
  .game-iframe-container .unity-loading-state,
  .unity-error-state {
    padding: 16px;
    gap: 12px;
  }
  
  .unity-spinner {
    width: 32px;
    height: 32px;
    border-width: 3px;
  }
  
  .unity-progress-bar-empty {
    width: 90%;
    max-width: 300px;
    height: 20px;
  }
  
  /* Ensure buttons are always clickable on mobile */
  .screen-control-btn,
  .back-button {
    pointer-events: auto;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
  }
}

@media (max-width: 480px) {
  .game-header {
    padding: 10px 12px;
    gap: 8px;
  }
  
  .back-button {
    padding: 8px 12px;
    font-size: 0.8rem;
    gap: 6px;
    min-height: 44px;
  }
  
  .back-arrow {
    font-size: 14px;
  }
  
  .game-title {
    font-size: 1rem;
  }
  
  .game-icon {
    font-size: 1.25rem;
  }
  
  .screen-controls {
    gap: 6px;
  }
  
  .screen-control-btn {
    min-width: 44px;
    height: 44px;
    padding: 8px;
    border-radius: 8px;
  }
  
  .control-icon {
    font-size: 14px;
  }
  
  .game-content {
    padding: 0;
    min-height: 100vh;
    height: 100vh;
    max-height: 100vh;
  }
  
  .game-iframe {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
  
  .game-iframe.smallscreen {
    max-width: 100%;
    height: 100%;
  }
  
  /* Enhanced mobile loading state */
  .game-page-container > .unity-loading-state {
    padding: 20px;
    min-width: 200px;
    max-width: 80vw;
    gap: 14px;
    font-size: 0.9rem;
  }
  
  .game-iframe-container .unity-loading-state,
  .unity-error-state {
    padding: 12px;
    gap: 10px;
    font-size: 0.85rem;
  }
  
  .unity-spinner {
    width: 28px;
    height: 28px;
    border-width: 3px;
  }
  
  .unity-progress-bar-empty {
    width: 95%;
    max-width: 250px;
    height: 18px;
  }
  
  .unity-loading-state p,
  .unity-error-state p {
    font-size: 0.85rem;
    margin: 0;
  }
  
  .unity-error-state small {
    font-size: 0.75rem;
  }
}

/* Very small screens (320px and below) */
@media (max-width: 320px) {
  .game-header {
    padding: 8px 10px;
    gap: 6px;
  }
  
  .back-button {
    padding: 6px 10px;
    font-size: 0.75rem;
    min-height: 40px;
  }
  
  .game-title {
    font-size: 0.9rem;
  }
  
  .screen-control-btn {
    min-width: 40px;
    height: 40px;
    padding: 6px;
  }
  
  .control-icon {
    font-size: 12px;
  }
  
  .game-content {
    padding: 0;
    min-height: 100vh;
    height: 100vh;
    max-height: 100vh;
  }
  
  .game-iframe {
    width: 100%;
    height: 100%;
  }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .game-page-container {
    min-height: 100vh;
    min-height: -webkit-fill-available;
    max-height: 100vh;
    max-height: -webkit-fill-available;
    height: 100vh;
    height: -webkit-fill-available;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100vw;
    max-width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }
  
  .game-header {
    padding: 1px 3px;
    min-height: 20px;
    max-height: 20px;
    height: 20px;
    flex-wrap: nowrap;
    gap: 2px;
    position: relative;
    z-index: 100;
    flex-shrink: 0;
    box-sizing: border-box;
    border-bottom-width: 1px;
    width: 100%;
    max-width: 100vw;
  }
  
  /* Hide back button in mobile landscape */
  .back-button {
    display: none !important;
  }
  
  .game-title-container {
    flex: 1 1;
    order: 1;
    margin-top: 0;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 3px;
    justify-content: center;
  }
  
  .game-icon {
    font-size: 0.65rem;
    flex-shrink: 0;
  }
  
  .game-title {
    font-size: 0.65rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    line-height: 1.1;
  }
  
  .screen-controls {
    order: 2;
    flex: 0 0 auto;
    gap: 2px;
    margin-left: auto;
    z-index: 10;
    position: relative;
  }
  
  .screen-control-btn {
    min-width: 20px;
    height: 20px;
    max-height: 20px;
    padding: 2px;
    border-radius: 3px;
    flex-shrink: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(201, 132, 199, 0.3);
    box-sizing: border-box;
  }
  
  .control-icon {
    font-size: 9px;
  }
  
  .game-content {
    padding: 0;
    min-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    min-height: calc(100vh - 20px);
    min-height: -webkit-fill-available;
    max-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    max-height: calc(100vh - 20px);
    max-height: -webkit-fill-available;
    height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    height: calc(100vh - 20px);
    height: -webkit-fill-available;
    height: calc(100dvh - 20px);
    overflow: hidden;
    flex: 1 1;
    display: flex;
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
    position: relative;
  }
  
  .game-iframe-container {
    width: 100%;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    display: flex;
    box-sizing: border-box;
    max-width: 100vw;
    overflow: hidden;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }
  
  .game-iframe {
    width: 100%;
    height: 100%;
    max-height: 100%;
    min-height: 100%;
    border-radius: 0;
    box-sizing: border-box;
    max-width: 100vw;
    object-fit: contain;
    transform-origin: center center;
    transform: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }
  
  
  .game-iframe.fullscreen {
    height: 100%;
    max-height: 100%;
    width: 100%;
    max-width: 100vw;
  }
  
  .game-page-container.fullscreen {
    height: 100vh;
    height: -webkit-fill-available;
    height: 100dvh;
    max-height: 100vh;
    max-height: -webkit-fill-available;
    max-height: 100dvh;
    width: 100vw;
    max-width: 100vw;
  }
  
  .game-page-container.fullscreen .game-header {
    min-height: 20px;
    max-height: 20px;
    height: 20px;
    padding: 1px 4px;
  }
  
  .game-page-container.fullscreen .game-content {
    min-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    min-height: calc(100vh - 20px);
    min-height: -webkit-fill-available;
    max-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    max-height: calc(100vh - 20px);
    max-height: -webkit-fill-available;
    height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    height: calc(100vh - 20px);
    height: -webkit-fill-available;
    height: calc(100dvh - 20px);
    padding: 0;
  }
  
  .game-page-container.fullscreen .game-iframe {
    height: 100%;
    max-height: 100%;
    width: 100%;
    max-width: 100vw;
  }
  
  .game-iframe.smallscreen {
    height: 100%;
    max-height: 100%;
    width: 100%;
    max-width: 100vw;
  }
  
  /* Ensure buttons are always clickable */
  .screen-control-btn {
    pointer-events: auto;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
  }
  
  /* Prevent header from being cut off */
  .game-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    flex-shrink: 0;
  }
  
  /* Remove any padding that causes overflow */
  .game-page-container.smallscreen .game-content {
    padding: 0;
  }
  
  /* Ensure no horizontal scroll */
  body {
    overflow-x: hidden;
    max-width: 100vw;
    position: fixed;
    width: 100%;
    height: 100%;
  }
  
  html {
    overflow-x: hidden;
    max-width: 100vw;
    height: 100%;
    height: -webkit-fill-available;
    height: 100dvh;
  }
}

/* Extra small mobile landscape (very small height screens) */
@media (max-width: 768px) and (orientation: landscape) and (max-height: 500px) {
  .game-header {
    padding: 1px 2px;
    min-height: 18px;
    max-height: 18px;
    height: 18px;
    gap: 2px;
  }
  
  /* Back button already hidden in landscape */
  .back-button {
    display: none !important;
  }
  
  .game-icon {
    font-size: 0.6rem;
  }
  
  .game-title {
    font-size: 0.6rem;
  }
  
  .screen-control-btn {
    min-width: 18px;
    height: 18px;
    max-height: 18px;
    padding: 1px;
  }
  
  .control-icon {
    font-size: 8px;
  }
  
  .game-content {
    min-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    min-height: calc(100vh - 18px);
    min-height: -webkit-fill-available;
    max-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    max-height: calc(100vh - 18px);
    max-height: -webkit-fill-available;
    height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    height: calc(100vh - 18px);
    height: -webkit-fill-available;
    height: calc(100dvh - 18px);
  }
  
  .game-iframe {
    width: 100%;
    height: 100%;
    max-width: 100vw;
    transform: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }
  
  .game-page-container.fullscreen .game-content {
    min-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    min-height: calc(100vh - 18px);
    min-height: -webkit-fill-available;
    max-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    max-height: calc(100vh - 18px);
    max-height: -webkit-fill-available;
    height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    height: calc(100vh - 18px);
    height: -webkit-fill-available;
    height: calc(100dvh - 18px);
  }
}

/* Additional responsive improvements for tablets */
@media (min-width: 481px) and (max-width: 768px) {
  .game-header {
    padding: 12px 18px;
  }
  
  .game-title {
    font-size: 1.3rem;
  }
  
  .back-button {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  
  .game-page-container {
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    overflow: hidden;
  }
  
  .game-content {
    height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    max-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow: hidden;
  }
}

/* Tablet and iPad specific fixes (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .game-page-container {
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    overflow: hidden;
    position: relative;
  }
  
  .game-content {
    height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    max-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow: hidden;
    padding: 0;
    margin: 0;
  }
  
  .game-iframe-container {
    width: 100%;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
  }
  
  .game-iframe {
    width: 100%;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
  }
  
  /* Ensure fullscreen mode works correctly on tablets */
  .game-page-container.fullscreen {
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
  }
  
  .game-page-container.fullscreen .game-content {
    height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    max-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }
}

/* iPad landscape orientation */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
  .game-page-container {
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    overflow: hidden;
  }
  
  .game-content {
    height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    max-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow: hidden;
  }
  
  .game-iframe {
    height: 100%;
    max-height: 100%;
    overflow: hidden;
  }
}

/* Larger screens (desktop) - above 1024px */
@media (min-width: 1025px) {
  .game-header {
    padding: 12px 20px;
    min-height: 72px;
    height: 72px;
    max-height: 72px;
  }
  
  .back-button {
    padding: 10px 18px;
    min-height: 48px;
    height: 48px;
  }
  
  .game-title {
    font-size: 1.8rem;
  }
  
  .game-icon {
    font-size: 2rem;
  }
  
  .screen-control-btn {
    min-width: 48px;
    height: 48px;
    padding: 10px 14px;
  }
  
  .control-icon {
    font-size: 18px;
  }
  
  .game-content {
    min-height: 100vh;
    height: 100vh;
    max-height: 100vh;
    width: 100%;
    padding: 0;
    margin: 0;
  }
  
  .game-iframe-container {
    width: 100%;
    height: 100%;
    min-height: 100%;
    max-height: 100%;
  }
  
  .game-iframe {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    min-height: 100%;
    transform: none;
  }
}

/* Center loading state when checking auth or loading URLs */
.game-page-container > .unity-loading-state {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-radius: 16px;
  text-align: center;
  padding: 32px;
  gap: 20px;
  color: #2e0f35;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-width: 280px;
  max-width: 90vw;
}

/* Loading state inside game canvas container */
.game-iframe-container .unity-loading-state,
.unity-error-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  text-align: center;
  padding: 24px;
  gap: 16px;
  color: #2e0f35;
  font-weight: 600;
}

.unity-loading-state p,
.unity-error-state p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.unity-error-state small {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-top: 4px;
}

.unity-loading-state,
.unity-error-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  text-align: center;
  padding: 24px;
  gap: 16px;
  color: #2e0f35;
  font-weight: 600;
}

.unity-spinner {
  width: 36px;
  height: 36px;
  border: 4px solid rgba(201, 132, 199, 0.3);
  border-top-color: #e2842d;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.unity-progress-bar-empty {
  width: 80%;
  max-width: 400px;
  height: 24px;
  border: 2px solid rgba(201, 132, 199, 0.3);
  border-radius: 12px;
  padding: 2px;
  background: rgba(201, 132, 199, 0.1);
  overflow: hidden;
}

.unity-progress-bar-full {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #e2842d, #c984c7);
  border-radius: 10px;
  transition: width 0.3s ease;
  box-shadow: 0 2px 8px rgba(226, 132, 45, 0.3);
}


/*# sourceMappingURL=main.1b21c50a.css.map*/