/* =====================================================
   BLOG STYLES
   ===================================================== */

/* Blog Card Enhancements (for homepage) */
.blog-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.blog-card:hover .read-more {
    color: var(--forest-green);
}

.blog-card:hover .read-more::after {
    transform: translateX(5px);
}

/* Article Hero Section */
.article-hero {
    background: linear-gradient(135deg, var(--pale-green) 0%, var(--white) 100%);
    padding: 140px 0 60px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.breadcrumb span {
    color: var(--gray-medium);
}

.breadcrumb a {
    color: var(--sage-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--forest-green);
}

.article-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--dark-gray);
    margin-bottom: 30px;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    color: var(--dark-gray);
}

.author-title {
    font-size: 0.9rem;
    color: var(--gray-medium);
}

.article-date {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-medium);
    font-size: 0.9rem;
}

/* Article Content Layout */
.article-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.article-main {
    max-width: 100%;
}

.article-lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--gray-dark);
    margin-bottom: 40px;
    font-weight: 300;
}

/* Table of Contents */
.toc {
    background: var(--gray-ultra-light);
    border-left: 4px solid var(--sage-green);
    padding: 30px;
    margin: 40px 0;
    border-radius: 8px;
}

.toc h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--dark-gray);
}

.toc ol {
    list-style: none;
    counter-reset: toc-counter;
    padding-left: 0;
}

.toc li {
    counter-increment: toc-counter;
    margin-bottom: 12px;
    position: relative;
    padding-left: 35px;
}

.toc li::before {
    content: counter(toc-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--sage-green);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
}

.toc a {
    color: var(--gray-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.toc a:hover {
    color: var(--forest-green);
    padding-left: 5px;
}

/* Article Typography */
.article-content h2 {
    font-size: 2rem;
    margin: 50px 0 25px;
    color: var(--dark-gray);
    position: relative;
    padding-bottom: 15px;
}

.article-content h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--sage-green);
}

.article-content h3 {
    font-size: 1.5rem;
    margin: 35px 0 20px;
    color: var(--gray-dark);
}

.article-content h4 {
    font-size: 1.2rem;
    margin: 25px 0 15px;
    color: var(--gray-dark);
}

.article-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--gray-dark);
}

.article-content ul,
.article-content ol {
    margin: 20px 0 30px 20px;
    line-height: 1.8;
}

.article-content ul li,
.article-content ol li {
    margin-bottom: 10px;
    color: var(--gray-dark);
}

.article-content strong {
    color: var(--dark-gray);
    font-weight: 600;
}

/* Special Content Blocks */
.expert-quote {
    background: linear-gradient(135deg, var(--pale-green) 0%, rgba(234, 236, 229, 0.5) 100%);
    border-left: 5px solid var(--sage-green);
    padding: 30px 40px;
    margin: 40px 0;
    position: relative;
}

.expert-quote::before {
    content: """;
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 80px;
    color: var(--sage-green);
    opacity: 0.3;
}

.expert-quote p {
    font-style: italic;
    font-size: 1.15rem;
    color: var(--gray-dark);
    margin-bottom: 15px;
}

.expert-quote cite {
    display: block;
    text-align: right;
    color: var(--sage-green);
    font-weight: 600;
}

.info-box {
    background: var(--white);
    border: 2px solid var(--pale-green);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.info-box h4 {
    color: var(--sage-green);
    margin-bottom: 20px;
}

.case-study {
    background: linear-gradient(to right, var(--gray-ultra-light), var(--white));
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    border-left: 4px solid var(--forest-green);
}

.case-study h4 {
    color: var(--forest-green);
    margin-bottom: 15px;
}

.cost-benefit {
    background: var(--pale-green);
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    text-align: center;
}

.cost-benefit h4 {
    color: var(--forest-green);
    margin-bottom: 15px;
}

.legal-notice {
    background: #fff3cd;
    border: 2px solid #ffeeba;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
}

.legal-notice h4 {
    color: #856404;
    margin-bottom: 10px;
}

.warning-signs {
    background: var(--white);
    border: 2px solid #f8d7da;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
}

.warning-signs h4 {
    color: #dc3545;
    margin-bottom: 20px;
}

.warning-signs ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.warning-signs li {
    padding-left: 30px;
    margin-bottom: 12px;
}

/* CTA Box in Article */
.cta-box {
    background: linear-gradient(135deg, var(--forest-green) 0%, var(--sage-green) 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin: 50px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.cta-box h4 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.cta-box p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 25px;
}

.cta-box .btn-primary {
    background: white;
    color: var(--forest-green);
}

.cta-box .btn-primary:hover {
    background: var(--pale-green);
    transform: translateY(-2px);
}

/* Sidebar Styles */
.article-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--gray-light);
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--pale-green);
}

/* Author Widget */
.author-bio {
    text-align: center;
}

.author-bio img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.author-bio h4 {
    color: var(--dark-gray);
    margin-bottom: 5px;
}

.author-bio p {
    font-size: 0.9rem;
    color: var(--gray-medium);
    margin-bottom: 10px;
}

.author-link {
    color: var(--sage-green);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.author-link:hover {
    color: var(--forest-green);
}

/* Service Widget */
.service-widget ul {
    list-style: none;
    padding: 0;
}

.service-widget li {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-light);
}

.service-widget li:last-child {
    border-bottom: none;
}

.service-widget a {
    color: var(--gray-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.service-widget a:hover {
    color: var(--forest-green);
    padding-left: 10px;
}

/* Contact Widget */
.contact-widget {
    background: linear-gradient(135deg, var(--pale-green) 0%, rgba(234, 236, 229, 0.3) 100%);
}

.phone-link {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--forest-green);
    text-decoration: none;
    text-align: center;
    padding: 15px;
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.phone-link:hover {
    background: var(--forest-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Related Posts Widget */
.related-posts {
    list-style: none;
    padding: 0;
}

.related-posts li {
    margin-bottom: 20px;
}

.related-posts a {
    display: flex;
    gap: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-posts a:hover {
    transform: translateX(5px);
}

.related-posts img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.related-posts h4 {
    font-size: 1rem;
    color: var(--dark-gray);
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.related-posts a:hover h4 {
    color: var(--forest-green);
}

.related-posts time {
    font-size: 0.85rem;
    color: var(--gray-medium);
}

/* Share Widget */
.share-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.share-btn {
    padding: 10px 15px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.share-facebook {
    background: #1877f2;
    color: white;
}

.share-facebook:hover {
    background: #166fe5;
    transform: translateY(-2px);
}

.share-email {
    background: var(--sage-green);
    color: white;
}

.share-email:hover {
    background: var(--forest-green);
    transform: translateY(-2px);
}

.share-print {
    background: var(--gray-medium);
    color: white;
}

.share-print:hover {
    background: var(--gray-dark);
    transform: translateY(-2px);
}

/* Article CTA Section */
.article-cta {
    background: linear-gradient(135deg, var(--forest-green) 0%, var(--sage-green) 100%);
    padding: 80px 0;
    text-align: center;
    margin-top: 80px;
}

.article-cta .cta-content h2 {
    color: white;
    margin-bottom: 20px;
}

.article-cta .cta-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.15rem;
    margin-bottom: 30px;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.cta-feature {
    color: white;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-white {
    background: white;
    color: var(--forest-green);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-white:hover {
    background: var(--pale-green);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Responsive Design for Blog */
@media (max-width: 1024px) {
    .article-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .article-sidebar {
        position: relative;
        top: 0;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .article-hero {
        padding: 120px 0 40px;
    }
    
    .article-title {
        font-size: 1.75rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .toc {
        padding: 20px;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
        margin: 35px 0 20px;
    }
    
    .article-content h3 {
        font-size: 1.25rem;
    }
    
    .expert-quote,
    .info-box,
    .case-study,
    .cta-box {
        padding: 20px;
    }
    
    .article-sidebar {
        grid-template-columns: 1fr;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 15px;
    }
    
    .share-buttons {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    header,
    footer,
    .article-sidebar,
    .article-cta,
    .share-widget,
    .cta-box .btn-primary {
        display: none;
    }
    
    .article-hero {
        padding: 30px 0;
        background: none;
    }
    
    .article-content {
        max-width: 100%;
    }
    
    .article-content a {
        color: inherit;
        text-decoration: underline;
    }
    
    .article-content a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* Animation for Article Elements */
.article-content > * {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.article-content > *:nth-child(1) { animation-delay: 0.1s; }
.article-content > *:nth-child(2) { animation-delay: 0.2s; }
.article-content > *:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}