/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    font-weight: 600;
}

p {
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: #333;
}

img {
    max-width: 100%;
    height: auto;
}

/* Button Styles */
.btn-orange {
    display: inline-block;
    background-color: #e38b45;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-orange:hover {
    background-color: #d47a33;
}

/* Header */
header {
    background-color: #f5f5f5;
    padding: 20px 0;
}

header .logo {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Hero Section */
.hero {
    background-color: #6b9c51;
    color: white;
    padding: 60px 0;
    border-radius: 20px;
    margin: 20px auto;
    max-width: 1200px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1.logo {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
}

.arrow {
    width: 40px;
    height: auto;
    margin-right: 10px;
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    margin-bottom: 40px;
}

/* Latest Books Section */
.latest-books {
    padding: 60px 0;
    text-align: center;
}

.latest-books h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.latest-books p {
    max-width: 900px;
    margin: 0 auto 40px;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.book-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.book-card:hover {
    transform: translateY(-5px);
}

.book-image {
    height: 200px;
    overflow: hidden;
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-info {
    padding: 20px;
    text-align: left;
}

.book-info h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.book-info p {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Complete Catalog Section */
.complete-catalog {
    padding: 60px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.complete-catalog h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.complete-catalog > p {
    max-width: 900px;
    margin: 0 auto 40px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.catalog-item {
    display: flex;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.catalog-item:hover {
    transform: translateY(-5px);
}

.catalog-image {
    flex: 0 0 120px;
    overflow: hidden;
}

.catalog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-info {
    flex: 1;
    padding: 20px;
    text-align: left;
}

.catalog-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.catalog-info p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.catalog-info .book-description {
    font-size: 0.85rem;
    color: #666;
}

/* Digital Library Section */
.digital-library {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
}

.digital-info {
    flex: 1;
    padding: 40px;
    text-align: left;
}

.digital-info h3 {
    font-size: 1.5rem;
    color: #6b9c51;
    margin-bottom: 20px;
}

.digital-image {
    flex: 1;
    height: 350px;
    overflow: hidden;
}

.digital-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Discounted Books Section */
.discounted-books {
    padding: 60px 0;
    text-align: center;
}

.discounted-books h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.discounted-books > p {
    max-width: 900px;
    margin: 0 auto 40px;
}

.discount-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.discount-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.discount-item:hover {
    transform: translateY(-5px);
}

.discount-image {
    height: 200px;
    overflow: hidden;
}

.discount-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discount-info {
    padding: 20px;
    text-align: left;
}

.discount-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.discount-info p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.discount-info .price {
    font-weight: 600;
    color: #6b9c51;
}

/* Testimonials Section */
.testimonials {
    background-color: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonials h3 {
    font-size: 1.5rem;
    color: #6b9c51;
    margin-bottom: 30px;
    text-align: center;
}

.testimonials-container {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.testimonial-image {
    flex: 0 0 40%;
    overflow: hidden;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.testimonial-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.testimonial-item {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
}

.testimonial-item p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.testimonial-item .author {
    font-weight: 600;
    color: #6b9c51;
    text-align: right;
}

.testimonials .btn-orange {
    display: block;
    max-width: 250px;
    margin: 0 auto;
}

/* Contact Section */
.contact {
    padding: 60px 0;
}

.contact-grid {
    display: flex;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form-container {
    flex: 0 0 60%;
    padding: 40px;
    background-color: #6b9c51;
    color: white;
}

.contact-form-container h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
}

.contact-info {
    flex: 1;
    padding: 40px;
    background-color: #f9f9f9;
}

.contact-info h3 {
    color: #6b9c51;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.contact-info p {
    margin-bottom: 30px;
}

/* Footer */
footer {
    background-color: #6b9c51;
    color: white;
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
}

.footer-logo h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: white;
    margin: 0 10px;
    font-size: 0.9rem;
}

.footer-copyright {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 350px;
    background-color: #6b9c51;
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
}

.cookie-popup.active {
    display: block;
}

.cookie-content h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.cookie-content p {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Responsive Styles */
@media screen and (max-width: 991px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    .digital-library {
        flex-direction: column;
    }
    
    .digital-info {
        order: 2;
    }
    
    .digital-image {
        order: 1;
        height: 250px;
    }
    
    .testimonials-container {
        flex-direction: column;
    }
    
    .testimonial-image {
        height: 250px;
    }
    
    .contact-grid {
        flex-direction: column;
    }
    
    .contact-form-container {
        flex: auto;
    }
}

@media screen and (max-width: 768px) {
    .hero h1.logo {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .books-grid,
    .catalog-grid,
    .discount-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
    
    .catalog-item {
        flex-direction: column;
    }
    
    .catalog-image {
        height: 200px;
    }
    
    .cookie-popup {
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
    }
}

@media screen and (max-width: 480px) {
    .hero {
        padding: 40px 0;
    }
    
    .hero h1.logo {
        font-size: 1.8rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .btn-orange {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .latest-books h2,
    .complete-catalog h2,
    .discounted-books h2 {
        font-size: 1.8rem;
    }
    
    .footer-links a {
        display: block;
        margin: 10px 0;
    }
}