:root {
    --primary: #0a2647;
    --primary-light: #144272;
    --secondary: #205295;
    --accent: #d4a843;
    --accent-light: #e8c97a;
    --light-bg: #f8f9fc;
    --text-dark: #1a1a2e;
    --text-muted: #6c757d;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #0a2647 0%, #205295 100%);
    --gradient-accent: linear-gradient(135deg, #d4a843 0%, #e8c97a 100%);
    --shadow-sm: 0 2px 15px rgba(10, 38, 71, 0.08);
    --shadow-md: 0 8px 30px rgba(10, 38, 71, 0.12);
    --shadow-lg: 0 20px 60px rgba(10, 38, 71, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    background: var(--white);
}

h1,
h2,
h3,
h4,
h5 {
    font-family: "Playfair Display", serif;
}

/* ===== HILANGKAN GARIS BAWAH PADA SEMUA LINK ===== */
a,
a:hover,
a:focus,
a:active {
    text-decoration: none !important;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--light-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 10px;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.top-bar a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}
.top-bar a:hover {
    color: var(--accent-light);
}
.top-bar .separator {
    margin: 0 12px;
    opacity: 0.3;
}

/* ===== NAVBAR ===== */
.navbar-custom {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1050;
}
.navbar-custom.scrolled {
    padding: 8px 0;
    box-shadow: var(--shadow-md);
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}
.navbar-brand .logo-icon {
    width: 52px;
    height: 52px;
    background: var(--gradient-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(10, 38, 71, 0.3);
    transition: var(--transition);
}
.navbar-brand:hover .logo-icon {
    transform: rotate(-5deg) scale(1.05);
}
.navbar-brand .brand-text h1 {
    font-family: "Playfair Display", serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    line-height: 1.3;
}
.navbar-brand .brand-text small {
    font-family: "Inter", sans-serif;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.5px;
}
.navbar-custom .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 18px !important;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--secondary) !important;
    background: rgba(32, 82, 149, 0.06);
}
.btn-nav-cta {
    background: var(--gradient-primary);
    color: var(--white) !important;
    border: none;
    padding: 10px 24px !important;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(10, 38, 71, 0.3);
    transition: var(--transition);
}
.btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 38, 71, 0.4);
    color: var(--white) !important;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--primary);
    overflow: hidden;
}
.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image:
        radial-gradient(
            circle at 20% 50%,
            rgba(212, 168, 67, 0.4) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 20%,
            rgba(32, 82, 149, 0.4) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 60% 80%,
            rgba(212, 168, 67, 0.3) 0%,
            transparent 50%
        );
}
.hero-floating-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.hero-floating-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}
.hero-floating-shapes .shape-1 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}
.hero-floating-shapes .shape-2 {
    width: 250px;
    height: 250px;
    background: var(--secondary);
    bottom: -50px;
    left: 10%;
    animation: float 10s ease-in-out infinite reverse;
}
.hero-floating-shapes .shape-3 {
    width: 150px;
    height: 150px;
    background: var(--accent-light);
    top: 40%;
    left: 5%;
    animation: float 6s ease-in-out infinite 2s;
}
@keyframes float {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 168, 67, 0.15);
    border: 1px solid rgba(212, 168, 67, 0.3);
    color: var(--accent-light);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 20px;
}
.hero-title .highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 520px;
}
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.btn-hero-primary {
    background: var(--gradient-accent);
    color: var(--primary);
    border: none;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 8px 30px rgba(212, 168, 67, 0.35);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(212, 168, 67, 0.5);
    color: var(--primary);
}
.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    transform: translateY(-3px);
}
.hero-image-wrapper {
    position: relative;
    z-index: 2;
}
.hero-image-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}
.hero-image-card img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}
.hero-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 38, 71, 0.6) 0%,
        transparent 60%
    );
}
.hero-stats-card {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 28px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 3;
}
.hero-stats-card .stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(212, 168, 67, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.3rem;
}
.hero-stats-card .stat-info h4 {
    font-family: "Inter", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}
.hero-stats-card .stat-info p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
}
.hero-books-card {
    position: absolute;
    top: 20px;
    right: -20px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    z-index: 3;
    animation: float 5s ease-in-out infinite;
}
.hero-books-card .books-row {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}
.hero-books-card .mini-book {
    width: 28px;
    height: 38px;
    border-radius: 4px;
}
.hero-books-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
}
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    text-align: center;
}
.hero-scroll-indicator .mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 13px;
    margin: 0 auto 8px;
    position: relative;
}
.hero-scroll-indicator .mouse::after {
    content: "";
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
    0% {
        opacity: 1;
        top: 8px;
    }
    100% {
        opacity: 0;
        top: 22px;
    }
}
.hero-scroll-indicator span {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ===== SECTION STYLES ===== */
.section-padding {
    padding: 100px 0;
}
.section-header {
    margin-bottom: 60px;
}
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(32, 82, 149, 0.08);
    color: var(--secondary);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    line-height: 1.2;
}
.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.8;
}
.section-desc.centered {
    margin: 0 auto;
}

/* ===== QUICK INFO BAR ===== */
.quick-info-bar {
    background: var(--white);
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0;
    overflow: hidden;
}
.quick-info-item {
    padding: 32px 28px;
    text-align: center;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    cursor: default;
}
.quick-info-item:last-child {
    border-right: none;
}
.quick-info-item:hover {
    background: var(--light-bg);
}
.quick-info-item .qi-icon {
    width: 56px;
    height: 56px;
    background: rgba(32, 82, 149, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.3rem;
    color: var(--secondary);
    transition: var(--transition);
}
.quick-info-item:hover .qi-icon {
    background: var(--gradient-primary);
    color: var(--accent);
    transform: scale(1.1);
}
.quick-info-item h5 {
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}
.quick-info-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    background: var(--white);
}
.about-image-wrapper {
    position: relative;
}
.about-image-main {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-image-main img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}
.about-experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--gradient-accent);
    color: var(--primary);
    padding: 24px 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 10px 40px rgba(212, 168, 67, 0.3);
}
.about-experience-badge h3 {
    font-family: "Inter", sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0;
    line-height: 1;
}
.about-experience-badge p {
    font-size: 0.78rem;
    font-weight: 600;
    margin: 4px 0 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}
.about-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.about-feature-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}
.about-feature-item .feature-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: rgba(32, 82, 149, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1rem;
}
.about-feature-item h6 {
    font-family: "Inter", sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2px;
}
.about-feature-item p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    background: var(--light-bg);
    position: relative;
}
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: var(--transition);
}
.service-card:hover::before {
    transform: scaleX(1);
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}
.service-card .service-icon {
    width: 80px;
    height: 80px;
    background: rgba(32, 82, 149, 0.08);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    color: var(--secondary);
    transition: var(--transition);
}
.service-card:hover .service-icon {
    background: var(--gradient-primary);
    color: var(--accent);
    transform: scale(1.1) rotate(-5deg);
}
.service-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}
.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}
.service-card .service-link {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}
.service-card .service-link:hover {
    color: var(--accent);
    gap: 12px;
}

/* ===== STATS SECTION ===== */
.stats-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}
.stats-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(
            circle at 10% 50%,
            rgba(212, 168, 67, 0.15) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 90% 50%,
            rgba(212, 168, 67, 0.1) 0%,
            transparent 50%
        );
}
.stat-item {
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 2;
}
.stat-item .stat-number {
    font-family: "Playfair Display", serif;
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-item .stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}
.stat-item .stat-icon-bg {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
}

/* ===== CATALOG / BOOKS SECTION ===== */
.catalog-section {
    background: var(--white);
}
.book-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
    height: 100%;
}
.book-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.book-card.hidden {
    display: none;
}
.book-card .book-cover {
    position: relative;
    height: 220px;
    overflow: hidden;
    cursor: pointer;
}
.book-card .book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.book-card:hover .book-cover img {
    transform: scale(1.08);
}
.book-card .book-category {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--gradient-accent);
    color: var(--primary);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.book-card .book-body {
    padding: 22px;
}
.book-card .book-body h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
    line-height: 1.4;
}
.book-card .book-author {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}
.book-card .book-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.book-card .book-meta .rating {
    color: var(--accent);
    font-size: 0.8rem;
}
.book-card .book-meta .rating span {
    color: var(--text-muted);
    margin-left: 4px;
}
.book-card .book-meta .status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
}
.status-available {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}
.status-borrowed {
    background: rgba(255, 193, 7, 0.15);
    color: #d4a017;
}

/* Search highlight */
.search-highlight {
    background: rgba(212, 168, 67, 0.3);
    padding: 0 2px;
    border-radius: 3px;
    color: var(--primary);
    font-weight: 700;
}

/* No results message */
.no-results {
    text-align: center;
    padding: 60px 20px;
    display: none;
}
.no-results.show {
    display: block;
}
.no-results .no-results-icon {
    width: 80px;
    height: 80px;
    background: rgba(32, 82, 149, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--secondary);
}
.no-results h5 {
    font-family: "Inter", sans-serif;
    color: var(--primary);
    margin-bottom: 8px;
}
.no-results p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Search results info */
.search-results-info {
    display: none;
    background: rgba(32, 82, 149, 0.06);
    border-left: 3px solid var(--secondary);
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: var(--primary);
}
.search-results-info.show {
    display: flex;
    align-items: center;
    gap: 10px;
}
.search-results-info .clear-search {
    margin-left: auto;
    color: var(--secondary);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}
.search-results-info .clear-search:hover {
    color: var(--accent);
}

/* ===== NEWS SECTION ===== */
.news-section {
    background: var(--light-bg);
}
.news-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.04);
}
.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.news-card .news-image {
    height: 220px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.news-card .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.news-card:hover .news-image img {
    transform: scale(1.08);
}
.news-card .news-date-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--white);
    border-radius: 12px;
    padding: 8px 14px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    z-index: 2;
}
.news-card .news-date-badge .day {
    font-family: "Inter", sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    display: block;
}
.news-card .news-date-badge .month {
    font-size: 0.68rem;
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
}
.news-card .news-body {
    padding: 24px;
}
.news-card .news-tag {
    display: inline-block;
    background: rgba(32, 82, 149, 0.08);
    color: var(--secondary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.news-card .news-body h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.4;
}
.news-card .news-body p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}
.news-card .news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.news-card .news-author {
    display: flex;
    align-items: center;
    gap: 10px;
}
.news-card .news-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.news-card .news-author span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
}
.news-card .read-more {
    color: var(--secondary);
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}
.news-card .read-more:hover {
    color: var(--accent);
    gap: 10px;
}

/* ===== GALLERY SECTION ===== */
.gallery-section {
    background: var(--white);
}
.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    height: 260px;
}
.gallery-item.tall {
    height: 540px;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.gallery-item:hover img {
    transform: scale(1.1);
}
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 38, 71, 0.8) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 24px;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-overlay h5 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 4px;
}
.gallery-overlay p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin: 0;
}
.gallery-zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    transition: var(--transition);
    z-index: 3;
}
.gallery-item:hover .gallery-zoom-icon {
    transform: translate(-50%, -50%) scale(1);
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: var(--gradient-primary);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(
            circle at 20% 80%,
            rgba(212, 168, 67, 0.15) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 20%,
            rgba(212, 168, 67, 0.1) 0%,
            transparent 50%
        );
}
.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}
.cta-content h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 16px;
}
.cta-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: var(--light-bg);
}
.contact-info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow-sm);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.04);
}
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 28px;
}
.contact-info-item:last-child {
    margin-bottom: 0;
}
.contact-info-item .ci-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: rgba(32, 82, 149, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.1rem;
    transition: var(--transition);
}
.contact-info-item:hover .ci-icon {
    background: var(--gradient-primary);
    color: var(--accent);
}
.contact-info-item h6 {
    font-family: "Inter", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}
.contact-info-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}
.contact-form-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
}
.contact-form-card .form-control,
.contact-form-card .form-select {
    border: 2px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--light-bg);
}
.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(32, 82, 149, 0.1);
    background: var(--white);
}
.contact-form-card label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
}
.btn-submit {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 8px 30px rgba(10, 38, 71, 0.3);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(10, 38, 71, 0.4);
    color: var(--white);
}
.map-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-top: 40px;
}
.map-wrapper iframe {
    width: 100%;
    height: 350px;
    border: none;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}
.footer h5 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}
.footer h5::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}
.footer-about p {
    font-size: 0.88rem;
    line-height: 1.8;
    margin-bottom: 20px;
}
.footer-social {
    display: flex;
    gap: 10px;
}
.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}
.footer-social a:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-3px);
}
.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-links a:hover {
    color: var(--accent);
    padding-left: 6px;
}
.footer-links a i {
    font-size: 0.6rem;
}
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}
.footer-contact-item i {
    color: var(--accent);
    margin-top: 4px;
    min-width: 16px;
}
.footer-contact-item span {
    font-size: 0.88rem;
    line-height: 1.6;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    margin-top: 50px;
}
.footer-bottom p {
    font-size: 0.82rem;
    margin: 0;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 8px 25px rgba(10, 38, 71, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    cursor: pointer;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(10, 38, 71, 0.4);
}

/* ===== MODAL GALLERY STYLES ===== */
.modal-gallery {
    background: rgba(10, 38, 71, 0.97);
    backdrop-filter: blur(20px);
}
.modal-gallery .modal-dialog {
    max-width: 90vw;
    margin: 2vh auto;
}
.modal-gallery .modal-content {
    background: transparent;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.modal-gallery .modal-header {
    background: rgba(10, 38, 71, 0.95);
    border-bottom: 1px solid rgba(212, 168, 67, 0.2);
    padding: 16px 24px;
}
.modal-gallery .modal-title {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
.modal-gallery .modal-title .badge-counter {
    background: var(--gradient-accent);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: "Inter", sans-serif;
}
.modal-gallery .btn-close-modal {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
}
.modal-gallery .btn-close-modal:hover {
    background: var(--accent);
    color: var(--primary);
    transform: rotate(90deg);
}
.modal-gallery .modal-body {
    padding: 0;
    position: relative;
    background: #000;
}
.modal-gallery .modal-image-container {
    position: relative;
    width: 100%;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.modal-gallery .modal-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}
.modal-gallery .modal-image-container img.zoomed {
    cursor: zoom-out;
    transform: scale(1.5);
}
.modal-gallery .modal-image-container img:not(.zoomed) {
    cursor: zoom-in;
}
.modal-gallery .modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    cursor: pointer;
    z-index: 5;
}
.modal-gallery .modal-nav-btn:hover {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.1);
}
.modal-gallery .modal-nav-btn.prev {
    left: 20px;
}
.modal-gallery .modal-nav-btn.next {
    right: 20px;
}
.modal-gallery .modal-footer-info {
    background: rgba(10, 38, 71, 0.95);
    border-top: 1px solid rgba(212, 168, 67, 0.2);
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.modal-gallery .image-caption {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}
.modal-gallery .image-caption i {
    color: var(--accent);
}
.modal-gallery .image-actions {
    display: flex;
    gap: 10px;
}
.modal-gallery .image-actions button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
}
.modal-gallery .image-actions button:hover {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
}
.modal-gallery .thumbnail-strip {
    background: rgba(10, 38, 71, 0.95);
    padding: 12px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.modal-gallery .thumbnail-strip::-webkit-scrollbar {
    height: 4px;
}
.modal-gallery .thumbnail-strip::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 2px;
}
.modal-gallery .thumbnail-item {
    width: 70px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition);
    border: 2px solid transparent;
    flex-shrink: 0;
}
.modal-gallery .thumbnail-item:hover {
    opacity: 0.8;
}
.modal-gallery .thumbnail-item.active {
    opacity: 1;
    border-color: var(--accent);
    transform: scale(1.05);
}
.modal-gallery .thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.modal-image-container img.slide-in {
    animation: slideIn 0.4s ease;
}
@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.modal-image-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--accent);
    font-size: 2rem;
    z-index: 2;
    display: none;
}
.modal-image-loader.show {
    display: block;
}

/* ===== MODAL ALL CATALOG STYLES ===== */
.modal-catalog {
    backdrop-filter: blur(10px);
}
.modal-catalog .modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.modal-catalog .modal-header {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 24px 30px;
}
.modal-catalog .modal-title {
    font-family: "Playfair Display", serif;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}
.modal-catalog .modal-title i {
    color: var(--accent);
}
.modal-catalog .btn-close {
    filter: invert(1) brightness(2);
    opacity: 0.8;
}
.modal-catalog .btn-close:hover {
    opacity: 1;
}
.modal-catalog .modal-body {
    padding: 30px;
    background: var(--light-bg);
    max-height: 75vh;
    overflow-y: auto;
}
.modal-catalog .modal-body::-webkit-scrollbar {
    width: 6px;
}
.modal-catalog .modal-body::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 3px;
}

/* Catalog Filter */
.catalog-filter-wrapper {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.catalog-search-input {
    position: relative;
    margin-bottom: 16px;
}
.catalog-search-input i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.catalog-search-input input {
    width: 100%;
    padding: 12px 18px 12px 48px;
    border: 2px solid rgba(0, 0, 0, 0.06);
    border-radius: 50px;
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--light-bg);
}
.catalog-search-input input:focus {
    outline: none;
    border-color: var(--secondary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(32, 82, 149, 0.1);
}
.catalog-filter-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.filter-tag {
    padding: 6px 18px;
    border-radius: 50px;
    background: var(--light-bg);
    color: var(--text-dark);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}
.filter-tag:hover {
    background: rgba(32, 82, 149, 0.08);
    color: var(--secondary);
}
.filter-tag.active {
    background: var(--gradient-primary);
    color: var(--white);
}
.catalog-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.catalog-stats strong {
    color: var(--primary);
}
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.catalog-grid .book-card {
    animation: fadeInUp 0.4s ease;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition:
        opacity 0.5s,
        visibility 0.5s;
}
.preloader.hide {
    opacity: 0;
    visibility: hidden;
}
.preloader .book-loader {
    width: 60px;
    height: 60px;
    position: relative;
}
.preloader .book-loader::before,
.preloader .book-loader::after {
    content: "";
    position: absolute;
    width: 28px;
    height: 40px;
    background: var(--accent);
    border-radius: 4px;
    top: 10px;
    animation: bookFlip 1.2s ease-in-out infinite;
}
.preloader .book-loader::before {
    left: 2px;
    transform-origin: right center;
}
.preloader .book-loader::after {
    right: 2px;
    transform-origin: left center;
    animation-delay: 0.6s;
}
@keyframes bookFlip {
    0%,
    100% {
        transform: rotateY(0);
    }
    50% {
        transform: rotateY(-30deg);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .hero-image-wrapper {
        margin-top: 50px;
    }
    .hero-stats-card {
        left: 10px;
        bottom: -20px;
    }
    .hero-books-card {
        right: 10px;
    }
    .about-experience-badge {
        right: 10px;
        bottom: -10px;
    }
    .about-features {
        grid-template-columns: 1fr;
    }
    .navbar-collapse {
        background: var(--white);
        padding: 20px;
        border-radius: var(--radius);
        margin-top: 10px;
        box-shadow: var(--shadow-md);
    }
    .modal-gallery .modal-dialog {
        max-width: 95vw;
    }
    .modal-gallery .modal-image-container {
        height: 55vh;
    }
    .modal-gallery .modal-nav-btn {
        width: 46px;
        height: 46px;
        font-size: 1rem;
    }
    .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}
@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 0.95rem;
    }
    .section-padding {
        padding: 60px 0;
    }
    .section-title {
        font-size: 1.7rem;
    }
    .hero-image-card img {
        height: 320px;
    }
    .stat-item .stat-number {
        font-size: 2.4rem;
    }
    .cta-content h2 {
        font-size: 1.8rem;
    }
    .quick-info-item {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
    .top-bar .d-flex {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
    .modal-gallery .modal-dialog {
        max-width: 100vw;
        margin: 0;
    }
    .modal-gallery .modal-content {
        border-radius: 0;
    }
    .modal-gallery .modal-image-container {
        height: 50vh;
    }
    .modal-gallery .modal-nav-btn {
        width: 40px;
        height: 40px;
    }
    .modal-gallery .modal-nav-btn.prev {
        left: 10px;
    }
    .modal-gallery .modal-nav-btn.next {
        right: 10px;
    }
    .modal-gallery .modal-footer-info {
        flex-direction: column;
        text-align: center;
    }
    .modal-gallery .thumbnail-item {
        width: 55px;
        height: 40px;
    }
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .modal-catalog .modal-body {
        padding: 20px;
    }
}
@media (max-width: 575.98px) {
    .hero-buttons {
        flex-direction: column;
    }
    .hero-buttons .btn-hero-primary,
    .hero-buttons .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }
    .hero-stats-card {
        position: relative;
        left: auto;
        bottom: auto;
        margin-top: 20px;
    }
    .hero-books-card {
        display: none;
    }
    .catalog-grid {
        grid-template-columns: 1fr 1fr;
    }
}
