.why-carousel-wrapper,
.books-carousel-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 2;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    box-sizing: border-box;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
}

.why-carousel-wrapper::-webkit-scrollbar,
.books-carousel-wrapper::-webkit-scrollbar {
    display: none;
}

.why-carousel-wrapper,
.books-carousel-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.why-carousel-track,
.books-carousel-track {
    display: flex;
    flex-wrap: nowrap;
    will-change: transform;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.why-card,
.books-carousel-track .book-card {
    flex: 0 0 auto;
    box-sizing: border-box;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
}


.why-choose {
    background: var(--gradient-1);
    position: relative;
    overflow: hidden;
    padding: var(--section-padding) 0;
}

.why-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.why-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 107, 53, 0.2);
    border-radius: 50%;
    animation: whyFloat 12s ease-in-out infinite;
}

.why-particle:nth-child(1) {
    left: 8%;
    top: 15%;
    animation-delay: 0s;
}

.why-particle:nth-child(2) {
    left: 20%;
    top: 70%;
    animation-delay: 2s;
    background: rgba(183, 142, 255, 0.2);
}

.why-particle:nth-child(3) {
    left: 45%;
    top: 25%;
    animation-delay: 4s;
    background: rgba(78, 205, 196, 0.2);
}

.why-particle:nth-child(4) {
    left: 70%;
    top: 80%;
    animation-delay: 6s;
    background: rgba(76, 175, 80, 0.2);
}

.why-particle:nth-child(5) {
    left: 88%;
    top: 40%;
    animation-delay: 8s;
    background: rgba(255, 107, 142, 0.2);
}

.why-particle:nth-child(6) {
    left: 55%;
    top: 60%;
    animation-delay: 10s;
}

@keyframes whyFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.2;
    }

    50% {
        transform: translateY(-25px) scale(1.3);
        opacity: 0.6;
    }
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    pointer-events: none;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.2), transparent 70%);
    top: -200px;
    right: -100px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(183, 142, 255, 0.15), transparent 70%);
    bottom: -150px;
    left: -100px;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.15), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.float-particle {
    position: absolute;
    font-size: 20px;
    color: var(--color-primary);
    opacity: 0.3;
    pointer-events: none;
}

.fp-1 {
    top: 15%;
    left: 8%;
}

.fp-2 {
    top: 25%;
    right: 12%;
    font-size: 14px;
}

.fp-3 {
    bottom: 20%;
    left: 15%;
    font-size: 16px;
}

.fp-4 {
    bottom: 30%;
    right: 8%;
    font-size: 18px;
}

.fp-5 {
    top: 60%;
    left: 5%;
    font-size: 12px;
}

.why-choose .section-header {
    position: relative;
    z-index: 2;
    margin-bottom: 50px;
    text-align: center;
}

.why-choose .section-badge {
    background: var(--color-secondary);
    color: var(--color-primary-dark);
    border: 1px solid var(--color-border);
}

.why-choose .section-title {
    font-size: 52px;
    background: var(--gradient-4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.why-choose .section-desc {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.why-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 100px 0 40px;
    position: relative;
    z-index: 2;
}

.why-carousel-track {
    display: flex;
    gap: 24px;
    transform: translateX(0);
    will-change: transform;
}

.why-card {
    flex: 0 0 auto;
    position: relative;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 48px 28px 40px;
    text-align: center;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    box-sizing: border-box;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, hsl(var(--accent-hue, 25), 80%, 60%), hsl(calc(var(--accent-hue, 25) + 40), 75%, 55%));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.why-card:hover {
    transform: translateY(-16px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 107, 53, 0.1);
}

.why-card:hover::before {
    transform: scaleX(1);
}

.why-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
    pointer-events: none;
}

.why-card:hover::after {
    left: 150%;
}

.why-icon-wrap {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-icon-glow {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, hsla(var(--accent-hue, 25), 80%, 60%, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.6;
    }
}

.why-card:hover .why-icon-glow {
    opacity: 1;
}

.why-icon {
    position: relative;
    z-index: 2;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, hsl(var(--accent-hue, 25), 80%, 58%) 0%, hsl(calc(var(--accent-hue, 25) + 30), 75%, 52%) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 8px 24px hsla(var(--accent-hue, 25), 70%, 50%, 0.3), inset 0 -2px 4px rgba(0, 0, 0, 0.1), inset 0 2px 4px rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.why-card:hover .why-icon {
    transform: scale(1.15) rotate(-8deg);
    box-shadow: 0 12px 32px hsla(var(--accent-hue, 25), 70%, 50%, 0.4), inset 0 -2px 4px rgba(0, 0, 0, 0.1), inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.why-sparkle {
    position: absolute;
    font-size: 14px;
    color: hsl(var(--accent-hue, 25), 70%, 55%);
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
}

.sparkle-1 {
    top: 20px;
    right: 20px;
    transform: translateY(10px);
}

.sparkle-2 {
    bottom: 30px;
    left: 20px;
    font-size: 10px;
    transform: translateY(-10px);
}

.why-card:hover .why-sparkle {
    opacity: 0.6;
    transform: translateY(0);
}

.why-title {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--color-dark);
    margin-bottom: 14px;
    line-height: 1.3;
    position: relative;
    display: inline-block;
}

.why-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, hsl(var(--accent-hue, 25), 80%, 60%), hsl(calc(var(--accent-hue, 25) + 30), 75%, 55%));
    border-radius: 2px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.why-card:hover .why-title::after {
    transform: translateX(-50%) scaleX(1);
}

.why-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-light);
}

@media (max-width: 1200px) {
    .why-choose .section-title {
        font-size: 46px;
    }
}

@media (max-width: 992px) {
    .why-choose {
        padding: 80px 0;
    }

    .why-choose .section-title {
        font-size: 40px;
    }

    .why-choose .section-desc {
        padding: 0 20px;
    }

    .why-carousel-wrapper {
        padding-top: 60px;
        padding-bottom: 30px;
    }

    .why-carousel-track {
        gap: 20px;
    }

    .why-card {
        padding: 40px 22px 34px;
    }

    .why-icon-wrap {
        width: 80px;
        height: 80px;
        margin-bottom: 24px;
    }

    .why-icon {
        width: 62px;
        height: 62px;
        font-size: 28px;
    }

    .why-title {
        font-size: 20px;
    }

    .why-desc {
        font-size: 14px;
    }

    .blob-1 {
        width: 350px;
        height: 350px;
        top: -100px;
        right: -80px;
    }

    .blob-2 {
        width: 300px;
        height: 300px;
        bottom: -100px;
        left: -80px;
    }

    .blob-3 {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .why-choose {
        padding: 60px 0;
    }

    .why-choose .section-header {
        margin-bottom: 30px;
    }

    .why-choose .section-title {
        font-size: 32px;
    }

    .why-choose .section-desc {
        padding: 0 15px;
        font-size: 15px;
    }

    .why-carousel-wrapper {
        padding-top: 40px;
        padding-bottom: 20px;
    }

    .why-carousel-track {
        gap: 16px;
    }

    .why-card {
        padding: 28px 14px 24px;
    }

    .why-icon-wrap {
        width: 60px;
        height: 60px;
        margin-bottom: 16px;
    }

    .why-icon {
        width: 46px;
        height: 46px;
        font-size: 22px;
    }

    .why-title {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .why-desc {
        font-size: 12px;
        line-height: 1.5;
    }

    .why-sparkle {
        display: none;
    }
}

@media (max-width: 576px) {
    .why-choose {
        padding: 50px 0;
    }

    .why-choose .section-header {
        margin-bottom: 24px;
    }

    .why-choose .section-title {
        font-size: 26px;
    }

    .why-choose .section-desc {
        font-size: 14px;
        padding: 0 10px;
    }

    .why-carousel-wrapper {
        padding-top: 30px;
        padding-bottom: 20px;
    }

    .why-carousel-track {
        gap: 12px;
    }

    .why-card {
        padding: 24px 12px 20px;
        border-radius: 14px;
    }

    .why-icon-wrap {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
    }

    .why-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .why-title {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .why-desc {
        font-size: 11px;
        line-height: 1.45;
    }

    .why-particle {
        display: none;
    }
}

@media (max-width: 400px) {
    .why-choose .section-title {
        font-size: 22px;
    }

    .why-carousel-wrapper {
        padding-top: 24px;
        padding-bottom: 16px;
    }

    .why-carousel-track {
        gap: 10px;
    }

    .why-card {
        padding: 20px 10px 16px;
        border-radius: 12px;
    }

    .why-icon-wrap {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
    }

    .why-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .why-title {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .why-desc {
        font-size: 10px;
        line-height: 1.4;
    }
}

/* ============================================
    SERVICES SECTION - CLEAN SIMPLE CARDS
    ============================================ */

.services-section {
    background-image: url('../children_book_nest_images/Main_Our_Services_Section.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    padding: var(--section-padding) 0;
}

/* Static background blobs (no animation) */
.svc-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    pointer-events: none;
}

.svc-blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.3), transparent 70%);
    top: -250px;
    left: -200px;
}

.svc-blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.25), transparent 70%);
    bottom: -200px;
    right: -150px;
}

.svc-blob-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(183, 142, 255, 0.2), transparent 70%);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Static floating emojis (no animation) */
.svc-float-emoji {
    position: absolute;
    font-size: 2rem;
    opacity: 0.12;
    pointer-events: none;
}

.svc-float-emoji:nth-of-type(4) {
    top: 10%;
    left: 5%;
}

.svc-float-emoji:nth-of-type(5) {
    top: 20%;
    right: 8%;
    font-size: 1.5rem;
}

.svc-float-emoji:nth-of-type(6) {
    bottom: 25%;
    left: 10%;
    font-size: 1.8rem;
}

.svc-float-emoji:nth-of-type(7) {
    bottom: 15%;
    right: 12%;
    font-size: 2.2rem;
}

.svc-float-emoji:nth-of-type(8) {
    top: 60%;
    left: 3%;
    font-size: 1.3rem;
}

.services-section .section-header {
    position: relative;
    z-index: 2;
}

.services-section .section-badge {
    background: var(--color-primary-dark);
    color: var(--color-secondary);
    border: 1px solid var(--color-border);
}

.services-section .section-title {
    font-size: 52px;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
    z-index: 2;
}

/* Simple clean card */
.svc-card {
    position: relative;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 36px 28px 32px;
    text-align: left;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    overflow: hidden;
}

.svc-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 107, 53, 0.2);

}

.svc-card.animate {
    animation: rotate-in-center 0.6s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

@keyframes rotate-in-center {
    0% {
        transform: rotate(-360deg);
    }

    100% {
        transform: rotate(0);
    }
}

/* Simple icon wrapper */
.svc-icon-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Clean icon */
.svc-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg,
            hsl(var(--hue, 25), 75%, 55%) 0%,
            hsl(calc(var(--hue, 25) + 30), 70%, 48%) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 6px 20px hsla(var(--hue, 25), 60%, 45%, 0.3);
    transition: transform var(--transition-base);
}

.svc-card:hover .svc-icon {
    transform: scale(1.1);
}

/* Card content */
.svc-content {
    position: relative;
}

.svc-title {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--color-dark);
    margin-bottom: 12px;
    line-height: 1.3;
    position: relative;
    display: inline-block;
}

.svc-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg,
            hsl(var(--hue, 25), 70%, 55%),
            hsl(calc(var(--hue, 25) + 40), 65%, 50%));
    border-radius: 2px;
    transition: width 0.4s ease;
}

.svc-card:hover .svc-title::after {
    width: 100%;
}

.svc-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-light);
    margin-bottom: 18px;
}

/* Tags */
.svc-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.svc-tag {
    font-size: 12px;
    font-weight: 600;
    color: hsl(var(--hue, 25), 60%, 40%);
    background: hsla(var(--hue, 25), 60%, 55%, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid hsla(var(--hue, 25), 60%, 55%, 0.15);
    transition: all var(--transition-fast);
}

.svc-card:hover .svc-tag {
    background: hsla(var(--hue, 25), 60%, 55%, 0.15);
    transform: translateY(-2px);
}

/* ============================================
    SERVICES - RESPONSIVE
    ============================================ */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .services-section .section-title {
        font-size: 44px;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
        gap: 24px;
    }

    .services-section .section-title {
        font-size: 34px;
    }

    .svc-blob,
    .svc-float-emoji {
        display: none;
    }
}

/* ============================================
   BOOKS SECTION
   ============================================ */
.books {
    background: url('../children_book_nest_images/Main_Book_Promise_Section.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    padding: var(--section-padding) 0;
}

.books .section-header {
    position: relative;
    z-index: 2;
    margin-bottom: 50px;
    text-align: center;
}

.books .section-badge {
    background: var(--color-secondary);
    color: var(--color-primary-dark);
    border: 1px solid var(--color-border);
}

.books .section-title {
    font-size: 52px;
    background: var(--gradient-4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.books-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 100px 0 50px;
    z-index: 2;
}

.books-carousel-track {
    display: flex;
    gap: 30px;
    transform: translateX(0);
    will-change: transform;
}

.books-carousel-track .book-card {
    flex: 0 0 auto;
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-lg);
    padding: var(--space-2);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 245, 225, 0.9);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    box-sizing: border-box;
}

.book-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
}

.book-cover {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #f3ede5;
    margin-bottom: var(--space-2);
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.book-card:hover .book-cover img {
    transform: scale(1.03);
}

.book-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--space-1);
}

.book-tag {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #a77c4b;
}

.book-age {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    background: #f9efdf;
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.books .section-cta {
    text-align: center;
    margin-top: 50px;
}

@media (max-width: 1200px) {
    .books .section-title {
        font-size: 46px;
    }
}

@media (max-width: 992px) {
    .books {
        padding: 80px 0;
    }

    .books .section-title {
        font-size: 40px;
    }

    .books-carousel-wrapper {
        padding-top: 60px;
        padding-bottom: 40px;
    }

    .books-carousel-track {
        gap: 20px;
    }

    .books-carousel-track .book-card {
        padding: 14px;
    }

    .book-tag,
    .book-age {
        font-size: 12px;
    }

    .book-age {
        padding: 3px 10px;
    }
}

@media (max-width: 768px) {
    .books {
        padding: 60px 0;
    }

    .books .section-header {
        margin-bottom: 30px;
    }

    .books .section-badge {
        font-size: 12px;
        padding: 6px 14px;
    }

    .books .section-title {
        font-size: 32px;
    }

    .books-carousel-wrapper {
        padding-top: 40px;
        padding-bottom: 30px;
    }

    .books-carousel-track {
        gap: 16px;
    }

    .books-carousel-track .book-card {
        padding: 10px;
    }

    .book-cover {
        margin-bottom: 10px;
    }

    .book-meta {
        padding: 0 4px;
    }

    .book-tag,
    .book-age {
        font-size: 10px;
    }

    .book-age {
        padding: 2px 8px;
    }

    .books .section-cta {
        margin-top: 40px;
    }
}

@media (max-width: 576px) {
    .books {
        padding: 50px 0;
    }

    .books .section-title {
        font-size: 26px;
    }

    .books-carousel-wrapper {
        padding-top: 30px;
        padding-bottom: 20px;
    }

    .books-carousel-track {
        gap: 12px;
    }

    .books-carousel-track .book-card {
        padding: 8px;
        border-radius: 12px;
    }

    .book-cover {
        margin-bottom: 8px;
        border-radius: 8px;
    }

    .book-meta {
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 0 2px;
    }

    .book-tag {
        font-size: 9px;
        letter-spacing: 0.5px;
    }

    .book-age {
        font-size: 9px;
        padding: 2px 6px;
    }

    .books .section-cta {
        margin-top: 30px;
    }

    .books .section-cta .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 400px) {
    .books .section-title {
        font-size: 22px;
    }

    .books-carousel-wrapper {
        padding-top: 24px;
        padding-bottom: 16px;
    }

    .books-carousel-track {
        gap: 10px;
    }

    .books-carousel-track .book-card {
        padding: 6px;
        border-radius: 10px;
    }

    .book-cover {
        margin-bottom: 6px;
    }

    .book-tag,
    .book-age {
        font-size: 8px;
    }

    .book-age {
        padding: 2px 5px;
    }
}

/* ============================================
    HOW IT WORKS SECTION — MODERN TIMELINE
    ============================================ */

.how-it-works {
    background: url('../children_book_nest_images/Main_Our_Process_Section.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    padding: var(--section-padding) 0;
}

/* Floating particles */
.hiw-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hiw-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 107, 53, 0.12);
    border-radius: 50%;
    animation: hiwFloat 12s ease-in-out infinite;
}

.hiw-particle:nth-child(1) {
    left: 8%;
    top: 15%;
    animation-delay: 0s;
}

.hiw-particle:nth-child(2) {
    left: 85%;
    top: 25%;
    animation-delay: 3s;
    background: rgba(183, 142, 255, 0.12);
}

.hiw-particle:nth-child(3) {
    left: 15%;
    top: 70%;
    animation-delay: 6s;
    background: rgba(78, 205, 196, 0.12);
}

.hiw-particle:nth-child(4) {
    left: 75%;
    top: 80%;
    animation-delay: 9s;
    background: rgba(76, 175, 80, 0.12);
}

@keyframes hiwFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.2;
    }

    50% {
        transform: translateY(-25px) scale(1.3);
        opacity: 0.5;
    }
}

/* Section header */
.how-it-works .section-header {
    position: relative;
    z-index: 2;
    margin-bottom: 80px;
}

.how-it-works .section-badge {
    background: var(--color-primary-dark);
    color: var(--color-secondary);
    border: 1px solid var(--color-border);
}

.how-it-works .section-title {
    font-size: 52px;
    background: var(--color-border);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Timeline container */
.hiw-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Central connecting line */
.hiw-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg,
            var(--color-primary) 0%,
            var(--color-secondary) 50%,
            #B78EFF 100%);
    border-radius: 2px;
    opacity: 0.3;
}

/* Timeline step */
.hiw-step {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 80px;
    z-index: 2;
}

.hiw-step:last-child {
    margin-bottom: 0;
}

/* Alternate left/right */
.hiw-step:nth-child(odd) {
    flex-direction: row;
}

.hiw-step:nth-child(even) {
    flex-direction: row-reverse;
}

.hiw-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
            hsl(var(--step-hue, 25), 80%, 60%),
            hsl(calc(var(--step-hue, 25) + 40), 75%, 55%));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.hiw-content {
    width: 42%;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}


.hiw-content:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 107, 53, 0.1);
    animation: jello-horizontal 0.7s both;
}

.hiw-content:hover .hiw-bar {
    transform: scaleX(1);
}

@keyframes jello-horizontal {
    0% {
        transform: scale3d(1, 1, 1);
    }

    30% {
        transform: scale3d(1.25, 0.75, 1);
    }

    40% {
        transform: scale3d(0.75, 1.25, 1);
    }

    50% {
        transform: scale3d(1.15, 0.85, 1);
    }

    65% {
        transform: scale3d(0.95, 1.05, 1);
    }

    75% {
        transform: scale3d(1.05, 0.95, 1);
    }

    100% {
        transform: scale3d(1, 1, 1);
    }
}

.hiw-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg,
            hsl(var(--step-hue, 25), 80%, 58%) 0%,
            hsl(calc(var(--step-hue, 25) + 30), 75%, 52%) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 15px hsla(var(--step-hue, 25), 70%, 50%, 0.3);
    margin-bottom: 20px;
    flex-shrink: 0;
}

/* Step icon */
.hiw-icon {
    font-size: 44px;
    margin-bottom: 16px;
    display: block;
    transition: transform 0.4s ease;
}

/* Step title */
.hiw-title {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--color-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

/* Step description */
.hiw-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

/* Step tags */
.hiw-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hiw-tag {
    font-size: 12px;
    font-weight: 600;
    color: hsl(var(--step-hue, 25), 60%, 40%);
    background: hsla(var(--step-hue, 25), 60%, 55%, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid hsla(var(--step-hue, 25), 60%, 55%, 0.15);
}

/* Center node on timeline */
.hiw-node {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-white);
    border: 4px solid hsl(var(--step-hue, 25), 80%, 60%);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.9), 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 3;
}

/* Connector arrow using a separate element */
.hiw-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.hiw-step:nth-child(odd) .hiw-arrow {
    right: -10px;
    border-left: 10px solid var(--color-white);
    filter: drop-shadow(2px 0 2px rgba(0, 0, 0, 0.05));
}

.hiw-step:nth-child(even) .hiw-arrow {
    left: -10px;
    border-right: 10px solid var(--color-white);
    filter: drop-shadow(-2px 0 2px rgba(0, 0, 0, 0.05));
}

/* CTA section */
.hiw-cta {
    text-align: center;
    margin-top: 60px;
    position: relative;
    z-index: 2;
}

.hiw-cta-text {
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: 24px;
}

/* ============================================
    HOW IT WORKS - RESPONSIVE
    ============================================ */

@media (max-width: 992px) {
    .hiw-timeline::before {
        left: 20px;
        transform: none;
    }

    .hiw-step {
        flex-direction: row !important;
        padding-left: 60px;
        margin-bottom: 50px;
    }

    .hiw-content {
        width: 100%;
    }

    .hiw-node {
        left: 20px;
        transform: translate(-50%, -50%);
    }

    .hiw-arrow {
        display: none;
    }

    .how-it-works .section-title {
        font-size: 38px;
    }

    .how-it-works .section-header {
        margin-bottom: 60px;
    }
}

@media (max-width: 768px) {
    .how-it-works .section-title {
        font-size: 32px;
    }

    .hiw-content {
        padding: 28px 22px;
    }

    .hiw-title {
        font-size: 22px;
    }

    .hiw-icon {
        font-size: 40px;
    }

    .hiw-number {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .hiw-tags {
        gap: 6px;
    }

    .hiw-tag {
        font-size: 11px;
        padding: 5px 10px;
    }

    .hiw-step {
        padding-left: 50px;
    }

    .hiw-timeline::before {
        left: 16px;
    }

    .hiw-node {
        left: 16px;
        width: 20px;
        height: 20px;
        border-width: 3px;
    }
}

@media (max-width: 480px) {
    .hiw-content {
        padding: 24px 18px;
    }

    .hiw-title {
        font-size: 20px;
    }

    .hiw-desc {
        font-size: 14px;
    }

    .hiw-icon {
        font-size: 36px;
    }

    .hiw-step {
        padding-left: 44px;
        margin-bottom: 40px;
    }
}

/* ============================================
    FOR AUTHORS
    ============================================ */
.authors {
    background: url('../children_book_nest_images/Main_CTA_Section.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.authors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

.authors .section-badge {
    background: var(--color-secondary);
    color: var(--color-primary-dark);
    border: 1px solid var(--color-border);
}

.authors .section-title {
    font-size: 52px;
    background: var(--gradient-4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.author-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-5) var(--space-4);
    text-align: center;
    border: 1px solid var(--color-border);
    position: relative;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.author-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: #d4e2c6;
}

.card-number {
    position: absolute;
    bottom: var(--space-3);
    left: var(--space-4);
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    color: #e9e0d2;
    pointer-events: none;
    transition: color var(--transition-base);
}

.author-card:hover .card-number {
    color: #d4e2c6;
}

.card-icon {
    width: 80px;
    height: 80px;
    background: #f0f6ea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-3);
    font-size: 36px;
    transition: background var(--transition-base);
}

.author-card:hover .card-icon {
    background: #e2efd4;
}

.card-title {
    font-size: 24px;
    margin-bottom: var(--space-2);
    color: var(--color-dark);
}

.card-desc {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: var(--space-4);
    padding: 0 var(--space-2);
}

.cta-text {
    font-size: 20px;
    color: var(--color-text);
    margin-bottom: var(--space-3);
}

/* ============================================
    EMOTIONAL SECTION
    ============================================ */

.emotional {
    background: url('../children_book_nest_images/Main_Our_Promise_Section.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    padding: var(--section-padding) 0;
}

/* ===== Background Elements ===== */

.emotional-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.35;
}

.emotional-glow-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.25), transparent 70%);
    top: -120px;
    right: -80px;
    animation: glowPulse 10s ease-in-out infinite;
}

.emotional-glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(183, 142, 255, 0.2), transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: glowPulse 10s ease-in-out infinite 5s;
}

.emotional-glow-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.15), transparent 70%);
    top: 40%;
    left: 60%;
    animation: glowPulse 12s ease-in-out infinite 3s;
}

@keyframes glowPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.35;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.55;
    }
}

/* Floating elements */
.emotional-float {
    position: absolute;
    pointer-events: none;
    animation: floatDrift 20s ease-in-out infinite;
}

.emotional-float-1 {
    top: 10%;
    left: 5%;
    font-size: 40px;
    opacity: 0.15;
    animation-delay: 0s;
}

.emotional-float-2 {
    top: 20%;
    right: 8%;
    font-size: 30px;
    opacity: 0.12;
    animation-delay: 5s;
}

.emotional-float-3 {
    top: 60%;
    left: 3%;
    font-size: 35px;
    opacity: 0.1;
    animation-delay: 10s;
}

.emotional-float-4 {
    bottom: 15%;
    right: 5%;
    font-size: 45px;
    opacity: 0.13;
    animation-delay: 15s;
}

.emotional-float-5 {
    top: 45%;
    right: 15%;
    font-size: 25px;
    opacity: 0.1;
    animation-delay: 8s;
}

@keyframes floatDrift {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(5deg);
    }

    50% {
        transform: translateY(-10px) rotate(-3deg);
    }

    75% {
        transform: translateY(-25px) rotate(8deg);
    }
}

/* ===== Main Layout ===== */

.emotional-grid {
    display: grid;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* ===== Side Images ===== */

.emotional-side {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.emotional-img-card {
    position: relative;

    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.emotional-img-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.emotional-img-card img {
    margin: 10px;
    border-radius: var(--radius-xl);
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;

}

.emotional-img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    color: white;
}

.emotional-img-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.emotional-img-title {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-top: 4px;
}

/* Decorative frame */
.emotional-frame {
    height: 470px;
    border: 2px dashed rgba(255, 107, 53, 0.2);
    border-radius: var(--radius-xl);
    pointer-events: none;
    padding: 10px;
    padding-right: 20px;
}

.emotional-frame-left {
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
}

.emotional-frame-right {
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
}

/* ===== Center Content ===== */

.emotional-center {
    text-align: center;
    position: relative;
}

/* Quote mark */
.emotional-quote {
    font-family: Georgia, serif;
    font-size: 140px;
    line-height: 1;
    color: var(--color-primary);
    opacity: 0.1;
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

/* Badge */
.emotional-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    background: var(--color-primary-dark);
    color: var(--color-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 28px;
}

/* Headline */
.emotional-headline {
    font-family: var(--font-heading);
    font-size: 42px;
    background: var(--color-bg-warm);
    -webkit-background-clip: text;
    line-height: 1.25;
    color: transparent;
    background-clip: text;
    margin-bottom: 24px;
}

.emotional-headline .sparkle-icon {
    display: inline-block;
    animation: sparkleWiggle 2.5s ease-in-out infinite;
}

@keyframes sparkleWiggle {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    25% {
        transform: rotate(12deg) scale(1.15);
    }

    75% {
        transform: rotate(-12deg) scale(1.15);
    }
}

/* Divider */
.emotional-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 28px;
}

.emotional-divider-line {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.emotional-divider-dot {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    opacity: 0.5;
}

/* Body text */
.emotional-body {
    font-size: 20px;
    line-height: 1.9;
    color: var(--color-bg-warm);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 25px;
    padding: 27px;
    margin-bottom: 32px;
}

.emotional-body strong {
    color: var(--color-primary-dark);
    font-weight: 600;
}

/* Stats row */
.emotional-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 36px;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 107, 53, 0.1);
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
}

.emotional-stat {
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 10px;
}

.emotional-stat-number {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}

.emotional-stat-label {
    font-size: 13px;
    color: var(--color-white);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Testimonial quote */
.emotional-testimonial {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
    text-align: left;
    position: relative;
}

.emotional-testimonial::before {
    content: '"';
    font-family: Georgia, serif;
    font-size: 60px;
    color: var(--color-primary);
    opacity: 0.15;
    position: absolute;
    top: -10px;
    left: 16px;
    line-height: 1;
}

.emotional-testimonial-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text);
    font-style: italic;
    padding-left: 20px;
}

.emotional-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-left: 20px;
}

.emotional-testimonial-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: url('../children_book_nest_images/Sarah\ Mitchell.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.emotional-testimonial-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-dark);
}

.emotional-testimonial-role {
    font-size: 12px;
    color: var(--color-text-light);
}

/* CTA buttons */
.emotional-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.emotional-actions .btn-secondary {
    background: transparent;
    border: 2px solid var(--color-border);
    color: var(--color-dark);
}

.emotional-actions .btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ===== Trust badges ===== */

.emotional-trust {
    margin-top: 60px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.emotional-trust-label {
    font-size: 13px;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    background: rgb(255, 255, 255, 0.7);
    padding: 10px;
    border-radius: 10px;
}

.emotional-trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.emotional-trust-logos span {
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 10px;
    font-size: 28px;
    transition: all 0.3s ease;
}

.emotional-trust-logos span:hover {
    filter: grayscale(0%);
    transform: scale(1.2);
}

/* ============================================
    EMOTIONAL SECTION - RESPONSIVE
    ============================================ */

@media (max-width: 1200px) {
    .emotional-grid {
        grid-template-columns: 1fr 1.5fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .emotional-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .emotional-side {
        display: none;
    }

    .emotional-headline {
        font-size: 36px;
    }

    .emotional-stats {
        gap: 30px;
    }

    .emotional-stat-number {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .emotional-headline {
        font-size: 30px;
    }

    .emotional-body {
        font-size: 16px;
    }

    .emotional-stats {
        flex-direction: column;
        gap: 20px;
    }

    .emotional-quote {
        font-size: 100px;
    }

    .emotional-actions {
        flex-direction: column;
        align-items: center;
    }

    .emotional-actions .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .emotional-headline {
        font-size: 26px;
    }

    .emotional-badge {
        font-size: 11px;
        padding: 8px 20px;
    }

    .emotional-testimonial {
        padding: 20px;
    }
}

auth
/* ============================================
    CALL TO ACTION SECTION — ULTRA BEAUTIFUL
    ============================================ */

.cta-section {
    background: var(--gradient-3);
    background-size: 400% 400%;
    position: relative;
    overflow: hidden;
    padding: 120px 0 140px;
    animation: ctaGradientShift 12s ease infinite;
}

@keyframes ctaGradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ===== Animated Mesh Background ===== */

.cta-mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.cta-mesh-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: meshFloat 20s ease-in-out infinite;
}

.cta-mesh-blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent 70%);
    top: -200px;
    left: -150px;
    animation-delay: 0s;
}

.cta-mesh-blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 200, 100, 0.3), transparent 70%);
    bottom: -150px;
    right: -100px;
    animation-delay: -7s;
}

.cta-mesh-blob-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 150, 50, 0.25), transparent 70%);
    top: 40%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes meshFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(50px, -30px) scale(1.1);
    }

    50% {
        transform: translate(-30px, 20px) scale(0.95);
    }

    75% {
        transform: translate(20px, 40px) scale(1.05);
    }
}

/* ===== Floating Decorations ===== */

.cta-float {
    position: absolute;
    pointer-events: none;
    animation: ctaDrift 16s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.cta-float-1 {
    top: 12%;
    left: 8%;
    font-size: 42px;
    animation-delay: 0s;
}

.cta-float-2 {
    top: 18%;
    right: 10%;
    font-size: 36px;
    animation-delay: 3s;
}

.cta-float-3 {
    bottom: 22%;
    left: 6%;
    font-size: 48px;
    animation-delay: 6s;
}

.cta-float-4 {
    bottom: 15%;
    right: 8%;
    font-size: 38px;
    animation-delay: 9s;
}

.cta-float-5 {
    top: 45%;
    left: 3%;
    font-size: 28px;
    animation-delay: 12s;
}

.cta-float-6 {
    top: 55%;
    right: 5%;
    font-size: 32px;
    animation-delay: 15s;
}

@keyframes ctaDrift {

    0%,
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.25;
    }

    25% {
        transform: translateY(-25px) rotate(8deg) scale(1.1);
        opacity: 0.4;
    }

    50% {
        transform: translateY(-15px) rotate(-5deg) scale(0.95);
        opacity: 0.3;
    }

    75% {
        transform: translateY(-30px) rotate(12deg) scale(1.05);
        opacity: 0.35;
    }
}

/* ===== Sparkle Particles ===== */

.cta-sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-sparkle {
    position: absolute;
    color: white;
    font-size: 14px;
    animation: sparkleTwinkle 3s ease-in-out infinite;
}

.cta-sparkle:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.cta-sparkle:nth-child(2) {
    top: 30%;
    right: 25%;
    animation-delay: 0.5s;
}

.cta-sparkle:nth-child(3) {
    top: 60%;
    left: 15%;
    animation-delay: 1s;
}

.cta-sparkle:nth-child(4) {
    top: 70%;
    right: 20%;
    animation-delay: 1.5s;
}

.cta-sparkle:nth-child(5) {
    top: 40%;
    left: 45%;
    animation-delay: 2s;
}

.cta-sparkle:nth-child(6) {
    top: 15%;
    left: 60%;
    animation-delay: 2.5s;
}

@keyframes sparkleTwinkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.5) rotate(0deg);
    }

    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
}

/* ===== Decorative Book Stack ===== */

.cta-books {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    gap: -15px;
    z-index: 1;
    opacity: 0.12;
    pointer-events: none;
}

.cta-book {
    width: 50px;
    height: 70px;
    background: white;
    border-radius: 3px 6px 6px 3px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.cta-book::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 1px;
}

.cta-book:nth-child(1) {
    transform: rotate(-18deg) translateY(10px);
    height: 60px;
}

.cta-book:nth-child(2) {
    transform: rotate(-5deg) translateY(-5px);
    height: 75px;
    margin-left: -10px;
}

.cta-book:nth-child(3) {
    transform: rotate(8deg) translateY(0);
    height: 68px;
    margin-left: -10px;
}

.cta-book:nth-child(4) {
    transform: rotate(20deg) translateY(8px);
    height: 55px;
    margin-left: -10px;
}

/* ===== Main Content ===== */

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

/* Badge */
.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 32px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }

    50% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 20px rgba(255, 255, 255, 0.1);
    }
}

.cta-badge-icon {
    font-size: 16px;
    animation: badgeIconBounce 2s ease-in-out infinite;
}

@keyframes badgeIconBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

/* Headline */
.cta-headline {
    font-family: var(--font-heading);
    font-size: 56px;
    line-height: 1.15;
    color: white;
    margin-bottom: 24px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    letter-spacing: -0.5px;
}

.cta-headline-line {
    display: block;
}

.cta-headline-line:nth-child(2) {
    background: linear-gradient(90deg, white, #FFE4B5, white);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: textShine 4s linear infinite;
}

@keyframes textShine {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.cta-magic-icon {
    display: inline-block;
    font-size: 0.8em;
    animation: magicSpin 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

@keyframes magicSpin {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    }

    25% {
        transform: rotate(15deg) scale(1.2);
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
    }

    50% {
        transform: rotate(0deg) scale(1);
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    }

    75% {
        transform: rotate(-15deg) scale(1.2);
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
    }
}

/* Subtext */
.cta-subtext {
    font-size: 20px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 48px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

/* ===== Main CTA Button ===== */

.cta-btn-main {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 22px 56px;
    background: white;
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: 0.5px;
    cursor: url('../children_book_nest_images/Main_Cursor_extra_small.png'), auto;
}

.cta-btn-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.15), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
}

.cta-btn-main::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, white, #FFE4B5, white, #FFD700);
    background-size: 300% 300%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: borderGlow 3s ease infinite;
}

@keyframes borderGlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.cta-btn-main:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25), 0 0 0 4px rgba(255, 255, 255, 0.15);
    color: var(--color-primary-dark);
}

.cta-btn-main:hover::before {
    left: 150%;
}

.cta-btn-main:hover::after {
    opacity: 1;
}

.cta-btn-main:active {
    transform: translateY(-1px) scale(0.98);
}

.cta-btn-arrow {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 20px;
}

.cta-btn-main:hover .cta-btn-arrow {
    transform: translateX(8px);
}

/* Ripple on click */
.cta-btn-main .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.3);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ===== Secondary Link ===== */

.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding: 12px 28px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-full);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    transform: translateY(-2px);
    gap: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.cta-secondary-arrow {
    transition: transform 0.3s ease;
}

.cta-secondary:hover .cta-secondary-arrow {
    transform: translateX(4px);
}

/* ===== Trust Badges ===== */

.cta-trust {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 56px;
    flex-wrap: wrap;
}

.cta-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-trust-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.cta-trust-icon {
    font-size: 18px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* ===== Decorative Wave Bottom ===== */

.cta-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
}

.cta-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}

/* ===== Responsive ===== */

@media (max-width: 992px) {
    .cta-section {
        padding: 100px 0 120px;
    }

    .cta-headline {
        font-size: 44px;
    }

    .cta-subtext {
        font-size: 18px;
    }

    .cta-float {
        display: none;
    }
}

@media (max-width: 768px) {
    .cta-section {
        padding: 80px 0 100px;
    }

    .cta-headline {
        font-size: 36px;
    }

    .cta-subtext {
        font-size: 17px;
        margin-bottom: 36px;
    }

    .cta-btn-main {
        padding: 18px 40px;
        font-size: 16px;
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .cta-trust {
        gap: 16px;
        margin-top: 40px;
    }

    .cta-trust-item {
        font-size: 13px;
        padding: 8px 16px;
    }

    .cta-badge {
        font-size: 11px;
        padding: 10px 24px;
    }

    .cta-books {
        display: none;
    }
}

@media (max-width: 480px) {
    .cta-headline {
        font-size: 30px;
    }

    .cta-subtext {
        font-size: 16px;
    }

    .cta-btn-main {
        padding: 16px 32px;
    }

    .cta-trust {
        flex-direction: column;
        gap: 12px;
    }

    .cta-trust-item {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* ============================================
    ACCESSIBILITY
    ============================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

@media (pointer: coarse) {

    .carousel-btn,
    .mobile-toggle,
    .social-links a,
    .back-to-top {
        min-width: 48px;
        min-height: 48px;
    }

    .desktop-menu>li>a {
        padding: var(--space-2);
    }
}

/* ============================================
    RESPONSIVE
    ============================================ */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .process-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-5);
    }

    .process-steps::before {
        display: none;
    }

    .hero-content {
        grid-column: 1 / span 7;
    }

    .about-content {
        grid-column: 6 / span 7;
    }
}

@media (max-width: 992px) {
    .desktop-menu {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-container {
        height: 70px;
    }

    .logo img {
        height: 50px;
    }

    h1 {
        font-size: 48px;
    }

    h2 {
        font-size: 40px;
    }

    h3 {
        font-size: 28px;
    }

    .hero {
        min-height: 600px;
    }

    .hero-container {
        min-height: 600px;
    }

    .hero-content {
        grid-column: 1 / span 8;
    }

    .hero-title {
        font-size: 40px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .authors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats {
        justify-content: center;
    }

    .stat {
        text-align: center;
    }

    .about-container {
        justify-items: center;
    }

    .about-content {
        grid-column: 1 / span 12;
        justify-self: center;
        text-align: center;
        max-width: 700px;
    }

    .about .divider {
        margin: 0 auto var(--space-4);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
        --container-padding: 16px;
    }

    body {
        font-size: 16px;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 32px;
    }

    h3 {
        font-size: 24px;
    }

    .hero {
        min-height: 500px;
    }

    .hero-container {
        min-height: 500px;
        align-items: end;
        padding-bottom: var(--space-8);
    }

    .hero-content {
        grid-column: 1 / span 12;
        max-width: 100%;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }

    .step-icon {
        width: 100px;
        height: 100px;
        font-size: 32px;
    }

    .authors-grid {
        grid-template-columns: 1fr;
    }

    .book-card {
        flex: 0 0 240px;
    }

    .newsletter-card {
        padding: var(--space-5) var(--space-3);
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form .btn,
    .newsletter-form .form-input {
        width: 100%;
    }

    .benefits {
        flex-direction: column;
        align-items: center;
    }

    .stats {
        gap: var(--space-3);
    }

    .stat-number {
        font-size: 24px;
    }

    .carousel-btn {
        width: 44px;
        height: 44px;
    }

    .about .section-title {
        font-size: 36px;
    }

    .breadcrumb-nav {
        padding: 10px 0;
    }

    .breadcrumb-item {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 26px;
    }

    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 28px;
    }

    .about .section-title {
        font-size: 32px;
    }

    .newsletter .section-title {
        font-size: 28px;
    }

    .book-card {
        flex: 0 0 200px;
    }

    .card-number {
        font-size: 36px;
    }

    .mobile-menu {
        width: 280px;
    }
}

.hero-typing-wrapper {
    background: rgba(45, 106, 79, 0.12);
    padding: 2.5rem 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* FIXED WIDTH — never changes */
    width: 600px;
    max-width: 90vw;
    /* MIN HEIGHT — starts here, grows if needed */
    min-height: 120px;
    /* Smooth height transition */
    transition: height 0.3s ease;
    display: flex;
    align-items: center;
}

.hero-typing-container {
    width: 100%;
    text-align: left;
}

.hero-typing-text {
    font-size: 1.6rem;
    color: var(--color-dark);
    /* Text wraps naturally */
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 2rem;
    display: block;
    position: relative;
}

/* Blinking cursor */
.cursor {
    display: inline-block;
    width: 3px;
    height: 1.1em;
    background: var(--color-secondary);
    margin-left: 3px;
    vertical-align: middle;
    animation: blink 0.8s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .hero-typing-wrapper {
        width: 90vw;
        padding: 2rem;
        min-height: 100px;
    }

    .hero-typing-text {
        font-size: 1.2rem;
        line-height: 1.7rem;
    }
}