/* Blog Specific Styles */

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #e8f5e8 0%, #f8fff8 100%);
    padding: 120px 0 80px;
    text-align: center;
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.blog-hero p {
    font-size: 1.2rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Articles Grid */
.blog-articles {
    padding: 80px 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.article-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.article-image {
    height: 200px;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.article-image i {
    font-size: 4rem;
    color: white;
    opacity: 0.9;
}

.article-content {
    padding: 1.5rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #666;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-meta i {
    color: #27ae60;
}

.article-card h2 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.article-card h2 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-card h2 a:hover {
    color: #27ae60;
}

.article-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #27ae60;
    font-weight: 500;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 0.8rem;
}

/* Individual Article Page */
.article-page {
    padding: 120px 0 80px;
}

.article-header {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #27ae60;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #999;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #666;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-meta i {
    color: #27ae60;
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.article-lead {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-image-hero {
    text-align: center;
    margin: 2rem 0 3rem;
}

.article-image-hero i {
    font-size: 6rem;
    color: #27ae60;
    opacity: 0.8;
}

.article-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: #2c3e50;
}

.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    color: #34495e;
}

.article-content p {
    margin-bottom: 1.5rem;
    color: #444;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.8rem;
    color: #444;
}

.article-content li strong {
    color: #2c3e50;
}

.article-content blockquote {
    border-left: 4px solid #27ae60;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
    background-color: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: 0 5px 5px 0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.article-content table th,
.article-content table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.article-content table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.article-content table tr:hover {
    background-color: #f8f9fa;
}

/* Article Footer */
.article-footer {
    max-width: 800px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tag {
    background-color: #f8f9fa;
    color: #555;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: #27ae60;
    color: white;
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.article-navigation .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Blog Categories */
.blog-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-filter {
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    color: #555;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.category-filter:hover,
.category-filter.active {
    background-color: #27ae60;
    color: white;
}

/* Article Search */
.article-search {
    max-width: 400px;
    margin: 0 auto 3rem;
}

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-form input:focus {
    outline: none;
    border-color: #27ae60;
}

.search-form button {
    padding: 12px 16px;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-form button:hover {
    background-color: #2ecc71;
}

/* Related Articles */
.related-articles {
    background-color: #f8f9fa;
    padding: 3rem 0;
    margin-top: 3rem;
}

.related-articles h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: #2c3e50;
}

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

.related-article {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.related-article:hover {
    transform: translateY(-3px);
}

.related-article-image {
    height: 120px;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-article-image i {
    font-size: 2.5rem;
    color: white;
    opacity: 0.9;
}

.related-article-content {
    padding: 1.5rem;
}

.related-article h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.related-article h4 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-article h4 a:hover {
    color: #27ae60;
}

.related-article p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.related-article-meta {
    font-size: 0.8rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.related-article-meta i {
    color: #27ae60;
}

/* Article Progress Bar */
.article-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #f0f0f0;
    z-index: 1000;
}

.article-progress-bar {
    height: 100%;
    background-color: #27ae60;
    width: 0%;
    transition: width 0.3s ease;
}

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

.table-of-contents h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

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

.table-of-contents li {
    margin-bottom: 0.5rem;
}

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

.table-of-contents a:hover {
    color: #27ae60;
}

/* Responsive Design for Blog */
@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2rem;
    }

    .blog-hero p {
        font-size: 1rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .article-lead {
        font-size: 1.1rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .article-content {
        font-size: 1rem;
    }

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

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

    .article-image-hero i {
        font-size: 4rem;
    }

    .article-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .article-navigation .btn {
        width: 100%;
        justify-content: center;
    }

    .blog-categories {
        flex-direction: column;
        align-items: center;
    }

    .search-form {
        flex-direction: column;
    }

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

@media (max-width: 480px) {
    .article-card {
        margin: 0 -10px;
    }

    .article-content {
        padding: 1rem;
    }

    .article-image {
        height: 150px;
    }

    .article-image i {
        font-size: 3rem;
    }

    .article-header {
        text-align: left;
    }

    .breadcrumb {
        justify-content: flex-start;
    }

    .article-meta {
        font-size: 0.8rem;
    }

    .article-tags {
        justify-content: center;
    }
}

/* Print Styles for Blog */
@media print {
    .article-progress,
    .related-articles,
    .article-navigation,
    .article-tags {
        display: none;
    }

    .article-header {
        text-align: left;
    }

    .article-content {
        font-size: 12pt;
    }

    .article-content h2 {
        font-size: 16pt;
    }

    .article-content h3 {
        font-size: 14pt;
    }
}

/* Loading States for Blog */
.articles-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.articles-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #27ae60;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Empty States */
.no-articles {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.no-articles i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.no-articles h3 {
    margin-bottom: 1rem;
    color: #888;
}

.no-articles p {
    color: #999;
}

/* Accessibility Improvements */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.article-content pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
}

.article-content code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.article-content mark {
    background-color: #fff3cd;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
}

/* Social Sharing */
.social-sharing {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    text-align: center;
}

.social-sharing h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.social-sharing-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-sharing-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-sharing-buttons a:hover {
    transform: scale(1.1);
}

.social-sharing-buttons .facebook {
    background-color: #3b5998;
}

.social-sharing-buttons .twitter {
    background-color: #1da1f2;
}

.social-sharing-buttons .linkedin {
    background-color: #0077b5;
}

.social-sharing-buttons .pinterest {
    background-color: #bd081c;
}

.social-sharing-buttons .whatsapp {
    background-color: #25d366;
}
