@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;800&display=swap');

:root {
    --primary: #4A90E2;
    --secondary: #FFB74D;
    --accent: #81C784;
    --text: #424242;
    --bg: #FAFAFA;
}

body {
    font-family: 'Nunito', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
}

header {
    background: white;
    padding: 1rem 5%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    white-space: nowrap;
}

.logo-slogan {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text);
    font-style: italic;
    letter-spacing: 1.5px;
    margin-top: 4px;
    opacity: 0.7;
    transition: all 0.4s ease;
    animation: fadeSlideIn 1s ease-out;
}

.logo:hover .logo-slogan {
    opacity: 1;
    color: var(--primary);
    transform: translateX(4px);
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 0.7; transform: translateY(0); }
}

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

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: color 0.3s ease;
}

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

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 5%;
    background-color: #E3F2FD;
}

.hero-content {
    max-width: 50%;
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

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

.btn {
    background: var(--secondary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 800;
    transition: background 0.3s ease;
    display: inline-block;
}

.btn:hover {
    background: #F57C00;
}

.hero-img {
    max-width: 45%;
    border-radius: 20px;
}

.section-title {
    text-align: center;
    color: var(--primary);
    margin-top: 4rem;
    font-size: 2rem;
}

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

.card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-top: 5px solid var(--accent);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.1);
}

.card h3 {
    color: var(--primary);
}

footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

/* --- New Professional Additions --- */

.newsletter {
    background-color: var(--primary);
    color: white;
    text-align: center;
    padding: 4rem 5%;
    margin-top: 4rem;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.newsletter input[type="email"] {
    padding: 0.8rem 1.5rem;
    width: 300px;
    border-radius: 25px 0 0 25px;
    border: none;
    outline: none;
    font-family: 'Nunito', sans-serif;
}

.newsletter .btn-subscribe {
    padding: 0.8rem 1.5rem;
    border-radius: 0 25px 25px 0;
    border: none;
    background: var(--secondary);
    color: white;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter .btn-subscribe:hover {
    background: #F57C00;
}

.book-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-top: none;
    border-left: 5px solid var(--secondary);
}

/* --- Attention Grabber Stats Banner --- */

.stats-banner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    background-color: var(--accent);
    color: white;
    padding: 3rem 5%;
    text-align: center;
    gap: 2rem;
}

.stat-item h2 {
    font-size: 3.5rem;
    margin: 0 0 0.5rem 0;
    line-height: 1;
}

.stat-item p {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0;
}

/* --- Mobile Responsiveness --- */

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
}

@media (max-width: 900px) {
    header {
        flex-wrap: wrap;
    }
    
    .logo {
        font-size: 1.1rem;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        width: 100%;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 1rem;
        padding-top: 1rem;
    }

    nav ul.show {
        display: flex;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 5%;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-img {
        max-width: 100%;
        margin-top: 2rem;
    }

    .stat-item h2 {
        font-size: 2.5rem;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .newsletter input[type="email"], .newsletter .btn-subscribe {
        width: 100%;
        max-width: 300px;
        border-radius: 25px;
    }
}