/* Premium Magazine-Style Blog Post CSS */

/* Article Hero Section */
.article-hero {
    text-align: center;
    padding: 3rem 0 2rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Enhanced Article Hero with Background */
.article-hero-enhanced {
    text-align: center;
    padding: 5rem 0 4rem;
    margin: 0 0 3rem 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.article-hero-enhanced::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, white);
    pointer-events: none;
}

.article-hero-enhanced .container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.article-hero-enhanced h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(255,255,255,0.8);
}

.article-hero-enhanced .article-subtitle {
    font-size: 1.35rem;
    color: #444;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.article-hero-enhanced .article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.95rem;
    color: #555;
    font-weight: 500;
}

.article-hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.01em;
}

@media (max-width: 768px) {
    .article-hero h1 {
        font-size: 1.9rem;
        line-height: 1.3;
        padding: 0 1rem;
    }
}

.article-subtitle {
    font-size: 1.3rem;
    color: #666;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.95rem;
    color: #666;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

.article-meta span:nth-child(2) {
    color: #ccc;
    font-size: 0.8rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-weight: 500;
}

/* Responsive for Enhanced Hero */
@media (max-width: 768px) {
    .article-hero-enhanced {
        padding: 3rem 1rem;
    }

    .article-hero-enhanced h1 {
        font-size: 2.2rem;
    }

    .article-hero-enhanced .article-subtitle {
        font-size: 1.1rem;
    }

    .article-hero-enhanced .article-meta {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        font-size: 0.9rem;
    }

    .article-hero-enhanced .article-meta span:nth-child(2),
    .article-hero-enhanced .article-meta span:nth-child(4) {
        display: none; /* Hide bullet separators on mobile */
    }

    .article-hero-enhanced .article-meta .author-info {
        width: 100%;
        margin-bottom: 0.3rem;
    }

    .article-hero-enhanced .article-meta time,
    .article-hero-enhanced .article-meta .reading-time {
        padding: 0.2rem 0.8rem;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 15px;
        font-size: 0.85rem;
    }
}

/* Article Content Container */
.article-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Premium Typography */
.article-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1.2rem;
    font-family: 'Roboto', sans-serif;
}

.article-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 2rem 0 1rem;
    font-family: 'Poppins', sans-serif;
    position: relative;
    padding-top: 1.5rem;
}

/* Section Separator */
.article-content h2:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50 0%, #8BC34A 100%);
    border-radius: 2px;
}

.article-content h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 1.5rem 0 0.8rem;
    font-family: 'Poppins', sans-serif;
}

.article-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2a2a2a;
    margin: 1.5rem 0 0.8rem;
    font-family: 'Poppins', sans-serif;
}

/* Drop Cap for First Paragraph */
.article-content > p:first-of-type:first-letter {
    float: left;
    font-size: 4.5rem;
    line-height: 3.5rem;
    padding-right: 0.3rem;
    margin-top: 0.5rem;
    font-weight: 700;
    color: var(--primary-green, #4CAF50);
    font-family: 'Poppins', sans-serif;
}

/* Lists Styling */
.article-content ul,
.article-content ol {
    margin: 1rem 0 1.5rem 1rem;
    padding-left: 1rem;
}

.article-content li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 0.8rem;
    font-family: 'Roboto', sans-serif;
}

.article-content li strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* Pull Quotes */
.pull-quote {
    font-size: 1.4rem;
    line-height: 1.5;
    color: #333;
    font-style: italic;
    border-left: 4px solid var(--primary-green, #4CAF50);
    padding-left: 2rem;
    margin: 1.5rem 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

/* Pro Tips Box - Matching steps-grid style */
.pro-tip {
    background: var(--white-color, #ffffff);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    margin: 1.5rem 0 2rem;
}

.pro-tip:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
}

.pro-tip h4 {
    position: absolute;
    top: -15px;
    left: 2rem;
    background: linear-gradient(135deg, var(--primary-green, #4CAF50) 0%, var(--light-green, #8BC34A) 100%);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.pro-tip p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color, #333);
    font-family: 'Roboto', sans-serif;
}

.pro-tip p a {
    color: var(--primary-green, #4CAF50);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.pro-tip p a:hover {
    border-bottom-color: var(--primary-green, #4CAF50);
}

/* Table of Contents */
.table-of-contents {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    margin: 1.5rem 0 2rem;
    border: 1px solid #e0e0e0;
}

.table-of-contents h3 {
    font-size: 1.3rem;
    color: #2a2a2a;
    margin: 0 0 1rem 0;
    font-weight: 600;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1.05rem;
}

.table-of-contents li:before {
    content: '→';
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

.table-of-contents a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.table-of-contents a:hover {
    color: #4CAF50;
}

/* Image Grids */
.characteristic-grid,
.grass-identification-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.characteristic-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.characteristic-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.characteristic-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.characteristic-item h4 {
    padding: 1rem 1.5rem 0.5rem;
    font-size: 1.3rem;
    color: #2a2a2a;
    margin: 0;
}

.characteristic-item p {
    padding: 0 1.5rem 1.5rem;
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Grass Identification Cards */
.grass-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.grass-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.grass-card h3 {
    padding: 1rem 1.5rem 0.5rem;
    font-size: 1.3rem;
    color: #2a2a2a;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.grass-details {
    padding: 0 1.5rem 1rem;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
}

.grass-details p {
    margin: 0.3rem 0;
}

.grass-link {
    display: inline-block;
    padding: 0.5rem 0;
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin: 0 1.5rem 1.2rem;
    position: relative;
    font-family: 'Poppins', sans-serif;
}

.grass-link::after {
    content: '→';
    margin-left: 0.3rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.grass-link:hover {
    color: #45a049;
}

.grass-link:hover::after {
    transform: translateX(3px);
}

/* Tools & Apps Section */
.identification-tools {
    margin: 2rem 0;
}

.tool-category {
    margin-bottom: 2.5rem;
}

.tool-category h3 {
    font-size: 1.4rem;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
    position: relative;
    padding-left: 2rem;
}

.tool-category h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, #4CAF50 0%, #8BC34A 100%);
    border-radius: 2px;
}

/* Featured Tool - GrassID App */
.featured-tool {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0%, rgba(139, 195, 74, 0.05) 100%);
    border: 2px solid rgba(76, 175, 80, 0.15);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.featured-tool::before {
    content: '⭐ FEATURED';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.featured-tool h4 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

.featured-tool p {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tool-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tool-features .feature {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    white-space: nowrap;
}

.featured-tool .btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.featured-tool .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* Manual Methods Grid */
.manual-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.2rem;
}

.method {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.method:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-color: rgba(76, 175, 80, 0.2);
}

.method h4 {
    font-size: 1.1rem;
    color: #1a1a1a;
    margin-bottom: 0.8rem;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.method h4::before {
    content: '✓';
    width: 24px;
    height: 24px;
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

.method p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Growth Comparison Image */
.growth-comparison {
    margin: 2rem 0;
    text-align: center;
}

.growth-comparison img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* Seasonal Tips Grid */
.seasonal-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.season-tip {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
}

.season-tip h3 {
    color: #4CAF50;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* FAQ Section */
.faq-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(76, 175, 80, 0.15);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.faq-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50 0%, #8BC34A 100%);
    border-radius: 2px;
}

.faq-container {
    margin: 2rem 0;
}

.faq-item {
    background: white;
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.faq-item:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.faq-item h3 {
    color: #1a1a1a;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
    padding: 1.5rem 3rem 1.5rem 2rem;
    position: relative;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to right, rgba(76, 175, 80, 0.03), transparent);
    transition: all 0.3s ease;
    user-select: none;
}

.faq-item h3:hover {
    background: linear-gradient(to right, rgba(76, 175, 80, 0.06), transparent);
}

.faq-item h3::after {
    content: '+';
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    font-size: 1.5rem;
    color: #4CAF50;
    font-weight: 300;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
}

.faq-item.active h3::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    opacity: 1;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease 0.1s;
}

.faq-answer p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
    padding: 0 2rem 1.5rem 2rem;
    font-family: 'Roboto', sans-serif;
}

/* Article CTA */
.article-cta {
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    margin: 3rem 0;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
}

.article-cta h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.article-cta p {
    color: rgba(255,255,255,0.95);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    background: white;
    color: #4CAF50;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Related Articles */
.related-articles {
    margin: 3rem 0 2rem;
    padding-top: 2.5rem;
    border-top: 2px solid rgba(76, 175, 80, 0.15);
}

.related-articles h3 {
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 2.5rem;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    position: relative;
}

.related-articles h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50 0%, #8BC34A 100%);
    border-radius: 2px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.related-article {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.related-article:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.related-article img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.related-article-content {
    padding: 1.2rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-article h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
    line-height: 1.4;
    font-weight: 600;
}

.related-article h4 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.related-article:hover h4 a {
    color: #4CAF50;
}

.related-article p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background-color: #4CAF50;
    color: white;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    /* Related Articles Mobile */
    .related-articles {
        margin: 2rem 0 1.5rem;
        padding-top: 2rem;
    }

    .related-articles h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    /* Tools Section Mobile */
    .featured-tool {
        padding: 1.5rem;
    }

    .featured-tool::before {
        font-size: 0.6rem;
        padding: 0.2rem 0.6rem;
    }

    .featured-tool h4 {
        font-size: 1.3rem;
        margin-top: 1rem;
    }

    .tool-features {
        gap: 0.5rem;
    }

    .tool-features .feature {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    .manual-methods {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .method {
        padding: 1.2rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .related-article {
        display: flex;
        flex-direction: row;
        height: auto;
        min-height: 120px;
        border-radius: 12px;
        overflow: hidden;
    }

    .related-article img {
        width: 90px;
        height: 90px;
        flex-shrink: 0;
        object-fit: cover;
        align-self: center;
        margin-left: 0.5rem;
        border-radius: 8px;
    }

    .related-article-content {
        padding: 1rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex: 1;
    }

    .related-article h4 {
        font-size: 0.95rem;
        margin-bottom: 0.3rem;
        line-height: 1.3;
        font-weight: 600;
    }

    .related-article h4 a {
        display: block;
        color: #1a1a1a;
    }

    .related-article p {
        font-size: 0.85rem;
        line-height: 1.4;
        color: #666;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 768px) {
    .article-subtitle {
        font-size: 1.05rem;
        padding: 0 1rem;
        line-height: 1.4;
    }

    .article-content {
        padding: 2rem 1rem;
    }

    .article-content p {
        font-size: 1.1rem;
    }

    .article-content h2 {
        font-size: 1.8rem;
    }

    .article-content h3 {
        font-size: 1.4rem;
    }

    .article-meta {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .article-meta span:nth-child(2) {
        display: none; /* Hide bullet separator on mobile */
    }

    .article-meta time,
    .article-meta .reading-time {
        padding: 0.3rem 1rem;
        background: rgba(76, 175, 80, 0.08);
        border-radius: 20px;
        font-size: 0.85rem;
        color: #666;
    }
}