/* New color variables for the theme */
:root {
    --primary-bg: #f8f9fa;
    --header-bg: #ffdf79;
    --btn-bg: #007bff;
    --btn-hover-bg: #0056b3;
    --card-bg: white;
    --text-color: #333;
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
}

p {
    color: #1F1E2280;
    font-size: 20px;
    font-weight: 500;
}

/* ----------------------------------- login ------------------------------------- */
.login-header {
    background: #8BD0FC;
    color: #1F1E22;
    padding: 30px 0;
    height: 650px;
}

.row-with-login-lines {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    height: 60px;
}

.login-header h1 {
    font-size: 30px;
    font-weight: 700;
    color: #1F1E22;
    margin-bottom: 0;
}

.login-header p {
    font-size: 20px;
    font-weight: 500;
    color: #1F1E2280;
    text-align: center;
    margin-bottom: 45px;
}

.signup-link {
    margin-top: 20px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #1F1E22;
}

.back-button {
    top: 0;
    right: 315px;
    color: #1F1E22;
    font-size: 20px;
    text-decoration: underline;
    padding: 8px 0px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 700;
}

.auth-card {
    width: 390px;
    height: 241px;
    margin: 2rem auto;
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.form-group input {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

.auth-links {
    font-size: 16px;
    font-weight: 600;
    color: #1F1E22;
    text-decoration: underline;
    text-align: end;
    margin-bottom: 20px;
}

.auth-links a {
    color: #1F1E22;
    text-decoration: underline;
    font-size: 0.9rem;
}

.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 16px;
    padding: 0;
    z-index: 10;
}

.password-toggle:hover {
    color: #333;
}

.password-toggle:focus {
    outline: none;
}

.btn-auth {
    background-color: #FFD740;
    border: none;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    color: #1F1E22;
    width: 300px;
    height: 50px;
    box-shadow: 2px 2px 20px 0px #00000026;
}

/* Social Login Styles */
.social-login-divider {
    margin: 20px 0;
    text-align: center;
    position: relative;
    color: #1F1E2280;
    font-size: 16px;
    font-weight: 600;
}

.social-login-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 15px;
}

.btn-social {
    justify-content: center;
    width: 91px;
    height: 30px;
}

.btn-social i {
    font-size: 20px;
}

/* ----------------------------------- register ------------------------------------- */
.register-header {
    background: #8BD0FC;
    color: #1F1E22;
    padding: 30px 0;
    height: 815px;
}

.row-with-register-lines {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    height: 60px;
}

.register-header h1 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 0;
}

.register-header p {
    font-size: 20px;
    font-weight: 500;
    color: #1F1E2280;
    text-align: center;
    margin-bottom: 45px;
}

.register-card {
    width: 390px;
    height: 415px;
    margin: 2rem auto;
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.btn-register {
    background-color: #FFD740;
    border: none;
    margin-top: 10px;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    color: #1F1E22;
    width: 300px;
    height: 50px;
    box-shadow: 2px 2px 20px 0px #00000026;
}

/* ----------------------------------- forgot password ------------------------------------- */
.fpassword-header {
    background: #8BD0FC;
    color: #1F1E22;
    padding: 30px 0;
    height: 410px;
}

.row-with-fpassword-lines {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    height: 60px;
}

.fpassword-header h1 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 0;
}

.fpassword-header p {
    font-size: 20px;
    font-weight: 500;
    color: #1F1E2280;
    text-align: center;
    margin-bottom: 45px;
}

.fpassword-card {
    width: 390px;
    height: 155px;
    margin: 2rem auto;
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.btn-fpassword {
    background-color: #FFD740;
    border: none;
    margin-top: 25px;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    color: #1F1E22;
    width: 300px;
    height: 50px;
    box-shadow: 2px 2px 20px 0px #00000026;
}

/* ----------------------------------- verify otp ------------------------------------- */
.verify-opt-header {
    background: #8BD0FC;
    color: #1F1E22;
    padding: 30px 0;
    height: 483px;
}

.row-with-verify-opt-lines {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    height: 60px;
}

.verify-opt-header h1 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 0;
}

.verify-opt-header p {
    font-size: 20px;
    font-weight: 500;
    color: #1F1E2280;
    text-align: center;
    margin-bottom: 45px;
}

.verify-opt-card {
    width: 390px;
    height: 176px;
    margin: 2rem auto;
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.btn-verify-opt {
    background-color: #FFD740;
    border: none;
    margin-top: 25px;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    color: #1F1E22;
    width: 300px;
    height: 50px;
    box-shadow: 2px 2px 20px 0px #00000026;
}

.otp-inputs {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.otp-inputs input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 18px;
    border-radius: 10px;
    border: 1px solid #ccc;
    background-color: #8BD0FC;
}

.otp-inputs input:focus {
    background-color: #ffffff;
    border: 2px solid #8BD0FC;
    outline: none;
}

.otp-inputs input:not(:placeholder-shown) {
    background-color: #ffffff;
    border: 2px solid #8BD0FC;
}

.timer {
    font-size: 16px;
    font-weight: 600;
    width: 265px;
    margin: auto;
    color: #1F1E22;
    /* padding: 5px 35px; */
    text-align: end;
    margin-bottom: 10px;
}

/* ----------------------------------- reset password ------------------------------------- */
.rpassword-header {
    background: #8BD0FC;
    color: #1F1E22;
    padding: 30px 0;
    height: 483px;
}

.row-with-rpassword-lines {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    height: 60px;
}

.rpassword-header h1 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 0;
}

.rpassword-header p {
    font-size: 20px;
    font-weight: 500;
    color: #1F1E2280;
    text-align: center;
    margin-bottom: 45px;
}

.rpassword-card {
    width: 390px;
    height: 220px;
    margin: 2rem auto;
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.btn-rpassword {
    background-color: #FFD740;
    border: none;
    margin-top: 25px;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    color: #1F1E22;
    width: 300px;
    height: 50px;
    box-shadow: 2px 2px 20px 0px #00000026;
}

/* ----------------------------------- Tems & Conditions---------------------- */
.terms-container {
    max-width: 1320px;
    margin: 60px auto;
    padding: 0px 40px;
}

.terms-container h1 {
    font-size: 2.5rem;
    text-align: start;
    margin-bottom: 40px;
    color: #1F1E22;
    display: none;
}

.terms-container h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1F1E22;
    margin-top: 30px;
}

.terms-container p {
    font-size: 1rem;
    font-weight: 400;
    line-height: 22px;
    color: #1F1E22;
    margin-bottom: 20px;
}

.terms-container ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.terms-container ul li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #555;
    list-style-type: disc;
}

.breadcrumb-item.active a {
    color: #1F1E22;
    font-weight: 700;
    font-size: 16px;
}

/* -------------------------- about us -------------------------------------------------------- */
.aboutus-info {
    padding: 25px;
    /* width: 500px; */
    height: max-content;
    margin-bottom: 28px;
}

.aboutus-info h2 {
    color: #1F1E22;
    font-size: 30px;
    font-weight: 700;
}

.aboutus-info p {
    color: #1F1E2280;
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
}

.aboutus-info h4 {
    color: #1F1E22;
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
}

.aboutus-info ul li {
    color: #1F1E2280;
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    margin-bottom: 20px;
}

.aboutus-img {
    width: 525px;
    height: 450px;
}

/* -----------------------------------contact us--------------------------------------- */
.contact-info h2 {
    color: #1F1E22;
    font-size: 30px;
    font-weight: 700;
}

ul.list-contact li h4 {
    color: #1F1E22;
    font-size: 20px;
    font-weight: 700;
}

ul.list-contact li span {
    color: #1F1E22;
    font-size: 20px;
    font-weight: 500;
    line-height: 30px;
}

.contact-address {
    width: 70%;
}

.contact-form-container {
    background-color: #FCE76C;
    padding: 30px;
    border-radius: 10px;
}

.contact-form input,
.contact-form textarea {
    margin-bottom: 15px;
}

.contact-icon {
    width: 65px;
    height: 65px;
}

.contact-btn {
    width: 200px;
    height: 50px;
    background-color: #8BD0FC;
    border-radius: 50px;
    border: none;
    color: #1F1E22;
    font-weight: 600;
    font-size: 16px;
    margin-top: 20px;
}

/* -------------------------------------------------Edit Profile--------------------------------------------------------- */
.edit-profile-header {
    background-color: #87CEFA;
    padding: 60px 0;
    text-align: center;
    height: 641px;
}

.row-with-edit-lines {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.row-with-edit-lines .border-line {
    height: 2px;
    width: 80px;
    background-color: #1F1E22;
}

.edit-profile-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1F1E22;
    margin: 0;
}

.edit-profile-header p {
    margin: 0 0 30px;
    color: #1F1E22AA;
    font-size: 16px;
}

.edit-profile-card {
    background: #ffffff;
    width: 390px;
    height: 395px;
    margin: 0 auto;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.edit-profile-card .profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    /* overflow: hidden; */
    margin: 0 auto 20px;
    position: relative;
}

.edit-profile-card .profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid;
    border-radius: 50%;
}

.edit-profile-card input[type="text"],
.edit-profile-card input[type="email"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.edit-profile-card input:focus {
    border: 2px solid #8BD0FC;
    outline: none;
    background-color: #fff;
}

.btn-save-profile {
    width: 300px;
    height: 50px;
    margin-top: 40px;
    background: #FCE25C;
    color: #1F1E22;
    padding: 10px 40px;
    border-radius: 30px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.profile-img-wrapper {
    position: relative;
    width: 100px;
    margin: 0 auto 20px;
}

.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    /* overflow: hidden; */
    position: relative;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.edit-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #8BD0FC;
    color: #fff;
    border-radius: 50%;
    padding: 6px;
    font-size: 14px;
    cursor: pointer;
    border: 2px solid #fff;
}

.edit-icon i {
    pointer-events: none;
}

/* ---------------------------------------------------- Hero Section ---------------------------------------------------- */
.hero {
    background-color: #b3e5fc;
    padding: 50px 15px;
    text-align: center;
    /* height: 306px; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 50px;
    font-weight: 700;
    margin: 0 0 15px;
    line-height: 1.2;
    color: #1F1E22;
}

.hero p {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
    max-width: 600px;
    color: #1F1E2280;
}

/* Button Styles */
.btn-primary {
    margin-top: 20px;
    background-color: #FF8F5C;
    border: none;
    border-radius: 50px;
    width: 180px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #e67e4a;
    transform: translateY(-2px);
}

h6.search-text {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #1F1E22;
    margin: 5px;
}

.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ---------------------------------------------------- animated book ---------------------------------------------------- */
.hero-sub {
    background-color: #b3e5fc;
    color: #1a202c;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 445px;
}

/* CTA Button */
.btn-primary {
    background-color: #fb7c49;
    color: white;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    border-radius: 9999px;
    display: inline-block;
    margin-top: 1.5rem;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

/* Book container */
.book-display {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1.5rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: nowrap;
    overflow: visible;
    perspective: 1200px;
}

/* Each book container */
.book {
    width: 290px;
    height: 427px;
    box-shadow: 0 6px 20px rgb(0 0 0 / 0.15);
    border-radius: 0.4rem;
    background-color: white;
    overflow: hidden;
    transform-origin: bottom center;
    position: relative;
    cursor: pointer;
    user-select: none;
    filter: drop-shadow(0 1.5px 1.2px rgba(0, 0, 0, 0.1));
}

/* Book image */
.book img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    display: block;
    border-radius: 0.4rem;
}

/* Tilt positions */
.book:nth-child(1) {
    transform: rotate(-12deg) translateX(-12px);
    z-index: 5;
}

.book:nth-child(2) {
    transform: rotate(-6deg) translateX(-6px);
    z-index: 999;
}

.book:nth-child(3) {
    transform: rotate(-1deg) translateX(0);
    z-index: 999;
}

.book:nth-child(4) {
    transform: rotate(6deg) translateX(6px);
    z-index: 99;
}

.book:nth-child(5) {
    transform: rotate(12deg) translateX(12px);
    z-index: 9;
}

/* Keyframes */
@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-200px) rotate(var(--init-rotation));
    }

    100% {
        opacity: 1;
        transform: rotate(var(--final-rotation)) translateX(var(--final-x));
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(200px) rotate(var(--init-rotation));
    }

    100% {
        opacity: 1;
        transform: rotate(var(--final-rotation)) translateX(var(--final-x));
    }
}

/* Hide initially */
.book {
    opacity: 0;
    transform: translateX(0) rotate(0deg);
    transition: filter 0.3s ease;
}

/* Animation triggers */
.book.animated-left:nth-child(1) {
    --init-rotation: -10deg;
    --final-rotation: -10deg;
    /* <- rotate RIGHT after animating in from left */
    --final-x: 10px;
    animation: slideInLeft 0.9s ease forwards;
}

.book.animated-right:nth-child(2) {
    --init-rotation: 10deg;
    --final-rotation: 10deg;
    /* <- rotate LEFT after animating in from right */
    --final-x: -65px;
    animation: slideInRight 1.1s ease forwards;
}

.book.animated-left:nth-child(3) {
    --init-rotation: -10deg;
    --final-rotation: -10deg;
    --final-x: 10px;
    animation: slideInLeft 1.3s ease forwards;
}

.book.animated-right:nth-child(4) {
    --init-rotation: 10deg;
    --final-rotation: 10deg;
    --final-x: -65px;
    animation: slideInRight 1.5s ease forwards;
}

.book.animated-left:nth-child(5) {
    --init-rotation: -10deg;
    --final-rotation: -10deg;
    --final-x: 10px;
    animation: slideInLeft 1.7s ease forwards;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Large Desktop (1440px and up) */
.book {
    transform: rotate(var(--final-rotation, 0deg)) translateX(var(--final-x, 0px));
    transition: transform 0.4s ease;
}

/* Base keyframes */
@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px) rotate(var(--init-rotation));
    }

    100% {
        opacity: 1;
        transform: rotate(var(--final-rotation)) translateX(var(--final-x));
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100px) rotate(var(--init-rotation));
    }

    100% {
        opacity: 1;
        transform: rotate(var(--final-rotation)) translateX(var(--final-x));
    }
}

/* Large Desktop */
@media (min-width: 1440px) {
    .book-display {
        gap: 2rem;
        margin-top: 5rem;
    }

    .book {
        width: 320px;
        height: 470px;
    }
}

/* Desktop */
@media (max-width: 1439px) and (min-width: 1024px) {
    .hero-sub {
        height: 320px;
    }

    .book-display {
        gap: 1.2rem;
    }

    .book {
        width: 260px;
        height: 380px;
    }

    .book.animated-left:nth-child(1) {
        --final-rotation: -10deg;
        --final-x: 75px;
    }

    .book.animated-right:nth-child(2) {
        --final-rotation: 5deg;
        --final-x: 0px;
    }

    .book.animated-left:nth-child(3) {
        --final-rotation: -10deg;
        --final-x: 40px;
    }

    .book.animated-right:nth-child(4) {
        --final-rotation: 5deg;
        --final-x: -30px;
    }

    .book.animated-left:nth-child(5) {
        --final-rotation: -10deg;
        --final-x: 12px;
    }
}

/* Tablet Landscape */
@media (max-width: 1023px) and (min-width: 768px) {
    .hero-sub {
        height: 225px;
    }

    .book-display {
        gap: 1rem;
        margin-top: 3rem;
    }

    .book {
        width: 200px;
        height: 290px;
    }

    .book.animated-left:nth-child(1) {
        --final-rotation: -10deg;
        --final-x: 55px;
    }

    .book.animated-right:nth-child(2) {
        --final-rotation: 5deg;
        --final-x: 0px;
    }

    .book.animated-left:nth-child(3) {
        --final-rotation: -10deg;
        --final-x: 33px;
    }

    .book.animated-right:nth-child(4) {
        --final-rotation: 5deg;
        --final-x: -16px;
    }

    .book.animated-left:nth-child(5) {
        --final-rotation: -12deg;
        --final-x: 20px;
    }
}

/* Tablet Portrait */
@media (max-width: 767px) and (min-width: 640px) {
    .hero-sub {
        height: 300px;
    }

    .book-display {
        gap: 0.8rem;
        margin-top: 2rem;
    }

    .book {
        width: 160px;
        height: 230px;
    }

    .book.animated-left:nth-child(1) {
        --final-rotation: -6deg;
        --final-x: -6px;
    }

    .book.animated-right:nth-child(2) {
        --final-rotation: -3deg;
        --final-x: -3px;
    }

    .book.animated-left:nth-child(3) {
        --final-rotation: 0deg;
        --final-x: 0;
    }

    .book.animated-right:nth-child(4) {
        --final-rotation: 3deg;
        --final-x: 3px;
    }

    .book.animated-left:nth-child(5) {
        --final-rotation: 6deg;
        --final-x: 6px;
    }
}

/* Mobile Large */
@media (max-width: 639px) and (min-width: 480px) {
    .hero-sub {
        height: 160px;
    }

    .book-display {
        gap: 0.5rem;
        margin-top: 1.5rem;
        padding: 0 0.5rem;
    }

    .book {
        width: 130px;
        height: 190px;
    }

    .book.animated-left:nth-child(1) {
        --final-rotation: -10deg;
        --final-x: 30px;
    }

    .book.animated-right:nth-child(2) {
        --final-rotation: 10deg;
        --final-x: -18px;
    }

    .book.animated-left:nth-child(3) {
        --final-rotation: -10deg;
        --final-x: 13px;
    }

    .book.animated-right:nth-child(4) {
        --final-rotation: 10deg;
        --final-x: -25px;
    }

    .book.animated-left:nth-child(5) {
        --final-rotation: -10deg;
        --final-x: 10px;
    }
}

/* Mobile Small */
@media (max-width: 479px) {
    .hero-sub {
        height: 250px;
    }

    .book-display {
        /* gap: 0.3rem;
            margin-top: 1rem; */
        padding: 0 0.25rem;
        /* overflow-x: auto;
            scroll-snap-type: x mandatory; */
    }

    .book {
        width: 110px;
        height: 165px;
        flex-shrink: 0;
        scroll-snap-align: center;
    }

    .book.animated-left:nth-child(1) {
        --final-rotation: -2deg;
        --final-x: -2px;
    }

    .book.animated-right:nth-child(2) {
        --final-rotation: -1deg;
        --final-x: -1px;
    }

    .book.animated-left:nth-child(3) {
        --final-rotation: 0deg;
        --final-x: 0;
    }

    .book.animated-right:nth-child(4) {
        --final-rotation: 1deg;
        --final-x: 1px;
    }

    .book.animated-left:nth-child(5) {
        --final-rotation: 2deg;
        --final-x: 2px;
    }
}

/* Extra Small */
@media (max-width: 319px) {
    .hero-sub {
        height: 220px;
    }

    .book-display {
        padding: 0 0.1rem;
    }

    .book {
        width: 90px;
        height: 135px;
    }

    .book.animated-left:nth-child(1),
    .book.animated-right:nth-child(2),
    .book.animated-left:nth-child(3),
    .book.animated-right:nth-child(4),
    .book.animated-left:nth-child(5) {
        --final-rotation: 0deg;
        --final-x: 0;
    }
}


/* Section Headers */
.row-with-lines {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    height: 80px;
    margin-bottom: 20px;
}

.border-line {
    height: 1px;
    background-color: #1F1E22;
    width: 120px;
    flex-shrink: 0;
}

.row-with-lines h2 {
    font-size: 30px;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
}

.view-search {
    background-image: linear-gradient(45deg, #FCE76C 50%, transparent 50%);
    background-position: 100%;
    background-size: 400%;
    transition: background-position 300ms ease-in-out;
}

.view-search:hover {
    background-position: 0;
    transform: translateY(0px) !important;
}

/* Slider Base Styles */
.slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.3s ease;
    width: max-content;
}

.slider-item {
    flex: 0 0 auto;
    margin-right: 20px;
}

/* Navigation Arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #FF8F5C;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.slider-nav:hover {
    background: #e67e4a;
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: 10px;
}

.slider-nav.next {
    right: 10px;
}

/* Category Slider */
.category-slider-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 50px;
}

.category-slider .slider-item {
    width: 180px;
}

.category-card {
    text-align: center;
    width: 150px;
    margin: 0 auto;
    transition: transform 0.3s ease;
    opacity: 1;
    transform: translateY(0px);
    transition: opacity 0.5s, transform 0.5s;
    margin-top: 30px;
}

.category-image-wrapper {
    position: relative;
    width: 120px;
    height: 170px;
    margin: 0 auto;
    margin-top: 5px;
}

.circle-bg {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 160px;
    background-color: #FFE76A;
    border-radius: 50%;
    z-index: 0;
}

.book-cover {
    position: relative;
    width: 120px;
    height: 175px;
    object-fit: fill;
    z-index: 1;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.category-image-wrapper:hover .book-cover {
    transform: translate(-50%, -60%) scale(1.07);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.category-title {
    margin-top: 15px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* Book Slider */
.book-slider-container {
    position: relative;
    max-width: 90%;
    margin: 0 auto;
    padding: 0 50px;
}

.book-slider .slider-item {
    width: calc(25% - 300px);
    min-width: 250px;
}

.book-card {
    text-align: center;
    width: 100%;
    max-width: 260px;
    height: 420px;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.book-image-wrapper {
    position: relative;
    width: 230px;
    height: 310px;
    margin: 0 auto;
}

.squere-bg {
    position: absolute;
    top: 7%;
    left: 60%;
    transform: translateX(-50%);
    width: 200px;
    height: 292px;
    background-color: #8BD0FC;
    z-index: 0;
}


.trending-book-cover {
    position: relative;
    width: 200px;
    height: 292px;
    object-fit: fill;
    z-index: 1;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    transform-origin: left center;
}

.book-image-wrapper:hover .trending-book-cover {
    transform: scale(1.15);
}

.book-card-body {
    padding: 12px;
    margin-top: 15px;
}

.book-card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    height: 2.6em;
    color: #333;
}

.book-card-author {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Popular Authors Section */
.popular-authors {
    background-color: #FCE76C;
    padding: 60px 20px;
    margin: 80px 0;
    border-radius: 20px;
}

.author-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 45px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.author-card {
    text-align: center;
    padding: 5px;
    border-radius: 10px;
    transition: transform 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.author-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.author-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid white;
    transition: transform 0.3s ease;
}

.author-card:hover img {
    transform: scale(1.1);
}

.author-card h6 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

/* View All Button */
.view-all-btn {
    width: 180px;
    height: 50px;
    background: #8BD0FC;
    color: #1F1E22;
    border: none;
    padding: 10px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}

.view-all-btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.view-all-btn:hover .search-text {
    color: #ffffff;
}

/* Section Spacing */
.categories,
.trending-books,
.new-releases,
.more-by-author {
    margin: 80px 0;
    padding: 0 15px;
}

/* --------------------------------------------------------------------------------- */
/* Enhanced Responsive Author Grid and Components */

.all-author-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
    padding: 0 15px;
}

.all-author-card {
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
    width: 100%;
    max-width: 280px;
    min-height: 273px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.all-author-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.author-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 4px solid #f8f9fa;
    transition: border-color 0.3s ease;
    flex-shrink: 0;
}

.all-author-card:hover .author-image {
    border-color: #8BD0FC;
}

.author-name {
    font-size: 18px;
    font-weight: 600;
    color: #1F1E22;
    margin-bottom: 10px;
    line-height: 1.3;
    word-wrap: break-word;
}

.author-books-count {
    color: #1F1E2280;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 15px;
}

.page-header {
    background: #8BD0FC;
    color: #1F1E22;
    padding: 30px 0;
    height: 232px;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.search-input {
    border-radius: 25px;
    border: 1px solid #ddd;
    padding: 12px 20px;
    font-size: 16px;
    width: 100%;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
    outline: none;
}

.no-authors {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-authors i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #ddd;
}

.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.search-box .input-group {
    position: relative;
    width: 100%;
}

.search-box .form-control {
    border-radius: 25px !important;
    padding-right: 45px !important;
    border: 2px solid #ddd;
    height: 50px;
    width: 100%;
    font-size: 16px;
}

.search-icons {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    display: flex;
    gap: 5px;
}

.search-icons i {
    font-size: 18px;
    color: #6c757d;
    transition: color 0.3s ease;
    padding: 5px;
}

#cancelIcon {
    color: #dc3545;
}

#cancelIcon:hover {
    color: #c82333;
}

.breadcrumb-container {
    padding: 15px 0;
    margin-bottom: 20px;
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.breadcrumb-item {
    font-size: 16px;
    word-break: break-word;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: ">";
    color: #1F1E22;
    font-weight: 700;
    padding: 0 8px;
}

.breadcrumb-item a {
    color: #1F1E22;
    font-weight: 700;
    text-decoration: none;
    word-wrap: break-word;
}

.breadcrumb-item a:hover {
    color: #1F1E22;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #1F1E22;
    font-weight: 700;
    font-size: 16px;
}

.author-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000 !important;
    max-height: 250px;
    overflow-y: auto;
}

.author-search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.author-search-title {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.author-clear-search-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.author-clear-search-btn:hover {
    background-color: #e9ecef;
    color: #333;
}

.author-search-content {
    max-height: 300px;
    overflow-y: auto;
}

.author-search-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-search-item:hover {
    background-color: #f8f9fa;
}

.author-search-item:last-child {
    border-bottom: none;
}

.author-search-icon {
    color: #666;
    font-size: 14px;
    width: 16px;
}

.author-search-text {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.author-search-type {
    font-size: 12px;
    color: #666;
    background-color: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
}

.no-search-results {
    text-align: center;
    padding: 60px 20px;
    display: none;
}

.no-search-results img {
    max-width: 300px;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    opacity: 0.7;
}

.no-search-results h3 {
    color: #6c757d;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.no-search-results p {
    color: #8e9297;
    font-size: clamp(14px, 2vw, 16px);
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.5;
}

.author-hero {
    color: #ffffff;
    padding: 80px 0;
    border-bottom: 1px solid #1F1E221A;
}

.author-image-large {
    width: 250px;
    height: 300px;
    object-fit: cover;
    padding: 5px;
}

.author-info {
    background: #8BD0FC;
    padding: 25px;
}

.author-info h1 {
    font-size: 20px;
    font-weight: 700;
    color: #1F1E22;
}

.author-meta {
    font-size: 18px;
    font-weight: 500;
    opacity: 0.9;
    color: #1F1E2280;
}

.author-about {
    font-size: 18px;
    font-weight: 700;
    color: #1F1E22;
    margin-bottom: 0;
}

.author-bio {
    font-size: 16px;
    font-weight: 500;
    color: #1F1E22;
    margin-bottom: 0;
}

h2.mb-4 {
    font-size: 30px;
    color: #1F1E22;
    font-weight: 700;
}

.publish-book-card {
    text-align: center;
    width: 100%;
    max-width: 260px;
    height: 420px;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.publish-book-image-wrapper {
    position: relative;
    width: 230px;
    height: 310px;
    margin: 0 auto;
}

.publish-squere-bg {
    position: absolute;
    top: 7%;
    left: 60%;
    transform: translateX(-50%);
    width: 200px;
    height: 292px;
    background-color: #FCE76C;
    z-index: 0;
}

.publish-book-cover {
    position: relative;
    width: 200px;
    height: 292px;
    object-fit: cover;
    z-index: 1;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    transform-origin: left center;
}

.publish-book-image-wrapper:hover .publish-book-cover {
    transform: scale(1.15);
}

.publish-book-card-body {
    padding: 12px;
}

.publish-book-card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    height: 2.6em;
    color: #1F1E22;
}

.publish-book-year {
    font-size: 16px;
    font-weight: 500;
    color: #1F1E22;
    margin: 0;
}

/* --------------------------------All Category---------------------------------------------- */
.cat-header {
    background: #8BD0FC;
    color: #1F1E22;
    padding: 30px 0;
    height: 271px;
    margin-bottom: 50px;
}

.row-with-cat-lines {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    height: 60px;
}

.row-with-cat-lines h2 {
    font-size: 30px;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
}

.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    /* max-height: 250px; */
    overflow: hidden;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-radius: 8px 8px 0 0;
}

.search-results-title {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.clear-search-btn {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
    font-weight: 500;
}

.clear-search-btn:hover {
    background-color: #f5c6cb;
}

.search-results-content {
    max-height: 320px;
    overflow-y: auto;
}

.search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-type {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
}

.search-result-title {
    font-weight: 500;
    color: #333;
    margin: 2px 0;
}

.search-result-subtitle {
    font-size: 14px;
    color: #666;
}

.no-results-message {
    padding: 20px 16px;
    text-align: center;
    color: #6c757d;
}

.empty-search-message {
    padding: 20px 16px;
    text-align: center;
    color: #6c757d;
}

.empty-search-message i {
    font-size: 24px;
    margin-bottom: 8px;
    color: #adb5bd;
}

.search-box {
    position: relative;
}

.search-loading {
    padding: 16px;
    text-align: center;
    color: #6c757d;
}

.search-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.page-header-cat-book {
    background: #8BD0FC;
    color: #1F1E22;
    padding: 30px 0;
    height: 145px;
    margin-bottom: 50px;
}

.cat-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cat-header p {
    font-size: 20px;
    font-weight: 500;
    color: #1F1E2280;
    text-align: center;
    margin-bottom: 45px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 40px;
}

.all-category-card {
    text-align: center;
    width: 185px;
    height: 250px;
}

.all-category-image-wrapper {
    position: relative;
    width: 120px;
    height: 170px;
    margin: 0 auto;
    margin-top: 5px;
}

.all-circle-bg {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 160px;
    background-color: #FFE76A;
    border-radius: 50%;
    z-index: 0;
}

.all-book-cover {
    position: relative;
    width: 120px;
    height: 175px;
    object-fit: fill;
    z-index: 1;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.all-category-image-wrapper:hover .all-book-cover {
    transform: translate(-50%, -60%) scale(1.07);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.all-category-title {
    margin-top: 20px;
    font-size: 14px;
    font-weight: 700;
    color: #1F1E22;
}

.category-books-count {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #1F1E22;
    margin-top: 4px;
}

/* ---------------------------------- Category id base books-------------------------------------------- */
/* Custom scrollbar for filter */
.filter-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.filter-scrollbar::-webkit-scrollbar-thumb {
    background-color: #f97316;
    border-radius: 20px;
}

/* Button focus outline */
button:focus,
select:focus,
input:focus {
    outline: 2px solid #2563eb;
    outline-offset: 1px;
}

/* star color */
.star {
    color: #f97316;
}

/* truncate for long text */
.truncate-2line {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cat-search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.cat-search-box .cat-input-group {
    position: relative;
    width: 100%;
}

.cat-search-box .cat-form-control {
    border-radius: 0px !important;
    padding-right: 45px !important;
    height: 50px;
    width: 100%;
    font-size: 16px;
}

.cat-search-icons {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    display: flex;
    gap: 5px;
}

.cat-search-icons i {
    font-size: 18px;
    color: #6c757d;
    transition: color 0.3s ease;
    padding: 5px;
}

.cat-search-icons i:hover {
    color: #007bff;
}

#cat-cancelIcon {
    color: #dc3545;
}

#cat-cancelIcon:hover {
    color: #c82333;
}

/* Layout - Enhanced Responsive */
.main-wrapper {
    display: flex;
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* Sidebar - Fully Responsive */
.filter-search-sidebar {
    background-color: #8BD0FC;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 20px;
    /* position: sticky; */
    top: 20px;
    max-height: max-content;
    margin-bottom: 10px;
}

.cat-search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000 !important;
    max-height: 250px;
    overflow-y: auto;
}

.cat-search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.cat-search-results-title {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.cat-clear-search-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.cat-clear-search-btn:hover {
    background-color: #e9ecef;
    color: #333;
}

.cat-search-results-content {
    max-height: 300px;
    overflow-y: auto;
}

.cat-search-result-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cat-search-result-item:hover {
    background-color: #f8f9fa;
}

.cat-search-result-item:last-child {
    border-bottom: none;
}

.cat-search-result-icon {
    color: #666;
    font-size: 14px;
    width: 16px;
}

.cat-search-result-text {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.cat-search-result-type {
    font-size: 12px;
    color: #666;
    background-color: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
}

.no-recent-searches {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.cat-input-group {
    position: relative;
}

.filter-sidebar {
    width: 360px;
    background-color: #8BD0FC;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 20px;
    /* position: sticky; */
    top: 20px;
    max-height: max-content;
    overflow-y: auto;
    flex-shrink: 0;
}

.filter-sidebar h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1F1E22;
    border-bottom: 1px solid #1F1E22;
    padding-bottom: 15px;
}

.filter-sidebar select {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 700;
    color: #1F1E22;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

#clearFilters {
    width: 150px;
    height: 50px;
    background-color: #FCE76C;
    color: #1F1E22;
    font-weight: 700;
    font-size: 16px;
    flex: 1;
    min-width: 120px;
    padding: 10px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button[type="submit"] {
    width: 150px;
    height: 50px;
    background-color: #FF8F5C;
    color: #1F1E22;
    font-weight: 700;
    font-size: 16px;
    flex: 1;
    min-width: 120px;
    padding: 10px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #ff7043;
    transform: translateY(-2px);
}

/* Book List - Enhanced Responsive Grid */
.book-list {
    flex-grow: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 20px;
    min-height: auto;
    max-height: none;
}

.book-list article {
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

.category-book-card {
    width: 100%;
    max-width: 485px;
    height: auto;
    min-height: 220px;
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.category-book-image-wrapper {
    position: relative;
    width: 135px;
    height: 190px;
    flex-shrink: 0;
}

.category-squere-bg {
    width: 120px;
    height: 175px;
    position: absolute;
    top: 7%;
    left: 57%;
    transform: translateX(-50%);
    background-color: #FCE76C;
    z-index: 0;
}

.category-book-cover {
    position: relative;
    width: 120px;
    height: 175px;
    object-fit: cover;
    z-index: 1;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    transform-origin: left center;
}

.category-book-image-wrapper:hover .category-book-cover {
    transform: scale(1.15);
}

.book-content {
    margin-top: 22px;
    background: #ffffff;
    margin-right: 25px;
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.15);
    width: 275px;
    height: 145px;
    flex: 1;
    /* display: flex; */
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
    border-radius: 10px;
}

.book-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #1F1E22;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-content p {
    margin: 4px 0;
    font-size: 16px;
    font-weight: 500;
    color: #1F1E2288;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.meta {
    font-size: 12px;
    color: #999;
}

.book-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.rating {
    color: #FFA500;
    display: flex;
    align-items: center;
}

.star {
    margin-right: 2px;
    font-size: 16px;
}

.view-button {
    box-shadow: 2px 2px 20px 0px #00000026;
    width: 100px;
    height: 40px;
    background-color: #38BDF8;
    color: white;
    padding: 6px 14px;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;

    background-image: linear-gradient(45deg, #FCE76C 50%, transparent 50%);
    background-position: 100%;
    background-size: 400%;
    transition: background-position 300ms ease-in-out;
}

.view-button:hover {
    background-position: 0;
}

.view-text {
    padding: 17px;
    text-align: center;
    color: #1F1E22;
    font-weight: 700;
    font-size: 16px;
}

/* Select2 Responsive Styles */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #1F1E22 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 28px !important;
}

.select2-container--default .select2-selection--single {
    background-color: #fff !important;
    height: 40px !important;
    margin-bottom: 20px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    display: block;
    padding: 5px !important;
    padding-left: 8px;
    padding-right: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.select2-container {
    box-sizing: border-box;
    display: inline-block;
    margin: 0;
    position: relative;
    vertical-align: bottom !important;
    width: 100% !important;
}

/* --------------------------------------Book Detail-------------------------------- */

.book-details-hero {
    color: #ffffff;
    padding: 80px 0;
    border-bottom: 1px solid #1F1E221A;
}

.book-details-image-large {
    width: 400px;
    height: 585px;
    object-fit: cover;
    /* padding: 5px; */
}

.book-details-content {
    background-image: url('/assets/img/Group%2023.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 500px;
    height: 455px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.book-details-info {
    background: rgba(139, 208, 252, 0.65);
    padding: 25px;
    width: 500px;
    height: max-content;
    border-radius: 8px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.15);
    margin-bottom: 28px;
}

.book-des-col-divider {
    border-left: 1px solid #8BD0FC;
    border-right: 1px solid #8BD0FC;
}

.book-des-col-divider1 {
    border-right: 1px solid #8BD0FC;
}

.book-des {
    background: #FCE76C;
    padding: 5px;
    width: 500px;
    height: max-content;
    border-radius: 8px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.15);
}

.book-des-row {
    width: 500px;
    height: max-content;
    margin: 0;
    text-align: center;
    display: flex;
    align-items: center;
}

.book-des-col {
    padding: 0px;

}

p.book-des-p {
    margin-bottom: 0;
    font-size: 20px;
    font-weight: 700;
}

p.book-des-p strong {
    margin-bottom: 0;
    font-size: 18px;
    font-weight: 700;
}

.book-details-info h1 {
    font-size: 40px;
    font-weight: 700;
    color: #1F1E22;
}

.book-details-meta {
    font-size: 18px;
    font-weight: 500;
    opacity: 0.9;
    color: #1F1E2280;
}

.book-details-about {
    font-size: 18px;
    font-weight: 700;
    color: #1F1E22;
    margin-bottom: 0;
}

.book-details-bio {
    font-size: 16px;
    font-weight: 500;
    color: #1F1E22;
    margin-bottom: 0;
    height: max-content;
}

.book-details-about {
    font-size: 18px;
    font-weight: 700;
    color: #1F1E22;
    margin-bottom: 8px;
}

.rating-box {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.rating-stars {
    font-size: 20px;
    font-weight: 700;
    color: #FF8F5C;
    display: flex;
    align-items: center;
    gap: 4px;
}

.review-count {
    font-size: 20px;
    color: #1F1E22;
    font-weight: 700;
}

.book-actions {
    margin-top: 10px;
    text-align: center;
}

.read-book {
    width: 180px;
    height: 50px;
    border-radius: 50px;
    background-color: #FCE76C;
    padding: 10px 30px;
}

.read-book:hover {
    background-color: #FCE76C;
}

.read-book span {
    color: #1F1E22;
    font-size: 16px;
    font-weight: 700;
}

.audio {
    width: 180px;
    height: 50px;
    border-radius: 50px;
    background-color: #FCE76C;
    padding: 10px 30px;
}

.audio:hover {
    background-color: #FCE76C;
}

.audio span {
    color: #1F1E22;
    font-size: 16px;
    font-weight: 700;
}

.more-by-author-container {
    width: 1500px;
    margin: auto;
}

.more-by-author-card {
    text-align: center;
    width: 100%;
    max-width: 260px;
    height: 420px;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.more-by-author-image-wrapper {
    position: relative;
    width: 230px;
    height: 310px;
    margin: 0 auto;
}

.more-by-author-bg {
    position: absolute;
    top: 7%;
    left: 60%;
    transform: translateX(-50%);
    width: 200px;
    height: 292px;
    background-color: #8BD0FC;
    z-index: 0;
}

.more-by-author-cover {
    position: relative;
    width: 200px;
    height: 292px;
    object-fit: cover;
    z-index: 1;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    transform-origin: left center;
}

.more-by-author-image-wrapper:hover .more-by-author-cover {
    transform: scale(1.15);
}

.more-by-author-body {
    padding: 12px;
    margin-top: 15px;
}

.more-by-author-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    height: 2.6em;
    color: #333;
}

.more-by-author-author {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.more-author-slider-container {
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding: 10px 0;
}

.book-more-author-slider {
    display: flex;
    transition: transform 0.4s ease-in-out;
    will-change: transform;
}

/* Navigation Arrows */
.more-author-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #FF8F5C;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease;
}

.more-author-slider-nav:hover {
    background: #e67e4a;
    transform: translateY(-50%) scale(1.1);
}

.more-author-slider-nav.prev {
    left: 10px;
}

.more-author-slider-nav.next {
    right: 10px;
}

.more-author-slider-nav[style*="display: none"] {
    opacity: 0;
    pointer-events: none;
}

.rating-summary-card {
    background: #8BD0FC;
    width: 360px;
    height: 650px;
}

.rating-summary-box.text-center.mb-4 {
    border-bottom: 1px solid #1F1E221A;
    height: 220px;
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 10px;
}

h2.fw-bold {
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    color: #1F1E22;
}

.rating-title {
    color: #1F1E22;
    font-size: 20px;
    font-weight: 700;
}

.rating-subtitle {
    color: #1F1E2280;
    font-size: 16px;
    font-weight: 500;
}

.rating-stars-select input[type="radio"] {
    display: none;
}

.rating-stars-select label {
    font-size: 2rem;
    color: #ccc;
    cursor: pointer;
}

.rating-stars-select input[type="radio"]:checked~label {
    color: #ffc107;
    /* yellow for selected stars */
}

.rating-stars-select label:hover,
.rating-stars-select label:hover~label {
    color: #ffca2c;
    /* hover effect */
}

/* Reverse order for correct fill-up effect */
.rating-stars-select {
    direction: rtl;
    display: inline-flex;
    justify-content: center;
}

.rating-stars-select input[type="radio"]:checked~label {
    color: #ffc107;
}

.rating-stars-select.text-center.mb-2 {
    width: 305px;
    height: 53px;
}

label.fs-3.text-warning {
    width: 50px;
    height: 50px;
}

.review-content strong {
    font-size: 16px;
    font-weight: 600;
    color: #1F1E22;
}

.review-content small {
    font-size: 14px;
    font-weight: 500;
    color: #1F1E22;
}

.review-content .text-warning h2 {
    font-size: 14px;
    font-weight: 600;
    color: #1F1E22;
}

.review-content p {
    font-size: 16px;
    font-weight: 500;
    color: #1F1E2280;
}

.rating-stars-select input:checked~label,
.rating-stars-select label:hover,
.rating-stars-select label:hover~label {
    color: #f5b301 !important;
}

.rating-stars-select label {
    transition: color 0.2s;
}

.review-box div img.rounded-circle {
    width: 50px;
    height: 50px;
}

/* -------------------------------------My Book------------------------------------------- */

.my-book-header {
    background: #8BD0FC;
    color: #1F1E22;
    padding: 30px 0;
    height: 145px;
    margin-bottom: 50px;
}

.my-book-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.my-book-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Layout - Enhanced Responsive */
.my-book-wrapper {
    display: flex;
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    flex-wrap: wrap;
}

/* Book List - Enhanced Responsive Grid */
.my-book-list {
    flex-grow: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); */
    gap: 20px;
    min-height: auto;
    max-height: none;
}

.my-book-list article {
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

.my-book-card {
    width: 100%;
    max-width: 485px;
    height: auto;
    min-height: 220px;
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.my-book-image-wrapper {
    position: relative;
    width: 135px;
    height: 190px;
    flex-shrink: 0;
}

.my-book-squere-bg {
    width: 120px;
    height: 175px;
    position: absolute;
    top: 7%;
    left: 57%;
    transform: translateX(-50%);
    background-color: #FCE76C;
    z-index: 0;
}

.my-book-cover {
    position: relative;
    width: 120px;
    height: 175px;
    object-fit: cover;
    z-index: 1;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    transform-origin: left center;
}

.my-book-image-wrapper:hover .my-book-cover {
    transform: scale(1.15);
}

.my-book-content {
    margin-top: 22px;
    background: #ffffff;
    margin-right: 25px;
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.15);
    width: 275px;
    height: 145px;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
    border-radius: 10px;
}

.my-book-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #1F1E22;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.my-book-content p {
    margin: 4px 0;
    font-size: 16px;
    font-weight: 500;
    color: #1F1E2288;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.my-book-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.my-book-rating {
    color: #FFA500;
    display: flex;
    align-items: center;
}

.my-book-star {
    margin-right: 2px;
    font-size: 16px;
}

.my-book-view-button {
    box-shadow: 2px 2px 20px 0px #00000026;
    width: 100px;
    height: 40px;
    background-color: #38BDF8;
    color: white;
    padding: 6px 14px;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;

    background-image: linear-gradient(45deg, #FCE76C 50%, transparent 50%);
    background-position: 100%;
    background-size: 400%;
    transition: background-position 300ms ease-in-out;
}

.my-book-view-button:hover {
    background-position: 0;
}

.my-book-view-text {
    padding: 17px;
    text-align: center;
    color: #1F1E22;
    font-weight: 700;
    font-size: 16px;
}

/* ----------------------------------search---------------------------------- */
.search-page-header {
    background: #8BD0FC;
    color: #1F1E22;
    padding: 30px 0;
    height: 232px;
    margin-bottom: 50px;
}

.search-page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.search-page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.search-book-input {
    border-radius: 25px;
    border: 1px solid #ddd;
    padding: 12px 20px;
    font-size: 16px;
    width: 100%;
    transition: all 0.3s ease;
}

.search-book-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
    outline: none;
}

.search-book-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.search-book-box .input-group {
    position: relative;
    width: 100%;
}

.search-book-box .form-control {
    border-radius: 25px !important;
    padding-right: 45px !important;
    border: 2px solid #ddd;
    height: 50px;
    width: 100%;
    font-size: 16px;
}

.search-book-icons {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    display: flex;
    gap: 5px;
}

.search-book-icons i {
    font-size: 18px;
    color: #6c757d;
    transition: color 0.3s ease;
    padding: 5px;
}

.search-book-icons i:hover {
    color: #007bff;
}

#cancelsearchIcon {
    color: #dc3545;
}

#cancelsearchIcon:hover {
    color: #c82333;
}

.book-search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    /* max-height: 250px; */
    overflow: hidden;
}

.book-search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-radius: 8px 8px 0 0;
}

.book-search-results-title {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.book-clear-search-btn {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
    font-weight: 500;
}

.book-clear-search-btn:hover {
    background-color: #f5c6cb;
}

.book-search-results-content {
    max-height: 320px;
    overflow-y: auto;
}

.book-search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.book-search-result-item:hover {
    background-color: #f8f9fa;
}

.book-search-result-item:last-child {
    border-bottom: none;
}

.book-search-result-type {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
}

.book-search-result-title {
    font-weight: 500;
    color: #333;
    margin: 2px 0;
}

.book-search-result-subtitle {
    font-size: 14px;
    color: #666;
}

.book-no-results-message {
    padding: 20px 16px;
    text-align: center;
    color: #6c757d;
}

.book-empty-search-message {
    padding: 20px 16px;
    text-align: center;
    color: #6c757d;
}

.book-empty-search-message i {
    font-size: 24px;
    margin-bottom: 8px;
    color: #adb5bd;
}

.search-book-box {
    position: relative;
}

.book-search-loading {
    padding: 16px;
    text-align: center;
    color: #6c757d;
}

.book-search-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.search-book-card {
    text-align: center;
    width: 100%;
    max-width: 260px;
    /* height: 420px !important; */
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.search-book-image-wrapper {
    position: relative;
    width: 230px;
    height: 310px;
    margin: 0 auto;
}

.search-squere-bg {
    position: absolute;
    top: 7%;
    left: 60%;
    transform: translateX(-50%);
    width: 200px;
    height: 292px;
    background-color: #FCE76C;
    z-index: 0;
}

.search-book-cover {
    position: relative;
    width: 200px;
    height: 292px;
    object-fit: fill;
    z-index: 1;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    transform-origin: left center;
}

.search-book-image-wrapper:hover .search-book-cover {
    transform: scale(1.15);
}

.search-book-card-body {
    padding: 12px;
}

.search-book-card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    height: 2.6em;
    color: #1F1E22;
}

.search-book-year {
    font-size: 16px;
    font-weight: 500;
    color: #1F1E22;
    margin: 0;
}

/* ------------------------pagination---------------------------------------------- */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.pagination li {
    margin: 0 5px;
}

.pagination li a,
.pagination li span {
    display: block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}

.pagination li.active span {
    background-color: #FCE76C;
    color: #1F1E22;
    font-weight: bold;
    border-color: #FCE76C;
}

.pagination li.disabled span {
    color: #aaa;
}

/* ------------------------ mic------------------------------------ */
#micIcon.listening {
    color: red;
    animation: pulse 1s infinite;
}

#micIcon:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#cat-micIcon.listening {
    color: red;
    animation: pulse 1s infinite;
}

#cat-micIcon:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.mic-permission-banner {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: none;
}

/* -------------------------------------------------------------------------- */



/* ============================================== Media Query start ================================================== */

/* ---------------------------- login--------------------------------- */
/* Desktop Responsive Breakpoints */
@media screen and (min-width: 1920px) {
    .login-header {
        padding: 50px 0;
    }

    .auth-card {
        width: 420px;
        padding: 2.5rem;
    }

    .login-header h1 {
        font-size: 30px;
    }

    .login-header p {
        font-size: 20px;
    }

    /* register */
    .register-header {
        padding: 50px 0;
    }

    .register-card {
        width: 420px;
        padding: 2.5rem;
    }

    .register-header h1 {
        font-size: 30px;
    }

    .register-header p {
        font-size: 20px;
    }

    /* forgot password */
    .fpassword-header {
        padding: 50px 0;
        height: 483px;
    }

    .fpassword-card {
        width: 420px;
        padding: 2.5rem;
    }

    .fpassword-header h1 {
        font-size: 30px;
    }

    .fpassword-header p {
        font-size: 20px;
    }

    /* verify otp */
    .verify-opt-header {
        padding: 50px 0;
        height: 483px;
    }

    .verify-opt-card {
        width: 420px;
        padding: 2.5rem;
    }

    .verify-opt-header h1 {
        font-size: 30px;
    }

    .verify-opt-header p {
        font-size: 20px;
    }

    /* reset password */
    .rpassword-header {
        padding: 50px 0;
        height: 483px;
    }

    .rpassword-card {
        width: 420px;
        padding: 2.5rem;
    }

    .rpassword-header h1 {
        font-size: 30px;
    }

    .rpassword-header p {
        font-size: 20px;
    }
}

@media screen and (min-width: 1440px) and (max-width: 1919px) {
    .login-header {
        padding: 40px 0;
    }

    .auth-card {
        width: 400px;
    }

    .back-button {
        right: 20%;
    }

    /* register */
    .register-header {
        padding: 40px 0;
    }

    .register-card {
        width: 400px;
    }

    /* forgot password */
    .fpassword-header {
        padding: 40px 0;
        height: 483px;
    }

    .fpassword-card {
        width: 400px;
    }

    /* verify otp */
    .verify-opt-header {
        padding: 40px 0;
        height: 483px;
    }

    .verify-opt-card {
        width: 400px;
    }

    /* reset password */
    .rpassword-header {
        padding: 40px 0;
        height: 483px;
    }

    .rpassword-card {
        width: 400px;
    }
}

@media screen and (min-width: 1200px) and (max-width: 1439px) {
    .login-header {
        padding: 35px 0;
    }

    .auth-card {
        width: 380px;
    }

    .back-button {
        right: 15%;
    }

    /* register */
    .register-header {
        padding: 35px 0;
    }

    .register-card {
        width: 380px;
    }

    /* forgot password */
    .fpassword-header {
        padding: 35px 0;
        height: 483px;
    }

    .fpassword-card {
        width: 380px;
    }

    /* verify otp */
    .verify-opt-header {
        padding: 35px 0;
        height: 483px;
    }

    .verify-opt-card {
        width: 380px;
    }

    /* reset password */
    .rpassword-header {
        padding: 35px 0;
        height: 483px;
    }

    .rpassword-card {
        width: 380px;
    }

    /* about us */
    .aboutus-img {
        width: auto;
        height: 450px;
        margin: auto;
    }
}

@media screen and (min-width: 992px) and (max-width: 1199px) {
    .login-header {
        padding: 60px 0;
        min-height: 832px;
    }

    .auth-card {
        width: 360px;
        padding: 1.5rem;
    }

    .back-button {
        right: 10%;
        font-size: 18px;
    }

    .btn-auth {
        width: 280px;
        height: 45px;
    }

    /* register */
    .register-header {
        padding: 60px 0;
        min-height: 832px;
    }

    .register-card {
        width: 360px;
        padding: 1.5rem;
    }

    .btn-register {
        width: 280px;
        height: 45px;
        margin-top: 20px;
    }

    /* forgot password */
    .fpassword-header {
        padding: 60px 0;
        min-height: 832px;
    }

    .fpassword-card {
        width: 360px;
        height: 140px;
        padding: 1.5rem;
    }

    .btn-fpassword {
        width: 280px;
        height: 45px;
        margin-top: 20px;
    }

    /* verify otp */
    .verify-opt-header {
        padding: 60px 0;
        min-height: 832px;
    }

    .verify-opt-card {
        width: 360px;
        height: 165px;
        padding: 1.5rem;
    }

    .btn-verify-opt {
        width: 280px;
        height: 45px;
        margin-top: 20px;
    }

    /* reset password */
    .rpassword-header {
        padding: 60px 0;
        min-height: 832px;
    }

    .rpassword-card {
        width: 360px;
        height: 205px;
        padding: 1.5rem;
    }

    .btn-rpassword {
        width: 280px;
        height: 45px;
        margin-top: 20px;
    }

    /* edit profile */
    .edit-profile-header {
        height: 832px;
    }

    /* about us */
    .aboutus-img {
        width: 400px;
        height: 450px;
        margin: auto;
    }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
    .login-header {
        padding: 55px 0;
        min-height: 775px;
    }

    .auth-card {
        width: 340px;
        padding: 1.5rem;
    }

    .back-button {
        font-size: 18px;
        padding: 6px 0px;
    }

    .btn-auth {
        width: 260px;
        height: 45px;
    }

    .social-login-buttons {
        gap: 12px;
    }

    /* register */
    .register-header {
        padding: 55px 0;
        min-height: 775px;
    }

    .register-card {
        width: 340px;
        height: 415px;
        padding: 1.5rem;
    }

    .btn-register {
        width: 260px;
        height: 45px;
        margin-top: 20px;
    }

    /* forgot password */
    .fpassword-header {
        padding: 55px 0;
        min-height: 775px;
    }

    .fpassword-card {
        width: 340px;
        height: 140px;
        padding: 1.5rem;
    }

    .btn-fpassword {
        width: 260px;
        height: 45px;
        margin-top: 20px;
    }

    /* verify otp */
    .verify-opt-header {
        padding: 55px 0;
        min-height: 775px;
    }

    .verify-opt-card {
        width: 340px;
        height: 165px;
        padding: 1.5rem;
    }

    .btn-verify-opt {
        width: 260px;
        height: 45px;
        margin-top: 20px;
    }

    /* reset password */
    .rpassword-header {
        padding: 55px 0;
        min-height: 775px;
    }

    .rpassword-card {
        width: 340px;
        height: 205px;
        padding: 1.5rem;
    }

    .btn-rpassword {
        width: 260px;
        height: 45px;
        margin-top: 20px;
    }

    /* edit profile */
    .edit-profile-header {
        height: 775px;
    }

    /* about us */
    .aboutus-img {
        width: 330px;
        height: 450px;
        margin: auto;
    }
}

@media screen and (max-width: 567px) {
    .login-header {
        min-height: 50vh;
        padding: 40px 15px 20px;
        text-align: center;
    }

    .login-header h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .login-header p {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .back-button {
        font-size: 18px;
        padding: 0;
    }

    .auth-card {
        width: 90%;
        margin: auto;
        padding: 1.2rem;
        border-radius: 12px;
    }

    .form-group input {
        padding: 12px;
        font-size: 16px;
        min-height: 48px;
    }

    .btn-auth {
        width: 90%;
        height: 48px;
        font-size: 15px;
        margin-top: 10px;
    }

    .social-login-buttons {
        gap: 10px;
        margin-top: 20px;
    }

    .btn-social {
        width: 70px;
        height: 48px;
        font-size: 18px;
    }

    .btn-social i {
        font-size: 18px;
    }

    /* register */
    .register-header {
        min-height: 50vh;
        padding: 40px 15px 20px;
        text-align: center;
    }

    .register-header h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .register-header p {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .register-card {
        width: 90%;
        margin: auto;
        padding: 1.2rem;
        border-radius: 12px;
    }

    .btn-register {
        width: 90%;
        height: 48px;
        font-size: 15px;
        margin-top: 25px;
    }

    /* forgot password */
    .fpassword-header {
        min-height: 50vh;
        padding: 40px 15px 20px;
        text-align: center;
    }

    .fpassword-header h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .fpassword-header p {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .fpassword-card {
        width: 90%;
        height: 140px;
        margin: auto;
        padding: 1.2rem;
        border-radius: 12px;
    }

    .btn-fpassword {
        width: 90%;
        height: 48px;
        font-size: 15px;
        margin-top: 25px;
    }

    /* verify otp */
    .verify-opt-header {
        min-height: 50vh;
        padding: 40px 15px 20px;
        text-align: center;
    }

    .verify-opt-header h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .verify-opt-header p {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .verify-opt-card {
        width: 90%;
        height: 165px;
        margin: auto;
        padding: 1.2rem;
        border-radius: 12px;
    }

    .btn-verify-opt {
        width: 90%;
        height: 48px;
        font-size: 15px;
        margin-top: 25px;
    }

    /* reset password */
    .rpassword-header {
        min-height: 50vh;
        padding: 40px 15px 20px;
        text-align: center;
    }

    .rpassword-header h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .rpassword-header p {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .rpassword-card {
        width: 90%;
        height: 205px;
        margin: auto;
        padding: 1.2rem;
        border-radius: 12px;
    }

    .btn-rpassword {
        width: 90%;
        height: 48px;
        font-size: 15px;
        margin-top: 25px;
    }

    /* edit profile */
    .edit-profile-card {
        width: 345px;
    }

    /* about us */
    .justify-content-center {
        justify-content: center !important;
    }

    .aboutus-img {
        width: auto;
        height: auto;
        margin: auto;
    }
}


/* Mobile landscape orientation */
@media screen and (max-width: 567px) and (orientation: landscape) {
    .login-header {
        min-height: 100vh;
        padding-top: 30px;
    }

    .login-header h1 {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

    .login-header p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .auth-card {
        margin: 0.5rem 15px;
        padding: 1rem;
    }

    /* register */
    .register-header {
        min-height: 100vh;
        padding-top: 30px;
    }

    .register-header h1 {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

    .register-header p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .register-card {
        margin: 0.5rem 15px;
        padding: 1rem;
    }

    /* forgot password */
    .fpassword-header {
        min-height: 100vh;
        padding-top: 30px;
    }

    .fpassword-header h1 {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

    .fpassword-header p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .fpassword-card {
        margin: 0.5rem 15px;
        padding: 1rem;
    }

    /* verify otp */
    .verify-opt-header {
        min-height: 100vh;
        padding-top: 30px;
    }

    .verify-opt-header h1 {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

    .verify-opt-header p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .verify-opt-card {
        margin: 0.5rem 15px;
        padding: 1rem;
    }

    /* reset password */
    .rpassword-header {
        min-height: 100vh;
        padding-top: 30px;
    }

    .rpassword-header h1 {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

    .rpassword-header p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .rpassword-card {
        margin: 0.5rem 15px;
        padding: 1rem;
    }

    /* edit profile */
    .edit-profile-card {
        width: 345px;
    }
}

/* Small mobile devices (max-width: 375px) */
@media screen and (max-width: 375px) {
    .login-header h1 {
        font-size: 1.8rem;
    }

    .login-header p {
        font-size: 14px;
    }

    .auth-card {
        width: calc(100% - 20px);
        margin: 1rem 10px;
        padding: 1rem;
    }

    .form-group input {
        padding: 12px;
        min-height: 48px;
    }

    .signup-link {
        font-size: 16px;
    }

    .back-button {
        font-size: 16px;
        padding: 0;
    }

    .btn-auth {
        height: 48px;
        font-size: 15px;
    }

    .btn-social {
        width: 65px;
        height: 25px;
    }

    .social-login-buttons {
        gap: 12px;
    }

    /* register */
    .register-header h1 {
        font-size: 1.8rem;
    }

    .register-header p {
        font-size: 14px;
    }

    .register-card {
        width: calc(100% - 20px);
        margin: 1rem 10px;
        padding: 1rem;
    }

    /* forgot password */
    .fpassword-header h1 {
        font-size: 1.8rem;
    }

    .fpassword-header p {
        font-size: 14px;
    }

    .fpassword-card {
        width: calc(100% - 20px);
        height: 140px;
        margin: 1rem 10px;
        padding: 1rem;
    }

    /* verify otp */
    .verify-opt-header h1 {
        font-size: 1.8rem;
    }

    .verify-opt-header p {
        font-size: 14px;
    }

    .verify-opt-card {
        width: calc(100% - 20px);
        height: 165px;
        margin: 1rem 10px;
        padding: 1rem;
    }

    /* reset password */
    .rpassword-header h1 {
        font-size: 1.8rem;
    }

    .rpassword-header p {
        font-size: 14px;
    }

    .rpassword-card {
        width: calc(100% - 20px);
        height: 205px;
        margin: 1rem 10px;
        padding: 1rem;
    }

    /* edit profile */
    .edit-profile-card {
        width: 325px;
    }

    /* about us */
    .justify-content-center {
        justify-content: center !important;
    }

    .aboutus-img {
        width: auto;
        height: auto;
        margin: auto;
    }
}

/* Very small devices (max-width: 320px) */
@media screen and (max-width: 320px) {
    .login-header {
        padding-top: 50px;
    }

    .login-header h1 {
        font-size: 1.6rem;
        line-height: 1.1;
    }

    .login-header p {
        font-size: 13px;
        line-height: 1.3;
    }

    .auth-card {
        width: calc(100% - 16px);
        margin: 0.8rem 8px;
        padding: 0.8rem;
    }

    .form-group input {
        padding: 10px;
        font-size: 15px;
    }

    .btn-auth {
        height: 46px;
        font-size: 14px;
    }

    .btn-social {
        width: 46px;
        height: 46px;
    }

    .btn-social i {
        font-size: 18px;
    }

    /* register */
    .register-header {
        padding-top: 50px;
    }

    .register-header h1 {
        font-size: 1.6rem;
        line-height: 1.1;
    }

    .register-header p {
        font-size: 13px;
        line-height: 1.3;
    }

    .register-card {
        width: calc(100% - 16px);
        margin: 0.8rem 8px;
        padding: 0.8rem;
    }

    /* forgot password */
    .fpassword-header {
        padding-top: 50px;
    }

    .fpassword-header h1 {
        font-size: 1.6rem;
        line-height: 1.1;
    }

    .fpassword-header p {
        font-size: 13px;
        line-height: 1.3;
    }

    .fpassword-card {
        width: calc(100% - 16px);
        margin: 0.8rem 8px;
        padding: 0.8rem;
    }

    /* verify otp */
    .verify-opt-header {
        padding-top: 50px;
    }

    .verify-opt-header h1 {
        font-size: 1.6rem;
        line-height: 1.1;
    }

    .verify-opt-header p {
        font-size: 13px;
        line-height: 1.3;
    }

    .verify-opt-card {
        width: calc(100% - 16px);
        margin: 0.8rem 8px;
        padding: 0.8rem;
    }

    /* reset password */
    .rpassword-header {
        padding-top: 50px;
    }

    .rpassword-header h1 {
        font-size: 1.6rem;
        line-height: 1.1;
    }

    .rpassword-header p {
        font-size: 13px;
        line-height: 1.3;
    }

    .rpassword-card {
        width: calc(100% - 16px);
        margin: 0.8rem 8px;
        padding: 0.8rem;
    }

    /* edit profile */
    .edit-profile-card {
        width: 345px;
    }
}

/* Enhanced Responsive Breakpoints */

/* Large Desktop (1400px and up) */
@media (min-width: 1400px) {
    .all-author-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 40px;
        max-width: 1400px;
        margin: 40px auto;
    }

    .all-author-card {
        max-width: 300px;
        padding: 40px 25px;
    }

    .author-image {
        width: 180px;
        height: 180px;
    }

    /* Category id base books */
    .main-wrapper {
        gap: 60px;
        padding: 50px 30px;
    }

    .filter-search-sidebar {
        width: 380px;
        padding: 25px;
    }

    .filter-sidebar {
        width: 380px;
        padding: 25px;
    }

    .book-list {
        grid-template-columns: repeat(auto-fit, minmax(410px, 1fr));
        gap: 20px;
    }

    /* Book Detail */
    .book-details-hero {
        padding: 100px 0;
    }

    .book-details-image-large {
        width: 450px;
        height: 650px;
    }

    .book-details-content {
        width: 550px;
        height: 500px;
    }

    .book-details-info {
        width: 550px;
        height: max-content;
        padding: 30px;
    }

    .book-des {
        width: 550px;
        height: max-content;
    }

    .book-des-row {
        width: 550px;
        height: max-content;
    }

    .more-by-author-container {
        width: 1600px;
    }

    .rating-summary-card {
        width: 400px;
        height: 700px;
    }

    /* my-book */
    .my-book-wrapper {
        gap: 60px;
        padding: 50px 30px;
    }

    /* .my-book-list {
        grid-template-columns: repeat(auto-fit, minmax(410px, 1fr));
        gap: 20px;
    } */
}

/* Desktop (1200px to 1399px) */
@media (max-width: 1399px) and (min-width: 1200px) {
    .all-author-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 35px;
    }

    .all-author-card {
        max-width: 260px;
    }

    .author-image {
        width: 160px;
        height: 160px;
    }

    /* Category id base books */
    .main-wrapper {
        gap: 55px;
        padding: 40px 200px;
    }

    .filter-search-sidebar {
        width: 340px;
        height: max-content;
    }

    .filter-sidebar {
        width: 340px;
        height: max-content;
    }

    .book-list {
        grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    }

    /* Book Detail */
    .book-details-hero {
        padding: 80px 0;
    }

    .book-details-image-large {
        width: 380px;
        height: 550px;
    }

    .book-details-content {
        width: 480px;
        height: 440px;
    }

    .book-details-info {
        width: 480px;
        height: max-content;
        padding: 22px;
    }

    .book-des {
        width: 480px;
        height: max-content;
    }

    .book-des-row {
        width: 480px;
        height: max-content;
    }

    .more-by-author-container {
        width: 1250px;
    }

    .rating-summary-card {
        width: 325px;
        height: 800px;
    }

    .rating-summary-box.text-center.mb-4 {
        height: 365px;
    }

    /* my-book */
    .my-book-wrapper {
        gap: 55px;
        padding: 40px 200px;
    }

    .my-book-list {
        grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    }
}

/* Large Tablet (992px to 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .all-author-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 25px;
        padding: 0 20px;
    }

    .all-author-card {
        max-width: 240px;
        padding: 25px 15px;
    }

    .author-image {
        width: 140px;
        height: 140px;
    }

    .author-name {
        font-size: 16px;
    }

    .page-header {
        padding: 25px 15px;
        min-height: 180px;
    }

    .search-box {
        max-width: 450px;
    }

    /* search */
    .search-page-header {
        padding: 25px 15px;
        min-height: 180px;
    }

    .search-book-box {
        max-width: 450px;
    }

    /* Category id base books */
    .main-wrapper {
        flex-direction: row;
        gap: 69px;
        padding: 30px 110px;
    }

    .filter-search-sidebar {
        width: 300px;
        padding: 18px;
        height: max-content;
    }

    .filter-sidebar {
        width: 300px;
        padding: 18px;
        height: max-content;
    }

    .filter-sidebar h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .book-list {
        grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
        gap: 18px;
    }

    .category-book-card {
        max-width: 420px;
        min-height: 200px;
    }

    .category-book-image-wrapper {
        width: 120px;
        height: 170px;
    }

    .category-squere-bg {
        width: 105px;
        height: 155px;
    }

    .category-book-cover {
        width: 105px;
        height: 155px;
    }

    .book-content {
        width: 250px;
        height: 130px;
        margin-right: 60px;
        padding: 12px;
    }

    .book-content h3 {
        font-size: 16px;
    }

    .book-content p {
        font-size: 14px;
    }

    /* Book Detail */
    .book-details-hero {
        padding: 60px 0;
    }

    .book-details-image-large {
        width: 320px;
        height: 460px;
    }

    .book-details-content {
        width: 400px;
        height: 380px;
    }

    .book-details-info {
        width: 460px;
        height: max-content;
        padding: 20px;
    }

    .book-details-info h1 {
        font-size: 32px;
    }

    .book-des {
        width: 460px;
        height: max-content;
    }

    .book-des-row {
        width: 460px;
        height: max-content;
    }

    .book-details-bio {
        height: max-content;
        font-size: 14px;
    }

    .more-by-author-container {
        width: 100%;
        max-width: 1200px;
        padding: 0 20px;
    }

    .rating-summary-card {
        width: 320px;
        height: 800px;
    }

    .rating-summary-box.text-center.mb-4 {
        height: 365px;
    }

    .rating-stars-select.text-center.mb-2 {
        width: 280px;
        height: 48px;
    }

    /* my book */
    .my-book-header {
        padding: 45px 15px;
        min-height: 180px;
    }

    .my-book-list {
        grid-template-columns: repeat(2, 1fr);
        /* grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); */
        gap: 18px;
    }

    .my-book-card {
        max-width: 420px;
        min-height: 200px;
    }

    .my-book-image-wrapper {
        width: 120px;
        height: 170px;
    }

    .my-book-squere-bg {
        width: 105px;
        height: 155px;
    }

    .my-book-cover {
        width: 105px;
        height: 155px;
    }

    .my-book-content {
        width: 250px;
        height: 130px;
        margin-right: 60px;
        padding: 12px;
    }

    .my-book-content h3 {
        font-size: 16px;
    }

    .my-book-content p {
        font-size: 14px;
    }

    .my-book-footer {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .my-book-rating {
        color: #FFA500;
        display: flex;
        align-items: center;
    }

    .my-book-star {
        margin-right: 2px;
        font-size: 16px;
    }

    .my-book-view-button {
        box-shadow: 2px 2px 20px 0px #00000026;
        width: 100px;
        height: 40px;
        background-color: #38BDF8;
        color: white;
        padding: 6px 14px;
        text-decoration: none;
        border-radius: 20px;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;

        background-image: linear-gradient(45deg, #FCE76C 50%, transparent 50%);
        background-position: 100%;
        background-size: 400%;
        transition: background-position 300ms ease-in-out;
    }

    .my-book-view-button:hover {
        background-position: 0;
    }

    .my-book-view-text {
        padding: 17px;
        text-align: center;
        color: #1F1E22;
        font-weight: 700;
        font-size: 16px;
    }
}

/* Tablet (768px to 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .all-author-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 20px;
        padding: 0 15px;
    }

    .all-author-card {
        max-width: 220px;
        padding: 20px 15px;
        min-height: 250px;
    }

    .author-image {
        width: 120px;
        height: 120px;
        margin-bottom: 15px;
    }

    .author-name {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .author-books-count {
        font-size: 13px;
    }

    .page-header {
        padding: 20px 15px;
        min-height: 160px;
    }

    .search-box {
        max-width: 400px;
    }

    .search-box .form-control {
        height: 45px;
        font-size: 15px;
    }

    .breadcrumb-item {
        font-size: 14px;
    }

    .breadcrumb-item+.breadcrumb-item::before {
        padding: 0 6px;
    }

    /* search */
    .search-page-header {
        padding: 20px 15px;
        min-height: 160px;
    }

    .search-book-box {
        max-width: 400px;
    }

    .search-book-box .form-control {
        height: 45px;
        font-size: 15px;
    }

    /* Category id base books */
    .main-wrapper {
        /* flex-direction: row; */
        gap: 15px;
        margin: auto;
        /* padding: 25px 80px; */
    }

    .filter-search-sidebar {
        width: auto;
        /* position: static; */
        height: max-content;
        padding: 20px;
        margin-bottom: 20px;
    }

    .filter-sidebar {
        width: auto;
        /* position: static; */
        height: max-content;
        padding: 20px;
        margin-bottom: 20px;
    }

    .filter-sidebar h2 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .filter-buttons {
        justify-content: center;
    }

    #clearFilters,
    button[type="submit"] {
        width: 130px;
        height: 45px;
        font-size: 14px;
    }

    .book-list {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 15px;
    }

    .category-book-card {
        max-width: 100%;
        min-height: 180px;
    }

    .category-book-image-wrapper {
        width: 110px;
        height: 150px;
    }

    .category-squere-bg {
        width: 95px;
        height: 135px;
    }

    .category-book-cover {
        width: 95px;
        height: 135px;
    }

    .book-content {
        width: 220px;
        height: 120px;
        margin-right: 50px;
        padding: 10px;
    }

    .book-content h3 {
        font-size: 15px;
    }

    .book-content p {
        font-size: 13px;
    }

    .view-button {
        width: 90px;
        height: 35px;
        font-size: 12px;
    }

    /* Book Detail */
    .book-details-hero {
        padding: 40px 0;
    }

    /* Stack layout for tablet */

    .book-details-image-large {
        width: 280px;
        height: 400px;
        margin: 0 auto;
    }

    .book-details-content {
        width: 100%;
        max-width: 500px;
        height: auto;
        min-height: 350px;
        margin: 0 auto;
    }

    .book-details-info {
        width: 100%;
        height: max-content;
        padding: 18px;
    }

    .book-details-info h1 {
        font-size: 28px;
        text-align: start;
    }

    .book-details-meta {
        font-size: 16px;
        text-align: center;
    }

    .book-des {
        width: 100%;
        max-width: 500px;
        height: max-content;
        margin: 0 auto;
    }

    .book-des-row {
        width: 100%;
        height: max-content;
    }

    .book-details-bio {
        height: max-content;
        font-size: 14px;
    }

    .rating-box {
        justify-content: start;
        gap: 10px;
    }

    .book-actions {
        display: flex;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }

    .read-book,
    .audio {
        width: 160px;
        height: 45px;
    }

    .more-by-author-container {
        width: 100%;
        padding: 0 15px;
    }

    .rating-summary-card {
        width: 100%;
        height: 840px;
    }

    .rating-subtitle {
        font-size: 11px;
    }

    .rating-summary {
        gap: 2px;
    }

    h2.fw-bold {
        font-size: 12px;
    }

    label.fs-3.text-warning {
        width: 25px;
    }

    .rating-summary-box.text-center.mb-4 {
        height: 380px;
    }

    .rating-stars-select.text-center.mb-2 {
        width: 100%;
        max-width: 300px;
        height: 45px;
        margin: 0 auto;
    }

    p.book-des-p {
        font-size: 16px;
    }

    p.book-des-p strong {
        font-size: 12px;
    }

    /* read book */
    .read-book-section {
        padding: 30px 0;
    }

    .pdf-viewer-container {
        max-width: 700px;
        margin: 0 auto;
        text-align: center;
        position: relative;
    }

    .pdf-slider-wrapper {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #pdf-canvas {
        max-width: 100%;
        height: auto;
        background: #f5f5f5;
        border: 1px solid #ccc;
        display: block;
    }

    img#prev-page {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: #1F1E22;
        color: white;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
        transition: all 0.3s ease;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    img#next-page {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: #1F1E22;
        color: white;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
        transition: all 0.3s ease;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .left-arrow {
        left: -50px;
    }

    .right-arrow {
        right: -50px;
    }

    .reader-controls-container {
        max-width: 500px;
        margin: 0 auto;
    }

    .reader-controls {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 15px;
        font-weight: 500;
        font-size: 16px;
        color: #1F1E2280;
        padding: 0 10px;
    }

    .reader-progress {
        font-size: 14px;
        font-weight: 500;
        color: #1F1E2280;
    }

    /* my book */
    .my-book-header {
        padding: 20px 15px;
        min-height: 145px;
        margin-bottom: 10px;
    }

    .my-book-wrapper {
        flex-direction: row;
        gap: 15px;
        /* padding: 25px 80px; */
    }

    .my-book-list {
        grid-template-columns: repeat(2, 1fr);
        /* grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); */
        gap: 15px;
    }

    .my-book-card {
        max-width: 400px;
        min-height: 180px;
    }

    .my-book-image-wrapper {
        width: 110px;
        height: 150px;
    }

    .my-book-squere-bg {
        width: 95px;
        height: 135px;
    }

    .my-book-cover {
        width: 95px;
        height: 135px;
    }

    .my-book-content {
        width: 220px;
        height: 120px;
        /* margin-right: 50px; */
        padding: 10px;
    }

    .my-book-footer {
        margin-top: -15px;
    }

    .my-book-content h3 {
        font-size: 15px;
    }

    .my-book-content p {
        font-size: 13px;
    }

    .my-book-view-button {
        width: 90px;
        height: 35px;
        font-size: 12px;
    }
}

/* Large Mobile (576px to 767px) */
@media (max-width: 767px) and (min-width: 576px) {
    .all-author-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 15px;
        padding: 0 10px;
    }

    .all-author-card {
        max-width: 200px;
        padding: 15px 10px;
        min-height: 220px;
    }

    .author-image {
        width: 100px;
        height: 100px;
        margin-bottom: 12px;
        border-width: 3px;
    }

    .author-name {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .author-books-count {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .page-header {
        padding: 15px 10px;
        min-height: 140px;
    }

    .search-box {
        max-width: 350px;
        padding: 0 10px;
    }

    .search-box .form-control {
        height: 40px;
        font-size: 14px;
        padding-right: 40px !important;
    }

    .search-icons {
        right: 12px;
    }

    .search-icons i {
        font-size: 16px;
        padding: 3px;
    }

    .breadcrumb-container {
        padding: 10px 0;
    }

    .breadcrumb-item {
        font-size: 13px;
    }

    .breadcrumb-item+.breadcrumb-item::before {
        padding: 0 4px;
        font-size: 12px;
    }

    .no-search-results {
        padding: 40px 15px;
    }

    .no-search-results img {
        max-width: 200px;
    }

    .no-authors {
        padding: 40px 15px;
    }

    .no-authors i {
        font-size: 3rem;
    }

    /* search */
    .search-page-header {
        padding: 15px 10px;
        min-height: 140px;
    }

    .search-book-box {
        max-width: 350px;
        padding: 0 10px;
    }

    .search-book-box .form-control {
        height: 40px;
        font-size: 14px;
        padding-right: 40px !important;
    }

    .search-book-icons {
        right: 12px;
    }

    .search-book-icons i {
        font-size: 16px;
        padding: 3px;
    }

    /* Category id base books */
    .main-wrapper {
        padding: 20px 10px;
        gap: 20px;
    }

    .filter-sidebar {
        padding: 12px;
        border-radius: 6px;
    }

    .filter-sidebar select {
        padding: 6px;
        font-size: 14px;
        margin-bottom: 12px;
    }

    .filter-buttons {
        flex-direction: column;
        gap: 8px;
    }

    #clearFilters,
    button[type="submit"] {
        width: 100%;
        height: 40px;
        font-size: 14px;
        min-width: auto;
    }

    .book-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .category-book-card {
        max-width: 100%;
        min-height: 160px;
        flex-direction: row;
    }

    .category-book-image-wrapper {
        width: 100px;
        height: 130px;
    }

    .category-squere-bg {
        width: 85px;
        height: 115px;
    }

    .category-book-cover {
        width: 85px;
        height: 115px;
    }

    .book-content {
        width: auto;
        flex: 1;
        height: 110px
    }

    /* Book Detail */
    .book-details-hero {
        padding: 30px 15px;
    }

    .book-details-hero .row {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .book-details-image-large {
        width: 240px;
        height: 340px;
    }

    .book-details-content {
        width: 100%;
        max-width: 450px;
        height: auto;
        min-height: 320px;
        padding: 15px;
    }

    .book-details-info {
        width: 100%;
        height: auto;
        min-height: 320px;
        padding: 15px;
    }

    .book-details-info h1 {
        font-size: 24px;
        text-align: center;
        margin-bottom: 15px;
    }

    .book-details-meta {
        font-size: 15px;
        text-align: center;
    }

    .book-details-about {
        font-size: 16px;
        text-align: center;
    }

    .book-des {
        width: 100%;
        max-width: 450px;
        height: max-content;
    }

    .book-des-row {
        width: 100%;
        height: max-content;
    }

    .book-des-p {
        font-size: 18px;
    }

    .book-des-p strong {
        font-size: 16px;
    }

    .book-details-bio {
        height: max-content;
        font-size: 13px;
        text-align: center;
    }

    .rating-box {
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .rating-stars {
        font-size: 18px;
    }

    .review-count {
        font-size: 18px;
    }

    .book-actions {
        display: flex;
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
        margin-top: 15px;
    }

    .read-book,
    .audio {
        width: 150px;
        height: 42px;
    }

    .read-book span,
    .audio span {
        font-size: 14px;
    }

    .more-by-author-container {
        width: 100%;
        padding: 0 10px;
    }

    .rating-summary-card {
        width: 100%;
        max-width: 350px;
        height: auto;
        min-height: 450px;
        margin: 15px auto;
        padding: 15px;
    }

    .rating-summary-box.text-center.mb-4 {
        height: auto;
        min-height: 180px;
        padding: 15px;
    }

    .rating-stars-select.text-center.mb-2 {
        width: 100%;
        max-width: 280px;
        height: 42px;
    }

    label.fs-3.text-warning {
        width: 45px;
        height: 45px;
    }

    /* my book */
    .my-book-header {
        padding: 15px 10px;
        min-height: 140px;
    }

    .my-book-wrapper {
        padding: 20px 10px;
        gap: 20px;
    }

    .my-book-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .my-book-card {
        max-width: 100%;
        min-height: 160px;
        flex-direction: row;
    }

    .my-book-image-wrapper {
        width: 100px;
        height: 130px;
    }

    .my-book-squere-bg {
        width: 85px;
        height: 115px;
    }

    .my-book-cover {
        width: 85px;
        height: 115px;
    }

    .my-book-content {
        width: auto;
        flex: 1;
        height: 110px
    }

    /* audio book */
    .audio-book-section {
        background-color: #f9f9f9;
        padding: 60px 0;
    }

    .rotating {
        animation: rotate 12s linear infinite;
    }

    @keyframes rotate {
        from {
            transform: rotate(0deg);
        }

        to {
            transform: rotate(360deg);
        }
    }

    .audio-player-wrapper {
        background: #1F1E22;
        padding: 20px;
        max-width: 800px;
        margin: 40px auto 0;
        color: #fff;
    }

    .audio-image-wrapper {
        position: relative;
        width: 120px;
        height: 300px;
        margin: 0 auto;
    }

    .audio-bg,
    .audio-circle-bg {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 50%;
    }

    .audio-bg {
        bottom: 0;
        width: 300px;
        height: 300px;
        background-color: #1F1E22;
        z-index: 0;
    }

    .audio-circle-bg {
        bottom: 20%;
        width: 180px;
        height: 180px;
        background-color: #FFE76A;
        z-index: 0;
    }

    .audio-cover {
        width: 200px;
        height: 190px;
        object-fit: cover;
        margin: 0 auto;
        position: relative;
        z-index: 1;
        margin-top: 52px;
        transition: transform 0.3s ease;
    }

    #chapterSummary {
        color: #1F1E2280;
        font-size: 20px;
        font-weight: 500;
        max-width: 600px;
        margin: auto;
    }

    .audio-timeline {
        display: flex;
        justify-content: space-between;
        font-size: 14px;
        margin-bottom: 8px;
        color: #f5f5f5;
    }

    .audio-progress {
        -webkit-appearance: none;
        width: 100%;
        height: 4px;
        border-radius: 4px;
        background: #333;
        outline: none;
        margin-bottom: 16px;
    }

    .audio-progress::-webkit-slider-thumb,
    .audio-progress::-moz-range-thumb {
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: #FFE76A;
        cursor: pointer;
    }

    .audio-controls {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }

    .audio-controls button {
        background: none;
        border: none;
        color: #fff;
        font-size: 20px;
        cursor: pointer;
    }

    .audio-controls .play-pause {
        background: #FFE76A;
        color: #1F1E22;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Small Mobile (up to 575px) */
@media (max-width: 575px) {
    .all-author-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
        padding: 0 5px;
        margin: 20px 0;
    }

    .all-author-card {
        max-width: 180px;
        padding: 12px 8px;
        min-height: 200px;
        border-radius: 12px;
    }

    .author-image {
        width: 80px;
        height: 80px;
        margin-bottom: 10px;
        border-width: 2px;
    }

    .author-name {
        font-size: 13px;
        margin-bottom: 5px;
        line-height: 1.2;
    }

    .author-books-count {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .search-box {
        max-width: 80%;
        padding: 0 5px;
    }

    .search-box .form-control {
        height: 38px;
        font-size: 13px;
        padding: 8px 35px 8px 15px !important;
        border-radius: 20px !important;
    }

    .search-icons {
        right: 10px;
    }

    .search-icons i {
        font-size: 14px;
        padding: 2px;
    }

    .breadcrumb-container {
        padding: 8px 0;
    }

    .breadcrumb {
        font-size: 12px;
    }

    .breadcrumb-item {
        font-size: 12px;
    }

    .breadcrumb-item+.breadcrumb-item::before {
        padding: 0 3px;
        font-size: 11px;
    }

    .breadcrumb-item.active {
        font-size: 12px;
    }

    .breadcrumb-item.active a {
        font-size: 12px;
    }

    /*  */
    .author-info {
        width: 90%;
        margin: auto;
        margin-top: 20px;
    }

    /* Category id base books */
    /* Main Layout */
    .main-wrapper {
        flex-direction: column;
        gap: 20px;
        padding: 20px 12px;
        margin: 0;
        max-width: 100%;
    }

    /* Filter Sidebar Optimization */
    .filter-search-sidebar {
        width: 90%;
        margin: auto;
        position: static;
        max-height: none;
        padding: 20px;
        margin-bottom: 20px;
        border-radius: 8px;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
        background-color: #8BD0FC;
    }

    .filter-sidebar {
        width: 90%;
        margin: auto;
        position: static;
        max-height: none;
        padding: 20px;
        margin-bottom: 20px;
        border-radius: 8px;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
        background-color: #8BD0FC;
    }

    .filter-sidebar h2 {
        font-size: 18px;
        margin-bottom: 15px;
        text-align: center;
        color: #1F1E22;
    }

    .filter-sidebar select {
        width: 100%;
        padding: 10px 8px;
        font-size: 15px;
        margin-bottom: 14px;
        border-radius: 6px;
        height: 42px;
        border: 1px solid #ccc;
        background-color: white;
        color: #1F1E22;
        font-weight: 600;
    }

    /* Filter Buttons Layout */
    .filter-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    #clearFilters {
        width: 100%;
        height: 45px;
        background-color: #ffcc00;
        color: #1F1E22;
        font-weight: 700;
        font-size: 15px;
        border: none;
        border-radius: 25px;
        cursor: pointer;
        transition: all 0.3s ease;
        min-width: auto;
        padding: 10px 20px;
    }

    button[type="submit"] {
        width: 100%;
        height: 45px;
        background-color: #FF8F5C;
        color: #1F1E22;
        font-weight: 700;
        font-size: 15px;
        border: none;
        border-radius: 25px;
        cursor: pointer;
        transition: all 0.3s ease;
        min-width: auto;
        padding: 10px 20px;
    }

    button[type="submit"]:hover {
        background-color: #ff7043;
        transform: translateY(-2px);
    }

    /* Book List Grid */
    .book-list {
        flex-grow: 1;
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
        width: 100%;
        max-height: none;
    }

    .book-list article {
        display: flex;
        flex-direction: row;
        overflow: hidden;
        width: 90%;
        margin: auto;
        gap: 30px;
    }

    /* Book Card Mobile Layout */
    .category-book-card {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 160px;
        display: flex;
        flex-direction: row;
        margin-bottom: 15px;
        align-items: flex-start;
        background: white;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
        transition: transform 0.3s ease;
        padding: 10px;
    }

    .category-book-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }

    /* Book Image Container */
    .category-book-image-wrapper {
        position: relative;
        width: 90px;
        height: 125px;
        flex-shrink: 0;
        margin-right: 12px;
    }

    .category-squere-bg {
        width: 80px;
        height: 115px;
        position: absolute;
        top: 6%;
        left: 56%;
        transform: translateX(-50%);
        background-color: #FCE76C;
        z-index: 0;
        border-radius: 4px;
    }

    .category-book-cover {
        position: relative;
        width: 80px;
        height: 115px;
        object-fit: cover;
        z-index: 1;
        background-color: white;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
        transition: transform 0.3s ease;
        border-radius: 4px;
    }

    .category-book-card:hover .category-book-cover {
        transform: scale(1.02);
    }

    /* Book Content Area */
    .book-content {
        flex: 1;
        width: auto;
        height: auto;
        min-height: 125px;
        margin: 0;
        background: transparent;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 5px 0;
    }

    .book-content h3 {
        font-size: 16px;
        font-weight: 700;
        margin: 0 0 6px 0;
        color: #1F1E22;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-wrap: break-word;
    }

    .book-content p {
        margin: 3px 0;
        font-size: 14px;
        font-weight: 500;
        color: #1F1E2288;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .meta {
        font-size: 11px;
        color: #999;
        margin: 2px 0;
        line-height: 1.3;
    }

    /* Book Footer */
    .book-des-col-divider {
        border-left: 0px solid #8BD0FC;
        border-right: 0px solid #8BD0FC;
    }

    .book-des-col-divider1 {
        border-right: 0px solid #8BD0FC;
    }

    .book-footer {
        display: flex;
        justify-content: end;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .rating {
        color: #FFA500;
        display: flex;
        align-items: center;
        font-size: 13px;
    }

    .star {
        margin-right: 2px;
        font-size: 14px;
        color: #f97316;
    }

    .view-button {
        box-shadow: 2px 2px 15px 0px #00000020;
        width: 80px;
        height: 32px;
        background-color: #38BDF8;
        color: white;
        padding: 6px 12px;
        text-decoration: none;
        border-radius: 16px;
        font-weight: 600;
        font-size: 11px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        text-align: center;
    }

    .view-button:hover {
        background-color: #0EA5E9;
        transform: translateY(-2px);
        color: white;
        text-decoration: none;
        box-shadow: 2px 4px 20px 0px #00000030;
    }

    .view-text {
        padding: 12px;
        text-align: center;
        color: #1F1E22;
        font-weight: 700;
        font-size: 15px;
    }

    /* Select2 Mobile Optimization */
    .select2-container {
        width: 100% !important;
        box-sizing: border-box;
        margin-bottom: 14px;
    }

    .select2-container--default .select2-selection--single {
        background-color: #fff !important;
        height: 42px !important;
        margin-bottom: 14px !important;
        border: 1px solid #ccc !important;
        border-radius: 6px !important;
    }

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        color: #1F1E22 !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        line-height: 26px !important;
        padding-left: 10px !important;
        padding-right: 25px !important;
    }

    .select2-container .select2-selection--single .select2-selection__rendered {
        display: block;
        padding: 8px 10px !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .select2-dropdown {
        border-radius: 6px !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
        border: 1px solid #ddd !important;
    }

    .select2-results__option {
        padding: 10px 12px !important;
        font-size: 15px !important;
    }

    /* Custom Scrollbar */
    .filter-scrollbar::-webkit-scrollbar {
        width: 5px;
    }

    .filter-scrollbar::-webkit-scrollbar-thumb {
        background-color: #f97316;
        border-radius: 15px;
    }

    .filter-scrollbar::-webkit-scrollbar-track {
        background-color: rgba(0, 0, 0, 0.1);
        border-radius: 15px;
    }

    /* Focus States */
    button:focus,
    select:focus,
    input:focus {
        outline: 2px solid #2563eb;
        outline-offset: 1px;
    }

    /* Text Truncation */
    .truncate-2line {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.3;
    }

    /* Touch Optimization */
    .category-book-card,
    .view-button,
    #clearFilters,
    button[type="submit"],
    .filter-sidebar select {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    /* Active States for Touch */
    .view-button:active {
        transform: scale(0.95);
    }

    #clearFilters:active,
    button[type="submit"]:active {
        transform: scale(0.98);
    }

    .category-book-card:active {
        transform: scale(0.99);
    }

    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }

    /* Ensure proper spacing */
    .main-wrapper {
        min-height: 100vh;
        box-sizing: border-box;
    }

    /* ------------------ Book Detail ---------------- */
    .book-details-hero {
        padding: 20px 10px;
    }

    .book-details-hero .container-fluid {
        padding: 0 5px;
    }

    .book-details-hero .row {
        align-items: center;
        gap: 20px;
        margin: 0;
    }

    .book-details-hero .col-md-6 {
        width: 100%;
        padding: 0 5px;
    }

    .book-details-image-large {
        width: 200px;
        height: 280px;
        margin: 0 auto;
        display: block;
    }

    .book-details-content {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 280px;
        padding: 10px;
        margin: 0;
        background-size: contain;
    }

    .book-details-info {
        width: 100%;
        height: auto;
        min-height: 280px;
        padding: 12px;
        margin-bottom: 15px;
    }

    .book-details-info h1 {
        font-size: 20px;
        text-align: center;
        margin-bottom: 10px;
        line-height: 1.2;
    }

    .book-details-meta {
        font-size: 14px;
        text-align: center;
        margin-bottom: 8px;
    }

    .book-details-about {
        font-size: 15px;
        text-align: start;
        margin-bottom: 6px;
    }

    .book-des {
        width: 100%;
        height: max-content;
        padding: 3px;
        margin: 0;
    }

    .book-des-row {
        width: 100%;
        height: max-content;
        padding: 0 5px;
    }

    .book-des-p {
        font-size: 16px;
        text-align: center;
    }

    .book-des-p strong {
        font-size: 14px;
    }

    .book-des-col {
        padding: 0px;
        border-bottom: 1px solid #1F1E221A;
    }

    .book-details-bio {
        height: max-content;
        font-size: 12px;
        line-height: 1.4;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }

    .rating-box {
        justify-content: start;
        gap: 6px;
        flex-wrap: wrap;
        margin-bottom: 15px;
    }

    .rating-stars {
        font-size: 16px;
        gap: 2px;
    }

    .review-count {
        font-size: 16px;
    }

    .book-actions {
        display: flex;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
        margin-top: 12px;
    }

    .read-book,
    .audio {
        width: 130px;
        height: 38px;
        padding: 8px 15px;
    }

    .read-book span,
    .audio span {
        font-size: 13px;
        font-weight: 600;
    }

    .more-by-author-container {
        width: 100%;
        padding: 0 5px;
        margin: 0;
    }

    .rating-summary-card {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 400px;
        margin: 10px 0;
        padding: 10px;
        border-radius: 8px;
    }

    .rating-summary-box.text-center.mb-4 {
        height: auto;
        min-height: 150px;
        padding: 10px;
        border-bottom: 1px solid #1F1E221A;
    }

    .rating-title {
        font-size: 18px;
    }

    .rating-subtitle {
        font-size: 14px;
    }

    .rating-stars-select.text-center.mb-2 {
        width: 100%;
        max-width: 250px;
        height: 38px;
        margin: 0 auto 10px;
    }

    label.fs-3.text-warning {
        width: 35px;
        height: 35px;
        font-size: 1.5rem !important;
    }

    .review-content strong {
        font-size: 14px;
    }

    .review-content small {
        font-size: 12px;
    }

    .review-content .text-warning h2 {
        font-size: 12px;
    }

    .review-content p {
        font-size: 14px;
        line-height: 1.4;
    }

    .review-box div img.rounded-circle {
        width: 40px;
        height: 40px;
    }

    h2.fw-bold {
        font-size: 16px;
    }

    /* More by Author Section Mobile */
    .more-by-author-card {
        max-width: 200px;
        height: 320px;
    }

    .more-by-author-image-wrapper {
        width: 180px;
        height: 240px;
    }

    .more-by-author-bg {
        width: 160px;
        height: 220px;
    }

    .more-by-author-cover {
        width: 160px;
        height: 220px;
    }

    .more-by-author-title {
        font-size: 16px;
        height: 2.2em;
    }

    .more-by-author-author {
        font-size: 14px;
    }

    .more-author-slider-nav {
        width: 35px;
        height: 35px;
    }

    /* my book */

    .my-book-header {
        height: 100px;
        margin-bottom: 10px;
    }

    .my-book-wrapper {
        flex-direction: column;
        gap: 20px;
        padding: 20px 12px;
        margin: 0;
        max-width: 100%;
    }

    /* Book List Grid */
    .my-book-list {
        flex-grow: 1;
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
        width: 100%;
        max-height: none;
    }

    .my-book-list article {
        display: flex;
        flex-direction: row;
        overflow: hidden;
        width: 85%;
        margin: auto;
        gap: 20px;
    }

    .my-book-card {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 160px;
        display: flex;
        flex-direction: row;
        margin-bottom: 15px;
        align-items: flex-start;
        background: white;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
        transition: transform 0.3s ease;
        padding: 10px;
    }

    .my-book-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }

    /* Book Image Container */
    .my-book-image-wrapper {
        position: relative;
        width: 90px;
        height: 125px;
        flex-shrink: 0;
        margin-right: 12px;
    }

    .my-book-squere-bg {
        width: 80px;
        height: 115px;
        position: absolute;
        top: 6%;
        left: 56%;
        transform: translateX(-50%);
        background-color: #FCE76C;
        z-index: 0;
        border-radius: 4px;
    }

    .my-book-cover {
        position: relative;
        width: 80px;
        height: 115px;
        object-fit: cover;
        z-index: 1;
        background-color: white;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
        transition: transform 0.3s ease;
        border-radius: 4px;
    }

    .my-book-card:hover .my-book-cover {
        transform: scale(1.02);
    }

    /* Book Content Area */
    .my-book-content {
        flex: 1;
        /* width: auto; */
        height: auto;
        min-height: 125px;
        margin: 0;
        background: transparent;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 5px 0;
    }

    .my-book-content h3 {
        font-size: 16px;
        font-weight: 700;
        margin: 0 0 6px 0;
        color: #1F1E22;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-wrap: break-word;
    }

    .my-book-content p {
        margin: 3px 0;
        font-size: 14px;
        font-weight: 500;
        color: #1F1E2288;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .meta {
        font-size: 11px;
        color: #999;
        margin: 2px 0;
        line-height: 1.3;
    }

    /* Book Footer */
    .my-book-footer {
        display: flex;
        justify-content: end;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .my-book-rating {
        color: #FFA500;
        display: flex;
        align-items: center;
        font-size: 13px;
    }

    .my-book-star {
        margin-right: 2px;
        font-size: 14px;
        color: #f97316;
    }

    .my-book-view-button {
        box-shadow: 2px 2px 15px 0px #00000020;
        width: 80px;
        height: 32px;
        background-color: #38BDF8;
        color: white;
        padding: 6px 12px;
        text-decoration: none;
        border-radius: 16px;
        font-weight: 600;
        font-size: 11px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        text-align: center;
    }

    .my-book-view-button:hover {
        background-color: #0EA5E9;
        transform: translateY(-2px);
        color: white;
        text-decoration: none;
        box-shadow: 2px 4px 20px 0px #00000030;
    }

    .my-book-view-text {
        padding: 12px;
        text-align: center;
        color: #1F1E22;
        font-weight: 700;
        font-size: 15px;
    }
    
    /* search book */
    .search-page-header {
        height: 195px;
    }
    
    .search-book-box {
        max-width: 85%;
        padding: 0 5px;
    }
}

/* Extra Small Devices (up to 430px) - Mobile First Approach */
@media (max-width: 430px) {
    .main-wrapper {
        flex-direction: column;
        gap: 35px;
        padding: 15px 8px;
        margin: 0;
    }

    /* Filter Sidebar Mobile Optimization */
    .filter-search-sidebar {
        width: 90%;
        margin: auto;
        position: static;
        max-height: none;
        padding: 12px;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .filter-sidebar {
        width: 90%;
        margin: auto;
        position: static;
        max-height: none;
        padding: 12px;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .filter-sidebar h2 {
        font-size: 16px;
        margin-bottom: 10px;
        text-align: center;
    }

    .filter-sidebar select {
        padding: 8px 6px;
        font-size: 14px;
        margin-bottom: 10px;
        border-radius: 6px;
        height: 38px;
    }

    /* Filter Buttons Mobile Layout */
    .filter-buttons {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    #clearFilters,
    button[type="submit"] {
        width: 100%;
        height: 42px;
        font-size: 14px;
        font-weight: 600;
        min-width: auto;
        border-radius: 25px;
        padding: 8px 16px;
    }

    /* Book List Mobile Grid */
    .book-list {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
    }

    .book-list article {
        width: 90%;
        margin: auto;
        gap: 15px;
    }

    .book-footer {
        justify-content: start !important;
    }

    /* Mobile Book Card Layout */
    .category-book-card {
        width: 100%;
        max-width: 100%;
        min-height: 140px;
        height: auto;
        flex-direction: row;
        padding: 8px;
        margin-bottom: 12px;
        border-radius: 8px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    }

    .category-book-card:hover {
        transform: translateY(-3px);
    }

    /* Mobile Book Image */
    .category-book-image-wrapper {
        width: 80px;
        height: 110px;
        flex-shrink: 0;
        margin-right: 8px;
    }

    .category-squere-bg {
        width: 70px;
        height: 100px;
        top: 5%;
        left: 55%;
    }

    .category-book-cover {
        width: 70px;
        height: 100px;
        border-radius: 4px;
    }

    /* Mobile Book Content */
    .book-content {
        flex: 1;
        width: auto;
        height: auto;
        min-height: 110px;
        margin: 0;
        padding: 8px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        box-shadow: none;
        background: transparent;
    }

    .book-content h3 {
        font-size: 14px;
        font-weight: 700;
        margin: 0 0 4px 0;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .book-content p {
        font-size: 12px;
        margin: 2px 0;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .meta {
        font-size: 10px;
        color: #999;
        margin: 2px 0;
    }

    /* Mobile Book Footer */
    .book-footer {
        display: flex;
        justify-content: end;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .rating {
        display: flex;
        align-items: center;
        font-size: 12px;
    }

    .star {
        font-size: 12px;
        margin-right: 1px;
    }

    .view-button {
        width: 70px;
        height: 28px;
        font-size: 10px;
        font-weight: 600;
        padding: 4px 8px;
        border-radius: 15px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
        flex-shrink: 0;
        border-radius: 20px;
    }

    .view-button:hover {
        transform: translateY(-1px);
    }

    .view-text {
        padding: 8px;
        font-size: 14px;
    }

    /* Select2 Mobile Optimization */
    .select2-container {
        width: 100% !important;
    }

    .select2-container--default .select2-selection--single {
        height: 38px !important;
        margin-bottom: 10px !important;
        border-radius: 6px !important;
    }

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        font-size: 14px !important;
        line-height: 24px !important;
        padding-left: 8px !important;
    }

    .select2-dropdown {
        border-radius: 6px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    }

    /* Custom Scrollbar Mobile */
    .filter-scrollbar::-webkit-scrollbar {
        width: 4px;
    }

    .filter-scrollbar::-webkit-scrollbar-thumb {
        background-color: #f97316;
        border-radius: 10px;
    }

    /* Focus States for Mobile */
    button:focus,
    select:focus,
    input:focus {
        outline: 1px solid #2563eb;
        outline-offset: 1px;
    }

    /* Truncate Text Mobile */
    .truncate-2line {
        -webkit-line-clamp: 1;
    }

    /* --------------- Book Detail ------------- */
    .book-details-hero {
        padding: 15px 5px;
    }

    .book-details-image-large {
        width: 180px;
        height: 250px;
    }

    .book-details-content {
        min-height: 250px;
        padding: 8px;
    }

    .book-details-info {
        min-height: 250px;
        padding: 10px;
    }

    .book-details-info h1 {
        font-size: 18px;
        line-height: 1.1;
    }

    .book-details-meta {
        font-size: 13px;
    }

    .book-details-about {
        font-size: 14px;
    }

    .book-des {
        height: max-content;
    }

    .book-des-row {
        height: max-content;
    }

    .book-des-p {
        font-size: 14px;
    }

    .book-des-p strong {
        font-size: 13px;
    }

    .book-details-bio {
        font-size: 11px;
        height: max-content;
    }

    .rating-stars {
        font-size: 14px;
    }

    .review-count {
        font-size: 14px;
    }

    .read-book,
    .audio {
        width: 120px;
        height: 35px;
        padding: 6px 12px;
    }

    .read-book span,
    .audio span {
        font-size: 12px;
    }

    .rating-summary-card {
        min-height: 350px;
        padding: 8px;
    }

    .rating-summary-box.text-center.mb-4 {
        min-height: 120px;
        padding: 8px;
    }

    .rating-title {
        font-size: 16px;
    }

    .rating-subtitle {
        font-size: 13px;
    }

    .rating-stars-select.text-center.mb-2 {
        max-width: 220px;
        height: 35px;
    }

    label.fs-3.text-warning {
        width: 30px;
        height: 30px;
        font-size: 1.2rem !important;
    }

    .review-box div img.rounded-circle {
        width: 35px;
        height: 35px;
    }

    /* More by Author Mobile Optimization */
    .more-by-author-card {
        max-width: 160px;
        height: 280px;
    }

    .more-by-author-image-wrapper {
        width: 140px;
        height: 200px;
    }

    .more-by-author-bg {
        width: 120px;
        height: 180px;
    }

    .more-by-author-cover {
        width: 120px;
        height: 180px;
    }

    .more-by-author-title {
        font-size: 14px;
        height: 2em;
    }

    .more-by-author-author {
        font-size: 12px;
    }

    .more-author-slider-nav {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    /* my-book */
    .my-book-wrapper {
        flex-direction: column;
        gap: 35px;
        padding: 15px 8px;
        margin: 0;
    }

    /* Book List Mobile Grid */
    .my-book-list {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
    }

    .my-book-list article {
        width: 90%;
        margin: auto;
        gap: 15px;
    }

    .my-book-card {
        width: 100%;
        max-width: 100%;
        min-height: 140px;
        height: auto;
        flex-direction: row;
        padding: 8px;
        margin-bottom: 12px;
        border-radius: 8px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    }

    .my-book-card:hover {
        transform: translateY(-3px);
    }

    /* Mobile Book Image */
    .my-book-image-wrapper {
        width: 80px;
        height: 110px;
        flex-shrink: 0;
        margin-right: 8px;
    }

    .my-book-squere-bg {
        width: 70px;
        height: 100px;
        top: 5%;
        left: 55%;
    }

    .my-book-cover {
        width: 70px;
        height: 100px;
        border-radius: 4px;
    }

    /* Mobile Book Content */
    .my-book-content {
        flex: 1;
        width: auto;
        height: auto;
        min-height: 110px;
        margin: 0;
        padding: 8px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        box-shadow: none;
        background: transparent;
    }

    .my-book-content h3 {
        font-size: 14px;
        font-weight: 700;
        margin: 0 0 4px 0;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .my-book-content p {
        font-size: 12px;
        margin: 2px 0;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .meta {
        font-size: 10px;
        color: #999;
        margin: 2px 0;
    }

    /* Mobile Book Footer */
    .my-book-footer {
        display: flex;
        justify-content: end;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .my-book-footer {
        justify-content: start !important;
    }

    .my-book-rating {
        display: flex;
        align-items: center;
        font-size: 12px;
    }

    .my-book-star {
        font-size: 12px;
        margin-right: 1px;
    }

    .my-book-view-button {
        width: 70px;
        height: 28px;
        font-size: 10px;
        font-weight: 600;
        padding: 4px 8px;
        border-radius: 15px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
        flex-shrink: 0;
        border-radius: 20px;
    }

    .my-book-view-button:hover {
        transform: translateY(-1px);
    }

    .my-book-view-text {
        padding: 8px;
        font-size: 14px;
    }
}

/* Ultra Small Devices (up to 375px) - iPhone SE, older phones */
@media (max-width: 375px) {
    .main-wrapper {
        padding: 12px 6px;
        gap: 12px;
    }

    .filter-search-sidebar {
        padding: 10px;
        margin-bottom: 12px;
    }

    .filter-sidebar {
        padding: 10px;
        margin-bottom: 12px;
    }

    .filter-sidebar h2 {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .filter-sidebar select {
        font-size: 13px;
        padding: 6px;
        height: 36px;
    }

    #clearFilters,
    button[type="submit"] {
        height: 38px;
        font-size: 13px;
    }

    .category-book-card {
        min-height: 130px;
        padding: 6px;
    }

    .category-book-image-wrapper {
        width: 70px;
        height: 100px;
    }

    .category-squere-bg {
        width: 60px;
        height: 90px;
    }

    .category-book-cover {
        width: 60px;
        height: 90px;
    }

    .book-content {
        padding: 6px;
        min-height: 100px;
    }

    .book-content h3 {
        font-size: 13px;
    }

    .book-content p {
        font-size: 11px;
    }

    .view-button {
        width: 65px;
        height: 26px;
        font-size: 9px;
    }

    .star {
        font-size: 11px;
    }

    /* ----------------------- Book Detail ------------------- */
    .book-details-hero {
        padding: 12px 3px;
    }

    .book-details-image-large {
        width: 160px;
        height: 220px;
    }

    .book-details-content {
        min-height: 220px;
        padding: 6px;
    }

    .book-details-info {
        min-height: 220px;
        padding: 8px;
    }

    .book-details-info h1 {
        font-size: 16px;
    }

    .book-details-meta {
        font-size: 12px;
    }

    .book-details-about {
        font-size: 13px;
    }

    .book-des {
        height: max-content;
    }

    .book-des-row {
        height: max-content;
    }

    .book-des-p {
        font-size: 13px;
    }

    .book-des-p strong {
        font-size: 12px;
    }

    .book-details-bio {
        font-size: 10px;
        height: max-content;
        -webkit-line-clamp: 2;
    }

    .read-book,
    .audio {
        width: 110px;
        height: 32px;
        padding: 5px 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .read-book span,
    .audio span {
        font-size: 11px;
    }

    .rating-summary-card {
        min-height: 320px;
        padding: 6px;
    }

    .rating-stars-select.text-center.mb-2 {
        max-width: 200px;
        height: 32px;
    }

    label.fs-3.text-warning {
        width: 25px;
        height: 25px;
        font-size: 1rem !important;
    }

    /* my-book */
    .my-book-wrapper {
        padding: 12px 6px;
        gap: 12px;
    }

    .my-book-card {
        min-height: 130px;
        padding: 6px;
    }

    .my-book-image-wrapper {
        width: 70px;
        height: 100px;
    }

    .my-book-squere-bg {
        width: 60px;
        height: 90px;
    }

    .my-book-cover {
        width: 60px;
        height: 90px;
    }

    .my-book-content {
        padding: 6px;
        min-height: 100px;
    }

    .my-book-content h3 {
        font-size: 13px;
    }

    .my-book-content p {
        font-size: 11px;
    }

    .my-book-view-button {
        width: 65px;
        height: 26px;
        font-size: 9px;
    }

    .my-book-star {
        font-size: 11px;
    }
}

/* Landscape Mobile Devices */
@media (max-width: 430px) and (orientation: landscape) {
    .main-wrapper {
        flex-direction: row;
        gap: 15px;
        padding: 10px;
    }

    .filter-search-sidebar {
        width: 280px;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
        position: sticky;
        top: 10px;
    }

    .filter-sidebar {
        width: 280px;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
        position: sticky;
        top: 10px;
    }

    .book-list {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 10px;
    }

    .category-book-card {
        min-height: 120px;
    }

    .category-book-image-wrapper {
        width: 75px;
        height: 95px;
    }

    .category-squere-bg {
        width: 65px;
        height: 85px;
    }

    .category-book-cover {
        width: 65px;
        height: 85px;
    }

    .book-content {
        min-height: 95px;
    }

    /* my book */
    .my-book-wrapper {
        flex-direction: row;
        gap: 15px;
        padding: 10px;
    }

    .my-book-list {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 10px;
    }

    .my-book-card {
        min-height: 120px;
    }

    .my-book-image-wrapper {
        width: 75px;
        height: 95px;
    }

    .my-book-squere-bg {
        width: 65px;
        height: 85px;
    }

    .my-book-cover {
        width: 65px;
        height: 85px;
    }

    .my-book-content {
        min-height: 95px;
    }
}

/* Touch and Interaction Improvements for Mobile */
@media (max-width: 430px) {

    /* Increase touch targets */
    .view-button,
    #clearFilters,
    button[type="submit"],
    .filter-sidebar select {
        min-height: 44px;
        touch-action: manipulation;
    }

    /* Prevent zoom on input focus */
    .filter-sidebar select,
    .filter-sidebar input {
        font-size: 16px;
    }

    /* Smooth scrolling */
    .filter-sidebar {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    /* Hover effects disabled on touch devices */
    @media (hover: none) {

        .category-book-card:hover,
        .view-button:hover,
        button[type="submit"]:hover {
            transform: none;
        }
    }

    /* Active states for touch */
    .view-button:active,
    #clearFilters:active,
    button[type="submit"]:active {
        transform: scale(0.98);
    }

    .category-book-card:active {
        transform: scale(0.99);
    }
}


/* -------------------------------------------------------------------------------------- */
/* Responsive Design */
@media (max-width: 1400px) {
    .book-slider-container {
        max-width: 95%;
        padding: 0 60px;
    }

    .author-grid {
        grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    }

    .book-slider .slider-item {
        width: calc(25% - 325px);
        min-width: 220px;
    }

    /*  */
    .categories-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        margin: 0 auto;
        gap: 35px;
    }
}

@media (max-width: 1200px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .book-slider-container {
        padding: 0 70px;
    }

    .book-slider .slider-item {
        width: calc(33.333% - 460px);
        min-width: 220px;
    }

    .author-grid {
        grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
        gap: 15px;
    }

    .author-card img {
        width: 80px;
        height: 80px;
    }

    /*  */
    .categories-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        margin: 0 auto;
        gap: 35px;
    }
}

@media (max-width: 992px) {
    .hero {
        height: 304px;
        padding: 40px 15px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn-primary {
        width: 160px;
        height: 45px;
    }

    .book-slider-container {
        padding: 0 60px;
    }

    .book-slider .slider-item {
        width: calc(20% - 205px);
        min-width: 200px;
    }

    .category-slider-container {
        padding: 0 40px;
    }

    .category-slider .slider-item {
        width: 160px;
    }

    .author-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }

    .slider-nav {
        width: 35px;
        height: 35px;
    }

    .row-with-lines h2 {
        font-size: 1.8rem;
    }

    .border-line {
        width: 80px;
    }

    /*  */
    .categories-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        margin: 0 auto;
        gap: 35px;
    }
}

@media (max-width: 820px) and (min-width: 768px) {
    .book-slider .slider-item {
        width: calc(20% - 235px);
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .btn-primary {
        width: 140px;
        height: 40px;
    }

    .search-text {
        font-size: 15px;
    }

    h6.search-text {
        font-size: 13px;
    }

    .book-slider-container,
    .category-slider-container {
        padding: 0 50px;
    }

    .book-slider .slider-item {
        width: calc(25% - 325px);
        min-width: 180px;
    }

    .category-slider .slider-item {
        width: 140px;
    }

    .author-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 10px;
    }

    .author-card {
        padding: 15px 10px;
    }

    .author-card img {
        width: 60px;
        height: 60px;
    }

    .author-card h6 {
        font-size: 12px;
    }

    .popular-authors {
        padding: 40px 15px;
    }

    .row-with-lines {
        gap: 10px;
    }

    .row-with-lines h2 {
        font-size: 1.5rem;
    }

    .border-line {
        width: 60px;
    }

    .book-card {
        height: auto;
    }

    .book-image-wrapper {
        width: 180px;
        height: 240px;
    }

    .squere-bg {
        width: 150px;
        height: 220px;
    }

    .trending-book-cover {
        width: 150px;
        height: 220px;
    }

    /*  */
    .categories-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        margin: 0 auto;
        gap: 35px;
    }

    /* read book */
    .nav-arrow {
        width: 30px;
        height: 30px;
    }

    .left-arrow {
        left: -35px;
    }

    .right-arrow {
        right: -35px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 30px 10px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .btn-primary {
        width: 120px;
        height: 35px;
        padding: 4px !important;
        margin-top: 0px !important;
    }

    h6.search-text {
        font-size: 14px;
    }

    .book-slider-container,
    .category-slider-container {
        padding: 0 40px;
    }

    .book-slider .slider-item {
        width: calc(25% - 330px);
        min-width: 180px;
    }

    .category-slider .slider-item {
        width: 120px;
    }

    .category-card {
        width: 120px;
    }

    .category-image-wrapper {
        width: 100px;
        height: 130px;
    }

    .circle-bg {
        width: 130px;
        height: 130px;
    }

    .book-cover {
        width: 100px;
        height: 130px;
    }

    .category-title {
        font-size: 12px;
        margin-top: 10px;
    }

    .author-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .author-card {
        padding: 10px 5px;
    }

    .author-card img {
        width: 50px;
        height: 50px;
    }

    .author-card h6 {
        font-size: 11px;
    }

    .popular-authors {
        padding: 30px 10px;
        margin: 40px 0;
    }

    .slider-nav {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .slider-nav.prev {
        left: 5px;
    }

    .slider-nav.next {
        right: 5px;
    }

    .row-with-lines {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 5px;
        height: 40px;
        margin-bottom: 15px;
        padding: 0 5px;
    }

    .row-with-lines h2 {
        font-size: 1.2rem;
        order: 0;
        white-space: nowrap;
        text-align: center;
        flex-shrink: 0;
        padding: 0 8px;
    }

    .border-line {
        flex: 1;
        height: 1px;
        background-color: #1F1E22;
        min-width: 20px;
        max-width: 40px;
    }

    .book-card {
        max-width: 200px;
    }

    .book-image-wrapper {
        width: 150px;
        height: 200px;
    }

    .squere-bg {
        width: 120px;
        height: 180px;
    }

    .trending-book-cover {
        width: 120px;
        height: 180px;
    }

    .book-card-title {
        font-size: 14px;
    }

    .book-card-author {
        font-size: 10px;
    }

    .view-all-btn {
        padding: 8px 20px;
        font-size: 14px;
    }

    .categories,
    .trending-books,
    .new-releases,
    .more-by-author {
        margin: 40px 0;
        padding: 0 10px;
    }

    /*  */
    .categories-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        margin: 0 auto;
        gap: 35px;
    }

    .cat-header {
        height: 305px;
    }
}

@media (max-width: 480px) {
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }

    .hero h1 {
        font-size: 1.3rem;
        line-height: 1.3;
    }

    .book-slider-container,
    .category-slider-container {
        padding: 0 35px;
    }

    .book-slider .slider-item {
        width: calc(20% - 100px);
        min-width: 180px;
    }

    .row-with-lines .border-line {
        width: 80px;
    }

    .author-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /*  */
    .categories-grid {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        margin: 0 auto;
    }
}

@media (max-width: 400px) {
    .book-slider .slider-item {
        width: calc(20% - 107px);
        min-width: 0px !important;
    }
}


/* Responsive grid for published books section */
.published-book-container .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px;
    margin-right: -12px;
}

.published-book-container .col-12,
.published-book-container .col-sm-6,
.published-book-container .col-md-4,
.published-book-container .col-lg-3 {
    padding-left: 12px;
    padding-right: 12px;
    margin-bottom: 24px;
}

@media (max-width: 1199.98px) {
    .published-book-container .col-lg-3 {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }
}

@media (max-width: 991.98px) {

    .published-book-container .col-md-4,
    .published-book-container .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 767.98px) {

    .published-book-container .col-sm-6,
    .published-book-container .col-md-4,
    .published-book-container .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .book-card-title {
        font-size: 15px;
        height: 2.2em;
    }

    .book-card-body {
        padding: 10px 6px 8px 6px;
    }
}

/* Additional improvements for better UX */
.slider-container {
    touch-action: pan-y;
}

.book-card,
.category-card,
.author-card {
    cursor: pointer;
}

/* Loading states */
.slider-wrapper {
    will-change: transform;
}

/* Focus states for accessibility */
.slider-nav:focus,
.view-all-btn:focus,
.btn-primary:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Smooth scrolling for better UX */
html {
    scroll-behavior: smooth;
}

/* Ensure images don't break layout */
img {
    max-width: 100%;
    height: auto;
}

/* Better text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
