/* ============================================
   CHILDREN'S BOOKNEST - COMPLETE STYLES
   ============================================ */

:root {
    /* Colors */
    --color-primary: #01a69f;
    /* Teal */
    --color-primary-dark: #008b85;
    /* Darker teal for hover states */
    --color-secondary: #93c532;
    /* Green */
    --color-accent: #fcda09;
    /* Yellow accent */

    --color-dark: #2C3E50;
    --color-text: #2C3E50;
    --color-text-light: #5D6D7E;
    --color-text-muted: #7F8C8D;

    --color-bg: #fffdf0;
    /* Warm light background */
    --color-bg-warm: #fff9e0;
    /* Soft yellow-tinted background */

    --color-white: #ffffff;
    --color-border: #e5e9d8;
    --color-border-light: #eef2f5;

    /* Gradients */
    --gradient-1: linear-gradient(90deg,
            #01a69f 0%,
            #93c532 100%);

    --gradient-2: linear-gradient(90deg,
            #fcda09 0%,
            #8fc637 100%);

    --gradient-3: linear-gradient(90deg,
            #8fc637 0%,
            #01a69f 100%);

    --gradient-4: linear-gradient(90deg,
            #93c532 0%,
            #fcda09 100%);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-alt: 'Nunito', sans-serif;

    /* Spacing (8-point system) */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 48px;
    --space-6: 64px;
    --space-7: 96px;
    --space-8: 120px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.16);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Layout */
    --container-max: 1400px;
    --container-padding: 24px;
    --section-padding: 120px;
}

/* ============================================
   GPU LAYER OPTIMIZATIONS
   ============================================ */
.cbn-particle,
.cbn-bird,
.cbn-cloud,
.cbn-floating-book,
.blob,
.float-particle,
.why-icon-glow,
.curved-card,
.card-liquid-bg,
.card-glow,
.orbit-ring,
.orbit-dot,
.svc-blob,
.svc-float-emoji,
.svc-card,
.svc-icon-blob,
.svc-icon-ring,
.svc-icon,
.scroll-indicator,
.newsletter-icon {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Contain layout/paint in sections to limit repaint scope */
.hero,
.why-choose,
.services-section,
.books,
.about,
.authors,
.newsletter {
    contain: layout paint;
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: url('../children_book_nest_images/Main_Cursor_extra_small.png'), auto;

}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-secondary);

}

::-webkit-scrollbar-thumb {
    background: var(--color-primary-dark);
    border-radius: 6px;
}

/* Optional: Darken thumb on hover */
::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
    padding-top: 85px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
    
}

ul {
    list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 64px;
}

h2 {
    font-size: 48px;
}

h3 {
    font-size: 32px;
}

p {
    line-height: 1.7;
    color: var(--color-text-light);
}

/* ============================================
   GRID SYSTEM & LAYOUT
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

.grid {
    display: grid;
    gap: var(--space-4);
}

.grid-12 {
    grid-template-columns: repeat(12, 1fr);
}

.grid-6 {
    grid-template-columns: repeat(6, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.col-1 {
    grid-column: span 1;
}

.col-2 {
    grid-column: span 2;
}

.col-3 {
    grid-column: span 3;
}

.col-4 {
    grid-column: span 4;
}

.col-5 {
    grid-column: span 5;
}

.col-6 {
    grid-column: span 6;
}

.col-7 {
    grid-column: span 7;
}

.col-8 {
    grid-column: span 8;
}

.col-9 {
    grid-column: span 9;
}

.col-10 {
    grid-column: span 10;
}

.col-11 {
    grid-column: span 11;
}

.col-12 {
    grid-column: span 12;
}

.align-left {
    justify-self: start;
}

.align-center {
    justify-self: center;
}

.align-right {
    justify-self: end;
}

.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-start {
    align-items: flex-start;
}

.items-center {
    align-items: center;
}

.items-end {
    align-items: flex-end;
}

.justify-start {
    justify-content: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-end {
    justify-content: flex-end;
}

.justify-between {
    justify-content: space-between;
}

.section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-6);
}

.section-badge {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: var(--color-secondary);
    color: var(--color-primary-dark);
    border: 1px solid var(--color-border);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-3);
}

.hero-section-badge{
    display: inline-block;
    font-size: 12.61px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: var(--color-primary-dark);
    color: var(--color-secondary);
    border: 2px solid black;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-3);
}

.section-title {
    margin-bottom: var(--space-3);
    color: var(--color-dark);
}

.section-desc {
    font-size: 18px;
    color: var(--color-text);
    max-width: 550px;
    margin: 0 auto;
}

.section-cta {
    text-align: center;
    margin-top: var(--space-6);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    height: 52px;
    padding: 0 var(--space-4);
    border-radius: var(--radius-md);
    border: none;
    transition: var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-4);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-hero {
    background: var(--gradient-3);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
}

.btn-secondary {
    background: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
}

.btn-secondary:hover {
    background: var(--color-secondary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-lg {
    height: 56px;
    padding: 0 var(--space-5);
    font-size: 18px;
}

.btn-sm {
    height: 44px;
    padding: 0 var(--space-3);
    font-size: 14px;
}

.btn-arrow {
    transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-secondary);
}

.link-arrow span {
    transition: transform var(--transition-fast);
}

.link-arrow:hover span {
    transform: translateX(4px);
}

.section-header .section-badge {
    background: var(--color-secondary);
    color: var(--color-primary-dark);
    border: 1px solid var(--color-border);
}

.section-header .section-header {
    font-size: 52px;
    background: var(--gradient-4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ============================================
   SECTION UTILITIES
   ============================================ */
.section {
    padding: var(--space-8) 0;
    position: relative;
}

.section-header {
    max-width: 700px;
    margin: 0 auto var(--space-6);
    text-align: center;
}

.section-badge {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-secondary);
    background: rgba(45, 106, 79, 0.08);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-3);
    border: 1px solid rgba(45, 106, 79, 0.12);
    animation: fade-in-up 0.6s ease-out both;
}

.section-title {
    font-size: 48px;
    margin-bottom: var(--space-3);
    color: var(--color-dark);
    animation: fade-in-up 0.7s ease-out 0.1s both;
}

.section-desc {
    font-size: 18px;
    color: var(--color-text-light);
    max-width: 550px;
    margin: 0 auto;
    animation: fade-in-up 0.8s ease-out 0.2s both;
}

.divider {
    width: 96px;
    height: 3px;
    background: var(--color-secondary);
    border-radius: 3px;
    margin: var(--space-3) 0 var(--space-4);
    position: relative;
    overflow: hidden;
}

.divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: var(--color-primary-dark);
    animation: shineSweep 3s ease-in-out infinite;
}

.divider.center {
    margin-left: auto;
    margin-right: auto;
}

.divider::after {
    content: '✦';
    position: absolute;
    right: -28px;
    top: -12px;
    font-size: 20px;
    color: var(--color-primary);
    animation: sparkleSpin 4s ease-in-out infinite;
}

.divider.center::after {
    right: -28px;
}

@keyframes sparkleSpin {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.2);
    }
}

/* ============================================
   PAGE HERO — MAGICAL STORYBOOK
   ============================================ */
.page-hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: var(--space-8) 0 var(--space-6);
    background: linear-gradient(135deg, #FFF8F0 0%, #FFECD2 30%, #FFE4C4 60%, #FFF0E0 100%);
}

/* Decorative blobs behind hero */
.page-hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.12), transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -150px;
    filter: blur(40px);
    animation: blobFloat 20s ease-in-out infinite;
    z-index: 0;
}

.page-hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(183, 142, 255, 0.1), transparent 70%);
    border-radius: 50%;
    bottom: -150px;
    left: -100px;
    filter: blur(40px);
    animation: blobFloat 20s ease-in-out infinite 5s;
    z-index: 0;
}

@keyframes blobFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -20px) scale(1.1);
    }

    50% {
        transform: translate(-20px, 15px) scale(0.95);
    }

    75% {
        transform: translate(15px, 25px) scale(1.05);
    }
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../children_book_nest_images/Hero_banner.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.page-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 248, 240, 0.6) 0%, rgba(255, 235, 205, 0.5) 50%, rgba(255, 228, 196, 0.4) 100%);
    z-index: 1;
}

/* Floating Clouds */
.page-hero .container::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 45px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 50px;
    top: 18%;
    left: -150px;
    z-index: 2;
    pointer-events: none;
    box-shadow:
        350px 80px 0 rgba(255, 255, 255, 0.35),
        700px -20px 0 rgba(255, 255, 255, 0.3),
        1050px 60px 0 rgba(255, 255, 255, 0.25);
    animation: cloudFloat 30s linear infinite;
}

@keyframes cloudFloat {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(100vw + 300px));
    }
}

/* Flying Birds */
.page-hero .container::after {
    content: '';
    position: absolute;
    width: 35px;
    height: 35px;
    top: 22%;
    left: -60px;
    z-index: 3;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 12c0 0 3-4 6-4s4 2 6 2 3-2 6-2 4 4 4 4-2-1-4-1-3 2-6 2-4-2-6-2-2 1-2 1z' fill='%238B7355'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    animation: birdFly 18s linear infinite;
    opacity: 0.8;
}

@keyframes birdFly {
    0% {
        transform: translateX(0) translateY(0);
    }

    25% {
        transform: translateX(30vw) translateY(-10px);
    }

    50% {
        transform: translateX(60vw) translateY(5px);
    }

    75% {
        transform: translateX(85vw) translateY(-5px);
    }

    100% {
        transform: translateX(calc(100vw + 100px)) translateY(0);
    }
}

.page-hero .row {
    position: relative;
    z-index: 4;
}

.page-badge {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-secondary);
    background: rgba(45, 106, 79, 0.12);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-3);
    border: 1px solid rgba(45, 106, 79, 0.15);
    animation: fade-in-up 0.6s ease-out both;
}

.page-title {
    font-size: 64px;
    line-height: 1.1;
    color: #1a3c5a;
    margin-bottom: var(--space-3);
    animation: fade-in-up 0.8s ease-out 0.1s both;
    text-shadow: 0 2px 20px rgba(26, 60, 90, 0.08);
}

.page-subtitle {
    font-size: 20px;
    line-height: 1.7;
    color: #1e4d5c;
    max-width: 600px;
    animation: fade-in-up 1s ease-out 0.2s both;
}

/* Scroll Indicator */
.page-hero .row::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z' fill='%231a3c5a'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    animation: scrollBounce 2s ease-in-out infinite;
    opacity: 0.6;
    cursor: pointer;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.6;
    }

    50% {
        transform: translateX(-50%) translateY(10px);
        opacity: 0.3;
    }
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-image: url('../children_book_nest_images/Hero_banner.png');
    background-size: cover;
    background-position: center;
}

/* Floating Particles */
.cbn-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.cbn-particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
}

.cbn-particle:nth-child(1) {
    width: 8px;
    height: 8px;
    background: #FFD700;
    left: 10%;
    top: 20%;
}

.cbn-particle:nth-child(2) {
    width: 12px;
    height: 12px;
    background: #FF6B9D;
    left: 20%;
    top: 60%;
}

.cbn-particle:nth-child(3) {
    width: 6px;
    height: 6px;
    background: #4ECDC4;
    left: 30%;
    top: 30%;
}

.cbn-particle:nth-child(4) {
    width: 10px;
    height: 10px;
    background: #FFE66D;
    left: 70%;
    top: 15%;
}

.cbn-particle:nth-child(5) {
    width: 14px;
    height: 14px;
    background: #FF8C42;
    left: 80%;
    top: 50%;
}

.cbn-particle:nth-child(6) {
    width: 8px;
    height: 8px;
    background: #C7F464;
    left: 50%;
    top: 70%;
}

.cbn-particle:nth-child(7) {
    width: 11px;
    height: 11px;
    background: #FF6B6B;
    left: 15%;
    top: 80%;
}

.cbn-particle:nth-child(8) {
    width: 7px;
    height: 7px;
    background: #4ECDC4;
    left: 85%;
    top: 25%;
}

.cbn-particle:nth-child(9) {
    width: 9px;
    height: 9px;
    background: #FFD93D;
    left: 40%;
    top: 10%;
}

.cbn-particle:nth-child(10) {
    width: 13px;
    height: 13px;
    background: #FF8C94;
    left: 60%;
    top: 85%;
}


/* Flying Birds */
.cbn-birds-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.cbn-bird {
    position: absolute;
    opacity: 0.8;
}

.cbn-bird svg {
    width: 40px;
    height: 40px;
    fill: #5D4E37;
}

.cbn-bird:nth-child(1) {
    top: 15%;
    left: -50px;
}

.cbn-bird:nth-child(1) svg {
    width: 35px;
    height: 35px;
    fill: #8B7355;
}

.cbn-bird:nth-child(2) {
    top: 25%;
    left: -50px;
}

.cbn-bird:nth-child(2) svg {
    width: 30px;
    height: 30px;
    fill: #A0522D;
}

.cbn-bird:nth-child(3) {
    top: 10%;
    left: -50px;
}

.cbn-bird:nth-child(3) svg {
    width: 45px;
    height: 45px;
    fill: #6B4423;
}

.cbn-bird:nth-child(4) {
    top: 35%;
    left: -50px;
}

.cbn-bird:nth-child(4) svg {
    width: 32px;
    height: 32px;
    fill: #8B6914;
}

.cbn-bird:nth-child(5) {
    top: 20%;
    right: -50px;
}

.cbn-bird:nth-child(5) svg {
    width: 38px;
    height: 38px;
    fill: #5D4E37;
    transform: scaleX(-1);
}


/* Floating Clouds */
.cbn-cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    pointer-events: none;
    z-index: 2;
}

.cbn-cloud::before,
.cbn-cloud::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
}

.cbn-cloud-1 {
    width: 100px;
    height: 40px;
    top: 20%;
    left: -150px;
}

.cbn-cloud-1::before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 10px;
}

.cbn-cloud-1::after {
    width: 60px;
    height: 40px;
    top: -15px;
    left: 40px;
}

.cbn-cloud-2 {
    width: 80px;
    height: 35px;
    top: 45%;
    left: -150px;
}

.cbn-cloud-2::before {
    width: 40px;
    height: 40px;
    top: -20px;
    left: 15px;
}

.cbn-cloud-2::after {
    width: 50px;
    height: 35px;
    top: -10px;
    left: 35px;
}

.cbn-cloud-3 {
    width: 120px;
    height: 45px;
    top: 10%;
    left: -150px;
}

.cbn-cloud-3::before {
    width: 60px;
    height: 60px;
    top: -30px;
    left: 20px;
}

.cbn-cloud-3::after {
    width: 70px;
    height: 45px;
    top: -20px;
    left: 50px;
}

/* Floating Book Emojis */
.cbn-floating-book {
    position: absolute;
    font-size: 2rem;
    opacity: 0.7;
    pointer-events: none;
    z-index: 2;
}

.cbn-floating-book:nth-of-type(1) {
    top: 15%;
    left: 15%;
}

.cbn-floating-book:nth-of-type(2) {
    top: 60%;
    left: 75%;
    font-size: 1.5rem;
}

.cbn-floating-book:nth-of-type(3) {
    top: 35%;
    left: 85%;
    font-size: 1.8rem;
}


/* Hero Content */
.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-4);
    align-items: center;
    min-height: 700px;
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
}

.hero-content {
    grid-column: 1 / span 6;
    max-width: 640px;
}

.hero-title {
    font-size: 52px;
    line-height: 1.15;
    margin-bottom: var(--space-4);
    color: #1a3c5a;
}

.hero-title .line {
    display: block;
}

.hero-title .accent {
    color: var(--color-secondary);
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: #1a3c5a;
    /* text-shadow: 2px 2px 4px var(--color-border-light); */
    font-weight: 700;
    margin-bottom: var(--space-5);
}

.hero-actions {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.hero-paragraph {
    background: whitesmoke;
    opacity: 0.6;
    padding: 22px;
    border-radius: 12px;
    margin: 15px;
}

.hero-paragraph p {
    font-size: 19px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-5);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    cursor: pointer;
    color: #1a3c5a;
    opacity: 0.7;
}

/* ============================================
   HEADER & NAVIGATION (Bootstrap Navbar)
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-secondary);
    box-shadow: var(--shadow-sm);
}

.main-nav {
    padding: 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 85px;
}

.logo img {
    height: 85px;
    width: auto;
    transition: transform var(--transition-base);
}

.logo:hover img {
    transform: scale(1.05);
}

/* Navbar Links */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.navbar-nav .nav-item {
    position: relative;
}

.navbar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text) !important;
    padding: var(--space-2) 0 !important;
    position: relative;
}

.dropdown-toggle::after {
    color: var(--color-primary);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), #F7931E);
    border-radius: 2px;
    transition: width var(--transition-base);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
    color: var(--color-primary);
}

/* Submit Button */
.navbar-nav .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    height: 44px;
    padding: 0 var(--space-3);
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.navbar-nav .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #F7931E 0%, var(--color-primary) 100%);
}

/* Dropdown */

.dropdown-menu {
    background: var(--color-primary);
    min-width: 220px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-2) 0;
    border: 1px solid var(--color-border-light);
    margin-top: 1px;
}

.dropdown-item {
    display: block;
    padding: var(--space-2) var(--space-3);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-light);
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background: rgba(255, 107, 53, 0.05);
    color: var(--color-secondary);
    padding-left: calc(var(--space-3) + 4px);
}

/* Desktop hover dropdowns */
@media (min-width: 992px) {
    .navbar-nav .dropdown:hover>.dropdown-menu {
        display: block;
        animation: fadeIn 0.2s ease;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Toggler */
.navbar-toggler {
    border: none;
    background: var(--color-white);
    padding: 10px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.navbar-toggler:focus {
    box-shadow: var(--shadow-sm);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 107, 53, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 22px;
    height: 22px;
}

/* ============================================
   RESPONSIVE — HEADER
   ============================================ */
@media (max-width: 992px) {
    .nav-container {
        height: 70px;
    }

    .logo img {
        height: 70px;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-secondary);
        padding: var(--space-3) var(--space-4);
        box-shadow: var(--shadow-lg);
        border-top: 1px solid rgba(255, 255, 255, 0.4);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .navbar-nav {
        gap: 0;
        align-items: stretch;
    }

    .navbar-nav .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    }

    .navbar-nav .nav-link {
        padding: 14px 0 !important;
        font-size: 16px;
    }

    .navbar-nav .nav-link::after {
        display: none;
    }

    .navbar-nav .btn {
        width: 100%;
        margin: var(--space-2) 0;
    }

    .dropdown-menu {
        background: rgba(255, 255, 255, 0.6);
        box-shadow: none;
        border: none;
        padding: 0 0 0 var(--space-3);
        margin: 0;
    }

    .dropdown-item {
        padding: 10px var(--space-2);
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .dropdown-item:last-child {
        border-bottom: none;
    }

    .dropdown-toggle::after {
        float: right;
        margin-top: 8px;
    }
}

@media (max-width: 576px) {
    .nav-container {
        height: 60px;
    }

    .logo img {
        height: 55px;
    }

    .navbar-toggler {
        padding: 8px;
    }

    .navbar-toggler-icon {
        width: 20px;
        height: 20px;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--color-secondary);
    color: var(--color-white);
    padding: var(--space-7) 0 var(--space-4);
    position: relative;
}

.footer-grid {
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.footer-logo .logo-icon {
    width: 150px;
    height: 150px;
    background-image: url('../children_book_nest_images/Logo_CBN_Footer.png');
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.footer-brand p {
    color: var(--color-text);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: var(--space-3);
}

.social-links {
    display: flex;
    gap: var(--space-2);
}

.social-links a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition-base);
    color: var(--color-white);
}

.social-links a:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

.footer-column h4 {
    font-family: var(--font-alt);
    font-size: 18px;
    margin-bottom: var(--space-3);
    color: var(--color-primary);
    position: relative;
    padding-bottom: var(--space-2);
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
}

.footer-column li {
    margin-bottom: var(--space-2);
}

.footer-column a {
    color: var(--color-text);
    font-size: 15px;
    transition: var(--transition-fast);
    display: inline-block;
}

.footer-column a:hover {
    color: var(--color-primary);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--color-accent);
    padding-top: var(--space-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.footer-bottom p {
    color: var(--color-text-muted);
    font-size: 14px;
}

.footer-badges {
    display: flex;
    gap: var(--space-3);
}

.footer-badges span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text);
    font-size: 14px;
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.7);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--color-white);
    width: 90%;
    max-width: 700px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: var(--space-6);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modal-container::-webkit-scrollbar {
    display: none;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-border-light);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-dark);
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background: var(--color-bg);
    color: var(--color-primary);

}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: var(--color-text);
    font-family: var(--font-body);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-3);
    border: 2px solid var(--color-border-light);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.2s;
    background: var(--color-bg-warm);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-white);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

/* Custom File Upload */
.file-upload-wrapper {
    position: relative;
    width: 100%;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-custom-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: var(--space-4);
    border: 2px dashed var(--color-primary);
    border-radius: var(--radius-md);
    background: rgba(255, 107, 53, 0.05);
    transition: all 0.3s;
    cursor: pointer;
}

.file-custom-label:hover {
    background: rgba(255, 107, 53, 0.1);
    transform: translateY(-2px);
}

.file-icon {
    font-size: 2rem;
}

.file-text {
    font-weight: 600;
    color: var(--color-primary);
}

/* File Upload Error State */
.file-error {
    display: none;
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: var(--space-2);
    font-weight: 500;
}

.file-upload-wrapper.has-error .file-custom-label {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.05);
}

.file-upload-wrapper.has-error .file-text {
    color: #e74c3c;
}

/* ============================================
   FIELD ERRORS
   ============================================ */
.field-error {
    display: none;
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 6px;
    font-weight: 500;
    align-items: center;
    gap: 6px;
}

.field-error::before {
    content: "⚠";
    font-size: 0.9rem;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #e74c3c !important;
    background: rgba(231, 76, 60, 0.05) !important;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1) !important;
}

.form-group.has-error .field-error {
    display: flex;
}

/* File Upload Error */
.file-error {
    display: none;
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: var(--space-2);
    font-weight: 500;
    align-items: center;
    gap: 6px;
}

.file-error::before {
    content: "⚠";
    font-size: 0.9rem;
}

.file-upload-wrapper.has-error .file-custom-label {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.05);
    animation: shake 0.4s ease-in-out;
}

.file-upload-wrapper.has-error .file-text {
    color: #e74c3c;
}

.file-upload-wrapper.has-error .file-error {
    display: flex;
}

/* Shake Animation */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    pointer-events: all;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 14px;
    background: var(--color-white);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-left: 5px solid;
    min-width: 320px;
    max-width: 420px;
    transform: translateX(120%);
    animation: toastSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
}

.toast.toast-exit {
    animation: toastSlideOut 0.3s ease-in forwards;
}

.toast-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 0.9rem;
    opacity: 0.85;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
}

.toast-close:hover {
    color: var(--color-dark);
}

/* Toast Types */
.toast-success {
    border-left-color: #27ae60;
}

.toast-success .toast-icon {
    color: #27ae60;
}

.toast-success .toast-title {
    color: #27ae60;
}

.toast-error {
    border-left-color: #e74c3c;
}

.toast-error .toast-icon {
    color: #e74c3c;
}

.toast-error .toast-title {
    color: #e74c3c;
}

.toast-warning {
    border-left-color: #f39c12;
}

.toast-warning .toast-icon {
    color: #f39c12;
}

.toast-warning .toast-title {
    color: #f39c12;
}

/* Animations */
@keyframes toastSlideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .toast-container {
        top: 12px;
        right: 12px;
        left: 12px;
    }

    .toast {
        min-width: auto;
        max-width: 100%;
    }
}

/* ============================================
   SUCCESS POPUP — PREMIUM UI
   ============================================ */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    background: linear-gradient(145deg, #ffffff 0%, #faf8f5 100%);
    width: 92%;
    max-width: 440px;
    border-radius: 24px;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    padding: 48px 36px 40px;
    position: relative;
    text-align: center;
    overflow: hidden;
    transform: scale(0.85) translateY(30px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.popup-overlay.active .popup-container {
    transform: scale(1) translateY(0);
}

/* Background Glow */
.popup-glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    animation: glowFadeIn 0.8s ease 0.3s forwards;
}

/* Checkmark Circle */
.popup-checkmark {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    opacity: 0;
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s forwards;
}

.checkmark-svg {
    width: 80px;
    height: 80px;
    display: block;
}

.checkmark-circle {
    stroke: #27ae60;
    stroke-width: 3;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: strokeCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) 0.4s forwards;
}

.checkmark-check {
    stroke: #27ae60;
    stroke-width: 3.5;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: strokeCheck 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Title */
.popup-title {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    color: #1a1a2e;
    margin: 0 0 14px 0;
    opacity: 0;
    animation: fadeUp 0.5s ease 0.5s forwards;
    letter-spacing: -0.02em;
}

/* Message */
.popup-message {
    font-family: var(--font-body);
    font-size: 1rem;
    color: #6b6b80;
    line-height: 1.7;
    margin: 0 0 32px 0;
    opacity: 0;
    animation: fadeUp 0.5s ease 0.65s forwards;
    padding: 0 8px;
}

/* Actions */
.popup-actions {
    opacity: 0;
    animation: fadeUp 0.5s ease 0.8s forwards;
}

.popup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #ff6b35 0%, #e85d2c 100%);
    color: #ffffff;
    border: none;
    padding: 14px 36px;
    border-radius: 14px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
    letter-spacing: 0.02em;
}

.popup-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.4);
}

.popup-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.popup-btn svg {
    transition: transform 0.25s ease;
}

.popup-btn:hover svg {
    transform: translateX(3px);
}

/* Close Button */
.popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.04);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #8888a0;
    transition: all 0.2s ease;
    opacity: 0;
    animation: fadeIn 0.4s ease 1s forwards;
}

.popup-close:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #1a1a2e;
    transform: rotate(90deg);
}

.popup-close svg {
    width: 16px;
    height: 16px;
}

/* Animations */
@keyframes glowFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

@keyframes popIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes strokeCircle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes strokeCheck {
    to {
        stroke-dashoffset: 0;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .popup-container {
        padding: 40px 24px 32px;
        border-radius: 20px;
    }

    .popup-title {
        font-size: 1.6rem;
    }

    .popup-message {
        font-size: 0.95rem;
        padding: 0;
    }

    .popup-btn {
        width: 100%;
        padding: 14px 24px;
    }
}

/* ============================================
   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;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-badges {
        justify-content: center;
    }

    .stats {
        gap: var(--space-3);
    }

    .stat-number {
        font-size: 24px;
    }

    .carousel-btn {
        width: 44px;
        height: 44px;
    }

    .about .section-title {
        font-size: 36px;
    }
}

@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;
    }
}

/* ============================================
   RESPONSIVE — MODAL
   ============================================ */

/* ─── 768px and below (Tablet & Mobile) ─── */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        padding: var(--space-4);
        border-radius: var(--radius-lg);
        max-height: 85vh;
    }

    .modal-header {
        margin-bottom: var(--space-4);
        padding-bottom: var(--space-2);
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-close {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }

    .modal-form {
        gap: var(--space-3);
    }

    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 0.95rem;
    }

    /* Stack the 2-column grid */
    .modal-form .grid-2 {
        display: flex !important;
        flex-direction: column;
        gap: var(--space-3) !important;
    }

    .file-custom-label {
        padding: var(--space-3);
    }

    .file-icon {
        font-size: 1.5rem;
    }

    .file-text {
        font-size: 0.9rem;
    }
}

/* ─── 576px and below (Small mobile) ─── */
@media (max-width: 576px) {
    .modal-container {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        padding: var(--space-3);
    }

    .modal-header {
        margin-bottom: var(--space-3);
    }

    .modal-title {
        font-size: 1.25rem;
    }

    .modal-close {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }

    .modal-form {
        gap: var(--space-2);
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 0.9rem;
    }

    .file-custom-label {
        padding: var(--space-2);
    }

    .file-icon {
        font-size: 1.25rem;
    }

    .file-text {
        font-size: 0.85rem;
    }

    .modal-form .btn-lg {
        padding: 12px;
        font-size: 0.95rem;
    }
}

/* ============================================
   BOOTSTRAP CAROUSEL CONTROLS ONLY
   (Does NOT affect your .book-card or .why-card styles)
   ============================================ */

/* Position controls nicely */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    box-shadow: var(--shadow-sm);
}

.carousel-control-prev {
    left: -20px;
}

.carousel-control-next {
    right: -20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: linear-gradient(135deg, var(--color-primary), #F7931E);
    border-color: transparent;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(0.5);
    width: 20px;
    height: 20px;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    filter: invert(1);
}

/* Indicators */
.carousel-indicators {
    position: relative;
    bottom: 0;
    margin-top: 30px;
    margin-bottom: 0;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-border);
    border: none;
    margin: 0 5px;
}

.carousel-indicators button.active {
    background: linear-gradient(135deg, var(--color-primary), #F7931E);
    width: 32px;
    border-radius: var(--radius-full);
}

/* Responsive: hide controls on mobile */
@media (max-width: 768px) {

    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
}

/* ============================================
   RESPONSIVE ENHANCEMENTS — HEADER & FOOTER
   ============================================ */

/* ─── 992px and below (Tablet & Mobile) ─── */
@media (max-width: 992px) {

    /* Header */
    .site-header {
        height: 70px;
    }

    .nav-container {
        height: 70px;
    }

    .logo img {
        height: 70px;
    }

    /* Hide desktop menu, show hamburger */
    .desktop-menu {
        display: none !important;
    }

    .mobile-toggle {
        display: flex !important;
    }

    /* Mobile menu adjustments */
    .mobile-menu {
        width: 300px;
        padding: 90px var(--space-4) var(--space-4);
    }

    .mobile-menu a {
        font-size: 15px;
        padding: 14px var(--space-3);
    }

    .mobile-menu .btn {
        width: 100%;
        margin-top: var(--space-4);
    }
}

/* ─── 768px and below (Mobile) ─── */
@media (max-width: 768px) {

    /* Header */
    .site-header {
        height: 65px;
    }

    .nav-container {
        height: 65px;
    }

    .logo img {
        height: 60px;
    }

    .mobile-toggle {
        padding: 10px;
    }

    .mobile-toggle span {
        width: 22px;
        height: 2.5px;
    }

    /* Mobile menu */
    .mobile-menu {
        width: 100%;
        right: -100%;
        padding: 80px var(--space-3) var(--space-3);
    }

    .mobile-menu a {
        font-size: 16px;
        padding: 16px var(--space-3);
    }

    /* Footer */
    .site-footer {
        padding: var(--space-5) 0 var(--space-3);
    }

    .footer-grid {
        gap: var(--space-4);
        margin-bottom: var(--space-4);
    }

    .footer-brand {
        max-width: 100%;
        text-align: center;
        margin-bottom: var(--space-3);
    }

    .footer-logo {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-column h4 {
        font-size: 16px;
        margin-bottom: var(--space-2);
    }

    .footer-column li {
        margin-bottom: 10px;
    }

    .footer-column a {
        font-size: 14px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--space-2);
        padding-top: var(--space-3);
    }

    .footer-bottom p {
        font-size: 13px;
    }

    .footer-badges {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-2);
    }

    .footer-badges span {
        font-size: 13px;
    }
}

/* ─── 576px and below (Small mobile) ─── */
@media (max-width: 576px) {
    .site-header {
        height: 60px;
    }

    .nav-container {
        height: 60px;
    }

    .logo img {
        height: 55px;
    }

    .mobile-toggle {
        padding: 8px;
    }

    .mobile-toggle span {
        width: 20px;
        height: 2px;
    }

    .footer-logo .logo-icon {
        width: 150px;
        height: 150px;
        font-size: 20px;
    }

    .footer-logo .logo-text {
        font-size: 20px;
    }

    .footer-brand p {
        font-size: 14px;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .footer-column h4 {
        font-size: 15px;
    }

    .footer-column a {
        font-size: 13px;
    }

    .footer-badges span {
        font-size: 12px;
    }
}