/* ============================================================
   Worksheet Wonder — Custom Stylesheet
   Version 2.0 (rebuilt)
   Complements Bootstrap 5.3 + Baloo 2 / Poppins
   ============================================================ */

:root {
    --ww-primary: #4F46E5;
    --ww-primary-dark: #4338CA;
    --ww-secondary: #06B6D4;
    --ww-coral: #FF6B6B;
    --ww-amber: #F59E0B;
    --ww-green: #22C55E;
    --ww-pink: #EC4899;
    --ww-purple: #8B5CF6;
    --ww-ink: #1E293B;
    --ww-muted: #64748B;
    --ww-cream: #FFFDF9;
    --ww-soft: #F8FAFF;
    --ww-radius: 1.25rem;
    --ww-shadow: 0 10px 30px rgba(79, 70, 229, 0.10);
    --ww-shadow-hover: 0 18px 44px rgba(79, 70, 229, 0.18);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    color: var(--ww-ink);
    background: #ffffff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5,
.h1, .h2, .h3, .h4, .h5,
.display-4, .display-6,
.hero-title, .brand-text, .footer-brand {
    font-family: 'Baloo 2', 'Poppins', sans-serif;
    letter-spacing: 0.2px;
}

img { max-width: 100%; }

a { text-decoration: none; }

/* ============ Buttons ============ */
.btn-rainbow {
    background: linear-gradient(90deg, var(--ww-primary), var(--ww-secondary));
    color: #fff !important;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    padding: 0.65rem 1.6rem;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.30);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}
.btn-rainbow:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(79, 70, 229, 0.38);
    color: #fff !important;
}
.btn-rainbow:active { transform: translateY(0); }

.btn-outline-primary { border-radius: 999px; font-weight: 600; }

/* ============ Top bar & Navbar ============ */
.top-bar {
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}
.navbar { box-shadow: 0 2px 14px rgba(15, 23, 42, 0.06); }
.navbar-logo { height: 42px; width: auto; object-fit: contain; }
.brand-text { color: var(--ww-primary) !important; font-weight: 800; }
.nav-link { font-weight: 500; color: var(--ww-ink); border-radius: 0.6rem; padding: 0.5rem 0.85rem !important; }
.nav-link:hover, .nav-link.active { color: var(--ww-primary); background: rgba(79, 70, 229, 0.08); }
.dropdown-menu { border: none; border-radius: 1rem; box-shadow: var(--ww-shadow); padding: 0.6rem; }
.dropdown-item { border-radius: 0.6rem; font-weight: 500; padding: 0.55rem 0.9rem; }
.dropdown-item:hover { background: rgba(79, 70, 229, 0.08); color: var(--ww-primary); }

/* ============ Hero ============ */
.hero-section {
    background: linear-gradient(135deg, #EEF2FF 0%, #FDF4FF 45%, #ECFEFF 100%);
    padding: 4.5rem 0;
    position: relative;
    overflow: hidden;
}
.hero-tag {
    display: inline-block;
    background: #fff;
    border: 1px solid rgba(79, 70, 229, 0.18);
    color: var(--ww-primary-dark);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.10);
    margin-bottom: 1.25rem;
}
.hero-title {
    font-size: clamp(2.4rem, 5vw, 3.9rem);
    font-weight: 800;
    line-height: 1.12;
    color: var(--ww-ink);
    margin-bottom: 1rem;
}
.hero-title .text-gradient,
.text-gradient {
    background: linear-gradient(90deg, var(--ww-primary), var(--ww-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-text { font-size: 1.12rem; color: var(--ww-muted); max-width: 34rem; }
.hero-rating { font-size: 0.95rem; color: var(--ww-muted); font-weight: 500; }
.hero-image {
    max-height: 420px;
    filter: drop-shadow(0 24px 40px rgba(79, 70, 229, 0.22));
    animation: floaty 5s ease-in-out infinite;
}
@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}
.hero-banner {
    background: linear-gradient(120deg, var(--ww-primary), var(--ww-purple) 60%, var(--ww-secondary));
    color: #fff;
    border-radius: var(--ww-radius);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}
.hero-sub { opacity: 0.92; font-size: 1.05rem; }
.hero-letter-display {
    font-family: 'Baloo 2', sans-serif;
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 1.5rem;
    padding: 1.5rem 2.5rem;
    display: inline-block;
}

/* ============ Stats ============ */
.stats-section { background: var(--ww-soft); }
.stat-card {
    background: #fff;
    border-radius: var(--ww-radius);
    box-shadow: var(--ww-shadow);
    padding: 1.75rem 1.25rem;
    text-align: center;
    height: 100%;
    transition: transform 0.25s ease;
}
.stat-card:hover { transform: translateY(-4px); }
.stat-number {
    font-family: 'Baloo 2', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--ww-primary), var(--ww-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat-label { color: var(--ww-muted); font-weight: 500; }

/* ============ Cards ============ */
.ww-card, .category-card, .worksheet-card, .blog-card, .bundle-card, .grade-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: var(--ww-radius);
    box-shadow: var(--ww-shadow);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ww-card:hover, .category-card:hover, .worksheet-card:hover,
.blog-card:hover, .bundle-card:hover, .grade-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ww-shadow-hover);
}
.ww-card img.card-img-top, .category-card img, .worksheet-card img,
.blog-card img, .bundle-card img, .grade-card img {
    height: 180px;
    width: 100%;
    object-fit: cover;
}
.card-emoji {
    font-size: 3rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #EEF2FF, #ECFEFF);
    margin-bottom: 1rem;
}
.price { font-family: 'Baloo 2', sans-serif; font-size: 1.35rem; font-weight: 800; color: var(--ww-primary-dark); }
.price-old { text-decoration: line-through; color: var(--ww-muted); font-size: 0.95rem; margin-left: 0.4rem; }
.rating { color: var(--ww-amber); font-size: 0.9rem; letter-spacing: 1px; }

/* ============ Section helpers ============ */
.section-title { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.section-sub { color: var(--ww-muted); max-width: 44rem; }
.why-us .feature-icon {
    width: 64px; height: 64px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: #fff;
    background: linear-gradient(135deg, var(--ww-primary), var(--ww-secondary));
    border-radius: 1.1rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.28);
}

/* Testimonials */
.testimonials .testimonial-card {
    background: #fff;
    border-radius: var(--ww-radius);
    box-shadow: var(--ww-shadow);
    padding: 1.75rem;
    height: 100%;
}
.testimonial-card .stars { color: var(--ww-amber); letter-spacing: 2px; margin-bottom: 0.75rem; }
.testimonial-card blockquote { font-style: italic; color: #334155; }
.testimonial-avatar {
    width: 52px; height: 52px; border-radius: 50%;
    object-fit: cover; border: 3px solid #EEF2FF;
}

/* FAQ */
.faq-section .accordion-item {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem !important;
    overflow: hidden;
    margin-bottom: 0.9rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}
.faq-section .accordion-button { font-weight: 600; }
.faq-section .accordion-button:not(.collapsed) {
    background: rgba(79, 70, 229, 0.07);
    color: var(--ww-primary-dark);
}

/* Newsletter */
.newsletter-section { background: linear-gradient(120deg, #EEF2FF, #FDF4FF); }
.newsletter-box {
    background: #fff;
    border-radius: 1.75rem;
    box-shadow: var(--ww-shadow);
    padding: 3rem 2rem;
    text-align: center;
}
.newsletter-form { max-width: 32rem; margin: 1.5rem auto 0; }

/* Breadcrumb */
.breadcrumb-section { border-bottom: 1px solid rgba(15, 23, 42, 0.06); }
.breadcrumb-item a { color: var(--ww-primary); font-weight: 500; }

/* ============ Footer ============ */
footer, .footer-section { background: #0F172A !important; }
.footer-heading, .footer-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 1.1rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a { color: #94A3B8; transition: color 0.2s, padding-left 0.2s; }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-brand { color: #fff; font-weight: 800; font-size: 1.4rem; }
.footer-logo { height: 46px; width: auto; }
.footer-contact li { display: flex; gap: 0.6rem; color: #94A3B8; margin-bottom: 0.6rem; }
.footer-contact i { color: var(--ww-secondary); }
.footer-bar, .copyright-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94A3B8;
    font-size: 0.9rem;
}
.social-links a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff; font-size: 1.1rem;
    transition: background 0.2s, transform 0.2s;
}
.social-links a:hover { background: linear-gradient(135deg, var(--ww-primary), var(--ww-secondary)); transform: translateY(-3px); color: #fff; }

/* ============ Back to top ============ */
#backToTop {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 48px; height: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--ww-primary), var(--ww-secondary));
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
    z-index: 1040;
}
#backToTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#backToTop:hover { transform: translateY(-3px); }

/* ============ Auth / Portal / Shop / Cart ============ */
.auth-section { background: linear-gradient(135deg, #EEF2FF, #ECFEFF); min-height: 70vh; display: flex; align-items: center; }
.auth-card {
    background: #fff; border-radius: 1.75rem;
    box-shadow: var(--ww-shadow-hover);
    padding: 2.5rem;
}
.portal-stat {
    background: #fff; border-radius: var(--ww-radius);
    box-shadow: var(--ww-shadow); padding: 1.5rem;
    text-align: center;
}
.portal-stat .stat-icon {
    width: 56px; height: 56px; border-radius: 1rem;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: #fff; margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--ww-primary), var(--ww-secondary));
}
.cart-section .cart-item, .checkout-section .order-summary {
    background: #fff; border-radius: var(--ww-radius);
    box-shadow: var(--ww-shadow); padding: 1.5rem;
}
.search-filter { background: #fff; border-radius: var(--ww-radius); box-shadow: var(--ww-shadow); padding: 1.5rem; }
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--ww-muted); }
.empty-state .empty-icon { font-size: 3.5rem; margin-bottom: 1rem; display: block; }

/* Skeleton shimmer for loading grids */
.skeleton {
    border-radius: var(--ww-radius);
    background: linear-gradient(90deg, #eef1f6 25%, #e2e8f0 50%, #eef1f6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    min-height: 220px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* Blog */
.blog-card .blog-meta { font-size: 0.85rem; color: var(--ww-muted); }
.blog-category { cursor: pointer; transition: all 0.2s; }
.blog-category:hover, .blog-category.active {
    background: var(--ww-primary); color: #fff; border-color: var(--ww-primary);
}

/* Free downloads */
.free-downloads .download-card {
    background: linear-gradient(135deg, #fff, var(--ww-soft));
    border: 2px dashed rgba(79, 70, 229, 0.3);
    border-radius: var(--ww-radius);
    padding: 2rem;
    text-align: center;
    transition: transform 0.25s;
}
.free-downloads .download-card:hover { transform: translateY(-5px); border-color: var(--ww-primary); }

/* ============ Responsive ============ */
@media (max-width: 991.98px) {
    .hero-section { padding: 3rem 0; }
    .hero-image { max-height: 300px; margin-top: 2rem; }
    .navbar .btn-rainbow { margin-top: 0.75rem; }
}
@media (max-width: 575.98px) {
    .hero-title { font-size: 2.2rem; }
    .auth-card { padding: 1.75rem 1.25rem; }
    .hero-banner { padding: 2rem 1.25rem; }
}

/* ============ Print (worksheets) ============ */
@media print {
    .top-bar, nav.navbar, footer, #backToTop, .no-print { display: none !important; }
    body { background: #fff; }
    .hero-section { background: #fff; padding: 1rem 0; }
}

/* ============================================================
   K5-inspired theme layer
   Clean white + navy + pastel category cards, sidebar listings
   ============================================================ */
:root {
    --k5-navy: #1F3A5F;
    --k5-olive: #7C8A3A;
    --k5-teal: #209E8C;
    --k5-orange: #F26A21;
    --k5-blue: #2B7CD3;
    --k5-hero-bg: #EAF3FD;
    --k5-peach: #FFE9D6;
    --k5-mint: #DFF5E3;
    --k5-sky: #DDEAFB;
}

/* ---- Hero (pale blue band, navy headline, orange search) ---- */
.k5-hero {
    background: var(--k5-hero-bg);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}
.k5-hero h1 {
    color: var(--k5-navy);
    font-weight: 800;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    letter-spacing: 1px;
}
.k5-hero .k5-sub {
    color: #5B6B82;
    font-size: 1.2rem;
    margin-top: 0.5rem;
}
.k5-search { max-width: 34rem; }
.k5-search .form-control {
    border-radius: 999px 0 0 999px;
    border: 2px solid #D7E3F4;
    border-right: none;
    padding: 0.8rem 1.4rem;
}
.k5-search .btn {
    border-radius: 0 999px 999px 0;
    background: var(--k5-orange);
    border: 2px solid var(--k5-orange);
    color: #fff;
    font-weight: 700;
    padding: 0.8rem 1.6rem;
}
.k5-search .btn:hover { background: #D95A1B; border-color: #D95A1B; color: #fff; }

/* ---- Pastel category cards ---- */
.k5-cat-card {
    border-radius: 1.5rem;
    padding: 2rem;
    height: 100%;
    border: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.k5-cat-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(31, 58, 95, 0.14); }
.k5-cat-card.peach { background: var(--k5-peach); }
.k5-cat-card.mint { background: var(--k5-mint); }
.k5-cat-card.sky { background: var(--k5-sky); }
.k5-cat-card h3 { color: var(--k5-navy); font-weight: 800; }
.k5-cat-card img { border-radius: 1rem; height: 150px; width: 100%; object-fit: cover; }
.k5-pill {
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 0.6rem 2rem;
    border: none;
    display: inline-block;
}
.k5-pill.orange { background: var(--k5-orange); color: #fff; }
.k5-pill.green { background: #35A853; color: #fff; }
.k5-pill.teal { background: var(--k5-teal); color: #fff; }
.k5-pill.orange:hover, .k5-pill.green:hover, .k5-pill.teal:hover { color: #fff; filter: brightness(0.94); }

/* ---- Listing pages: breadcrumb, olive H1, sidebar, rows ---- */
.k5-breadcrumb { font-size: 0.95rem; color: #7A8AA0; margin-bottom: 0.25rem; }
.k5-breadcrumb a { color: var(--k5-blue); }
h1.k5-h1 { color: var(--k5-olive); font-weight: 800; }
.k5-subhead { color: var(--k5-navy); font-weight: 700; }

.k5-sidebar {
    border: 1px solid #E4EAF3;
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
}
.k5-sidebar-header {
    background: var(--k5-teal);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0.85rem 1.25rem;
}
.k5-sidebar a.k5-topic {
    display: block;
    padding: 0.55rem 1.25rem;
    color: var(--ww-ink);
    font-weight: 500;
    border-bottom: 1px solid #F1F5F9;
}
.k5-sidebar a.k5-topic:last-child { border-bottom: none; }
.k5-sidebar a.k5-topic:hover, .k5-sidebar a.k5-topic.active {
    background: #F1F5F9;
    color: var(--k5-teal);
    font-weight: 700;
}
.k5-promo {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: 1rem;
    padding: 1.25rem;
}

.k5-listing-row {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.3rem 0.25rem;
    border-bottom: 2px dotted #CBD5E1;
}
.k5-listing-row:last-child { border-bottom: none; }
a.k5-title {
    color: var(--k5-blue);
    text-decoration: underline;
    font-weight: 700;
    font-size: 1.18rem;
    font-family: 'Baloo 2', 'Poppins', sans-serif;
}
a.k5-title:hover { color: #1F5FA8; }
.k5-thumb {
    width: 118px;
    height: auto;
    border: 1px solid #E2E8F0;
    border-radius: 0.5rem;
    background: #fff;
    flex-shrink: 0;
}
.k5-meta { color: #7A8AA0; font-size: 0.9rem; }

/* ============================================================
   Professional theme layer (2026-09-30)
   K5-style: clean white chrome, navy headings, orange CTAs,
   colored subject tabs. Calms the playful template gradients.
   ============================================================ */

/* ---- Typography: calm, professional ---- */
h1, h2, h3, h4, h5,
.h1, .h2, .h3, .h4, .h5,
.display-4, .display-6,
.hero-title, .footer-brand {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    letter-spacing: 0;
}
.brand-text { font-family: 'Baloo 2', 'Poppins', sans-serif; }
.brand-text .brand-2 { color: var(--k5-orange); font-style: normal; }
a.k5-title, h1.k5-h1 { font-family: 'Poppins', system-ui, -apple-system, sans-serif; }

/* ---- Top utility bar: slim navy ---- */
.top-bar {
    background: var(--k5-navy);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 0.45rem 0;
}

/* ---- Navbar: white, crisp, orange active indicator ---- */
.navbar {
    background: #fff !important;
    box-shadow: 0 1px 0 #E2E8F0, 0 6px 18px rgba(15, 23, 42, 0.05);
}
.brand-text { color: var(--k5-navy) !important; }
.nav-link {
    color: #334155 !important;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 0 !important;
    padding: 0.7rem 0.9rem !important;
    position: relative;
    background: none !important;
}
.nav-link:hover, .nav-link.active { color: var(--k5-navy) !important; background: none !important; }
.nav-link:hover::after, .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0.9rem; right: 0.9rem; bottom: 0.3rem;
    height: 3px; border-radius: 2px;
    background: var(--k5-orange);
}
.dropdown-menu { border: 1px solid #E2E8F0; }

/* ---- K5-style colored subject tabs (injected under navbar) ---- */
.ww-subject-tabs { background: #F8FAFC; border-bottom: 1px solid #E2E8F0; }
.ww-tabs-scroll {
    display: flex; gap: 0.5rem;
    overflow-x: auto; padding: 0.55rem 0;
    scrollbar-width: thin;
}
.ww-tab {
    flex: 0 0 auto;
    background: var(--tab, #2B7CD3);
    color: #fff !important;
    font-weight: 700; font-size: 0.9rem;
    padding: 0.5rem 1.05rem;
    border-radius: 0.5rem;
    text-decoration: none;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12);
    white-space: nowrap;
}
.ww-tab:hover { color: #fff !important; filter: brightness(0.93); }
.ww-tab.active { outline: 2px solid var(--k5-navy); outline-offset: 1px; }
@media print { .ww-subject-tabs { display: none !important; } }

/* ---- Hero: tighter, professional ---- */
.k5-hero { padding: 3.5rem 0; border-bottom: 1px solid #DCE7F5; }
.k5-hero h1 { letter-spacing: 2px; }
.k5-eyebrow {
    display: inline-block;
    font-size: 0.78rem; font-weight: 700;
    letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--k5-orange); margin-bottom: 0.6rem;
}
.k5-search .form-control { border-radius: 8px 0 0 8px; }
.k5-search .btn { border-radius: 0 8px 8px 0; }
.hero-section { background: #EAF3FD; }
.hero-image { animation: none; }
.hero-title .text-gradient, .text-gradient {
    background: none; -webkit-background-clip: border-box; background-clip: border-box;
    color: var(--k5-navy);
}

/* ---- Category cards: white, top accent bar ---- */
.k5-cat-card {
    background: #fff !important;
    border: 1px solid #E2E8F0;
    border-top: 4px solid var(--k5-blue);
    border-radius: 1rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    text-align: left !important;
    padding: 1.75rem;
}
.k5-cat-card.peach { border-top-color: var(--k5-orange); }
.k5-cat-card.mint { border-top-color: #35A853; }
.k5-cat-card.sky { border-top-color: var(--k5-blue); }
.k5-cat-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(31, 58, 95, 0.12); }
.k5-cat-card img {
    height: 110px; object-fit: contain;
    background: #F8FAFC; border-radius: 0.75rem; padding: 0.5rem;
}
.k5-cat-card h3 { font-size: 1.25rem; }
.k5-pill { border-radius: 8px; letter-spacing: 0.4px; padding: 0.6rem 1.4rem; font-size: 0.9rem; }

/* ---- Buttons: solid K5 orange/green, modest radius ---- */
.btn-rainbow {
    background: var(--k5-orange);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(242, 106, 33, 0.28);
}
.btn-rainbow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(242, 106, 33, 0.35);
    color: #fff !important;
}

/* ---- Section titles: navy with orange rule ---- */
.section-title { color: var(--k5-navy); }
.section-title::after {
    content: ""; display: block;
    width: 56px; height: 4px; border-radius: 2px;
    background: var(--k5-orange); margin: 0.6rem auto 0;
}
.section-sub { color: var(--ww-muted); }

/* ---- Stats: solid navy numbers, bordered cards ---- */
.stat-card { border: 1px solid #E2E8F0; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05); }
.stat-number { background: none; color: var(--k5-navy); }

/* ---- Generic cards: calmer ---- */
.ww-card, .category-card, .worksheet-card, .blog-card, .bundle-card, .grade-card {
    border-radius: 1rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}
.why-us .feature-icon {
    background: var(--k5-navy);
    box-shadow: none;
    border-radius: 0.9rem;
}

/* ---- Free downloads: solid professional cards ---- */
.free-downloads .download-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

/* ---- Newsletter: calm blue ---- */
.newsletter-section { background: #EAF3FD; }
.newsletter-box { border-radius: 1.25rem; border: 1px solid #E2E8F0; }

/* ---- Auth / misc gradient washes -> flat ---- */
.auth-section { background: #EAF3FD; }

/* ---- Footer: professional uppercase headings ---- */
.footer-heading, .footer-title {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    color: #CBD5E1;
}

/* ---- Back to top: solid navy ---- */
#backToTop { background: var(--k5-navy); box-shadow: 0 8px 20px rgba(31, 58, 95, 0.35); }
