/* ============================================
   BOOKS PUBLISHED BY US — PAGE STYLES
   Children's BookNest
   ============================================

   This file contains ONLY page-specific styles.
   All base styles, variables, buttons, animations,
   navbar, footer, modal, and popup styles are
   inherited from style.css and necessary.css.

   ============================================ */

/* ============================================
   HERO SECTION — BOOKS PAGE
   ============================================ */

.books-hero {
    min-height: 550px;
    padding: var(--space-7) 0 var(--space-6);
}

.books-hero .hero-content {
    text-align: center;
    grid-column: 1 / -1;
    max-width: 800px;
    margin: 0 auto;
}

.books-hero .hero-title {
    font-size: 56px;
    line-height: 1.15;
    margin-bottom: var(--space-4);
}

.books-hero .hero-paragraph {
    max-width: 700px;
    margin: 0 auto var(--space-4);
}

.books-hero .hero-actions {
    justify-content: center;
}

/* Floating elements for books hero */
.bp-float {
    position: absolute;
    pointer-events: none;
    animation: bpFloatDrift 18s ease-in-out infinite;
    opacity: 0.25;
    z-index: 2;
    font-size: 2rem;
}

.bp-float-1 {
    top: 12%;
    left: 8%;
    animation-delay: 0s;
}

.bp-float-2 {
    top: 20%;
    right: 10%;
    animation-delay: 3s;
    font-size: 1.5rem;
}

.bp-float-3 {
    bottom: 25%;
    left: 6%;
    animation-delay: 6s;
    font-size: 1.8rem;
}

.bp-float-4 {
    bottom: 18%;
    right: 8%;
    animation-delay: 9s;
    font-size: 2.2rem;
}

.bp-float-5 {
    top: 50%;
    left: 3%;
    animation-delay: 12s;
    font-size: 1.3rem;
}

.bp-float-6 {
    top: 55%;
    right: 5%;
    animation-delay: 15s;
    font-size: 1.6rem;
}

@keyframes bpFloatDrift {

    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);
    }
}

/* ============================================
   FEATURED BOOKS SECTION
   ============================================ */

.featured-books {
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
}

.featured-books::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(147, 197, 50, 0.08), transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -150px;
    pointer-events: none;
}

.featured-books::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(1, 166, 159, 0.06), transparent 70%);
    border-radius: 50%;
    bottom: -150px;
    left: -100px;
    pointer-events: none;
}

/* Featured Book Card */
.featured-book-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.featured-book-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(1, 166, 159, 0.2);
}

/* Cover */
.fb-cover {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f3ede5;
}

.fb-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-book-card:hover .fb-cover img {
    transform: scale(1.08);
}

/* Overlay */
.fb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: var(--space-3);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.featured-book-card:hover .fb-overlay {
    opacity: 1;
}

.fb-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #FFD700;
    font-size: 14px;
}

.fb-rating span {
    color: var(--color-white);
    font-weight: 600;
    margin-left: 6px;
    font-size: 15px;
}

/* Body */
.fb-body {
    padding: var(--space-3);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fb-age {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(1, 166, 159, 0.08);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-2);
    align-self: flex-start;
}

.fb-title {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--color-dark);
    margin-bottom: 6px;
    line-height: 1.3;
}

.fb-author {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: var(--space-2);
    font-style: italic;
}

.fb-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-light);
    margin-bottom: var(--space-3);
    flex: 1;
}

/* Actions */
.fb-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.fb-actions .btn {
    flex: 1;
    height: 40px;
    font-size: 13px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
}

.btn-amazon {
    background: linear-gradient(135deg, #FF9900 0%, #FF8C00 100%);
    color: var(--color-white);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 600;
    transition: var(--transition-base);
}

.btn-amazon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
    color: var(--color-white);
}

.btn-details {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: var(--transition-base);
}

.btn-details:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* ============================================
   BOOK CATEGORIES SECTION
   ============================================ */

.book-categories {
    background: linear-gradient(135deg, #FFF8F0 0%, #FFECD2 50%, #FFF0E0 100%);
    position: relative;
    overflow: hidden;
}

.book-categories::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.06), transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    pointer-events: none;
}

/* Category Card */
.category-card {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-1);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(1, 166, 159, 0.2);
    text-decoration: none;
    color: inherit;
}

.category-card:hover::before {
    transform: scaleY(1);
}

.cat-icon {
    font-size: 40px;
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(1, 166, 159, 0.1) 0%, rgba(147, 197, 50, 0.1) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.category-card:hover .cat-icon {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, rgba(1, 166, 159, 0.15) 0%, rgba(147, 197, 50, 0.15) 100%);
}

.cat-content {
    flex: 1;
}

.cat-title {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--color-dark);
    margin-bottom: 4px;
    transition: color var(--transition-fast);
}

.category-card:hover .cat-title {
    color: var(--color-primary);
}

.cat-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 6px;
}

.cat-desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text-light);
    margin: 0;
}

.cat-arrow {
    color: var(--color-border);
    font-size: 20px;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.category-card:hover .cat-arrow {
    color: var(--color-primary);
    transform: translateX(6px);
}

/* ============================================
   BEST SELLERS SECTION
   ============================================ */

.best-sellers {
    background: var(--color-bg-warm);
    position: relative;
    overflow: hidden;
}

.best-sellers::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(252, 218, 9, 0.1), transparent 70%);
    border-radius: 50%;
    top: -100px;
    left: -100px;
    pointer-events: none;
}

/* Bestseller Showcase */
.bestseller-showcase {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.bs-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: var(--color-dark);
    font-size: 14px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.bs-badge i {
    font-size: 18px;
}

/* Cover */
.bs-cover-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    padding: var(--space-3);
}

.bs-cover {
    position: relative;
    z-index: 2;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-width: 320px;
}

.bs-cover img {
    width: 100%;
    height: auto;
    display: block;
}

.bs-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: bsGlowPulse 3s ease-in-out infinite;
}

@keyframes bsGlowPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

/* Content */
.bs-content {
    padding: var(--space-3) 0;
}

.bs-title {
    font-family: var(--font-heading);
    font-size: 36px;
    color: var(--color-dark);
    margin-bottom: 8px;
    line-height: 1.2;
}

.bs-author {
    font-size: 16px;
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: var(--space-2);
}

.bs-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: var(--space-3);
    flex-wrap: wrap;
}

.bs-rating i {
    color: #FFD700;
    font-size: 18px;
}

.bs-rating span {
    font-weight: 700;
    color: var(--color-dark);
    font-size: 16px;
    margin-left: 4px;
}

.bs-rating small {
    color: var(--color-text-muted);
    font-size: 14px;
}

.bs-desc {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: var(--space-3);
}

/* Review */
.bs-reviews {
    margin-bottom: var(--space-4);
}

.bs-review {
    background: var(--color-bg);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    border-left: 4px solid var(--color-primary);
}

.bs-review-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 8px;
}

.bs-review-stars i {
    color: #FFD700;
    font-size: 14px;
}

.bs-review p {
    font-size: 15px;
    font-style: italic;
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 8px;
}

.bs-review span {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
}

/* Actions */
.bs-actions {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.bs-actions .btn {
    height: 52px;
    padding: 0 var(--space-4);
}

/* ============================================
   PUBLISHING JOURNEY SECTION
   ============================================ */

.publishing-journey {
    /* background: var(--color-bg); */
    background: url('../children_book_nest_images/Our\ Publishing\ Journey.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

/* Particles */
.pj-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.pj-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(1, 166, 159, 0.15);
    border-radius: 50%;
    animation: pjFloat 12s ease-in-out infinite;
}

.pj-particle:nth-child(1) {
    left: 8%;
    top: 15%;
    animation-delay: 0s;
}

.pj-particle:nth-child(2) {
    left: 85%;
    top: 25%;
    animation-delay: 3s;
    background: rgba(147, 197, 50, 0.15);
}

.pj-particle:nth-child(3) {
    left: 15%;
    top: 70%;
    animation-delay: 6s;
    background: rgba(252, 218, 9, 0.12);
}

.pj-particle:nth-child(4) {
    left: 75%;
    top: 80%;
    animation-delay: 9s;
    background: rgba(1, 166, 159, 0.12);
}

.pj-particle:nth-child(5) {
    left: 50%;
    top: 45%;
    animation-delay: 12s;
    background: rgba(147, 197, 50, 0.1);
}

@keyframes pjFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.2;
    }

    50% {
        transform: translateY(-25px) scale(1.3);
        opacity: 0.5;
    }
}

/* Timeline */
.pj-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.pj-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-accent) 100%);
    transform: translateX(-50%);
    border-radius: 3px;
    opacity: 0.3;
}

/* Step */
.pj-step {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.pj-step:last-child {
    margin-bottom: 0;
}

.pj-step:last-child .pj-connector {
    display: none;
}

.pj-step-card {
    width: 45%;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
    text-align: center;
}

.pj-step:nth-child(odd) .pj-step-card {
    margin-right: auto;
    margin-left: 0;
}

.pj-step:nth-child(even) .pj-step-card {
    margin-left: auto;
    margin-right: 0;
}

.pj-step-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(1, 166, 159, 0.2);
}

.pj-step-number {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin-bottom: var(--space-2);
    opacity: 0.3;
    transition: opacity var(--transition-base);
}

.pj-step-card:hover .pj-step-number {
    opacity: 0.6;
}

.pj-step-icon {
    font-size: 44px;
    margin-bottom: var(--space-2);
    display: block;
}

.pj-step-title {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.pj-step-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-light);
    margin: 0;
}

/* Connector dot on timeline */
.pj-step::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 30px;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--color-white);
    border: 4px solid var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(1, 166, 159, 0.1);
    z-index: 2;
}

.pj-connector {
    position: absolute;
    left: 50%;
    top: 50px;
    bottom: -40px;
    width: 3px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
    transform: translateX(-50%);
    opacity: 0.2;
}

/* ============================================
   STATISTICS SECTION
   ============================================ */

.stats-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, #008b85 100%);
    position: relative;
    overflow: hidden;
    padding: var(--space-7) 0;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.stat-item {
    text-align: center;
    padding: var(--space-3);
    position: relative;
    z-index: 1;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1;
    display: inline;
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--color-accent);
    display: inline;
    margin-left: 2px;
}

.stat-label {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

.testimonials-section {
    background: url('../children_book_nest_images/Reader\ Testimonials.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(1, 166, 159, 0.06), transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    pointer-events: none;
}

/* Testimonial Card */
.testimonial-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-family: Georgia, serif;
    font-size: 100px;
    color: var(--color-primary);
    opacity: 0.1;
    position: absolute;
    top: 10px;
    left: 30px;
    line-height: 1;
}

.testimonial-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: var(--space-3);
}

.testimonial-stars i {
    color: #FFD700;
    font-size: 20px;
}

.testimonial-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-text);
    font-style: italic;
    margin-bottom: var(--space-4);
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.testimonial-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-dark);
    text-align: left;
}

.testimonial-role {
    font-size: 14px;
    color: var(--color-text-muted);
    text-align: left;
}

/* Carousel controls */
.testimonials-section .carousel-control-prev,
.testimonials-section .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);
}

.testimonials-section .carousel-control-prev {
    left: -25px;
}

.testimonials-section .carousel-control-next {
    right: -25px;
}

.testimonials-section .carousel-control-prev:hover,
.testimonials-section .carousel-control-next:hover {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-color: transparent;
}

.testimonials-section .carousel-control-prev-icon,
.testimonials-section .carousel-control-next-icon {
    filter: invert(0.5);
    width: 20px;
    height: 20px;
}

.testimonials-section .carousel-control-prev:hover .carousel-control-prev-icon,
.testimonials-section .carousel-control-next:hover .carousel-control-next-icon {
    filter: invert(1);
}

.testimonials-section .carousel-indicators {
    position: relative;
    bottom: 0;
    margin-top: 30px;
    margin-bottom: 0;
}

.testimonials-section .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-border);
    border: none;
    margin: 0 5px;
}

.testimonials-section .carousel-indicators button.active {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    width: 32px;
    border-radius: var(--radius-full);
}

/* ============================================
   BOOK GALLERY SECTION
   ============================================ */

.book-gallery {
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 480px;
    gap: 10px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.gallery-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    /* width: 100%;
    height: 100%; */
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-3);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
    margin-bottom: 4px;
}

.gallery-title {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--color-white);
    margin: 0;
}


/* ============================================
   BOOK MODAL
   ============================================ */

.book-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
}

.book-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.book-modal-container {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.book-modal-overlay.active .book-modal-container {
    transform: translateY(0);
    opacity: 1;
}

.book-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-bg);
    border: none;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.book-modal-close:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: rotate(90deg);
}

.book-modal-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
}

.book-modal-images {
    padding: 24px;
    background: var(--color-bg-warm);
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
}

.book-modal-main-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3 / 4;
    margin-bottom: 16px;
    box-shadow: var(--shadow-md);
}

.book-modal-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.book-modal-thumbnails {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.book-modal-thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.book-modal-thumb:hover {
    opacity: 1;
    transform: translateY(-4px);
}

.book-modal-thumb.active {
    border-color: var(--color-primary);
    opacity: 1;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.book-modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-modal-info {
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.book-modal-label {
    display: inline-block;
    padding: 6px 16px;
    background: var(--color-secondary);
    color: var(--color-primary-dark);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    width: fit-content;
}

.book-modal-title {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--color-dark);
    margin-bottom: 16px;
    line-height: 1.3;
}

.book-modal-desc {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-light);
    margin-bottom: 32px;
}

.book-modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.book-modal-actions .btn {
    padding: 12px 24px;
    font-size: 14px;
}

/* Responsive */
/* @media (max-width: 768px) {
    .book-modal-content {
        grid-template-columns: 1fr;
    }
    
    .book-modal-images {
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        padding: 16px;
    }
    
    .book-modal-info {
        padding: 24px 20px;
    }
    
    .book-modal-title {
        font-size: 22px;
    }
    
    .book-modal-thumb {
        width: 60px;
        height: 60px;
    }
} */

/* ============================================
   CTA SECTION OVERRIDES
   ============================================ */

.cta-actions-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* ============================================
   RESPONSIVE — BOOKS PUBLISHED PAGE
   ============================================ */

@media (max-width: 1200px) {
    .books-hero .hero-title {
        font-size: 48px;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-item-wide {
        grid-column: span 2;
    }
}

@media (max-width: 992px) {
    .books-hero {
        min-height: 450px;
        padding: var(--space-6) 0 var(--space-5);
    }

    .books-hero .hero-title {
        font-size: 40px;
    }

    .bp-float {
        display: none;
    }

    /* Bestseller */
    .bs-title {
        font-size: 28px;
    }

    .bs-cover-wrapper {
        margin-bottom: var(--space-4);
    }

    /* Timeline */
    .pj-timeline::before {
        left: 20px;
    }

    .pj-step::after {
        left: 20px;
    }

    .pj-step-card {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        margin-right: 0 !important;
    }

    .pj-connector {
        left: 20px;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 220px;
    }

    .gallery-item-tall {
        grid-row: span 2;
    }

    .gallery-item-wide {
        grid-column: span 2;
    }

    /* Testimonials carousel */
    .testimonials-section .carousel-control-prev {
        left: 10px;
    }

    .testimonials-section .carousel-control-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .books-hero {
        min-height: 400px;
    }

    .books-hero .hero-title {
        font-size: 32px;
    }

    .books-hero .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .books-hero .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Featured books */
    .fb-title {
        font-size: 18px;
    }

    /* Category cards */
    .category-card {
        flex-direction: column;
        text-align: center;
        padding: var(--space-3);
    }

    .cat-arrow {
        display: none;
    }

    /* Bestseller */
    .bestseller-showcase {
        padding: var(--space-4);
    }

    .bs-title {
        font-size: 24px;
    }

    .bs-actions {
        flex-direction: column;
    }

    .bs-actions .btn {
        width: 100%;
    }

    /* Stats */
    .stat-number {
        font-size: 40px;
    }

    .stat-suffix {
        font-size: 28px;
    }

    /* Timeline */
    .pj-step-card {
        padding: var(--space-3);
    }

    .pj-step-title {
        font-size: 20px;
    }

    .pj-step-icon {
        font-size: 36px;
    }

    /* Testimonials */
    .testimonial-card {
        padding: var(--space-4);
    }

    .testimonial-text {
        font-size: 16px;
    }

    .testimonials-section .carousel-control-prev,
    .testimonials-section .carousel-control-next {
        display: none;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 180px;
        gap: 12px;
    }

    .gallery-item-tall {
        grid-row: span 1;
    }

    .gallery-item-wide {
        grid-column: span 2;
    }

    /* CTA */
    .cta-actions-row {
        flex-direction: column;
        align-items: center;
    }

    .cta-actions-row .cta-btn-main,
    .cta-actions-row .cta-secondary {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .books-hero .hero-title {
        font-size: 28px;
    }

    .featured-books .section-title,
    .book-categories .section-title,
    .best-sellers .section-title,
    .publishing-journey .section-title,
    .testimonials-section .section-title,
    .book-gallery .section-title {
        font-size: 28px;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    .gallery-item-wide {
        grid-column: span 1;
    }

    /* Stats */
    .stat-number {
        font-size: 32px;
    }

    .stat-suffix {
        font-size: 22px;
    }

    .stat-label {
        font-size: 12px;
    }

    /* Timeline */
    .pj-step-card {
        width: calc(100% - 50px);
        margin-left: 50px !important;
    }

    .pj-timeline::before {
        left: 16px;
    }

    .pj-step::after {
        left: 16px;
        width: 16px;
        height: 16px;
        border-width: 3px;
    }

    .pj-connector {
        left: 16px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {

    .bp-float,
    .pj-particle,
    .bs-glow {
        animation: none !important;
    }

    .featured-book-card,
    .category-card,
    .gallery-item,
    .pj-step-card {
        transition: none !important;
    }
}