@import url('https://fonts.googleapis.com/css2?family=Passions+Conflict&display=swap');
:root {
    --primary: #3a8b9b;
    --primary-light: #5ba9b8;
    --primary-dark: #2a6b7b;
    --accent: #ff6b6b;
    --accent-dark: #dc5858;
    --secondary: #f0f5f6;
    --text: #333;
    --text-light: #666;
    --white: #fff;
    --max-width: 1200px;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Lora', serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-dark);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Lora', serif;
    font-size: 1.8rem;
    color: var(--primary);
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

/* Hero Section */
.hero {
    position: relative;
    height: 500px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/herobg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Themes Section */
.themes {
    padding: 4rem 0;
    text-align: center;
}

.themes h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.award-badge img{
    max-width: 150px;
    margin: 2rem auto;
    border-radius: 50%; 
    object-fit: cover;
}

/* Books Section */
.books {
    padding: 4rem 0;
    background-color: var(--secondary);
}

.books-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 6rem;
    max-width: 80%;
    margin: 0 auto;
}

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

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

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

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

.book-card:hover .book-image img {
    transform: scale(1.05);
}

.book-info {
    padding: 1.5rem;
}

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

.book-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.book-number {
    font-size: 0.8rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

.sec-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s;
}

.sec-btn:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

/* Testimonial Section */
.testimonial {
    padding: 4rem 0;
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
}

.testimonial-content {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial p {
    font-size: 1.5rem;
    font-style: italic;
    font-family: 'Lora', serif;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-size: 0.9rem;
}

/* News Section */
.news {
    padding: 4rem 0;
}

.news h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.news-list {
    list-style: none;
}

.news-item {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.news-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 1.2rem;
}

/* About Section */
.about {
    padding: 4rem 0;
    background-color: var(--secondary);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); */
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.about-content h2 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* CTA Section */
.cta {
    padding: 4rem 0;
    text-align: center;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--primary);
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.cta-card {
    padding: 2rem;
    border-radius: 8px;
    background-color: var(--white);
    border: solid 0.5px var(--primary);
    transition: transform 0.3s;
}

.cta-card:hover {
    transform: translateY(-10px);
}

.cta-header {
    color: var(--primary);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 1.2rem;
}

/* Newsletter Section */
.newsletter {
    padding: 4rem 0;
    background-color: var(--secondary);
}

.newsletter-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.newsletter-content h2 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.newsletter-form {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
}

.newsletter-image {
    text-align: center;
}

.newsletter-image img {
    max-width: 40%;
    height: auto;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.checkbox-group input {
    margin-right: 10px;
    margin-top: 5px;
}

.checkbox-group label {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--white);
    margin: 0 1rem;
    font-size: 0.9rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-container,
    .newsletter-container {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: 1;
    }
    
    .about-content {
        order: 2;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0;
    }
    
        .header-container {
        padding: 0 1rem;
    }


    .testimonial {
        padding: 4rem 1rem;
    }
    nav ul {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 0.5rem 0;
        text-align: center;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }

    .cta {
        padding: 4rem 3rem;
    }

    .about {
        padding: 4rem 3rem;
    }

    .about-image img {
        width: 50% !important;
        height: auto;
        float: left !important;
        display: block;
    }
    
    .book-card {
        width: 100%;
    }
}

/* Modal Styles */
/* Add to your existing CSS */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background: var(--white);
    margin: 2rem auto;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-form .form-group {
    margin-bottom: 1rem;
}

.modal-form input,
.modal-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.modal-form textarea {
    resize: vertical;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 1rem;
    z-index: 1000;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
}

.cookie-content .btn {
    white-space: nowrap;
    padding: 0.8rem 1.5rem;
    background: white;
    color: black;
    width: 100%;
    max-width: 200px;
}

/* Analytics cards mobile optimization */
.analytics-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.visitor-entry {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.visitor-entry div {
    margin-bottom: 0.5rem;
    word-break: break-word;
}

/* Add responsive breakpoints */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1rem 0.5rem;
    }
    
    .analytics-card {
        padding: 1rem;
    }
    
    .visitor-entry {
        font-size: 0.8rem;
    }
}

@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .cookie-content .btn {
        width: auto;
    }
}

.visitor-entry:last-child {
    border-bottom: none;
}
