/* ==========================================================================
   PERPUSTAKAAN DIGITAL SMP NEGERI 1 BLIMBINGSARI - MASTER STYLESHEET
   ========================================================================== */

:root {
    --navy-primary: #071B33;
    --navy-secondary: #102B4E;
    --gold: #D6AD55;
    --gold-light: #F7E7C4;
    --gold-dark: #B88E36;
    --white: #FFFFFF;
    --bg-light: #F8FAFC;
    --text-primary: #0F172A;
    --text-secondary: #334155;
    --text-muted: #64748B;
    --accent-blue: #2878D0;
    --accent-emerald: #10B981;
    --danger: #EF4444;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;

    --shadow-sm: 0 4px 10px rgba(0,0,0,0.04);
    --shadow-md: 0 10px 25px rgba(7, 27, 51, 0.08);
    --shadow-lg: 0 20px 40px rgba(7, 27, 51, 0.15);
    --shadow-gold: 0 8px 20px rgba(214, 173, 85, 0.3);
    --shadow-blue: 0 8px 20px rgba(40, 120, 208, 0.25);

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container-custom {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ==========================================================================
   PUBLIC NAVBAR STICKY
   ========================================================================== */

.public-navbar-sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 27, 51, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(214, 173, 85, 0.3);
    padding: 12px 0;
    transition: var(--transition);
}

.public-navbar-sticky.scrolled {
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    padding: 8px 0;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand-box {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.navbar-logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.navbar-brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
}

.brand-sub {
    font-size: 11px;
    font-weight: 600;
    color: var(--gold-light);
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--gold-light);
    font-size: 24px;
    cursor: pointer;
}

.public-nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link-item {
    color: #CBD5E1;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link-item:hover, .nav-link-item.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.nav-link-item.active {
    color: var(--gold-light);
    font-weight: 800;
}

/* ==========================================================================
   HERO PORTAL SECTION
   ========================================================================== */

.hero-portal-section {
    background: linear-gradient(135deg, #071B33 0%, #102B4E 100%);
    padding: 56px 0 64px 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid var(--gold);
}

.hero-grid-2col {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: rgba(214, 173, 85, 0.2);
    color: var(--gold-light);
    font-size: 13px;
    font-weight: 700;
    border: 1px solid rgba(214, 173, 85, 0.3);
    margin-bottom: 16px;
}

.hero-main-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
}

.brand-gold-text {
    display: block;
    color: var(--gold-light);
    background: linear-gradient(135deg, #D6AD55, #F7E7C4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 15px;
    color: #CBD5E1;
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 600px;
}

.hero-search-glass {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    padding: 8px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 28px;
    max-width: 620px;
}

.hero-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.hero-search-form .search-icon {
    position: absolute;
    left: 16px;
    color: #94A3B8;
    font-size: 16px;
}

.hero-search-input {
    flex: 1;
    height: 48px;
    padding: 0 16px 0 48px;
    border-radius: var(--radius-md);
    border: none;
    outline: none;
    font-size: 14px;
    font-family: inherit;
    background: #FFFFFF;
    color: #071B33;
    font-weight: 600;
}

.hero-cta-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-media-box {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image-frame {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(214, 173, 85, 0.25) 0%, rgba(16, 43, 78, 0.8) 70%);
    border: 3px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.hero-illustration-img {
    width: 180px;
    height: 180px;
    object-fit: contain;
}

.floating-stat-badge {
    position: absolute;
    background: #FFFFFF;
    color: #071B33;
    padding: 10px 16px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    z-index: 10;
}

.floating-stat-badge.badge-top { top: -10px; right: -20px; }
.floating-stat-badge.badge-bottom { bottom: -10px; left: -20px; }

.floating-stat-badge i { font-size: 22px; }
.text-gold { color: var(--gold-dark); }
.text-green { color: var(--accent-emerald); }

.floating-stat-badge strong {
    display: block;
    font-weight: 800;
    font-size: 12.5px;
}

.floating-stat-badge span {
    color: #64748B;
    font-weight: 600;
}

/* ==========================================================================
   REALTIME STATISTIK SECTION BAR
   ========================================================================== */

.stats-section-bar {
    background: #FFFFFF;
    padding: 28px 0;
    border-bottom: 1px solid #E2E8F0;
    box-shadow: var(--shadow-sm);
}

.stats-grid-5col {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.stat-luxury-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #F8FAFC;
    border-radius: var(--radius-md);
    border: 1px solid #E2E8F0;
    transition: var(--transition);
}

.stat-luxury-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    border-color: var(--accent-blue);
}

.stat-icon-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.stat-icon-circle.blue { background: rgba(40, 120, 208, 0.12); color: var(--accent-blue); }
.stat-icon-circle.gold { background: rgba(214, 173, 85, 0.2); color: var(--gold-dark); }
.stat-icon-circle.green { background: rgba(16, 185, 129, 0.12); color: var(--accent-emerald); }
.stat-icon-circle.amber { background: rgba(245, 158, 11, 0.12); color: #D97706; }
.stat-icon-circle.red { background: rgba(239, 68, 68, 0.12); color: var(--danger); }

.stat-num-info h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy-primary);
    margin: 0;
    line-height: 1.1;
}

.stat-num-info span {
    font-size: 11.5px;
    font-weight: 700;
    color: #64748B;
}

/* ==========================================================================
   QUICK SERVICES SECTION
   ========================================================================== */

.quick-services-section {
    padding: 64px 0;
    background: var(--bg-light);
}

.section-header-center {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 44px auto;
}

.section-tag-gold {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 20px;
    background: rgba(214, 173, 85, 0.2);
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.section-main-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--navy-primary);
    margin-bottom: 8px;
}

.section-sub-title {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.services-grid-6col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-luxury-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    padding: 28px 24px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.service-luxury-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border-color: var(--gold);
}

.service-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #071B33, #102B4E);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 18px;
    box-shadow: 0 8px 16px rgba(7, 27, 51, 0.2);
}

.service-luxury-card h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--navy-primary);
    margin-bottom: 8px;
}

.service-luxury-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.service-link-text {
    font-size: 13px;
    font-weight: 800;
    color: var(--accent-blue);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.service-luxury-card:hover .service-link-text {
    color: var(--gold-dark);
    gap: 10px;
}

/* ==========================================================================
   CATEGORIES SECTION GRID
   ========================================================================== */

.categories-section {
    padding: 64px 0;
    background: #FFFFFF;
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
}

.category-grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card-luxury {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-light);
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 16px 20px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    position: relative;
}

.category-card-luxury:hover {
    background: #FFFFFF;
    border-color: var(--accent-blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.category-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(40, 120, 208, 0.1);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.category-card-luxury:hover .category-icon-box {
    background: var(--navy-primary);
    color: var(--gold);
}

.category-info h4 {
    font-size: 15px;
    font-weight: 800;
    color: var(--navy-primary);
    margin: 0 0 2px 0;
}

.category-info span {
    font-size: 11.5px;
    color: #64748B;
    font-weight: 600;
}

.category-arrow {
    margin-left: auto;
    color: #CBD5E1;
    font-size: 14px;
    transition: var(--transition);
}

.category-card-luxury:hover .category-arrow {
    color: var(--accent-blue);
    transform: translateX(4px);
}

/* ==========================================================================
   BOOKS SHOWCASE SECTION & GRID 4-COLUMNS
   ========================================================================== */

.books-showcase-section {
    padding: 64px 0;
    background: var(--bg-light);
}

.section-header-between {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.book-grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.book-card-luxury {
    background: var(--white);
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.book-card-luxury:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.book-cover-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-secondary) 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-cover-placeholder {
    width: 82%;
    height: 85%;
    background: linear-gradient(135deg, #1E3A8A 0%, #0F172A 100%);
    border: 2px solid var(--gold);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

.placeholder-title {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.3;
    text-transform: uppercase;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.placeholder-code {
    font-size: 10px;
    font-weight: 700;
    color: var(--gold-light);
    font-family: monospace;
}

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

.book-card-title {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--navy-primary);
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 38px;
}

.book-card-sub {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 8px;
}

/* ==========================================================================
   NEWS PORTAL SECTION & EDITORIAL CARDS
   ========================================================================== */

.news-portal-section {
    padding: 64px 0;
    background: #FFFFFF;
    border-top: 1px solid #E2E8F0;
}

.news-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.news-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.news-editorial-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-editorial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border-color: var(--gold);
}

.news-thumb-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #071B33;
}

.news-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-editorial-card:hover .news-thumb-img {
    transform: scale(1.05);
}

.news-cat-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(7, 27, 51, 0.85);
    backdrop-filter: blur(6px);
    color: var(--gold-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    border: 1px solid rgba(214, 173, 85, 0.4);
}

.news-card-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-meta-info {
    display: flex;
    gap: 14px;
    font-size: 11.5px;
    color: #64748B;
    font-weight: 600;
    margin-bottom: 10px;
}

.news-meta-info i {
    color: var(--gold-dark);
}

.news-card-title {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 10px;
}

.news-card-title a {
    color: var(--navy-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-card-title a:hover {
    color: var(--accent-blue);
}

.news-card-excerpt {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.news-read-more {
    font-size: 13px;
    font-weight: 800;
    color: var(--accent-blue);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.news-read-more:hover {
    color: var(--gold-dark);
    gap: 10px;
}

/* ==========================================================================
   LITERACY BANNER & PUBLIC FOOTER
   ========================================================================== */

.literacy-banner-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.literacy-card-luxury {
    background: linear-gradient(135deg, #071B33 0%, #102B4E 100%);
    border: 2px solid var(--gold);
    border-radius: 24px;
    padding: 48px;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.literacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 20px;
    background: rgba(214, 173, 85, 0.2);
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 12px;
}

.literacy-text-content h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}

.literacy-text-content p {
    font-size: 15px;
    color: #CBD5E1;
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 650px;
}

/* PUBLIC FOOTER */
.public-footer-section {
    background: #071B33;
    color: #CBD5E1;
    padding: 60px 0 24px 0;
    border-top: 3px solid var(--gold);
}

.footer-grid-4col {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr 0.9fr 1fr;
    gap: 36px;
    margin-bottom: 48px;
}

.footer-logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.footer-brand-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--white);
    margin: 0;
}

.footer-brand-sub {
    font-size: 11px;
    color: var(--gold-light);
}

.footer-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #94A3B8;
    margin-bottom: 20px;
}

.footer-social-links {
    display: flex;
    gap: 10px;
}

.footer-social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
}

.footer-social-links a:hover {
    background: var(--gold);
    color: #071B33;
}

.footer-col-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 18px;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 6px;
    display: inline-block;
}

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

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

.footer-menu a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-menu a:hover {
    color: var(--gold-light);
    transform: translateX(4px);
}

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

.footer-contact-list li {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #94A3B8;
    margin-bottom: 12px;
    line-height: 1.5;
}

.footer-contact-list i {
    color: var(--gold);
    font-size: 15px;
    margin-top: 2px;
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12.5px;
    color: #64748B;
}

.footer-bottom-links a {
    color: #94A3B8;
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: var(--gold-light);
}

/* NEWS PORTAL LAYOUT GRID WITH SIDEBAR */
.news-layout-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
}

.featured-news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.featured-news-img-box {
    position: relative;
    height: 100%;
    min-height: 280px;
}

.featured-news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-featured-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--gold);
    color: #071B33;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 800;
}

.featured-news-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-news-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
}

.featured-news-title a {
    color: var(--navy-primary);
    text-decoration: none;
}

.featured-news-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.featured-news-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #64748B;
    font-weight: 600;
}

.sidebar-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-cat-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--navy-primary);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    transition: var(--transition);
    margin-bottom: 4px;
}

.sidebar-cat-item:hover, .sidebar-cat-item.active {
    background: var(--navy-primary);
    color: var(--gold-light);
}

/* ==========================================================================
   BUTTONS & GENERAL COMPONENTS
   ========================================================================== */

.btn-timbul {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 12.5px;
    font-weight: 800;
    font-family: inherit;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-timbul-primary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--navy-secondary) 100%);
    color: var(--white);
    box-shadow: var(--shadow-blue);
}

.btn-timbul-primary:hover {
    background: linear-gradient(135deg, #3285E0 0%, var(--navy-primary) 100%);
    transform: translateY(-2px);
}

.btn-timbul-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--navy-primary);
    box-shadow: var(--shadow-gold);
}

.btn-timbul-gold:hover {
    background: linear-gradient(135deg, #E5C278 0%, var(--gold) 100%);
    transform: translateY(-2px);
}

.btn-timbul-outline {
    background: var(--white);
    color: var(--navy-primary);
    border: 1.5px solid #CBD5E1;
}

.btn-timbul-outline:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.btn-timbul-glass {
    background: rgba(255, 255, 255, 0.15) !important;
    color: var(--white) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(8px);
}

.btn-timbul-glass:hover {
    background: rgba(255, 255, 255, 0.28) !important;
    border-color: var(--gold-light) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 11px;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 14px 24px;
    font-size: 14px;
    border-radius: var(--radius-md);
}

/* ==========================================================================
   APP SYSTEM LAYOUT & SIDEBAR (ADMIN / DASHBOARD / PORTAL)
   ========================================================================== */

.app-layout {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-light);
    width: 100%;
}

.app-sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--navy-primary) 0%, var(--navy-secondary) 100%);
    border-right: 1px solid rgba(214, 173, 85, 0.25);
    color: var(--white);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 900;
    overflow-y: auto;
}

.sidebar-header {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo-box {
    width: 44px;
    height: 44px;
    max-width: 44px;
    max-height: 44px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: rgba(255, 255, 255, 0.1);
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.sidebar-logo-img {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
    border-radius: 50%;
}

.sidebar-brand-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
}

.sidebar-brand-sub {
    font-size: 11px;
    font-weight: 600;
    color: var(--gold-light);
    letter-spacing: 0.5px;
}

.sidebar-nav {
    padding: 20px 14px;
    flex: 1;
}

.nav-section-title {
    font-size: 10.5px;
    font-weight: 800;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 0 12px 8px 12px;
    margin-top: 12px;
}

.nav-section-title:first-child {
    margin-top: 0;
}

.sidebar-menu {
    list-style: none;
    margin-bottom: 16px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    color: #CBD5E1;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    margin-bottom: 4px;
}

.sidebar-link i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: var(--gold-light);
    transition: var(--transition);
}

.sidebar-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-link.active {
    background: linear-gradient(90deg, rgba(214, 173, 85, 0.25) 0%, rgba(214, 173, 85, 0.05) 100%);
    color: var(--white);
    font-weight: 800;
    border-left: 3px solid var(--gold);
}

.sidebar-link.active i {
    color: var(--gold);
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.15);
}

.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(214, 173, 85, 0.2);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    display: block;
    font-size: 11px;
    color: var(--gold-light);
}

.sidebar-logout-btn {
    color: var(--danger);
    font-size: 16px;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
    text-decoration: none;
}

.sidebar-logout-btn:hover {
    background: rgba(239, 68, 68, 0.15);
}

/* APP MAIN CONTENT AREA & TOPBAR */
.app-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
}

.app-topbar {
    height: 68px;
    background: var(--white);
    border-bottom: 1px solid #E2E8F0;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 800;
    box-shadow: var(--shadow-sm);
}

.topbar-brand-display h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--navy-primary);
    margin: 0;
    display: inline-block;
}

.topbar-brand-display span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 6px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar-search-box {
    position: relative;
    width: 260px;
}

.topbar-search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
}

.topbar-search-box input {
    width: 100%;
    padding: 8px 12px 8px 34px;
    font-size: 12.5px;
    border-radius: var(--radius-md);
    border: 1px solid #E2E8F0;
    background: var(--bg-light);
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

.topbar-search-box input:focus {
    border-color: var(--accent-blue);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(40, 120, 208, 0.12);
}

.topbar-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--navy-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.topbar-icon-btn:hover {
    background: #E2E8F0;
}

.notification-badge {
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    position: absolute;
    top: 8px;
    right: 8px;
}

.topbar-user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: var(--bg-light);
    border: 1px solid #E2E8F0;
}

.topbar-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--navy-primary);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.topbar-user-name {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--navy-primary);
    line-height: 1.1;
}

.topbar-user-role {
    display: block;
    font-size: 10.5px;
    color: var(--text-muted);
}

.app-body {
    padding: 28px;
    flex: 1;
}

/* ==========================================================================
   DASHBOARD PAGES & METRICS STYLING
   ========================================================================== */

.hero-welcome-card {
    background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-secondary) 100%);
    border: 1px solid rgba(214, 173, 85, 0.3);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.hero-welcome-card::after {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(214, 173, 85, 0.08);
    pointer-events: none;
}

.hero-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: rgba(214, 173, 85, 0.2);
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
    border: 1px solid rgba(214, 173, 85, 0.3);
}

.hero-text-content h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 6px;
}

.hero-text-content p {
    font-size: 13.5px;
    color: #CBD5E1;
    max-width: 650px;
}

/* METRICS GRID & CARDS */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.metric-card {
    background: var(--white);
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(40, 120, 208, 0.3);
}

.metric-icon-box {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.card-blue .metric-icon-box { background: rgba(40, 120, 208, 0.12); color: var(--accent-blue); }
.card-green .metric-icon-box { background: rgba(16, 185, 129, 0.12); color: var(--accent-emerald); }
.card-amber .metric-icon-box { background: rgba(245, 158, 11, 0.12); color: #F59E0B; }
.card-gold .metric-icon-box { background: rgba(214, 173, 85, 0.18); color: var(--gold-dark); }
.card-red .metric-icon-box { background: rgba(239, 68, 68, 0.12); color: var(--danger); }

.metric-info {
    display: flex;
    flex-direction: column;
}

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

.metric-info .value {
    font-size: 26px;
    font-weight: 800;
    color: var(--navy-primary);
    line-height: 1.1;
    margin-bottom: 4px;
}

.metric-info .subtext {
    font-size: 11.5px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* GLASS CARD & TABLES */
.glass-card {
    background: var(--white);
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    transition: var(--transition);
}

.glass-card:hover {
    box-shadow: var(--shadow-md);
}

.card-title-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-title-header h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--navy-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table-luxury {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.table-luxury th {
    background: #F8FAFC;
    color: var(--text-secondary);
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border-bottom: 2px solid #E2E8F0;
    text-align: left;
}

.table-luxury td {
    padding: 14px 16px;
    border-bottom: 1px solid #F1F5F9;
    color: var(--text-primary);
    vertical-align: middle;
}

.table-luxury tbody tr:hover {
    background-color: #F8FAFC;
}

/* BADGES */
.badge-luxury {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.badge-success { background: rgba(16, 185, 129, 0.12); color: #047857; }
.badge-warning { background: rgba(245, 158, 11, 0.12); color: #B45309; }
.badge-danger { background: rgba(239, 68, 68, 0.12); color: #B91C1C; }
.badge-info { background: rgba(40, 120, 208, 0.12); color: #1D4ED8; }
.badge-gold { background: rgba(214, 173, 85, 0.2); color: #92400E; }

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: #F1F5F9;
    color: var(--navy-primary);
    font-size: 11.5px;
    font-weight: 700;
}

.sidebar-toggle-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--navy-primary);
    font-size: 20px;
    cursor: pointer;
    padding: 6px;
    margin-right: 8px;
}

/* ==========================================================================
   FORM STYLING
   ========================================================================== */

.form-wrapper-center {
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
}

.form-card-luxury {
    background: var(--white);
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    box-shadow: var(--shadow-md);
}

.form-luxury {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-bottom: 4px;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.form-label i {
    color: var(--accent-blue);
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.form-control {
    width: 100%;
    height: 46px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    color: var(--text-primary);
    background-color: var(--white);
    border: 1.5px solid #CBD5E1;
    border-radius: var(--radius-md);
    outline: none;
    transition: var(--transition);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

textarea.form-control {
    height: auto;
}

.form-control:focus {
    border-color: var(--accent-blue);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(40, 120, 208, 0.12);
}

.form-control:disabled, .form-control[readonly] {
    background-color: #F8FAFC;
    color: var(--text-muted);
    border-color: #E2E8F0;
    cursor: not-allowed;
    font-weight: 600;
}

.input-with-icon {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.input-icon-left {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 15px;
    pointer-events: none;
    z-index: 2;
}

.input-with-icon .form-control {
    padding-left: 42px;
}

.form-hint {
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

.kode-buku-tag {
    background: linear-gradient(135deg, var(--navy-primary), var(--navy-secondary));
    color: var(--gold-light);
    font-family: monospace;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(214, 173, 85, 0.3);
}

.alert-luxury {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.alert-luxury i {
    font-size: 18px;
    flex-shrink: 0;
}

.alert-luxury.success {
    background: #ECFDF5;
    color: #065F46;
    border-color: #A7F3D0;
}

.alert-luxury.error {
    background: #FEF2F2;
    color: #991B1B;
    border-color: #FCA5A5;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 28px;
}

.filter-pills-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 14px 18px;
    background: var(--white);
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    border-radius: var(--radius-full);
    background: var(--bg-light);
    color: var(--navy-primary);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: 1.5px solid #CBD5E1;
    transition: var(--transition);
    white-space: nowrap;
}

.filter-pill:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.filter-pill.active {
    background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-secondary) 100%);
    color: var(--gold-light);
    border-color: var(--navy-primary);
    box-shadow: var(--shadow-md);
}

.pagination-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid #E2E8F0;
    box-shadow: var(--shadow-sm);
}

.pagination-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-links a, .pagination-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #CBD5E1;
    background: var(--white);
    color: var(--navy-primary);
    transition: var(--transition);
}

.pagination-links a:hover {
    background: #F1F5F9;
    border-color: var(--navy-primary);
}

.pagination-links span.active {
    background: var(--navy-primary);
    color: var(--gold-light);
    border-color: var(--navy-primary);
}

.pagination-links span.pagination-dots {
    border: none !important;
    background: transparent !important;
    min-width: auto !important;
    padding: 0 4px !important;
    color: var(--text-muted) !important;
}

/* PAGE HEADER BANNER FOR PUBLIC PAGES */
.page-header-banner {
    background: linear-gradient(135deg, #071B33 0%, #102B4E 100%);
    padding: 48px 0;
    color: #FFF;
    border-bottom: 2px solid var(--gold);
}

.page-header-title {
    font-size: 32px;
    font-weight: 800;
    margin-top: 8px;
    margin-bottom: 8px;
}

.page-header-sub {
    font-size: 15px;
    color: #CBD5E1;
    max-width: 650px;
}

@media (max-width: 1024px) {
    .hero-grid-2col { grid-template-columns: 1fr; }
    .stats-grid-5col { grid-template-columns: repeat(3, 1fr); }
    .services-grid-6col { grid-template-columns: repeat(2, 1fr); }
    .category-grid-4col { grid-template-columns: repeat(2, 1fr); }
    .book-grid-4col { grid-template-columns: repeat(2, 1fr); }
    .news-grid-3col { grid-template-columns: repeat(2, 1fr); }
    .footer-grid-4col { grid-template-columns: repeat(2, 1fr); }
    .news-layout-grid { grid-template-columns: 1fr; }
    .featured-news-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .mobile-menu-toggle { display: block; }
    .public-nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #071B33;
        border-bottom: 2px solid var(--gold);
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        display: none;
        box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    }
    .public-nav-menu.open { display: flex; }
    .nav-link-item { width: 100%; padding: 10px 14px; }
    .nav-auth-cta { width: 100%; margin-top: 10px; }
    .nav-auth-cta a { width: 100%; text-align: center; }
    .stats-grid-5col { grid-template-columns: repeat(2, 1fr); }
    .hero-main-title { font-size: 26px; }
    .services-grid-6col { grid-template-columns: 1fr; }
    .category-grid-4col { grid-template-columns: 1fr; }
    .book-grid-4col { grid-template-columns: 1fr; }
    .news-grid-3col { grid-template-columns: 1fr; }
    .news-grid-2col { grid-template-columns: 1fr; }
    .footer-grid-4col { grid-template-columns: 1fr; }
    .literacy-card-luxury { padding: 24px; }
}

/* ==========================================================================
   INTERNAL DASHBOARD FOOTER PREMIUM STYLING
   ========================================================================== */

.footer-premium {
    background: var(--navy-primary) !important;
    color: #CBD5E1 !important;
    border-top: 2px solid var(--gold) !important;
    padding: 16px 28px !important;
    margin-top: auto !important;
    font-size: 13px !important;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
}

.footer-premium .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-premium p, .footer-premium strong, .footer-premium span {
    color: #CBD5E1 !important;
    margin: 0;
}

.footer-premium strong {
    color: #FFFFFF !important;
}

