@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");
* {
    list-style: none;
    text-decoration: none;
}

body {
    font-family: "Inter", sans-serif;
    font-size: 0.875rem;
}

/* kiri */
.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-left img {
    width: 50px;
}

.logo-text h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.logo-text p {
    font-size: 14px;
    margin: 0;
}

.btn-first {
    padding: 12px 24px !important;
    border-radius: 8px;
    border: 1px solid #000;
    color: #000;
}
.btn-first:hover {
    background-color: #2563eb;
    color: #efecec;
}

.btn-second {
    padding: 12px 24px !important;
    border-radius: 8px;
    border: 1px solid #2563eb;
    color: #2563eb;
}
.btn-second:hover {
    background-color: #2563eb;
    color: #fff;
}

.btn-first-sm {
    padding: 6px 12px !important;
    border-radius: 5px;
    border: 1px solid #2563eb !important;
    background-color: #2563eb !important;
    color: #fff;
    font-size: 0.875rem !important;
}
.btn-first-sm:hover {
    background-color: #9ab812;
    color: #efecec;
}

.btn-add-cart {
    border: 1px solid #2563eb;
    background-color: #2563eb;
    color: #fff;
}
.btn-add-cart:hover {
    background-color: #9ab812;
    color: #efecec;
}

.input-group {
    width: 50%;
}
@media (max-width: 991.98px) {
    .input-group {
        width: 100%;
    }
}

.navbar .navbar-brand {
    color: #463c74;
    font-size: 22px;
    font-weight: 700;
}
.navbar .navbar-brand span {
    color: #2563eb;
}
.navbar .nav-item i {
    font-size: 25px;
}

.menu-wrapper {
    margin-top: 38px;
}
.menu-wrapper a {
    margin: 0 25px;
}

.bg-image {
    background-image: url("../assets/img/bg_perpus.png");
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    color: white;
    max-width: 600px;
    margin-left: 80px;
}

.hero-content h1 {
    font-size: 50px;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-button {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background: #b91c1c;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
}

.btn-outline {
    border: 2px solid white;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
}

.btn-primary:hover {
    background: #991b1b;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: black;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
    .bg-image {
        justify-content: center;
        text-align: center;
        padding: 20px;
    }

    .hero-content {
        margin-left: 0;
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 32px;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-button {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .btn-primary,
    .btn-outline {
        width: 200px;
        text-align: center;
    }
}

/* HERO */
.hero-blog {
    background: linear-gradient(to right, #3b5bdb, #4263eb);
    color: white;
    padding: 60px 0;
}

.hero-blog .title {
    font-weight: 700;
    margin-top: 10px;
}

.back-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

/* CARD */
.card-blog {
    background: white;
    border-radius: 12px;
    border: 1px solid #ddd;
    transition: 0.3s;
}
.blog-card {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    overflow: hidden;
}

.blog-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* SIDEBAR */
.sidebar-card {
    border-radius: 12px;
    border: 1px solid #e5e5e5;
}

/* HOVER */
.sidebar-card:hover,
.blog-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.why-us {
    text-align: center;
    padding: 80px 50px;
    background: #f5f5f5;
}

.why-us h2 {
    font-size: 40px;
    margin-bottom: 50px;
}

.card-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.card {
    background: white;
    width: 300px;
    border-radius: 12px;
    border: 1px solid #ddd;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.item-card {
    padding: 20px;
}

.book-card {
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    transition: 0.3s;
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.book-img {
    height: 220px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.card-body {
    padding: 10px;
}
.card-body h5 {
    font-size: 16px;
}

.btn-card {
    color: #fff;
    background-color: #0b1c5a;
    border: none;
}

.btn-card:hover {
    color: #fff;
    background-color: #071241;
}

.icon {
    font-size: 30px;
    background: #e0e7ff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.card p {
    font-size: 15px;
    color: #555;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {
    .why-us {
        padding: 60px 20px;
    }

    .why-us h2 {
        font-size: 28px;
    }

    .card-container {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 100%;
        max-width: 320px;
    }
    .card p {
        font-size: 12px;
    }
    .book-img {
        height: 150px;
    }
}
.header {
    margin-top: 200px;
}
@media (max-width: 767.98px) {
    .header {
        margin-top: 120px;
    }
}

.subscribe {
    margin-top: 150px;
}
.subscribe .container .subscribe-wrapper {
    background-color: #155dfc;
    border-radius: 12px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.08);
}
.subscribe .container .subscribe-wrapper .col-sub {
    padding: 120px 0;
    color: #fff;
}

.subscribe .container .subscribe-wrapper .col-sub h1 {
    font-size: 2rem;
    font-weight: 700;
}
.subscribe .container .subscribe-wrapper .col-sub p {
    font-size: 1rem;
}
.subscribe form {
    display: flex;
    justify-content: center;
}

.footer-section {
    background: #071a57;
    color: #cfd6ff;
}

.footer-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-text {
    font-size: 14px;
    line-height: 1.6;
}

.footer-menu {
    list-style: none;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 8px;
}

.footer-menu a {
    text-decoration: none;
    color: #cfd6ff;
    transition: 0.3s;
}

.footer-menu a:hover {
    color: #fff;
}

.footer-info {
    list-style: none;
    padding: 0;
    font-size: 14px;
}

.footer-info li {
    margin-bottom: 8px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
}

.footer-contact i {
    font-size: 18px;
    color: #9fb3ff;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin-top: 30px;
}

.footer-bottom {
    font-size: 14px;
    color: #9fb3ff;
}
