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

:root {
    --primary-color: #4A90E2;
    --secondary-color: #F39C12;
    --accent-color: #E74C3C;
    --text-color: #333;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --gray: #6C757D;
}

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

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

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2C3E50;
    color: white;
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-content p {
    flex: 1;
    margin: 0;
    min-width: 300px;
}

.cookie-content a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.btn-accept, .btn-decline {
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-accept {
    background: var(--secondary-color);
    color: white;
}

.btn-accept:hover {
    background: #E67E22;
}

.btn-decline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-decline:hover {
    background: white;
    color: #2C3E50;
}

/* Header & Navigation */
header {
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

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

.logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
}

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

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), #357ABD);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.cta-button {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Age Groups Section */
.age-groups {
    padding: 80px 0;
    background: var(--light-bg);
}

.age-groups h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-intro {
    text-align: center;
    color: var(--gray);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.age-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    text-align: center;
}

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

.age-card h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.age-card p {
    color: var(--gray);
    margin-bottom: 1rem;
}

.age-card ul {
    list-style: none;
    text-align: left;
    margin: 1.5rem 0;
}

.age-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.age-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.btn-secondary {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: #357ABD;
}

/* Resources Section */
.resources {
    padding: 80px 0;
}

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

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

.resource-item {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    transition: box-shadow 0.3s;
}

.resource-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.resource-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.resource-item p {
    color: var(--gray);
    margin-bottom: 1rem;
}

.learn-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.learn-more:hover {
    color: #E67E22;
}

/* Recommended Books Section */
.recommended-books {
    padding: 80px 0;
    background: var(--light-bg);
}

.recommended-books h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.disclosure {
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 3rem;
    font-style: italic;
}

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

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

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

.book-image-placeholder {
    background: #E9ECEF;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
}

.book-card h3 {
    padding: 1rem;
    color: var(--primary-color);
}

.age-tag {
    background: var(--secondary-color);
    color: white;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin: 0 1rem;
}

.book-description {
    padding: 0 1rem 1rem;
    color: var(--gray);
}

.btn-buy {
    display: block;
    background: var(--accent-color);
    color: white;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
    margin: 1rem;
    border-radius: 5px;
}

.btn-buy:hover {
    background: #C0392B;
}

/* Blog Section */
.blog-section {
    padding: 80px 0;
}

.blog-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

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

.blog-card {
    background: white;
    border: 1px solid #E9ECEF;
    padding: 2rem;
    border-radius: 10px;
    transition: box-shadow 0.3s;
}

.blog-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.blog-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.post-date {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.read-more:hover {
    color: #E67E22;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.contact-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-section > .container > p {
    text-align: center;
    color: var(--gray);
    margin-bottom: 3rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #DDD;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-submit {
    width: 100%;
    background: var(--primary-color);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #357ABD;
}

/* Footer */
footer {
    background: #2C3E50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #BDC3C7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .age-groups h2,
    .resources h2,
    .recommended-books h2,
    .blog-section h2,
    .contact-section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .cookie-content {
        flex-direction: column;
    }
    
    .btn-accept, .btn-decline {
        width: 100%;
    }
}
