/* Article Page Styles */

/* Breadcrumbs */
.breadcrumbs {
    background-color: #f9f9f9;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumbs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: var(--light-text);
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: var(--light-text);
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-separator {
    margin: 0 10px;
    font-size: 0.7rem;
    color: #ccc;
}

.breadcrumb-item:last-child {
    color: var(--text-color);
    font-weight: 500;
}

/* Article Hero Section */
.article-hero {
    padding: 60px 0 40px;
    background-color: white;
}

.article-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.article-category {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.article-category:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.article-info {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--light-text);
    font-size: 0.9rem;
}

.article-date,
.article-reading-time {
    display: flex;
    align-items: center;
}

.article-date i,
.article-reading-time i {
    margin-right: 5px;
    color: var(--primary-color);
}

.article-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-color);
}

.article-subtitle {
    font-size: 1.3rem;
    color: var(--light-text);
    margin-bottom: 30px;
    line-height: 1.4;
    font-weight: 400;
}

.article-featured-image {
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Content Section */
.article-section {
    padding: 60px 0;
    background-color: white;
}

.article-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

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

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 40px;
}

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

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

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

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

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 1.5rem;
    font-style: italic;
    color: var(--light-text);
}

.article-content strong,
.article-content b {
    font-weight: 700;
    color: var(--text-color);
}

.article-content em,
.article-content i {
    font-style: italic;
}

.article-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.article-content a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
}

.article-content .article-heading,
.article-content h2.article-heading,
.article-content h3.article-heading {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-weight: 700;
    position: relative;
}

.article-content h2.article-heading {
    font-size: 2rem;
    padding-bottom: 15px;
}

.article-content h2.article-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 3px;
    background-color: var(--primary-color);
}

.article-content h3.article-heading {
    font-size: 1.6rem;
    margin-top: 2rem;
}

.article-image-container {
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    max-width: 100%;
}

.article-image-container img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

.image-caption {
    padding: 15px;
    background-color: #f9f9f9;
    color: var(--light-text);
    font-size: 0.9rem;
    text-align: center;
    margin: 0;
    font-style: italic;
}

/* Article Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.tags-label {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.article-tag {
    background-color: #f5f5f5;
    color: var(--light-text);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.article-tag:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Article Navigation */
.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.article-nav {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.article-nav:hover {
    background-color: #f0f0f0;
    transform: translateY(-5px);
}

.prev-article {
    justify-content: flex-start;
}

.next-article {
    justify-content: flex-end;
    text-align: right;
}

.article-nav i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.prev-article i {
    margin-right: 15px;
}

.next-article i {
    margin-left: 15px;
}

.nav-content {
    flex: 1;
}

.nav-label {
    display: block;
    font-size: 0.85rem;
    color: var(--light-text);
    margin-bottom: 5px;
}

.nav-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    transition: color 0.3s ease;
}

.article-nav:hover .nav-title {
    color: var(--primary-color);
}

.article-nav-placeholder {
    min-height: 10px;
}

/* Article Sidebar */
.article-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border: 1px solid #f0f0f0;
}

.widget-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

/* Author Widget */
.author-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px;
}

.author-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

.author-info p {
    color: var(--light-text);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.author-social {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.author-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #f5f5f5;
    border-radius: 50%;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.author-social a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Table of Contents Widget */
.toc-widget {
    padding-bottom: 20px;
}

.toc-list {
    list-style: none;
    padding: 0 20px;
    margin: 0;
}

.toc-item {
    margin-bottom: 10px;
}

.toc-subitem {
    margin-bottom: 10px;
    padding-left: 15px;
}

.toc-list a {
    color: var(--text-color);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: block;
    border-left: 2px solid transparent;
    padding: 5px 0 5px 10px;
}

.toc-list a:hover,
.toc-list a.active {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

/* Share Widget */
.share-widget {
    padding: 20px;
}

.share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 5px;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.share-button i {
    margin-right: 8px;
}

.share-button.facebook {
    background-color: #3b5998;
}

.share-button.twitter {
    background-color: #1da1f2;
}

.share-button.pinterest {
    background-color: #bd081c;
}

.share-button.email {
    background-color: #777;
}

.share-button:hover {
    transform: translateY(-3px);
    color: white;
}

/* Related Articles Section */
.related-articles {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.related-articles .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.related-articles .section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.related-articles .section-title p {
    font-size: 1.1rem;
    color: var(--light-text);
    max-width: 700px;
    margin: 0 auto;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

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

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

.related-image {
    height: 180px;
    overflow: hidden;
}

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

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

.related-content {
    padding: 20px;
}

.related-category {
    display: inline-block;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.related-category:hover {
    color: var(--primary-dark);
}

.related-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.related-title a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.related-title a:hover {
    color: var(--primary-color);
}

.related-meta {
    color: var(--light-text);
    font-size: 0.85rem;
}

.related-date {
    display: flex;
    align-items: center;
}

.related-date i {
    margin-right: 5px;
    color: var(--primary-color);
}

/* Call to Action Section */
.cta-section {
    padding: 80px 0;
    background-color: white;
}

.cta-container {
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 15px;
    padding: 60px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cta-content {
    max-width: 700px;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.cta-container .btn {
    background-color: white;
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cta-container .btn:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-5px);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .article-layout {
        gap: 40px;
    }
    
    .cta-container {
        padding: 40px;
    }
}

@media (max-width: 992px) {
    .article-hero {
        padding: 40px 0 30px;
    }
    
    .article-title {
        font-size: 2.5rem;
    }
    
    .article-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .article-content h2.article-heading {
        font-size: 1.8rem;
    }
    
    .article-content h3.article-heading {
        font-size: 1.4rem;
    }
    
    .article-sidebar {
        position: static;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .related-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-container {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .article-meta-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-subtitle {
        font-size: 1.2rem;
    }
    
    .article-section {
        padding: 40px 0;
    }
    
    .article-navigation {
        grid-template-columns: 1fr;
    }
    
    .next-article {
        justify-content: flex-start;
        text-align: left;
    }
    
    .related-articles {
        padding: 60px 0;
    }
    
    .related-articles .section-title h2 {
        font-size: 1.8rem;
    }
    
    .related-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-container {
        padding: 30px 20px;
    }
    
    .share-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-content {
        font-size: 0.95rem;
    }
    
    .article-content h2.article-heading {
        font-size: 1.5rem;
    }
    
    .article-content h3.article-heading {
        font-size: 1.3rem;
    }
}