/* ==========================================
   ExamGenius E-Books
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fb;
    color: #172033;
}


/* ==========================================
   HEADER
   ========================================== */

.top-header {
    width: 100%;
    min-height: 76px;

    background: #ffffff;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 5%;

    border-bottom: 1px solid #dfe4ec;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}


.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}


.logo {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #123b70;
    color: #ffffff;

    font-size: 18px;
    font-weight: 800;

    border-radius: 10px;
}


.brand h2 {
    font-size: 21px;
    color: #101828;
}


.brand p {
    margin-top: 3px;

    font-size: 13px;
    color: #667085;
}


.back-btn {
    text-decoration: none;

    background: #123b70;
    color: #ffffff;

    padding: 11px 20px;

    border-radius: 8px;

    font-size: 15px;
    font-weight: 700;

    transition: 0.2s;
}


.back-btn:hover {
    background: #0c2c55;
}


/* ==========================================
   MAIN CONTAINER
   ========================================== */

.container {
    width: 90%;
    max-width: 1250px;

    margin: 0 auto;

    padding: 42px 0 70px;
}


/* ==========================================
   PAGE HEADER
   ========================================== */

.page-header {
    background: #ffffff;

    border: 1px solid #e0e5ed;

    border-radius: 14px;

    padding: 32px;

    margin-bottom: 28px;

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}


.page-header span {
    display: inline-block;

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 1px;

    color: #123b70;

    margin-bottom: 10px;
}


.page-header h1 {
    font-size: 34px;

    color: #101828;

    margin-bottom: 9px;
}


.page-header p {
    font-size: 16px;

    line-height: 1.6;

    color: #475467;
}


/* ==========================================
   CATEGORY BUTTONS
   ========================================== */

.categories {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-bottom: 30px;
}


.category-btn {
    border: 1px solid #cbd5e1;

    background: #ffffff;

    color: #172033;

    padding: 11px 20px;

    border-radius: 8px;

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;

    transition: 0.2s;
}


.category-btn:hover {
    border-color: #123b70;

    color: #123b70;
}


.category-btn.active {
    background: #123b70;

    border-color: #123b70;

    color: #ffffff;
}


/* ==========================================
   BOOK GRID
   ========================================== */

.book-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;
}


/* ==========================================
   BOOK CARD
   ========================================== */

.book-card {
    background: #ffffff;

    border: 1px solid #dfe4ec;

    border-radius: 14px;

    overflow: hidden;

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.06);

    transition:
        transform 0.2s,
        box-shadow 0.2s;
}


.book-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.10);
}


/* ==========================================
   BOOK COVER
   ========================================== */

.book-cover {
    height: 190px;

    background: #eaf0f7;

    display: flex;

    align-items: center;

    justify-content: center;

    position: relative;
}


.book-cover-icon {
    width: 92px;
    height: 116px;

    background: #ffffff;

    border: 1px solid #cbd5e1;

    border-radius: 5px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 42px;

    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.10);
}


.book-badge {
    position: absolute;

    top: 14px;

    right: 14px;

    background: #ffffff;

    color: #123b70;

    border: 1px solid #d7dee8;

    padding: 6px 10px;

    border-radius: 6px;

    font-size: 12px;

    font-weight: 800;
}


/* ==========================================
   BOOK CONTENT
   ========================================== */

.book-content {
    padding: 20px;
}


.book-category {
    font-size: 12px;

    font-weight: 800;

    color: #667085;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    margin-bottom: 8px;
}


.book-title {
    font-size: 19px;

    line-height: 1.35;

    color: #101828;

    margin-bottom: 9px;
}


.book-description {
    font-size: 14px;

    line-height: 1.55;

    color: #667085;

    min-height: 44px;

    margin-bottom: 18px;
}


/* ==========================================
   BOOK FOOTER
   ========================================== */

.book-footer {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;
}


.book-price {
    font-size: 20px;

    font-weight: 800;

    color: #101828;
}


.book-btn {
    border: none;

    background: #123b70;

    color: #ffffff;

    padding: 10px 16px;

    border-radius: 7px;

    font-size: 14px;

    font-weight: 800;

    cursor: pointer;

    transition: 0.2s;
}


.book-btn:hover {
    background: #0c2c55;
}


/* ==========================================
   EMPTY STATE
   ========================================== */

.empty-books {
    grid-column: 1 / -1;

    background: #ffffff;

    border: 1px solid #dfe4ec;

    border-radius: 12px;

    padding: 45px 20px;

    text-align: center;

    color: #667085;

    font-size: 16px;
}


/* ==========================================
   TABLET
   ========================================== */

@media (max-width: 900px) {

    .book-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 600px) {

    .top-header {
        padding: 12px 4%;
    }


    .brand h2 {
        font-size: 18px;
    }


    .brand p {
        font-size: 11px;
    }


    .logo {
        width: 42px;
        height: 42px;
    }


    .back-btn {
        padding: 9px 12px;

        font-size: 13px;
    }


    .container {
        width: 92%;

        padding-top: 25px;
    }


    .page-header {
        padding: 24px;
    }


    .page-header h1 {
        font-size: 28px;
    }


    .page-header p {
        font-size: 14px;
    }


    .book-grid {
        grid-template-columns: 1fr;
    }


    .category-btn {
        padding: 10px 15px;

        font-size: 14px;
    }

}
.pdf-cover{position:relative;overflow:hidden;background:#f5f7fb;min-height:260px;display:flex;align-items:center;justify-content:center}.pdf-preview{max-width:100%;width:100%;height:260px;object-fit:cover;display:block}.pdf-cover .book-badge{z-index:2}
