/* Blog Page Styles */

/* Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 60px 20px;
}

.blog-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.blog-hero__eyebrow {
    display: inline-block;
    color: #4caf50;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-hero__content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #1b5e20;
    line-height: 1.2;
}

.blog-hero__lead {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #2e7d32;
    margin-bottom: 30px;
}

.blog-hero__actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.blog-hero__tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.blog-hero__image-wrapper {
    position: relative;
}

.blog-hero__image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Featured Article Section */
.blog-featured {
    padding: 80px 20px;
    background-color: #fff;
}

.featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    overflow: hidden;
    padding: 0;
}

.featured-article__image-wrapper {
    height: 400px;
    overflow: hidden;
}

.featured-article__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.featured-article:hover .featured-article__image {
    transform: scale(1.05);
}

.featured-article__content {
    padding: 40px;
}

.article-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap;
}

.article-date {
    color: #4caf50;
    font-weight: 600;
}

.article-read-time {
    color: #999;
}

.featured-article__title {
    font-size: 1.8rem;
    color: #1b5e20;
    margin-bottom: 20px;
    line-height: 1.3;
}

.featured-article__excerpt {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.featured-article__actions {
    display: flex;
    gap: 15px;
}

/* Categories Section */
.blog-categories {
    background-color: #f8f9f8;
    padding: 80px 20px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.category-card {
    text-align: center;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(76, 175, 80, 0.15);
}

.category-card__icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 1.3rem;
    color: #1b5e20;
    margin-bottom: 12px;
}

.category-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.category-count {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 15px;
    font-weight: 500;
}

/* Articles Grid Section */
.blog-articles {
    padding: 80px 20px;
    background-color: #fff;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.article-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.article-card__image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.article-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-card__image {
    transform: scale(1.1);
}

.article-card__category {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.8rem;
}

.article-card__content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-card__meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #999;
}

.article-card__date {
    color: #4caf50;
    font-weight: 600;
}

.article-card__title {
    font-size: 1.2rem;
    color: #1b5e20;
    margin-bottom: 12px;
    line-height: 1.4;
    flex-grow: 1;
}

.article-card__excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-card__link {
    color: #4caf50;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.article-card__link:hover {
    color: #1b5e20;
}

.articles-load-more {
    text-align: center;
    margin-top: 50px;
}

/* Expert Tips Section */
.blog-expert-tips {
    background-color: #f8f9f8;
    padding: 80px 20px;
}

.expert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.expert-tip {
    padding: 30px;
    text-align: center;
}

.expert-tip__icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.expert-tip h3 {
    font-size: 1.3rem;
    color: #1b5e20;
    margin-bottom: 12px;
}

.expert-tip > p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.expert-tip__list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.expert-tip__list li {
    color: #555;
    padding: 8px 0;
    border-bottom: 1px solid #e8e8e8;
    font-size: 0.95rem;
}

.expert-tip__list li:last-child {
    border-bottom: none;
}

.expert-tip__list li:before {
    content: "✓ ";
    color: #4caf50;
    font-weight: bold;
    margin-right: 8px;
}

/* Community Section */
.blog-community {
    padding: 80px 20px;
    background-color: #fff;
}

.blog-community__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.community-card {
    padding: 40px;
}

.community-card h2 {
    font-size: 1.8rem;
    color: #1b5e20;
    margin-bottom: 15px;
}

.community-card > p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.community-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group input[type="email"],
.form-group input[type="search"] {
    padding: 12px 15px;
    border: 2px solid #c8e6c9;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #4caf50;
    background-color: #f8fef8;
}

.form-checkbox {
    display: flex;
    align-items: center;
}

.form-checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #666;
    font-size: 0.95rem;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.community-notice {
    color: #999;
    font-size: 0.9rem;
    margin-top: 15px;
}

.community-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.highlight {
    padding: 15px;
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
}

.highlight strong {
    color: #1b5e20;
    display: block;
    margin-bottom: 5px;
}

.highlight p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

/* Archive Section */
.blog-archive {
    background-color: #f8f9f8;
    padding: 80px 20px;
}

.archive-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.search-box {
    padding: 30px;
}

.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-form input[type="search"] {
    flex-grow: 1;
    padding: 12px 15px;
    border: 2px solid #c8e6c9;
    border-radius: 8px;
    font-size: 1rem;
}

.search-form button {
    padding: 12px 25px;
}

.popular-searches {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #e8e8e8;
}

.popular-searches p {
    color: #666;
    margin-bottom: 12px;
    font-weight: 600;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.search-tags a {
    display: inline-block;
    padding: 8px 15px;
    background-color: #c8e6c9;
    color: #1b5e20;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.search-tags a:hover {
    background-color: #a5d6a7;
}

.archive-timeline {
    padding: 30px;
}

.archive-timeline h3 {
    color: #1b5e20;
    margin-bottom: 20px;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-item {
    padding-bottom: 20px;
    border-bottom: 2px solid #e8e8e8;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-item strong {
    display: block;
    color: #1b5e20;
    margin-bottom: 5px;
}

.timeline-item p {
    color: #999;
    font-size: 0.9rem;
    margin: 0;
}

/* CTA Section */
.blog-cta {
    padding: 80px 20px;
    background-color: #fff;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.cta-card {
    padding: 40px;
    text-align: center;
}

.cta-card h2 {
    font-size: 1.5rem;
    color: #1b5e20;
    margin-bottom: 15px;
}

.cta-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-hero__inner {
        grid-template-columns: 1fr;
    }

    .blog-hero__content h1 {
        font-size: 1.8rem;
    }

    .featured-article {
        grid-template-columns: 1fr;
    }

    .featured-article__image-wrapper {
        height: 300px;
    }

    .featured-article__content {
        padding: 25px;
    }

    .blog-community__inner,
    .archive-grid,
    .cta-grid {
        grid-template-columns: 1fr;
    }

    .search-form {
        flex-direction: column;
    }

    .search-form input,
    .search-form button {
        width: 100%;
    }
}

/* Utility Classes */
.w-full {
    width: 100%;
}

.section-heading {
    text-align: center;
    margin-bottom: 20px;
}

.section-heading h2 {
    font-size: 2rem;
    color: #1b5e20;
    margin-bottom: 12px;
}

.section-heading p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

.section-heading-center {
    text-align: center;
}

.section-heading-left {
    text-align: left;
}
