/* Article Page Specific Styles */
.article-container {
    max-width: 1200px;
    margin: 20px auto 30px;
    padding: 0 20px;
    display: flex;
    gap: 40px;
}

.article-content {
    flex: 0 0 70%;
    max-width: 70%;
}

.article-sidebar {
    flex: 0 0 30%;
    max-width: 30%;
}

/* Breadcrumb Navigation */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin: 0 10px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb a:hover {
    color: var(--secondary-color);
}

.breadcrumb [aria-current="page"] {
    color: var(--primary-color);
    font-weight: 600;
}

/* Article Header */
.article-header {
    margin-bottom: 30px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.category-label {
    background-color: var(--secondary-color);
    color: white;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
}

.article-header h1 {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: contain;
}

.author-name {
    font-weight: 600;
    display: block;
}

.author-title {
    font-size: 0.9rem;
    color: var(--text-light);
}

.social-sharing {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.social-sharing span {
    font-weight: 600;
    font-size: 0.9rem;
}

.social-sharing a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: var(--light-gray);
    border-radius: 50%;
    color: var(--primary-color);
    transition: var(--transition);
}

.social-sharing a:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Article Featured Image */
.article-featured-image {
    margin: 0 0 30px;
}

.article-featured-image img {
    width: 100%;
    border-radius: var(--border-radius);
}

.article-featured-image figcaption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
}

/* Article Body */
.article-body {
    line-height: 1.8;
    font-size: 1.1rem;
}

.article-body h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.article-body h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.article-body h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body a {
    color: var(--secondary-color);
    font-weight: 600;
}

.article-body a:hover {
    text-decoration: underline;
}

.article-body ol, .article-body ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-body li {
    margin-bottom: 10px;
}

/* Special Content Blocks */
.key-takeaways {
    background-color: #f8f9fa;
    border-left: 4px solid var(--secondary-color);
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.key-takeaways h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.stat-box {
    display: flex;
    gap: 20px;
    margin: 25px 0;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.table-responsive {
    overflow-x: auto;
    margin: 25px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: var(--light-gray);
    font-weight: 600;
}

tr:hover {
    background-color: #f5f5f5;
}

.comparison-box {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}

.comparison-item {
    flex: 1;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
}

.comparison-item h4 {
    margin-top: 0;
    color: var(--primary-color);
}

.pros {
    color: #27ae60;
    list-style-type: none;
    padding-left: 0;
}

.pros li::before {
    content: '+';
    margin-right: 5px;
    font-weight: bold;
}

.cons {
    color: #e74c3c;
    list-style-type: none;
    padding-left: 0;
}

.cons li::before {
    content: '-';
    margin-right: 5px;
    font-weight: bold;
}

.case-study, .expert-tip {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 25px 0;
    border-left: 4px solid var(--secondary-color);
}

.case-study h4, .expert-tip h4 {
    margin-top: 0;
    color: var(--primary-color);
}

/* Article Conclusion */
.article-conclusion {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: var(--border-radius);
    margin: 40px 0;
}

.article-conclusion h2 {
    margin-top: 0;
}

.cta-box {
    text-align: center;
    padding: 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    margin: 40px 0;
}

.cta-box h3 {
    margin-top: 0;
    color: white;
}

.cta-box p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Article Footer */
.article-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.article-tags {
    margin-bottom: 30px;
}

.article-tags a {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--light-gray);
    color: var(--text-light);
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: var(--transition);
}

.article-tags a:hover {
    background-color: var(--secondary-color);
    color: white;
}

.author-bio {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
}

.author-bio img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-bio h4 {
    margin-top: 0;
    color: var(--primary-color);
}

/* Sidebar Styles */
.related-articles {
    margin-bottom: 40px;
}

.related-articles h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.related-articles h3::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.related-article {
    margin-bottom: 20px;
}

.related-article img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
}

.related-article h4 {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.4;
}

.newsletter-sidebar {
    background-color: var(--primary-color);
    color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
}

.newsletter-sidebar h3 {
    margin-top: 0;
    color: white;
}

.newsletter-sidebar p {
    margin-bottom: 20px;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.newsletter-form button {
    width: 100%;
    padding: 12px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: white;
    color: var(--primary-color);
}

.privacy-note {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 10px;
}

.table-of-contents {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: var(--border-radius);
}

.table-of-contents h3 {
    margin-top: 0;
    font-size: 1.3rem;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.table-of-contents h3::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.table-of-contents ul {
    list-style: none;
    padding-left: 0;
}

.table-of-contents li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}

.table-of-contents li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.table-of-contents a {
    color: var(--text-color);
    transition: var(--transition);
}

.table-of-contents a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .article-container {
        flex-direction: column;
    }
    
    .article-content, .article-sidebar {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .article-sidebar {
        margin-top: 50px;
    }
}

@media (max-width: 768px) {
    .article-header h1 {
        font-size: 1.8rem;
    }
    
    .article-body h2 {
        font-size: 1.5rem;
    }
    
    .stat-box, .comparison-box {
        flex-direction: column;
    }
    
    .article-container {
        margin-top: 60px;
    }
}

@media (max-width: 576px) {
    .article-header h1 {
        font-size: 1.6rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .article-body {
        font-size: 1rem;
    }
    
    .article-body h2 {
        font-size: 1.3rem;
    }
}