/* Blog Section Styles */
/* ==================== */

/* IMPORTANT: Override main style.css section padding that causes white gap */
main .blog-post-hero,
main .blog-hero,
section.blog-post-hero,
section.blog-hero {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove default section padding from main style.css */
.blog-post-hero {
    padding: 0 !important;
}

/* Force left alignment for all blog content (override main style.css center alignment) */
.blog-post-content,
.blog-post-content p,
.blog-post-content ul,
.blog-post-content ol,
.blog-post-content li,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content table {
    text-align: left !important;
}

/* Blog Listing Page Styles */
.blog-hero {
    background: linear-gradient(135deg, #2c5530 0%, #1a3a1d 100%);
    padding: 80px 20px 60px;
    text-align: center;
    color: white;
}

.blog-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.blog-hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    color: #e0f0e0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-card-content {
    padding: 25px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 12px;
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card-title {
    color: #2c5530;
}

.blog-card-excerpt {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-card-readmore {
    color: #2c5530;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.blog-card-readmore::after {
    content: '→';
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-readmore::after {
    transform: translateX(5px);
}

/* Individual Blog Post Styles */
.blog-post-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.blog-post-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 60px 20px 40px;
    color: white;
}

.blog-post-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.blog-post-hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.blog-post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 20px 80px;
}

.blog-post-content {
    font-size: 1.1rem;
    line-height: 1.85;
    color: #333;
    text-align: left !important;
}

.blog-post-content h2 {
    font-size: 1.6rem;
    color: #1a3a1d;
    margin-top: 45px;
    margin-bottom: 20px;
    font-weight: 700;
    border-left: 4px solid #2c5530;
    padding-left: 15px;
    text-align: left !important;
}

.blog-post-content h3 {
    font-size: 1.3rem;
    color: #2c5530;
    margin-top: 35px;
    margin-bottom: 15px;
    font-weight: 600;
    text-align: left !important;
}

.blog-post-content p {
    margin-bottom: 20px;
    text-align: left !important;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
    text-align: left !important;
}

.blog-post-content li {
    margin-bottom: 10px;
    text-align: left !important;
}

.blog-post-content strong {
    color: #1a1a1a;
}

/* FAQ Section in Blog */
.blog-faq {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
}

.blog-faq h2 {
    border-left: none !important;
    padding-left: 0 !important;
    margin-top: 0 !important;
    text-align: center !important;
}

.faq-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-question {
    font-weight: 700;
    color: #1a3a1d;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    text-align: left !important;
}

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 400;
    color: #2c5530;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    color: #555;
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding-top: 0;
    text-align: left !important;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-top: 15px;
}

/* Blog CTA Section */
.blog-cta {
    background: linear-gradient(135deg, #2c5530 0%, #1a3a1d 100%);
    padding: 50px 30px;
    border-radius: 16px;
    text-align: center;
    margin-top: 50px;
    color: white;
}

.blog-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ffffff !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    text-align: center !important;
}

.blog-cta p {
    margin-bottom: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    color: #e0f0e0 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    text-align: center !important;
}

.blog-cta-btn {
    display: inline-block;
    background: white;
    color: #2c5530;
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Share Buttons */
.blog-share {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.blog-share-label {
    font-weight: 600;
    color: #333;
}

.blog-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.blog-share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.blog-share-whatsapp {
    background: #25D366;
    color: white;
}

.blog-share-facebook {
    background: #1877F2;
    color: white;
}

/* Back to Blog Link */
.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2c5530;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 30px;
    transition: gap 0.3s ease;
}

.blog-back-link:hover {
    gap: 12px;
}

/* Month Guide Table */
.month-guide {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.month-guide th,
.month-guide td {
    padding: 15px 20px;
    text-align: left !important;
    border-bottom: 1px solid #eee;
}

.month-guide th {
    background: #2c5530;
    color: white;
    font-weight: 600;
}

.month-guide tr:nth-child(even) {
    background: #f8f9fa;
}

.month-guide tr:last-child td {
    border-bottom: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .blog-hero {
        padding: 60px 15px 40px;
    }

    .blog-hero h1 {
        font-size: 1.8rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-post-hero {
        height: 300px;
    }

    .blog-post-hero h1 {
        font-size: 1.6rem;
    }

    .blog-post-meta {
        flex-wrap: wrap;
        gap: 10px;
    }

    .blog-post-content {
        font-size: 1rem;
    }

    .blog-post-content h2 {
        font-size: 1.4rem;
    }

    .blog-share {
        flex-wrap: wrap;
    }

    .month-guide {
        font-size: 0.9rem;
    }

    .month-guide th,
    .month-guide td {
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .blog-hero h1 {
        font-size: 1.5rem;
    }

    .blog-card-content {
        padding: 20px;
    }

    .blog-post-hero h1 {
        font-size: 1.4rem;
    }

    .blog-cta {
        padding: 35px 20px;
    }
}

/* ============================================================ */
/* Fix: Ensure chatbot button is clickable on all blog pages    */
/* The chatbot button was being covered by positioned elements  */
/* Position: relative is needed for z-index to work properly    */
/* ============================================================ */
#chatbot-container {
    position: relative !important;
    z-index: 99999 !important;
}

#chatbot-frame {
    z-index: 99999 !important;
}

#chatbot-toggle {
    z-index: 99999 !important;
    pointer-events: auto !important;
}