:root {
    --primary: #2c3e50;
    --secondary: #5791e9;
    --accent: #3498db;
    --light-bg: #f6fbff;
    --text-dark: #1a1a1a;
    --text-light: #6c757d;
    --border-color: #e9ecef;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --white: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

html,
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    padding-top: 55px;
}

body {
    background-color: #fff;
}

/* ===== NAVBAR ===== */
.navbar {
    background: #ffffff;
    padding: 1.1rem 0;
    position: relative;
    z-index: 1000;
    box-shadow: none;
    border-bottom: 1px solid #eef2ff;
}

/* ===== STICKY NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    z-index: 1000;
    transition: all .35s ease;
}

/* kondisi ketika discroll */
.navbar.scrolled {
    padding: .45rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    border-bottom: 1px solid #eef2ff;
}

/* logo mengecil */
.navbar.scrolled .logo-budi {
    width: 60px;
    height: 60px;
}

/* text brand mengecil */
.navbar.scrolled .brand-title {
    font-size: 1.5rem;
}

.navbar.scrolled .brand-subtitle {
    font-size: .78rem;
}

/* animasi smooth */
.logo-budi,
.brand-title,
.brand-subtitle {
    transition: all .35s ease;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: 'Poppins', sans-serif;
    color: #0d1b52 !important;
}

.logo-budi {
    width: 75px;
    height: 75px;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1140d9;
    margin: 0;
}

.brand-subtitle {
    font-size: 0.95rem;
    color: #444;
    font-weight: 500;
}

.navbar-nav {
    gap: 1rem;
}

.nav-link {
    color: #111827 !important;
    font-weight: 600;
    position: relative;
    transition: all .3s ease;
}

.nav-link.active,
.nav-link:hover {
    color: #1d4ed8 !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 3px;
    border-radius: 20px;
    background: #2563eb;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: 2rem;
}

.btn-login {
    border: 1.5px solid #2563eb;
    color: #2563eb;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 600;
    background: #fff;
    text-decoration: none;
    transition: .3s;
}

.btn-login:hover {
    background: #eff6ff;
}

.btn-register {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    padding: 10px 26px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: .3s;
    box-shadow: 0 10px 20px rgba(37, 99, 235, .2);
}

.btn-register:hover {
    transform: translateY(-2px);
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    background: linear-gradient(to bottom, #e4fffc 0%, #edf5ff 60%, transparent 100%);
    padding: 4rem 0 12rem;
    overflow: hidden;
    z-index: 0;
}

/* Pattern background — di belakang gradient */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("../../front/images/pattern-background-transparant.png") repeat-x top center;
    background-size: 300px auto;
    opacity: 0.20;
    z-index: -1;
    /* di belakang section */
}

/* Dekorasi lingkaran — tetap di ::before */
.hero-section::before {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 50%;
    top: -200px;
    right: -150px;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.25;
    color: #071c5f;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 2rem;
    max-width: 560px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn-primary-custom {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border: none;
    padding: 16px 28px;
    border-radius: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(37, 99, 235, .25);
}

.btn-secondary-custom {
    border: 1.5px solid #2563eb;
    color: #2563eb;
    background: #fff;
    padding: 16px 28px;
    border-radius: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero-features {
    display: flex;
    gap: 1.5rem;
    flex-wrap: nowrap;
}

.feature-box {
    background: #fff;
    padding: 1.4rem;
    border-radius: 22px;
    width: 170px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
}

.feature-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto auto 1rem;
    color: #2563eb;
    font-size: 1.4rem;
}

.feature-box h6 {
    font-weight: 700;
    margin-bottom: .4rem;
}

.feature-box p {
    font-size: .9rem;
    color: #6b7280;
    margin: 0;
}

.hero-image {
    width: 100%;
    max-width: 760px;
}

/* ===== SEARCH SECTION ===== */
.search-section {
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.search-wrapper {
    background: #fff;
    border-radius: 30px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .08);
}

.search-title {
    font-size: 2rem;
    font-weight: 800;
    color: #071c5f;
}

.search-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.search-wrapper label {
    font-weight: 700;
    margin-bottom: .8rem;
    color: #111827;
}

.search-wrapper .form-select,
.search-wrapper .form-control {
    height: 56px;
    border-radius: 14px;
    border: 1px solid #dbe3f0;
    padding: 0 16px;
}

.btn-search-main {
    width: 70px;
    height: 56px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-size: 1.2rem;
}

/* ===== RESPONSIVE ===== */
@media(max-width:992px) {

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-description {
        margin: auto auto 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-features {
        justify-content: center;
    }

    .hero-image {
        margin-top: 3rem;
    }

    .auth-buttons {
        margin-top: 1rem;
        margin-left: 0;
    }
}

/* ===== STATISTICS SECTION ===== */

.statistics-section {
    position: relative;
    margin-top: 40px;
    z-index: 20;
    padding-bottom: 5rem;
}

.statistics-section .container-lg {
    background: #ffffff;
    border-radius: 32px;
    padding: 2.5rem 1rem;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, .08),
        0 5px 20px rgba(37, 99, 235, .06);

    overflow: hidden;
    position: relative;
}

/* glow background */
.statistics-section .container-lg::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;

    width: 300px;
    height: 300px;

    background: rgba(37, 99, 235, .06);
    border-radius: 50%;
}

.stat-card {
    position: relative;
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 24px;
    transition: all .35s ease;
    z-index: 2;
}

.stat-card:hover {
    transform: translateY(-8px);
    background: #f8fbff;
}

.stat-icon {
    width: 85px;
    height: 85px;

    margin: auto auto 1.3rem;

    border-radius: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 2rem;

    background: linear-gradient(135deg,
            #2563eb,
            #1d4ed8);

    color: #fff;

    box-shadow: 0 15px 30px rgba(37, 99, 235, .25);
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    color: #071c5f;
    margin-bottom: .7rem;
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
    color: #64748b;
    margin: 0;
}

/* garis pemisah */
.stat-card::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);

    width: 1px;
    height: 70px;

    background: #e5e7eb;
}

.col-md-3:last-child .stat-card::after {
    display: none;
}

/* responsive */
@media(max-width:992px) {

    .statistics-section {
        margin-top: 0;
        padding-top: 3rem;
    }

    .statistics-section .container-lg {
        border-radius: 24px;
    }

    .stat-card::after {
        display: none;
    }

    .stat-card {
        margin-bottom: 1rem;
    }

}

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.1rem;
    position: relative;
    padding-bottom: 1rem;
}

/* .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 2px;
} */

.section-subtitle {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ===== BOOK CARD ===== */
.book-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--accent);
}

.book-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 275px;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
}

.book-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.book-card:hover .book-image-wrapper img {
    transform: scale(1.05);
}

.book-card .book-content a,
{
text-decoration: none !important;
}

.book-category {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--secondary);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
}

.book-rating {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--warning);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    z-index: 10;
}

.book-views {
    position: absolute;
    bottom: 10px;
    left: 70px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    z-index: 10;
}

.book-jenjang {
    position: absolute;
    bottom: 40px;
    left: 10px;
    background: rgba(13, 77, 137, 0.7);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    z-index: 10;
}

.book-content {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.book-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    min-height: 2.8em;
}



.book-author {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.book-description {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    flex-grow: 1;
    line-height: 1.5;
    max-height: 60px;
    overflow: hidden;
}

.book-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.book-action {
    display: flex;
    gap: 0.5rem;
}

.book-action button {
    padding: 0.5rem 0.8rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
}

.btn-read {
    background: var(--accent);
    color: #fff;
}

.btn-read:hover {
    background: #2980b9;
}

.btn-wishlist {
    background: #f5f5f5;
    color: var(--text-dark);
}

.btn-wishlist:hover {
    background: var(--secondary);
    color: #fff;
}

/* ===== WELCOME SECTION ===== */
.welcome-section {
    padding: 2rem 0;
    background: linear-gradient(to bottom, #fff, var(--light-bg));
}

.filter-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--border-color);
    background: #fff;
    color: var(--primary);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
}

/* ===== RECOMMENDATION SECTION ===== */
.recommendation-section {
    padding: 5rem 0;
    background: #fff;
}

.tab-section {
    margin-bottom: 3rem;
}

.nav-tabs {
    border-bottom: 2px solid var(--border-color);
    gap: 0rem;
}

.nav-tabs .nav-link {
    color: var(--text-light);
    border: none;
    padding-bottom: 0.8rem;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    background: #e4f4f8;
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 10px;

}

.nav-tabs .nav-link:hover {
    color: var(--secondary);
}

.nav-tabs .nav-link.active {
    color: var(--secondary);
    background: #d6f2ff;
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 10px;
}

.nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 2px;
}

/* ===== CATEGORY WIDGETS ===== */
.category-widget-section {
    padding: 5rem 0;
    background: var(--light-bg);
    position: relative;
    overflow: hidden;
    z-index: 0;
}

/* Pattern background — di belakang */
.category-widget-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("../../front/images/pattern-background.png") repeat-x top center;
    background-size: 300px auto;
    opacity: 0.20;
    z-index: -1;
}

/* Dekorasi lingkaran */
.category-widget-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(59, 130, 246, 0.06);
    border-radius: 50%;
    top: -150px;
    left: -100px;
    z-index: 1;
}

/* Konten tetap paling atas */
.category-widget-section .container {
    position: relative;
    z-index: 2;
}

.category-widget {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: #fff;
    border-radius: 12px;
    transition: all 0.4s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.category-widget:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.category-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.category-widget:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.category-count {
    font-size: 0.9rem;
    color: var(--text-light);
}


/* ===== THEME CAROUSEL ===== */
.theme-carousel-section {
    padding: 5rem 0;
    background: #fff;
}

.theme-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    border-radius: 12px;
    color: #fff;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.theme-box i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.theme-box:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.theme-box.theme-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.theme-box.theme-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.theme-box.theme-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.theme-box.theme-4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.theme-box.theme-5 {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.theme-box.theme-6 {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.theme-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.theme-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.theme-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 15px 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
    border-radius: 0 0 10px 10px;
}

.theme-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #3c4fb1 0%, #275864 100%);
    color: #fff;
    text-align: center;
    border-radius: 15px;
    margin: 0;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

/* Pattern background — di belakang gradient */
.cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("../../front/images/pattern-background.png") repeat-x top center;
    background-size: 300px auto;
    opacity: 0.30;
    z-index: -1;
}

/* Dekorasi lingkaran */
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 1;
}

/* Konten tetap paling atas */
.cta-section .cta-content {
    position: relative;
    z-index: 2;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.btn-cta {
    background: #fff;
    color: var(--secondary);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ===== ARTICLE SECTION ===== */
.article-section {
    padding: 5rem 0;
    background: var(--light-bg);
}

.pengumuman-section {
    padding: 3.5rem 0;
    background: #dddddd;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

/* Pattern background — di belakang */
.pengumuman-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("../../front/images/pattern-background.png") repeat-x top center;
    background-size: 300px auto;
    opacity: 0.20;
    z-index: -1;
}

/* Dekorasi lingkaran */
.pengumuman-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(59, 130, 246, 0.06);
    border-radius: 50%;
    top: -150px;
    right: -100px;
    z-index: 1;
}

/* Konten tetap paling atas */
.pengumuman-section .container {
    position: relative;
    z-index: 2;
}

.article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover .article-image {
    transform: scale(1.05);
}

.article-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-date {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.article-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.article-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    flex-grow: 1;
    line-height: 1.6;
}

.article-link {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.article-link:hover {
    color: var(--accent);
    gap: 0.5rem;
}

/* ===== TIMELINE SECTION ===== */
.timeline-section {
    padding: 5rem 0;
    background: #fff;
}

.timeline {
    position: relative;
    padding: 0.5rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--secondary), var(--accent));
    border-radius: 2px;
}

.timeline-item {
    margin-bottom: 0.3rem;
    /* dikurangi dari 3rem */
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: 50%;
    padding-right: 2rem;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 50%;
    margin-right: 0;
    padding-left: 2rem;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--secondary);
    border: 4px solid #fff;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 4px var(--secondary);
}

.timeline-content {
    background: var(--light-bg);
    padding: 0.7rem 1rem;
    /* lebih kecil */
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
}

.timeline-item:nth-child(even) .timeline-content {
    border-left: none;
    border-right: 4px solid var(--secondary);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.timeline-description {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== FOOTER ===== */
footer {
    background: var(--primary);
    color: #fff;
    padding: 3rem 0 1rem;
}

.footer-section h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
    padding-left: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-bottom p {
    margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .search-form-hero {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 100%;
        margin-top: 2rem;
    }

    .carousel-overlay {
        background: linear-gradient(135deg, rgba(44, 62, 80, 0.8) 0%, transparent 100%);
    }

    .section-title {
        font-size: 1.8rem;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 50px;
        margin-right: 0;
        padding-left: 1.5rem;
        padding-right: 0;
        text-align: left;
    }

    .timeline-dot {
        position: absolute;
        left: 50%;
        top: 50%;
        /* tengah vertikal item */
        transform: translate(-50%, -50%);
        width: 14px;
        /* diperkecil */
        height: 14px;
        /* diperkecil */
        background: var(--secondary);
        border: 3px solid #fff;
        border-radius: 50%;
        z-index: 2;
        box-shadow: 0 0 0 3px var(--secondary);
    }

    .timeline-item:nth-child(even) .timeline-content {
        border-left: 4px solid var(--secondary);
        border-right: none;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        min-height: 400px;
    }

    .carousel-inner {
        height: 400px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .book-card {
        margin-bottom: 1rem;
    }

    .filter-group {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }
}

/* ===== HERO IMAGE CAROUSEL ===== */

.hero-carousel {
    position: relative;
}

.hero-image {
    border-radius: 30px;
    height: 520px;
    object-fit: cover;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .12);
}

/* custom arrow */
.custom-arrow {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);

    display: flex;
    align-items: center;
    justify-content: center;

    color: #2563eb;
    font-size: 1rem;

    box-shadow: 0 10px 25px rgba(0, 0, 0, .12);

    transition: all .3s ease;
}

.custom-arrow:hover {
    background: #2563eb;
    color: #fff;
    transform: scale(1.08);
}

/* hilangkan icon bootstrap default */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    display: none;
}

/* posisi arrow */
.carousel-control-prev {
    left: 0px;
}

.carousel-control-next {
    right: 0px;
}

/* responsive */
@media(max-width:992px) {

    .hero-image {
        height: 380px;
        margin-top: 2rem;
    }

    .carousel-control-prev {
        left: 10px;
    }

    .carousel-control-next {
        right: 10px;
    }

}