:root {
    --primary-color: #2b6cb0;
    --secondary-color: #f7fafc;
    --accent-color: #edf2f7;
    --text-color: #333;
    --light-text: #666;
    --border-radius: 15px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--secondary-color);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px; /* Space for fixed navbar */
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: #1a4d8c;
}

img {
    max-width: 100%;
    height: auto;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 25px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(43, 108, 176, 0.3);
}

.btn-primary:hover {
    background-color: #1a4d8c;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(43, 108, 176, 0.4);
    color: white;
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.btn-sm {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* Form Styles */
.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 12px 15px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(43, 108, 176, 0.25);
    outline: none;
}

/* Navbar Styles */
.navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 15px 0;
    transition: var(--transition);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    margin-right: 10px;
    width: 40px;
    height: 40px;
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: var(--transition);
    padding: 8px 0 !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.navbar-toggler {
    border: none;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-nav .nav-link {
    text-align: center;
}

/* Hero Section - PERUBAHAN UTAMA */
.hero {
    position: relative;
    height: 100vh; /* Full viewport height */
    min-height: 600px; /* Minimum height for smaller screens */
    display: flex;
    align-items: center;
    justify-content: center; /* Center content horizontally */
    color: white;
    overflow: hidden;
    margin-top: -80px; /* Offset for fixed navbar */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure image covers the entire area */
    object-position: center; /* Center the image */
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 2.5rem 3rem; /* Increased padding */
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text readability */
    border-radius: 15px;
    backdrop-filter: blur(5px); /* Add blur effect for better readability */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* Add shadow for depth */
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.hero .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Add shadow to button */
}

/* Section Styles */
.section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #63b3ed);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-title p.lead {
    font-size: 1.2rem;
    color: var(--light-text);
    max-width: 700px;
    margin: 20px auto 0;
}

/* Card Styles */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    overflow: hidden;
    background-color: white;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.card-text {
    color: var(--light-text);
    font-size: 1rem;
    margin-bottom: 20px;
    flex: 1;
}

/* About Section Styles */
.about-image-container {
    position: relative;
    margin-bottom: 70px; /* Space for the slogan box */
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-slogan {
    position: absolute;
    bottom: -35px; /* Half of the slogan box height */
    left: 0;
    width: 80%;
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.slogan-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Gallery Styles */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    color: white;
}

.gallery-info h5 {
    margin-bottom: 5px;
    font-weight: 600;
}

.gallery-info p {
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Katalog Buku Styles */
.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(43, 108, 176, 0.3);
}

.book-card {
    margin-bottom: 30px;
}

.book-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Profil Styles */
.profil-content {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--box-shadow);
}

.profil-content h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
}

.profil-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 25px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.profil-content h3:first-child {
    margin-top: 0;
}

/* Kegiatan Styles */
.kegiatan-item {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.kegiatan-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.kegiatan-date {
    background: linear-gradient(135deg, var(--primary-color), #63b3ed);
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    min-width: 80px;
    margin-right: 25px;
    box-shadow: 0 5px 15px rgba(43, 108, 176, 0.3);
}

.kegiatan-date .day {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.kegiatan-date .month {
    font-size: 0.9rem;
    margin-top: 5px;
    opacity: 0.9;
}

.kegiatan-content {
    flex: 1;
}

.kegiatan-content h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.kegiatan-meta {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Artikel Styles */
.artikel-item {
    margin-bottom: 30px;
}

.artikel-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    transition: var(--transition);
}

.artikel-item:hover .artikel-img {
    transform: scale(1.03);
}

.artikel-meta {
    display: flex;
    align-items: center;
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.artikel-meta i {
    margin-right: 8px;
    color: var(--primary-color);
}

.artikel-meta span {
    margin-right: 20px;
    margin-bottom: 5px;
}

/* Detail Pages Styles */
.detail-header {
    background: linear-gradient(135deg, var(--primary-color), #63b3ed);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: -80px; /* Offset for fixed navbar */
    padding-top: 160px; /* Extra space for fixed navbar */
}

.detail-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0.2) 100%);
}

.detail-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.detail-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.detail-content {
    padding: 60px 0;
}

.detail-content h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.detail-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.related-item {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.related-item h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.related-item p {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Contact Styles */
.contact-info {
    margin-bottom: 30px;
}

.contact-icon {
    flex-shrink: 0;
}

.map-container {
    position: relative;
    overflow: hidden;
    height: 450px;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Testimonial Styles */
.testimonial-avatar {
    font-size: 1.2rem;
    font-weight: 700;
}

/* Stat Styles */
.stat-icon {
    font-size: 1.2rem;
}

/* CTA Section Styles */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), #63b3ed);
    box-shadow: var(--box-shadow);
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #1a365d, #2c5282);
    color: white;
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/pattern.png') repeat;
    opacity: 0.05;
}

footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 15px;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #63b3ed;
    border-radius: 2px;
}

footer p, footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
    transition: var(--transition);
}

footer a:hover {
    color: white;
    transform: translateX(5px);
}

footer .social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: var(--transition);
}

footer .social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

footer .copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Modal Styles */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), #63b3ed);
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    border: none;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-body {
    padding: 30px;
}

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 20px;
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .section-title h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    body {
        padding-top: 70px;
    }
    
    .navbar {
        padding: 10px 0;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .navbar-brand img {
        width: 35px;
        height: 35px;
    }
    
    .nav-link {
        margin: 5px 0;
    }
    
    .hero {
        height: 80vh; /* Adjust height for tablet */
        min-height: 500px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .section-title p.lead {
        font-size: 1.1rem;
    }
    
    .detail-header {
        padding-top: 140px;
    }
    
    .detail-header h1 {
        font-size: 2.2rem;
    }
    
    .kegiatan-item {
        flex-direction: column;
        text-align: center;
    }
    
    .kegiatan-date {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .profil-content {
        padding: 30px;
    }
    
    /* About Section Responsive */
    .about-image-container {
        margin-bottom: 60px;
    }
    
    .about-slogan {
        bottom: -30px;
        width: 90%;
        left: 5%;
        padding: 15px;
    }
    
    .slogan-image {
        width: 50px;
        height: 50px;
    }
    
    .about-slogan h4 {
        font-size: 1.1rem;
    }
    
    .about-slogan p {
        font-size: 0.9rem;
    }
    
    .order-lg-1.order-2 {
        margin-top: 30px;
    }
    
    .order-lg-2.order-1 {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    .navbar {
        padding: 8px 0;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-brand img {
        width: 30px;
        height: 30px;
    }
    
    .hero {
        height: 70vh; /* Adjust height for mobile */
        min-height: 500px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-content {
        padding: 1.5rem;
        margin: 1rem;
        width: 90%;
    }
    
    .btn-primary {
        padding: 10px 25px;
        font-size: 1rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .section-title h2::after {
        width: 50px;
        bottom: -10px;
    }
    
    .section-title p.lead {
        font-size: 1rem;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .detail-header {
        padding: 60px 0;
        padding-top: 120px;
    }
    
    .detail-header h1 {
        font-size: 1.8rem;
    }
    
    .detail-header p {
        font-size: 1rem;
    }
    
    .detail-content {
        padding: 40px 0;
    }
    
    .detail-content h3 {
        font-size: 1.5rem;
    }
    
    .profil-content {
        padding: 20px;
    }
    
    .profil-content h3 {
        font-size: 1.3rem;
    }
    
    .kegiatan-content h4 {
        font-size: 1.2rem;
    }
    
    .filter-btn {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
    
    footer {
        padding: 40px 0 20px;
    }
    
    footer h5 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    footer .copyright {
        padding-top: 20px;
        margin-top: 20px;
        font-size: 0.8rem;
    }
    
    /* About Section Responsive */
    .about-image-container {
        margin-bottom: 50px;
    }
    
    .about-slogan {
        bottom: -25px;
        width: 95%;
        left: 2.5%;
        padding: 12px;
    }
    
    .slogan-image {
        width: 45px;
        height: 45px;
    }
    
    .about-slogan h4 {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    
    .about-slogan p {
        font-size: 0.8rem;
        margin-bottom: 0;
    }
    
    .stat-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
    }
    
    .stat-icon i {
        font-size: 1rem !important;
    }
    
    .stat-icon + div h4 {
        font-size: 1.2rem;
    }
    
    .stat-icon + div p {
        font-size: 0.9rem;
    }
    
    .order-lg-1.order-2 {
        margin-top: 20px;
    }
    
    .order-lg-2.order-1 {
        margin-bottom: 15px;
    }
    
    /* Gallery Responsive */
    .gallery-item {
        height: 200px;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 55px;
    }
    
    .navbar {
        padding: 5px 0;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-brand img {
        width: 25px;
        height: 25px;
    }
    
    .hero {
        height: 60vh; /* Adjust height for small mobile */
        min-height: 400px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .hero-content {
        padding: 1rem;
        margin: 0.5rem;
        width: 95%;
    }
    
    .btn-primary {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
    
    .section-title h2::after {
        width: 40px;
        bottom: -8px;
    }
    
    .section-title p.lead {
        font-size: 0.9rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .card-text {
        font-size: 0.9rem;
    }
    
    .detail-header {
        padding: 50px 0;
        padding-top: 110px;
    }
    
    .detail-header h1 {
        font-size: 1.6rem;
    }
    
    .detail-header p {
        font-size: 0.9rem;
    }
    
    .detail-content {
        padding: 30px 0;
    }
    
    .detail-content h3 {
        font-size: 1.3rem;
    }
    
    .profil-content {
        padding: 15px;
    }
    
    .profil-content h3 {
        font-size: 1.2rem;
        padding-left: 15px;
    }
    
    .profil-content h3::before {
        width: 4px;
        height: 20px;
    }
    
    .kegiatan-item {
        padding: 20px;
    }
    
    .kegiatan-date {
        min-width: 70px;
        padding: 12px;
    }
    
    .kegiatan-date .day {
        font-size: 1.5rem;
    }
    
    .kegiatan-content h4 {
        font-size: 1.1rem;
    }
    
    .filter-btn {
        padding: 5px 12px;
        font-size: 0.8rem;
    }
    
    .btn-sm {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    footer {
        padding: 30px 0 15px;
    }
    
    footer h5 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    footer p, footer a {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    footer .social-icons a {
        width: 35px;
        height: 35px;
        line-height: 35px;
        margin-right: 8px;
    }
    
    footer .copyright {
        padding-top: 15px;
        margin-top: 15px;
        font-size: 0.7rem;
    }
    
    .map-container {
        height: 300px;
    }
    
    /* About Section Responsive */
    .about-image-container {
        margin-bottom: 40px;
    }
    
    .about-slogan {
        bottom: -20px;
        width: 100%;
        left: 0;
        border-radius: 15px 15px 0 0;
        padding: 10px;
    }
    
    .slogan-image {
        width: 40px;
        height: 40px;
    }
    
    .about-slogan h4 {
        font-size: 0.9rem;
        margin-bottom: 3px;
    }
    
    .about-slogan p {
        font-size: 0.7rem;
        margin-bottom: 0;
    }
    
    .about-slogan .col-8 {
        width: 70%;
    }
    
    .about-slogan .col-4 {
        width: 30%;
    }
    
    .stat-icon {
        width: 35px !important;
        height: 35px !important;
        font-size: 0.9rem !important;
    }
    
    .stat-icon i {
        font-size: 0.9rem !important;
    }
    
    .stat-icon + div h4 {
        font-size: 1.1rem;
    }
    
    .stat-icon + div p {
        font-size: 0.8rem;
    }
    
    .order-lg-1.order-2 {
        margin-top: 15px;
    }
    
    .order-lg-2.order-1 {
        margin-bottom: 10px;
    }
    
    /* Gallery Responsive */
    .gallery-item {
        height: 180px;
    }
    
    .gallery-info h5 {
        font-size: 1rem;
    }
    
    .gallery-info p {
        font-size: 0.8rem;
    }
    
    /* CTA Section Responsive */
    .cta-section {
        padding: 30px 20px;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
    
    .cta-section p.lead {
        font-size: 1rem;
    }
    
    .cta-section .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

/* Additional fixes for mobile */
@media (max-width: 768px) {
    .book-card, .artikel-item {
        margin-bottom: 20px;
    }
    
    .related-item {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .contact-info .d-flex {
        margin-bottom: 20px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-light {
    background-color: var(--accent-color) !important;
}

.rounded {
    border-radius: var(--border-radius) !important;
}

.shadow {
    box-shadow: var(--box-shadow) !important;
}

.shadow-lg {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.pt-4 {
    padding-top: 1.5rem !important;
}

.pb-4 {
    padding-bottom: 1.5rem !important;
}