body {

    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(13, 110, 253, .08),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 25%,
            rgba(111, 66, 193, .08),
            transparent 30%
        ),
        radial-gradient(
            circle at 50% 90%,
            rgba(255, 193, 7, .07),
            transparent 30%
        ),
        #f7faff;

    background-attachment: fixed;

}


/* =========================================================
   BOOKS SECTION
========================================================= */

.books-section {

    position: relative;

    padding: 70px 20px 100px;

    overflow: hidden;

}


/* =========================================================
   FLOATING BACKGROUND CIRCLES
========================================================= */

.books-decoration {

    position: absolute;

    border-radius: 50%;

    pointer-events: none;

    filter: blur(5px);

    opacity: .18;

}


.books-decoration-one {

    width: 330px;
    height: 330px;

    top: 80px;
    left: -160px;

    background:
        radial-gradient(
            circle,
            rgba(13,110,253,.55),
            rgba(13,110,253,.05),
            transparent 70%
        );

    animation: booksFloatOne 8s ease-in-out infinite;

}


.books-decoration-two {

    width: 300px;
    height: 300px;

    top: 420px;
    right: -140px;

    background:
        radial-gradient(
            circle,
            rgba(111,66,193,.50),
            rgba(111,66,193,.05),
            transparent 70%
        );

    animation: booksFloatTwo 9s ease-in-out infinite;

}


.books-decoration-three {

    width: 220px;
    height: 220px;

    bottom: 80px;
    left: 45%;

    background:
        radial-gradient(
            circle,
            rgba(255,193,7,.40),
            rgba(255,193,7,.04),
            transparent 70%
        );

    animation: booksFloatThree 7s ease-in-out infinite;

}


@keyframes booksFloatOne {

    0%,100% {
        transform: translate(0,0);
    }

    50% {
        transform: translate(25px,-25px);
    }

}


@keyframes booksFloatTwo {

    0%,100% {
        transform: translate(0,0);
    }

    50% {
        transform: translate(-25px,25px);
    }

}


@keyframes booksFloatThree {

    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-30px);
    }

}


/* =========================================================
   INTRO
========================================================= */

.books-intro {

    position: relative;

    z-index: 2;

    max-width: 1050px;

    margin: 0 auto 55px;

    padding: 45px 50px;

    text-align: center;

    border-radius: 30px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.78),
            rgba(255,255,255,.42)
        );

    border: 1px solid rgba(255,255,255,.85);

    backdrop-filter: blur(22px);

    -webkit-backdrop-filter: blur(22px);

    box-shadow:
        0 25px 70px rgba(31,38,135,.10),
        inset 0 1px 0 rgba(255,255,255,.95);

}


.books-intro-kicker {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 8px 16px;

    margin-bottom: 15px;

    border-radius: 50px;

    color: #0d6efd;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1.3px;

    text-transform: uppercase;

    background: rgba(13,110,253,.07);

    border: 1px solid rgba(13,110,253,.14);

}


.books-intro h2 {

    margin: 0 0 15px;

    color: #171b26;

    font-size: 38px;

    font-weight: 800;

}


.books-intro-line {

    width: 75px;

    height: 4px;

    margin: 0 auto 20px;

    border-radius: 30px;

    background:
        linear-gradient(
            90deg,
            #0d6efd,
            #6f42c1,
            #ffc107
        );

}


.books-intro p {

    max-width: 780px;

    margin: auto;

    color: #687080;

    font-size: 15px;

    line-height: 2;

}


/* =========================================================
   FILTER CONTAINER
========================================================= */

.books-filter-container {

    position: relative;

    z-index: 5;

    max-width: 1120px;

    margin: 0 auto 55px;

    padding: 25px;

    border-radius: 28px;

   

    border: 1px solid rgba(255,255,255,.82);

   

    box-shadow:
        0 20px 55px rgba(31,38,135,.09),
        inset 0 1px 0 rgba(255,255,255,.9);

}


/* =========================================================
   FILTER FORM
========================================================= */

.books-filter-form {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        190px
        auto
        auto;

    gap: 12px;

    align-items: center;

}


.books-input,
.books-select {

    width: 100%;

    height: 50px;

    padding: 0 17px;

    border-radius: 15px;

    border: 1px solid rgba(13,110,253,.12);

    outline: none;

    color: #343a40;

    background:
        rgba(255,255,255,.60);

    backdrop-filter: blur(10px);

    -webkit-backdrop-filter: blur(10px);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.8);

    transition:
        border-color .3s ease,
        box-shadow .3s ease,
        transform .3s ease;

}


.books-input:focus,
.books-select:focus {

    border-color: rgba(13,110,253,.35);

    box-shadow:
        0 0 0 4px rgba(13,110,253,.07);

    transform: translateY(-1px);

}


.books-search-btn,
.books-reset-btn {

    height: 50px;

    padding: 0 20px;

    border-radius: 15px;

    text-decoration: none;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    font-size: 13px;

    font-weight: 700;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        background .3s ease;

}


.books-search-btn {

    color: white;

    border: 1px solid rgba(255,255,255,.35);

    background:
        linear-gradient(
            135deg,
            rgba(13,110,253,.90),
            rgba(58,94,180,.90)
        );

    box-shadow:
        0 10px 25px rgba(13,110,253,.20);

}


.books-reset-btn {

    color: #596273;

    background: rgba(255,255,255,.55);

    border: 1px solid rgba(255,255,255,.8);

}


.books-search-btn:hover,
.books-reset-btn:hover {

    transform: translateY(-3px);

}


.books-search-btn:hover {

    box-shadow:
        0 15px 35px rgba(13,110,253,.28);

}


/* =========================================================
   RESULT TITLE
========================================================= */

.books-results-header {

    position: relative;

    z-index: 2;

    max-width: 1120px;

    margin: 0 auto 25px;

}


.books-results-header h3 {

    margin: 0;

    color: #202532;

    font-size: 22px;

    font-weight: 800;

}


.books-results-header p {

    margin: 5px 0 0;

    color: #7b8190;

    font-size: 13px;

}


/* =========================================================
   BOOK GRID
========================================================= */

.books-grid {

    position: relative;

    z-index: 2;

    max-width: 1120px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 28px;

}


/* =========================================================
   BOOK CARD
========================================================= */

.book-card {

    position: relative;

    min-width: 0;

    padding: 1px;

    border-radius: 27px;

    background:
        linear-gradient(
            135deg,
            rgba(13,217,253,.16),
            rgba(138,92,246,.10),
            rgba(72,236,206,.12),
            rgba(255,193,7,.15)
        );

    box-shadow:
        0 15px 35px rgba(31,38,135,.16);

    transition:
        transform .45s cubic-bezier(.2,.8,.2,1),
        box-shadow .45s ease;

}


.book-card::before {

    content: "";

    position: absolute;

    inset: -1px;

    border-radius: 28px;

    padding: 2px;

    background:
        linear-gradient(
            135deg,
            #0dc9fd,
            #6f42c1,
            #ffc107,
            #0dc9fd
        );

    background-size: 300% 300%;

    opacity: 0;

    z-index: 0;

    transition: opacity .4s ease;

    animation:
        booksBorderAnimation 5s linear infinite;

}


.book-card:hover {

    transform:
        translateY(-10px);

    box-shadow:
        0 30px 65px rgba(31,38,135,.23);

}


.book-card:hover::before {

    opacity: 1;

}


@keyframes booksBorderAnimation {

    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }

}


/* =========================================================
   CARD GLASS BODY
========================================================= */

.book-card-inner {

    position: relative;

    z-index: 2;

    height: 100%;

    overflow: hidden;

    border-radius: 26px;

    display: flex;

    flex-direction: column;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.76),
            rgba(255,255,255,.39)
        );

    border: 1px solid rgba(255,255,255,.80);

    backdrop-filter: blur(20px);

    -webkit-backdrop-filter: blur(20px);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.9);

}


/* =========================================================
   COVER
========================================================= */

.book-cover {

    position: relative;

    width: calc(100% - 22px);

    height: 300px;

    margin: 11px;

    overflow: hidden;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            rgba(13,110,253,.08),
            rgba(111,66,193,.08)
        );

    border: 1px solid rgba(255,255,255,.85);

    box-shadow:
        0 12px 30px rgba(31,38,135,.10);

}


.book-cover::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.20),
            transparent 45%
        );

    pointer-events: none;

}


.book-cover img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center;

    transition:
        transform .75s cubic-bezier(.2,.8,.2,1);

}


.book-card:hover .book-cover img {

    transform: scale(1.055);

}


/* =========================================================
   BOOK INFO
========================================================= */

.book-info {

    display: flex;

    flex-direction: column;

    flex: 1;

    padding: 5px 20px 22px;

}


.book-type {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    width: fit-content;

    margin-bottom: 8px;

    color: #6f42c1;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .7px;

    text-transform: uppercase;

}


.book-title {

    margin: 0 0 8px;

    color: #1d212b;

    font-size: 18px;

    font-weight: 800;

    line-height: 1.5;

}


.book-author {

    display: flex;

    align-items: center;

    gap: 6px;

    margin-bottom: 10px;

    color: #596273;

    font-size: 12px;

    font-weight: 600;

}


.book-author i {

    color: #0d6efd;

}


.book-description {

    margin: 0;

    color: #727987;

    font-size: 12px;

    line-height: 1.8;

}


/* =========================================================
   READ BUTTON
========================================================= */

.book-action {

    margin-top: auto;

    padding-top: 18px;

}


.book-read-button {

    position: relative;

    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 8px 9px 8px 15px;

    color: #ffffff;

    text-decoration: none;

    border-radius: 11px;

    background:
        rgba(10,35,62,.70);

    border: 1px solid rgba(120,180,220,.38);

    backdrop-filter: blur(14px);

    -webkit-backdrop-filter: blur(14px);

    box-shadow:
        0 7px 20px rgba(5,30,55,.18),
        inset 0 1px 0 rgba(255,255,255,.22);

    overflow: hidden;

    transition:
        transform .35s ease,
        background .35s ease,
        box-shadow .35s ease;

}


.book-read-button::before {

    content: "";

    position: absolute;

    top: -50%;

    left: -100%;

    width: 45%;

    height: 200%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.30),
            transparent
        );

    transform: skewX(-22deg);

    transition: left .7s ease;

}


.book-read-button span {

    position: relative;

    z-index: 2;

    font-size: 12px;

    font-weight: 700;

}


.book-read-button i {

    position: relative;

    z-index: 2;

    width: 25px;

    height: 25px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 7px;

    background: rgba(65,125,170,.42);

    font-size: 10px;

    transition:
        transform .35s ease,
        background .35s ease;

}


.book-read-button:hover {

    color: white;

    transform: translateY(-3px);

    background:
        rgba(15,55,90,.82);

    box-shadow:
        0 13px 30px rgba(5,35,65,.28),
        0 0 18px rgba(65,145,200,.16);

}


.book-read-button:hover::before {

    left: 140%;

}


.book-read-button:hover i {

    transform:
        translateX(3px)
        rotate(-4deg);

    background:
        rgba(75,145,195,.65);

}


/* =========================================================
   EMPTY STATE
========================================================= */

.books-empty {

    position: relative;

    z-index: 2;

    max-width: 700px;

    margin: 40px auto;

    padding: 60px 30px;

    text-align: center;

    border-radius: 30px;

    background:
        rgba(255,255,255,.60);

    border: 1px solid rgba(255,255,255,.8);

    backdrop-filter: blur(20px);

    -webkit-backdrop-filter: blur(20px);

}


.books-empty i {

    font-size: 45px;

    margin-bottom: 18px;

    color: #6f42c1;

}


.books-empty h4 {

    color: #202532;

    font-weight: 800;

}


.books-empty p {

    color: #777;

}


/* =========================================================
   PAGINATION
========================================================= */

.books-pagination {

    position: relative;

    z-index: 3;

    display: flex;

    justify-content: center;

    margin-top: 55px;

}


.books-pagination nav {

    display: inline-flex;

    padding: 8px 12px;

    border-radius: 18px;

    background:
        rgba(255,255,255,.60);

    border: 1px solid rgba(255,255,255,.8);

    backdrop-filter: blur(15px);

    -webkit-backdrop-filter: blur(15px);

    box-shadow:
        0 15px 40px rgba(31,38,135,.10);

}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {

    .books-grid {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

    }

}


@media (max-width: 850px) {

    .books-filter-form {

        grid-template-columns:
            1fr 1fr;

    }

    .books-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

}


@media (max-width: 600px) {

    .books-section {

        padding-left: 14px;
        padding-right: 14px;

    }

    .books-intro {

        padding: 35px 22px;

        border-radius: 24px;

    }

    .books-intro h2 {

        font-size: 29px;

    }

    .books-filter-form {

        grid-template-columns:
            1fr;

    }

    .books-grid {

        grid-template-columns:
            1fr;

        max-width: 330px;

    }

    .book-cover {

        height: 350px;

    }

}


/* =========================================================
   RTL SAFETY
========================================================= */

html[dir="rtl"] .book-read-button i {

    transform: rotate(180deg);

}

html[dir="rtl"] .book-read-button:hover i {

    transform:
        translateX(-3px)
        rotate(176deg);

}

p {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    font-size: 16px;
    line-height: 2;
    font-weight: 400;
    word-spacing: 1px;
    letter-spacing: 0;
  
}
h1 {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    font-size: 16px;
   
  
}

span{
   font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    font-size: 16px;
 
}