/* ════════════════════════════════════════
   HERO — blue theme override
════════════════════════════════════════ */
.cb-hero__bg {
    background: linear-gradient(135deg, #0d1b2a 0%, #0d1b2a 60%, #003d6b 100%) !important;
}

.cb-hero .ab-hero__title span { color: #0093ff; }
.cb-hero .ab-hero__tag        { color: #0093ff; border-left-color: #0093ff; background: rgba(0,147,255,0.15); }
.cb-hero .ab-hero__line       { background: linear-gradient(90deg, #0093ff, transparent); }
.cb-hero .ab-hero__bullets li i { color: #0093ff; }
.cb-hero .ab-hero__stat span  { color: #0093ff; }
.cb-hero .ab-hero__form button { background: #0093ff; }
.cb-hero .ab-hero__form button:hover { background: #21365c; }
.cb-hero .ab-hero__form input:focus,
.cb-hero .ab-hero__form select:focus,
.cb-hero .ab-hero__form textarea:focus { border-color: #0093ff; }

/* ════════════════════════════════════════
   SECTION 1 — BOOK COVERS 3×2
════════════════════════════════════════ */
.cb-covers {
    padding: 90px 80px;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.cb-covers::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(255,107,157,0.06) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(84,160,255,0.06) 0%, transparent 50%);
    pointer-events: none;
}

.cb-covers__header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 56px;
}

.cb-covers__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.cb-cover-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.cb-cover-card:hover {
    transform: translateY(-8px) rotate(-1deg);
    box-shadow: 0 20px 50px rgba(255,107,157,0.25);
}

.cb-cover-card__img {
    position: relative;
}

.cb-cover-card__img img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    background: linear-gradient(135deg, #fff5f9, #f0f7ff);
    display: block;
}

.cb-cover-card__shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 60%);
    pointer-events: none;
}

/* ════════════════════════════════════════
   SECTION 2 — GENRES
════════════════════════════════════════ */
.cb-genres {
    padding: 90px 80px;
    background: linear-gradient(160deg, #fff8fe 0%, #f0f7ff 50%, #fffbf0 100%);
    position: relative;
    overflow: hidden;
}

.cb-genres::before {
    content: '🌈';
    position: absolute;
    font-size: 200px;
    opacity: 0.04;
    top: -40px;
    right: -40px;
    pointer-events: none;
}

.cb-genres__header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 56px;
}

.cb-genres__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cb-genre-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 4px solid var(--gc);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cb-genre-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gc);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px;
}

.cb-genre-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.cb-genre-card:hover::after {
    opacity: 0.06;
}

.cb-genre-card__icon {
    font-size: 40px;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.cb-genre-card h4 {
    font-family: 'TTFirsNeue', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #0d1b2a;
    margin: 0;
    position: relative;
    z-index: 1;
}

.cb-genre-card p {
    font-family: 'nexa', sans-serif;
    font-size: 13px;
    line-height: 1.7;
    color: #5a6a82;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* ════════════════════════════════════════
   SECTION 3 — THE MAGIC WE CREATE
════════════════════════════════════════ */
.cb-magic {
    display: flex;
    align-items: center;
    gap: 80px;
    padding: 100px 80px;
    background: linear-gradient(135deg, #1a0533 0%, #0d1b2a 60%, #001a3d 100%);
    position: relative;
    overflow: hidden;
}

.cb-magic::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,107,157,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(84,160,255,0.06) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* floating deco */
.cb-magic__deco {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.cb-magic__deco--star {
    font-size: 60px;
    color: rgba(254,202,87,0.15);
    top: 40px;
    right: 120px;
    animation: cbFloat 4s ease-in-out infinite;
}

.cb-magic__deco--star2 {
    font-size: 36px;
    color: rgba(255,107,157,0.2);
    bottom: 60px;
    left: 60px;
    animation: cbFloat 5s ease-in-out infinite reverse;
}

.cb-magic__deco--circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,107,157,0.08), transparent 70%);
    top: -80px;
    right: -80px;
}

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

/* image side */
.cb-magic__left {
    flex: 0 0 460px;
    position: relative;
    z-index: 1;
}

.cb-magic__img-wrap {
    position: relative;
}

.cb-magic__img-wrap img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 20px 60px rgba(255,107,157,0.3));
}

.cb-magic__img-bubble {
    position: absolute;
    font-size: 32px;
    background: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    animation: cbFloat 3s ease-in-out infinite;
}

.cb-magic__img-bubble--1 { top: 10%;  left: -20px; animation-delay: 0s; }
.cb-magic__img-bubble--2 { top: 45%;  right: -20px; animation-delay: 0.8s; }
.cb-magic__img-bubble--3 { bottom: 10%; left: 20px; animation-delay: 1.4s; }

/* text side */
.cb-magic__right {
    flex: 1;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cb-magic__title {
    font-family: 'TTFirsNeue', sans-serif;
    font-weight: 800;
    font-size: 38px;
    line-height: 1.2;
    color: #fff;
    margin: 0;
}

.cb-magic__title span {
    color: #ff6b9d;
}

.cb-magic__text {
    font-family: 'nexa', sans-serif;
    font-size: 15px;
    line-height: 1.85;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

.cb-magic__features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 8px;
}

.cb-magic__feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 18px 20px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.cb-magic__feature:hover {
    background: rgba(255,107,157,0.1);
    border-color: rgba(255,107,157,0.3);
}

.cb-magic__feature-emoji {
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
}

.cb-magic__feature h4 {
    font-family: 'TTFirsNeue', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    margin: 0 0 5px;
}

.cb-magic__feature p {
    font-family: 'nexa', sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin: 0;
}

/* ════════════════════════════════════════
   SECTION 4 — PROCESS VISUAL
════════════════════════════════════════ */
.cb-process-visual {
    padding: 90px 80px;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.cb-process-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 50%, rgba(254,202,87,0.07) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(84,160,255,0.07) 0%, transparent 50%);
    pointer-events: none;
}

.cb-process-visual__header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 64px;
    position: relative;
    z-index: 1;
}

.cb-process-visual__body {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.cb-process-visual__steps {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.cb-pstep {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    border-left: 4px solid var(--pc);
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cb-pstep::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--pc);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cb-pstep:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}

.cb-pstep:hover::before {
    opacity: 0.05;
}

.cb-pstep__num {
    font-family: 'TTFirsNeue', sans-serif;
    font-weight: 800;
    font-size: 36px;
    color: var(--pc);
    opacity: 0.2;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.cb-pstep__icon {
    font-size: 30px;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.cb-pstep h4 {
    font-family: 'TTFirsNeue', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #0d1b2a;
    margin: 0;
    position: relative;
    z-index: 1;
}

.cb-pstep p {
    font-family: 'nexa', sans-serif;
    font-size: 13px;
    line-height: 1.7;
    color: #5a6a82;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* image side */
.cb-process-visual__img {
    flex: 0 0 340px;
    position: relative;
}

.cb-process-visual__img img {
    width: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 16px 40px rgba(0,0,0,0.12));
}

.cb-process-visual__badge {
    position: absolute;
    bottom: -10px;
    left: -20px;
    background: linear-gradient(135deg, #ff6b9d, #feca57);
    color: #fff;
    padding: 16px 22px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(255,107,157,0.4);
}

.cb-process-visual__badge span {
    font-size: 24px;
}

.cb-process-visual__badge p {
    font-family: 'TTFirsNeue', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    margin: 0;
}

/* confetti floaters */
.cb-process-visual__confetti {
    position: absolute;
    top: 0;
    right: -10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cb-process-visual__confetti span {
    font-size: 18px;
    color: var(--c);
    animation: cbFloat 3s ease-in-out infinite;
    animation-delay: var(--d);
    display: block;
}

/* ════════════════════════════════════════
   SECTION 5 — WHY PARENTS LOVE US
════════════════════════════════════════ */
.cb-love {
    padding: 90px 80px;
    background: linear-gradient(160deg, #fff8fe 0%, #f0f7ff 50%, #fffbf0 100%);
    position: relative;
    overflow: hidden;
}

.cb-love::before {
    content: '🦄';
    position: absolute;
    font-size: 220px;
    opacity: 0.04;
    bottom: -40px;
    left: -40px;
    pointer-events: none;
}

.cb-love__header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 56px;
}

.cb-love__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cb-love__card {
    background: #fff;
    border-radius: 20px;
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    border-bottom: 4px solid var(--lc);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cb-love__card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--lc), transparent);
}

.cb-love__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.cb-love__card-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cb-love__emoji {
    font-size: 36px;
    line-height: 1;
}

.cb-love__card h4 {
    font-family: 'TTFirsNeue', sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: #0d1b2a;
    margin: 0;
}

.cb-love__card p {
    font-family: 'nexa', sans-serif;
    font-size: 14px;
    line-height: 1.75;
    color: #5a6a82;
    margin: 0;
}

/* ════════════════════════════════════════
   SECTION 1 — GENRES SPLIT
════════════════════════════════════════ */
.cb-genres-split {
    padding: 90px 80px;
    background: #f4f8ff;
    background-image:
        linear-gradient(rgba(0,147,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,147,255,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

.cb-genres-split__header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 60px;
}

.cb-genres-split__body {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: start;
    position: relative;
}

.cb-genres-split__body::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -80px;
    width: calc(50% + 80px);
    background-image: url('../images/tl.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
}

/* LEFT — genre cards grid */
.cb-genres-split__left {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    position: relative;
    z-index: 1;
    padding: 20px 20px 20px 0;
}

.cb-genre-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 16px;
    background: #fff;
    border-left: 4px solid var(--gi);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    position: relative;
    overflow: hidden;
}

.cb-genre-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gi);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.cb-genre-item:hover,
.cb-genre-item--active {
    transform: translateX(5px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.09);
}

.cb-genre-item--active::before,
.cb-genre-item:hover::before {
    opacity: 0.06;
}

.cb-genre-item__icon {
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.cb-genre-item__text {
    flex: 1;
    position: relative;
    z-index: 1;
}

.cb-genre-item__text h4 {
    font-family: 'TTFirsNeue', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #0d1b2a;
    margin: 0 0 4px;
}

.cb-genre-item__text p {
    font-family: 'nexa', sans-serif;
    font-size: 12px;
    color: #8a9ab0;
    margin: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* RIGHT — image display */
.cb-genres-split__right {
    position: sticky;
    top: 100px;
    z-index: 1;
}

.cb-genre-img-wrap {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    background: #eef3fb;
}

.cb-genre-img-wrap .swiper {
    width: 100%;
    height: 480px;
    border-radius: 16px;
    overflow: hidden;
}

.cb-genre-img-wrap .swiper-slide {
    transform: none !important;
    opacity: 1 !important;
    z-index: auto !important;
    box-shadow: none !important;
}

.cb-genre-img-wrap .swiper-slide img {
    width: 100%;
    height: 480px;
    object-fit: contain;
    display: block;
    background: #eef3fb;
}

/* ════════════════════════════════════════
   SECTION 2 — BOOKS SHOWCASE
════════════════════════════════════════ */
.cb-showcase {
    display: flex;
    align-items: center;
    gap: 0;
    background: #f4f8ff;
    overflow: hidden;
}

.cb-showcase__left {
    flex: 0 0 45%;
    align-self: stretch;
}

.cb-showcase__left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.cb-showcase__right {
    flex: 1;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.cb-showcase__header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cb-showcase__header .section-title span { color: #0093ff; }
.cb-showcase__header .section-tag {
    color: #0093ff;
    border-left-color: #0093ff;
    background: rgba(0,147,255,0.1);
}
.cb-showcase__header .section-line {
    background: linear-gradient(90deg, #0093ff, transparent);
}

/* 2×2 manual grid */
.cb-books-grid-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cb-books-page {
    display: none;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
    height: 400px;
}

.cb-books-page--active {
    display: grid;
}

.cb-book-card {
    background: #eef3fb;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cb-book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0,147,255,0.2);
}

.cb-book-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* dots */
.cb-books-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cb-books-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c5d0e0;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, width 0.3s, border-radius 0.3s;
}

.cb-books-dot--active {
    background: #0093ff;
    width: 28px;
    border-radius: 4px;
}

@media (max-width: 1024px) {
    .cb-showcase { flex-direction: column; }
    .cb-showcase__left { flex: none; width: 100%; height: 360px; }
    .cb-showcase__right { padding: 50px 40px; }
    .cb-books-page { height: 340px; }
}

@media (max-width: 768px) {
    .cb-showcase__right { padding: 40px 20px; }
    .cb-books-page { height: 280px; }
}

/* ════════════════════════════════════════
   CONTACT OVERRIDE
════════════════════════════════════════ */
.cb-contact .ab-contact__form button {
    background: #21365c;
}

.cb-contact .ab-contact__form button:hover {
    background: #0093ff;
}

.cb-contact .ab-contact__form input:focus,
.cb-contact .ab-contact__form textarea:focus {
    border-color: #0093ff;
}

.cb-contact .ab-contact__info-item i {
    color: #0093ff;
}

/* section-tag & title span override for contact */
.cb-contact .section-tag {
    color: #0093ff;
    border-left-color: #0093ff;
    background: rgba(0,147,255,0.1);
}

.cb-contact .section-title span {
    color: #0093ff;
}

.cb-contact .section-line {
    background: linear-gradient(90deg, #0093ff, transparent);
}

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 1200px) {
    .cb-genres__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
    .cb-covers, .cb-genres, .cb-magic,
    .cb-process-visual, .cb-love, .cb-genres-split {
        padding-left: 40px;
        padding-right: 40px;
    }

    .cb-genres-split__body {
        grid-template-columns: 1fr;
    }

    .cb-genres-split__right {
        position: static;
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }

    .cb-magic { flex-direction: column; gap: 50px; }
    .cb-magic__left { flex: none; width: 100%; max-width: 460px; margin: 0 auto; }

    .cb-process-visual__body { flex-direction: column; }
    .cb-process-visual__img { flex: none; width: 100%; max-width: 360px; margin: 0 auto; }

    .cb-love__grid { grid-template-columns: repeat(2, 1fr); }
    .cb-genres__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .cb-covers, .cb-genres, .cb-magic,
    .cb-process-visual, .cb-love, .cb-genres-split {
        padding-left: 20px;
        padding-right: 20px;
    }

    .cb-genres-split__left {
        grid-template-columns: 1fr;
    }

    .cb-covers__grid { grid-template-columns: repeat(2, 1fr); }
    .cb-cover-card__img img { height: 220px; }

    .cb-magic__title { font-size: 28px; }

    .cb-process-visual__steps { grid-template-columns: 1fr; }

    .cb-love__grid { grid-template-columns: 1fr; }
    .cb-genres__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .cb-covers__grid { grid-template-columns: 1fr; }
    .cb-genres__grid { grid-template-columns: 1fr; }
}
