/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: #f7f9fc;
    color: #172033;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input {
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}


/* =====================================================
   CONTAINER
===================================================== */

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}


/* =====================================================
   NAVBAR
===================================================== */

.navbar {
    width: 100%;
    height: 78px;
    background: #ffffff;
    border-bottom: 1px solid #e9edf3;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* LOGO */

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon {
    width: 43px;
    height: 43px;
    border-radius: 12px;
    background: #1769aa;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.logo-text span {
    font-size: 10px;
    font-weight: 600;
    color: #697586;
    letter-spacing: 1px;
}

.logo-text strong {
    font-size: 19px;
    font-weight: 800;
    color: #1769aa;
}


/* NAV MENU */

.nav-menu {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border-radius: 8px;
    color: #566174;
    font-size: 13px;
    font-weight: 500;
    transition: 0.3s;
}

.nav-link i {
    font-size: 13px;
}

.nav-link:hover {
    color: #1769aa;
    background: #eef6fc;
}

.nav-link.active {
    color: #1769aa;
    background: #eef6fc;
    font-weight: 600;
}


/* AUTH */

.nav-auth {
    display: flex;
    align-items: center;
    gap: 9px;
}

.btn-login {
    padding: 9px 14px;
    border: 1px solid #d8e0e9;
    border-radius: 8px;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-login i {
    margin-right: 5px;
}

.btn-login:hover {
    border-color: #1769aa;
    color: #1769aa;
}

.btn-register {
    padding: 10px 17px;
    border-radius: 8px;
    background: #1769aa;
    color: white;
    font-size: 13px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-register:hover {
    background: #125589;
    transform: translateY(-1px);
}


/* MOBILE BUTTON */

.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    color: #172033;
    font-size: 22px;
    cursor: pointer;
}


/* =====================================================
   HERO
===================================================== */

.hero {
    background:
        linear-gradient(
            110deg,
            #eef7ff 0%,
            #f8fbff 55%,
            #ffffff 100%
        );
    padding: 70px 0 75px;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 55px;
}


/* HERO CONTENT */

.hero-content {
    max-width: 620px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    background: #e2f1fc;
    border: 1px solid #cce6f8;
    color: #1769aa;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 18px;
}

.hero-badge i {
    font-size: 12px;
}

.hero h1 {
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: -2px;
    font-weight: 800;
    color: #172033;
    margin-bottom: 20px;
}

.hero h1 span {
    color: #1769aa;
    display: inline;
}

.hero-description {
    max-width: 570px;
    color: #647084;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
}


/* SEARCH */

.search-box {
    width: 100%;
    max-width: 580px;
    height: 58px;
    background: white;
    border: 1px solid #dce4ec;
    border-radius: 11px;
    display: flex;
    align-items: center;
    padding: 5px 5px 5px 17px;
    box-shadow: 0 8px 30px rgba(35, 71, 105, 0.08);
    margin-bottom: 20px;
}

.search-box > i {
    color: #8995a5;
    font-size: 16px;
    margin-right: 11px;
}

.search-box input {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    color: #172033;
    font-size: 13px;
    background: transparent;
}

.search-box input::placeholder {
    color: #9ba5b3;
}

.search-box button {
    height: 46px;
    padding: 0 21px;
    border: none;
    border-radius: 8px;
    background: #1769aa;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.search-box button:hover {
    background: #125589;
}


/* HERO BUTTON */

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 19px;
    background: #1769aa;
    color: white;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #125589;
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 17px;
    border: 1px solid #d6e0ea;
    background: white;
    color: #455266;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-secondary:hover {
    border-color: #1769aa;
    color: #1769aa;
}


/* STATISTICS */

.hero-statistics {
    display: flex;
    align-items: center;
    gap: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item strong {
    font-size: 21px;
    color: #172033;
    font-weight: 800;
}

.stat-item span {
    color: #7a8697;
    font-size: 11px;
    margin-top: 1px;
}


/* =====================================================
   HERO IMAGE
===================================================== */

.hero-image-wrapper {
    position: relative;
    width: 100%;
}

.hero-image-card {
    position: relative;
    width: 100%;
    height: 470px;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 25px 55px rgba(31, 66, 99, 0.18);
}

.hero-image-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(11, 39, 61, 0.35),
            transparent 45%
        );
    pointer-events: none;
}

.hero-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* READING CARD */

.reading-card {
    position: absolute;
    left: 22px;
    bottom: 22px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 11px;
    background: rgba(255, 255, 255, 0.95);
    padding: 13px 17px;
    border-radius: 13px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.13);
}

.reading-icon {
    width: 39px;
    height: 39px;
    border-radius: 10px;
    background: #e6f3fb;
    color: #1769aa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reading-card div:last-child {
    display: flex;
    flex-direction: column;
}

.reading-card strong {
    font-size: 12px;
    color: #172033;
}

.reading-card span {
    font-size: 10px;
    color: #7b8796;
}


/* =====================================================
   SECTION GENERAL
===================================================== */

.category-section,
.books-section,
.history-section {
    padding: 80px 0;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 30px;
}

.section-label {
    display: block;
    color: #1769aa;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
    margin-bottom: 7px;
}

.section-heading h2 {
    color: #172033;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
}

.see-more {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #1769aa;
    font-size: 12px;
    font-weight: 600;
    transition: 0.3s;
}

.see-more:hover {
    gap: 11px;
}


/* =====================================================
   CATEGORY
===================================================== */

.category-section {
    background: #ffffff;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.category-card {
    background: #f8fafc;
    border: 1px solid #e8edf3;
    border-radius: 13px;
    padding: 20px 14px;
    text-align: center;
    transition: 0.3s;
}

.category-card:hover {
    background: white;
    border-color: #bcdcf2;
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(31, 76, 112, 0.08);
}

.category-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.category-icon.matematika {
    background: #eaf3ff;
    color: #2878c5;
}

.category-icon.ipa {
    background: #eafaf1;
    color: #2d9a62;
}

.category-icon.bahasa {
    background: #fff3e8;
    color: #d47a25;
}

.category-icon.ips {
    background: #f1edff;
    color: #7357c9;
}

.category-icon.kejuruan {
    background: #edf7f7;
    color: #277f82;
}

.category-icon.inggris {
    background: #fff0f0;
    color: #cc5353;
}

.category-card h3 {
    color: #263247;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 3px;
}

.category-card p {
    color: #8792a2;
    font-size: 10px;
    line-height: 1.5;
}


/* =====================================================
   BOOKS
===================================================== */

.books-section {
    background: #f7f9fc;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.book-card {
    background: white;
    border: 1px solid #e8edf3;
    border-radius: 14px;
    overflow: hidden;
    transition: 0.3s;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(32, 69, 103, 0.1);
}


/* BOOK COVER */

.book-cover {
    width: 100%;
    height: 245px;
    overflow: hidden;
}

.book-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    color: white;
    text-align: center;
    padding: 25px;
}

.book-placeholder i {
    font-size: 45px;
}

.book-placeholder span {
    max-width: 130px;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 800;
}

.book-placeholder.math {
    background:
        linear-gradient(
            145deg,
            #1669aa,
            #4a9bd1
        );
}

.book-placeholder.ipa {
    background:
        linear-gradient(
            145deg,
            #23855a,
            #59b97d
        );
}

.book-placeholder.indonesia {
    background:
        linear-gradient(
            145deg,
            #c76c24,
            #e7a35e
        );
}

.book-placeholder.ips {
    background:
        linear-gradient(
            145deg,
            #6650ae,
            #9985dc
        );
}


/* BOOK INFO */

.book-info {
    padding: 17px;
}

.book-category {
    display: inline-block;
    color: #1769aa;
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 6px;
}

.book-info h3 {
    color: #202b3e;
    font-size: 14px;
    line-height: 1.35;
    margin-bottom: 7px;
}

.book-info p {
    color: #7d8898;
    font-size: 11px;
    line-height: 1.6;
    margin-bottom: 14px;
}

.book-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #1769aa;
    font-size: 11px;
    font-weight: 700;
}

.book-button i {
    transition: 0.3s;
}

.book-button:hover i {
    transform: translateX(4px);
}


/* =====================================================
   HISTORY
===================================================== */

.history-section {
    background: white;
}

.history-box {
    min-height: 180px;
    background: #f7faff;
    border: 1px dashed #c9dce9;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 30px;
}

.history-icon {
    flex-shrink: 0;
    width: 65px;
    height: 65px;
    border-radius: 15px;
    background: #e5f2fb;
    color: #1769aa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
}

.history-content h3 {
    color: #263247;
    font-size: 17px;
    margin-bottom: 5px;
}

.history-content p {
    max-width: 650px;
    color: #7d8898;
    font-size: 12px;
    margin-bottom: 15px;
}


/* =====================================================
   CTA
===================================================== */

.cta-section {
    padding: 20px 0 80px;
    background: white;
}

.cta-box {
    min-height: 260px;
    border-radius: 20px;
    background:
        linear-gradient(
            120deg,
            #125b91,
            #2186c1
        );
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 45px 55px;
}

.cta-box::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 45px solid rgba(255, 255, 255, 0.06);
    right: -90px;
    top: -100px;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
}

.cta-content > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.3px;
    margin-bottom: 8px;
}

.cta-content h2 {
    color: white;
    font-size: 29px;
    line-height: 1.2;
    margin-bottom: 9px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    margin-bottom: 19px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 17px;
    border-radius: 8px;
    background: white;
    color: #1769aa;
    font-size: 12px;
    font-weight: 700;
    transition: 0.3s;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.15);
}

.cta-icon {
    position: relative;
    z-index: 2;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 52px;
}


/* =====================================================
   FOOTER
===================================================== */

.footer {
    background: #111d2c;
    color: white;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 50px;
    padding: 60px 0;
}

.footer-logo .logo-text span {
    color: #9ba7b6;
}

.footer-logo .logo-text strong {
    color: white;
}

.footer-brand > p {
    max-width: 350px;
    margin-top: 17px;
    color: #8d99a9;
    font-size: 12px;
    line-height: 1.8;
}

.footer-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-menu h3 {
    font-size: 13px;
    margin-bottom: 17px;
    color: white;
}

.footer-menu a {
    color: #8d99a9;
    font-size: 11px;
    margin-bottom: 9px;
    transition: 0.3s;
}

.footer-menu a:hover {
    color: white;
    padding-left: 3px;
}

.footer-menu p {
    color: #8d99a9;
    font-size: 11px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-menu p i {
    color: #5fa6d5;
    width: 13px;
}


/* FOOTER BOTTOM */

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 0;
}

.footer-bottom p {
    text-align: center;
    color: #718092;
    font-size: 10px;
}


/* =====================================================
   RESPONSIVE TABLET
===================================================== */

@media (max-width: 1050px) {

    .nav-menu {
        gap: 0;
    }

    .nav-link {
        padding: 8px 8px;
        font-size: 11px;
    }

    .nav-auth {
        gap: 5px;
    }

    .btn-login,
    .btn-register {
        font-size: 11px;
        padding: 8px 11px;
    }

    .hero-container {
        gap: 35px;
    }

    .hero-image-card {
        height: 400px;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .books-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =====================================================
   RESPONSIVE MOBILE
===================================================== */

@media (max-width: 768px) {

    .container {
        width: 92%;
    }


    /* NAVBAR */

    .navbar {
        height: 68px;
    }

    .nav-menu,
    .nav-auth {
        display: none;
    }

    .menu-toggle {
        display: block;
    }


    /* HERO */

    .hero {
        padding: 45px 0 55px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 40px;
        letter-spacing: -1.5px;
    }

    .hero-description {
        font-size: 14px;
    }

    .search-box {
        height: 54px;
    }

    .search-box button {
        height: 44px;
        padding: 0 14px;
    }

    .hero-image-card {
        height: 350px;
    }

    .hero-statistics {
        gap: 24px;
    }


    /* SECTIONS */

    .category-section,
    .books-section,
    .history-section {
        padding: 60px 0;
    }

    .section-heading {
        align-items: flex-start;
        gap: 15px;
    }

    .section-heading h2 {
        font-size: 23px;
    }


    /* CATEGORY */

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    /* BOOKS */

    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .book-cover {
        height: 210px;
    }


    /* HISTORY */

    .history-box {
        align-items: flex-start;
        flex-direction: column;
    }


    /* CTA */

    .cta-box {
        padding: 35px 25px;
    }

    .cta-icon {
        display: none;
    }


    /* FOOTER */

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 480px) {

    .hero h1 {
        font-size: 34px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .hero-statistics {
        justify-content: space-between;
        gap: 10px;
    }

    .stat-item strong {
        font-size: 17px;
    }

    .category-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .books-grid {
        grid-template-columns: 1fr;
    }

    .book-cover {
        height: 260px;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-content h2 {
        font-size: 23px;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

}

/* =====================================================
   READING HISTORY DYNAMIC
===================================================== */

.history-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    border: 1px solid #e2e9f0;
    border-radius: 11px;
    padding: 12px;
    transition: 0.3s;
}

.history-item:hover {
    border-color: #bcd8eb;
    transform: translateX(3px);
}

.history-book-icon {
    width: 48px;
    height: 55px;
    flex-shrink: 0;
    border-radius: 7px;
    background: #1769aa;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-book-info {
    flex: 1;
}

.history-book-info span {
    display: block;
    color: #1769aa;
    font-size: 9px;
    font-weight: 700;
    margin-bottom: 2px;
}

.history-book-info h3 {
    color: #263247;
    font-size: 13px;
    margin-bottom: 1px;
}

.history-book-info p {
    color: #8b96a5;
    font-size: 10px;
}

.history-read-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 11px;
    border-radius: 7px;
    background: #eef6fc;
    color: #1769aa;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.history-read-button:hover {
    background: #1769aa;
    color: white;
}

.clear-history {
    margin-top: 15px;
    border: none;
    background: transparent;
    color: #d14f4f;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.clear-history:hover {
    text-decoration: underline;
}


/* =====================================================
   MOBILE MENU
===================================================== */

@media (max-width: 768px) {

    .nav-menu.mobile-active {
        display: flex;
        position: absolute;
        top: 68px;
        left: 0;
        width: 100%;
        padding: 12px 5%;
        background: white;
        border-bottom: 1px solid #e6ebf0;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
    }

    .nav-menu.mobile-active .nav-link {
        padding: 11px 12px;
    }

    .nav-auth.mobile-active {
        display: flex;
        position: absolute;
        top: 330px;
        left: 0;
        width: 100%;
        padding: 12px 5%;
        background: white;
        border-bottom: 1px solid #e6ebf0;
        gap: 8px;
    }

    .nav-auth.mobile-active .btn-login,
    .nav-auth.mobile-active .btn-register {
        flex: 1;
        text-align: center;
    }

    .history-item {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .history-read-button {
        margin-left: 63px;
    }

}


/* =====================================================
   SCROLL ANIMATION
===================================================== */

.category-card,
.book-card,
.history-box,
.cta-box {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.category-card.show-animation,
.book-card.show-animation,
.history-box.show-animation,
.cta-box.show-animation {
    opacity: 1;
    transform: translateY(0);
}

/*katalog

/* =====================================================
   KATALOG PAGE
===================================================== */

.catalog-header {
    background:
        linear-gradient(
            110deg,
            #eef7ff,
            #ffffff
        );
    padding: 55px 0;
    border-bottom: 1px solid #e6edf4;
}

.catalog-header-content {
    max-width: 700px;
}

.catalog-header h1 {
    font-size: 38px;
    color: #172033;
    font-weight: 800;
    margin-bottom: 8px;
}

.catalog-header p {
    color: #718096;
    font-size: 14px;
}


/* =====================================================
   CATALOG PAGE
===================================================== */

.catalog-page {
    padding: 50px 0 80px;
    background: #f7f9fc;
}


/* =====================================================
   TOOLBAR
===================================================== */

.catalog-toolbar {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.catalog-search {
    flex: 1;
    height: 50px;
    background: white;
    border: 1px solid #dce4ec;
    border-radius: 9px;
    display: flex;
    align-items: center;
    padding: 0 16px;
}

.catalog-search i {
    color: #8995a5;
    margin-right: 10px;
}

.catalog-search input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: #172033;
}

.catalog-filter {
    width: 220px;
    height: 50px;
    background: white;
    border: 1px solid #dce4ec;
    border-radius: 9px;
    display: flex;
    align-items: center;
    padding: 0 14px;
}

.catalog-filter i {
    color: #1769aa;
    margin-right: 9px;
}

.catalog-filter select {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: #4d596b;
    font-size: 12px;
}


/* =====================================================
   RESULT
===================================================== */

.catalog-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.catalog-result > div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.catalog-result strong {
    color: #263247;
    font-size: 13px;
}

.catalog-result span {
    color: #8995a5;
    font-size: 11px;
}

.sort-books {
    padding: 8px 12px;
    border: 1px solid #dce4ec;
    background: white;
    border-radius: 7px;
    outline: none;
    color: #5e6979;
    font-size: 11px;
}


/* =====================================================
   CATALOG GRID
===================================================== */

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}


/* =====================================================
   BOOK CARD
===================================================== */

.catalog-book-card {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid #e5ebf1;
    border-radius: 14px;
    overflow: hidden;
    transition: 0.3s;
}

.catalog-book-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 15px 35px rgba(32, 69, 103, 0.10);
}


/* =====================================================
   BOOK COVER
===================================================== */

.catalog-book-cover {
    width: 100%;
    height: 270px;
}

.catalog-cover {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 25px;
}

.catalog-cover i {
    font-size: 50px;
    margin-bottom: 20px;
}

.catalog-cover strong {
    display: block;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.2;
}

.catalog-cover span {
    font-size: 11px;
    font-weight: 600;
    margin-top: 5px;
    opacity: 0.9;
}


/* COVER COLORS */

.catalog-cover.math {
    background:
        linear-gradient(
            145deg,
            #145d97,
            #4b9ed1
        );
}

.catalog-cover.ipa {
    background:
        linear-gradient(
            145deg,
            #21774f,
            #5ab87e
        );
}

.catalog-cover.indonesia {
    background:
        linear-gradient(
            145deg,
            #bb6423,
            #e3a15d
        );
}

.catalog-cover.ips {
    background:
        linear-gradient(
            145deg,
            #5e4b9e,
            #9b86d9
        );
}

.catalog-cover.inggris {
    background:
        linear-gradient(
            145deg,
            #bd4e4e,
            #dd8888
        );
}

.catalog-cover.kejuruan {
    background:
        linear-gradient(
            145deg,
            #247174,
            #57a9aa
        );
}


/* =====================================================
   BOOK CONTENT
===================================================== */

.catalog-book-content {
    padding: 18px;
}

.catalog-book-category {
    display: inline-block;
    color: #1769aa;
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 6px;
}

.catalog-book-content h2 {
    color: #202b3e;
    font-size: 16px;
    line-height: 1.35;
    margin-bottom: 7px;
}

.catalog-book-content > p {
    color: #7d8898;
    font-size: 11px;
    line-height: 1.6;
    min-height: 35px;
    margin-bottom: 12px;
}


/* AUTHOR */

.catalog-book-author {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #8a95a4;
    font-size: 10px;
    margin-bottom: 16px;
}

.catalog-book-author i {
    color: #1769aa;
}


/* =====================================================
   BUTTONS
===================================================== */

.catalog-book-actions {
    display: flex;
    gap: 8px;
}

.detail-button,
.read-button {
    flex: 1;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 700;
    transition: 0.3s;
}

.detail-button {
    border: 1px solid #d8e3ec;
    color: #596678;
    background: white;
}

.detail-button:hover {
    border-color: #1769aa;
    color: #1769aa;
}

.read-button {
    background: #1769aa;
    color: white;
}

.read-button:hover {
    background: #125589;
}


/* =====================================================
   NO RESULT
===================================================== */

.catalog-no-result {
    display: none;
    text-align: center;
    padding: 70px 20px;
}

.catalog-no-result > div {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #eaf4fb;
    color: #1769aa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
}

.catalog-no-result h2 {
    font-size: 20px;
    color: #263247;
    margin-bottom: 5px;
}

.catalog-no-result p {
    color: #8792a2;
    font-size: 12px;
}


/* =====================================================
   RESPONSIVE KATALOG
===================================================== */

@media (max-width: 900px) {

    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 768px) {

    .catalog-header {
        padding: 40px 0;
    }

    .catalog-header h1 {
        font-size: 31px;
    }

    .catalog-toolbar {
        flex-direction: column;
    }

    .catalog-filter {
        width: 100%;
    }

}


@media (max-width: 520px) {

    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .catalog-result {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .catalog-book-cover {
        height: 290px;
    }

}