/* News Article Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    color: #333;
    background: #f8f9fa;
    overflow-x: hidden;
    max-width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5em;
    color: #007bff;
    margin-bottom: 5px;
}

.logo span {
    font-size: 0.85em;
    color: #666;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-menu li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu li a:hover {
    color: #007bff;
}

/* Article Container */
.article-container {
    max-width: 1200px;
    width: 100%;
    margin: 100px auto 50px;
    padding: 0 20px;
    overflow-x: hidden;
}

/* Article Header */
.article-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    border-bottom: 2px solid #e9ecef;
}

.article-category {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    margin-bottom: 15px;
}

.article-title {
    font-size: 2.5em;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 0.95em;
    color: #666;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Featured Image */
.featured-image {
    width: 100%;
    margin-bottom: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

/* Two Column Layout */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-bottom: 50px;
}

/* Main Content */
.article-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.article-content h2 {
    font-size: 1.8em;
    margin: 40px 0 20px 0;
    color: #1a1a1a;
    border-left: 4px solid #007bff;
    padding-left: 15px;
}

.article-content h3 {
    font-size: 1.4em;
    margin: 30px 0 15px 0;
    color: #333;
}

.article-content p {
    margin-bottom: 20px;
    line-height: 1.9;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    margin: 30px 0;
    padding: 20px 30px;
    font-style: italic;
    color: #555;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 8px;
}

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

.sidebar-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.sidebar-section h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #1a1a1a;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.toc-list {
    list-style: none;
}

.toc-list li {
    margin-bottom: 10px;
}

.toc-list a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

.toc-list a:hover {
    color: #007bff;
}

.related-articles {
    list-style: none;
}

.related-articles li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.related-articles li:last-child {
    border-bottom: none;
}

.related-articles a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.related-articles a:hover {
    color: #007bff;
}

/* CTA Section */
.article-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    margin: 40px 0;
}

.article-cta h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
}

.article-cta p {
    margin-bottom: 25px;
    font-size: 1.1em;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: #fff;
    padding: 50px 0 20px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: #007bff;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #007bff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
    }

    .article-title {
        font-size: 1.8em;
    }

    .article-content {
        padding: 25px;
    }

    .nav-menu {
        flex-direction: column;
        gap: 10px;
    }
}
