* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #f5f7f6;

    color: #26332c;

    line-height: 1.6;

}


/* HEADER */

.header {

    height: 70px;

    background: #176b3a;

    color: white;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 7%;

}


.logo {

    font-size: 21px;

    font-weight: bold;

}


.header nav a {

    color: white;

    text-decoration: none;

    margin-left: 30px;

    font-size: 15px;

}


.header nav a:hover {

    text-decoration: underline;

}



/* HERO */

.hero {

    background:

        linear-gradient(
            135deg,
            #145b32,
            #269653
        );

    color: white;

    padding:
        90px 7%
        100px;

}


.hero-content {

    max-width: 700px;

}


.hero-label {

    display: inline-block;

    background:
        rgba(255,255,255,0.15);

    padding: 7px 14px;

    border-radius: 20px;

    margin-bottom: 18px;

    font-size: 13px;

}


.hero h1 {

    font-size: 48px;

    line-height: 1.15;

    margin-bottom: 18px;

}


.hero p {

    font-size: 18px;

    max-width: 580px;

    opacity: .9;

    margin-bottom: 30px;

}


.hero-button {

    display: inline-block;

    background: white;

    color: #176b3a;

    padding: 13px 23px;

    border-radius: 8px;

    text-decoration: none;

    font-weight: bold;

}


.hero-button:hover {

    transform: translateY(-2px);

}



/* CONTAINER */

.container {

    width: 86%;

    max-width: 1200px;

    margin:
        55px auto;

}


.section-title {

    margin-bottom: 25px;

}


.section-title span {

    color: #176b3a;

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 2px;

}


.section-title h2 {

    font-size: 30px;

    margin-top: 3px;

}

/* CATEGORIES */

.categories {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 20px;

}


.category-btn {

    border: 1px solid #d9e3dc;

    background: white;

    color: #176b3a;

    padding: 9px 16px;

    border-radius: 20px;

    cursor: pointer;

    font-size: 14px;

    transition: .2s;

}


.category-btn:hover {

    background: #e8f4ed;

}


.category-btn.active {

    background: #176b3a;

    color: white;

    border-color: #176b3a;

}

/* SEARCH */

.search-box {

    background: white;

    border: 1px solid #e2e6e3;

    border-radius: 10px;

    display: flex;

    align-items: center;

    padding: 0 16px;

    margin-bottom: 35px;

}


.search-box span {

    font-size: 19px;

}


.search-box input {

    width: 100%;

    border: none;

    outline: none;

    padding: 15px;

    font-size: 15px;

    background: transparent;

}



/* BOOK GRID */

.book-grid {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(220px, 1fr)
        );

    gap: 25px;

}



/* CARD */

.book-card {

    background: white;

    border-radius: 12px;

    overflow: hidden;

    border: 1px solid #e6ebe7;

    transition:
        transform .2s,
        box-shadow .2s;

}


.book-card:hover {

    transform:
        translateY(-5px);

    box-shadow:
        0 10px 25px
        rgba(0,0,0,.10);

}



/* COVER */

.cover {

    background: #e9eeeb;

    height: 300px;

    overflow: hidden;

}


.cover img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

}



/* INFO */

.book-info {

    padding: 18px;

}


.category {

    display: inline-block;

    color: #176b3a;

    background: #e8f4ed;

    padding:
        4px 8px;

    border-radius: 5px;

    font-size: 11px;

    font-weight: bold;

}


.book-info h3 {

    font-size: 18px;

    line-height: 1.35;

    margin:
        10px 0 5px;

}


.author {

    color: #777;

    font-size: 13px;

    margin-bottom: 16px;

}



/* BUTTON */

.read-btn {

    display: block;

    width: 100%;

    padding: 11px;

    border: none;

    border-radius: 7px;

    background: #176b3a;

    color: white;

    text-align: center;

    text-decoration: none;

    font-size: 14px;

    font-weight: bold;

    cursor: pointer;

}


.read-btn:hover {

    background: #12552e;

}


.disabled {

    background: #aaa;

    cursor:
        not-allowed;

}



/* NOT FOUND */

.not-found {

    display: none;

    text-align: center;

    padding: 50px;

    color: #777;

}



/* FOOTER */

footer {

    background: #123d28;

    color: white;

    padding:
        35px 7%;

    display: flex;

    justify-content: space-between;

    align-items: center;

}


footer p {

    color:
        rgba(255,255,255,.7);

    font-size: 13px;

}


.copyright {

    text-align: right;

}



/* MOBILE */

@media (
    max-width: 650px
) {


    .header {

        height: auto;

        padding:
            18px 6%;

        flex-direction:
            column;

        gap: 12px;

    }


    .header nav a {

        margin:
            0 8px;

    }


    .hero {

        padding:
            65px 7% 75px;

    }


    .hero h1 {

        font-size: 34px;

    }


    .hero p {

        font-size: 16px;

    }


    .container {

        width: 90%;

    }


    .book-grid {

        grid-template-columns:
            repeat(2, 1fr);

        gap: 15px;

    }


    .cover {

        height: 230px;

    }


    .book-info {

        padding: 13px;

    }


    .book-info h3 {

        font-size: 15px;

    }


    footer {

        flex-direction:
            column;

        gap: 15px;

        text-align: center;

    }


    .copyright {

        text-align: center;

    }

}


@media (
    max-width: 400px
) {


    .book-grid {

        grid-template-columns:
            1fr;

    }


    .cover {

        height: 350px;

    }

}

/* STATISTIK */

.stats {

    width: 86%;

    max-width: 1100px;

    margin:
        -35px auto
        45px;

    position: relative;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

}


.stat-card {

    background: white;

    border-radius: 12px;

    padding: 22px;

    display: flex;

    align-items: center;

    gap: 15px;

    box-shadow:
        0 5px 20px
        rgba(0,0,0,.08);

}


.stat-icon {

    width: 50px;

    height: 50px;

    border-radius: 10px;

    background: #e8f4ed;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 24px;

}


.stat-card strong {

    display: block;

    font-size: 23px;

    color: #176b3a;

}


.stat-card span {

    display: block;

    color: #777;

    font-size: 13px;

}


@media (max-width: 650px) {

    .stats {

        grid-template-columns: 1fr;

        margin-top: 25px;

    }

}

/* BUKU TERBARU */

.latest {

    width: 86%;

    max-width: 1200px;

    margin:
        40px auto
        60px;

}


.latest-header {

    display: flex;

    justify-content:
        space-between;

    align-items:
        center;

    margin-bottom: 25px;

}


.latest-header span {

    color: #176b3a;

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 2px;

}


.latest-header h2 {

    font-size: 28px;

}


.latest-header a {

    color: #176b3a;

    text-decoration: none;

    font-weight: bold;

}


.latest-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;

}


.latest-card {

    background: white;

    border: 1px solid #e5eae6;

    border-radius: 12px;

    overflow: hidden;

}


.latest-card img {

    width: 100%;

    height: 230px;

    object-fit: cover;

}


.latest-card > div {

    padding: 16px;

}


.latest-card span {

    color: #176b3a;

    font-size: 11px;

    font-weight: bold;

}


.latest-card h3 {

    font-size: 16px;

    line-height: 1.4;

    margin: 7px 0;

}


.latest-card p {

    color: #777;

    font-size: 13px;

    margin-bottom: 12px;

}


.latest-card a {

    color: #176b3a;

    text-decoration: none;

    font-weight: bold;

    font-size: 13px;

}


@media (max-width: 850px) {

    .latest-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }

}


@media (max-width: 500px) {

    .latest-grid {

        grid-template-columns: 1fr;

    }

}

.book-views {

    color: #888;

    font-size: 12px;

    margin-top: 5px;

}