/* Home Page Styles */

.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.section-title {
    font-family: 'Merriweather', serif;
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #f8f9fa;
    margin-top: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.01em;
}

.section-title:first-child {
    margin-top: 0;
}

.section-subtitle {
    color: rgba(248, 249, 250, 0.85);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

/* Subject Cards */
.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.subject-card {
    background: white;
    border-radius: 8px;
    padding: 1.75rem;
    text-decoration: none;
    color: inherit;
    border: 2px solid #e2e8f0;
    transition: all 0.2s;
}

.subject-card:hover {
    border-color: #37516f;
    box-shadow: 0 4px 12px rgba(55, 81, 111, 0.2);
}

.subject-icon {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.icon-algebra { background: #e8eef4; color: #37516f; }
.icon-geometry { background: #fef5e7; color: #b7791f; }
.icon-calculus { background: #f3e8ff; color: #6b46c1; }
.icon-trig { background: #fce7f3; color: #b83280; }
.icon-stats { background: #e6f7ed; color: #2f855a; }
.icon-calc { background: #fee; color: #c53030; }

.subject-card h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a202c;
    letter-spacing: -0.01em;
}

.subject-card p {
    color: #718096;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Recent Questions */
.questions-section {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 3rem;
    margin-top: 2rem;
}

.questions-grid {
    background: white;
    border-radius: 8px;
    padding: 2.5rem;
}

.questions-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.questions-grid li {
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 2px solid #e2e8f0;
}

.questions-grid li:last-child {
    margin-bottom: 0;
}

.questions-grid li a {
    text-decoration: none;
    color: #37516f;
    font-size: 0.95rem;
    line-height: 1.5;
}

.questions-grid li a:hover {
    text-decoration: underline;
}

.questions-grid li small {
    display: block;
    font-size: 0.8rem;
    color: #a0aec0;
    margin-top: 0.25rem;
    font-style: normal;
}

/* Popular Lessons */
.popular-section {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 3rem;
    margin-top: 2rem;
}

.popular-lessons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.lesson-link {
    padding: 0.625rem 1.25rem;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    text-decoration: none;
    color: #37516f;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
    background: white;
}

.lesson-link:hover {
    background: #e8eef4;
    border-color: #37516f;
}

/* Mobile */
@media (max-width: 768px) {
    .home-container {
        padding: 2rem 1.5rem 3rem;
    }
    
    .subject-grid {
        grid-template-columns: 1fr;
    }
    
    .questions-grid {
        grid-template-columns: 1fr;
    }
}