/* ===================== HYPER MAGENTA PALETTE ===================== */
:root {
    --color-bg: #FDF2F8;
    --color-dark: #4A044E;
    --color-primary: #EC4899;
    --color-secondary: #A855F7;
    --color-accent: #F0ABFC;
    --color-hero-bg: #FBCFE8;
    --color-hero-text: #4A044E;
    --color-section-a: #FAE8FF;
    --color-section-b: #FCE7F3;
    --text-color: #4A044E;
    --text-light: #FFFFFF;
    --color-card-bg: #FFFFFF;
    --color-placeholder-bg: #F5D0FE;
    --color-placeholder-border: #D8B4FE;
}

/* ===================== DARK MODE OVERRIDES ===================== */
body.dark-mode {
    --color-bg: #1a0a1e;
    --color-dark: #0f0512;
    --color-primary: #ff4da6;
    --color-secondary: #c266ff;
    --color-accent: #f0abfc;
    --color-hero-bg: #2a0d33;
    --color-hero-text: #f0abfc;
    --color-section-a: #221026;
    --color-section-b: #190c1c;
    --text-color: #f0abfc;
    --text-light: #0f0512;
    --color-card-bg: #2a0d33;
    --color-placeholder-bg: #3a1745;
    --color-placeholder-border: #5c1e6e;
}

/* ===================== GLOBAL RESET & BASE STYLES ===================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; color: var(--text-color); background-color: var(--color-bg); line-height: 1.6; transition: background-color 0.3s, color 0.3s; }
h1, h2, h3, h4 { line-height: 1.2; margin-bottom: 15px; }
h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; text-align: center; }
h3 { font-size: 1.4rem; }
p { margin-bottom: 15px; font-size: 1.1rem; }
section, #footer { scroll-margin-top: 80px; padding: 80px 5%; }
ul { list-style: none; }
a { transition: color 0.3s; }

/* ===================== SCROLL PROGRESS BAR ===================== */
#scroll-progress { position: fixed; top: 0; left: 0; height: 6px; width: 0%; background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent)); z-index: 1001; transition: width 0.1s linear; }

/* ===================== ANIMATIONS ===================== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes bounceIn { 0% { transform: scale(0.5); opacity: 0; } 60% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }

/* ===================== NAVIGATION ===================== */
#navbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 5%; background-color: var(--color-dark); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.logo { display: flex; align-items: center; }
.logo img { height: 45px; width: auto; }
.menu-toggle { display: none; }
.hamburger { display: none; font-size: 2rem; color: var(--color-accent); cursor: pointer; }
.nav-links { list-style: none; display: flex; gap: 25px; }
.nav-links a { text-decoration: none; color: var(--text-light); font-weight: bold; font-size: 0.95rem; }
.nav-links a:hover { color: var(--color-primary); }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.icon-btn { background: none; border: none; color: var(--text-light); font-size: 1.5rem; cursor: pointer; position: relative; }
#cart-count { background: var(--color-primary); color: var(--text-light); border-radius: 50%; padding: 2px 6px; font-size: 0.8rem; position: absolute; top: -5px; right: -10px; }

/* ===================== BUTTONS ===================== */
.btn { display: inline-block; padding: 12px 25px; border-radius: 30px; text-decoration: none; font-weight: bold; font-size: 1.1rem; transition: transform 0.2s, box-shadow 0.2s; cursor: pointer; border: none; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.15); }
.btn-primary { background-color: var(--color-primary); color: var(--text-light); }
.btn-secondary { background-color: transparent; color: var(--color-hero-text); border: 3px solid var(--color-hero-text); }

/* ===================== HERO SECTION ===================== */
#hero { display: flex; align-items: center; justify-content: space-between; gap: 40px; background-color: var(--color-hero-bg); min-height: 80vh; }
.hero-text { flex: 1; max-width: 550px; opacity: 0; animation: fadeInUp 1s ease-out 0.2s forwards; }
.hero-text h1 { color: var(--color-hero-text); }
.hero-text p { font-size: 1.2rem; color: var(--color-hero-text); margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.hero-image { flex: 1; max-width: 500px; display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; animation: fadeInUp 1s ease-out 0.5s forwards; position: relative; }
.hero-image img { max-width: 100%; height: auto; border-radius: 12px; box-shadow: 0 10px 25px rgba(74, 4, 78, 0.2); }

.daily-doodle-box { background: var(--color-card-bg); padding: 15px 25px; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); margin-top: -30px; z-index: 10; max-width: 300px; text-align: center; border: 3px dashed var(--color-primary); }
.daily-doodle-box h4 { color: var(--color-primary); margin-bottom: 5px; }
.daily-doodle-box p { font-weight: bold; margin-bottom: 0; color: var(--color-dark); }

/* ===================== GENERIC SECTIONS ===================== */
#what-we-make { background-color: var(--color-bg); text-align: center; }
#what-we-make p { max-width: 700px; margin: 0 auto; font-size: 1.2rem; }
#why-kids-love-it { background-color: var(--color-section-a); }
.benefits { display: flex; gap: 30px; margin-top: 40px; }
.benefit { flex: 1; background-color: var(--color-card-bg); padding: 30px; border-radius: 12px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); }
.benefit h3 { color: var(--color-secondary); }

/* ===================== PRODUCTS ===================== */
#products { background-color: var(--color-bg); }
.product-cards { display: flex; gap: 30px; margin-top: 40px; }
.card { flex: 1; background-color: var(--color-card-bg); border-radius: 12px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); overflow: hidden; transition: transform 0.3s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-8px); }
.card-image { width: 100%; aspect-ratio: 1/1; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.card:hover .card-image img { transform: scale(1.05); }
.card h3 { padding: 20px 20px 0 20px; color: var(--color-primary); }
.card p { padding: 10px 20px 20px 20px; margin-bottom: 0; flex-grow: 1; }
.card-footer { padding: 0 20px 20px 20px; display: flex; justify-content: space-between; align-items: center; }
.price { font-size: 1.5rem; font-weight: bold; color: var(--color-dark); }

/* ===================== SUBSCRIPTION ===================== */
#subscription { background-color: var(--color-section-b); text-align: center; }
.sub-plans { display: flex; justify-content: center; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.sub-card { background: var(--color-card-bg); padding: 30px; border-radius: 16px; width: 250px; position: relative; box-shadow: 0 4px 15px rgba(0,0,0,0.1); border: 3px solid transparent; }
.sub-card.featured { border-color: var(--color-primary); transform: scale(1.05); }
.badge { background: var(--color-primary); color: var(--text-light); padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; position: absolute; top: -15px; left: 50%; transform: translateX(-50%); }
.sub-card .price { font-size: 2rem; margin: 10px 0; }
.sub-card .save { color: var(--color-secondary); font-weight: bold; }

/* ===================== TUTORIALS ===================== */
#tutorials { background-color: var(--color-bg); text-align: center; }
.tutorial-grid { display: flex; justify-content: center; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.tutorial-card { flex: 1; min-width: 300px; max-width: 400px; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.tutorial-card iframe { width: 100%; height: 100%; border: 0; }

/* ===================== GALLERY ===================== */
#gallery { background-color: var(--color-section-a); text-align: center; }
.gallery-upload { margin-bottom: 40px; }
.gallery-grid { display: flex; gap: 30px; margin-top: 20px; flex-wrap: wrap; }
.gallery-image { flex: 1; min-width: 200px; aspect-ratio: 1/1; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); }
.gallery-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===================== BRAND CAMPAIGN ===================== */
#campaign { background-color: var(--color-bg); text-align: center; }
#campaign > p { max-width: 700px; margin: 0 auto 40px auto; font-size: 1.2rem; }
.campaign-container { display: flex; gap: 30px; align-items: stretch; max-width: 1200px; margin: 0 auto; }
.campaign-video { flex: 2; }
.campaign-jingle { flex: 1; }
.video-container { position: relative; width: 100%; height: 100%; min-height: 300px; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(236, 72, 153, 0.25); }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.jingle-card { background-color: var(--color-card-bg); border-radius: 12px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); padding: 30px; text-align: left; height: 100%; display: flex; flex-direction: column; }
.jingle-card h3 { color: var(--color-primary); font-size: 1.8rem; margin-bottom: 10px; }
.jingle-description { font-size: 1rem; color: var(--text-color); margin-bottom: 20px; }
.jingle-lyrics { background-color: var(--color-section-a); padding: 20px; border-radius: 12px; margin-bottom: 25px; border-left: 5px solid var(--color-secondary); flex-grow: 1; }
.jingle-lyrics p { margin-bottom: 0; font-size: 1.1rem; line-height: 1.6; }
.audio-player-container { margin-top: auto; }
.jingle-player { width: 100%; border-radius: 30px; outline: none; }

/* ===================== QUIZ SECTION ===================== */
#quiz-section { background-color: var(--color-section-a); min-height: 80vh; display: flex; align-items: center; justify-content: center; padding-top: 120px; }
.quiz-container { max-width: 700px; width: 100%; margin: 0 auto; text-align: center; }
.quiz-title { color: var(--color-dark); margin-bottom: 30px; font-size: 2.5rem; }
.quiz-card { background-color: var(--color-card-bg); border-radius: 12px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); padding: 40px; text-align: left; }
.fade-in { animation: fadeIn 0.4s ease-out forwards; }
.quiz-progress-container { margin-bottom: 30px; }
.quiz-progress-bar { width: 100%; height: 14px; background-color: var(--color-placeholder-bg); border-radius: 20px; overflow: hidden; margin-bottom: 10px; }
.quiz-progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent)); border-radius: 20px; transition: width 0.4s ease-in-out; }
.questions-left-text { text-align: center; font-size: 0.95rem; font-weight: bold; color: var(--color-secondary); margin-bottom: 0; }
#question-text { color: var(--color-primary); font-size: 1.6rem; margin-bottom: 25px; text-align: center; }

.options-grid { display: flex; flex-direction: column; gap: 20px; }
.quiz-option { width: 100%; padding: 25px 30px; background-color: var(--color-bg); color: var(--text-color); border: 3px solid var(--color-placeholder-border); border-radius: 12px; font-family: inherit; font-size: 1.3rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease; text-align: left; }
.quiz-option:hover { border-color: var(--color-primary); background-color: var(--color-hero-bg); transform: translateX(5px); }

.result-card { text-align: center; }
.result-preference { font-size: 1.2rem; color: var(--color-secondary); margin-bottom: 10px; }
.result-product-name { font-size: 2.5rem; color: var(--color-primary); margin-bottom: 20px; }
.result-reason { font-size: 1.2rem; line-height: 1.6; margin-bottom: 30px; color: var(--text-color); }
.play-again-btn { margin-top: 15px; color: var(--color-primary); border-color: var(--color-primary); }
.play-again-btn:hover { background-color: var(--color-primary); color: var(--text-light); }

/* ===================== FUN ZONE ===================== */
#fun-zone-section { background-color: var(--color-section-b); min-height: 80vh; display: flex; align-items: center; justify-content: center; padding-top: 120px; }
.fun-zone-container { max-width: 900px; width: 100%; margin: 0 auto; text-align: center; }
.fun-zone-title { color: var(--color-dark); margin-bottom: 20px; font-size: 2.5rem; }
.fun-zone-instructions { font-size: 1.2rem; margin-bottom: 40px; }
.game-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin-bottom: 30px; }
.game-tab { padding: 12px 25px; background-color: var(--color-card-bg); color: var(--color-primary); border: 3px solid var(--color-placeholder-border); border-radius: 30px; font-family: inherit; font-weight: bold; font-size: 1.1rem; cursor: pointer; transition: all 0.2s; }
.game-tab:hover { border-color: var(--color-primary); }
.game-tab.active { background-color: var(--color-primary); color: var(--text-light); border-color: var(--color-primary); }
.game-panel { animation: fadeIn 0.3s forwards; }

/* ===================== MATCHING GAME ===================== */
.game-board { display: flex; gap: 40px; margin-bottom: 30px; }
.game-column { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.game-column-title { color: var(--color-secondary); text-transform: uppercase; letter-spacing: 1px; font-size: 1.2rem; border-bottom: 3px solid var(--color-placeholder-border); padding-bottom: 10px; }
.game-cards-list { display: flex; flex-direction: column; gap: 20px; flex-grow: 1; }
.game-card { padding: 30px 20px; background-color: var(--color-card-bg); border-radius: 16px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); cursor: pointer; transition: all 0.2s; border: 4px solid transparent; text-align: center; display: flex; align-items: center; justify-content: center; min-height: 120px; }
.game-card:hover:not(.matched) { border-color: var(--color-primary); transform: translateY(-5px); }
.game-card.selected { border-color: var(--color-secondary); background-color: var(--color-section-a); }
.game-card.matched { border-color: #10B981; background-color: #ECFDF5; color: #065F46; cursor: default; }
.game-card.wrong { border-color: #EF4444; background-color: #FEF2F2; color: #991B1B; }

/* ===================== MEMORY GAME ===================== */
.memory-stats { display: flex; justify-content: center; gap: 40px; font-size: 1.3rem; font-weight: bold; margin-bottom: 30px; }
.memory-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 30px; }
.memory-card { aspect-ratio: 1 / 1; cursor: pointer; perspective: 1000px; position: relative; }
.memory-card .memory-front, .memory-card .memory-back { width: 100%; height: 100%; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: bold; backface-visibility: hidden; transition: transform 0.4s; position: absolute; }
.memory-front { background-color: var(--color-primary); color: var(--text-light); font-size: 2.5rem; }
.memory-front:hover { background-color: var(--color-secondary); }
.memory-back { background-color: var(--color-card-bg); border: 4px solid var(--color-primary); transform: rotateY(180deg); }
.memory-img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.memory-card.flipped .memory-front { transform: rotateY(180deg); }
.memory-card.flipped .memory-back { transform: rotateY(0deg); }
.memory-card.memory-matched .memory-back { border-color: #10B981; }

#leaderboard { background: var(--color-card-bg); padding: 20px; border-radius: 12px; margin-top: 20px; text-align: left; }
#leaderboard h4 { color: var(--color-secondary); text-align: center; }
#leaderboard-list { list-style: none; }
#leaderboard-list li { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed var(--color-placeholder-border); }

/* ===================== COLORING GAME ===================== */
.color-palette { display: flex; justify-content: center; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.color-swatch { width: 45px; height: 45px; border-radius: 50%; cursor: pointer; border: 4px solid transparent; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.color-swatch.selected { border-color: var(--color-dark); transform: scale(1.15); }
.coloring-canvas-container { background: var(--color-card-bg); padding: 20px; border-radius: 12px; max-width: 400px; margin: 0 auto 30px; }
#coloring-svg { width: 100%; height: auto; cursor: pointer; }
.coloring-controls { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }

/* ===================== JIGSAW PUZZLE ===================== */
.puzzle-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; width: 300px; height: 300px; margin: 0 auto 30px; background: #fff; padding: 5px; border-radius: 12px; }
.puzzle-piece { width: 100%; height: 100%; cursor: pointer; background-size: 300% 300%; border-radius: 4px; }
.puzzle-piece:hover { transform: scale(0.95); }
.puzzle-piece.selected { outline: 4px solid var(--color-secondary); outline-offset: -4px; }

/* ===================== FILL YOUR KITS ===================== */
.fill-box-container { display: flex; gap: 40px; margin-bottom: 30px; }
.fill-box { flex: 1; border: 4px dashed var(--color-primary); border-radius: 16px; padding: 20px; min-height: 200px; background: rgba(255,255,255,0.5); max-width: 300px; }
.fill-items-pool { flex: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; max-width: 400px; }
.fill-item { padding: 10px; background: #fff; border: 3px solid var(--color-placeholder-border); border-radius: 12px; cursor: pointer; min-height: 100px; }
.fill-item img { width: 100%; height: 100%; object-fit: contain; }
.fill-item.added { opacity: 0.3; pointer-events: none; }
.fill-item.wrong { border-color: #EF4444; animation: shake 0.3s; }
.fill-box-item { background: #fff; padding: 5px; border-radius: 12px; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; margin: 5px; }
.fill-box-item img { width: 100%; height: 100%; object-fit: contain; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* ===================== DRAWING PAD ===================== */
#drawing-canvas { background: #fff; border: 4px solid var(--color-primary); border-radius: 12px; cursor: crosshair; display: block; margin: 0 auto; width: 100%; max-width: 500px; touch-action: none; }

/* ===================== WIN MESSAGES ===================== */
.win-message { background-color: var(--color-primary); color: var(--text-light); padding: 40px; border-radius: 16px; margin-bottom: 30px; animation: bounceIn 0.6s forwards; }
#confetti-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9999; overflow: hidden; }

/* ===================== RIDDLES PAGE ===================== */
#riddle-section { background-color: var(--color-section-b); min-height: 80vh; display: flex; align-items: center; justify-content: center; padding-top: 120px; }
.riddle-container { max-width: 700px; width: 100%; margin: 0 auto; text-align: center; }
.riddle-title { color: var(--color-dark); margin-bottom: 20px; font-size: 2.5rem; }
.riddle-instructions { font-size: 1.2rem; margin-bottom: 40px; }
.riddle-card { background: var(--color-card-bg); border-radius: 16px; padding: 60px 40px 40px 40px; box-shadow: 0 10px 30px rgba(168, 85, 247, 0.15); position: relative; }
.riddle-scroll { background: #fff; border: 3px solid var(--color-secondary); border-radius: 12px; padding: 40px; margin-bottom: 30px; position: relative; box-shadow: inset 0 0 20px rgba(168, 85, 247, 0.05); }
.riddle-pin { width: 20px; height: 20px; background-color: var(--color-primary); border-radius: 50%; box-shadow: 0 3px 6px rgba(0,0,0,0.3); position: absolute; top: -10px; left: 50%; transform: translateX(-50%); z-index: 2; border: 2px solid #fff; }
#riddle-text { color: var(--color-primary); font-size: 1.6rem; margin-bottom: 0; font-style: italic; line-height: 1.6; }
.riddle-input-area { display: flex; gap: 15px; justify-content: center; margin-bottom: 20px; }
.riddle-input-area input { flex: 1; max-width: 300px; padding: 12px 20px; border: 2px solid var(--color-placeholder-border); border-radius: 30px; font-family: inherit; font-size: 1.1rem; background-color: var(--color-bg); color: var(--text-color); transition: border-color 0.3s; }
.riddle-input-area input:focus { outline: none; border-color: var(--color-primary); }
.riddle-input-area input:disabled { opacity: 0.5; cursor: not-allowed; }
.riddle-feedback { min-height: 30px; font-size: 1.2rem; font-weight: bold; }
.riddle-feedback.correct { color: #10B981; }
.riddle-feedback.wrong { color: #EF4444; }
.riddle-feedback.revealed { color: var(--color-secondary); }
.riddle-card .btn-secondary { color: var(--color-primary); border-color: var(--color-primary); }
.riddle-card .btn-secondary:hover { background-color: var(--color-primary); color: var(--text-light); }

/* ===================== BLOG PAGES ===================== */
#blog-index-section { background-color: var(--color-section-b); padding-top: 120px; min-height: 80vh; }
.blog-index-title { text-align: center; font-size: 2.8rem; color: var(--color-dark); margin-bottom: 10px; }
.blog-index-subtitle { text-align: center; font-size: 1.2rem; margin-bottom: 60px; color: var(--text-color); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 1000px; margin: 0 auto; }
.blog-card { background: var(--color-card-bg); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.1); transition: transform 0.3s; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-5px); }
.blog-card .blog-img { width: 100%; height: 200px; background-size: cover; background-position: center; }
.blog-card .blog-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.blog-card .blog-content h3 { color: var(--color-primary); margin-bottom: 10px; }
.blog-card .blog-content p { flex-grow: 1; margin-bottom: 15px; }
.read-more { text-decoration: none; color: var(--color-secondary); font-weight: bold; }

.blog-post-container { background: var(--color-card-bg); max-width: 800px; margin: 120px auto 60px auto; padding: 40px; border-radius: 16px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.back-to-blog { display: inline-block; text-decoration: none; color: var(--color-secondary); font-weight: bold; margin-bottom: 20px; font-size: 0.9rem; }
.blog-post-title { font-size: 2.5rem; color: var(--color-dark); margin-bottom: 5px; line-height: 1.2; }
.blog-post-meta { font-size: 0.9rem; color: var(--text-color); opacity: 0.7; margin-bottom: 30px; font-style: italic; }
.blog-post-hero { width: 100%; height: 350px; background-size: cover; background-position: center; border-radius: 12px; margin-bottom: 40px; }
.blog-post-content p { font-size: 1.15rem; line-height: 1.8; margin-bottom: 20px; color: var(--text-color); }
.blog-post-content h2 { text-align: left; font-size: 1.8rem; color: var(--color-primary); margin-top: 40px; margin-bottom: 15px; }
.blog-cta { background: var(--color-section-a); border-left: 5px solid var(--color-secondary); padding: 30px; border-radius: 12px; margin: 40px 0; text-align: center; }
.blog-cta h3 { color: var(--color-dark); margin-bottom: 15px; }
.blog-cta p { font-size: 1rem; margin-bottom: 20px; }

/* ===================== FAQ ===================== */
#faq { background-color: var(--color-section-a); }
.faq-item { max-width: 800px; margin: 15px auto; background-color: var(--color-card-bg); border-radius: 12px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); overflow: hidden; }
.faq-toggle { display: none; }
.faq-question { display: block; padding: 20px; font-size: 1.2rem; font-weight: bold; color: var(--color-primary); cursor: pointer; }
.faq-answer { max-height: 0; padding: 0 20px; overflow: hidden; transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out; }
.faq-answer p { margin-bottom: 20px; }
.faq-toggle:checked ~ .faq-answer { max-height: 200px; padding: 0 20px; }
.faq-question::before { content: "▸ "; display: inline-block; transition: transform 0.3s; }
.faq-toggle:checked ~ .faq-question::before { transform: rotate(90deg); }

/* ===================== CONTACT ===================== */
#contact { background-color: var(--color-section-b); text-align: center; }
.contact-form { max-width: 600px; margin: 30px auto 0 auto; text-align: left; background-color: var(--color-card-bg); padding: 40px; border-radius: 12px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: bold; color: var(--color-primary); }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 2px solid var(--color-placeholder-border); border-radius: 8px; font-family: inherit; font-size: 1rem; background-color: var(--color-bg); color: var(--text-color); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--color-primary); }

/* ===================== FOOTER ===================== */
#footer { background-color: var(--color-dark); color: var(--text-light); display: flex; flex-wrap: wrap; gap: 40px; }
.footer-col { flex: 1; min-width: 200px; }
.footer-logo { margin-bottom: 15px; }
.footer-logo img { height: 55px; width: auto; }
.footer-col p { font-size: 1rem; color: #e2e8f0; }
.footer-col h4 { color: var(--color-primary); margin-bottom: 20px; font-size: 1.2rem; }
.footer-col li { margin-bottom: 10px; font-size: 1rem; }
.footer-col a { color: #e2e8f0; text-decoration: none; }
.footer-col a:hover { color: var(--color-accent); }

/* ===================== BACK TO TOP ===================== */
#back-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; border-radius: 50%; background-color: var(--color-accent); color: var(--color-dark); text-decoration: none; z-index: 999; box-shadow: 0 4px 10px rgba(0,0,0,0.2); transition: transform 0.2s; display: flex; justify-content: center; align-items: center; font-size: 1.8rem; }
#back-to-top:hover { transform: translateY(-3px); }

/* ===================== STICKY MOBILE BAR ===================== */
#sticky-buy-bar { position: fixed; bottom: 0; left: 0; width: 100%; background: var(--color-card-bg); box-shadow: 0 -2px 10px rgba(0,0,0,0.1); padding: 10px 20px; display: none; justify-content: space-between; align-items: center; z-index: 998; }
.sticky-info { display: flex; flex-direction: column; }

/* ===================== CART DRAWER ===================== */
#cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1002; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
#cart-overlay.active { opacity: 1; pointer-events: all; }
#cart-drawer { position: fixed; top: 0; right: 0; width: 350px; max-width: 100%; height: 100%; background: var(--color-bg); z-index: 1003; transform: translateX(100%); transition: transform 0.3s ease; display: flex; flex-direction: column; }
#cart-drawer.open { transform: translateX(0); }
.cart-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; background: var(--color-dark); color: var(--text-light); }
.cart-header h3 { color: var(--text-light); margin: 0; }
#cart-items { flex-grow: 1; padding: 20px; overflow-y: auto; }
.cart-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--color-placeholder-border); }
.cart-total { margin-top: 20px; text-align: right; font-size: 1.2rem; }
.cart-footer { padding: 20px; border-top: 1px solid var(--color-placeholder-border); }
.close-btn { background: transparent; border: none; font-size: 2rem; color: inherit; cursor: pointer; }

/* ===================== SPIN TO WIN POPUP ===================== */
#spin-win-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(74, 4, 78, 0.8); z-index: 10000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
#spin-win-overlay.active { opacity: 1; pointer-events: all; }
#spin-win-box { background: var(--color-bg); padding: 40px; border-radius: 20px; text-align: center; max-width: 400px; width: 90%; position: relative; box-shadow: 0 15px 40px rgba(0,0,0,0.3); transform: scale(0.8); transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
#spin-win-overlay.active #spin-win-box { transform: scale(1); }
#spin-win-box h2 { color: var(--color-dark); font-size: 2rem; margin-bottom: 10px; }
#spin-win-form input { width: 100%; padding: 12px; border: 2px solid var(--color-placeholder-border); border-radius: 8px; font-family: inherit; font-size: 1rem; margin-bottom: 15px; background-color: #fff; color: var(--text-color); }
#spin-win-form button { width: 100%; }
#spin-win-result { margin-top: 20px; }
#spin-win-result h3 { color: var(--color-secondary); font-size: 1.8rem; }
#spin-win-result p { font-size: 1.4rem; font-weight: bold; color: var(--color-primary); margin-bottom: 15px; }
#spin-win-box .close-btn { position: absolute; top: 15px; right: 15px; color: var(--text-color); }
#spin-wheel-container { position: relative; width: 200px; height: 200px; margin: 0 auto 25px; }
#spin-wheel-pointer { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); font-size: 2.5rem; color: var(--color-dark); z-index: 10; }
#spin-wheel { width: 100%; height: 100%; border-radius: 50%; border: 8px solid var(--color-dark); position: relative; overflow: hidden; transform: rotate(0deg); }
.wheel-slice { position: absolute; top: 0; left: 0; width: 100%; height: 100%; clip-path: polygon(50% 50%, 100% 15%, 100% 85%); display: flex; align-items: center; justify-content: center; font-weight: bold; color: #fff; }
.wheel-slice:nth-child(1) { background: #EC4899; transform: rotate(0deg); }
.wheel-slice:nth-child(2) { background: #F0ABFC; transform: rotate(90deg); color: var(--color-dark); }
.wheel-slice:nth-child(3) { background: #A855F7; transform: rotate(180deg); }
.wheel-slice:nth-child(4) { background: #F0ABFC; transform: rotate(270deg); color: var(--color-dark); }
.wheel-slice span { transform: rotate(-45deg) translate(40px, 0); }

/* ===================== RESPONSIVE / MOBILE DESIGN ===================== */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    /* Push logo to left, hamburger to the right */
    .logo { flex: 1; }
    .hamburger { display: block; margin-left: auto; }
    
    .nav-links { position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--color-dark); flex-direction: column; gap: 0; padding: 0; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out; }
    .menu-toggle:checked ~ .nav-links { max-height: 700px; padding: 20px 0; }
    .nav-links li { text-align: center; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
    
    #hero { flex-direction: column; text-align: center; }
    .hero-text { display: flex; flex-direction: column; align-items: center; }
    .hero-buttons { justify-content: center; }
    .campaign-container { flex-direction: column; }
    .video-container { min-height: 250px; }
    .benefits, .product-cards, .gallery-grid, .comments-grid { flex-direction: column; }
    .footer-col { flex-basis: 100%; }
    .quiz-title { font-size: 2rem; }
    #question-text { font-size: 1.3rem; }
    .result-product-name { font-size: 2rem; }
    .game-board { flex-direction: column; gap: 30px; }
    .fun-zone-title { font-size: 2rem; }
    .product-card-game { font-size: 1.3rem; }
    .desc-card-game { font-size: 1.05rem; }
    .memory-board { grid-template-columns: repeat(3, 1fr); }
    .memory-front { font-size: 2rem; }
    .win-message h3 { font-size: 1.8rem; }
    .fill-box-container { flex-direction: column; align-items: center; }
    .fill-items-pool { grid-template-columns: repeat(2, 1fr); }
    .puzzle-board { width: 250px; height: 250px; }
    #back-to-top { bottom: 20px; right: 20px; width: 45px; height: 45px; font-size: 1.5rem; }
    
    .riddle-title { font-size: 2rem; }
    #riddle-text { font-size: 1.3rem; }
    .riddle-card { padding: 40px 20px 30px 20px; }
    .riddle-scroll { padding: 25px; }
    .riddle-input-area { flex-direction: column; align-items: center; }
    .riddle-input-area input { width: 100%; max-width: none; }

    .blog-index-title { font-size: 2rem; }
    .blog-post-container { padding: 20px; margin: 80px 10px 40px 10px; }
    .blog-post-title { font-size: 1.8rem; }
    .blog-post-hero { height: 200px; }
    .blog-post-content p { font-size: 1rem; }
    .blog-post-content h2 { font-size: 1.4rem; }
/* ===================== READING TUTORIALS ===================== */
.tutorial-text {
    padding: 30px;
    text-align: left;
    background: var(--color-card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    height: 100%;
}

.tutorial-text h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
}

.tutorial-text ol {
    padding-left: 20px;
    color: var(--text-color);
    line-height: 1.8;
}

.tutorial-text ol li {
    margin-bottom: 10px;
    font-size: 1.05rem;
}
}