/* General Styles */
body {
    color: #012e4a;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Navbar Styles (keeping your existing navbar styles) */
.navbar-brand img {
    width: 50px;
    height: 70px;
}

.w-100 .borrow-book .btn-primary{
    background: linear-gradient(135deg, #036280, #012e4a);
    color: white;
    font-weight: 500;
}

.navbar .borrow-book .btn-primary{
    background: linear-gradient(135deg, #036280, #012e4a);
    color: white;
    font-weight: 500;
}

#mainNavbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: top 0.3s ease-in-out;
}

.navbar.navbar-position.bg-light {
    background-color: white !important;
}

.navbar-nav .nav-link:hover {
    color: orange !important;
}

.dropdown-menu {
    border-radius: 0 !important;
    box-shadow: none;
    border: 1px solid #dee2e6;
    padding: 0.25rem 0;
}

@media (min-width: 992px) {
    .dropdown-menu {
        opacity: 0;
        transform: translateY(10px);
        visibility: hidden;
        transition: opacity 0.3s ease, transform 0.3s ease;
        display: block;
        pointer-events: none;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }

    .nav-item.dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}

.dropdown-item:not(:last-child)::after {
    content: none;
    display: block;
    height: 1px;
    background-color: #dee2e6;
    margin: 0.5rem 0;
    opacity: 0.6;
}

.dropdown-item {
    padding: 1.25rem 1.75rem;
    font-weight: 500;
    display: block;
    width: 100%;
    color: #374151;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-radius: 0;
    margin: 0;
    background-color: transparent;
    position: relative;
}

.dropdown-menu {
    padding: 0 !important;
}

.dropdown-item:hover {
    background-color: #036280;
    color: white;
}

.swiper p{
    font-size: 0.75rem !important;
}
.navbar-nav .nav-link {
    font-weight: 400;
    position: relative;
    transition: all 0.3s ease;
}

.dropdown-divider {
    margin: 0 !important;
    padding: 0 !important;
}
button.btn.btn-primary {
    background-color: #012e4a;
    transition: all 0.3s ease;
}

button.btn.btn-primary:hover {
    background-color: #036280;
}

a.btn.btn-primary {
    background-color: #012e4a;
    transition: all 0.3s ease;
}

a.btn.btn-primary:hover {
    background-color: #036280;
}
/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #012e4a 0%, #036280 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.hero-section input,
.hero-section button {
    position: relative;
    z-index: 3;
}

.hero-section table {
    z-index: 2;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="books" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><rect width="20" height="20" fill="none"/><path d="M2 2h16v16H2z" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23books)"/></svg>') repeat;
    opacity: 0.1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Statistics Section */
.stats-section {
    background: linear-gradient(135deg, #012e4a 0%, #036280 100%);
    padding: 60px 0;
    color: white;
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Footer Styles (keeping your existing footer styles) */
.footer-color {
    background-color: #012e4a;
    color: white;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.logo-section {
    margin-bottom: 1rem;
}

.footer-logo {
    width: 70px;
    height: 90px;
}

.footer-text {
    margin-bottom: 1.5rem;
}

.footer-text p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    color: #e8e9ea;
    text-align: justify;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #2c5282;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    background-color: #1a365d;
    color: white;
}

.social-icons i {
    font-size: 18px;
}

.contact-info {
    color: white;
}

.contact-icon {
    font-size: 1.2rem;
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.contact-value {
    font-weight: bold;
    font-size: 1.1rem;
}

.profile-container {
    margin-top: 3rem;
    margin-bottom: 3rem;
    background-color: #ffffff; /* putih bersih */
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* soft shadow */
}


/* Responsive Design */
@media (max-width: 1200px) {
    .custom-control-prev {
        left: -25px;
    }
    
    .custom-control-next {
        right: -25px;
    }
}

@media (max-width: 992px) {
    .custom-control-prev,
    .custom-control-next {
        display: none;
    }
    
    .book-carousel {
        padding: 30px 20px;
    }
    
    .book-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-content {
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

