/* =========================================================
   FACULTY BOOKS & PUBLICATIONS
   University of Bahri
   FINAL CARD DESIGN
========================================================= */

.faculty-books-page {
    direction: rtl;
    font-family: "Cairo", sans-serif;
    color: #222;
    background: #f8faf9;
}

.faculty-books-page a {
    text-decoration: none;
}


/* =========================================================
   PAGE HEADER
========================================================= */

.faculty-books-header {
    text-align: center;
    margin-bottom: 45px;
}

.faculty-books-header h1 {
    margin: 0 0 10px;
    font-size: 38px;
    line-height: 1.4;
    font-weight: 700;
    color: #00883e;
}

.faculty-books-header p {
    margin: 0;
    color: #777;
    font-size: 17px;
    line-height: 1.8;
}


/* =========================================================
   STATISTICS
========================================================= */

.faculty-books-statistics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 45px;
}

.faculty-books-stat-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 25px;
    background: #fff;
    border: 1px solid #e4ebe7;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.faculty-books-stat-card:hover {
    transform: translateY(-3px);
    border-color: #cfe5d8;
    box-shadow: 0 10px 28px rgba(0, 136, 62, 0.10);
}

.faculty-books-stat-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f8f3;
    border-radius: 14px;
    color: #00883e;
    font-size: 27px;
}

.faculty-books-stat-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.faculty-books-stat-number {
    display: block;
    color: #00883e;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
}

.faculty-books-stat-label {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   BOOKS HEADER
========================================================= */

.faculty-books-all-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e3e9e5;
}

.faculty-books-all-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 5px;
    color: #222;
    font-size: 25px;
    font-weight: 700;
}

.faculty-books-all-header h2 i {
    color: #00883e;
    font-size: 27px;
}

.faculty-books-all-header p {
    margin: 0;
    color: #777;
    font-size: 14px;
}

.faculty-books-all-count {
    flex: 0 0 auto;
    padding: 9px 16px;
    background: #f0f8f3;
    border: 1px solid #d8ebdf;
    border-radius: 10px;
    color: #00883e;
    font-size: 14px;
    font-weight: 600;
}


/* =========================================================
   BOOKS LIST
========================================================= */

.faculty-books-all-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}


/* =========================================================
   REAL BOOK CARD
   الكلاس الموجود فعليًا في page-books.php
========================================================= */

.faculty-books-page .faculty-book-card-new {

    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
    min-width: 0;

    padding: 22px 25px;

    background: #ffffff !important;

    border: 1px solid rgba(0, 136, 62, 0.20) !important;

    border-radius: 16px !important;

    box-shadow:
        0 4px 16px rgba(0, 136, 62, 0.08) !important;

    overflow: hidden;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;

    will-change: transform, box-shadow;
}


/* =========================================================
   GREEN SIDE LINE
========================================================= */

.faculty-books-page .faculty-book-card-new::before {

    content: "";

    position: absolute;

    top: 0;
    right: 0;

    width: 4px;
    height: 100%;

    background: #00883e;

    border-radius: 0 16px 16px 0;

    transform: scaleY(0.35);
    transform-origin: center;

    opacity: 0.65;

    transition:
        transform 0.35s ease,
        opacity 0.35s ease;
}


/* =========================================================
   CARD HOVER
========================================================= */

.faculty-books-page .faculty-book-card-new:hover {

    background: #ffffff !important;

    transform: translateY(-5px);

    border-color: rgba(0, 136, 62, 0.42) !important;

    box-shadow:
        0 12px 30px rgba(0, 136, 62, 0.15) !important;
}


.faculty-books-page .faculty-book-card-new:hover::before {

    transform: scaleY(1);

    opacity: 1;
}


/* =========================================================
   CARD CONTENT
========================================================= */

.faculty-book-card-content {

    flex: 1 1 auto;

    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 12px;
}


/* =========================================================
   BOOK TITLE
========================================================= */

.faculty-book-card-title {

    min-width: 0;
}


.faculty-books-page .faculty-book-title-link {

    display: inline-flex;

    align-items: center;

    gap: 12px;

    color: #222 !important;

    font-family: "Cairo", sans-serif;

    font-size: 18px;

    line-height: 1.8;

    font-weight: 700;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}


.faculty-books-page .faculty-book-title-link i {

    flex: 0 0 auto;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 45px;

    height: 45px;

    background: #f0f8f3;

    border: 1px solid #d8ebdf;

    border-radius: 12px;

    color: #00883e;

    font-size: 21px;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}


.faculty-books-page .faculty-book-card-new:hover
.faculty-book-title-link {

    color: #00883e !important;

    transform: translateX(-3px);
}


.faculty-books-page .faculty-book-card-new:hover
.faculty-book-title-link i {

    background: #00883e;

    color: #ffffff;

    transform: scale(1.06) rotate(-3deg);
}


/* =========================================================
   AUTHOR AREA
========================================================= */

.faculty-book-card-author {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 12px;

    padding-top: 12px;

    border-top: 1px solid #edf2ef;
}


/* =========================================================
   AUTHOR LINK
========================================================= */

.faculty-books-page .faculty-book-author {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    color: #555;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}


.faculty-books-page .faculty-book-author:hover {

    color: #00883e;

    transform: translateX(-3px);
}


/* =========================================================
   AUTHOR PHOTO
========================================================= */

.faculty-books-page .faculty-book-card-new .faculty-book-author-photo {
    width: 65px !important;
    height: 65px !important;
    min-width: 65px !important;
    min-height: 65px !important;
    flex: 0 0 65px !important;

    border-radius: 50% !important;
    overflow: hidden !important;

    border: 3px solid #ffffff !important;

    box-shadow:
        0 4px 14px rgba(0, 136, 62, 0.18) !important;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease !important;
}


.faculty-books-page .faculty-book-author-photo img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;
}


.faculty-books-page .faculty-book-card-new:hover
.faculty-book-author-photo {

    transform: scale(1.05);

    box-shadow:
        0 5px 15px rgba(0, 136, 62, 0.22);
}


/* =========================================================
   PLACEHOLDER
========================================================= */

.faculty-book-author-placeholder {

    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #00883e;

    font-size: 21px;
}


/* =========================================================
   AUTHOR NAME
========================================================= */

.faculty-books-page .faculty-book-card-new .faculty-book-author-name {
    display: block !important;

    color: #444444 !important;

    font-family: "Cairo", sans-serif !important;

    font-size: 17px !important;

    line-height: 1.7 !important;

    font-weight: 700 !important;

    max-width: none !important;

    white-space: normal !important;

    transition: color 0.25s ease !important;
}

.faculty-books-page .faculty-book-author:hover
.faculty-book-author-name {

    color: #00883e;
}


/* =========================================================
   ARROW
========================================================= */

.faculty-books-page .faculty-book-card-arrow {

    width: 44px;

    height: 44px;

    flex: 0 0 44px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-right: 20px;

    background: #f0f8f3;

    border: 1px solid #d8ebdf;

    border-radius: 50%;

    color: #00883e;

    font-size: 19px;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}


.faculty-books-page .faculty-book-card-arrow:hover {

    background: #00883e;

    color: #ffffff;

    transform: translateX(-4px);
}


.faculty-books-page .faculty-book-card-new:hover
.faculty-book-card-arrow {

    background: #00883e;

    color: #ffffff;

    transform: translateX(-4px);
}


/* =========================================================
   BOOK NUMBER
   إخفاء الترقيم القديم
========================================================= */

.faculty-books-page .faculty-book-card-number {

    display: none !important;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.faculty-books-empty {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 60px 25px;

    text-align: center;

    background: #fff;

    border: 1px solid #e5ebe8;

    border-radius: 16px;

    box-shadow:
        0 5px 20px rgba(0, 136, 62, 0.06);
}

.faculty-books-empty i {

    margin-bottom: 15px;

    color: #00883e;

    font-size: 45px;
}

.faculty-books-empty h3 {

    margin: 0 0 8px;

    color: #333;

    font-size: 20px;

    font-weight: 700;
}

.faculty-books-empty p {

    margin: 0;

    color: #777;

    font-size: 14px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 992px) {

    .faculty-books-statistics {

        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .faculty-books-header {

        margin-bottom: 30px;
    }

    .faculty-books-header h1 {

        font-size: 30px;
    }

    .faculty-books-header p {

        font-size: 15px;
    }

    .faculty-books-statistics {

        grid-template-columns: 1fr;

        gap: 14px;

        margin-bottom: 35px;
    }

    .faculty-books-stat-card {

        padding: 18px 20px;
    }

    .faculty-books-all-header {

        align-items: flex-start;

        flex-direction: column;
    }

    .faculty-books-all-header h2 {

        font-size: 21px;
    }

    .faculty-books-all-count {

        align-self: flex-start;
    }


    /* CARD */

    .faculty-books-page .faculty-book-card-new {

        padding: 18px;

        border-radius: 14px !important;
    }


    .faculty-books-page .faculty-book-title-link {

        font-size: 16px;

        gap: 9px;
    }


    .faculty-books-page .faculty-book-title-link i {

        width: 40px;

        height: 40px;

        font-size: 19px;
    }


    .faculty-books-page .faculty-book-card-arrow {

        width: 40px;

        height: 40px;

        flex-basis: 40px;

        margin-right: 12px;

        font-size: 17px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 576px) {

    .faculty-books-page .container {

        padding-right: 15px !important;

        padding-left: 15px !important;
    }


    .faculty-books-header h1 {

        font-size: 25px;
    }


    .faculty-books-header p {

        font-size: 13px;
    }


    .faculty-books-page .faculty-book-card-new {

        align-items: flex-start;

        padding: 16px;

        border-radius: 13px !important;
    }


    .faculty-books-page .faculty-book-card-content {

        gap: 10px;
    }


    .faculty-books-page .faculty-book-title-link {

        font-size: 15px;

        line-height: 1.7;
    }


    .faculty-books-page .faculty-book-title-link i {

        width: 38px;

        height: 38px;

        font-size: 18px;
    }


    .faculty-books-page .faculty-book-card-author {

        padding-top: 10px;
    }


    .faculty-books-page .faculty-book-author-photo {

        width: 44px;

        height: 44px;

        flex-basis: 44px;
    }


    .faculty-books-page .faculty-book-author-name {

        font-size: 13px;
    }


    .faculty-books-page .faculty-book-card-arrow {

        width: 36px;

        height: 36px;

        flex-basis: 36px;

        margin-right: 8px;

        font-size: 16px;
    }

}


/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .faculty-books-page .faculty-book-card-new,
    .faculty-books-page .faculty-book-title-link,
    .faculty-books-page .faculty-book-title-link i,
    .faculty-books-page .faculty-book-author,
    .faculty-books-page .faculty-book-author-photo,
    .faculty-books-page .faculty-book-card-arrow {

        transition: none !important;
    }
}
/* =========================================================
   ENLARGE FACULTY PHOTO & NAME
========================================================= */

/* صورة عضو هيئة التدريس */
.faculty-books-page .faculty-book-author-photo {
    width: 60px !important;
    height: 60px !important;
    flex: 0 0 60px !important;
}

/* اسم عضو هيئة التدريس */
.faculty-books-page .faculty-book-author-name {
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.7 !important;
}
/* =========================================================
   FACULTY PHOTO & NAME - FINAL OVERRIDE
========================================================= */

.faculty-books-page .faculty-book-card-new
.faculty-book-author-photo {
    width: 65px !important;
    height: 65px !important;
    min-width: 65px !important;
    min-height: 65px !important;
    flex: 0 0 65px !important;
}

.faculty-books-page .faculty-book-card-new
.faculty-book-author-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.faculty-books-page .faculty-book-card-new
.faculty-book-author-name {
    font-size: 17px !important;
    font-weight: 700 !important;
    max-width: none !important;
    color: #444 !important;
}


/* حركة الصورة عند المرور */

.faculty-books-page .faculty-book-card-new:hover
.faculty-book-author-photo {
    transform: scale(1.06) !important;

    box-shadow:
        0 6px 18px rgba(0, 136, 62, 0.25) !important;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 576px) {

    .faculty-books-page .faculty-book-card-new
    .faculty-book-author-photo {
        width: 52px !important;
        height: 52px !important;
        min-width: 52px !important;
        min-height: 52px !important;
        flex-basis: 52px !important;
    }

    .faculty-books-page .faculty-book-card-new
    .faculty-book-author-name {
        font-size: 14px !important;
    }
}
/* =========================================================
   FIX FACULTY PHOTO DISPLAY
========================================================= */

.faculty-books-page .faculty-book-author-photo {
    position: relative !important;

    width: 65px !important;
    height: 65px !important;
    min-width: 65px !important;
    min-height: 65px !important;

    flex: 0 0 65px !important;

    display: block !important;

    overflow: hidden !important;

    border-radius: 50% !important;

    background: #f1f5f3 !important;

    border: 3px solid #ffffff !important;

    box-shadow:
        0 4px 14px rgba(0, 136, 62, 0.18) !important;
}


/* الصورة نفسها */

.faculty-books-page .faculty-book-author-photo img {

    display: block !important;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;
    max-height: none !important;

    object-fit: cover !important;

    object-position: center !important;

    opacity: 1 !important;

    visibility: visible !important;
}


/* منع أي CSS من إخفاء الصورة */

.faculty-books-page .faculty-book-author-photo picture {
    display: block !important;

    width: 100% !important;
    height: 100% !important;
}


.faculty-books-page .faculty-book-author-photo picture img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;
}


/* Placeholder */

.faculty-books-page .faculty-book-author-placeholder {

    width: 100% !important;
    height: 100% !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    color: #00883e !important;

    font-size: 22px !important;
}


/* Hover */

.faculty-books-page .faculty-book-card-new:hover
.faculty-book-author-photo {

    transform: scale(1.06) !important;

    box-shadow:
        0 6px 18px rgba(0, 136, 62, 0.25) !important;
}


/* Mobile */

@media (max-width: 576px) {

    .faculty-books-page .faculty-book-author-photo {

        width: 52px !important;
        height: 52px !important;

        min-width: 52px !important;
        min-height: 52px !important;

        flex-basis: 52px !important;
    }
}

/* =========================================================
   BOOKS PAGINATION
========================================================= */

.faculty-books-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 35px;
    direction: rtl;
}


.faculty-books-pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;

    border: 1px solid #e1e7ec;
    border-radius: 10px;

    background: #ffffff;
    color: #333;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.faculty-books-pagination-link:hover {
    background: #00883e;
    border-color: #00883e;
    color: #ffffff;

    transform: translateY(-2px);
}


.faculty-books-pagination-link.active {
    background: #00883e;
    border-color: #00883e;
    color: #ffffff;

    cursor: default;
}


.faculty-books-pagination-prev,
.faculty-books-pagination-next {
    gap: 7px;
}


.faculty-books-pagination-link i {
    font-size: 13px;
}
.faculty-book-author-name {
    transition: color 0.25s ease;
}

.faculty-book-author:hover .faculty-book-author-name {
    color: #00883e !important;
}
/* =========================================================
   GLOBAL ARABIC FONT - CAIRO
========================================================= */

/* Labels */
body label,
body .form-label,
body label.form-label {
    font-family: 'Cairo', sans-serif !important;
}

/* Sidebar headings */
body .widget-title,
body  h1,
body  h2,
body  h3,
body  h4,
body  h5,
body  h6 {
    font-family: 'Cairo', sans-serif !important;
}