.hero {
    height: 50vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/quallip\ web\ banner.jpg') no-repeat center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s;
}
/* Full-Screen Hero Section */
.hero-section {
    position: relative;
    height: 50vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;  /* Ensure the video covers the entire screen */
    z-index: -1;  /* Place the video behind other elements */
}

/* Overlay */
.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for text visibility */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Content Inside Hero Section */
.hero-content {
    color: white;
    padding: 0 30px;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
    animation: fadeInUp 1.5s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 2s ease-out;
    animation-delay: 0.5s;
}

.hero-btn {
    padding: 15px 30px;
    font-size: 1.2rem;
    background-color: #28a745;
    border-radius: 50px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
    transition: background-color 0.3s ease;
}

.hero-btn:hover {
    background-color: #218838;
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2rem;
    opacity: 0;
    animation: fadeInUp 2s ease-out;
    animation-delay: 2s;
    animation-fill-mode: forwards;
}

.scroll-indicator i {
    animation: bounce 1.5s infinite;
}

/* Fade-in and slide-up animation */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bounce Effect for Scroll Indicator */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}
/* Book Store Section */




section {
    max-width: 1200px;
    margin: 0 auto;
}

h2.font-weight-bold {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
}

.books {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    justify-items: center;
}

.book {
    position: relative;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

.book:hover {
    transform: translateY(-10px);
}

.book img {
    max-height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.book p {
    font-size: 0.9rem;
    color: #333;
    margin-top: 10px;
    font-weight: 500;
}

/* Hover effect on book */
.book:hover img {
    transform: scale(1.1);
}

.book-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #00b98e;
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    h2.font-weight-bold {
        font-size: 2rem;
    }

    .books {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header .col-md-6 {
        padding: 20px;
    }

    h1.display-4 {
        font-size: 2.5rem;
    }

    .books {
        grid-template-columns: repeat(2, 1fr);
    }

    .book img {
        max-height: 180px;
    }

    .book-price {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    h1.display-4 {
        font-size: 2rem;
    }

    .books {
        grid-template-columns: 1fr;
    }

    .book img {
        max-height: 160px;
    }
}
/* Global Styles */


h2 {
    font-size: 2rem;
    color: #2C3E50;
    font-weight: bold;
}

.book-box {
    display: block;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    height: 470px; /* Increased height for more vertical space */
    width: 315px; /* Decreased width for narrower boxes */
}

.book-box:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.book-box img {
    width: 100%;
    height: 400px; /* Increased height for images */
    object-fit: cover; /* Ensure the image fits within the defined height */
    border-radius: 10px;
}

.book-box p {
    font-size: 1rem;
    color: #2C3E50;
    font-weight: 600;
    margin-top: 10px;
}

.book-box span {
    font-size: 1.1rem;
    color: #27ae60;
    font-weight: bold;
    margin-top: 5px;
}

.description {
    font-size: 0.9rem;
    color: #777;
    margin-top: 10px;
    font-weight: 400;
    padding: 10 10px;
    display: block;
}



.col {
    flex: 1 0 10%; /* Decreased width to 10% for narrower boxes */
    margin: 0; /* Removed margin around columns */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0; /* Remove default padding */
}

@media (max-width: 1200px) {
    .col {
        flex: 1 0 12%; /* Adjust width to 12% on medium screens */
    }
}

@media (max-width: 992px) {
    .col {
        flex: 1 0 15%; /* Adjust width to 15% on smaller screens */
    }
}

@media (max-width: 768px) {
    .col {
        flex: 1 0 20%; /* Adjust width to 20% on mobile */
    }
}

@media (max-width: 576px) {
    .col {
        flex: 1 0 100%; /* Full width on very small screens */
    }
}
