﻿/* =========================================
   BlueGrammar Brand Colors
   ========================================= */
:root {
    --bg-h1: #ce434b;
    --bg-h2: #065fd0;
    --bg-h3: #ce434b;
    --bg-header: #ddf1fe;
    --bg-button: #f7d8da;
}


/* =========================================
   BlueGrammar Homepage
   Lightweight & Fast
   ========================================= */

.bluegrammar-home {
    color: #263238;
    background: #ffffff;
}


/* ---------- Hero ---------- */

.hero-section {
    padding: 70px 20px;
    background: var(--bg-header);
    border-bottom: 1px solid #c9e5f7;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
}

    .hero-content h1 {
        margin-bottom: 18px;
        font-size: 46px;
        font-weight: 700;
        line-height: 1.15;
        color: var(--bg-h1);
    }

    .hero-content p {
        max-width: 720px;
        margin: 0 auto 28px;
        font-size: 19px;
        line-height: 1.7;
        color: #455a64;
    }

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

    .hero-buttons .btn {
        padding: 11px 24px;
        border-radius: 6px;
        font-weight: 600;
        background: var(--bg-button);
        color: var(--bg-h1);
        border: 1px solid #edbcc0;
    }

        .hero-buttons .btn:hover {
            background: #f2c9cc;
        }


/* ---------- General Sections ---------- */

.learning-section,
.featured-section,
.cta-section {
    padding: 60px 20px;
}

.section-heading {
    max-width: 750px;
    margin: 0 auto 35px;
}

    .section-heading h2 {
        margin-bottom: 10px;
        font-size: 32px;
        font-weight: 700;
        color: var(--bg-h2);
    }

    .section-heading p {
        margin: 0;
        color: #607d8b;
        font-size: 16px;
        line-height: 1.7;
    }


/* ---------- Learning Cards ---------- */

.learning-card {
    height: 100%;
    padding: 28px 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

    .learning-card h3 {
        margin-bottom: 12px;
        font-size: 23px;
        color: var(--bg-h3);
    }

    .learning-card p {
        margin-bottom: 18px;
        color: #546e7a;
        line-height: 1.7;
    }

    .learning-card a {
        color: var(--bg-h2);
        font-weight: 600;
        text-decoration: none;
    }

        .learning-card a:hover {
            text-decoration: underline;
        }


/* ---------- Popular Topics ---------- */

.featured-section {
    background: #f8fbfe;
}

.topic-list {
    max-width: 950px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.topic-item {
    display: block;
    padding: 18px 15px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #cfe3f5;
    border-radius: 8px;
    color: var(--bg-h2);
    font-weight: 600;
    text-decoration: none;
}

    .topic-item:hover {
        background: var(--bg-header);
        border-color: #9fcbe8;
    }


/* ---------- Call To Action ---------- */

.cta-section {
    background: var(--bg-header);
    color: #263238;
}

    .cta-section h2 {
        margin-bottom: 12px;
        font-size: 31px;
        color: var(--bg-h2);
    }

    .cta-section p {
        max-width: 650px;
        margin: 0 auto 24px;
        line-height: 1.7;
    }

    .cta-section .btn {
        background: var(--bg-button);
        color: var(--bg-h1);
        border: 1px solid #edbcc0;
        padding: 11px 25px;
        border-radius: 6px;
        font-weight: 600;
    }

        .cta-section .btn:hover {
            background: #f2c9cc;
        }


/* ---------- Mobile ---------- */

@media (max-width: 767px) {

    .hero-section {
        padding: 50px 18px;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-content p {
        font-size: 17px;
    }

    .learning-section,
    .featured-section,
    .cta-section {
        padding: 45px 18px;
    }

    .section-heading h2 {
        font-size: 27px;
    }

    .topic-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {

    .hero-content h1 {
        font-size: 30px;
    }

    .topic-list {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

        .hero-buttons .btn {
            width: 100%;
        }
}
