/* ==========================================================================
   CERIA APPS - Design System & Custom Stylesheet
   Color Palette: 60% Warm Yellow, 30% Sky Blue, 10% Coral Red Accent
   Visual Style: Claymorphism / Neumorphism 3D Bubbly & Rounded Controls
   ========================================================================== */

:root {
    /* Primary Warm Yellow (60% Dominant Background & Main Containers) */
    --ceria-yellow-bg: #FEF08A;
    --ceria-yellow-surface: #FEF9C3;
    --ceria-yellow: #FACC15;
    --ceria-yellow-dark: #CA8A04;
    --ceria-yellow-deep: #854D0E;
    
    /* Secondary Sky Blue (30% Header / Cyber Elements / Trust Balance) */
    --ceria-blue: #0EA5E9;
    --ceria-blue-dark: #0284C7;
    --ceria-blue-light: #7DD3FC;
    --ceria-blue-bg: #E0F2FE;
    
    /* Accent Coral Red (10% CTA / Help Button / Warning Indicators) */
    --ceria-red: #F43F5E;
    --ceria-red-dark: #BE123C;
    --ceria-red-light: #FDA4AF;
    --ceria-red-bg: #FFE4E6;

    --ceria-green: #10B981;
    --ceria-green-dark: #047857;

    --dark-text: #451A03;
    --muted-text: #78350F;
    --light-bg: #FEF08A;
    --card-bg: #FFFBEB;
    --border-color: #FDE047;
    
    /* Typography: Plus Jakarta Sans for Headings, Inter / Nunito for Body */
    --font-heading: 'Plus Jakarta Sans', 'Fredoka', sans-serif;
    --font-body: 'Inter', 'Nunito', sans-serif;
    
    /* Radii & Shadows */
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 4px 10px rgba(120, 53, 15, 0.08);
    --shadow-md: 0 10px 22px rgba(120, 53, 15, 0.12);
    --shadow-lg: 0 20px 36px rgba(120, 53, 15, 0.18);
}

/* Reset & Base Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

body, #page-wrapper {
    background-color: #FFFBEB;
    color: var(--dark-text);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.5s ease-in-out, color 0.5s ease-in-out;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark-text);
    line-height: 1.25;
}

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

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: var(--font-heading);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* ==========================================================================
   CLAYMORPHISM 3D RAISED TACTILE BUTTON SYSTEM
   ========================================================================== */

.btn-timbul {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    font-size: 1.05rem;
    font-weight: 800;
    border-radius: var(--radius-md);
    color: #FFFFFF;
    transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
    top: 0;
    letter-spacing: 0.3px;
}

.btn-timbul-yellow {
    background-color: var(--ceria-yellow);
    color: #451A03;
    box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.6), 0 7px 0 var(--ceria-yellow-dark), 0 10px 18px rgba(202, 138, 4, 0.35);
}
.btn-timbul-yellow:hover {
    top: -3px;
    box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.8), 0 10px 0 var(--ceria-yellow-dark), 0 14px 22px rgba(202, 138, 4, 0.45);
    background-color: #FDE047;
}
.btn-timbul-yellow:active {
    top: 4px;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4), 0 3px 0 var(--ceria-yellow-dark), 0 5px 8px rgba(202, 138, 4, 0.25);
}

.btn-timbul-blue {
    background-color: var(--ceria-blue);
    box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.4), 0 7px 0 var(--ceria-blue-dark), 0 10px 18px rgba(14, 165, 233, 0.35);
}
.btn-timbul-blue:hover {
    top: -3px;
    box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.6), 0 10px 0 var(--ceria-blue-dark), 0 14px 22px rgba(14, 165, 233, 0.45);
    background-color: #38BDF8;
}
.btn-timbul-blue:active {
    top: 4px;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3), 0 3px 0 var(--ceria-blue-dark), 0 5px 8px rgba(14, 165, 233, 0.25);
}

.btn-timbul-red {
    background-color: var(--ceria-red);
    box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.4), 0 7px 0 var(--ceria-red-dark), 0 10px 18px rgba(244, 63, 94, 0.35);
}
.btn-timbul-red:hover {
    top: -3px;
    box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.6), 0 10px 0 var(--ceria-red-dark), 0 14px 22px rgba(244, 63, 94, 0.45);
    background-color: #FB7185;
}
.btn-timbul-red:active {
    top: 4px;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3), 0 3px 0 var(--ceria-red-dark), 0 5px 8px rgba(244, 63, 94, 0.25);
}

.btn-timbul-emerald, .btn-timbul-teal {
    background-color: #10B981;
    color: #FFFFFF;
    box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.4), 0 7px 0 #047857, 0 10px 18px rgba(16, 185, 129, 0.35);
}
.btn-timbul-emerald:hover, .btn-timbul-teal:hover {
    top: -3px;
    box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.6), 0 10px 0 #047857, 0 14px 22px rgba(16, 185, 129, 0.45);
    background-color: #34D399;
}
.btn-timbul-emerald:active, .btn-timbul-teal:active {
    top: 4px;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3), 0 3px 0 #047857, 0 5px 8px rgba(16, 185, 129, 0.25);
}

.btn-timbul-indigo {
    background-color: #6366F1;
    color: #FFFFFF;
    box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.4), 0 7px 0 #4338CA, 0 10px 18px rgba(99, 102, 241, 0.35);
}
.btn-timbul-indigo:hover {
    top: -3px;
    box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.6), 0 10px 0 #4338CA, 0 14px 22px rgba(99, 102, 241, 0.45);
    background-color: #818CF8;
}
.btn-timbul-indigo:active {
    top: 4px;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3), 0 3px 0 #4338CA, 0 5px 8px rgba(99, 102, 241, 0.25);
}

.btn-timbul-orange {
    background-color: #F97316;
    color: #FFFFFF;
    box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.4), 0 7px 0 #C2410C, 0 10px 18px rgba(249, 115, 22, 0.35);
}
.btn-timbul-orange:hover {
    top: -3px;
    box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.6), 0 10px 0 #C2410C, 0 14px 22px rgba(249, 115, 22, 0.45);
    background-color: #FB923C;
}
.btn-timbul-orange:active {
    top: 4px;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3), 0 3px 0 #C2410C, 0 5px 8px rgba(249, 115, 22, 0.25);
}

.btn-timbul-sm {
    padding: 9px 18px;
    font-size: 0.92rem;
    border-radius: var(--radius-sm);
}

/* 3D Claymorphism Raised Icon Grid Cards */
.card-timbul {
    position: relative;
    background: #FFFBEB;
    border: 4px solid var(--ceria-yellow-dark);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    top: 0;
    box-shadow: inset 0 4px 6px rgba(255, 255, 255, 0.8), 0 10px 0 var(--ceria-yellow-dark), 0 14px 25px rgba(120, 53, 15, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 180px;
}

.card-timbul:hover {
    top: -6px;
    box-shadow: inset 0 4px 8px rgba(255, 255, 255, 0.9), 0 16px 0 var(--ceria-yellow-dark), 0 22px 32px rgba(120, 53, 15, 0.18);
    background: #FFFFFF;
}

.card-timbul:active {
    top: 4px;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.5), 0 4px 0 var(--ceria-yellow-dark), 0 6px 10px rgba(120, 53, 15, 0.08);
}

.card-timbul-blue {
    border-color: var(--ceria-blue-dark);
    box-shadow: inset 0 4px 6px rgba(255, 255, 255, 0.8), 0 10px 0 var(--ceria-blue-dark), 0 14px 25px rgba(14, 165, 233, 0.2);
    background: #F0F9FF;
}
.card-timbul-blue:hover {
    background: #FFFFFF;
    box-shadow: inset 0 4px 8px rgba(255, 255, 255, 0.9), 0 16px 0 var(--ceria-blue-dark), 0 22px 32px rgba(14, 165, 233, 0.3);
}

.card-timbul-yellow {
    border-color: var(--ceria-yellow-dark);
    box-shadow: inset 0 4px 6px rgba(255, 255, 255, 0.8), 0 10px 0 var(--ceria-yellow-dark), 0 14px 25px rgba(202, 138, 4, 0.2);
    background: #FFFBEB;
}
.card-timbul-yellow:hover {
    background: #FFFFFF;
    box-shadow: inset 0 4px 8px rgba(255, 255, 255, 0.9), 0 16px 0 var(--ceria-yellow-dark), 0 22px 32px rgba(202, 138, 4, 0.3);
}

.card-timbul-emerald, .card-timbul-green {
    border-color: #047857;
    box-shadow: inset 0 4px 6px rgba(255, 255, 255, 0.8), 0 10px 0 #047857, 0 14px 25px rgba(16, 185, 129, 0.2);
    background: #ECFDF5;
}
.card-timbul-emerald:hover, .card-timbul-green:hover {
    background: #FFFFFF;
    box-shadow: inset 0 4px 8px rgba(255, 255, 255, 0.9), 0 16px 0 #047857, 0 22px 32px rgba(16, 185, 129, 0.3);
}

.card-timbul-indigo {
    border-color: #3730A3;
    box-shadow: inset 0 4px 6px rgba(255, 255, 255, 0.8), 0 10px 0 #312E81, 0 14px 25px rgba(79, 70, 229, 0.2);
    background: #EEF2FF;
}
.card-timbul-indigo:hover {
    background: #FFFFFF;
    box-shadow: inset 0 4px 8px rgba(255, 255, 255, 0.9), 0 16px 0 #312E81, 0 22px 32px rgba(79, 70, 229, 0.3);
}

.card-timbul-orange {
    border-color: #EA580C;
    box-shadow: inset 0 4px 6px rgba(255, 255, 255, 0.8), 0 10px 0 #C2410C, 0 14px 25px rgba(249, 115, 22, 0.2);
    background: #FFF7ED;
}
.card-timbul-orange:hover {
    background: #FFFFFF;
    box-shadow: inset 0 4px 8px rgba(255, 255, 255, 0.9), 0 16px 0 #C2410C, 0 22px 32px rgba(249, 115, 22, 0.3);
}

.card-timbul-red {
    border-color: var(--ceria-red-dark);
    box-shadow: inset 0 4px 6px rgba(255, 255, 255, 0.8), 0 10px 0 var(--ceria-red-dark), 0 14px 25px rgba(244, 63, 94, 0.2);
    background: #FFF1F2;
}
.card-timbul-red:hover {
    background: #FFFFFF;
    box-shadow: inset 0 4px 8px rgba(255, 255, 255, 0.9), 0 16px 0 var(--ceria-red-dark), 0 22px 32px rgba(244, 63, 94, 0.3);
}

.icon-timbul-box {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 12px;
    position: relative;
    box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.7), 0 6px 0 rgba(0, 0, 0, 0.16);
}

.icon-box-blue { background: linear-gradient(135deg, #38BDF8, #0284C7); color: #FFFFFF; }
.icon-box-yellow { background: linear-gradient(135deg, #FDE047, #F59E0B); color: #78350F; }
.icon-box-red { background: linear-gradient(135deg, #FB7185, #E11D48); color: #FFFFFF; }
.icon-box-purple { background: linear-gradient(135deg, #C084FC, #9333EA); color: #FFFFFF; }

.card-timbul-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--dark-text);
    margin: 0;
}

/* ==========================================================================
   MINI BUBBLE DROPDOWN (SPEECH BUBBLE STYLE FOR COMIC BUTTON)
   ========================================================================== */

.mini-bubble-dropdown {
    width: 290px;
    background: #FFFBEB;
    border: 3.5px solid var(--ceria-yellow-dark);
    border-radius: 22px;
    box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.9), 0 10px 25px rgba(120, 53, 15, 0.25);
    padding: 12px;
    animation: popInBubble 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popInBubble {
    from { opacity: 0; transform: translateX(-50%) scale(0.85); }
    to { opacity: 1; transform: translateX(-50%) scale(1); }
}

.bubble-arrow {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 12px solid var(--ceria-yellow-dark);
}

.bubble-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bubble-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: #FFFFFF;
    border: 2px solid #FDE047;
    cursor: pointer;
    transition: all 0.15s ease;
}

.bubble-item:hover {
    background: #FEF9C3;
    border-color: var(--ceria-yellow-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.bubble-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.bubble-icon.yellow { background: var(--ceria-yellow-surface); color: var(--ceria-yellow-dark); border: 2px solid var(--ceria-yellow); }
.bubble-icon.blue { background: var(--ceria-blue-bg); color: var(--ceria-blue); border: 2px solid var(--ceria-blue-light); }

.bubble-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.bubble-text strong {
    font-size: 1.05rem;
    color: var(--dark-text);
}

.warning-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    background: var(--ceria-red-bg);
    color: var(--ceria-red-dark);
    padding: 2px 7px;
    border-radius: 99px;
    border: 1px solid var(--ceria-red-light);
}

.sub-text {
    font-size: 0.75rem;
    color: var(--muted-text);
    font-weight: 700;
}

.bubble-divider {
    height: 1px;
    background: #FDE047;
    margin: 2px 0;
}

/* ==========================================================================
   NAVBAR STYLING
   ========================================================================== */

.navbar-container {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--ceria-yellow-bg);
    border-bottom: 4px solid var(--ceria-yellow-dark);
    box-shadow: 0 4px 12px rgba(120, 53, 15, 0.1);
}

.navbar-content {
    max-width: 1240px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--ceria-blue), var(--ceria-blue-dark));
    color: var(--ceria-yellow);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.4), 0 4px 0 var(--ceria-blue-dark);
    flex-shrink: 0;
}

.brand-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--ceria-blue-dark);
    line-height: 1;
}

.brand-subtitle {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--muted-text);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-top: 3px;
}

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

.nav-dropdown-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

@media (min-width: 769px) {
    .nav-dropdown-wrapper:hover #nav-mini-bubble {
        display: block !important;
    }
}

.nav-btn {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    font-family: var(--font-heading);
    font-size: 0.94rem;
    font-weight: 800;
    color: #1E293B;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: none;
    cursor: pointer;
}

.nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #0284C7;
    border-color: rgba(2, 132, 199, 0.4);
    transform: translateY(-1px);
}

.nav-btn.active {
    background-color: var(--ceria-blue-dark);
    color: #FFFFFF !important;
    border-color: transparent;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sound-toggle-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    border-radius: var(--radius-full);
    font-size: 1.1rem;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1;
    text-align: center;
}

.sound-toggle-btn i,
#sound-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1;
    font-size: 1.1rem;
    text-align: center;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    color: var(--dark-text);
    padding: 6px;
}

/* ==========================================================================
   MAIN CONTENT AREA & HERO SECTION
   ========================================================================== */

.main-content {
    flex: 1;
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 28px 20px;
}

/* Hero Section (Warm Yellow Dominant) */
.hero-banner {
    background-color: var(--ceria-yellow);
    border: 4px solid var(--ceria-yellow-dark);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    color: #451A03;
    position: relative;
    box-shadow: inset 0 4px 8px rgba(255,255,255,0.7), 0 12px 0 var(--ceria-yellow-dark), 0 16px 28px rgba(202, 138, 4, 0.25);
    margin-bottom: 36px;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 28px;
    align-items: center;
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: #451A03;
    line-height: 1.1;
    margin-bottom: 10px;
}

.hero-title span {
    color: var(--ceria-blue-dark);
    background: #FFFFFF;
    padding: 2px 14px;
    border-radius: 12px;
    display: inline-block;
    box-shadow: 0 4px 0 var(--ceria-blue);
}

.hero-desc {
    font-size: 1.08rem;
    color: #78350F;
    font-weight: 700;
    line-height: 1.5;
}

.hero-card-stack {
    width: 100%;
    max-width: 320px;
    background: #FFFFFF;
    border: 4px solid var(--ceria-blue);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: inset 0 3px 0 rgba(255,255,255,0.9), 0 10px 0 var(--ceria-blue-dark), 0 16px 24px rgba(0,0,0,0.12);
    text-align: center;
}

.hero-shield-icon {
    font-size: 3.8rem;
    color: var(--ceria-yellow);
    filter: drop-shadow(0 4px 0 var(--ceria-yellow-dark));
    margin-bottom: 8px;
}

/* Home Section Header */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 28px auto;
}

.section-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--dark-text);
}

/* 3D ICON GRID (HOME PAGE) */
.icon-timbul-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* ==========================================================================
   INFO GROOMING ACCORDIONS & EDUCATIONAL CARDS
   ========================================================================== */

.accordion-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 36px;
}

.accordion-card {
    background: #FFFBEB;
    border: 3.5px solid var(--ceria-yellow-dark);
    border-radius: var(--radius-md);
    box-shadow: inset 0 3px 0 rgba(255,255,255,0.8), 0 7px 0 var(--ceria-yellow-dark);
    overflow: hidden;
    transition: all 0.2s ease;
}

.accordion-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    background: #FFFBEB;
}
.accordion-header:hover {
    background: #FFFFFF;
}

.accordion-title-box {
    display: flex;
    align-items: center;
    gap: 16px;
}

.accordion-badge-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.accordion-title-box h3 {
    font-size: 1.35rem;
    color: var(--dark-text);
}

.accordion-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ceria-yellow-surface);
    border: 2px solid var(--ceria-yellow-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--dark-text);
    transition: transform 0.3s ease;
}

.accordion-card.active .accordion-arrow {
    transform: rotate(180deg);
    background: var(--ceria-blue-bg);
    border-color: var(--ceria-blue-dark);
    color: var(--ceria-blue-dark);
}

.accordion-body {
    display: none;
    padding: 0 24px 24px 24px;
    border-top: 2px dashed var(--ceria-yellow);
    background: #FFFFFF;
}

.accordion-card.active .accordion-body {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* ==========================================================================
   COMIC READER COMPONENTS
   ========================================================================== */

.category-tabs {
    display: flex;
    gap: 10px;
    background: #FFFBEB;
    border: 3px solid var(--ceria-yellow-dark);
    border-radius: var(--radius-full);
    padding: 6px;
}

.tab-btn {
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-size: 0.98rem;
    font-weight: 800;
    background: transparent;
    color: var(--dark-text);
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: var(--ceria-yellow);
    color: #451A03;
    box-shadow: 0 3px 0 var(--ceria-yellow-dark);
}

/* Kids Comic 3D Text Card Reader */
.kids-reader-card {
    background: #FFFBEB;
    border: 4px solid var(--ceria-yellow-dark);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: inset 0 3px 0 rgba(255,255,255,0.8), 0 10px 0 var(--ceria-yellow-dark);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.narrator-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--ceria-yellow-surface);
    border: 2px solid var(--ceria-yellow-dark);
    border-radius: var(--radius-sm);
    padding: 12px 18px;
}

/* Teen Horizontal Flipbook / Slider */
.teen-flipbook-container {
    background: #F0F9FF;
    border: 4px solid var(--ceria-blue-dark);
    border-radius: var(--radius-lg);
    box-shadow: inset 0 3px 0 rgba(255,255,255,0.8), 0 10px 0 var(--ceria-blue-dark);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.flipbook-slider {
    position: relative;
    min-height: 380px;
    background: #FFFFFF;
    border: 3px solid var(--ceria-blue-light);
    border-radius: var(--radius-md);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.flipbook-nav-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
}

.page-indicator-badge {
    background: var(--ceria-blue);
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 99px;
    box-shadow: 0 3px 0 var(--ceria-blue-dark);
}

/* ==========================================================================
   VISUAL NOVEL GAME STYLES
   ========================================================================== */

.vn-game-box {
    background: #FFFBEB;
    border: 4px solid var(--ceria-blue-dark);
    border-radius: var(--radius-lg);
    box-shadow: inset 0 3px 0 rgba(255,255,255,0.8), 0 12px 0 var(--ceria-blue-dark);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vn-dialogue-card {
    background: #1E293B;
    border: 4px solid var(--ceria-blue);
    border-radius: var(--radius-md);
    padding: 24px;
    color: #FFFFFF;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.vn-speaker-name {
    display: inline-block;
    background: var(--ceria-yellow);
    color: #451A03;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 12px;
}

.vn-dialogue-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #F8FAFC;
    min-height: 70px;
}

.vn-choices-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.choice-btn {
    width: 100%;
    text-align: left;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    background: #FFFFFF;
    border: 3.5px solid var(--ceria-yellow-dark);
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--dark-text);
    transition: all 0.2s ease;
    box-shadow: 0 5px 0 var(--ceria-yellow-dark);
}
.choice-btn:hover {
    background: var(--ceria-yellow-surface);
    transform: translateY(-2px);
    box-shadow: 0 8px 0 var(--ceria-yellow-dark);
}

/* ==========================================================================
   FOOTER & MODALS & TOASTS
   ========================================================================== */

.footer {
    background: #78350F;
    color: #FEF08A;
    margin-top: auto;
    border-top: 4px solid var(--ceria-yellow);
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 36px 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 28px;
}

.footer-logo {
    font-size: 1.7rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.footer-links h4, .footer-contact h4 {
    color: #FFFFFF;
    font-size: 1.05rem;
    margin-bottom: 12px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--ceria-yellow);
}

.footer-bottom {
    border-top: 1px solid rgba(254, 240, 138, 0.3);
    padding: 16px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(69, 26, 3, 0.8);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background: #FEF9C3;
    border: 4px solid var(--ceria-yellow-dark);
    border-radius: var(--radius-lg);
    max-width: 780px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #FEF08A;
    border: 2px solid #CA8A04;
    color: var(--dark-text);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    background: var(--ceria-red-bg);
    color: var(--ceria-red);
}

/* Toast Container */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: #451A03;
    color: #FEF08A;
    border: 2px solid var(--ceria-yellow);
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.92rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Responsive Mobile Rules */
@media (max-width: 768px) {
    .brand-title { font-size: 1.35rem; }
    .brand-subtitle { font-size: 0.65rem; }
    .logo-icon { width: 38px; height: 38px; font-size: 1.2rem; }

    .hero-banner {
        grid-template-columns: 1fr;
        padding: 24px 20px;
        gap: 20px;
    }
    .hero-title { font-size: 1.9rem; }
    .hero-desc { font-size: 0.95rem; }
    .hero-card-stack { max-width: 100%; padding: 18px; }

    .icon-timbul-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .card-timbul {
        min-height: 140px;
        padding: 16px 12px;
        border-width: 3px;
        box-shadow: 0 6px 0 var(--ceria-yellow-dark);
    }
    .icon-timbul-box {
        width: 54px;
        height: 54px;
        font-size: 1.6rem;
        border-radius: 14px;
        margin-bottom: 8px;
    }
    .card-timbul-title { font-size: 1.05rem; }

    .footer-container {
        grid-template-columns: 1fr;
        padding: 28px 16px;
    }

    .mobile-menu-btn { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--ceria-yellow-bg);
        flex-direction: column;
        padding: 16px;
        border-bottom: 4px solid var(--ceria-yellow-dark);
        box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    }
    .nav-links.show { display: flex; }
    .nav-btn { width: 100%; justify-content: flex-start; }
}

/* ==========================================================================
   COMIC LIGHTBOX FULLSCREEN VIEWER & ZOOM ENGINE
   ========================================================================== */

.comic-zoom-trigger {
    cursor: zoom-in !important;
    position: relative;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease;
    user-select: none;
    border-radius: var(--radius-md);
}

.comic-zoom-trigger:hover {
    transform: scale(1.025);
    filter: brightness(1.03);
}

.comic-zoom-trigger::after {
    content: "🔍 Klik untuk Zoom";
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(15, 23, 42, 0.8);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 99px;
    backdrop-filter: blur(4px);
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.2s ease;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.comic-zoom-trigger:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* Lightbox Modal Overlay */
.comic-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    overflow: hidden;
    touch-action: none;
}

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

.comic-lightbox-header {
    position: absolute;
    top: 18px;
    left: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100002;
    pointer-events: none;
}

.comic-lightbox-title {
    pointer-events: auto;
    background: rgba(30, 41, 59, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    padding: 8px 18px;
    border-radius: 99px;
    font-weight: 800;
    font-size: 0.95rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.comic-lightbox-close-btn {
    pointer-events: auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #EF4444;
    border: 2.5px solid #FFFFFF;
    color: #FFFFFF;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.45);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.comic-lightbox-close-btn:hover {
    transform: scale(1.12) rotate(90deg);
    background: #DC2626;
}

.comic-lightbox-content-wrap {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: grab !important;
    user-select: none;
    touch-action: none;
    padding: 64px 16px 74px 16px;
    box-sizing: border-box;
}

.comic-lightbox-content-wrap.is-dragging,
.comic-lightbox-content-wrap:active {
    cursor: grabbing !important;
}

.comic-lightbox-img-container {
    width: 100%;
    height: 100%;
    max-width: 94vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center center;
    transition: transform 0.12s cubic-bezier(0.2, 0, 0, 1);
    will-change: transform;
    cursor: grab !important;
}

.comic-lightbox-content-wrap.is-dragging .comic-lightbox-img-container {
    transition: none !important;
    cursor: grabbing !important;
}

.comic-lightbox-img-container img,
.comic-lb-main-img {
    max-width: 92vw !important;
    max-height: 84vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
    pointer-events: none;
    cursor: inherit;
    display: block;
    margin: 0 auto;
}

.comic-lightbox-img-container svg {
    max-width: 92vw;
    max-height: 84vh;
    width: 960px;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
    pointer-events: none;
    cursor: inherit;
    display: block;
    margin: 0 auto;
}

/* Floating Toolbar Controls */
.comic-lightbox-toolbar {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(30, 41, 59, 0.92);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 8px 18px;
    border-radius: 99px;
    backdrop-filter: blur(10px);
    z-index: 100002;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.3s ease;
    opacity: 1;
    visibility: visible;
}

.comic-lightbox-toolbar.is-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(30px);
    pointer-events: none;
}

/* Floating Mini Toggle Button (shown when toolbar is hidden) */
.comic-lightbox-mini-toggle {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(30, 41, 59, 0.88);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    z-index: 100002;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.3s ease, background 0.18s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.comic-lightbox-mini-toggle.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.comic-lightbox-mini-toggle:hover {
    background: var(--ceria-yellow);
    color: #451A03;
    border-color: var(--ceria-yellow-dark);
    transform: translateX(-50%) scale(1.1);
}

.comic-lightbox-tool-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s ease;
}

.comic-lightbox-tool-btn:hover {
    background: var(--ceria-yellow);
    color: #451A03;
    border-color: var(--ceria-yellow-dark);
    transform: scale(1.1);
}

.comic-lightbox-zoom-level {
    color: #FFFFFF;
    font-weight: 800;
    font-size: 0.88rem;
    min-width: 52px;
    text-align: center;
    user-select: none;
}

/* ==========================================================================
   REN'PY GAME FRAME & ASPECT RATIO 16:9 RESPONSIVENESS
   ========================================================================== */

.renpy-frame-wrapper {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    min-height: 320px;
    background: #000000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 4px solid #EA580C;
    box-shadow: 0 10px 0 #C2410C;
    transition: all 0.25s ease;
}

.renpy-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    overflow: hidden;
}

/* Tablet & Mobile Responsiveness */
@media (max-width: 768px) {
    .renpy-frame-wrapper {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16 / 9;
        border-width: 3px;
        box-shadow: 0 6px 0 #C2410C;
        border-radius: var(--radius-md);
    }
}

/* Mobile Landscape Orientation Optimization */
@media (max-width: 900px) and (orientation: landscape) {
    .renpy-frame-wrapper {
        max-height: 85vh;
    }
}

/* Smooth Bounce Micro-Animation for Game Preview Icon */
@keyframes smoothGameBounce {
    0%, 100% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(-10px);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.animate-game-bounce {
    animation: smoothGameBounce 1.8s infinite;
    will-change: transform;
}

/* Floating Speech Bubble on Game Card */
.game-speech-bubble {
    position: absolute;
    top: 10px;
    right: 14px;
    background: #FFFFFF;
    color: #431407;
    font-size: 0.76rem;
    font-weight: 900;
    padding: 5px 11px;
    border-radius: 14px;
    border: 2px solid #EA580C;
    box-shadow: 0 4px 10px rgba(234, 88, 12, 0.2);
    z-index: 10;
    white-space: nowrap;
    animation: smoothBubbleFloat 2s infinite ease-in-out;
    pointer-events: none;
}

.game-speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 18px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #EA580C;
}

.game-speech-bubble::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 19px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #FFFFFF;
    z-index: 1;
}

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





