/* =========================================================
   Kids Book Publishers — brand theme
   ========================================================= */

:root {
    --primary-color: #ff4b7d;
    /* playful pink */
    --secondary-color: #2d1b69;
    /* deep purple (headers/footers) */
    --purple-color: #6c2bd9;
    --yellow-color: #ffc93c;
    --teal-color: #00c9b7;
    --orange-color: #ff8a3d;
    --green-color: #5ad07a;
    --blue-color: #3aa0ff;
    --cream-color: #fff6ec;
    --text-color: #34305c;
    --muted-color: #6b6790;
    --white-color: #fff;
    --radius-lg: 28px;
    --radius-md: 18px;
    --shadow-soft: 0 18px 45px -20px rgba(45, 27, 105, .45);
    --shadow-pop: 0 22px 45px -18px rgba(255, 75, 125, .55);
}

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

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    background: var(--white-color);
    color: var(--text-color);
    font-family: "Nunito", sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-display {
    font-family: "Baloo 2", "Nunito", cursive;
    color: var(--secondary-color);
    line-height: 1.15;
}

a {
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
    box-shadow: none;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: var(--primary-color);
    border: 1px solid #fff;
}

::-webkit-scrollbar-track {
    background-color: #f3eefc;
}

/* ---------- Utility ------------------------------------- */

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 2px dashed var(--primary-color);
    color: var(--primary-color);
    border-radius: 999px;
    padding: 6px 18px;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.eyebrow--light {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .55);
    color: #fff;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: "Baloo 2", cursive;
    font-weight: 700;
    font-size: 18px;
    padding: 12px 30px;
    border-radius: 999px;
    border: 2px solid transparent;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
    cursor: pointer;
    line-height: 1.4;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: var(--shadow-pop);
}

.btn-primary:hover {
    background: #e93c6c;
    color: #fff;
}

.btn-yellow {
    background: var(--yellow-color);
    color: var(--secondary-color);
    box-shadow: 0 18px 36px -16px rgba(255, 201, 60, .9);
}

.btn-yellow:hover {
    background: #ffd763;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .75);
}

.btn-outline:hover {
    background: #fff;
    color: var(--secondary-color);
}

.btn-outline-dark {
    background: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-dark:hover {
    background: var(--secondary-color);
    color: #fff;
}

.card-soft {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

/* ---------- Header -------------------------------------- */

header {
    transition: all .45s ease-in-out;
}

header.header-sticky {
    position: fixed;
    width: 100%;
    top: 0;
    padding-top: .5rem;
    padding-bottom: .5rem;
    background: var(--secondary-color);
    box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .6);
    z-index: 1000;
}

.nav-link {
    position: relative;
    font-family: "Baloo 2", cursive;
    font-weight: 600;
    color: #fff;
    padding: 6px 2px;
    transition: color .3s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 3px;
    width: 0;
    border-radius: 3px;
    background: var(--yellow-color);
    transition: width .3s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
    width: 100%;
}

.nav-link.is-active {
    color: var(--yellow-color);
}

.mega-link {
    display: block;
    font-weight: 700;
    color: var(--secondary-color);
    padding: 6px 10px;
    border-radius: 12px;
    transition: all .25s ease;
}

.mega-link:hover {
    background: var(--cream-color);
    color: var(--primary-color);
    transform: translateX(4px);
}

.mega-title {
    font-family: "Baloo 2", cursive;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: .08em;
    margin-bottom: 10px;
}

/* ---------- Hero ---------------------------------------- */

.hero {
    position: relative;
    background: linear-gradient(135deg, #6c2bd9 0%, #9b3fd0 38%, #ff4b7d 72%, #ff8a3d 100%);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 12% 20%, rgba(255, 255, 255, .18) 0 2px, transparent 3px),
        radial-gradient(circle at 78% 12%, rgba(255, 255, 255, .16) 0 3px, transparent 4px),
        radial-gradient(circle at 32% 78%, rgba(255, 255, 255, .14) 0 2px, transparent 3px),
        radial-gradient(circle at 88% 62%, rgba(255, 255, 255, .2) 0 2px, transparent 3px);
    background-size: 340px 340px;
    pointer-events: none;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .3;
    pointer-events: none;
}

.wave-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    line-height: 0;
}

.wave-bottom svg {
    width: 100%;
    height: 70px;
    display: block;
}

@media (min-width:1024px) {
    .wave-bottom svg {
        height: 110px;
    }
}

/* floating book covers in hero */
.float-book {
    border-radius: 12px;
    box-shadow: 0 26px 50px -18px rgba(0, 0, 0, .55);
    animation: floaty 6s ease-in-out infinite;
}

.float-book:nth-child(2n) {
    animation-delay: -2s;
}

.float-book:nth-child(3n) {
    animation-delay: -4s;
}

@keyframes floaty {

    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-18px) rotate(2deg);
    }
}

.animscale {
    animation: animscale 4s ease-in-out infinite;
}

@keyframes animscale {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }
}

.spin-slow {
    animation: spin-slow 18s linear infinite;
}

@keyframes spin-slow {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- Sections ------------------------------------ */

.section-pad {
    padding: 72px 0;
}

@media (min-width:1024px) {
    .section-pad {
        padding: 100px 0;
    }
}

.bg-cream {
    background: var(--cream-color);
}

.bg-dots {
    background-color: #fff;
    background-image: radial-gradient(rgba(108, 43, 217, .12) 1.4px, transparent 1.5px);
    background-size: 22px 22px;
}

.service-card {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 34px 26px;
    box-shadow: var(--shadow-soft);
    border-bottom: 6px solid transparent;
    transition: transform .35s ease, box-shadow .35s ease;
    overflow: hidden;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 55px -22px rgba(45, 27, 105, .5);
}

.service-card .icon-blob {
    width: 68px;
    height: 68px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    margin-bottom: 18px;
    transform: rotate(-6deg);
    transition: transform .35s ease;
}

.service-card:hover .icon-blob {
    transform: rotate(6deg) scale(1.06);
}

.c-pink {
    background: var(--primary-color);
}

.c-purple {
    background: var(--purple-color);
}

.c-yellow {
    background: var(--yellow-color);
}

.c-teal {
    background: var(--teal-color);
}

.c-orange {
    background: var(--orange-color);
}

.c-green {
    background: var(--green-color);
}

.c-blue {
    background: var(--blue-color);
}

.bd-pink {
    border-bottom-color: var(--primary-color);
}

.bd-purple {
    border-bottom-color: var(--purple-color);
}

.bd-yellow {
    border-bottom-color: var(--yellow-color);
}

.bd-teal {
    border-bottom-color: var(--teal-color);
}

.bd-orange {
    border-bottom-color: var(--orange-color);
}

.bd-green {
    border-bottom-color: var(--green-color);
}

.bd-blue {
    border-bottom-color: var(--blue-color);
}

/* process steps */
.step-card {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 30px 24px 26px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    height: 100%;
}

.step-card .step-no {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Baloo 2", cursive;
    font-weight: 800;
    font-size: 20px;
    color: #fff;
    border: 4px solid #fff;
}

/* book slider */
.book-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 20px 40px -18px rgba(45, 27, 105, .6);
    transition: transform .35s ease;
}

.book-card:hover img {
    transform: translateY(-8px) scale(1.02);
}

.books-slider .slick-slide,
.style-slider .slick-slide {
    padding: 18px 10px;
}

.books-slider .slick-dots,
.style-slider .slick-dots,
.testi-slider .slick-dots {
    bottom: -34px;
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.books-slider .slick-dots li,
.style-slider .slick-dots li,
.testi-slider .slick-dots li {
    width: auto;
    height: auto;
    margin: 0;
}

.books-slider .slick-dots li button,
.style-slider .slick-dots li button,
.testi-slider .slick-dots li button {
    width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 999px;
    background: #e3dcf5;
    transition: all .3s ease;
}

.books-slider .slick-dots li button:before,
.style-slider .slick-dots li button:before,
.testi-slider .slick-dots li button:before {
    display: none;
}

.books-slider .slick-dots li.slick-active button,
.style-slider .slick-dots li.slick-active button,
.testi-slider .slick-dots li.slick-active button {
    width: 34px;
    background: var(--primary-color);
}

.slider-arrow {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--secondary-color);
    box-shadow: var(--shadow-soft);
    border: none;
    cursor: pointer;
    transition: all .3s ease;
}

.slider-arrow:hover {
    background: var(--primary-color);
    color: #fff;
}

/* testimonials */
.testi-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-soft);
    margin: 14px 12px;
    height: 100%;
}

.testi-card .stars {
    color: var(--yellow-color);
    letter-spacing: 2px;
}

.testi-card img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--yellow-color);
}

/* counters */
.stat-box {
    text-align: center;
    padding: 26px 14px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
}

.stat-box .num {
    font-family: "Baloo 2", cursive;
    font-size: 44px;
    font-weight: 800;
    color: var(--yellow-color);
    line-height: 1;
}

/* FAQ */
.faq-item {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-q {
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    font-family: "Baloo 2", cursive;
    font-weight: 700;
    font-size: 18px;
    color: var(--secondary-color);
    cursor: pointer;
    background: #fff;
}

.faq-q i {
    color: var(--primary-color);
    transition: transform .3s ease;
    flex: none;
}

.faq-item.open .faq-q i {
    transform: rotate(45deg);
}

.faq-a {
    display: none;
    padding: 0 24px 22px;
    color: var(--muted-color);
}

.faq-item.open .faq-a {
    display: block;
}

/* forms */
.form-field {
    width: 100%;
    background: #fff;
    border: 2px solid #ece6fb;
    border-radius: 14px;
    padding: 12px 18px;
    color: var(--text-color);
    font-family: "Nunito", sans-serif;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.form-field::placeholder {
    color: #a9a4c4;
}

.form-field:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 75, 125, .15);
}

.number-inp .iti {
    width: 100% !important;
    position: relative;
}

.number-inp .iti--separate-dial-code {
    width: 100% !important;
}

label.error-msg,
label.error {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 12px;
    position: absolute;
    bottom: 4px;
    left: 6px;
}

/* CTA band */
.cta-band {
    background: linear-gradient(120deg, #2d1b69 0%, #6c2bd9 55%, #ff4b7d 120%);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.cta-band::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    right: -110px;
    top: -110px;
    border-radius: 50%;
    background: rgba(255, 201, 60, .22);
}

/* inner page banner */
.page-banner {
    position: relative;
    background: linear-gradient(120deg, #6c2bd9 0%, #ff4b7d 100%);
    overflow: hidden;
}

.page-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .16) 0 2px, transparent 3px),
        radial-gradient(circle at 70% 65%, rgba(255, 255, 255, .14) 0 3px, transparent 4px);
    background-size: 260px 260px;
}

/* logos strip */
.logo-strip img {
    height: 42px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .65;
    transition: all .3s ease;
}

.logo-strip img:hover {
    filter: none;
    opacity: 1;
}

/* floating action buttons */
#button_top {
    background: var(--primary-color);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: fixed;
    transition: .4s ease-in-out;
    opacity: 0;
    visibility: hidden;
    z-index: 1016;
    bottom: 86px;
    right: 18px;
    cursor: pointer;
    text-align: center;
}

#button_top.show {
    visibility: visible;
    opacity: 1;
}

#button_top i {
    color: #fff;
    line-height: 47px;
}

.whatsapp-float {
    position: fixed;
    bottom: 18px;
    left: 18px;
    height: 52px;
    width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25d366;
    border-radius: 50%;
    z-index: 9999;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
    transition: transform .2s ease-in-out;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float>i {
    color: #fff;
    font-size: 26px;
}

.chat-float {
    position: fixed;
    bottom: 18px;
    right: 18px;
    z-index: 9999;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 12px 20px;
    font-family: "Baloo 2", cursive;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
    cursor: pointer;
    transition: transform .2s ease-in-out;
}

.chat-float:hover {
    transform: scale(1.05);
}

@media (max-width:575px) {
    .chat-float {
        padding: 0;
        width: 52px;
        height: 52px;
        border-radius: 50%;
        justify-content: center;
    }

    .chat-float-text {
        display: none;
    }

    .chat-float i {
        font-size: 22px;
    }
}

/* rich text for policy pages */
.rich-text h2 {
    font-size: 30px;
    margin: 34px 0 12px;
}

.rich-text h3 {
    font-size: 22px;
    margin: 26px 0 10px;
}

.rich-text p {
    margin-bottom: 14px;
    color: var(--muted-color);
}

.rich-text ul {
    list-style: disc;
    padding-left: 22px;
    margin-bottom: 16px;
    color: var(--muted-color);
}

.rich-text ul li {
    margin-bottom: 8px;
}

.rich-text a {
    color: var(--primary-color);
    font-weight: 700;
}

/* cookie banner */
#cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: var(--secondary-color);
    color: #fff;
    padding: 14px 18px;
    gap: 14px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 14px;
}

@media (max-width:767px) {
    .section-pad {
        padding: 56px 0;
    }

    .rich-text h2 {
        font-size: 24px;
    }
}
