/* ===============================
   RESET & BASE
=============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #f4f6f8;
    color: #333;
    line-height: 1.6;
}

/* ===============================
   HEADER & NAVIGATION
=============================== */
.site-header {
    background: #0b3c5d;
    color: #fff;
}

.header-inner {
    max-width: 1100px;
    margin: auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
}

.logo img {
    height: 52px;
    width: auto;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.logo-text h1 {
    font-size: 21px;
}

.logo-text small {
    font-size: 13px;
    opacity: 0.9;
}

/* MENU */
.menu a {
    color: #fff;
    text-decoration: none;
    margin-left: 22px;
    font-size: 14px;
}

.menu a:hover {
    text-decoration: underline;
}

.login-btn {
    background: #fff;
    color: #0b3c5d !important;
    padding: 6px 14px;
    border-radius: 4px;
    font-weight: bold;
}

/* ===============================
   HERO SLIDER (PALING STABIL)
=============================== */
.hero-slider {
    width: 100%;
    height: 420px;
    position: relative;
    overflow: hidden;
    background: #0b3c5d;
}

/* SLIDES */
.hero-slider .slides {
    display: flex;
    height: 100%;
    transition: transform 1s ease-in-out;
}

/* SLIDE */
.hero-slider .slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

/* GAMBAR SLIDER */
.hero-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* OVERLAY LEMBUT */
.hero-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1;
}

/* CAPTION */
.hero-caption {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero-caption h2 {
    font-size: 34px;
    margin-bottom: 10px;
}

.hero-caption p {
    font-size: 16px;
    max-width: 600px;
    opacity: 0.9;
}

.hero-btn {
    margin-top: 20px;
    background: #fff;
    color: #0b3c5d;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.hero-btn:hover {
    background: #f1f1f1;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-slider {
        height: 260px;
    }
}

/* ===============================
   CONTAINER
=============================== */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
}


/* ===============================
   SEARCH
=============================== */
.search-form {
    margin-bottom: 25px;
}

.search-form input {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.search-form button {
    padding: 8px 14px;
    border: none;
    background: #0b3c5d;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
}

.search-form button:hover {
    background: #08304a;
}

/* ===============================
   GRID BUKU
=============================== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 22px;
}

.card {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}


/* COVER BUKU */
.card img {
    width: 100%;
    height: 260px;
    object-fit: contain;
    background: #f4f6f8;
    border-radius: 4px;
    margin-bottom: 10px;
}

.card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    height: 44px;
    overflow: hidden;
}


.card p {
    font-size: 14px;
    margin-bottom: 4px;
}

.card a {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 14px;
    background: #0b3c5d;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
}
.card a:hover {
    background: #08304a;
}


/* ===============================
   SECTION & ABOUT
=============================== */
.section {
    margin-top: 50px;
}

.section-title {
    font-size: 26px;
    margin-bottom: 20px;
    color: #0b3c5d;
}

.about {
    background: #fff;
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* ===============================
   CTA
=============================== */
.cta {
    background: #0b3c5d;
    color: #fff;
    text-align: center;
    padding: 50px 20px;
    margin-top: 60px;
}

.cta a {
    display: inline-block;
    margin-top: 20px;
    background: #25D366;
    color: #fff;
    padding: 14px 26px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.cta a:hover {
    opacity: 0.9;
}

/* ===============================
   FOOTER
=============================== */
footer {
    background: #0b3c5d;
    color: #fff;
    text-align: center;
    padding: 15px;
    margin-top: 40px;
    font-size: 14px;
}
.cover-link {
    display: block;
}

.cover-link img {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cover-link img:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}
/* ===============================
   MOBILE FIX TOTAL
=============================== */
@media (max-width: 768px) {

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .logo {
        width: 100%;
        justify-content: center;
    }

    .logo-text h1 {
        font-size: 18px;
    }

    .logo-text small {
        font-size: 12px;
    }

    .menu {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .menu a {
        margin: 0;
        font-size: 13px;
    }

    .login-btn {
        padding: 6px 12px;
    }

    .hero-slider {
        height: 220px;
    }

    .hero-caption h2 {
        font-size: 20px;
        line-height: 1.3;
        padding: 0 10px;
    }

    .hero-caption p {
        font-size: 13px;
        padding: 0 15px;
    }

    .hero-btn {
        padding: 10px 18px;
        font-size: 14px;
    }

    .search-form {
        display: flex;
        gap: 8px;
    }

    .search-form input {
        flex: 1;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .card img {
        height: 180px;
    }

    .card h3 {
        font-size: 14px;
    }
}
