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

body {
    font-family: 'Poppins', sans-serif;
    animation: fadeInAnimation ease 1s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

@keyframes fadeInAnimation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
     }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', serif;
}

.navbar-brand {
    font-family: 'Lora', serif;
    font-weight: 700;
}

.hero {
    position: relative;
    overflow: hidden;
    color: white;
    padding: 100px 0;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slider-item.active {
    opacity: 1;
}

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

.hero h1 {
    font-size: 4rem;
}

/* Media queries for smaller screens */
@media (max-width: 768px) {
    .hero {
        padding: 80px 0;
        min-height: 40vh;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 60px 0;
        min-height: 30vh;
    }
    .hero h1 {
        font-size: 2rem;
    }
}

.section-title {
    font-family: 'Lora', serif;
    font-weight: 700;
    margin-bottom: 30px;
}

.book-cover {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.book-cover:hover {
    transform: scale(1.05);
}

.blog-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: scale(1.05);
}

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

.navbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 1020 !important;
    width: 100% !important;
    background-color: #f8f9fa !important; /* Ensure background is visible when sticky */
}