/* Stories & Articles page styles - mobile-first approach */

/* Section styles */
.section {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section h2 {
    color: #4a7c3f;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #5a8c4f;
    padding-bottom: 0.5rem;
}

.section h3 {
    color: #2554C7;
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Article grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.article-card {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 6px;
    border-left: 4px solid #4a7c3f;
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.article-card h4 {
    color: #4a7c3f;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.article-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.article-card a {
    color: #2554C7;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.article-card a:hover {
    text-decoration: underline;
}

/* Resource list */
.resource-list {
    list-style: none;
    margin-top: 1rem;
}

.resource-list li {
    background: #f8f9fa;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 6px;
    border-left: 3px solid #2554C7;
}

.resource-list a {
    color: #2554C7;
    text-decoration: none;
    font-weight: 600;
}

.resource-list a:hover {
    text-decoration: underline;
}

.resource-list .description {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Highlight box */
.highlight-box {
    background: linear-gradient(135deg, #e7f3ff 0%, #f0f8ff 100%);
    border: 2px solid #2554C7;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.highlight-box h3 {
    color: #2554C7;
    margin-top: 0;
}

/* Tags */
.tag {
    display: inline-block;
    background-color: #5a8c4f;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 1rem;
    text-align: center;
    margin-top: 3rem;
}

footer a {
    color: white;
    text-decoration: none;
}

/* Tablet responsive styles */
@media (max-width: 768px) {
    .article-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 1.5rem;
    }

    .highlight-box {
        padding: 1rem;
    }
}

/* Mobile-specific styles */
@media (max-width: 480px) {
    .section {
        padding: 1rem;
    }

    .section h2 {
        font-size: 1.3rem;
    }

    .section h3 {
        font-size: 1.1rem;
    }

    .article-card {
        padding: 1rem;
    }

    .resource-list li {
        padding: 0.75rem;
    }

    .highlight-box {
        padding: 0.75rem;
    }
}
