/* ============================================================
   IBE Learning — public site (vibrant STEM, kids + parents + schools)
   ============================================================ */
:root {
    --brand: #0a6a86;
    --brand-dark: #075268;
    --brand-soft: #e7f3f7;
    --purple: #7c5cfc;
    --coral: #ff6b6b;
    --yellow: #ffc83d;
    --green: #21c197;
    --blue: #4dabf7;
    --orange: #ff922b;
    --ink: #1d2b3a;
    --muted: #6b7a90;
}

body.public-body { font-family: 'Nunito', system-ui, sans-serif; color: var(--ink); background: #fff; }
h1, h2, h3, h4, h5, .display-4, .navbar-brand { font-family: 'Fredoka', sans-serif; font-weight: 600; }

.text-primary { color: var(--brand) !important; }
.bg-primary { background-color: var(--brand) !important; }
.btn { border-radius: 999px; font-weight: 700; font-family: 'Fredoka', sans-serif; }
.btn-primary { background: var(--brand); border-color: var(--brand); padding: .6rem 1.5rem; box-shadow: 0 8px 0 rgba(7,82,104,.28); }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-primary:active { transform: translateY(4px); box-shadow: 0 4px 0 rgba(7,82,104,.28); }
.btn-warning { background: var(--yellow); border-color: var(--yellow); color: #5a4300; box-shadow: 0 8px 0 #d9a300; }
.btn-success { background: var(--green); border-color: var(--green); box-shadow: 0 8px 0 #149173; }
.btn-outline-primary { color: var(--brand); border-color: var(--brand); border-width: 2px; }
.btn-outline-primary:hover { background: var(--brand); border-color: var(--brand); }
.btn-light { color: var(--brand); box-shadow: 0 8px 0 rgba(0,0,0,.08); }

/* Navbar */
.public-navbar { box-shadow: 0 2px 16px rgba(20,20,60,.06); padding: .7rem 0; }
.public-navbar .nav-link { font-weight: 700; color: #44506a; margin: 0 .3rem; }
.public-navbar .nav-link.active, .public-navbar .nav-link:hover { color: var(--brand); }
.navbar-brand { font-weight: 700; }

/* Hero */
.hero {
    position: relative; overflow: hidden; color: #fff; padding: 4.5rem 0 5.5rem;
    background: linear-gradient(125deg, var(--brand) 0%, #0d86a8 55%, var(--purple) 120%);
}
.hero h1 { font-weight: 700; font-size: 3rem; line-height: 1.1; }
.hero p.lead { font-size: 1.2rem; opacity: .95; }
.hero .blob { position: absolute; border-radius: 50%; opacity: .18; filter: blur(2px); }
.hero .blob.b1 { width: 240px; height: 240px; background: var(--yellow); top: -60px; right: 8%; }
.hero .blob.b2 { width: 180px; height: 180px; background: var(--coral); bottom: -40px; left: 4%; }
.hero .float-emoji { font-size: 2.2rem; position: absolute; animation: bob 4s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-12px) } }
.hero-stats .stat strong { font-size: 1.8rem; display: block; font-family: 'Fredoka'; }
.hero-stats .stat span { opacity: .9; font-size: .9rem; }

/* Section */
.section { padding: 4rem 0; }
.section-title { font-weight: 700; font-size: 2rem; }
.section-sub { color: var(--muted); font-size: 1.05rem; }
.bg-soft { background: #f6fafc; }

/* Value props */
.value-card { background: #fff; border: 1px solid #eef2f8; border-radius: 20px; padding: 1.6rem; height: 100%; box-shadow: 0 10px 26px rgba(20,20,60,.05); transition: transform .2s; }
.value-card:hover { transform: translateY(-6px); }
.value-emoji { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 2rem; margin-bottom: 1rem; }

/* Category pills */
.cat-card { display: block; border-radius: 20px; padding: 1.6rem 1rem; text-align: center; color: var(--ink); transition: transform .2s, box-shadow .2s; height: 100%; }
.cat-card:hover { transform: translateY(-6px) rotate(-1deg); text-decoration: none; color: var(--brand); box-shadow: 0 16px 32px rgba(20,20,60,.12); }
.cat-emoji { font-size: 2.6rem; }

/* Course card */
.course-card { border: 1px solid #eef0f5; border-radius: 20px; overflow: hidden; background: #fff; transition: transform .2s, box-shadow .2s; height: 100%; display: flex; flex-direction: column; }
.course-card:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(20,20,60,.12); }
.course-card .thumb { aspect-ratio: 16/9; width: 100%; object-fit: cover; background: #eef3ff; }
.course-card .card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.course-card .course-title { font-family: 'Fredoka'; font-weight: 600; font-size: 1.05rem; line-height: 1.3; color: var(--ink); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:2.7em; }
.badge-cat { background: var(--brand-soft); color: var(--brand); font-weight: 700; border-radius: 999px; padding: .25rem .7rem; }
.badge-grade { background: #fff3d6; color: var(--orange); font-weight: 700; border-radius: 999px; padding: .25rem .7rem; }
.price { font-family: 'Fredoka'; font-weight: 700; color: var(--brand); font-size: 1.1rem; }
.price.free { color: var(--green); }
.meta { color: #8893a8; font-size: .82rem; }

/* Steps */
.step-num { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: 'Fredoka'; font-weight: 700; font-size: 1.5rem; color: #fff; margin: 0 auto 1rem; }

/* Footer */
.public-footer { background: var(--ink); color: #fff; padding: 3.5rem 0 2rem; margin-top: 2rem; }
.footer-heading { color: #fff; font-weight: 700; margin-bottom: 1rem; font-family: 'Fredoka'; }
.footer-links a { color: rgba(255,255,255,.6); display: block; padding: .25rem 0; }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-divider { border-color: rgba(255,255,255,.12); margin: 2rem 0 1.2rem; }

/* Lucide icons */
[data-lucide], svg.lucide { stroke-width: 2; vertical-align: -.15em; }
.value-emoji svg { width: 30px; height: 30px; }
.cat-emoji svg { width: 38px; height: 38px; }
.step-num svg { width: 26px; height: 26px; }
.btn svg, .nav-link svg { width: 17px; height: 17px; vertical-align: -3px; }
.hero-mascot { width: 220px; height: 220px; }
.feat-icon svg { width: 26px; height: 26px; }

@media (max-width: 767px) { .hero { padding: 3rem 0 4rem; } .hero h1 { font-size: 2.1rem; } .section-title { font-size: 1.6rem; } }
