@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Raleway:wght@600;700;800;900&display=swap');

:root {
    --rs-deep-blue: #1d208a;
    --rs-deep-blue-dark: #14166a;
    --rs-deep-blue-light: #2a2d9e;
    --rs-medical-blue: #0099cc;
    --rs-medical-blue-dark: #007aa3;
    --rs-green: #009a44;
    --rs-green-dark: #007a36;
    --rs-yellow: #fcca03;
    --rs-golden: #f9d423;
    --rs-soft-blue: #eef5fa;
    --rs-soft-green: #f1faf5;
    --rs-soft-purple: #f0f0ff;
    --rs-ink: #172033;
    --rs-text: #29323c;
    --rs-text-secondary: #667085;
    --rs-text-muted: #858585;
    --rs-border: #e5e7eb;
    --rs-border-light: #f0f0f0;
    --rs-bg: #f8f9fc;
    --rs-white: #ffffff;
    --rs-gradient: linear-gradient(135deg, #1d208a 0%, #0099cc 100%);
    --rs-gradient-hero: linear-gradient(135deg, #1d208a 0%, #2a2d9e 40%, #0099cc 100%);
}

* { box-sizing: border-box; }

body {
    color: var(--rs-text);
    background: var(--rs-bg);
    font-family: "Poppins", sans-serif;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

a { transition: all 0.2s ease; }

/* ========================================
   TOP BAR
======================================== */
.topbar {
    background: var(--rs-deep-blue-dark);
    padding: 8px 0;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}
.topbar a { color: rgba(255,255,255,0.8); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .social-links { display: flex; gap: 12px; align-items: center; }
.topbar .social-links a { font-size: 14px; }

/* ========================================
   HEADER / NAVBAR
======================================== */
.site-header {
    background: var(--rs-white);
    border-bottom: 3px solid var(--rs-deep-blue);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(29, 32, 138, 0.08);
}

.site-header .logo-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.site-header .logo-wrap img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.site-header .logo-text {
    display: flex;
    flex-direction: column;
}

.site-header .logo-text .main-title {
    font-family: "Raleway", sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--rs-deep-blue);
    line-height: 1.2;
}

.site-header .logo-text .sub-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--rs-medical-blue);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.site-header .nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-header .nav-links a {
    color: var(--rs-ink);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 0;
    position: relative;
}

.site-header .nav-links a:hover,
.site-header .nav-links a.active {
    color: var(--rs-deep-blue);
}

.site-header .nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--rs-deep-blue);
    border-radius: 2px;
}

/* ========================================
   HERO SECTION (kemkes style)
======================================== */
.hero-section {
    background: var(--rs-gradient-hero);
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.18;
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    right: -100px;
    top: -100px;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

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

.hero-section .hero-kicker {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: var(--rs-golden);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-section h1 {
    font-family: "Raleway", sans-serif;
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 16px;
}

.hero-section .hero-desc {
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    line-height: 1.7;
    max-width: 500px;
    margin-bottom: 28px;
}

/* ========================================
   SEARCH BOX (kemkes style - prominent)
======================================== */
.search-box {
    background: var(--rs-white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.search-box h3 {
    font-family: "Raleway", sans-serif;
    font-weight: 800;
    color: var(--rs-deep-blue);
    margin: 0 0 20px;
    font-size: 20px;
}

.search-box .search-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.search-box .search-form .form-input {
    flex: 1;
    min-width: 200px;
    height: 50px;
    border: 2px solid var(--rs-border);
    border-radius: 10px;
    padding: 0 16px;
    font-size: 14px;
    font-family: "Poppins", sans-serif;
    transition: border-color 0.2s;
    outline: none;
}

.search-box .search-form .form-input:focus {
    border-color: var(--rs-medical-blue);
    box-shadow: 0 0 0 4px rgba(0,153,204,0.1);
}

.search-box .search-form .form-select {
    width: 200px;
    height: 50px;
    border: 2px solid var(--rs-border);
    border-radius: 10px;
    padding: 0 16px;
    font-size: 14px;
    font-family: "Poppins", sans-serif;
    background: #fff;
    cursor: pointer;
    outline: none;
}

.search-box .search-form .form-select:focus {
    border-color: var(--rs-medical-blue);
}

.search-box .btn-search {
    height: 50px;
    padding: 0 32px;
    background: var(--rs-gradient);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    font-family: "Poppins", sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.search-box .btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(29, 32, 138, 0.3);
}

/* ========================================
   COUNTER / STATS (kemkes style)
======================================== */
.stats-section {
    padding: 50px 0 30px;
    background: var(--rs-white);
}

.stat-card {
    text-align: center;
    padding: 24px 16px;
    border-radius: 16px;
    background: var(--rs-white);
    border: 1px solid var(--rs-border-light);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(29, 32, 138, 0.08);
}

.stat-card .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    margin-bottom: 14px;
}

.stat-card .stat-icon.blue { background: var(--rs-deep-blue); }
.stat-card .stat-icon.cyan { background: var(--rs-medical-blue); }
.stat-card .stat-icon.green { background: var(--rs-green); }
.stat-card .stat-icon.yellow { background: var(--rs-yellow); color: var(--rs-ink); }

.stat-card .stat-number {
    font-family: "Raleway", sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: var(--rs-ink);
    display: block;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card .stat-label {
    font-size: 13px;
    color: var(--rs-text-muted);
    font-weight: 500;
}

/* ========================================
   MARQUEE / RUNNING TEXT
======================================== */
.marquee-bar {
    background: linear-gradient(135deg, var(--rs-deep-blue-dark) 0%, var(--rs-deep-blue) 100%);
    overflow: hidden;
    padding: 12px 0;
    position: relative;
    border-top: 2px solid var(--rs-golden);
    border-bottom: 2px solid var(--rs-golden);
    margin: 24px 0;
    border-radius: 10px;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.95);
    letter-spacing: 0.3px;
}

.marquee-content .mq-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 28px;
}

.marquee-content .mq-item i {
    color: var(--rs-golden);
    font-size: 13px;
}

.marquee-content .mq-dot {
    color: var(--rs-golden);
    font-size: 8px;
    opacity: 0.6;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========================================
   BOOK CARDS (kemkes inspired grid)
======================================== */
.books-section {
    padding: 50px 0;
    background: var(--rs-bg);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-header h2 {
    font-family: "Raleway", sans-serif;
    font-weight: 800;
    color: var(--rs-deep-blue);
    font-size: 24px;
    margin: 0;
}

.section-header .view-all {
    color: var(--rs-medical-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.section-header .view-all:hover {
    color: var(--rs-deep-blue);
}

.book-card {
    background: var(--rs-white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(216, 217, 255, 0.4);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(29, 32, 138, 0.12);
}

.book-card .card-cover {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--rs-soft-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-card .card-cover img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.book-card .card-cover .no-cover {
    font-size: 48px;
    color: var(--rs-border);
}

.book-card .card-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-card .card-category {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    width: fit-content;
}

.book-card .card-category.cat-book { background: var(--rs-soft-blue); color: var(--rs-deep-blue); }
.book-card .card-category.cat-journal { background: #e8f8f5; color: var(--rs-green); }
.book-card .card-category.cat-other { background: #fff8e1; color: #b8860b; }

.book-card .card-title {
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--rs-ink);
    margin: 0 0 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-card .card-title a {
    color: inherit;
    text-decoration: none;
}

.book-card .card-title a:hover { color: var(--rs-deep-blue); }

.book-card .card-meta {
    font-size: 13px;
    color: var(--rs-text-muted);
    margin-bottom: 4px;
}

.book-card .card-meta strong {
    color: var(--rs-text);
    font-weight: 600;
}

.book-card .card-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--rs-border-light);
}

.book-card .card-footer .btn-card {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.book-card .card-footer .btn-read {
    background: var(--rs-gradient);
    color: #fff;
}

.book-card .card-footer .btn-read:hover {
    box-shadow: 0 4px 12px rgba(29, 32, 138, 0.25);
}

.book-card .card-footer .btn-detail {
    background: var(--rs-soft-blue);
    color: var(--rs-deep-blue);
}

.book-card .card-footer .btn-detail:hover {
    background: var(--rs-deep-blue);
    color: #fff;
}

.book-card .card-footer .location-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--rs-text-muted);
}

.book-card .card-footer .location-info i { color: var(--rs-medical-blue); }

/* ========================================
   ABOUT / WELCOME
======================================== */
.about-section {
    padding: 60px 0;
    background: var(--rs-white);
}

.about-section h2 {
    font-family: "Raleway", sans-serif;
    font-weight: 800;
    color: var(--rs-deep-blue);
    font-size: 28px;
    margin-bottom: 16px;
}

.about-section p {
    color: var(--rs-text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

/* ========================================
   BANNER CTA (kemkes style)
======================================== */
.cta-banner {
    background: var(--rs-gradient);
    padding: 50px 0;
    text-align: center;
    color: #fff;
}

.cta-banner h2 {
    font-family: "Raleway", sans-serif;
    font-weight: 800;
    margin-bottom: 12px;
    font-size: 28px;
}

.cta-banner p {
    opacity: 0.8;
    margin-bottom: 24px;
    font-size: 16px;
}

.cta-banner .btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--rs-golden);
    color: var(--rs-ink);
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.cta-banner .btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ========================================
   FOOTER (kemkes style)
======================================== */
.site-footer {
    background: var(--rs-deep-blue-dark);
    color: rgba(255,255,255,0.7);
    padding: 40px 0 0;
}

.site-footer h4 {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 16px;
}

.site-footer p { font-size: 14px; line-height: 1.7; }

.site-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.site-footer .footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
}

.site-footer .footer-links a:hover { color: var(--rs-golden); }

.site-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 30px;
    padding: 16px 0;
    text-align: center;
    font-size: 13px;
}

/* ========================================
   EMPTY STATE
======================================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--rs-text-secondary);
}

.empty-state i {
    font-size: 56px;
    color: var(--rs-border);
    margin-bottom: 16px;
    display: block;
}

.empty-state h4 {
    color: var(--rs-ink);
    font-weight: 700;
    margin-bottom: 8px;
}

/* ========================================
   BOOK DETAIL PAGE
======================================== */
.detail-section { padding: 40px 0; background: var(--rs-bg); }

.detail-card {
    background: var(--rs-white);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(29, 32, 138, 0.06);
    overflow: hidden;
    border: 1px solid var(--rs-border-light);
}

.detail-card .cover-area {
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rs-soft-blue);
}

.detail-card .cover-area img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 12px;
}

.detail-card .info-area { padding: 32px; }

.detail-card .badge-row { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }

.detail-card .badge-cat {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-card .badge-cat.book { background: var(--rs-soft-blue); color: var(--rs-deep-blue); }
.detail-card .badge-cat.journal { background: #e8f8f5; color: var(--rs-green); }
.detail-card .badge-cat.other { background: #fff8e1; color: #b8860b; }

.detail-card .badge-type {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.detail-card .badge-type.electronic { background: var(--rs-soft-green); color: var(--rs-green); }
.detail-card .badge-type.physical { background: #fef3cd; color: #856404; }

.detail-card h1 {
    font-family: "Raleway", sans-serif;
    font-weight: 800;
    color: var(--rs-deep-blue);
    font-size: 26px;
    margin-bottom: 24px;
    line-height: 1.3;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 28px;
}

.detail-grid .detail-item .label {
    font-size: 12px;
    font-weight: 700;
    color: var(--rs-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.detail-grid .detail-item .value {
    font-size: 15px;
    color: var(--rs-text);
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-family: "Poppins", sans-serif;
}

.btn-action.primary {
    background: var(--rs-gradient);
    color: #fff;
}

.btn-action.primary:hover {
    box-shadow: 0 8px 20px rgba(29, 32, 138, 0.3);
    transform: translateY(-1px);
}

.btn-action.secondary {
    background: var(--rs-soft-blue);
    color: var(--rs-deep-blue);
}

.btn-action.secondary:hover {
    background: var(--rs-deep-blue);
    color: #fff;
}

.info-box {
    background: var(--rs-soft-blue);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--rs-text-secondary);
}

.info-box i { color: var(--rs-medical-blue); font-size: 20px; }

/* ========================================
   PAGINATION
======================================== */
.pagination-wrap { text-align: center; margin-top: 32px; }

/* ========================================
   FILTER BAR (search page)
======================================== */
.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-bar .filter-btn {
    padding: 8px 20px;
    border: 2px solid var(--rs-border);
    border-radius: 8px;
    background: var(--rs-white);
    color: var(--rs-text);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    font-family: "Poppins", sans-serif;
}

.filter-bar .filter-btn:hover,
.filter-bar .filter-btn.active {
    background: var(--rs-deep-blue);
    border-color: var(--rs-deep-blue);
    color: #fff;
}

/* ========================================
   ADMIN OVERRIDES
======================================== */
.navbar-bg {
    background: var(--rs-gradient) !important;
}

.sidebar-brand {
    background: var(--rs-deep-blue) !important;
}

.sidebar-brand a {
    color: var(--rs-white) !important;
    font-family: "Raleway", sans-serif;
    font-weight: 700;
}

.main-sidebar .sidebar-menu li.active a {
    color: var(--rs-deep-blue) !important;
    font-weight: 600;
}

.card-statistic-1 .card-icon.bg-primary { background: var(--rs-deep-blue) !important; }
.card-statistic-1 .card-icon.bg-danger { background: var(--rs-medical-blue) !important; }
.card-statistic-1 .card-icon.bg-info { background: var(--rs-green) !important; }
.card-statistic-1 .card-icon.bg-warning { background: var(--rs-yellow) !important; }

.card .card-header .btn-primary,
.card-primary > .card-header {
    background: var(--rs-deep-blue) !important;
    border-color: var(--rs-deep-blue) !important;
}

.btn-primary {
    background: var(--rs-deep-blue) !important;
    border-color: var(--rs-deep-blue) !important;
    border-radius: 8px;
    font-weight: 600;
}

.btn-primary:hover, .btn-primary:focus {
    background: var(--rs-deep-blue-dark) !important;
    border-color: var(--rs-deep-blue-dark) !important;
}

.badge-primary { background: var(--rs-deep-blue) !important; }
.badge-secondary { background: var(--rs-text-secondary) !important; }
.badge-info { background: var(--rs-medical-blue) !important; }
.badge-success { background: var(--rs-green) !important; }

.alert-success-custom {
    background: var(--rs-soft-green);
    border: 1px solid var(--rs-green);
    color: var(--rs-green-dark);
    border-radius: 10px;
    padding: 14px 20px;
    font-weight: 500;
    margin-bottom: 20px;
}

/* Admin table */
.admin-filter-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.admin-filter-row select,
.admin-filter-row input[type="text"] {
    height: 40px;
    border: 1px solid var(--rs-border);
    border-radius: 8px;
    padding: 0 12px;
    font-size: 14px;
    font-family: "Poppins", sans-serif;
}

/* Admin dashboard chart area */
.dash-card {
    background: var(--rs-white);
    border-radius: 14px;
    border: 1px solid var(--rs-border-light);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.dash-card h4 {
    font-weight: 700;
    color: var(--rs-ink);
    margin-bottom: 16px;
    font-size: 16px;
}

.recent-table { width: 100%; font-size: 14px; }
.recent-table th { color: var(--rs-text-muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; padding: 10px 8px; border-bottom: 2px solid var(--rs-border); }
.recent-table td { padding: 10px 8px; border-bottom: 1px solid var(--rs-border-light); color: var(--rs-text); }

/* ========================================
   MOBILE NAV BUTTONS
======================================== */
.mobile-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mobile-nav-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--rs-text-secondary);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s;
}

.mobile-nav-btn.active,
.mobile-nav-btn:hover {
    background: var(--rs-soft-blue);
    color: var(--rs-deep-blue);
}

/* ========================================
   RESPONSIVE
======================================== */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

@media (max-width: 991px) {
    .hero-section { padding: 40px 0 60px; }
    .hero-section h1 { font-size: 28px; }
    .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .search-box .search-form { flex-direction: column; align-items: stretch; }
    .search-box .search-form .form-select { width: 100%; }
    .search-box .search-form .form-input { width: 100%; min-width: unset; }
    .search-box .search-form .btn-search { width: 100%; justify-content: center; }
    .search-box { padding: 16px; margin-top: -30px; border-radius: 12px; }
    .search-box .search-form { gap: 8px; }
    .search-box .search-form .form-input,
    .search-box .search-form .form-select { height: 42px; font-size: 13px; border-radius: 8px; }
    .search-box .btn-search { height: 42px; font-size: 13px; border-radius: 8px; }
    .search-box .result-count { font-size: 12px; margin-top: 8px; }
    .filter-bar { overflow-x: auto; flex-wrap: nowrap; gap: 6px; }
    .filter-bar .filter-btn {
        padding: 5px 14px;
        font-size: 11px;
        border-radius: 6px;
        border-width: 1.5px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Compact book cards on mobile */
    .book-card .card-cover,
    .book-card .card-cover img {
        height: 130px;
    }
    .book-card .card-cover .no-cover {
        font-size: 32px;
    }
    .book-card .card-body {
        padding: 12px;
    }
    .book-card .card-category {
        font-size: 9px;
        padding: 2px 7px;
        margin-bottom: 6px;
    }
    .book-card .card-title {
        font-size: 13px;
        margin-bottom: 6px;
        -webkit-line-clamp: 2;
    }
    .book-card .card-meta {
        font-size: 11px;
        margin-bottom: 2px;
    }
    .book-card .card-footer {
        padding-top: 8px;
    }
    .book-card .card-footer .btn-card {
        padding: 5px 10px;
        font-size: 11px;
        gap: 4px;
    }
    .book-card .card-footer .location-info {
        font-size: 11px;
    }
    .col-6.mb-4 {
        padding-left: 6px;
        padding-right: 6px;
        margin-bottom: 12px !important;
    }

    /* Compact hero on mobile */
    .hero-section { padding: 24px 0 40px; overflow: hidden; }
    .hero-section h1 { font-size: 22px; margin-bottom: 10px; }
    .hero-section .hero-desc { font-size: 13px; margin-bottom: 16px; }
    .hero-section .hero-kicker { font-size: 10px; padding: 4px 12px; margin-bottom: 12px; }

    /* Compact stats */
    .stat-card { padding: 14px 8px; }
    .stat-number { font-size: 22px; }
    .stat-label { font-size: 12px; }
    .stat-icon { width: 40px; height: 40px; font-size: 18px; }

    /* Section spacing */
    .books-section { padding: 30px 0; }
    .section-header h2 { font-size: 20px; }
    .stats-section { padding: 20px 0; }
}
