html, body {
    overflow-x: hidden;
}
body { 
    font-family: 'Inter', sans-serif; 
    background-color: #f0f2f5; 
    color: #1f2937; 
    transition: background-color 0.3s, color 0.3s; 
}
html.dark body { 
    background-color: #111827; 
    color: #f3f4f6; 
}
.native-ad-card { 
    border: 2px solid #facc15; 
}
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 1rem; 
}
.news-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); 
}
.dark .news-card:hover { 
    box-shadow: 0 10px 15px -3px rgba(255, 255, 255, 0.1), 0 4px 6px -2px rgba(255, 255, 255, 0.05); 
}
.line-clamp-2 { 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
}
.line-clamp-3 { 
    display: -webkit-box; 
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
}
.ad-container { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    color: #a0aec0; 
    font-size: 0.875rem; 
    border-radius: 0.5rem; 
    padding: 1rem; 
    text-align: center; 
}
.single-article-section .article-content h1,
.single-article-section .article-content h2,
.single-article-section .article-content h3,
.single-article-section .article-content h4,
.single-article-section .article-content h5,
.single-article-section .article-content h6 {
    font-weight: bold;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: #1f2937;
}
html.dark .single-article-section .article-content h1,
html.dark .single-article-section .article-content h2,
html.dark .single-article-section .article-content h3,
html.dark .single-article-section .article-content h4,
html.dark .single-article-section .article-content h5,
html.dark .single-article-section .article-content h6 {
    color: #f3f4f6;
}
.single-article-section .article-content h1 { font-size: 2.25rem; }
.single-article-section .article-content h2 { font-size: 1.875rem; }
.single-article-section .article-content h3 { font-size: 1.5rem; }
.single-article-section .article-content p {
    margin-bottom: 1em;
}
.single-article-section .article-content ul,
.single-article-section .article-content ol {
    margin-left: 1.5em;
    margin-bottom: 1em;
    list-style-position: outside;
}
.single-article-section .article-content ul {
    list-style-type: disc;
}
.single-article-section .article-content ol {
    list-style-type: decimal;
}
.single-article-section .article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1em auto;
    border-radius: 0.5rem;
}
.single-article-section .article-content a {
    color: #06b6d4;
    text-decoration: underline;
}
.dark .single-article-section .article-content a {
    color: #22d3ee;
}

/* --- Custom styles for Category Navigation (CNN-like) --- */
.category-button {
    position: relative;
    white-space: nowrap;
}
.category-button:hover, .category-button.active {
    /* Styles are applied via Tailwind classes in JS */
}
.category-button::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 3px;
    background-color: #06b6d4;
    transition: width 0.3s ease-in-out;
}
.category-button:hover::after, .category-button.active::after {
    width: 100%;
}
.more-dropdown-content.show {
    display: block;
}

/* --- Mobile-specific styles --- */
@media (max-width: 767px) {
    #category-display-area {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    #category-display-area::-webkit-scrollbar {
        display: none;
    }
    .more-dropdown {
        display: block !important;
    }
}
.news-marquee-container {
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}
html.dark .news-marquee-container {
    border-top: 1px solid #374151;
    border-bottom: 1px solid #374151;
}
#marquee-content {
    display: inline-block;
    position: absolute;
    right: 0;
    white-space: nowrap;
    animation: none;
}
@keyframes slideInFromRight {
    0% { transform: translateX(100vw); opacity: 0; }
    10% { transform: translateX(0); opacity: 1; }
    90% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(-100%); opacity: 0; }
}
.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 40; 
  background-color: #f0f2f5; 
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid #e5e7eb;
}
html.dark .sticky-nav {
  background-color: #111827; 
  border-bottom: 1px solid #374151;
}
.content-padding-top {
    padding-top: 70px; 
}