/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

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

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

ul {
    list-style-position: inside;
}

/* Button Styles */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background-color: #5B8DEF;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #4a7de0;
}

.btn-primary .arrow {
    margin-left: 10px;
}

.btn-secondary {
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    font-weight: 500;
    padding: 10px 0;
}

.btn-secondary:hover {
    text-decoration: underline;
}

/* Header */
header {
    background-color: #808080;
    padding: 15px 0;
}

nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 20px;
}

.nav-home {
    font-weight: 500;
    color: white;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 40px 0;
    background-color: white;
}

.hero h1 {
    color: #5B8DEF;
    font-size: 2.5rem;
    font-weight: 600;
}

/* Books Intro Section */
.books-intro {
    padding: 40px 0;
    background-color: white;
}

.books-intro .container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.books-intro .text-content {
    flex: 1;
    min-width: 300px;
}

.books-intro .image-content {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.books-intro h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Why Read Section */
.why-read {
    background-color: white;
    padding: 60px 0;
}

.why-read h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.commitments {
    margin-top: 30px;
}

.commitments h3 {
    margin-bottom: 15px;
}

.commitments ul {
    list-style-type: none;
}

.commitments li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}

.commitments li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #5B8DEF;
}

/* Monthly Selection Section */
.monthly-selection {
    padding: 60px 0;
    background-color: #f0f5ff;
}

.monthly-selection h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.5rem;
}

.book-item {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.book-item img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}

.book-info {
    padding: 20px;
}

.book-info h3 {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1rem;
}

.book-info p {
    font-size: 0.9rem;
}

/* Testimonials Section */
.testimonials {
    padding: 60px 0;
    background-color: white;
}

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

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

.testimonial-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Categories Section */
.categories {
    padding: 60px 0;
    background-color: #f0f5ff;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.category-item {
    background-color: white;
    padding: 20px;
    border-radius: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.category-item:hover {
    transform: translateY(-3px);
}

.expand-icon {
    font-size: 1.5rem;
    font-weight: 300;
}

/* Services Section */
.services {
    padding: 60px 0;
    background-color: white;
}

.services .container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.services-content {
    flex: 1;
    min-width: 300px;
}

.services-image {
    flex: 1;
    min-width: 300px;
}

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

/* Contact Form */
.contact {
    padding: 60px 0;
    background-color: #5B8DEF;
}

form {
    max-width: 800px;
    margin: 0 auto;
}

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

input, textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 30px;
    background-color: white;
    font-family: 'Inter', sans-serif;
}

textarea {
    min-height: 120px;
    resize: vertical;
    border-radius: 20px;
}

.form-submit {
    text-align: right;
    margin-top: 20px;
}

/* Footer */
footer {
    background-color: #f9f9f9;
    padding: 30px 0;
    font-size: 0.9rem;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(128, 128, 128, 0.8);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

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

.cookie-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    margin: 20px;
}

.cookie-content h2 {
    margin-bottom: 15px;
}

.cookie-buttons {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

/* Media Queries */
@media (max-width: 768px) {
    .books-intro .container,
    .services .container {
        flex-direction: column;
    }
    
    .book-item {
        flex-direction: column;
    }
    
    .book-item img {
        max-height: 250px;
    }
    
    footer .container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .cookie-buttons {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .monthly-selection .container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 30px;
    }
    
    .monthly-selection h2 {
        grid-column: 1 / -1;
    }
}

.thank-section {
    padding: 300px 0px;
    text-align: center;
}

.main-section {
    padding: 60px 0px;
}

.main-section h1 {
    text-align: center;
}