:root {
    --primary-color: #FF6B6B;
    --primary-dark: #E84118;
    --secondary-color: #4ECDC4;
    --secondary-dark: #009688;
    --kids-yellow: #FFD93D;
    --kids-orange: #FF9F43;
    --kids-blue: #45B7D1;
    --kids-blue-dark: #2980B9;
    --kids-green: #6BCB77;
    --kids-purple: #A29BFE;
    --kids-pink: #FF92A9;
    --text-color: #2D3436;
    --text-light: #555555;
    --light-bg: #FFFBEB;
    --white: #FFFFFF;
    --page-bg: #FFFFFF;
    --surface-bg: rgba(255, 255, 255, 0.92);
    --surface-solid: #FFFFFF;
    --footer-bg: #2D3436;
    --glass: rgba(255, 255, 255, 0.85);
    --shadow: 0 10px 25px rgba(0,0,0,0.08);
    --shadow-hover: 0 15px 35px rgba(0,0,0,0.12);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --border-radius: 30px;
    --font-body: 'Nunito', sans-serif;
    --font-heading: 'Fredoka', sans-serif;
    --font-accent: 'Caveat', cursive;
}

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    background-color: var(--page-bg);
    animation: pageEnter 260ms ease-out both;
}

body.has-bottom-dock {
    padding-bottom: 96px;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    letter-spacing: 0.2px;
    color: var(--text-color);
}

section[id] {
    scroll-margin-top: 120px;
}

.theme-prisma {
    --primary-color: #FF6B6B;
    --primary-dark: #E84118;
    --secondary-color: #4ECDC4;
    --secondary-dark: #009688;
}

.theme-abama {
    --primary-color: #6BCB77;
    --primary-dark: #2E9E5A;
    --secondary-color: #FFD93D;
    --secondary-dark: #FF9F43;
    --light-bg: #F3FFF5;
}

.theme-cermat {
    --primary-color: #2980B9;
    --primary-dark: #1F5F8A;
    --secondary-color: #A29BFE;
    --secondary-dark: #6C5CE7;
    --light-bg: #F3F7FF;
}

body.mode-dark {
    --page-bg: #0B1020;
    --surface-bg: rgba(17, 24, 39, 0.78);
    --surface-solid: #111827;
    --footer-bg: #050913;
    --glass: rgba(17, 24, 39, 0.72);
    --text-color: #F1F5F9;
    --text-light: #CBD5E1;
    --light-bg: rgba(255, 255, 255, 0.04);
    --shadow: 0 10px 25px rgba(0,0,0,0.45);
    --shadow-hover: 0 15px 35px rgba(0,0,0,0.55);
}

.text-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--kids-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

a { text-decoration: none; }
ul { list-style: none; }
img { 
    max-width: 100%; 
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}

@media (max-width: 576px) {
    .container { padding: 0 18px; }
}

.btn-primary, .btn-secondary {
    min-height: 48px;
    padding: 15px 35px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

/* Typography Enhancements */
h1 { font-size: 3.2rem; color: var(--text-color); text-shadow: none; }
h3 { font-size: 1.7rem; color: var(--text-color); margin-bottom: 12px; }
p { font-size: 1rem; color: var(--text-light); margin-bottom: 18px; font-weight: 600; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
    border: none;
    transform: perspective(1px) translateZ(0);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.4);
}

.card-fun {
    background: var(--surface-solid);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 3px solid transparent;
}

.card-fun:hover {
    border-color: var(--kids-yellow);
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: var(--surface-solid);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Background Decorations */
.bg-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}
.bg-decorations i {
    position: absolute;
    color: rgba(0,0,0,0.03);
    font-size: 5rem;
}

body.mode-dark .bg-decorations i {
    color: rgba(255,255,255,0.06);
}
.decor-1 { top: 10%; left: 5%; }
.decor-2 { top: 20%; right: 10%; }
.decor-3 { bottom: 15%; left: 15%; }
.decor-4 { top: 50%; right: 5%; }
.decor-5 { bottom: 5%; right: 20%; }
.decor-6 { top: 80%; left: 40%; }

.bee-mascot {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1200;
    width: 140px;
    height: 140px;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,0.18));
}

.bee-mascot.bee-variant-1 { width: 150px; height: 150px; }
.bee-mascot.bee-variant-2 { width: 118px; height: 118px; filter: drop-shadow(0 14px 18px rgba(0,0,0,0.14)); }
.bee-mascot.bee-variant-3 { width: 92px; height: 92px; filter: drop-shadow(0 16px 22px rgba(0,0,0,0.18)); }

.bee-mascot .bee-rotator {
    width: 100%;
    height: 100%;
    position: relative;
    display: block;
    transform-origin: 50% 60%;
}

.bee-mascot .bee-content {
    width: 100%;
    height: 100%;
    position: relative;
    transform-origin: 50% 60%;
    animation: beeBodyBob 900ms ease-in-out infinite;
}

.bee-mascot .bee-body {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transform: translateZ(0);
}

.bee-scroll-follower {
    z-index: 1250;
}

.theme-abama .bee-scroll-follower .bee-body,
.theme-cermat .bee-scroll-follower .bee-body {
    transform: translateZ(0) scale(1.25);
    transform-origin: 50% 50%;
}

.bee-hint {
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 14px;
    background: var(--surface-bg);
    color: var(--text-color);
    border: 2px solid rgba(0,0,0,0.08);
    box-shadow: 0 10px 18px rgba(0,0,0,0.14);
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 0.72rem;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
}

body.mode-dark .bee-hint {
    border-color: rgba(255,255,255,0.14);
}

.bee-hint::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid var(--surface-bg);
}

.bee-mascot .bee-wing {
    position: absolute;
    top: 40px;
    width: 62px;
    height: 38px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.95), rgba(255,255,255,0.15) 70%, rgba(255,255,255,0));
    border-radius: 999px;
    filter: blur(0.3px);
    opacity: 0.95;
    transform-origin: 10% 60%;
    animation: beeWingFlap 140ms ease-in-out infinite;
    mix-blend-mode: screen;
}

.bee-mascot .bee-wing-left { left: 42px; transform: rotate(-10deg); }
.bee-mascot .bee-wing-right { right: 42px; transform: rotate(10deg) scaleX(-1); }

.bee-mascot.is-paused .bee-content,
.bee-mascot.is-paused .bee-wing {
    animation-play-state: paused;
}

.bee-trail-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1199;
}

.bee-trail {
    position: fixed;
    left: 0;
    top: 0;
    pointer-events: none;
    opacity: 0.55;
    filter: drop-shadow(0 10px 14px rgba(0,0,0,0.12));
    animation: beeTrailFade 750ms linear forwards;
}

.bee-trail.bee-variant-2 { opacity: 0.42; filter: blur(0.2px) drop-shadow(0 12px 16px rgba(0,0,0,0.10)); }
.bee-trail.bee-variant-3 { opacity: 0.65; filter: blur(0.6px) drop-shadow(0 10px 14px rgba(0,0,0,0.08)); }

@keyframes beeTrailFade {
    0% { opacity: 0.55; filter: blur(0px) drop-shadow(0 10px 14px rgba(0,0,0,0.12)); }
    100% { opacity: 0; filter: blur(1.5px) drop-shadow(0 10px 14px rgba(0,0,0,0)); }
}

@keyframes beeWingFlap {
    0% { transform: rotate(-12deg) scaleY(0.85); }
    50% { transform: rotate(18deg) scaleY(1.05); }
    100% { transform: rotate(-12deg) scaleY(0.85); }
}

@keyframes beeBodyBob {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(2deg) scale(1.02); }
}

/* Container untuk lebah */
.bee-container {
    width: 100px;
    height: 100px;
    position: relative;
    animation: fly 2s ease-in-out infinite;
}

/* Lebah itu sendiri */
.bee {
    width: 50px;
    height: 50px;
    background-color: #ffc107;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Sayap lebah */
.bee::after {
    content: "";
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    right: -10px;
    animation: flap 0.1s ease-in-out infinite;
}

/* Animasi terbang */
@keyframes fly {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* Animasi sayap */
@keyframes flap {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(10deg); }
    100% { transform: rotate(0deg); }
}

@media (max-width: 480px) {
    .bee-mascot {
        width: 110px;
        height: 110px;
    }

    .bee-mascot.bee-variant-1 { width: 120px; height: 120px; }
    .bee-mascot.bee-variant-2 { width: 98px; height: 98px; }
    .bee-mascot.bee-variant-3 { width: 78px; height: 78px; }

    .bee-mascot .bee-wing {
        top: 32px;
        width: 52px;
        height: 32px;
    }

    .bee-mascot .bee-wing-left { left: 32px; }
    .bee-mascot .bee-wing-right { right: 32px; }
}

/* Navbar */
header {
    background: var(--surface-solid);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

body.mode-dark header {
    border-bottom-color: rgba(255,255,255,0.12);
}

/* Floating Bottom Dock */
.bottom-dock {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 1300;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border-radius: 999px;
    background: var(--surface-bg);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    backdrop-filter: blur(10px);
}

.dock-program {
    position: relative;
}

.dock-program-menu {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 170px;
    padding: 8px;
    border-radius: 14px;
    background: var(--surface-solid);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
    display: none;
}

.dock-program.open .dock-program-menu {
    display: block;
}

.dock-program-menu a {
    min-height: 40px;
    padding: 10px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    font-weight: 800;
    font-size: 0.85rem;
}

.dock-program-menu a:hover {
    background: rgba(0,0,0,0.06);
}

body.mode-dark .dock-program-menu {
    border-color: rgba(255,255,255,0.14);
}

body.mode-dark .dock-program-menu a:hover {
    background: rgba(255,255,255,0.08);
}

body.mode-dark .bottom-dock {
    border-color: rgba(255,255,255,0.14);
}

.dock-item {
    min-width: 66px;
    min-height: 58px;
    padding: 8px 10px;
    border-radius: 20px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--text-color);
    border: 0;
    background: transparent;
    text-decoration: none;
    font-weight: 800;
    font-family: var(--font-body);
    transition: var(--transition);
    cursor: pointer;
}

.dock-item i {
    font-size: 1rem;
    line-height: 1;
}

.dock-item span {
    font-size: 0.72rem;
    line-height: 1;
}

.dock-item:hover {
    background: rgba(0,0,0,0.06);
}

body.mode-dark .dock-item:hover {
    background: rgba(255,255,255,0.08);
}

.dock-item.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: 0 8px 18px rgba(0,0,0,0.22);
}

.bottom-dock .dock-item {
    transform-origin: bottom center;
}

.bottom-dock:hover .dock-item {
    transform: scale(0.96);
}

.bottom-dock .dock-item.magnify-1,
.bottom-dock .dock-item:hover {
    transform: translateY(-8px) scale(1.16);
}

.bottom-dock .dock-item.magnify-2 {
    transform: translateY(-5px) scale(1.08);
}

.bottom-dock .theme-toggle {
    width: auto;
    height: auto;
    border: 0;
    box-shadow: none;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0;
}

.logo img { height: 80px; }

.theme-abama .logo img,
.theme-cermat .logo img {
    height: 92px;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-4px) rotate(-1deg); }
}

.logo img {
    animation: logoFloat 3.8s ease-in-out infinite;
}

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

/* Navigation Touch Targets & Vivid Hover */
.nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap; /* Prevent overlap by wrapping on smaller screens */
}

.nav-links a {
    color: var(--text-color);
    font-weight: 700;
    transition: var(--transition);
    padding: 10px 18px;
    border-radius: 20px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.nav-links .nav-link-like {
    color: var(--text-color);
    font-weight: 700;
    transition: var(--transition);
    padding: 10px 18px;
    border-radius: 20px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.nav-links a i {
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.nav-links a:hover {
    color: var(--white);
    background: var(--primary-color);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
    transform: translateY(-3px);
}

.nav-links .nav-link-like:hover {
    color: var(--white);
    background: var(--primary-color);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
    transform: translateY(-3px);
}

.nav-links a:hover i {
    transform: scale(1.2) rotate(10deg);
}

.nav-links a.active {
    color: var(--white);
    background: var(--kids-blue-dark);
    box-shadow: 0 5px 15px rgba(41, 128, 185, 0.3);
}

.program-dropdown {
    position: relative;
}

.program-dropdown-toggle {
    background: transparent;
    border: 0;
    width: auto;
    cursor: pointer;
    font: inherit;
}

.program-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 210px;
    padding: 10px;
    border-radius: 16px;
    background: var(--surface-solid);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 14px 28px rgba(0,0,0,0.15);
    display: none;
    z-index: 1200;
}

.program-dropdown:hover .program-dropdown-menu,
.program-dropdown.open .program-dropdown-menu {
    display: block;
}

.program-dropdown-menu a {
    width: 100%;
    justify-content: flex-start;
    margin-bottom: 4px;
}

body.mode-dark .program-dropdown-menu {
    border-color: rgba(255,255,255,0.16);
}

.nav-links a.btn-primary:hover {
    background: linear-gradient(135deg, var(--kids-orange), var(--primary-color));
    box-shadow: 0 10px 25px rgba(255, 159, 67, 0.5);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--white);
    background: var(--primary-color);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--primary-color); }

.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 2px solid rgba(0,0,0,0.08);
    background: var(--glass);
    color: var(--text-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 18px rgba(0,0,0,0.10);
}

.theme-toggle:hover {
    transform: translateY(-2px);
    border-color: rgba(0,0,0,0.14);
}

.theme-toggle i { font-size: 1.1rem; }

body.mode-dark .theme-toggle {
    border-color: rgba(255,255,255,0.14);
    box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}

.theme-toggle--mobile {
    display: none;
    width: 100%;
    justify-content: center;
}

@media (max-width: 992px) {
    .theme-toggle--mobile {
        display: inline-flex;
    }

    .program-dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 8px;
    }

    .program-dropdown-menu a {
        justify-content: center;
    }
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

body.has-bottom-dock .hero {
    padding-top: 180px;
}

.hero-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: -2;
}

.hero-slideshow .slide.active { opacity: 0.1; }

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.05rem;
    margin-bottom: 30px;
    color: var(--text-light);
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.hero-image { position: relative; }
.mascot-hero { width: 150px; position: absolute; bottom: -20px; left: -20px; z-index: 2; }
/* Float Animation */
@keyframes floatAnim {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.mascot-float {
    width: 150px;
    position: absolute;
    top: -50px;
    right: -20px;
    z-index: 2;
    animation: floatAnim 4s ease-in-out infinite;
}

.kids-frame {
    width: 100%;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 10px solid var(--white);
    position: relative;
    background: #eee;
}
.hero-foreground-slideshow img {
    width: 100%;
    display: none;
}
.hero-foreground-slideshow img.active { display: block; }

/* About Section */
.about { padding: 100px 0; }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    padding: 20px;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 5px dashed var(--kids-blue);
    border-radius: 40px;
    z-index: -1;
    transform: rotate(-3deg);
}

.mascot-about {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 150px;
    z-index: 2;
    animation: floatAnim 3s infinite ease-in-out;
}

.about-image img.main-about-img {
    width: 100%;
    border-radius: 35px;
    box-shadow: var(--shadow);
    border: 10px solid var(--white);
}
.subtitle {
    color: var(--secondary-dark);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    display: block;
    font-size: 1.15rem;
    position: relative;
    padding-left: 30px;
    font-family: var(--font-accent);
}

.subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}
.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
}
.about-text p { margin-bottom: 15px; }

.about-text ul,
.founder-text ul {
    list-style: disc;
    padding-left: 22px;
    margin-bottom: 20px;
}

.about-text ol,
.founder-text ol {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
    counter-reset: numbered;
}

.about-text ol > li,
.founder-text ol > li {
    counter-increment: numbered;
    position: relative;
    padding-left: 3.2em;
    margin-bottom: 10px;
}

.about-text ol > li::before,
.founder-text ol > li::before {
    content: counter(numbered) ".";
    position: absolute;
    left: 0;
    width: 2.4em;
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    color: var(--secondary-dark);
}

.method-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}

.method-card i {
    font-size: 3rem;
    color: var(--kids-blue);
    margin-bottom: 20px;
    display: block;
}

/* Fun Learning & Harmony */
.fun-learning, .harmony { padding: 100px 0; background-color: var(--light-bg); }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { 
    font-size: 2.8rem; 
    color: var(--primary-color); 
    margin-bottom: 20px;
    text-shadow: 3px 3px 0px rgba(0,0,0,0.05);
}
.section-header p { 
    font-size: 1.05rem; 
    color: var(--text-light); 
    max-width: 750px; 
    margin: 0 auto; 
    font-weight: 600;
    line-height: 1.4;
}
.fun-grid, .harmony-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }

.fun-icons {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.fun-icon-item {
    text-align: center;
    background: var(--white);
    padding: 40px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    flex: 1;
    position: relative;
    transition: var(--transition);
    border: 4px solid transparent;
}

.fun-icon-item:hover {
    transform: translateY(-15px) rotate(3deg);
    border-color: var(--kids-purple);
    box-shadow: var(--shadow-hover);
}

.fun-icon-item:nth-child(even):hover {
    transform: translateY(-15px) rotate(-3deg);
    border-color: var(--kids-orange);
}

.fun-icon-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: block;
}

.fun-icon-item span {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-color);
}

.mini-mascot {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    z-index: 2;
}

/* Founder */
.founder-section { padding: 100px 0; }
.founder-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: center; }
.founder-img-wrapper img { width: 100%; border-radius: 30px; box-shadow: var(--shadow); }
.signature { 
    font-family: var(--font-accent); 
    font-size: 2.4rem; 
    color: var(--primary-color);
    margin-top: 20px;
    display: block;
}

/* Gallery Masonry */
.gallery-section {
    padding: 120px 0;
    background: var(--page-bg);
    position: relative;
}

.masonry-gallery {
    columns: 3 300px;
    column-gap: 25px;
    width: 100%;
    margin: 0 auto;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 25px;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 8px solid var(--surface-solid);
    background: var(--surface-solid);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
    filter: saturate(1.2);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.3));
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: var(--shadow-hover);
    z-index: 10;
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: saturate(1.5);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item:nth-child(even):hover {
    transform: translateY(-10px) rotate(-2deg);
}

/* Decorative Section Frame & Wavy Dividers */
.section-frame {
    position: relative;
    padding: 120px 0;
    border-top: 15px solid var(--secondary-color);
    border-bottom: 15px solid var(--primary-color);
    background-image: radial-gradient(var(--light-bg) 3px, transparent 3px);
    background-size: 40px 40px;
    margin: 40px 0;
    border-radius: 60px;
}

.wavy-divider {
    display: none !important;
    width: 100%;
    height: 0 !important;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.wavy-divider::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--light-bg);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V120c67.81-23.11,144.29-31.06,214.34-3C284.33,119.5,367.22,78.5,446.21,57.67,525.2,36.84,608.09,77.84,687.08,98.67c79,20.83,161.89-20.17,240.88-41Z' fill='%23fff'/%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V120c67.81-23.11,144.29-31.06,214.34-3C284.33,119.5,367.22,78.5,446.21,57.67,525.2,36.84,608.09,77.84,687.08,98.67c79,20.83,161.89-20.17,240.88-41Z' fill='%23fff'/%3E%3C/svg%3E");
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
}

/* --- RECOVERED AND NEW STYLES --- */

/* Testimonials (Salam Prisma) */
.testimonials {
    padding: 120px 0;
    background: #fef9f6;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.video-card {
    background: var(--white);
    border-radius: 30px;
    box-shadow: var(--shadow);
    padding: 24px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 20px;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-cta {
    display: inline-block;
    margin-top: 18px;
}

.testimonial-slider {
    background: var(--white);
    border-radius: 30px;
    box-shadow: var(--shadow);
    padding: 30px;
}

.testimonial-track {
    display: grid;
    gap: 20px;
}

.testimonial-item .testimonial-content {
    background: #fffdfb;
    border: 2px dashed #ffe1d3;
    border-radius: 24px;
    padding: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--kids-yellow);
    background: #fff7ef;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.author-avatar img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-avatar .avatar-fallback {
    display: none;
    color: var(--primary-color);
    font-size: 1.3rem;
    line-height: 1;
}

.author-avatar.is-fallback .avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.testimonial-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.testimonial-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--primary-color);
    cursor: pointer;
}

.testimonial-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
}
.dot.active { background: var(--primary-color); }

/* Registration Section */
.registration {
    padding: 120px 0;
    background: #009688; /* Darker background for contrast with white text */
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.registration p {
    color: rgba(255,255,255,0.95);
}

.registration h2 {
    color: var(--kids-yellow);
    text-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}

.mascot-reg-left {
    position: absolute;
    bottom: 20px;
    left: -30px;
    width: 220px;
    opacity: 0.9;
    transform: rotate(15deg);
    z-index: 1;
}

.mascot-reg-right {
    position: absolute;
    top: 40px;
    right: -40px;
    width: 200px;
    opacity: 0.9;
    transform: rotate(-10deg);
    z-index: 1;
}

.reg-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.reg-info h2 {
    font-size: 2.6rem;
    margin-bottom: 15px;
    color: var(--white);
}

.reg-info .tagline {
    font-size: 1.2rem;
    font-family: var(--font-accent);
    margin-bottom: 40px;
    color: var(--secondary-color);
}

.contact-list {
    display: grid;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(10px);
}

.contact-item i {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    background: var(--kids-yellow);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

.contact-details h4 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.contact-details p {
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
}

.cta-box {
    margin-top: 40px;
    background: var(--kids-yellow);
    padding: 30px;
    border-radius: 25px;
    color: var(--text-color);
    transform: rotate(-2deg);
    text-align: center;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.cta-box p {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    line-height: 1.1;
    margin: 0;
}

.reg-form {
    background: var(--white);
    padding: 50px;
    border-radius: 40px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    color: var(--text-color);
}

.reg-form h3 { font-size: 1.6rem; color: var(--primary-color); text-align: center; margin-bottom: 5px; }
.reg-form p { text-align: center; margin-bottom: 30px; color: var(--text-light); }

.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }

input, textarea {
    width: 100%;
    padding: 18px;
    border: 3px solid #eee;
    border-radius: 15px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-note { font-size: 0.9rem !important; margin-top: 15px !important; color: var(--text-light) !important; }

/* Location Section */
.location {
    padding: 120px 0;
}

.map-container {
    width: 100%;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 10px solid var(--white);
}

/* Mascot Fade Animation */
.fade-mascot {
    animation: fadeMascot 8s infinite ease-in-out;
    pointer-events: none;
}

@keyframes fadeMascot {
    0%, 100% { opacity: 0.2; transform: scale(0.9); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* Download Section */
.download-section {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.download-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    padding: 60px;
    border-radius: 40px;
    box-shadow: var(--shadow);
    gap: 50px;
}

.download-text h2 {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.download-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.download-image i {
    font-size: 8rem;
    color: var(--primary-color);
    animation: bounce 3s infinite;
}

/* Pre-footer CTA */
.pre-footer-cta {
    position: relative;
    padding: 150px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    color: var(--white);
}

.pre-footer-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 25px;
    color: var(--white);
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.4;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.15rem;
}

/* Footer */
footer {
    padding: 100px 0 30px;
    background: var(--footer-bg);
    color: #eee;
    border-top: 15px solid var(--secondary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 140px;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 14px;
    border-radius: 22px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
}

.footer-links h4, .footer-social h4 {
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-family: var(--font-heading);
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 15px; }
.footer-links a { color: rgba(255,255,255,0.78); text-decoration: none; transition: var(--transition); font-size: 1.1rem; }
.footer-links a:hover { color: var(--secondary-color); padding-left: 10px; }

.social-icons { display: flex; gap: 20px; flex-wrap: wrap; }
.social-icons a {
    font-size: 1.8rem;
    color: var(--white);
    background: #444;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover { background: var(--primary-color); transform: scale(1.1) rotate(10deg); }

.footer-bottom { text-align: center; padding-top: 40px; border-top: 1px solid #444; font-size: 1.1rem; }

/* Animations */
@keyframes bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0) rotate(0); }
    50% { transform: translateY(-25px) translateX(15px) rotate(8deg); }
}

/* New Section Styles - Salam Prisma & CTA WA */
.salam-prisma-section {
    padding: 100px 0;
    background: var(--page-bg);
}

.video-container-centered {
    max-width: 800px;
    margin: 40px auto 0;
    background: var(--surface-solid);
    padding: 20px;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.cta-wa-section {
    padding: 80px 0;
    background: var(--kids-blue-dark);
    text-align: center;
}

.cta-wa-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 30px;
    color: var(--white);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255,255,255,0.2);
    max-width: 800px;
    margin: 0 auto;
}

.cta-wa-box h2 {
    color: var(--kids-yellow);
    margin-bottom: 20px;
}

.cta-wa-box p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--white);
}

.btn-whatsapp-cta {
    background-color: #25D366;
    border: none;
    color: white;
    font-weight: 700;
}

.btn-whatsapp-cta:hover {
    background-color: #128C7E;
    transform: translateY(-5px) scale(1.05);
}

/* Adjust Testimonials for full width slider */
.testimonials .testimonial-slider {
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-track {
    position: relative;
    overflow: hidden;
    min-height: 300px; /* Prevent collapse */
}

.testimonial-item {
    display: none;
    animation: fadeEffect 0.8s;
}

.testimonial-item.active {
    display: block;
}

@keyframes fadeEffect {
    from {opacity: 0.4;}
    to {opacity: 1;}
}

/* Overlap CTA */
.overlap-cta {
    position: relative;
    transform: translateY(30px);
    z-index: 10;
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.4);
    border: 4px solid #fff;
}

/* Responsive */
@media (max-width: 992px) {
    .hero .container, .about-grid, .reg-container, .fun-grid, .harmony-grid, .founder-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    h1 { font-size: 3rem; }
    .hero-content h1 { font-size: 3rem; }
    .hero-btns { justify-content: center; }
    .mascot-hero, .mascot-float, .mascot-about, .mascot-reg-left, .mascot-reg-right { display: none; }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 8px;
        padding: 0;
    }
    .nav-links.active {
        display: flex;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        width: 100%;
        padding: 14px;
        border-radius: 16px;
        background: var(--surface-solid);
        border: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 16px 32px rgba(0,0,0,0.16);
        max-height: 70vh;
        overflow-y: auto;
        z-index: 1200;
    }
    body.mode-dark .nav-links.active {
        border-color: rgba(255,255,255,0.14);
    }
    .nav-links li { width: 100%; }
    .nav-links a,
    .nav-links .nav-link-like {
        width: 100%;
        justify-content: center;
    }
    .menu-toggle { display: block; }
    .footer-content { grid-template-columns: 1fr; }
    .kids-frame { width: 320px; height: 320px; margin: 0 auto; }
    .download-container { flex-direction: column; text-align: center; padding: 40px 20px; }
    .download-image { order: -1; }
    .cta-content h2 { font-size: 2.5rem; }
    .logo img { height: 64px; }
    .theme-abama .logo img,
    .theme-cermat .logo img {
        height: 74px;
    }
    .footer-logo img { height: 120px; }
    .cta-content p { font-size: 1.1rem; }
    .cta-content p { font-size: 1.1rem; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .video-card { padding: 16px; }
    .testimonial-slider { padding: 20px; }
    .social-icons { justify-content: center; }
    .social-icons a { width: 50px; height: 50px; font-size: 1.5rem; }
    .masonry-gallery { columns: 2; }
}

@media (max-width: 576px) {
    h1 { font-size: 2.5rem; }
    .masonry-gallery { columns: 1; }
    .section-header h2 { font-size: 2.5rem; }

    .bottom-dock {
        bottom: 10px;
        padding: 6px;
        width: calc(100% - 20px);
        justify-content: space-between;
    }

    .dock-item {
        min-width: 56px;
        min-height: 52px;
        padding: 6px;
    }

    .dock-item span {
        font-size: 0.66rem;
    }
}
