/* ============================================================
   BOOK PORTFOLIO
============================================================ */

.book-portfolio {
    padding: 100px 0;
    background: #ffffff;
    overflow: hidden;
}


/* ============================================================
   HEADING
============================================================ */

.portfolio-heading {
    max-width: 720px;
    margin: 0 auto 45px;
    text-align: center;
}

.portfolio-label {
    display: inline-block;

    margin-bottom: 15px;

    color: #e2b654;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
}

.portfolio-heading h2 {
    margin: 0 0 16px;

    color: var(--deep-blue);

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(36px, 4vw, 52px);
    line-height: 1.15;
}

.portfolio-heading h2 span {
    color: var(--deep-blue);
}

.portfolio-heading p {
    max-width: 600px;

    margin: 0 auto;

    color: #6d7788;

    font-size: 14px;
    line-height: 1.8;
}


/* ============================================================
   CATEGORY TABS
============================================================ */

.portfolio-tabs {
    display: flex;

    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 45px;
}

.portfolio-tab {
    position: relative;

    padding: 9px 15px;

    border: 0;
    background: transparent;

    color: #667085;

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

    transition:
        color 0.3s ease;
}


/* GOLD LINE */

.portfolio-tab::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 0;

    width: 0;
    height: 2px;

    background: #e2b654;

    transform: translateX(-50%);

    transition:
        width 0.3s ease;
}

.portfolio-tab:hover {
    color: var(--deep-blue);
}

.portfolio-tab.active {
    color: var(--deep-blue);
}

.portfolio-tab.active::after {
    width: 70%;
}


/* ============================================================
   SWIPER
============================================================ */

.portfolioSwiper {
    width: 100%;

    padding: 10px 5px 35px !important;
}


/* ============================================================
   BOOK SLIDE
============================================================ */

.portfolio-slide {
    height: auto;
}


/* ============================================================
   BOOK
============================================================ */

.portfolio-book {
    height: 100%;

    transition:
        transform 0.35s ease;
}

.portfolio-book:hover {
    transform: translateY(-7px);
}


/* ============================================================
   BOOK COVER
============================================================ */

.book-cover {
    position: relative;

    width: 100%;

    /* aspect-ratio: 9 / 16; */

    overflow: hidden;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #f2f3f5;

    border-radius: 5px;

    box-shadow:
        0 12px 30px rgba(25, 39, 79, 0.12);
}


/* BOOK IMAGE */

.book-cover img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    transition:
        transform 0.5s ease;
}

.portfolio-book:hover .book-cover img {
    transform: scale(1.035);
}


/* ============================================================
   BOOK DETAILS
============================================================ */

.book-details {
    padding: 15px 3px 0;
}

.book-category {
    display: block;

    margin-bottom: 5px;

    color: var(--deep-blue);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.book-details h3 {
    margin: 0 0 4px;

    color: var(--deep-blue);

    font-family: Georgia, "Times New Roman", serif;

    font-size: 17px;
    line-height: 1.3;
}

.book-details p {
    margin: 0;

    color: #7c8594;

    font-size: 11px;
}


/* ============================================================
   SWIPER ARROWS
============================================================ */

.portfolio-prev,
.portfolio-next {
    position: absolute;

    top: 43%;

    z-index: 10;

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #ffffff;

    border: 1px solid rgba(25, 39, 79, 0.12);

    border-radius: 50%;

    color: var(--deep-blue);

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(25, 39, 79, 0.12);

    transition:
        all 0.3s ease;
}

.portfolio-prev {
    left: 0;
}

.portfolio-next {
    right: 0;
}

.portfolio-prev:hover,
.portfolio-next:hover {
    color: #ffffff;

    background: var(--deep-blue);

    transform: translateY(-2px);
}


/* ============================================================
   BOTTOM BUTTON
============================================================ */

.portfolio-button-wrap {
    display: flex;

    justify-content: center;

    margin-top: 35px;
}

.portfolio-button {
    display: inline-flex;

    align-items: center;

    gap: 12px;

    padding: 13px 22px;

    color: #ffffff;

    background: var(--deep-blue);

    border-radius: 4px;

    text-decoration: none;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.5px;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.portfolio-button span {
    color: #e2b654;

    font-size: 17px;

    transition:
        transform 0.3s ease;
}

.portfolio-button:hover {
    color: #ffffff;

    background: var(--deep-blue);

    transform: translateY(-3px);
}

.portfolio-button:hover span {
    transform: translateX(5px);
}


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 991.98px) {

    .book-portfolio {
        padding: 80px 0;
    }

    .portfolio-tabs {
        margin-bottom: 35px;
    }

    .portfolio-prev {
        left: 5px;
    }

    .portfolio-next {
        right: 5px;
    }

}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 767.98px) {

    .book-portfolio {
        padding: 65px 0;
    }

    .portfolio-heading {
        margin-bottom: 30px;
    }

    .portfolio-heading h2 {
        font-size: 34px;
    }

    .portfolio-heading p {
        padding: 0 10px;

        font-size: 13px;
    }

    .portfolio-tabs {
        justify-content: flex-start;

        flex-wrap: nowrap;

        overflow-x: auto;

        padding: 0 5px 8px;

        margin-bottom: 30px;

        scrollbar-width: none;
    }

    .portfolio-tabs::-webkit-scrollbar {
        display: none;
    }

    .portfolio-tab {
        flex: 0 0 auto;
    }

    .portfolioSwiper {
        padding-left: 25px !important;
        padding-right: 25px !important;
    }

    .portfolio-prev,
    .portfolio-next {
        width: 36px;
        height: 36px;

        font-size: 11px;
    }

    .portfolio-prev {
        left: 0;
    }

    .portfolio-next {
        right: 0;
    }

}


/* ============================================================
   SMALL MOBILE
============================================================ */

@media (max-width: 480px) {

    .portfolio-heading h2 {
        font-size: 30px;
    }

    .portfolio-heading p {
        font-size: 12px;
    }

    .book-details h3 {
        font-size: 15px;
    }

    .book-details p {
        font-size: 10px;
    }

}