/* =========================================================
   RUANG BACA VIRTUAL
   Perpustakaan Fakultas Kedokteran Universitas Hang Tuah
   ========================================================= */


/* ---------------------------------------------------------
   GENERAL
   --------------------------------------------------------- */

.rbv-page {
    font-family: "Segoe UI", Arial, sans-serif;
    color: #172b4d;
    background: #f6f8fb;
    margin: 0;
    padding: 0;
}

.rbv-container {
    width: 90%;
    max-width: 1150px;
    margin: 0 auto;
}


/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */

.rbv-hero {
    position: relative;
    overflow: hidden;
    padding: 75px 20px 85px;
    background:
        linear-gradient(
            135deg,
            #071d38 0%,
            #0a2d52 55%,
            #123e67 100%
        );
}

.rbv-hero::after {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    border: 1px solid rgba(211, 167, 54, 0.25);
    border-radius: 50%;
    right: -100px;
    top: -120px;
}

.rbv-hero::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(211, 167, 54, 0.20);
    border-radius: 50%;
    right: 90px;
    bottom: -140px;
}

.rbv-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.rbv-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1px solid rgba(220, 177, 57, 0.7);
    border-radius: 30px;
    color: #f0c95c;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.rbv-badge span {
    font-size: 18px;
}

.rbv-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: 42px;
    line-height: 1.25;
    font-weight: 700;
}

.rbv-hero h1 span {
    color: #e2b83d;
}

.rbv-hero p {
    max-width: 700px;
    margin: 22px auto 0;
    color: rgba(255,255,255,0.82);
    font-size: 16px;
    line-height: 1.8;
}


/* ---------------------------------------------------------
   WELCOME
   --------------------------------------------------------- */

.rbv-welcome {
    padding: 70px 0 80px;
    background: #ffffff;
}

.rbv-section-title {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 45px;
}

.rbv-small-title {
    display: block;
    color: #c99b24;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.rbv-section-title h2 {
    margin: 0;
    color: #102d4d;
    font-size: 30px;
    font-weight: 700;
}

.rbv-section-title p {
    margin: 18px auto 0;
    color: #687789;
    line-height: 1.8;
    font-size: 15px;
}

.rbv-line {
    width: 55px;
    height: 3px;
    background: #d2a62d;
    margin: 17px auto;
}


/* ---------------------------------------------------------
   CARD GRID
   --------------------------------------------------------- */

.rbv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.rbv-card {
    position: relative;
    display: block;
    padding: 30px 27px;
    background: #ffffff;
    border: 1px solid #e5eaf0;
    border-radius: 12px;
    text-decoration: none !important;
    box-shadow: 0 5px 20px rgba(10, 35, 65, 0.06);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.rbv-card:hover {
    transform: translateY(-7px);
    border-color: #d2a62d;
    box-shadow: 0 15px 35px rgba(10, 35, 65, 0.12);
}

.rbv-icon {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 14px;
    font-size: 30px;
    margin-bottom: 20px;
    transition: 0.25s ease;
}

.rbv-card:hover .rbv-icon {
    background: #102d4d;
    transform: scale(1.05);
}

.rbv-card-content h3 {
    margin: 0 0 10px;
    color: #102d4d;
    font-size: 19px;
    font-weight: 700;
}

.rbv-card-content p {
    min-height: 68px;
    margin: 0;
    color: #6d7b8b;
    font-size: 14px;
    line-height: 1.7;
}

.rbv-link {
    display: inline-block;
    margin-top: 18px;
    color: #b58717;
    font-size: 13px;
    font-weight: 700;
}

.rbv-link b {
    display: inline-block;
    margin-left: 5px;
    transition: 0.2s ease;
}

.rbv-card:hover .rbv-link b {
    transform: translateX(5px);
}


/* ---------------------------------------------------------
   DATABASE
   --------------------------------------------------------- */

.rbv-database {
    padding: 75px 0;
    background: #f5f7fa;
}

.rbv-database-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.rbv-database-item {
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e2e7ed;
    border-radius: 10px;
    text-decoration: none !important;
    transition: 0.25s ease;
}

.rbv-database-item:hover {
    border-color: #d2a62d;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(10, 35, 65, 0.08);
}

.rbv-database-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    background: #102d4d;
    font-size: 22px;
}

.rbv-database-item div:nth-child(2) {
    flex: 1;
}

.rbv-database-item strong {
    display: block;
    color: #102d4d;
    font-size: 16px;
    margin-bottom: 4px;
}

.rbv-database-item span {
    display: block;
    color: #748091;
    font-size: 12px;
    line-height: 1.5;
}

.rbv-database-item > b {
    color: #bd911d;
    font-size: 20px;
}


/* ---------------------------------------------------------
   INFO
   --------------------------------------------------------- */

.rbv-info {
    padding: 55px 0;
    background: #ffffff;
}

.rbv-info-box {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 30px 35px;
    border-radius: 12px;
    background: #0b2746;
    border-left: 5px solid #d2a62d;
}

.rbv-info-icon {
    width: 55px;
    height: 55px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    font-size: 25px;
}

.rbv-info-box h3 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 19px;
}

.rbv-info-box p {
    margin: 0;
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    line-height: 1.7;
}


/* ---------------------------------------------------------
   RESPONSIVE TABLET
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .rbv-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rbv-hero h1 {
        font-size: 35px;
    }

}


/* ---------------------------------------------------------
   RESPONSIVE MOBILE
   --------------------------------------------------------- */

@media (max-width: 600px) {

    .rbv-container {
        width: 88%;
    }

    .rbv-hero {
        padding: 55px 15px 60px;
    }

    .rbv-hero h1 {
        font-size: 29px;
    }

    .rbv-hero p {
        font-size: 14px;
    }

    .rbv-welcome,
    .rbv-database {
        padding: 50px 0;
    }

    .rbv-section-title h2 {
        font-size: 25px;
    }

    .rbv-grid {
        grid-template-columns: 1fr;
    }

    .rbv-database-grid {
        grid-template-columns: 1fr;
    }

    .rbv-card-content p {
        min-height: auto;
    }

    .rbv-info-box {
        align-items: flex-start;
        padding: 25px;
    }

}
/* =========================================================
   E-BOOK VIRTUAL
   ========================================================= */

.ebook-library {
    background: #ffffff;
    padding: 70px 0 80px;
}


/* SEARCH */

.ebook-search-box {
    position: relative;
    max-width: 720px;
    margin: 0 auto 25px;
}

.ebook-search-box input {
    width: 100%;
    height: 58px;
    box-sizing: border-box;
    padding: 0 55px 0 55px;

    border: 1px solid #dce3ea;
    border-radius: 30px;

    background: #ffffff;
    color: #25384d;

    font-size: 15px;

    outline: none;

    box-shadow: 0 7px 25px rgba(10, 35, 65, 0.07);

    transition: 0.25s ease;
}

.ebook-search-box input:focus {
    border-color: #c99b24;
    box-shadow: 0 8px 30px rgba(10, 35, 65, 0.12);
}

.ebook-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;

    transform: translateY(-50%);

    font-size: 19px;
}

#ebookClear {
    position: absolute;
    right: 17px;
    top: 50%;

    transform: translateY(-50%);

    width: 30px;
    height: 30px;

    border: 0;
    border-radius: 50%;

    background: #eef2f6;
    color: #657386;

    font-size: 19px;
    line-height: 25px;

    cursor: pointer;
}


/* FILTER */

.ebook-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 9px;

    margin: 0 auto 30px;
}

.ebook-filter-btn {
    border: 1px solid #dce3ea;
    background: #ffffff;

    color: #526476;

    padding: 9px 18px;

    border-radius: 25px;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}

.ebook-filter-btn:hover {
    border-color: #c99b24;
    color: #a77c11;
}

.ebook-filter-btn.active {
    background: #102d4d;
    border-color: #102d4d;
    color: #ffffff;
}


/* RESULT */

.ebook-result-info {
    padding-bottom: 14px;
    margin-bottom: 25px;

    border-bottom: 1px solid #e7ebef;

    color: #778595;
    font-size: 13px;
}

.ebook-result-info strong {
    color: #b18416;
}


/* GRID */

.ebook-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 25px;
}


/* CARD */

.ebook-card {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e4e9ee;
    border-radius: 12px;

    box-shadow:
        0 5px 18px rgba(15, 43, 73, 0.06);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.ebook-card:hover {
    transform: translateY(-7px);

    border-color: #d1aa43;

    box-shadow:
        0 15px 35px rgba(15, 43, 73, 0.13);
}


/* COVER */

.ebook-cover {
    position: relative;

    height: 285px;

    padding: 24px;

    display: flex;
    justify-content: center;
    align-items: center;

    background:
        linear-gradient(
            145deg,
            #eef3f7,
            #e3eaf0
        );
}

.ebook-cover-placeholder {
    width: 155px;
    height: 215px;

    box-sizing: border-box;

    padding: 25px 15px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            #0a2949,
            #123e67
        );

    border-radius: 4px 10px 10px 4px;

    border-left: 7px solid #d1a52d;

    box-shadow:
        8px 10px 18px rgba(8, 31, 55, 0.25);

    color: #ffffff;
}

.ebook-cover-placeholder > span {
    font-size: 36px;
    margin-bottom: 15px;
}

.ebook-cover-placeholder strong {
    color: #ffffff;

    font-size: 16px;
    line-height: 1.35;
}

.ebook-cover-placeholder small {
    display: block;

    margin-top: 13px;

    color: #e3c76c;

    font-size: 10px;

    letter-spacing: 1px;
}


/* BADGE */

.ebook-badge-open {
    position: absolute;

    top: 14px;
    left: 14px;

    z-index: 2;

    padding: 6px 9px;

    border-radius: 4px;

    background: #c69a26;
    color: #ffffff;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .7px;
}


/* CONTENT */

.ebook-content {
    padding: 20px;
}

.ebook-category {
    display: inline-block;

    margin-bottom: 8px;

    color: #b18416;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1px;

    text-transform: uppercase;
}

.ebook-content h3 {
    min-height: 46px;

    margin: 0 0 8px;

    color: #102d4d;

    font-size: 16px;
    line-height: 1.45;

    font-weight: 700;
}

.ebook-author {
    min-height: 20px;

    margin: 0 0 14px;

    color: #778596;

    font-size: 12px;
}


/* META */

.ebook-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 6px;

    padding: 12px 0;

    margin-bottom: 15px;

    border-top: 1px solid #eef1f4;
    border-bottom: 1px solid #eef1f4;
}

.ebook-meta span {
    padding: 5px 7px;

    background: #f4f6f8;

    border-radius: 4px;

    color: #657486;

    font-size: 10px;
}


/* BUTTON */

.ebook-read-btn {
    display: block;

    padding: 11px 10px;

    border-radius: 6px;

    background: #102d4d;
    color: #ffffff !important;

    text-align: center;
    text-decoration: none !important;

    font-size: 12px;
    font-weight: 700;

    transition: 0.2s ease;
}

.ebook-read-btn:hover {
    background: #c49a2c;
    color: #ffffff !important;
}


/* EMPTY */

.ebook-empty {
    display: none;

    padding: 60px 20px;

    text-align: center;
}

.ebook-empty > div {
    font-size: 40px;
}

.ebook-empty h3 {
    margin: 15px 0 7px;

    color: #102d4d;
}

.ebook-empty p {
    color: #7b8897;
}


/* INFORMATION */

.ebook-note {
    padding: 50px 0;

    background: #f5f7fa;
}

.ebook-note-box {
    display: flex;
    align-items: center;

    gap: 22px;

    padding: 27px 32px;

    border-left: 4px solid #c99b24;
    border-radius: 8px;

    background: #ffffff;

    box-shadow:
        0 5px 20px rgba(10, 35, 65, 0.06);
}

.ebook-note-icon {
    width: 52px;
    height: 52px;

    flex-shrink: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 50%;

    background: #102d4d;

    font-size: 23px;
}

.ebook-note-box h3 {
    margin: 0 0 7px;

    color: #102d4d;

    font-size: 17px;
}

.ebook-note-box p {
    margin: 0;

    color: #6d7c8c;

    font-size: 13px;
    line-height: 1.7;
}


/* TABLET */

@media (max-width: 1000px) {

    .ebook-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


/* TABLET KECIL */

@media (max-width: 760px) {

    .ebook-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* MOBILE */

@media (max-width: 520px) {

    .ebook-grid {
        grid-template-columns: 1fr;
    }

    .ebook-card {
        max-width: 330px;
        width: 100%;
        margin: auto;
    }

    .ebook-filter {
        justify-content: flex-start;
    }

    .ebook-note-box {
        align-items: flex-start;
        padding: 23px;
    }

}
/* =========================================================
   COVER ASLI DARI SLiMS
   ========================================================= */

.ebook-real-cover {
    display: block;

    width: auto;
    max-width: 175px;

    height: 230px;
    max-height: 230px;

    object-fit: contain;

    border-radius: 3px 8px 8px 3px;

    box-shadow:
        8px 10px 20px
        rgba(8, 31, 55, 0.22);
}


/* =========================================================
   DATABASE KOSONG
   ========================================================= */

.ebook-empty-database {
    margin: 30px 0;

    padding: 60px 20px;

    text-align: center;

    border: 1px dashed #d7dde4;
    border-radius: 12px;

    background: #f8fafc;
}

.ebook-empty-icon {
    margin-bottom: 15px;

    font-size: 48px;
}

.ebook-empty-database h3 {
    margin: 0 0 10px;

    color: #102d4d;

    font-size: 20px;
}

.ebook-empty-database p {
    margin: auto;

    max-width: 500px;

    color: #728092;

    font-size: 14px;

    line-height: 1.7;
}
/* =========================================================
   TOMBOL AKSI E-BOOK
   ========================================================= */

.ebook-actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 15px;
}


/* TOMBOL BACA */

.ebook-actions .ebook-read-btn {
    display: block;
    width: 100%;
    padding: 11px 15px;

    background: #082b50;
    color: #ffffff !important;

    border-radius: 7px;

    text-align: center;
    text-decoration: none !important;

    font-size: 13px;
    font-weight: 700;

    box-sizing: border-box;

    transition: 0.2s ease;
}

.ebook-actions .ebook-read-btn:hover {
    background: #d3a900;
    color: #082b50 !important;
    text-decoration: none !important;
}


/* TOMBOL DETAIL */

.ebook-detail-btn {
    display: block;
    width: 100%;
    padding: 10px 15px;

    background: #ffffff;
    color: #082b50 !important;

    border: 1px solid #082b50;
    border-radius: 7px;

    text-align: center;
    text-decoration: none !important;

    font-size: 13px;
    font-weight: 700;

    box-sizing: border-box;

    transition: 0.2s ease;
}

.ebook-detail-btn:hover {
    background: #f5f7f9;
    border-color: #d3a900;
    color: #b38f00 !important;
    text-decoration: none !important;
}


/* JIKA PDF BELUM ADA */

.ebook-no-file {
    width: 100%;
    padding: 10px 15px;

    background: #f4f5f6;
    color: #89929b;

    border: 1px solid #e1e5e8;
    border-radius: 7px;

    text-align: center;

    font-size: 12px;

    box-sizing: border-box;
}