/* Blog Page Styles */
/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--secondary) 0%, #e5aa00 100%);
    text-align: center;
    color: var(--primary);
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

@media (max-width: 768px) {
    .cta-content h2 {
        font-size: 2rem;
    }
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slide-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .slide-buttons a,
    .cta-buttons a {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
}


.expertise-hero {
    min-height: 600px;
}


.blog-hero {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark-bg) 100%);
    color: white;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><path fill="%23ffffff" fill-opacity="0.1" d="M0,0L1200,400L0,400Z"/></svg>');
    background-size: cover;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.blog-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.blog-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

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

.article-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.article-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 3rem;
}

.article-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary);
    color: var(--primary);
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.article-date .day {
    display: block;
    font-size: 1.5rem;
    line-height: 1;
}

.article-date .month {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.article-content {
    padding: 1.5rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.article-category {
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.article-read-time {
    color: #6c757d;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.article-footer {
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Pagination */
.blog-pagination {
    text-align: center;
    margin: 3rem 0;
}

.blog-pagination .pagination {
    justify-content: center;
}

.blog-pagination .page-link {
    color: var(--primary);
    border: 1px solid #dee2e6;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 8px;
}

.blog-pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.blog-pagination .page-link:hover {
    background: var(--light-bg);
}

/* Newsletter Card */
.blog-newsletter {
    margin: 4rem 0;
}

.newsletter-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark-bg) 100%);
    color: white;
    border-radius: 20px;
    padding: 3rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
    overflow: hidden;
}

@media (max-width: 992px) {
    .newsletter-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
}

.newsletter-content {
    flex: 1;
}

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

.newsletter-content p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.newsletter-form .input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 576px) {
    .newsletter-form .input-group {
        flex-direction: column;
    }
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
}

.newsletter-note {
    font-size: 0.85rem;
    opacity: 0.8;
}

.newsletter-image {
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

/* Empty State */
.empty-blog-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1.5rem;
}

.empty-blog-state h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.empty-blog-state p {
    color: #6c757d;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Article Detail Page */
.article-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    color: white;
}

.article-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.article-breadcrumb {
    margin-bottom: 2rem;
}

.article-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.article-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.article-breadcrumb .breadcrumb-item.active {
    color: white;
}

.article-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.article-header {
    max-width: 800px;
}

.article-meta-banner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.article-category-badge {
    background: var(--secondary);
    color: var(--primary);
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.article-date,
.article-read-time {
    display: flex;
    align-items: center;
    opacity: 0.9;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .article-title {
        font-size: 1.25rem;
    }
}

.article-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 576px) {
    .article-meta-banner {
        justify-content: space-between;
    }
    
    .article-category-badge 
    {
        padding: 4px 10px;
        font-size: 0.7rem;
    }
    .expertise-hero {
        min-height: 400px;
    }
    
    .article-hero-content {
        min-height: 300px;
    }
    
    .article-author {
        justify-content: center;
    }
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.author-role {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Article Content */
.article-content-section {
    padding: 4rem 0;
}

.article-main {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .article-main {
        padding: 2rem;
    }
}

.article-featured-image {
    border-radius: 15px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

.image-caption {
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-body h2 {
    color: var(--primary);
    margin: 2.5rem 0 1rem;
    font-size: 1.75rem;
}

.article-body h3 {
    color: var(--primary);
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.article-body p {
    margin-bottom: 1.5rem;
}

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

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body blockquote {
    border-left: 4px solid var(--secondary);
    padding-left: 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
    font-size: 1.2rem;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.tags-label {
    font-weight: 600;
    color: var(--primary);
}

.tag {
    background: var(--light-bg);
    color: var(--primary);
    padding: 6px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.tag:hover {
    background: var(--primary);
    color: white;
    text-decoration: none;
}

/* Share Buttons */
.article-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 2rem 0;
    border-top: 1px solid #eee;
}

.share-label {
    font-weight: 600;
    color: var(--primary);
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.share-btn:hover {
    transform: translateY(-3px);
    text-decoration: none;
}

.share-btn.facebook { background: #3b5998; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.email { background: var(--primary); }

/* Article Navigation */
.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem 0;
    border-top: 1px solid #eee;
}

@media (max-width: 768px) {
    .article-navigation {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    padding: 1rem;
    border-radius: 10px;
    background: var(--light-bg);
    transition: all 0.3s;
}

.nav-link:hover {
    background: var(--accent);
    text-decoration: none;
}

.nav-link.prev-article {
    text-align: left;
}

.nav-link.next-article {
    text-align: right;
}

.nav-arrow {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.nav-content {
    flex: 1;
}

.nav-label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.nav-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-widget {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--light-bg);
}

/* Recent Articles in Sidebar */
.recent-articles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-article {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.recent-article:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.recent-content {
    flex: 1;
}

.recent-content h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.recent-content h4 a {
    color: var(--primary);
    text-decoration: none;
}

.recent-content h4 a:hover {
    color: var(--dark-bg);
    text-decoration: underline;
}

.recent-date {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark-bg) 100%);
    color: white;
}

.newsletter-widget .widget-title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.newsletter-widget p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.sidebar-newsletter input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* CTA Widget */
.cta-widget {
    text-align: center;
    background: var(--light-bg);
    border: 2px solid var(--accent);
}

.cta-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.cta-content h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.cta-content p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Related Articles */
.related-articles {
    padding: 4rem 0;
    background: var(--light-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 3rem;
}

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

.related-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

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

.related-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-content {
    padding: 1.5rem;
}

.related-content h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.related-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.related-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.related-link:hover {
    text-decoration: underline;
}

/* Featured Articles */
.featured-articles {
    padding: 4rem 0;
    background: var(--light-bg);
}

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

.featured-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.featured-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.featured-content {
    padding: 1.5rem;
}

.featured-content h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.featured-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.featured-link {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.featured-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Filter Tags */
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-tag {
    background: var(--light-bg);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.filter-tag:hover,
.filter-tag.active {
    background: var(--primary);
    color: white;
    text-decoration: none;
}

.filter-tag.active {
    border-color: var(--secondary);
}

/* Search Box */
.search-box {
    display: flex;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    overflow: hidden;
}

.search-box input {
    flex: 1;
    border: none;
    padding: 10px 15px;
    font-size: 1rem;
}

.search-box button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box button:hover {
    background: var(--dark-bg);
}

/* Table of Contents */
.table-of-contents {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--secondary);
}

.table-of-contents h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

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

.table-of-contents li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.table-of-contents li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary);
}

.toc-link {
    color: var(--primary);
    text-decoration: none;
}

.toc-link:hover {
    color: var(--dark-bg);
    text-decoration: underline;
}

/* Highlighted Quotes */
.highlighted-quote {
    background: linear-gradient(135deg, var(--accent)20 0%, #74d1ea10 100%);
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    position: relative;
}

.highlighted-quote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.3;
    font-family: Georgia, serif;
}