/* Blog-specific CSS for GrassID */

/* Enhanced Hero Section */
.hero-content-grid {
    margin-top: 2.5rem;
    display: grid;
    gap: 2rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding: 1.5rem 0;
}

.hero-stats .stat-item {
    text-align: center;
}

.hero-stats .stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: #2d5016;
    margin-bottom: 0.3rem;
}

.hero-stats .stat-label {
    display: block;
    font-size: 0.95rem;
    color: #666;
    font-weight: 400;
}

.hero-topics {
    text-align: center;
    padding: 2rem 0;
}

.hero-topics h2 {
    color: #2d5016;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.topic-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.topic-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
    border-radius: 12px;
    color: #4CAF50;
    transition: all 0.3s ease;
}

.topic-card:hover .topic-icon {
    background: linear-gradient(135deg, #66BB6A, #4CAF50);
    color: white;
    transform: scale(1.1);
}

.topic-icon svg {
    width: 24px;
    height: 24px;
}

.topic-card span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2d5016;
    text-align: center;
    line-height: 1.2;
}

.hero-search {
    text-align: center;
    padding: 1.5rem 0;
}

.hero-search h3 {
    color: #2d5016;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-search p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.search-suggestions {
    color: #666;
    font-size: 0.95rem;
}

.search-suggestions strong {
    color: #2d5016;
    margin-right: 0.5rem;
    font-weight: 600;
}

.search-suggestions a {
    color: #4CAF50;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.search-suggestions a:hover {
    color: #388E3C;
    border-bottom-color: #388E3C;
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .topics-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-content-grid {
        margin-top: 2rem;
        gap: 1.5rem;
    }

    .hero-stats {
        flex-direction: row;
        gap: 0.5rem;
        padding: 1.5rem 1rem;
        justify-content: space-around;
    }

    .hero-stats .stat-item {
        flex: 1;
    }

    .hero-stats .stat-number {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }

    .hero-stats .stat-label {
        font-size: 0.75rem;
        line-height: 1.2;
    }

    .hero-topics {
        padding: 1.5rem 1rem;
    }

    .hero-topics h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .topic-card {
        padding: 1rem 0.75rem;
    }

    .topic-icon {
        width: 40px;
        height: 40px;
    }

    .topic-icon svg {
        width: 20px;
        height: 20px;
    }

    .topic-card span {
        font-size: 0.85rem;
    }

    .hero-search {
        padding: 1.5rem 1rem;
    }

    .hero-search h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
        margin-top: 0;
    }

    .hero-search p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }

    .search-suggestions {
        font-size: 0.85rem;
        line-height: 1.8;
    }

    .search-suggestions strong {
        display: block;
        margin-bottom: 0.5rem;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .hero-stats .stat-number {
        font-size: 1.3rem;
    }

    .hero-stats .stat-label {
        font-size: 0.7rem;
    }

    .hero-topics h2 {
        font-size: 1.25rem;
    }

    .topic-pill {
        font-size: 0.75rem;
        padding: 0.3rem 0.7rem;
    }
}

/* Blog Grid Layout */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Blog Card Styles */
.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Blog Image Container */
.blog-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 1:1 Aspect Ratio for square images */
    overflow: hidden;
    background: #f5f5f5;
}

.blog-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

/* Category Badge */
.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-green);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

/* Blog Content */
.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    font-size: 1.25rem;
    color: var(--dark-green);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    font-weight: 600;
}

.blog-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Blog Meta */
.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #999;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
}

.blog-meta time {
    color: #666;
}

.read-time {
    background: #f0f0f0;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-weight: 500;
}

/* Featured Articles Section */
.featured-articles {
    padding: 4rem 0;
}

.featured-articles h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-green);
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .featured-articles h2 {
        font-size: 2rem;
    }

    .blog-content h3 {
        font-size: 1.1rem;
    }

    .blog-category {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }
}

/* Large screens - 3 columns */
@media (min-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

/* Breadcrumb - Removed */
.breadcrumb {
    display: none;
}

/* Newsletter Section - if needed later */
.newsletter-signup {
    background: #f8f8f8;
    padding: 3rem 0;
    text-align: center;
}

.newsletter-content h2 {
    color: var(--dark-green);
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 2rem auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.newsletter-disclaimer {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
}