/* ===========================
   RESET
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    background:#f5f7fb;
    color:#333;
    line-height:1.6;
}

img{
    max-width:100%;
    display:block;
}

a{
    text-decoration:none;
}

ul{
    list-style:none;
}

.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

/* ===========================
   NAVBAR
=========================== */

header{
    background:#0d6efd;
    color:#fff;
    position:sticky;
    top:0;
    z-index:999;
    box-shadow:0 5px 15px rgba(0,0,0,.1);
}

nav{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 8%;
}

nav h2{
    display:flex;
    align-items:center;
    gap:10px;
}

nav div{
    display:flex;
    align-items:center;
    gap:20px;
}

nav a{
    color:white;
    transition:.3s;
}

nav a:hover{

    color:#ffd43b;

}

/* ===========================
   BUTTON
=========================== */

.btn{

    display:inline-block;
    padding:12px 25px;
    background:white;
    color:#0d6efd;
    border-radius:8px;
    font-weight:bold;
    transition:.3s;

}

.btn:hover{

    background:#ffd43b;
    color:black;

}

/* ===========================
   SECTION
=========================== */

section{

    padding:70px 8%;

}

section h2{

    margin-bottom:30px;
    color:#222;

}

/* ===========================
   GRID
=========================== */

.grid{

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;

}

/* ===========================
   CARD
=========================== */

.card{

    background:white;
    border-radius:15px;
    padding:20px;
    box-shadow:0 10px 20px rgba(0,0,0,.08);
    transition:.3s;

}

.card:hover{

    transform:translateY(-8px);

}

/* ===========================
   BOOK CARD
=========================== */

.cover{

    height:250px;
    border-radius:12px;
    background:#d9e7ff;

    display:flex;
    justify-content:center;
    align-items:center;

    font-size:60px;
    color:#0d6efd;

    margin-bottom:15px;

}

.card h3{

    margin-bottom:10px;

}

.card p{

    color:#666;
    margin-bottom:15px;

}

.card .btn{

    width:100%;
    text-align:center;
    background:#0d6efd;
    color:white;

}

.card .btn:hover{

    background:#0b5ed7;

}

/* ===========================
   SEARCH
=========================== */

.search-box{

    display:flex;
    gap:10px;
    margin-top:25px;

}

.search-box input{

    flex:1;
    padding:14px;
    border:1px solid #ddd;
    border-radius:8px;
    outline:none;

}

.search-box button{

    padding:14px 22px;
    border:none;
    background:#0d6efd;
    color:white;
    border-radius:8px;
    cursor:pointer;

}

.search-box button:hover{

    background:#0b5ed7;

}

/* ===========================
   FOOTER
=========================== */

footer{

    background:#1f2937;
    color:white;
    text-align:center;
    padding:25px;

}

/* ===========================
   FORM
=========================== */

input,
textarea,
select{

    width:100%;
    padding:12px;
    border:1px solid #ddd;
    border-radius:8px;
    outline:none;

}

textarea{

    resize:vertical;

}

button{

    cursor:pointer;

}

/* ===========================
   TABLE
=========================== */

table{

    width:100%;
    border-collapse:collapse;

}

table th,
table td{

    padding:12px;
    border:1px solid #ddd;

}

table th{

    background:#0d6efd;
    color:white;

}

/* ===========================
   RESPONSIVE
=========================== */

@media(max-width:768px){

nav{

    flex-direction:column;
    gap:15px;

}

nav div{

    flex-wrap:wrap;
    justify-content:center;

}

.grid{

    grid-template-columns:1fr;

}

.search-box{

    flex-direction:column;

}

.btn{

    width:100%;
    text-align:center;

}

}
/* =========================
   STATISTIK PERPUSTAKAAN
========================= */

.statistics {
    padding: 50px 8%;
    background: #ffffff;
}

.stats-container {
    max-width: 1200px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: #ffffff;

    display: flex;
    align-items: center;

    gap: 18px;

    padding: 25px;

    border-radius: 15px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);

    border: 1px solid #eeeeee;

    transition: 0.3s;
}

.stat-card:hover {
    transform: translateY(-6px);

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #e7f0ff;

    color: #0d6efd;

    border-radius: 12px;

    font-size: 25px;
}

.stat-info h3 {
    font-size: 28px;

    color: #222;

    margin-bottom: 3px;
}

.stat-info p {
    color: #777;

    font-size: 14px;
}


/* =========================
   RESPONSIVE STATISTIK
========================= */

@media (max-width: 900px) {

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 500px) {

    .statistics {
        padding: 35px 5%;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 20px;
    }

}
/* =========================
   BUKU TERPOPULER
========================= */

.popular-books {
    background: #f5f7fb;
    padding: 70px 8%;
}

.section-header {
    max-width: 1200px;
    margin: 0 auto 35px;

    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-label {
    color: #0d6efd;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
}

.section-header h2 {
    margin: 7px 0;
    font-size: 32px;
    color: #222;
}

.section-header p {
    color: #777;
    max-width: 600px;
}

.view-all {
    color: #0d6efd;
    font-weight: bold;
    white-space: nowrap;
}

.view-all i {
    margin-left: 6px;
}

.view-all:hover {
    color: #084298;
}


/* =========================
   BOOK GRID
========================= */

.book-grid {
    max-width: 1200px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}


/* =========================
   BOOK CARD
========================= */

.book-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;

    box-shadow: 0 8px 25px rgba(0, 0, 0, .07);

    transition: .3s;
}

.book-card:hover {
    transform: translateY(-8px);

    box-shadow: 0 15px 35px rgba(0, 0, 0, .13);
}


/* =========================
   BOOK COVER
========================= */

.book-cover {
    height: 280px;

    background: linear-gradient(
        135deg,
        #0d6efd,
        #4aa3ff
    );

    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;

    color: white;

    font-size: 75px;
}

.cover-blue {
    background: linear-gradient(
        135deg,
        #087f5b,
        #20c997
    );
}

.cover-purple {
    background: linear-gradient(
        135deg,
        #7048e8,
        #9775fa
    );
}

.cover-orange {
    background: linear-gradient(
        135deg,
        #f08c00,
        #ffc078
    );
}


/* =========================
   POPULAR BADGE
========================= */

.popular-badge {
    position: absolute;

    top: 15px;
    left: 15px;

    background: #fff;
    color: #0d6efd;

    padding: 7px 12px;

    border-radius: 20px;

    font-size: 13px;
    font-weight: bold;

    box-shadow: 0 4px 10px rgba(0,0,0,.15);
}


/* =========================
   BOOK INFO
========================= */

.book-info {
    padding: 20px;
}

.book-category {
    display: inline-block;

    padding: 5px 10px;

    background: #e7f0ff;
    color: #0d6efd;

    border-radius: 5px;

    font-size: 12px;
    font-weight: bold;

    margin-bottom: 10px;
}

.book-info h3 {
    font-size: 19px;
    color: #222;

    margin-bottom: 10px;
}

.author {
    color: #777;
    font-size: 14px;

    margin-bottom: 12px;
}

.author i {
    margin-right: 5px;
}


/* =========================
   RATING
========================= */

.book-rating {
    display: flex;

    justify-content: space-between;
    align-items: center;

    margin-bottom: 18px;
}

.book-rating span {
    color: #ffc107;
    font-size: 14px;
}

.book-rating small {
    color: #777;
    font-weight: bold;
}


/* =========================
   BUTTON
========================= */

.book-button {
    display: block;

    width: 100%;

    text-align: center;

    padding: 11px;

    background: #0d6efd;
    color: white;

    border-radius: 8px;

    font-weight: bold;

    transition: .3s;
}

.book-button:hover {
    background: #084298;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1000px) {

    .book-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 700px) {

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .book-grid {
        grid-template-columns: 1fr;
    }

    .book-cover {
        height: 300px;
    }

}
/* =========================
   BUKU TERBARU
========================= */

.latest-books {
    background: #ffffff;
    padding: 70px 8%;
}


/* =========================
   NEW BADGE
========================= */

.new-badge {
    position: absolute;

    top: 15px;
    right: 15px;

    background: #20c997;
    color: white;

    padding: 7px 12px;

    border-radius: 20px;

    font-size: 12px;
    font-weight: bold;

    box-shadow: 0 4px 10px rgba(0,0,0,.15);
}


/* =========================
   COVER BUKU TERBARU
========================= */

.latest-cover-1 {
    background: linear-gradient(
        135deg,
        #0d6efd,
        #74c0fc
    );
}

.latest-cover-2 {
    background: linear-gradient(
        135deg,
        #7950f2,
        #b197fc
    );
}

.latest-cover-3 {
    background: linear-gradient(
        135deg,
        #f59f00,
        #ffd43b
    );
}

.latest-cover-4 {
    background: linear-gradient(
        135deg,
        #12b886,
        #63e6be
    );
}


/* =========================
   TANGGAL BUKU
========================= */

.book-date {
    display: flex;

    align-items: center;

    gap: 7px;

    color: #888;

    font-size: 13px;

    margin-bottom: 18px;
}

.book-date i {
    color: #0d6efd;
}
/* =========================
   BUKU REKOMENDASI
========================= */

.recommended-books {
    background: #f5f7fb;
    padding: 70px 8%;
}

.recommend-grid {
    max-width: 1200px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}


/* =========================
   RECOMMEND CARD
========================= */

.recommend-card {
    background: #ffffff;

    border-radius: 16px;

    overflow: hidden;

    box-shadow: 0 8px 25px rgba(0, 0, 0, .07);

    transition: .3s;
}

.recommend-card:hover {
    transform: translateY(-8px);

    box-shadow: 0 15px 35px rgba(0, 0, 0, .13);
}


/* =========================
   RECOMMEND COVER
========================= */



/* Warna cover */

.recommend-1 {
    background: linear-gradient(
        135deg,
        #1864ab,
        #4dabf7
    );
}

.recommend-2 {
    background: linear-gradient(
        135deg,
        #6741d9,
        #9775fa
    );
}

.recommend-3 {
    background: linear-gradient(
        135deg,
        #087f5b,
        #38d9a9
    );
}

.recommend-4 {
    background: linear-gradient(
        135deg,
        #d9480f,
        #ff922b
    );
}


/* =========================
   CONTENT
========================= */

.recommend-content {
    padding: 20px;
}

.recommend-category {
    display: inline-block;

    padding: 5px 10px;

    background: #e7f0ff;

    color: #0d6efd;

    border-radius: 5px;

    font-size: 12px;

    font-weight: bold;

    margin-bottom: 10px;
}

.recommend-content h3 {
    font-size: 18px;

    color: #222;

    margin-bottom: 8px;

    line-height: 1.4;
}

.recommend-author {
    color: #777;

    font-size: 14px;

    margin-bottom: 18px;
}


/* =========================
   BOTTOM
========================= */

.recommend-bottom {
    display: flex;

    justify-content: space-between;

    align-items: center;
}

.recommend-rating {
    color: #f59f00;

    font-weight: bold;

    font-size: 14px;
}

.recommend-rating i {
    margin-right: 4px;
}

.recommend-bottom a {
    color: #0d6efd;

    font-size: 14px;

    font-weight: bold;

    transition: .3s;
}

.recommend-bottom a:hover {
    color: #084298;
}

.recommend-bottom a i {
    margin-left: 4px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1000px) {

    .recommend-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================
   BUKU BERDASARKAN JENJANG
========================= */

.education-level {
    background: #ffffff;
    padding: 70px 8%;
}

.level-grid {
    max-width: 1200px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}


/* =========================
   LEVEL CARD
========================= */

.level-card {
    display: flex;

    align-items: center;

    gap: 20px;

    padding: 25px;

    background: #f8faff;

    border: 1px solid #e5eaf2;

    border-radius: 15px;

    color: #222;

    transition: .3s;
}

.level-card:hover {
    transform: translateY(-6px);

    background: #ffffff;

    border-color: #0d6efd;

    box-shadow: 0 12px 30px rgba(0, 0, 0, .09);
}


/* =========================
   ICON
========================= */

.level-icon {
    min-width: 65px;
    height: 65px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #e7f0ff;

    color: #0d6efd;

    border-radius: 14px;

    font-size: 28px;

    transition: .3s;
}

.level-card:hover .level-icon {
    background: #0d6efd;

    color: #ffffff;
}


/* =========================
   CONTENT
========================= */

.level-content {
    flex: 1;
}

.level-content h3 {
    font-size: 18px;

    margin-bottom: 5px;

    color: #222;
}

.level-content p {
    color: #777;

    font-size: 13px;

    margin-bottom: 10px;
}

.level-content span {
    color: #0d6efd;

    font-size: 13px;

    font-weight: bold;
}

.level-content span i {
    margin-left: 5px;

    transition: .3s;
}

.level-card:hover .level-content span i {
    transform: translateX(5px);
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1000px) {

    .level-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 600px) {

    .level-grid {
        grid-template-columns: 1fr;
    }

    .level-card {
        padding: 20px;
    }

}
/* =========================
   PENGUMUMAN
========================= */

.announcements {
    background: #f5f7fb;
    padding: 70px 8%;
}

.announcement-grid {
    max-width: 1200px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}


/* =========================
   ANNOUNCEMENT CARD
========================= */

.announcement-card {
    background: #ffffff;

    border-radius: 16px;

    padding: 25px;

    display: flex;

    gap: 18px;

    border: 1px solid #e9edf3;

    box-shadow: 0 8px 25px rgba(0, 0, 0, .06);

    transition: .3s;
}

.announcement-card:hover {
    transform: translateY(-6px);

    box-shadow: 0 14px 30px rgba(0, 0, 0, .10);
}


/* =========================
   ICON
========================= */

.announcement-icon {
    min-width: 55px;
    height: 55px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    font-size: 22px;
}

.announcement-icon.blue {
    background: #e7f0ff;
    color: #0d6efd;
}

.announcement-icon.green {
    background: #e5f8f0;
    color: #12b886;
}

.announcement-icon.orange {
    background: #fff3df;
    color: #f08c00;
}


/* =========================
   CONTENT
========================= */

.announcement-content {
    flex: 1;
}

.announcement-tag {
    display: inline-block;

    background: #e7f0ff;
    color: #0d6efd;

    padding: 5px 10px;

    border-radius: 5px;

    font-size: 11px;

    font-weight: bold;

    margin-bottom: 10px;
}

.green-tag {
    background: #e5f8f0;
    color: #12b886;
}

.orange-tag {
    background: #fff3df;
    color: #f08c00;
}

.announcement-content h3 {
    color: #222;

    font-size: 17px;

    line-height: 1.4;

    margin-bottom: 10px;
}

.announcement-content p {
    color: #777;

    font-size: 13px;

    line-height: 1.6;

    margin-bottom: 15px;
}


/* =========================
   DATE
========================= */

.announcement-date {
    color: #999;

    font-size: 12px;
}

.announcement-date i {
    color: #0d6efd;

    margin-right: 5px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1000px) {

    .announcement-grid {
        grid-template-columns: 1fr 1fr;
    }

}

@media (max-width: 650px) {

    .announcement-grid {
        grid-template-columns: 1fr;
    }

    .announcement-card {
        padding: 20px;
    }

}
/* =========================
   TESTIMONI
========================= */

.testimonials {
    background: #ffffff;
    padding: 70px 8%;
}

.testimonial-grid {
    max-width: 1200px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}


/* =========================
   TESTIMONI CARD
========================= */

.testimonial-card {
    position: relative;

    background: #f8faff;

    border: 1px solid #e5eaf2;

    border-radius: 16px;

    padding: 30px;

    transition: .3s;
}

.testimonial-card:hover {
    transform: translateY(-7px);

    background: #ffffff;

    box-shadow: 0 12px 30px rgba(0, 0, 0, .09);
}


/* =========================
   QUOTE ICON
========================= */

.quote-icon {
    width: 45px;
    height: 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #e7f0ff;

    color: #0d6efd;

    border-radius: 10px;

    margin-bottom: 20px;

    font-size: 18px;
}


/* =========================
   TEXT
========================= */

.testimonial-text {
    color: #555;

    font-size: 14px;

    line-height: 1.8;

    min-height: 100px;

    margin-bottom: 25px;
}


/* =========================
   USER
========================= */

.testimonial-user {
    display: flex;

    align-items: center;

    gap: 12px;

    border-top: 1px solid #e5e5e5;

    padding-top: 20px;
}

.user-avatar {
    width: 45px;
    height: 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #0d6efd;

    color: white;

    border-radius: 50%;

    font-size: 13px;

    font-weight: bold;
}

.testimonial-user h3 {
    font-size: 15px;

    color: #222;

    margin-bottom: 3px;
}

.testimonial-user span {
    color: #888;

    font-size: 12px;
}


/* =========================
   RATING
========================= */

.testimonial-rating {
    margin-top: 15px;

    color: #ffc107;

    font-size: 14px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .testimonial-grid {
        grid-template-columns: 1fr 1fr;
    }

}

@media (max-width: 600px) {

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 25px;
    }

}
/* =========================
   FAQ
========================= */

.faq-section {
    background: #f5f7fb;
    padding: 70px 8%;
}

.faq-container {
    max-width: 900px;
    margin: auto;
}


/* =========================
   FAQ ITEM
========================= */

.faq-item {
    background: #ffffff;

    border-radius: 12px;

    margin-bottom: 15px;

    border: 1px solid #e5eaf2;

    overflow: hidden;

    transition: .3s;
}

.faq-item:hover {
    border-color: #0d6efd;
}


/* =========================
   QUESTION
========================= */

.faq-question {
    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 20px 25px;

    border: none;

    background: transparent;

    color: #222;

    font-size: 16px;

    font-weight: bold;

    text-align: left;

    cursor: pointer;
}

.faq-question i {
    color: #0d6efd;

    font-size: 14px;

    transition: .3s;
}


/* =========================
   ANSWER
========================= */

.faq-answer {
    max-height: 0;

    overflow: hidden;

    transition: max-height .35s ease;
}

.faq-answer p {
    color: #777;

    font-size: 14px;

    line-height: 1.8;

    padding: 0 25px 20px;
}


/* =========================
   ACTIVE FAQ
========================= */

.faq-item.active {
    box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
}

.faq-item.active .faq-question {
    color: #0d6efd;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 600px) {

    .faq-section {
        padding: 55px 5%;
    }

    .faq-question {
        padding: 18px;
        font-size: 14px;
    }

    .faq-answer p {
        padding: 0 18px 18px;
    }

}
/* =========================
   CALL TO ACTION
========================= */

.cta-section {
    padding: 70px 8%;

    background: linear-gradient(
        135deg,
        #0d6efd,
        #4aa3ff
    );
}

.cta-content {
    max-width: 1200px;

    margin: auto;

    display: flex;

    align-items: center;

    gap: 30px;

    color: white;
}


/* =========================
   ICON
========================= */

.cta-icon {
    min-width: 80px;
    height: 80px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,.15);

    border-radius: 20px;

    font-size: 35px;
}


/* =========================
   TEXT
========================= */

.cta-text {
    flex: 1;
}

.cta-text span {
    font-size: 12px;

    font-weight: bold;

    letter-spacing: 1.5px;

    opacity: .85;
}

.cta-text h2 {
    font-size: 30px;

    margin: 7px 0 10px;

    color: white;
}

.cta-text p {
    max-width: 650px;

    font-size: 14px;

    line-height: 1.7;

    opacity: .9;
}


/* =========================
   BUTTON
========================= */

.cta-buttons {
    display: flex;

    gap: 10px;

    flex-shrink: 0;
}

.cta-primary,
.cta-secondary {
    padding: 12px 18px;

    border-radius: 8px;

    text-decoration: none;

    font-size: 14px;

    font-weight: bold;

    transition: .3s;

    white-space: nowrap;
}

.cta-primary {
    background: white;

    color: #0d6efd;
}

.cta-primary:hover {
    background: #ffd43b;

    color: #222;

    transform: translateY(-2px);
}

.cta-secondary {
    border: 1px solid rgba(255,255,255,.7);

    color: white;

    background: rgba(255,255,255,.08);
}

.cta-secondary:hover {
    background: white;

    color: #0d6efd;

    transform: translateY(-2px);
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .cta-content {
        flex-direction: column;

        text-align: center;
    }

    .cta-text p {
        margin: auto;
    }

    .cta-buttons {
        justify-content: center;
    }

}

@media (max-width: 500px) {

    .cta-section {
        padding: 55px 5%;
    }

    .cta-text h2 {
        font-size: 24px;
    }

    .cta-buttons {
        width: 100%;

        flex-direction: column;
    }

    .cta-primary,
    .cta-secondary {
        text-align: center;

        width: 100%;
    }

}
/* =========================
   SORTING BUKU
========================= */

.book-sort {
    max-width: 800px;

    margin: 15px auto;

    display: flex;

    align-items: center;

    gap: 12px;
}

.book-sort label {
    display: flex;

    align-items: center;

    gap: 7px;

    color: #444;

    font-size: 14px;

    font-weight: bold;
}

.book-sort label i {
    color: #0d6efd;
}

.book-sort select {
    flex: 1;

    padding: 12px 15px;

    border: 1px solid #dfe5ee;

    border-radius: 8px;

    background: white;

    color: #444;

    outline: none;

    cursor: pointer;

    font-size: 14px;

    transition: .3s;
}

.book-sort select:focus {
    border-color: #0d6efd;

    box-shadow: 0 0 0 3px rgba(13, 110, 253, .1);
}


/* MOBILE */

@media (max-width: 600px) {

    .book-sort {
        flex-direction: column;

        align-items: stretch;
    }

}
/* =========================
   BOOK VIEW
========================= */

.book-view {
    max-width: 1200px;
    margin: 20px auto;

    display: flex;
    justify-content: flex-end;
    align-items: center;

    gap: 8px;
}

.book-view > span {
    color: #777;
    font-size: 13px;
    margin-right: 5px;
}

.view-btn {
    width: 40px;
    height: 40px;

    border: 1px solid #dfe5ee;

    background: white;

    color: #777;

    border-radius: 8px;

    cursor: pointer;

    transition: .3s;
}

.view-btn:hover {
    color: #0d6efd;
    border-color: #0d6efd;
}

.view-btn.active {
    background: #0d6efd;
    color: white;
    border-color: #0d6efd;
}


/* =========================
   GRID VIEW
========================= */

.book-grid {
    max-width: 1200px;
    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 25px;
}


/* =========================
   LIST VIEW
========================= */

.book-grid.list-view {
    display: flex;

    flex-direction: column;

    gap: 15px;
}

.book-grid.list-view .book-card {
    display: flex;

    align-items: center;

    padding: 15px;

    gap: 20px;
}

.book-grid.list-view .book-cover {
    width: 140px;

    min-width: 140px;

    height: 180px;

    margin: 0;
}

.book-grid.list-view .book-info {
    flex: 1;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1000px) {

    .book-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

}

@media (max-width: 750px) {

    .book-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .book-grid.list-view .book-card {
        align-items: flex-start;
    }

}

@media (max-width: 550px) {

    .book-grid {
        grid-template-columns: 1fr;
    }

    .book-grid.list-view .book-card {
        flex-direction: column;
    }

    .book-grid.list-view .book-cover {
        width: 100%;
        height: 230px;
    }

    .book-view {
        justify-content: flex-start;
    }

}
.cover {
    aspect-ratio: 3 / 4;
    height: auto;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 15px;
}

.cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.book-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 12px;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* =========================
   COVER BUKU TERBARU
========================= */

.latest-cover-1,
.latest-cover-2,
.latest-cover-3,
.latest-cover-4 {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 12px;
}

/* FOTO COVER */

.latest-cover-1 img,
.latest-cover-2 img,
.latest-cover-3 img,
.latest-cover-4 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* =========================
   COVER REKOMENDASI
========================= */

.recommend-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 12px;
}

.recommend-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* =================================
   FIX COVER REKOMENDASI 3:4
================================= */

.recommend-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    height: auto !important;
    overflow: hidden;
    border-radius: 12px;
    background: #f1f3f5;
}

.recommend-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
}

/* Supaya grid tetap responsive */
@media (max-width: 1000px) {
    .recommend-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .recommend-grid {
        grid-template-columns: 1fr;
    }

    .recommend-cover {
        aspect-ratio: 3 / 4;
        height: auto !important;
    }
}
/* =========================
   COVER BUKU RASIO 3:4
========================= */

.book-cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 12px;
    background: #f1f3f5;
    position: relative;
}

.book-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}
/* =========================
   FOOTER
========================= */

.footer {
    background: #111827;
    color: #d1d5db;
    margin-top: 60px;
}

.footer-container {
    width: 84%;
    max-width: 1200px;
    margin: auto;

    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
    gap: 50px;

    padding: 60px 0;
}


/* ABOUT */

.footer-about h2 {
    color: white;
    font-size: 22px;

    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 18px;
}

.footer-about h2 i {
    color: #4aa3ff;
}

.footer-about p {
    line-height: 1.8;
    max-width: 380px;
    font-size: 14px;
}


/* JUDUL */

.footer-column h3 {
    color: white;
    font-size: 17px;
    margin-bottom: 20px;
}


/* LINK */

.footer-column a {
    display: block;

    color: #d1d5db;
    text-decoration: none;

    margin-bottom: 13px;

    font-size: 14px;

    transition: .3s;
}

.footer-column a i {
    margin-right: 7px;
    color: #4aa3ff;
}

.footer-column a:hover {
    color: #4aa3ff;
    transform: translateX(4px);
}


/* KONTAK */

.footer-column p {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    font-size: 14px;
    line-height: 1.6;

    margin-bottom: 14px;
}

.footer-column p i {
    color: #4aa3ff;
    margin-top: 3px;
}


/* SOCIAL MEDIA */

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.social-links a {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #1f2937;

    border-radius: 50%;

    color: white;

    margin: 0;

    transition: .3s;
}

.social-links a:hover {
    background: #0d6efd;
    color: white;

    transform: translateY(-4px);
}


/* FOOTER BOTTOM */

.footer-bottom {
    width: 84%;
    max-width: 1200px;

    margin: auto;

    border-top: 1px solid #374151;

    padding: 20px 0;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    font-size: 13px;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom div {
    display: flex;
    gap: 10px;
}

.footer-bottom a {
    color: #9ca3af;
    text-decoration: none;

    transition: .3s;
}

.footer-bottom a:hover {
    color: #4aa3ff;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }

}


@media (max-width: 600px) {

    .footer-container {
        width: 88%;
        grid-template-columns: 1fr;
        gap: 30px;

        padding: 45px 0;
    }

    .footer-bottom {
        width: 88%;

        flex-direction: column;
        text-align: center;
    }

    .footer-about p {
        max-width: none;
    }

}