/* NY Times Style - One Nation Press */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Animation Utility Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Ensure animated elements are always visible */
.animate-on-scroll.animated,
.animate-fade-in-up.animated,
.animate-fade-in.animated {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

/* Force complete visibility for featured sections */
.nyt-featured,
.nyt-featured-articles,
.nyt-featured-main {
    visibility: visible !important;
    opacity: 1 !important;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.6s ease forwards;
}

.animate-slide-right {
    animation: slideInRight 0.6s ease forwards;
}

/* Staggered Animation Delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Initial state for animated elements - DISABLE ON MOBILE */
.animate-on-scroll {
    opacity: 1; /* Always visible */
}

/* Force animation to complete so content is always visible */
.animate-on-scroll {
    opacity: 1 !important;
    animation: none !important;
}

/* Also force other animations to complete */
.animate-fade-in-up,
.animate-fade-in,
.animate-slide-left,
.animate-slide-right {
    opacity: 1 !important;
    animation: none !important;
}

/* Lazy Load Image Placeholder */
.lazy-image-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Lazy Loaded Image Transition */
img.lazy-loaded {
    animation: fadeIn 0.5s ease forwards;
}

/* Breaking News Ticker */
#breaking-news-container {
    margin-bottom: 1.5rem;
}

#breaking-news-container.hidden {
    display: none;
}

.breaking-news-ticker {
    display: flex;
    align-items: center;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 0.5rem;
    padding: 1rem;
    overflow: hidden;
}

.ticker-prev, .ticker-next {
    background: #dc2626;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 10;
}

.ticker-prev:hover, .ticker-next:hover {
    background: #b91c1c;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    margin: 0 10px;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    margin-right: 2rem;
    text-decoration: none;
    color: #1f2937;
}

.ticker-item .breaking-label {
    background: #dc2626;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 0.5rem;
    text-transform: uppercase;
}

.ticker-item .ticker-title {
    font-weight: 500;
    color: #374151;
}

.ticker-item:hover .ticker-title {
    color: #dc2626;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #dc2626;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #b91c1c;
    transform: translateY(-3px);
}

/* Smooth Image Load */
img {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ============================================
   ADVERTISING STYLES
   ============================================ */

/* Ad Container */
.ad-container {
    margin: 1.5rem 0;
    text-align: center;
}

/* Banner Ads */
.ad-banner {
    display: inline-block;
    max-width: 100%;
}

.ad-banner img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Text Ads */
.ad-text {
    display: block;
    padding: 12px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ad-text:hover {
    background: #fff;
    border-color: #dc2626;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ad-text-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.ad-text-description {
    font-size: 14px;
    color: #6b7280;
}

/* Sidebar Ads */
.ad-sidebar {
    display: block;
    padding: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ad-sidebar:hover {
    border-color: #dc2626;
}

.ad-sidebar-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
    margin-bottom: 4px;
}

.ad-sidebar-text {
    font-size: 12px;
    color: #6b7280;
}

/* Video Ads */
.ad-video {
    display: block;
    text-decoration: none;
}

.ad-video-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
    overflow: hidden;
}

.ad-video-thumb {
    width: 100%;
    height: auto;
    display: block;
}

.ad-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

/* Header Ad */
.ad-header {
    width: 100%;
    padding: 10px 0;
    text-align: center;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

/* Article Ad Placements */
.ad-article-top,
.ad-article-bottom {
    margin: 24px 0;
}

.ad-between-paragraph {
    margin: 16px 0;
    padding: 16px 0;
    border-top: 1px dashed #e5e7eb;
    border-bottom: 1px dashed #e5e7eb;
}

/* Responsive */
@media (max-width: 768px) {
    .ad-sidebar-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Base Styles */
:root {
    --color-black: #000000;
    --color-white: #ffffff;
    --color-gray-100: #f5f5f5;
    --color-gray-200: #e0e0e0;
    --color-gray-500: #666666;
    --color-gray-700: #333333;
    --color-gray-900: #121212;
    --color-accent: #326891;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--color-black);
    background-color: var(--color-white);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* Dark mode for body */
.dark body,
.darkmode body {
    background-color: #0f0f0f !important;
    color: #d4d4d4 !important;
}

/* Dark mode for html element */
.dark html,
.darkmode html {
    background-color: #0f0f0f !important;
}

a {
    color: var(--color-black);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-accent);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

/* NY Times Header */
.nyt-header {
    background-color: var(--color-black);
    color: var(--color-white);
    border-bottom: 1px solid var(--color-gray-700);
}

.nyt-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    border-bottom: 1px solid var(--color-gray-700);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nyt-header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nyt-logo {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: -0.5px;
}

.nyt-logo:hover {
    color: var(--color-white);
    text-decoration: none;
}

.nyt-nav {
    display: flex;
    gap: 20px;
}

.nyt-nav a {
    color: var(--color-white);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.nyt-nav a:hover {
    color: var(--color-white);
    border-bottom-color: var(--color-white);
}

.nyt-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nyt-search-btn {
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    padding: 5px;
}

.nyt-search-btn:hover {
    opacity: 0.8;
}

/* Date Display */
.nyt-date {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-gray-500);
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-black);
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Article Card - Modern Media Style */
.nyt-article-card {
    display: block;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    border: none;
    padding: 0;
}

.nyt-article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.15), 0 10px 10px -5px rgba(0,0,0,0.1);
}

.nyt-article-card .card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.nyt-article-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nyt-article-card:hover .card-image img {
    transform: scale(1.08);
}

.nyt-article-card .card-image .category-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #dc2626;
    color: white;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

.nyt-article-card .card-content {
    padding: 18px;
}

.nyt-article-card .category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #dc2626;
    margin-bottom: 10px;
    display: block;
}

.nyt-article-card h3 {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: #111827;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.nyt-article-card h3:hover {
    color: #dc2626;
    text-decoration: none;
}

.nyt-article-card .excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nyt-article-card .meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #9ca3af;
    gap: 8px;
}

.nyt-article-card .meta .author {
    font-weight: 600;
    color: #4b5563;
}

.nyt-article-card .meta .separator {
    color: #d1d5db;
}

.nyt-article-card .read-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 20px;
}

.nyt-article-card .meta-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Featured Article Card */
.nyt-featured {
    border-bottom: 1px solid var(--color-black);
    padding-bottom: 30px;
}

.nyt-article-card .category {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-accent);
    margin-bottom: 8px;
    display: block;
}

.nyt-article-card h3 {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
    color: var(--color-black);
}

.nyt-article-card h3:hover {
    text-decoration: underline;
}

.nyt-article-card .excerpt {
    font-size: 14px;
    color: var(--color-gray-700);
    line-height: 1.5;
    margin-bottom: 12px;
}

.nyt-article-card .meta {
    font-size: 12px;
    color: var(--color-gray-500);
}

.nyt-article-card .meta .author {
    font-weight: 600;
    color: var(--color-black);
}

.nyt-article-card .meta .separator {
    margin: 0 8px;
    color: var(--color-gray-500);
}

/* Featured Article - NY Times Style */
.nyt-featured {
    border-bottom: 2px solid var(--color-black);
    padding-bottom: 24px;
    margin-bottom: 32px;
    min-height: 100px;
    overflow: visible;
    visibility: visible;
    opacity: 1;
}

/* Featured Layout - Side by side */
.nyt-featured-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    visibility: visible !important;
    opacity: 1 !important;
}

@media (min-width: 1024px) {
    .nyt-featured-layout {
        grid-template-columns: 1.6fr 1fr;
        gap: 32px;
        align-items: start;
    }
}

/* Featured Image */
.nyt-featured-image {
    overflow: hidden;
    border-radius: 4px;
    min-height: 200px;
    background: #f5f5f5;
}

.nyt-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.nyt-featured-image a:hover img {
    transform: scale(1.02);
}

/* Featured Content */
.nyt-featured-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Category Tag */
.nyt-featured-category {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-red-600);
}

.nyt-featured-category a {
    color: inherit;
    text-decoration: none;
}

.nyt-featured-category a:hover {
    text-decoration: underline;
}

/* Title - Serif like NY Times */
.nyt-featured-title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
}

@media (min-width: 1024px) {
    .nyt-featured-title {
        font-size: 36px;
    }
}

.nyt-featured-title a {
    color: var(--color-black);
    text-decoration: none;
}

.nyt-featured-title a:hover {
    text-decoration: underline;
}

/* Excerpt */
.nyt-featured-excerpt {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-gray-700);
    margin: 0;
}

@media (min-width: 1024px) {
    .nyt-featured-excerpt {
        font-size: 17px;
        line-height: 1.6;
    }
}

/* Meta Info */
.nyt-featured-meta {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-gray-500);
    margin-top: 8px;
}

.nyt-featured-meta .author {
    font-weight: 600;
    color: var(--color-black);
}

.nyt-featured-meta .separator {
    margin: 0 8px;
}

/* Old featured styles - kept for compatibility */
.nyt-featured h1 {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

.nyt-featured h1:hover {
    text-decoration: underline;
}

.nyt-featured .excerpt {
    font-size: 16px;
    color: var(--color-gray-700);
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Article Image */
.nyt-image {
    width: 100%;
    height: auto;
    border-radius: 0;
    margin-bottom: 15px;
}

/* Sidebar */
.nyt-sidebar-section {
    border-bottom: 1px solid var(--color-gray-200);
    padding: 20px 0;
}

.nyt-sidebar-section h3 {
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

/* Trending List */
.nyt-trending {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nyt-trending li {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-gray-200);
}

.nyt-trending li:last-child {
    border-bottom: none;
}

.nyt-trending .rank {
    font-family: var(--font-serif);
    font-size: 30px;
    font-weight: 700;
    color: var(--color-gray-200);
    margin-right: 15px;
    min-width: 35px;
}

.nyt-trending a {
    flex: 1;
}

.nyt-trending h4 {
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.nyt-trending h4:hover {
    text-decoration: underline;
}

/* Category List */
.nyt-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nyt-categories li {
    padding: 8px 0;
    border-bottom: 1px solid var(--color-gray-200);
}

.nyt-categories li:last-child {
    border-bottom: none;
}

.nyt-categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
}

.nyt-categories a:hover {
    text-decoration: underline;
}

/* Buttons */
.nyt-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid var(--color-black);
    background-color: var(--color-black);
    color: var(--color-white);
    cursor: pointer;
    transition: all 0.2s ease;
}

.nyt-btn:hover {
    background-color: var(--color-white);
    color: var(--color-black);
}

.nyt-btn-outline {
    background-color: var(--color-white);
    color: var(--color-black);
}

.nyt-btn-outline:hover {
    background-color: var(--color-black);
    color: var(--color-white);
}

/* Form Styles */
.nyt-form input,
.nyt-form textarea,
.nyt-form select {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    font-family: var(--font-sans);
    border: 1px solid var(--color-gray-200);
    background-color: var(--color-white);
    margin-bottom: 15px;
    transition: border-color 0.2s ease;
}

.nyt-form input:focus,
.nyt-form textarea:focus,
.nyt-form select:focus {
    outline: none;
    border-color: var(--color-black);
}

/* Newsletter Box */
.nyt-newsletter {
    background-color: var(--color-gray-100);
    padding: 20px;
    text-align: center;
    border: 1px solid var(--color-gray-200);
}

.nyt-newsletter h3 {
    font-family: var(--font-serif);
    font-size: 18px;
    margin-bottom: 10px;
}

.nyt-newsletter p {
    font-size: 14px;
    color: var(--color-gray-700);
    margin-bottom: 15px;
}

.nyt-newsletter input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--color-gray-200);
    margin-bottom: 10px;
}

/* CTA Box */
.nyt-cta {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 25px;
    text-align: center;
}

.nyt-cta h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    margin-bottom: 10px;
}

.nyt-cta p {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.9;
}

/* Footer */
.nyt-footer {
    background-color: var(--color-white);
    border-top: 1px solid var(--color-black);
    padding: 40px 20px;
    margin-top: 60px;
}

.nyt-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.nyt-footer h4 {
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.nyt-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nyt-footer li {
    padding: 5px 0;
}

.nyt-footer a {
    font-size: 13px;
    color: var(--color-gray-700);
}

.nyt-footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--color-gray-200);
    text-align: center;
    font-size: 12px;
    color: var(--color-gray-500);
}

/* CNN Indonesia Style Footer */
.cnn-footer {
    background-color: #0f0f0f;
    color: #ffffff;
    padding: 60px 0 30px;
    font-family: 'Source Sans 3', sans-serif;
    margin-top: 0;
}

.cnn-footer-top {
    background-color: #0f0f0f;
    padding: 40px 0;
}

.cnn-footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.cnn-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
}

.cnn-footer-brand {
    padding-right: 40px;
}

.cnn-footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.cnn-footer-desc {
    font-size: 14px;
    color: #a0a0a0;
    line-height: 1.6;
    margin-bottom: 20px;
}

.cnn-social-links {
    display: flex;
    gap: 12px;
}

.cnn-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #2a2a2a;
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.3s ease;
}

.cnn-social-link:hover {
    background-color: #cc0000;
    transform: translateY(-2px);
}

.cnn-footer-column {
    min-width: 0;
}

.cnn-footer-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cnn-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cnn-footer-links li {
    padding: 6px 0;
}

.cnn-footer-links a {
    font-size: 13px;
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cnn-footer-links a:hover {
    color: #ffffff;
}

.cnn-footer-bottom {
    background-color: #000000;
    padding: 20px 0;
    margin-top: 40px;
}

.cnn-footer-bottom-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cnn-footer-bottom p {
    font-size: 13px;
    color: #808080;
    margin: 0;
}

.cnn-footer-tagline {
    font-style: italic;
    color: #a0a0a0 !important;
}

@media (max-width: 1024px) {
    .cnn-footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .cnn-footer-brand {
        grid-column: span 3;
    }
}

@media (max-width: 768px) {
    .cnn-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cnn-footer-brand {
        grid-column: span 2;
    }
    
    .cnn-footer-bottom-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cnn-footer-grid {
        grid-template-columns: 1fr;
    }
    
    .cnn-footer-brand {
        grid-column: span 1;
    }
}

/* Article Detail */
.nyt-article-header {
    text-align: center;
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.nyt-article-header h1 {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.nyt-article-header .category {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
    margin-bottom: 15px;
    display: block;
}

.nyt-article-header .excerpt {
    font-size: 18px;
    color: var(--color-gray-700);
    line-height: 1.6;
    margin-bottom: 20px;
}

.nyt-article-header .meta {
    font-size: 14px;
    color: var(--color-gray-500);
}

.nyt-article-header .meta .author {
    font-weight: 600;
    color: var(--color-black);
}

.nyt-article-content {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 18px;
    line-height: 1.8;
}

.nyt-article-content p {
    margin-bottom: 25px;
}

/* Responsive */
@media (max-width: 1024px) {
    .nyt-header-main {
        padding: 15px;
    }
    
    .nyt-logo {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .nyt-articles-grid {
        grid-template-columns: 1fr;
    }
    
    /* Fix for index.php article card layout - show text on mobile */
    .nyt-article-card .grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .nyt-article-card .grid > div {
        width: 100% !important;
    }
    
    .nyt-article-card img {
        width: 100% !important;
        height: 180px !important;
        object-fit: cover !important;
    }
    
    .nyt-article-card .category {
        font-size: 11px;
        display: inline-block !important;
    }
    
    .nyt-article-card h3 {
        font-size: 16px;
        line-height: 1.4;
        margin: 8px 0;
        display: block !important;
    }
    
    .nyt-article-card .excerpt {
        display: block !important;
        font-size: 13px;
        line-height: 1.5;
        color: #4b5563;
    }
    
    .nyt-article-card .meta {
        font-size: 11px;
        margin-top: 8px;
        display: flex !important;
    }
    
    /* Ensure text content is visible on mobile */
    .nyt-article-card .grid > div:last-child > * {
        display: block !important;
    }
    
    /* Improve Sidebar on Mobile */
    .nyt-sidebar {
        padding: 15px;
    }
    
    .nyt-widget {
        margin-bottom: 20px;
        padding: 15px;
    }
    
    /* Category Page */
    .nyt-category-header {
        padding: 30px 15px;
    }
    
    .nyt-category-title {
        font-size: 28px;
    }
    
    /* Form Elements */
    .nyt-form-input,
    .nyt-form-textarea,
    .nyt-form-select {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .nyt-form-label {
        font-size: 14px;
    }
    
    /* Buttons */
    .nyt-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    /* Article Content */
    .nyt-article-content {
        padding: 15px;
        font-size: 16px;
        line-height: 1.7;
    }
    
    .nyt-article-content p {
        margin-bottom: 20px;
    }
    

    /* Footer */
    .nyt-footer {
        padding: 30px 15px;
    }
    
    .nyt-footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    /* Pagination */
    .nyt-pagination {
        gap: 5px;
    }
    
    .nyt-pagination a,
    .nyt-pagination span {
        padding: 8px 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .nyt-footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .nyt-footer h4 {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .nyt-footer a {
        font-size: 12px;
    }
    
    .nyt-footer-bottom {
        flex-direction: column;
        gap: 10px;
        font-size: 11px;
    }
    
    .nyt-header-main {
        padding: 12px 8px;
    }
    
    .nyt-logo {
        font-size: 18px;
    }
    
    .nyt-article-header h1 {
        font-size: 20px;
    }
    
    .nyt-section-title,
    .nyt-page-title {
        font-size: 24px;
    }
    
    .nyt-article-content {
        font-size: 15px;
    }
    
    .nyt-article-content h2 {
        font-size: 20px;
    }
    
    .nyt-article-content h3 {
        font-size: 18px;
    }
    
    /* Article Card Mobile Fixes */
    .nyt-article-card img {
        height: 160px !important;
    }
    
    .nyt-article-card h3 {
        font-size: 15px;
    }
    
    .nyt-article-card .excerpt {
        font-size: 12px;
    }
    
    /* Smaller elements */
    .nyt-meta {
        font-size: 12px;
    }
    
    .nyt-category-tag {
        font-size: 11px;
        padding: 4px 8px;
    }
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }

.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:col-span-3 { grid-column: span 3 / span 3; }
    .md\:col-span-4 { grid-column: span 4 / span 4; }
    .md\:col-span-8 { grid-column: span 8 / span 8; }
    .md\:col-span-9 { grid-column: span 9 / span 9; }
}

.col-span-12 { grid-column: span 12 / span 12; }
.col-span-8 { grid-column: span 8 / span 12; }
.col-span-4 { grid-column: span 4 / span 12; }

.hidden { display: none; }

@media (min-width: 768px) {
    .md\:block { display: block; }
    .md\:hidden { display: none; }
}

.max-w-7xl { max-width: 80rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-2xl { max-width: 42rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.w-full { width: 100%; }
.h-64 { height: 16rem; }
.h-96 { height: 24rem; }

.object-cover { object-fit: cover; }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }

.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-black { background-color: #000000; }

.text-white { color: #ffffff; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }

.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }

.border { border-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.border-black { border-color: #000000; }
.border-gray-200 { border-color: #e5e7eb; }

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}

/* Category Page Styles */
.nyt-section-header {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-black);
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 30px;
}

.nyt-section-title {
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-black);
}

.nyt-section-subtitle {
    font-size: 16px;
    color: var(--color-gray-500);
}

.nyt-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.nyt-article-card {
    display: block;
    border-bottom: none;
    padding: 0;
}

.nyt-article-card:hover {
    background-color: transparent;
}

.nyt-card-link {
    display: block;
}

.nyt-card-image-wrapper {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    margin-bottom: 15px;
    background-color: var(--color-gray-100);
}

.nyt-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.nyt-card-link:hover .nyt-card-image {
    transform: scale(1.03);
}

.nyt-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nyt-card-content {
    padding: 0;
}

.nyt-card-meta {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nyt-card-category {
    font-weight: 600;
    color: var(--color-accent);
}

.nyt-card-divider {
    color: var(--color-gray-500);
}

.nyt-card-date {
    color: var(--color-gray-500);
}

.nyt-card-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
    color: var(--color-black);
}

.nyt-card-link:hover .nyt-card-title {
    text-decoration: underline;
}

.nyt-card-excerpt {
    font-size: 14px;
    color: var(--color-gray-700);
    line-height: 1.5;
    margin: 0;
}

.nyt-empty-state {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--color-gray-100);
    border: 1px solid var(--color-gray-200);
}

/* Dark mode for empty state */
.dark .nyt-empty-state,
.darkmode .nyt-empty-state {
    background-color: #1a1a1a !important;
    border-color: #333333 !important;
}

/* Dark mode for mobile menu button */
.dark #mobile-menu-btn svg,
.darkmode #mobile-menu-btn svg {
    color: #ffffff !important;
}

/* Page Header Styles */
.nyt-page-header {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-black);
    padding: 50px 20px;
    text-align: center;
}

/* Dark mode for page header */
.dark .nyt-page-header,
.darkmode .nyt-page-header {
    background-color: #1a1a1a !important;
    border-bottom-color: #333333 !important;
}

.dark .nyt-page-title,
.darkmode .nyt-page-title {
    color: #f5f5f5 !important;
}

.dark .nyt-page-subtitle,
.darkmode .nyt-page-subtitle {
    color: #a3a3a3 !important;
}

/* Ensure text-gray-600 works in dark mode */
.dark .text-gray-600,
.darkmode .text-gray-600 {
    color: #a3a3a3 !important;
}

.nyt-page-title {
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-black);
}

.nyt-page-subtitle {
    font-size: 18px;
    color: var(--color-gray-700);
    max-width: 600px;
    margin: 0 auto;
}

/* Form Styles - NY Times */
.nyt-form {
    max-width: 100%;
}

.nyt-form-group {
    margin-bottom: 25px;
}

.nyt-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 8px;
}

.nyt-input,
.nyt-select {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: var(--font-sans);
    border: 1px solid var(--color-gray-200);
    background-color: var(--color-white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nyt-input:focus,
.nyt-select:focus {
    outline: none;
    border-color: var(--color-black);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.nyt-input::placeholder {
    color: var(--color-gray-500);
}

.nyt-hint {
    font-size: 13px;
    color: var(--color-gray-500);
    margin-top: 6px;
    margin-bottom: 0;
}

.nyt-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.nyt-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--color-black);
}

.nyt-checkbox-label {
    font-size: 14px;
    color: var(--color-gray-700);
    line-height: 1.5;
}

.nyt-button {
    display: inline-block;
    width: 100%;
    padding: 16px 24px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nyt-button-primary {
    background-color: var(--color-black);
    color: var(--color-white);
}

.nyt-button-primary:hover {
    background-color: var(--color-gray-700);
}

.nyt-link {
    color: var(--color-black);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.nyt-link:hover {
    color: var(--color-accent);
}

/* Alert Styles */
.nyt-alert {
    padding: 20px 24px;
    margin-bottom: 30px;
    border: 1px solid;
}

.nyt-alert-success {
    background-color: #f0fdf4;
    border-color: #86efac;
    color: #166534;
}

.nyt-alert-error {
    background-color: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}

/* Guidelines Box */
.nyt-guidelines {
    background-color: var(--color-gray-100);
    border: 1px solid var(--color-gray-200);
    padding: 25px;
    margin-top: 40px;
}

.nyt-guidelines-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-black);
}

.nyt-guidelines-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nyt-guidelines-list li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--color-gray-700);
}

/* Responsive */
@media (max-width: 1024px) {
    .nyt-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nyt-header-main {
        padding: 15px;
    }
    
    .nyt-logo {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .nyt-section-header,
    .nyt-page-header {
        padding: 30px 20px;
    }
    
    .nyt-section-title,
    .nyt-page-title {
        font-size: 28px;
    }
    
    .nyt-articles-grid {
        grid-template-columns: 1fr;
    }
    
    /* Featured Articles Mobile */
    .nyt-featured-articles {
        grid-template-columns: 1fr;
    }
    
    .nyt-featured-main {
        margin-bottom: 20px;
    }
    
    /* Two Column Layout for Pages */
    .nyt-content-with-sidebar {
        grid-template-columns: 1fr;
    }
    
    .nyt-sidebar {
        margin-top: 30px;
    }
    
    /* Ad Containers */
    .ad-container {
        margin: 20px 0;
    }
    
    /* Contact Form */
    .nyt-contact-form {
        padding: 20px;
    }
    
    /* Form Groups */
    .nyt-form-group {
        margin-bottom: 20px;
    }
    
    /* Search Results */
    .nyt-search-results {
        padding: 15px;
    }
    
    .nyt-search-result {
        padding: 15px;
    }
}

/* Quill Editor Override */
.ql-container {
    font-family: var(--font-sans) !important;
    font-size: 16px !important;
}

.ql-editor {
    min-height: 250px;
}

.ql-toolbar {
    border-color: var(--color-gray-200) !important;
}

.ql-container {
    border-color: var(--color-gray-200) !important;
}

/* Prose - Article Content Styling */
.prose {
    color: #1a1a1a;
    line-height: 1.8;
}

.prose p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

/* Fix spacing for br tags used as paragraph breaks */
.prose br {
    display: block;
    content: "";
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Handle text nodes and raw newlines */
.prose > span {
    display: block;
    margin-bottom: 1.5rem;
}

.prose div:not([class]) {
    margin-bottom: 1.5rem;
}

.prose h2 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #111827;
}

.prose h3 {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.prose h4 {
    font-family: var(--font-sans);
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #374151;
}

.prose ul, .prose ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.prose ol {
    list-style-type: decimal;
}

.prose ol li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.prose ul {
    list-style-type: disc;
}

.prose ul li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
    font-size: 1.0625rem;
}

/* ============================================
   DARK MODE STYLES
   ============================================ */

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    background: #f3f4f6;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #374151;
    position: relative;
    overflow: hidden;
}

.dark-mode-toggle:hover {
    background: #e5e7eb;
    transform: scale(1.1);
}

.dark-mode-toggle .icon {
    width: 20px;
    height: 20px;
    position: absolute;
    transition: all 0.3s ease;
}

/* TOC Number styling */
#comments-section ul li .font-mono {
    min-width: 2.5em;
    text-align: center;
}

.dark #comments-section ul li .font-mono {
    background-color: #374151;
}

.dark .dark-mode-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0deg);
    color: #fbbf24 !important; /* Yellow/Gold sun */
}

.dark-mode-toggle .sun-icon {
    opacity: 0;
    transform: rotate(-90deg);
    color: #fbbf24 !important; /* Yellow/Gold sun */
}

.dark-mode-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg);
    color: #1a1a1a !important; /* Black moon */
}

/* Dark Mode Styles */
.dark body,
.darkmode body {
    background-color: #121212 !important;
    color: #e5e5e5;
}

.dark .bg-white,
.darkmode .bg-white {
    background-color: #1e1e1e !important;
}

.dark .bg-gray-50,
.darkmode .bg-gray-50 {
    background-color: #1a1a1a !important;
}

.dark .bg-gray-100,
.darkmode .bg-gray-100 {
    background-color: #2d2d2d !important;
}

.dark .text-gray-900,
.darkmode .text-gray-900 {
    color: #f5f5f5 !important;
}

.dark .text-gray-800,
.darkmode .text-gray-800 {
    color: #e5e5e5 !important;
}

.dark .text-gray-700,
.darkmode .text-gray-700 {
    color: #d4d4d4 !important;
}

.dark .text-gray-600,
.darkmode .text-gray-600 {
    color: #a3a3a3 !important;
}

.dark .text-gray-500,
.darkmode .text-gray-500 {
    color: #737373 !important;
}

.dark .border-gray-200,
.darkmode .border-gray-200 {
    border-color: #404040 !important;
}

.dark .border-gray-100,
.darkmode .border-gray-100 {
    border-color: #363636 !important;
}

.dark .prose,
.darkmode .prose {
    color: #e5e5e5;
}

.dark .prose h1,
.dark .prose h2,
.dark .prose h3,
.dark .prose h4,
.darkmode .prose h1,
darkmode .prose h2,
darkmode .prose h3,
darkmode .prose h4 {
    color: #f5f5f5 !important;
}

.dark .prose p,
darkmode .prose p {
    color: #d4d4d4 !important;
}

.dark .prose strong,
.dark .prose b,
darkmode .prose strong,
darkmode .prose b {
    color: #f5f5f5 !important;
}

.dark .prose a,
darkmode .prose a {
    color: #60a5fa !important;
}

.dark .prose blockquote,
darkmode .prose blockquote {
    color: #a3a3a3 !important;
    border-left-color: #ef4444 !important;
}

.dark .prose code,
darkmode .prose code {
    background-color: #2d2d2d;
    color: #f5f5f5;
}

.dark .prose pre,
darkmode .prose pre {
    background-color: #1e1e1e;
}

.dark .prose th,
darkmode .prose th {
    background-color: #2d2d2d;
}

.dark .prose td,
darkmode .prose td {
    border-color: #404040 !important;
}

.dark .nyt-header,
darkmode .nyt-header {
    background-color: #1e1e1e !important;
    border-bottom-color: #404040 !important;
}

.dark .nyt-header-top,
darkmode .nyt-header-top {
    background-color: #2d2d2d !important;
    border-bottom-color: #404040 !important;
}

.dark .nyt-header-top span,
darkmode .nyt-header-top span {
    color: #a3a3a3 !important;
}

.dark .nyt-nav,
darkmode .nyt-nav {
    background-color: #1e1e1e !important;
    border-bottom-color: #404040 !important;
}

.dark .nyt-nav a,
darkmode .nyt-nav a {
    color: #d4d4d4 !important;
}

.dark .nyt-nav a:hover,
darkmode .nyt-nav a:hover {
    color: #f5f5f5 !important;
}

.dark .article-card,
darkmode .article-card {
    background-color: #1e1e1e !important;
    border-color: #404040 !important;
}

.dark .article-card:hover,
darkmode .article-card:hover {
    background-color: #2d2d2d !important;
}

.dark .article-card h3,
darkmode .article-card h3 {
    color: #f5f5f5 !important;
}

.dark .article-card p,
darkmode .article-card p {
    color: #a3a3a3 !important;
}

.dark .sidebar-section,
.darkmode .sidebar-section {
    background-color: #1e1e1e !important;
    border-color: #404040 !important;
}

.dark input,
.dark textarea,
.dark select,
.darkmode input,
.darkmode textarea,
.darkmode select {
    background-color: #2d2d2d !important;
    border-color: #404040 !important;
    color: #f5f5f5 !important;
}

.dark input::placeholder,
dark textarea::placeholder,
darkmode input::placeholder,
darkmode textarea::placeholder {
    color: #737373 !important;
}

.dark .text-black,
darkmode .text-black {
    color: #f5f5f5 !important;
}

.dark .card,
darkmode .card {
    background-color: #1e1e1e !important;
    border-color: #404040 !important;
}

.dark .footer,
darkmode .footer {
    background-color: #1a1a1a !important;
    border-top-color: #404040 !important;
}

.dark .footer a,
darkmode .footer a {
    color: #a3a3a3 !important;
}

.dark .footer a:hover,
darkmode .footer a:hover {
    color: #f5f5f5 !important;
}

.dark .modal,
darkmode .modal {
    background-color: #1e1e1e !important;
}

.dark .dropdown-menu,
darkmode .dropdown-menu {
    background-color: #1e1e1e !important;
    border-color: #404040 !important;
}

.dark .dropdown-item,
darkmode .dropdown-item {
    color: #d4d4d4 !important;
}

.dark .dropdown-item:hover,
darkmode .dropdown-item:hover {
    background-color: #2d2d2d !important;
}

/* Smooth transition for theme changes */
.dark *,
.darkmode * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

/* Form elements in dark mode */
.dark .form-control,
.darkmode .form-control {
    background-color: #2d2d2d;
    border-color: #404040;
    color: #f5f5f5;
}

.dark .btn,
darkmode .btn {
    border-color: #404040;
}

/* Article Card Dark Mode Fixes */
.dark .nyt-article-card,
darkmode .nyt-article-card {
    background-color: #1e1e1e !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.dark .nyt-article-card:hover,
darkmode .nyt-article-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.4);
}

.dark .nyt-article-card .category-badge,
darkmode .nyt-article-card .category-badge {
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.6);
}

.dark .nyt-article-card .category,
darkmode .nyt-article-card .category {
    color: #f87171 !important;
}

.dark .nyt-article-card h3,
darkmode .nyt-article-card h3 {
    color: #f5f5f5 !important;
}

.dark .nyt-article-card h3:hover,
darkmode .nyt-article-card h3:hover {
    color: #60a5fa !important;
}

.dark .nyt-article-card .excerpt,
darkmode .nyt-article-card .excerpt {
    color: #d4d4d4 !important;
}

.dark .nyt-article-card .meta,
darkmode .nyt-article-card .meta {
    color: #737373 !important;
}

.dark .nyt-article-card .meta .author,
darkmode .nyt-article-card .meta .author {
    color: #a3a3a3 !important;
}

.dark .nyt-section-title,
darkmode .nyt-section-title {
    color: #f5f5f5 !important;
}

.dark .nyt-card-date,
darkmode .nyt-card-date {
    color: #737373 !important;
}

.dark .nyt-card-divider,
darkmode .nyt-card-divider {
    color: #525252 !important;
}

.dark .nyt-card-category,
darkmode .nyt-card-category {
    color: #f87171 !important;
}

.dark .text-gray-400,
darkmode .text-gray-400 {
    color: #a3a3a3 !important;
}

.dark .text-gray-300,
darkmode .text-gray-300 {
    color: #d4d4d4 !important;
}

.dark .border-gray-300,
darkmode .border-gray-300 {
    border-color: #525252 !important;
}

.dark .bg-gray-200,
darkmode .bg-gray-200 {
    background-color: #404040 !important;
}

/* Newsletter Dark Mode */
.dark .bg-gradient-to-r.from-red-600,
darkmode .bg-gradient-to-r.from-red-600 {
    background: linear-gradient(to right, #7f1d1d, #991b1b) !important;
}

/* Reading Progress Bar */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 10000;
}

.dark .reading-progress-container {
    background: rgba(255, 255, 255, 0.1);
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #dc2626, #ef4444);
    width: 0%;
    transition: width 0.1s ease-out;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
}

.reading-progress-percentage {
    position: fixed;
    top: 10px;
    right: 20px;
    background: #dc2626;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reading-progress-percentage.visible {
    opacity: 1;
}

/* AI Key Points Section */
.dark .bg-gradient-to-r.from-blue-50,
darkmode .bg-gradient-to-r.from-blue-50 {
    background: linear-gradient(to right, #1e3a5f, #172554) !important;
}

.dark .text-blue-900,
darkmode .text-blue-900 {
    color: #bfdbfe !important;
}

.prose blockquote {
    border-left: 4px solid #ef4444;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
    border-radius: 0 8px 8px 0;
    font-style: normal;
    color: #4b5563;
    font-size: 1rem;
    font-family: var(--font-sans, system-ui, sans-serif);
    position: relative;
}

/* Blockquote indicator/label */
.prose blockquote::before {
    content: "\201C";
    font-family: Georgia, serif;
    font-size: 3rem;
    color: #ef4444;
    position: absolute;
    left: 0.5rem;
    top: -0.5rem;
    line-height: 1;
    opacity: 0.5;
}

.prose blockquote p {
    margin: 0;
    line-height: 1.7;
}

.prose a {
    color: #2563eb;
    text-decoration: underline;
}

.prose a:hover {
    color: #1d4ed8;
}

.prose img {
    border-radius: 0.5rem;
    margin: 2rem 0;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.prose th, .prose td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
    text-align: left;
}

.prose th {
    background-color: #f9fafb;
    font-weight: 600;
}

/* Line clamp for truncating text */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}

/* Mobile Article Display Fixes */
@media (max-width: 768px) {
    .prose {
        font-size: 16px;
        line-height: 1.7;
    }
    
    .prose p {
        font-size: 16px;
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }
    
    .prose h2 {
        font-size: 1.5rem;
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .prose h3 {
        font-size: 1.25rem;
        margin-top: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .prose img {
        margin: 1rem 0;
        border-radius: 0.5rem;
    }
    
    .prose blockquote {
        margin: 1rem 0;
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    .prose ul, .prose ol {
        padding-left: 1.5rem;
    }
    
    .prose table {
        font-size: 14px;
    }
    
    .prose th, .prose td {
        padding: 0.5rem;
    }
    
    /* Mobile br tag spacing */
    .prose br {
        margin-top: 1rem;
        margin-bottom: 1rem;
        display: block;
        content: "";
    }
    
    /* Mobile dark mode bold text */
    .dark .prose strong,
    .dark .prose b,
    .darkmode .prose strong,
    .darkmode .prose b {
        color: #ffffff !important;
        font-weight: 700 !important;
    }
    
    /* Handle text with newlines that aren't wrapped in p tags */
    .prose > span {
        display: block;
        margin-bottom: 1.5rem;
    }
    
    .prose div:not([class]) {
        margin-bottom: 1.5rem;
    }
}

/* Ensure article content is visible on all devices */
.prose {
    color: #1a1a1a !important;
    background-color: transparent !important;
}

.prose p, .prose span, .prose div {
    color: #1a1a1a !important;
    background-color: transparent !important;
}

/* Force visibility for any potential conflicts */
article.prose * {
    color: inherit !important;
}

/* Fix sidebar overflow on mobile */
@media (max-width: 768px) {
    /* Ensure main content area is visible */
    main {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: #ffffff !important;
    }
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden !important;
        background: #ffffff !important;
    }
    
    /* Ensure article content is visible on mobile */
    .max-w-4xl {
        max-width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        background: #ffffff !important;
    }
    
    /* Make sure article container is visible */
    main > div[style*="background-color"] {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: #ffffff !important;
    }
    
    /* Ensure all content inside article is visible */
    .prose {
        color: #1a1a1a !important;
        display: block !important;
        visibility: visible !important;
        background: #ffffff !important;
    }
    
    /* Force all text to be visible */
    * {
        visibility: visible !important;
    }
    
    /* Ensure grid is visible */
    .grid {
        display: grid !important;
        visibility: visible !important;
    }
    
    /* Article grid should stack vertically on mobile */
    .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3 {
        grid-template-columns: 1fr !important;
    }
    
    /* Make sure text is visible on any background */
    .text-gray-600, .text-gray-700, .text-gray-900 {
        color: #1a1a1a !important;
    }
    
    /* Force visibility for all article content */
    .animate-on-scroll, .animate-fade-in, .animate-fade-in-up {
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* News Portal Style Header */
.news-header {
    background-color: #ffffff;
    color: #1a1a1a;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.news-topbar {
    background-color: #cc0000;
    color: #ffffff;
    padding: 0;
    font-size: 12px;
}

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

.news-topbar-left {
    display: flex;
    align-items: center;
}

.news-date {
    font-size: 12px;
    font-weight: 500;
}

.news-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-social {
    color: #ffffff;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.news-social:hover {
    opacity: 1;
    color: #ffffff;
}

.news-divider {
    color: rgba(255,255,255,0.5);
    margin: 0 4px;
}

.news-toplink {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
    transition: opacity 0.2s;
}

.news-toplink:hover {
    color: #ffffff;
    opacity: 0.8;
    text-decoration: underline;
}

.news-toplink-daftar {
    background-color: #ffffff;
    color: #cc0000 !important;
    padding: 4px 12px;
    border-radius: 3px;
    font-weight: 600;
}

.news-toplink-daftar:hover {
    background-color: #f0f0f0;
    text-decoration: none !important;
}

.news-main-header {
    background-color: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
}

/* Dark Mode for Header */
.dark .news-main-header,
.darkmode .news-main-header {
    background-color: #1a1a1a !important;
    border-bottom-color: #333333 !important;
}

.dark .news-logo,
.darkmode .news-logo {
    color: #ff4444 !important;
}

.dark .news-logo-subtext,
.darkmode .news-logo-subtext {
    color: #e5e5e5 !important;
}

.news-main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.news-logo {
    display: inline-block;
    text-decoration: none;
    color: #cc0000;
}

.news-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
}

.news-logo-subtext {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #1a1a1a;
}

.news-nav {
    background-color: #ffffff;
    border-bottom: 3px solid #cc0000;
}

/* Dark Mode for Navigation */
.dark .news-nav,
.darkmode .news-nav {
    background-color: #1a1a1a !important;
    border-bottom-color: #cc0000 !important;
}

.dark .news-nav-link,
.darkmode .news-nav-link {
    color: #e5e5e5 !important;
}

.dark .news-nav-link:hover,
.darkmode .news-nav-link:hover {
    color: #ff4444 !important;
    background-color: rgba(255,68,68,0.1) !important;
}

.dark .news-nav-home,
.darkmode .news-nav-home {
    color: #ff4444 !important;
}

.dark .news-search-btn,
.darkmode .news-search-btn {
    color: #e5e5e5 !important;
}

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

.news-nav-left {
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    padding: 14px 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
}

.news-nav-link:hover {
    color: #cc0000;
    background-color: rgba(204,0,0,0.05);
}

.news-nav-home {
    color: #cc0000;
}

.news-nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-search-btn {
    background: none;
    border: none;
    color: #666666;
    cursor: pointer;
    padding: 10px;
    border-radius: 4px;
    transition: all 0.2s;
}

.news-search-btn:hover {
    color: #cc0000;
    background-color: rgba(204,0,0,0.1);
}

.news-mobile-toggle {
    background: none;
    border: none;
    color: #1a1a1a;
    cursor: pointer;
    padding: 10px;
}

.news-mobile-menu {
    background-color: #ffffff;
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.news-mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.news-mobile-link {
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s;
}

.news-mobile-link:hover {
    color: #cc0000;
    background-color: rgba(204,0,0,0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .news-topbar-container {
        padding: 6px 12px;
    }
    
    .news-logo-text {
        font-size: 28px;
    }
    
    .news-logo-subtext {
        font-size: 18px;
    }
    
    .news-main-header {
        padding: 15px 0;
    }
    
    .news-nav-container {
        padding: 0 12px;
    }
}

/* ========================================
   Page Loading Bar
   ======================================== */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 99999;
}

#page-loader .loader-bar {
    height: 100%;
    background: linear-gradient(90deg, #dc2626, #ef4444, #dc2626);
    background-size: 200% 100%;
    animation: loading-gradient 1.5s ease-in-out infinite;
    width: 0%;
    transition: width 0.3s ease;
}

@keyframes loading-gradient {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* Dark mode loading bar */
.dark #page-loader,
.darkmode #page-loader {
    background: rgba(255, 255, 255, 0.1);
}

.dark #page-loader .loader-bar,
.darkmode #page-loader .loader-bar {
    background: linear-gradient(90deg, #dc2626, #f87171, #dc2626);
}

/* Loading animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.5s ease-out forwards;
}

/* Skeleton loading for content */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

.dark .skeleton,
.darkmode .skeleton {
    background: linear-gradient(90deg, #2d2d2d 25%, #3d3d3d 50%, #2d2d2d 75%);
    background-size: 200% 100%;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========================================
   Dark Mode Toggle Button Styles
   ======================================== */
.news-dark-mode-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 8px;
    color: #374151;
}

.news-dark-mode-btn:hover {
    background: #f3f4f6;
}

.dark .news-dark-mode-btn,
.darkmode .news-dark-mode-btn {
    color: #e5e7eb;
}

.dark .news-dark-mode-btn:hover,
.darkmode .news-dark-mode-btn:hover {
    background: #374151;
}

.news-dark-mode-btn .sun-icon,
.news-dark-mode-btn .moon-icon {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

/* Show/hide icons based on mode */
.news-dark-mode-btn .sun-icon {
    display: block;
}

.news-dark-mode-btn .moon-icon {
    display: none;
}

.dark .news-dark-mode-btn .sun-icon,
.darkmode .news-dark-mode-btn .sun-icon {
    display: none;
}

.dark .news-dark-mode-btn .moon-icon,
.darkmode .news-dark-mode-btn .moon-icon {
    display: block;
}

/* ========================================
   Reading Progress Bar
   ======================================== */
#reading-progress {
    pointer-events: none;
}

#reading-progress-bar {
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
}

/* ========================================
   Dark Mode Improvements - Better Readability
   ======================================== */

/* Ensure text is always readable */
.dark body,
.darkmode body {
    background-color: #0f0f0f !important;
    color: #e5e5e5 !important;
}

.dark main,
.darkmode main {
    background-color: #0f0f0f !important;
    color: #e5e5e5 !important;
}

/* Improve text contrast */
.dark p,
.darkmode p {
    color: #d4d4d4 !important;
    line-height: 1.7;
}

.dark h1, .dark h2, .dark h3, .dark h4, .dark h5, .dark h6,
.darkmode h1, .darkmode h2, .darkmode h3, .darkmode h4, .darkmode h5, .darkmode h6 {
    color: #f5f5f5 !important;
    font-weight: 600;
}

/* Better link colors */
.dark a,
.darkmode a {
    color: #60a5fa !important;
}

.dark a:hover,
.darkmode a:hover {
    color: #93c5fd !important;
}

/* Better form inputs */
.dark input,
.dark textarea,
.dark select,
.darkmode input,
.darkmode textarea,
.darkmode select {
    background-color: #1f1f1f !important;
    color: #f5f5f5 !important;
    border-color: #404040 !important;
}

.dark input::placeholder,
.dark textarea::placeholder,
.darkmode input::placeholder,
.darkmode textarea::placeholder {
    color: #737373 !important;
}

/* Better article content */
.dark article,
.darkmode article {
    color: #d4d4d4 !important;
}

.dark article p,
.darkmode article p {
    color: #c4c4c4 !important;
}

/* Dark mode for all paragraphs and text content */
.dark p,
.darkmode p {
    color: #d4d4d4 !important;
}

.dark .text-gray-600,
.darkmode .text-gray-600 {
    color: #a3a3a3 !important;
}

.dark .text-gray-500,
.darkmode .text-gray-500 {
    color: #737373 !important;
}

/* Dark mode for main content container */
.dark .news-article-container,
.darkmode .news-article-container,
.dark main,
.darkmode main {
    background-color: #0f0f0f !important;
}

/* Dark mode for article page container */
.dark .max-w-4xl,
.darkmode .max-w-4xl {
    background-color: #0f0f0f !important;
}

.dark .max-w-4xl h1,
.dark .max-w-4xl h2,
.dark .max-w-4xl h3,
.darkmode .max-w-4xl h1,
darkmode .max-w-4xl h2,
darkmode .max-w-4xl h3 {
    color: #f5f5f5 !important;
}

/* Dark mode for article title */
.dark .text-gray-900,
.darkmode .text-gray-900 {
    color: #f5f5f5 !important;
}

/* Dark mode for article content - prose */
.dark .prose,
.darkmode .prose {
    color: #d4d4d4 !important;
    background-color: transparent !important;
}

.dark .prose h1,
.dark .prose h2,
.dark .prose h3,
.dark .prose h4,
.darkmode .prose h1,
.darkmode .prose h2,
.darkmode .prose h3,
.darkmode .prose h4 {
    color: #f5f5f5 !important;
}

.dark .prose p,
.darkmode .prose p {
    color: #c4c4c4 !important;
}

.dark .prose strong,
.dark .prose b,
.darkmode .prose strong,
.darkmode .prose b {
    color: #f5f5f5 !important;
    font-weight: 700 !important;
}

html.darkmode .prose strong,
html.darkmode .prose b,
html.dark .prose strong,
html.dark .prose b {
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* Handle text nodes in dark mode */
.dark .prose > span,
.darkmode .prose > span,
.dark .prose div:not([class]),
.darkmode .prose div:not([class]) {
    color: #d4d4d4 !important;
}

.dark .prose ul,
.dark .prose ol,
.darkmode .prose ul,
.darkmode .prose ol {
    color: #d4d4d4 !important;
}

.dark .prose li,
.darkmode .prose li {
    color: #c4c4c4 !important;
}

.dark .prose a,
.darkmode .prose a {
    color: #60a5fa !important;
}

/* Better cards */
.dark .card,
.dark .article-card,
.dark .bg-white,
.darkmode .card,
.darkmode .article-card,
.darkmode .bg-white {
    background-color: #1a1a1a !important;
    border: 1px solid #2d2d2d !important;
}

/* Better buttons */
.dark .btn,
.darkmode .btn {
    background-color: #2d2d2d !important;
    color: #f5f5f5 !important;
    border-color: #404040 !important;
}

/* Better tables */
.dark table,
.darkmode table {
    background-color: #1a1a1a !important;
}

.dark th,
.darkmode th {
    background-color: #2d2d2d !important;
    color: #f5f5f5 !important;
}

.dark td,
.darkmode td {
    color: #d4d4d4 !important;
    border-color: #404040 !important;
}

/* Better images */
.dark img,
.darkmode img {
    opacity: 0.9;
}

/* Better code blocks */
.dark pre,
.dark code,
.darkmode pre,
.darkmode code {
    background-color: #1f1f1f !important;
    color: #e5e5e5 !important;
}

/* Better blockquotes - Dark Mode */
.dark .prose blockquote,
.darkmode .prose blockquote,
.prose .dark blockquote,
.prose .darkmode blockquote {
    border-left-color: #dc2626 !important;
    background: linear-gradient(135deg, #451a03 0%, #1c1917 100%) !important;
    color: #d4d4d8 !important;
}

.dark .prose blockquote::before,
.darkmode .prose blockquote::before {
    color: #ef4444;
    opacity: 0.7;
}

/* Better scrollbar */
.dark ::-webkit-scrollbar,
.darkmode ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.dark ::-webkit-scrollbar-track,
.darkmode ::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.dark ::-webkit-scrollbar-thumb,
.darkmode ::-webkit-scrollbar-thumb {
    background: #404040;
    border-radius: 4px;
}

.dark ::-webkit-scrollbar-thumb:hover,
.darkmode ::-webkit-scrollbar-thumb:hover {
    background: #525252;
}

/* ==========================================
   AUTO ADS STYLES - AdSense/MGID/Infolinks Style
   ========================================== */

.ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 24px auto;
    min-height: 100px;
    background: #f9fafb;
    border-radius: 8px;
    overflow: hidden;
}

.ad-container ins {
    display: block;
    width: 100%;
    height: auto;
    min-height: 90px;
}

.ad-header {
    margin: 16px auto;
}

.ad-sidebar {
    margin: 24px 0;
}

.ad-article {
    margin: 32px 0;
}

.ad-footer {
    margin: 24px auto;
}

/* Ad labels */
.ad-container::before {
    content: 'Advertorial';
    display: block;
    font-size: 10px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    text-align: center;
}

/* Responsive ad sizes */
@media (max-width: 768px) {
    .ad-container {
        margin: 16px auto;
        min-height: 50px;
    }
}

/* ==========================================
   BREAKING NEWS TICKER STYLES
   ========================================== */

.breaking-news-ticker {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 12px 0;
    overflow: hidden;
    position: relative;
}

.breaking-news-ticker .ticker-content {
    display: flex;
    white-space: nowrap;
    animation: ticker-scroll 30s linear infinite;
}

.breaking-news-ticker .ticker-item {
    display: inline-flex;
    align-items: center;
    color: white;
    padding: 0 24px;
    text-decoration: none;
}

.breaking-news-ticker .breaking-label {
    background: #fbbf24;
    color: #1f2937;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 3px;
    margin-right: 8px;
    text-transform: uppercase;
}

.breaking-news-ticker .ticker-title {
    font-size: 14px;
    font-weight: 500;
}

.breaking-news-ticker .ticker-prev,
.breaking-news-ticker .ticker-next {
    position: absolute;
    background: rgba(0,0,0,0.3);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: background 0.2s;
}

.breaking-news-ticker .ticker-prev {
    left: 8px;
}

.breaking-news-ticker .ticker-next {
    right: 8px;
}

.breaking-news-ticker .ticker-prev:hover,
.breaking-news-ticker .ticker-next:hover {
    background: rgba(0,0,0,0.5);
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================
   BACK TO TOP BUTTON
   ========================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
}

/* ==========================================
   STICKY HEADER ON SCROLL
   ========================================== */

.news-header.scrolled {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.news-header.hidden {
    transform: translateY(-100%);
}


/* Iklan Teks - Text Ads */
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700);

.terbaru-container {
  background: #fff;
  width: 100%;
  margin: 5% auto;
  padding: 5px;
  border: 1px solid rgba(0,0,0,0.1);
}

.iklan-teks {
  position: relative;
  margin: 0;
  padding: 10px;
  max-height: 300px;
  overflow: hidden;
}

.iklan-teks div {
  position: relative;
  background: #FFF;
  height: 120px;
  padding: 8px 0;
  margin: 0;
  z-index: 1;
  color: #555;
}

.iklan-teks h2.iklan-header {
  position: relative;
  background: #FFF;
  font-size: 18px;
  color: #0f7dc8;
  border-top: 1px solid #d8d8d8;
  border-radius: 0;
  padding: 8px 0;
  margin: 0;
  text-transform: none;
  cursor: pointer;
}

.iklan-teks h2.iklan-header:first-child {
  border-top: 0;
}

.iklan-teks h2.iklan-header:before {
  content: '';
  width: 0;
  height: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 15px;
  border: 6px solid transparent;
  border-top-color: #b2b2b2;
  cursor: pointer;
}

.iklan-teks h2.iklan-header.active:before {
  border-top-color: transparent;
  border-bottom-color: #b2b2b2;
  top: 50%;
}

.isi-iklan span.judul-iklan {
  font-family: 'Oswald', Tahoma, Sans-serif;
  font-size: 18px;
  color: #0f7dc8;
  display: inline-block;
  cursor: pointer;
}

.isi-iklan span.url-iklan {
  font-size: 12px;
  color: #0f7dc8;
  display: block;
  margin: 8px 0;
  cursor: pointer;
}

.isi-iklan span.url-iklan:before {
  content: "\f0c0";
  font-family: FontAwesome;
  margin: 0 10px 0 0;
}

.isi-iklan span.panah-besar {
  color: #fff;
  background: #e74c3c;
  border-radius: 50%;
  height: 34px;
  float: right;
  width: 34px;
  text-align: center;
  line-height: 34px;
  cursor: pointer;
  transition: all .6s;
}

.isi-iklan span.panah-besar:before {
  content: "\f054";
  font-family: FontAwesome;
  margin: 0 0 0 3px;
  font-size: 20px;
}

.isi-iklan span.panah-besar:hover {
  background: #34495e;
  color: #fff;
}

.isi-iklan p.isi {
  padding: 0;
  margin: 0 40px 0 0;
  color: #555;
  font-size: 12px;
  text-align: left;
}

/* ============================================
   Dark Mode - Iklan Teks (Text Ads)
   ============================================ */
.dark .iklan-teks div,
.darkmode .iklan-teks div {
    background: #1f2937;
    color: #d1d5db;
}

.dark .iklan-teks h2.iklan-header,
.darkmode .iklan-teks h2.iklan-header {
    background: #1f2937;
    color: #60a5fa;
    border-color: #374151;
}

.dark .iklan-teks h2.iklan-header:before,
.darkmode .iklan-teks h2.iklan-header:before {
    border-top-color: #6b7280;
}

.dark .iklan-teks h2.iklan-header.active:before,
.darkmode .iklan-teks h2.iklan-header.active:before {
    border-top-color: transparent;
    border-bottom-color: #6b7280;
}

.dark .isi-iklan span.judul-iklan,
.darkmode .isi-iklan span.judul-iklan {
    color: #60a5fa;
}

.dark .isi-iklan span.url-iklan,
.darkmode .isi-iklan span.url-iklan {
    color: #60a5fa;
}

.dark .isi-iklan span.panah-besar,
.darkmode .isi-iklan span.panah-besar {
    background: #dc2626;
}

.dark .isi-iklan p.isi,
.darkmode .isi-iklan p.isi {
    color: #d1d5db;
}

.dark .iklan-teks,
.darkmode .iklan-teks {
    background: #1f2937;
}

/* ============================================
   Dark Mode - Ad Container & Placeholder
   ============================================ */
.dark .ad-container,
.darkmode .ad-container {
    background: #1f2937;
}

.dark [data-ad-slot],
.darkmode [data-ad-slot] {
    background: #1f2937 !important;
}

.dark .ad-placeholder,
.darkmode .ad-placeholder {
    background: #374151 !important;
    border-color: #4b5563 !important;
    color: #9ca3af !important;
}

