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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.header-flex {
    display: flex;
    align-items: center;
    gap: 15px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #000;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.site-info {
    flex: 1;
}

.site-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

.site-tagline {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    margin: 0;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.logo-placeholder {
    padding: 0;
    border-radius: 4px;
    width: 60px;
    height: 60px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    flex-shrink: 0;
}

.logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    border-radius: 4px;
    max-width: 100%;
    max-height: 100%;
}


/* Main Content */
.main-content {
    padding: 30px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Featured Article */
.featured-article {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.article-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.category {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.breaking {
    background: #dc2626;
    color: white;
}

.live-indicator {
    background: #dc2626;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.article-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    color: #666;
    font-size: 14px;
}

.featured-media {
    position: relative;
    margin-bottom: 30px;
}

.featured-image {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    max-width: 100%;
}


.lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: #444;
    margin-bottom: 20px;
    line-height: 1.5;
}

.article-content p {
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.7;
}

.download-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.download-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.download-btn:hover {
    background: #0056b3;
}

/* Sidebar */
.sidebar {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.inner-ads{
    display: flex;
    width: 100%;
    gap: 10px;
}
.inner-ads img{
    width: 100%;
    height: auto;
    object-fit: contain;
    max-width: 100%;
}
.top-stories-header{
    position: relative;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgb(222, 221, 221);
    border-radius: 10px;
}
.top-stories h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #1a1a1a;
    border-bottom: 3px solid #007bff;
    padding-bottom: 10px;
}

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

.story-item {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.story-item::before {
    content: "•";
    color: #007bff;
    position: absolute;
    left: 0;
    font-size: 20px;
}

.story-link {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.3s;
}

.story-link:hover {
    color: #007bff;
}

/* Related Articles */
.related-articles {
    margin-bottom: 40px;
}

.related-articles h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #1a1a1a;
}

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

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

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

.card-image {
    position: relative;
    height: auto;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-width: 100%;
}

.card-content {
    padding: 20px;
}

.card-category {
    color: #007bff;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 10px 0;
    line-height: 1.3;
    color: #1a1a1a;
}

.card-title a {
    text-decoration: none;
    color: inherit; /* keeps h3 color */
    }

    .card-title a:hover {
    color: #007bff; /* or any highlight color */
    text-decoration: underline;
    }

.card-time {
    color: #666;
    font-size: 13px;
}

/* Comments Section */
.comments-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.comments-section h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #1a1a1a;
}

.comment-count {
    color: #666;
    font-weight: normal;
}

.comment-form {
    margin-bottom: 30px;
}

.comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 15px;
}

.comment-submit {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.comment-submit:hover {
    background: #218838;
}

.comment {
    border-bottom: 1px solid #e1e5e9;
    padding: 20px 0;
    display: flex;
}

.avatar-image {
    width: 50px;
    height: 50px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin-right: 15px;
    flex-shrink: 0;
}

.comment:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.comment-author {
    color: #1a1a1a;
    font-size: 14px;
}

.comment-time {
    color: #666;
    font-size: 12px;
}

.comment-text {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        padding: 12px 0;
    }
    
    .logo {
        gap: 12px;
    }
    
    .logo-placeholder {
        width: 50px;
        height: 50px;
    }
    
    .site-title {
        font-size: 1.6rem;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .article-title {
        font-size: 2rem;
    }

    .featured-image {
        height: auto;
        max-height: none;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .featured-article {
        padding: 20px;
    }

    .sidebar {
        position: static;
    }
    
    .inner-ads {
        flex-direction: column;
        gap: 15px;
    }
    
    .inner-ads img {
        max-width: 100%;
        height: auto;
    }
}

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

    .featured-article {
        padding: 15px;
    }

    .sidebar {
        padding: 20px;
    }

    .comments-section {
        padding: 20px;
    }

    .related-grid {
        gap: 20px;
    }

    .card-content {
        padding: 15px;
    }
    
    .featured-image {
        border-radius: 6px;
    }
    
    .inner-ads {
        gap: 10px;
    }
    
    .top-stories-header {
        margin-bottom: 15px;
    }
}

/* Additional responsive improvements for very small screens */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .featured-article {
        padding: 12px;
    }
    
    .article-title {
        font-size: 1.4rem;
    }
    
    .sidebar {
        padding: 15px;
    }
}

/* Modal background */
.modal {
display: none; /* hidden by default */
position: fixed;
z-index: 1000;
left: 0; top: 0;
width: 100%; height: 100%;
background-color: rgba(0,0,0,0.6);
justify-content: center;
align-items: center;
padding: 10px;
}

/* Modal content */
.modal-content {
position: relative;
background: #fff;
padding: 20px;
border-radius: 12px;
text-align: center;
max-width: 400px;
width: 100%;
box-shadow: 0 5px 15px rgba(0,0,0,0.3);
animation: fadeIn 0.3s ease;
}

.modal-content h2 {
margin-bottom: 10px;
font-size: 1.5rem;
}

.modal-content p {
margin: 15px 0;
font-size: 1rem;
color: #333;
}

.modal-content button {
padding: 10px 20px;
background: #007bff;
border: none;
border-radius: 8px;
color: white;
cursor: pointer;
transition: background 0.3s;
margin-top: 10px;
}

.modal-content button:hover {
background: #0056b3;
}

/* Close (X) button */
.close-btn {
position: absolute;
top: 10px; right: 15px;
font-size: 24px;
cursor: pointer;
}

/* Animation */
@keyframes fadeIn {
from {opacity: 0; transform: scale(0.95);}
to {opacity: 1; transform: scale(1);}
}

.related-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-width: 100%;
    display: block;
}

.top-stories-header img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-width: 100%;
    border-radius: 8px;
}