* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.8;
    color: #2c2c2c;
    background: #f8f8f8;
    font-size: 16px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

/* Ensure proper ordering for mobile */
@media (max-width: 1200px) {
    .container {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    
    /* Ensure proper separation on mobile */
    .sidebar {
        margin-bottom: 30px;
        order: 2;
        position: static;
        padding-bottom: 0;
    }
    
    .article-content {
        order: 1;
        margin-bottom: 30px;
    }
    
    .footer {
        order: 3;
        margin-top: 30px;
        clear: both;
    }
    
    /* Force separation on mobile */
    .sidebar::after {
        content: '';
        display: block;
        height: 20px;
        clear: both;
    }
}

/* Header Styles */
.header {
    grid-column: 1 / -1;
    text-align: center;
    padding: 10px 0px;
    border-bottom: 2px solid #2c2c2c;
    margin-bottom: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-logo {
    max-width: 400px;
    width: 500px;
    height: 150px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
}

.header p {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
}

/* Article Navigation */
.article-nav {
    grid-column: 1 / -1;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border: 1px solid #eee;
}

.article-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.article-nav li {
    margin: 0;
    padding: 0;
}

.article-nav a {
    text-decoration: none;
    color: #666;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 2px solid transparent;
    display: block;
    text-align: center;
    min-width: 120px;
}

.article-nav a:hover,
.article-nav a.active {
    background: #2c2c2c;
    color: white;
    border-color: #2c2c2c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 44, 44, 0.3);
}

/* Main Article Content */
.article-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.main-article {
    padding: 0;
}

.article-header {
    padding: 40px 40px 20px;
    border-bottom: 1px solid #eee;
}

.article-header h2 {
    font-family: 'Times New Roman', Times, serif;
    font-size: 2.5rem;
    color: #2c2c2c;
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: bold;
}

.article-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: #666;
}

.article-date,
.article-author,
.article-category {
    padding: 4px 12px;
    background: #f0f0f0;
    border-radius: 15px;
}

.article-category {
    background: #2c2c2c;
    color: white;
}

.article-body {
    padding: 30px 40px;
}

.article-hero {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}

.article-lead {
    font-size: 1.3rem;
    color: #444;
    margin-bottom: 30px;
    font-style: italic;
    line-height: 1.8;
    border-left: 4px solid #2c2c2c;
    padding-left: 20px;
}

.article-body h3 {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.8rem;
    color: #2c2c2c;
    margin: 35px 0 20px;
    font-weight: bold;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.article-body p {
    margin-bottom: 20px;
    text-align: justify;
    text-indent: 20px;
    line-height: 1.8;
    color: #333;
}

.article-footer {
    padding: 30px 40px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

.article-tags {
    margin-bottom: 20px;
}

.tag {
    display: inline-block;
    background: #2c2c2c;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    margin-right: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.article-share span {
    color: #666;
    font-weight: 500;
}

.article-share a {
    color: #666;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.article-share a:hover {
    color: #2c2c2c;
}

/* Related Articles */
.related-articles {
    padding: 30px 40px;
    border-top: 1px solid #eee;
}

.related-articles h3 {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.8rem;
    color: #2c2c2c;
    margin-bottom: 25px;
    font-weight: bold;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.related-article {
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.related-article img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.related-content {
    padding: 20px;
}

.related-content h4 {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.2rem;
    color: #2c2c2c;
    margin-bottom: 10px;
    font-weight: bold;
}

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

.read-more {
    display: inline-block;
    background: #2c2c2c;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.read-more:hover {
    background: #444;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 20px;
}

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

.sidebar-widget h4 {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.3rem;
    color: #2c2c2c;
    margin-bottom: 20px;
    font-weight: bold;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.latest-articles,
.categories {
    list-style: none;
}

.latest-articles li,
.categories li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.latest-articles li:last-child,
.categories li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.latest-articles a,
.categories a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.5;
}

.latest-articles a:hover,
.categories a:hover {
    color: #2c2c2c;
}

/* Sidebar Ads */
.ad-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ad-item {
    position: relative;
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.ad-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.ad-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.ad-image {
    width: 100%;
    height: 120px;
    object-fit: contain;
    background: white;
    padding: 10px;
}

.ad-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(44, 44, 44, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    backdrop-filter: blur(5px);
}

.ad-label {
    font-family: 'Times New Roman', Times, serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer */
.footer {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 40px;
    background: linear-gradient(135deg, #2c2c2c 0%, #444 100%);
    color: white;
    border-radius: 12px;
    margin-top: 50px;
    clear: both;
    position: relative;
    z-index: 1;
    border-top: 3px solid #667eea;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.footer h3 {
    font-family: 'Times New Roman', Times, serif;
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer p {
    margin-bottom: 25px;
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.6;
}

.social-links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-block;
    margin: 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    line-height: 20px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.social-links a:hover {
    background: #667eea;
    color: white;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    border-color: #667eea;
}

.social-links i {
    font-size: 1.3rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    
    .sidebar {
        position: static;
        order: 2;
    }
    
    .article-content {
        order: 1;
    }
    
    .ad-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0;
        gap: 0;
        margin: 0;
        max-width: 100%;
    }
    
    .header {
        padding: 30px 0;
        order: 1;
        margin: 0;
        border-radius: 0;
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }
    
    .header-logo {
        max-width: 500px;
        width: 100%;
        height: 100px;
        margin-bottom: 15px;
        display: block;
        margin-left: auto;
        margin-right: auto;
        object-fit: contain;
    }
    
    .header p {
        font-size: 1rem;
        text-align: center !important;
        width: 100%;
        padding: 0 20px;
    }
    
    .article-nav {
        order: 2;
        padding: 20px;
        margin: 0 0 20px 0;
        border-radius: 0;
        text-align: center !important;
    }
    
    .article-nav ul {
        gap: 10px;
        justify-content: center;
        text-align: center !important;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }
    
    .article-nav a {
        padding: 8px 16px;
        min-width: 100px;
        font-size: 0.9rem;
        text-align: center !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .article-content {
        order: 3;
        margin: 0 0 20px 0;
        border-radius: 0;
    }
    
    .article-header {
        order: 1;
        padding: 25px 20px 20px;
    }
    
    .article-header h2 {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 20px;
        text-align: left;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 12px;
        text-align: left;
    }
    
    .article-date,
    .article-author,
    .article-category {
        padding: 8px 16px;
        font-size: 1rem;
    }
    
    #article-top-ad {
        order: 2;
        margin: 0;
    }
    
    .article-body {
        order: 3;
        padding: 25px 20px;
    }
    
    .article-hero {
        height: 300px;
        margin-bottom: 25px;
    }
    
    .article-lead {
        font-size: 1.3rem;
        margin-bottom: 25px;
        padding-left: 20px;
        border-left-width: 4px;
        text-align: left;
    }
    
    .article-body h3 {
        font-size: 1.8rem;
        margin: 30px 0 20px;
        padding-bottom: 10px;
        text-align: left;
    }
    
    .article-body p {
        margin-bottom: 20px;
        line-height: 1.8;
        text-indent: 0;
        font-size: 1.1rem;
        text-align: left;
        padding-left: 0;
    }
    
    .article-footer {
        order: 4;
        padding: 20px 15px;
    }
    
    .article-tags {
        margin-bottom: 15px;
        text-align: left;
    }
    
    .tag {
        padding: 6px 12px;
        font-size: 0.9rem;
        margin-right: 8px;
        margin-bottom: 8px;
    }
    
    .article-share {
        gap: 12px;
        text-align: left;
    }
    
    #hero-ad {
        order: 5;
        margin: 0;
    }
    
    .related-articles {
        order: 6;
        padding: 20px 15px;
    }
    
    .related-articles h3 {
        font-size: 1.4rem;
        margin-bottom: 20px;
        text-align: left;
    }
    
    .related-grid {
        gap: 20px;
    }
    
    .related-article {
        text-align: left;
    }
    
    .related-article img {
        height: 140px;
    }
    
    .related-content {
        padding: 15px;
        text-align: left;
    }
    
    .related-content h4 {
        font-size: 1.1rem;
        margin-bottom: 10px;
        text-align: left;
    }
    
    .related-content p {
        font-size: 1rem;
        margin-bottom: 12px;
        line-height: 1.5;
        text-align: left;
    }
    
    .read-more {
        padding: 8px 16px;
        font-size: 0.95rem;
        text-align: center;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .sidebar {
        order: 7;
        margin: 0 0 15px 0;
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .sidebar-widget {
        text-align: center !important;
        border-radius: 0;
        padding: 20px 15px;
        margin-bottom: 15px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .sidebar-widget h4 {
        text-align: center !important;
        font-size: 1.3rem;
        margin-bottom: 15px;
        padding-bottom: 8px;
        width: 100%;
    }
    
    .latest-articles,
    .categories {
        text-align: center !important;
        list-style: none;
        padding: 0;
        margin: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .latest-articles li,
    .categories li {
        text-align: center !important;
        margin-bottom: 12px;
        padding-bottom: 12px;
        list-style: none;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .latest-articles a,
    .categories a {
        text-align: center !important;
        display: block;
        font-size: 1rem;
        line-height: 1.4;
        width: 100%;
        text-align: center !important;
        padding: 6px 0;
    }
    
    .footer {
        order: 8;
        padding: 30px 0;
        margin: 0;
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }
    
    .footer h3 {
        font-size: 1.6rem;
        text-align: center !important;
        margin-bottom: 15px;
        width: 100%;
        padding: 0 15px;
    }
    
    .footer p {
        font-size: 1.1rem;
        text-align: center !important;
        margin-bottom: 20px;
        width: 100%;
        padding: 0 15px;
    }
    
    .social-links {
        gap: 10px;
        justify-content: center;
        text-align: center !important;
        margin-top: 20px;
        display: flex;
        align-items: center;
    }
    
    .social-links a {
        width: 45px;
        height: 45px;
        padding: 12px;
        text-align: center !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .social-links i {
        font-size: 1.2rem;
    }
}

/* Mobile-specific optimizations */
@media (max-width: 768px) {
    /* Improve touch targets */
    .article-nav a,
    .read-more,
    .tag {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Better text readability */
    .article-body p {
        text-align: left;
        text-indent: 0;
        padding-left: 0;
    }
    
    /* Optimize images for mobile */
    .article-hero {
        object-fit: cover;
    }
    
    /* Improve form elements */
    input, button, select, textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Better spacing for mobile */
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-share {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    /* Ultra-mobile optimizations */
    .article-nav a,
    .read-more,
    .tag {
        min-height: 40px;
    }
    
    /* Reduce margins for very small screens */
    .article-body h3 {
        margin: 15px 0 10px;
    }
    
    .article-body p {
        margin-bottom: 10px;
    }
    
    /* Optimize sidebar for small screens */
    .sidebar-widget {
        padding: 12px;
    }
    
    /* Better button sizing */
    .read-more {
        width: 100%;
        text-align: center;
    }
}

/* Advertisement Section */
#hero-ad {
    margin: 40px 0;
    padding: 0;
}

.ads-container {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.ads-container img {
    max-width: 100%;
    height: 200px;
    border-radius: 6px;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    background: #ffffff;
}

.ads-container p {
    font-size: 0.9rem;
    margin: 0;
    
    
}

/* Responsive Advertisement */
@media (max-width: 768px) {
    #hero-ad {
        margin: 30px 0;
    }
    
    .ads-container {
        padding: 15px;
        margin: 0 20px;
    }
    
    .ads-container img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    #hero-ad {
        margin: 20px 0;
    }
    
    .ads-container {
        padding: 10px;
        margin: 0 15px;
    }
}