/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Color Variables */
:root {
    --sunflower: #F6B73C;
    --honey: #FFB347;
    --sky: #AEE1F9;
    --cream: #FFF8F0;
    --white: #ffffff;
    --gray-800: #1f2937;
    --gray-600: #4b5563;
    --gray-300: #d1d5db;
    
    /* New series colors */
    --mint-green: #B4D7B4;
    --lavender: #D4B5E1;
    --coral: #FFB5A7;
    --peach: #FFDAC1;
    --ladybug-red: #E63946;
    --ladybug-dark: #C1121F;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: var(--sunflower);
    color: white;
    box-shadow: 0 4px 15px rgba(246, 183, 60, 0.3);
}

.btn-primary:hover {
    background: #e5a635;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(246, 183, 60, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--gray-800);
    border: 2px solid var(--gray-300);
}

.btn-secondary:hover {
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.btn-gradient {
    background: linear-gradient(135deg, var(--sunflower), var(--honey));
    color: white;
    box-shadow: 0 4px 15px rgba(246, 183, 60, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(246, 183, 60, 0.4);
}

.btn-white {
    background: white;
    color: var(--gray-800);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--gray-800);
    transform: translateY(-2px);
}

/* Floating Elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-bee-1 {
    position: absolute;
    top: 25%;
    left: 10%;
    font-size: 2rem;
    opacity: 0.6;
    animation: bounce 4s ease-in-out infinite;
}

.floating-ladybug {
    position: absolute;
    top: 5%;
    right: 15%;
    font-size: 2rem;
    opacity: 0.6;
    animation: bounce 5s ease-in-out infinite 1.5s;
}

.floating-flower-1 {
    position: absolute;
    top: 33%;
    right: 20%;
    font-size: 1.5rem;
    opacity: 0.4;
    animation: bounce 5s ease-in-out infinite 2s;
}

.floating-flower-2 {
    position: absolute;
    bottom: 25%;
    left: 25%;
    font-size: 1.2rem;
    opacity: 0.5;
    animation: bounce 6s ease-in-out infinite 1s;
}

.floating-butterfly {
    position: absolute;
    top: 85%;
    right: 10%;
    font-size: 2rem;
    opacity: 0.3;
    animation: pulse 3s ease-in-out infinite 3s;
}

.floating-circle-1 {
    position: absolute;
    top: 20%;
    right: 33%;
    width: 1rem;
    height: 1rem;
    background: var(--sunflower);
    border-radius: 50%;
    opacity: 0.2;
    animation: float 6s ease-in-out infinite;
}

.floating-circle-2 {
    position: absolute;
    bottom: 32%;
    right: 25%;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--honey);
    border-radius: 50%;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite 2s;
}

/* Animations */
@keyframes bounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

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

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #fef3c7, #fed7aa, var(--sky));
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.bg-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
}

.bg-element-1 {
    top: 5rem;
    left: 2.5rem;
    width: 2rem;
    height: 2rem;
    background: var(--sunflower);
    animation: bounce 3s ease-in-out infinite;
}

.bg-element-2 {
    top: 10rem;
    right: 5rem;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--honey);
    animation: bounce 4s ease-in-out infinite 1s;
    opacity: 0.5;
}

.bg-element-3 {
    bottom: 8rem;
    left: 5rem;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--sky);
    animation: pulse 2s ease-in-out infinite 2s;
    opacity: 0.4;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fef08a;
    color: #a16207;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
}

.title-yellow { color: var(--sunflower); }
.title-orange { color: var(--honey); }
.title-blue { color: var(--sky); }
.title-green { color: var(--mint-green); }
.title-purple { color: var(--lavender); }

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-books {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Embla Carousel - Hero */
.hero-books.embla {
    display: block; /* override base flex for carousel wrapper */
    position: relative;
    overflow: visible; /* allow rotated cards to extend */
    padding-block: 0; /* shift spacing to embla__container */
    max-width: 560px; /* constrain width on desktop */
    margin-inline: auto;
}

.embla__viewport {
    overflow: hidden; /* remove scrollbars */
    padding-block: 0;
    padding-inline: 28px; /* allow side peeks */
    /* Fade edges to avoid hard cut on sides */
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 28px, black calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, black 28px, black calc(100% - 28px), transparent 100%);
}

.embla__container {
    display: flex;
    gap: 0.25rem;
    padding: 50px 0; /* vertical space to avoid clipping rotated cards */
}

.embla__slide {
    flex: 0 0 80%; /* stronger side peek on mobile */
    display: flex;
    justify-content: center;
    background: transparent;
}

/* Controls */
.embla__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.embla__prev,
.embla__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    color: var(--gray-800);
    border: none;
    border-radius: 9999px;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.embla__prev { left: -8px; }
.embla__next { right: -8px; }

.embla__prev:hover,
.embla__next:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.embla__dots {
    display: flex;
    gap: 0.5rem;
}

.embla__dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: var(--gray-300);
    border: none;
    cursor: pointer;
}

.embla__dot.is-selected {
    background: var(--sunflower);
}

/* Remove heavy shadow layer inside hero carousel to avoid grey block look */
.hero-books.embla .book-shadow {
    display: none;
}

.hero-book {
    display: flex;
    justify-content: center;
    position: relative;
    flex: 0 0 auto;
}

.hero-book-left {
    transform: rotate(-3deg);
}

.hero-book-right {
    transform: rotate(3deg);
}

.book-shadow {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    transform: rotate(3deg) scale(0.95);
}

.book-cover {
    position: relative;
    border-radius: 1rem;
    padding: 1.75rem;
    width: 16rem;
    height: 20rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    color: white;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
    transition: transform 0.5s ease;
}

.book-cover-beatrice {
    background: linear-gradient(135deg, #fcd34d, var(--honey));
}

.book-cover-luna {
    background: linear-gradient(135deg, var(--ladybug-red), var(--ladybug-dark));
}

.book-cover-lilly {
    background: linear-gradient(135deg, #bc89d1, #9c6bb8);
}

.hero-book-left .book-cover:hover {
    transform: rotate(-5deg) scale(1.05);
}

.hero-book-center .book-cover:hover {
    transform: rotate(0deg) scale(1.05);
}

.hero-book-right .book-cover:hover {
    transform: rotate(5deg) scale(1.05);
}

.book-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.book-header p {
    font-size: 1.2rem;
    margin: 0;
}

.book-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.bee-circle {
    width: 7rem;
    height: 7rem;
    background: #fef3c7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ladybug-circle {
    width: 7rem;
    height: 7rem;
    background: #fff0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.1);
}

.butterfly-circle {
    width: 7rem;
    height: 7rem;
    background: #e8d5f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.1);
}

.bee-emoji,
.ladybug-emoji,
.butterfly-emoji {
    font-size: 3.5rem;
}

.book-footer p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--sky);
    color: #0c4a6e;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 800px;
    margin: 0 auto;
}

/* About Section */
.about-section {
    background: var(--cream);
}

.learning-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.learning-point {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.learning-point:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.learning-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.learning-point h3 {
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.learning-point p {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin: 0;
}

.quote-section {
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.quote-section blockquote {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-800);
    font-style: italic;
    margin-bottom: 1rem;
}

.quote-attribution {
    color: var(--gray-600);
    font-weight: 600;
    margin: 0;
}

/* Magical age badge styling */
.age-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #8b5cf6, #a855f7, #c084fc, #e879f9, #f0abfc);
    background-size: 200% 200%;
    animation: magicalShift 12s ease-in-out infinite;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    margin: 3rem auto 0;
    max-width: fit-content;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.age-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    border-radius: 50px;
    pointer-events: none;
}

@keyframes magicalShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


/* Author Section */
.author-section {
    background: white;
}

.author-content {
    align-items: center;
}

.author-image {
    text-align: center;
    position: relative;
}

.author-avatar {
    width: 12rem;
    height: 12rem;
    background: linear-gradient(135deg, #bbf7d0, #6ee7b7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    margin: 0 auto 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.floating-element {
    position: absolute;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.floating-element-1 {
    top: -0.5rem;
    right: -0.5rem;
    background: var(--sunflower);
    animation: bounce 3s ease-in-out infinite;
}

.floating-element-2 {
    bottom: -0.5rem;
    left: -0.5rem;
    background: #f472b6;
    animation: pulse 3s ease-in-out infinite;
}
.author-info{
    flex-grow: 1;
}

.author-info h2 {
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.author-info h3 {
    color: #059669;
    margin-bottom: 2rem;
}

.mission-box {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
}

.mission-icon {
    background: #bbf7d0;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.mission-content h4 {
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.mission-quote {
    color: var(--gray-600);
    font-style: italic;
    font-size: 1.1rem;
    margin: 0;
}

.author-bio {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.author-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat {
    background: #fef3c7;
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #a16207;
}

.stat-label {
    font-size: 0.9rem;
    color: #a16207;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--sunflower), var(--honey), #ef4444);
    color: white;
    text-align: center;
}

/* Mid-page CTA Band */
.cta-band {
    background: linear-gradient(135deg, var(--cream), #fff, var(--sky));
    text-align: center;
    border-top: 1px solid var(--gray-300);
    border-bottom: 1px solid var(--gray-300);
}
.cta-band .cta-content h2 {
    color: var(--gray-800);
}
.cta-band .cta-subtitle {
    color: var(--gray-600);
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.highlight {
    color: #fef3c7;
}

.cta-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(255, 255, 255, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature h3 {
    margin-bottom: 1rem;
}

.feature p {
    opacity: 0.9;
    margin: 0;
}

.price-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.price-details {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.guarantee {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

/* Future Books Section */
.future-books-section {
    background: linear-gradient(135deg, #fdf2f8, #fce7f3, #fef3c7);
}

.upcoming-books {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.upcoming-book {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upcoming-book:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.book-emoji {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.upcoming-book:hover .book-emoji {
    transform: scale(1.1);
}

.book-season {
    background: linear-gradient(135deg, #e879f9, #f472b6);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.upcoming-book h3 {
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.upcoming-book h4 {
    color: #a855f7;
    font-weight: 600;
    margin-bottom: 1rem;
}

.upcoming-book p {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.learn-more {
    color: #a855f7;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.upcoming-book:hover .learn-more {
    color: #7c3aed;
    transform: translateX(4px);
}

.newsletter-signup {
    max-width: 600px;
    margin: 0 auto;
}

.signup-content {
    background: white;
    border-radius: 1.5rem;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.signup-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.signup-content h3 {
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.signup-content p {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.signup-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.signup-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 1px solid var(--gray-300);
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.signup-form input:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.signup-success {
    text-align: center;
}

.success-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.signup-success h4 {
    color: #059669;
    margin-bottom: 0.5rem;
}

.signup-success p {
    color: var(--gray-600);
    margin: 0;
}

.signup-note {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin: 0;
}

/* Testimonials Section */
.testimonials-section {
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.testimonial {
    background: linear-gradient(135deg, #f9fafb, white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.testimonial:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.quote-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--gray-300);
}

.stars {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial blockquote {
    color: var(--gray-600);
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    gap: 1rem;
}

.author-avatar {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.author-name {
    font-weight: 700;
    color: var(--gray-800);
}

.author-role {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.overall-rating {
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.rating-stars {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.rating-score {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.rating-count {
    color: var(--gray-600);
    margin: 0;
}

/* Footer */
.footer {
    background: var(--gray-800);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.brand-logo h3 {
    font-size: 1.25rem;
    margin: 0;
}

.brand-description {
    color: #d1d5db;
    margin-bottom: 1.5rem;
    max-width: 400px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    background: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--sunflower);
    transform: translateY(-2px);
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.5rem;
}

.footer-links a,
.footer-contact a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--sunflower);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: #9ca3af;
    font-size: 0.9rem;
}

.made-with-love {
    color: #9ca3af;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-books {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero-book-left,
    .hero-book-right {
        transform: rotate(0deg);
    }
    
    .author-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .book-cover {
        width: 15rem;
        height: 19rem;
        padding: 1.5rem;
    }
    
    .bee-circle,
    .ladybug-circle {
        width: 6rem;
        height: 6rem;
    }
    
    .bee-emoji,
    .ladybug-emoji {
        font-size: 3rem;
    }
    
    .learning-points {
        grid-template-columns: 1fr;
    }
    
    
    
    .page-content h3 {
        font-size: 1.5rem;
    }
    
    .page-content p {
        font-size: 1rem;
    }
    
    .author-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .upcoming-books {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .signup-form {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    /* Hide some floating elements on mobile */
    .floating-flower-1,
    .floating-flower-2,
    .floating-circle-1,
    .floating-circle-2 {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .book-cover {
        width: 13rem;
        height: 17rem;
        padding: 1rem;
    }
    
    .bee-circle,
    .ladybug-circle {
        width: 5rem;
        height: 5rem;
    }
    
    .bee-emoji,
    .ladybug-emoji {
        font-size: 2.5rem;
    }
    
    .hero-books {
        gap: 1rem;
    }
    
    
    
    .author-avatar {
        width: 10rem;
        height: 10rem;
        font-size: 3rem;
    }
    
    .mission-box {
        flex-direction: column;
        text-align: center;
    }
    
    .author-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Desktop carousel layout: 2 slides per view with 2rem gap */
@media (min-width: 1024px) {
    .embla__viewport {
        padding-inline: 48px;
        -webkit-mask-image: linear-gradient(to right, transparent 0, black 36px, black calc(100% - 36px), transparent 100%);
        mask-image: linear-gradient(to right, transparent 0, black 36px, black calc(100% - 36px), transparent 100%);
    }
    .embla__slide {
        flex: 0 0 76%; /* stronger side peek on desktop */
    }
}

/* Remove navigation arrows entirely */
.embla__prev,
.embla__next {
    display: none !important;
}

@media (max-width: 1023px) {
    .hero-books.embla {
        max-width: 100%;
        overflow: hidden;
    }
}

/* spacing handled by embla__container */

/* Hide arrows on small screens, show on desktop */
@media (max-width: 1023px) {
    .embla__prev,
    .embla__next {
        display: none;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
button:focus,
input:focus,
a:focus {
    outline: 2px solid var(--sunflower);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-section,
    .future-books-section {
        background: white;
        border: 2px solid black;
    }
    
    .cta-section {
        background: black;
        color: white;
    }
}

/* Print styles */
@media print {
    .floating-elements,
    .btn,
    .social-links {
        display: none !important;
    }
    
    * {
        background: white !important;
        color: black !important;
    }
}

/* Author highlights */
.author-highlights {
    margin-top: 1rem;
    display: grid;
    gap: 0.75rem;
}

.author-highlight {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.author-highlight .highlight-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fef3c7;
    font-size: 1rem;
    flex-shrink: 0;
}

.author-highlight .highlight-text h4 {
    margin: 0 0 0.125rem 0;
    font-size: 1rem;
    color: var(--gray-800);
}

.author-highlight .highlight-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-600);
}