/* The Times Inspired Editorial Styling for NewsNow Tube (newsnowtube.com) */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;0,800;0,900;1,400;1,600&family=Inter:wght@300;400;500;600;700&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400&display=swap');

:root {
    --times-black: #000000;
    --times-dark: #121212;
    --times-gray-bg: #f8f9fa;
    --times-border: #e2e8f0;
    --times-border-dark: #333333;
    --times-text-primary: #111827;
    --times-text-secondary: #4b5563;
    --times-text-muted: #6b7280;
    --times-blue: #006699;
    --times-blue-hover: #004d73;
    --times-red: #c00000;
    --times-gold: #c59b27;
    --font-masthead: 'Playfair Display', 'Times New Roman', Georgia, serif;
    --font-serif: 'Source Serif 4', 'Times New Roman', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    background-color: #ffffff;
    color: var(--times-text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--times-blue);
}

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

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 16px;
}

/* TOP HEADER / MASTHEAD */
.site-header {
    background-color: var(--times-black);
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--times-border-dark);
}

.top-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    height: 60px;
    border-bottom: 1px solid #222222;
}

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

.nav-toggle-btn, .nav-search-btn {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 4px;
}

.nav-toggle-btn:hover, .nav-search-btn:hover {
    background-color: #222222;
}

.nav-center-masthead {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-grow: 1;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-crest {
    height: 38px;
    width: auto;
    filter: invert(1) brightness(1.2);
}

.brand-name {
    font-family: var(--font-masthead);
    font-size: 26px;
    letter-spacing: 0.14em;
    font-weight: 800;
    text-transform: uppercase;
    color: #ffffff;
}

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

.edition-select {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #e5e7eb;
    cursor: pointer;
    background: none;
    border: none;
}

.edition-flag {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 1px;
}

.login-link {
    font-size: 13px;
    font-weight: 500;
    color: #e5e7eb;
}

.trial-btn {
    background-color: var(--times-blue);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 3px;
    letter-spacing: 0.02em;
    transition: background-color 0.2s ease;
}

.trial-btn:hover {
    background-color: var(--times-blue-hover);
    color: #ffffff;
}

/* CATEGORY BAR */
.category-bar-wrapper {
    background-color: #0d0d0d;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.category-bar-wrapper::-webkit-scrollbar {
    display: none;
}

.category-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.category-nav-item a {
    display: inline-block;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #d1d5db;
    letter-spacing: 0.02em;
    border-bottom: 2px solid transparent;
}

.category-nav-item a:hover,
.category-nav-item.active a {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

/* SUB TICKER BAR */
.sub-ticker-bar {
    background-color: #f3f4f6;
    border-bottom: 1px solid var(--times-border);
    padding: 6px 0;
    font-size: 12px;
    color: var(--times-text-secondary);
}

.ticker-flex {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ticker-label {
    font-weight: 700;
    text-transform: uppercase;
    color: var(--times-red);
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.ticker-dot {
    width: 7px;
    height: 7px;
    background-color: var(--times-red);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
    100% { opacity: 1; transform: scale(1); }
}

.ticker-content {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 13px;
}

.ticker-item {
    color: var(--times-text-primary);
    font-weight: 500;
}

/* TIMES 3-COLUMN EDITORIAL GRID */
.editorial-hero-grid {
    display: grid;
    grid-template-columns: 280px 1fr 340px;
    gap: 24px;
    padding: 24px 0 32px 0;
    border-bottom: 1px solid var(--times-border);
}

.col-divider-right {
    border-right: 1px solid var(--times-border);
    padding-right: 24px;
}

.col-divider-left {
    border-left: 1px solid var(--times-border);
    padding-left: 24px;
}

/* TYPOGRAPHY IN GRID */
.story-kicker {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--times-blue);
    margin-bottom: 6px;
    display: inline-block;
}

.story-kicker.red {
    color: var(--times-red);
}

.serif-headline {
    font-family: var(--font-serif);
    color: var(--times-text-primary);
    font-weight: 700;
    line-height: 1.22;
    margin-bottom: 8px;
}

.serif-headline a:hover {
    color: var(--times-blue);
}

.serif-blurb {
    font-family: var(--font-serif);
    font-size: 14px;
    color: var(--times-text-secondary);
    line-height: 1.45;
    margin-bottom: 12px;
}

.story-meta {
    font-size: 11px;
    font-weight: 600;
    color: var(--times-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* LEFT COLUMN STORIES */
.left-lead-article {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--times-border);
}

.left-lead-article .serif-headline {
    font-size: 26px;
}

.secondary-article {
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px dashed var(--times-border);
}

.secondary-article:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.secondary-article .serif-headline {
    font-size: 18px;
}

/* CENTER COLUMN - MAIN SHOWCASE */
.center-showcase-story {
    margin-bottom: 24px;
}

.showcase-media-container {
    position: relative;
    background-color: #000000;
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 2px;
}

.showcase-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.showcase-media-container:hover .showcase-img {
    transform: scale(1.02);
}

.carousel-indicators {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 12px;
    color: var(--times-text-secondary);
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 12px;
}

.carousel-caption {
    font-weight: 500;
    color: var(--times-text-secondary);
}

.carousel-controls {
    display: flex;
    gap: 8px;
}

.carousel-btn {
    background: #f1f5f9;
    border: 1px solid var(--times-border);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
    color: var(--times-text-primary);
}

.carousel-btn:hover {
    background: #e2e8f0;
}

.center-showcase-story .serif-headline {
    font-size: 30px;
}

.center-showcase-story .serif-blurb {
    font-size: 16px;
}

.center-sub-stories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--times-border);
}

/* RIGHT COLUMN - NEW & IN DEPTH FEED */
.feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--times-black);
}

.feed-header h3 {
    font-family: var(--font-masthead);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.feed-item {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.feed-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.feed-text {
    flex: 1;
}

.feed-text .serif-headline {
    font-size: 15px;
    line-height: 1.28;
    margin-bottom: 4px;
}

.feed-thumb-link {
    flex-shrink: 0;
    width: 88px;
    height: 64px;
    overflow: hidden;
    border-radius: 2px;
}

.feed-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.feed-thumb-link:hover .feed-thumb {
    transform: scale(1.05);
}

/* SECTION HEADINGS */
.section-headline-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0 8px 0;
    margin-top: 32px;
    border-bottom: 2px solid var(--times-black);
}

.section-headline-bar h2 {
    font-family: var(--font-masthead);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--times-black);
}

.section-link-more {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--times-blue);
}

/* BROADSHEET 4-COL GRID */
.broadsheet-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--times-border);
}

.card-4 {
    display: flex;
    flex-direction: column;
}

.card-4-media {
    position: relative;
    height: 160px;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 2px;
}

.card-4-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.card-4-media:hover img {
    transform: scale(1.03);
}

.card-4 .serif-headline {
    font-size: 17px;
    margin-bottom: 6px;
}

.card-4 .serif-blurb {
    font-size: 13px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* THE TIMES LONG READS & SPECIAL DOSSIERS */
.magazine-feature-section {
    background-color: #fafaf9;
    border: 1px solid var(--times-border);
    border-top: 3px solid var(--times-black);
    padding: 28px 24px;
    margin: 40px 0;
    border-radius: 2px;
}

.magazine-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.magazine-feature-card {
    background: #ffffff;
    border: 1px solid #e7e5e4;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.magazine-feature-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.magazine-media {
    position: relative;
    height: 190px;
    overflow: hidden;
}

.magazine-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.magazine-feature-card:hover .magazine-media img {
    transform: scale(1.04);
}

.magazine-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.magazine-body .serif-headline {
    font-size: 19px;
    line-height: 1.3;
    margin-bottom: 8px;
}

.magazine-body .serif-blurb {
    font-size: 14px;
    color: var(--times-text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
}

/* OPINION & ANALYSIS ROW */
.opinion-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--times-border);
}

.opinion-card {
    background: #fdfdfd;
    border: 1px solid #f1f5f9;
    padding: 20px;
    border-top: 3px solid var(--times-black);
}

.opinion-author-desk {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--times-blue);
    margin-bottom: 8px;
}

.opinion-title {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 10px;
}

/* ARTICLE DETAIL PAGE */
.article-container {
    max-width: 860px;
    margin: 32px auto;
    padding: 0 16px;
}

.article-header {
    margin-bottom: 24px;
    text-align: left;
}

.article-kicker-tag {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--times-red);
    margin-bottom: 12px;
    display: inline-block;
}

.article-main-title {
    font-family: var(--font-serif);
    font-size: 40px;
    line-height: 1.18;
    font-weight: 800;
    color: var(--times-black);
    margin-bottom: 16px;
}

.article-lead-summary {
    font-family: var(--font-serif);
    font-size: 20px;
    line-height: 1.45;
    color: var(--times-text-secondary);
    margin-bottom: 24px;
    border-left: 3px solid var(--times-blue);
    padding-left: 16px;
}

.article-byline-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-top: 1px solid var(--times-border);
    border-bottom: 1px solid var(--times-border);
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--times-text-secondary);
}

.byline-left {
    display: flex;
    flex-direction: column;
}

.byline-desk-name {
    font-weight: 700;
    color: var(--times-black);
}

.byline-date {
    font-size: 12px;
    color: var(--times-text-muted);
}

.byline-share-btns {
    display: flex;
    gap: 8px;
}

.share-btn {
    padding: 6px 12px;
    border: 1px solid var(--times-border);
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    color: var(--times-text-primary);
    background: #ffffff;
    cursor: pointer;
}

.share-btn:hover {
    background: #f8f9fa;
    border-color: #cbd5e1;
}

.article-featured-media {
    margin-bottom: 28px;
}

.article-featured-media img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 2px;
}

.article-media-caption {
    font-size: 13px;
    color: var(--times-text-muted);
    padding: 8px 0 0 0;
    line-height: 1.4;
    border-bottom: 1px solid #f1f5f9;
}

.article-body-content {
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 1.75;
    color: #27272a;
    margin-bottom: 40px;
}

.article-body-content p {
    margin-bottom: 22px;
}

.article-body-content h2, .article-body-content h3 {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--times-black);
    margin: 32px 0 16px 0;
}

.article-body-content blockquote {
    margin: 28px 0;
    padding: 16px 24px;
    border-left: 4px solid var(--times-black);
    background-color: #f8f9fa;
    font-style: italic;
    font-size: 20px;
}

/* COMMENTS SECTION (ZERO FAKE COMMENTS) */
.article-comments-block {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 2px solid var(--times-black);
}

.comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.comments-header h3 {
    font-family: var(--font-masthead);
    font-size: 20px;
    text-transform: uppercase;
}

.no-comments-notice {
    background-color: #f8fafc;
    border: 1px dashed var(--times-border);
    padding: 24px;
    text-align: center;
    color: var(--times-text-muted);
    font-size: 14px;
    border-radius: 4px;
    margin-bottom: 24px;
}

.comment-form input, .comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--times-border);
    border-radius: 3px;
    margin-bottom: 12px;
    font-family: inherit;
    font-size: 14px;
}

.comment-form button {
    background-color: var(--times-black);
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    font-weight: 700;
    cursor: pointer;
}

.comment-form button:hover {
    background-color: #222222;
}

/* FOOTER */
.site-footer {
    background-color: var(--times-black);
    color: #ffffff;
    padding: 48px 0 24px 0;
    margin-top: 60px;
    border-top: 3px solid #222222;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 28px;
    border-bottom: 1px solid #222222;
    margin-bottom: 32px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-crest {
    height: 42px;
    filter: invert(1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-family: var(--font-masthead);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    margin-bottom: 16px;
    border-bottom: 1px solid #333333;
    padding-bottom: 8px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #9ca3af;
    font-size: 13px;
}

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

.footer-bottom {
    text-align: center;
    font-size: 12px;
    color: #6b7280;
    border-top: 1px solid #222222;
    padding-top: 24px;
}

/* SEARCH MODAL */
.search-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
}

.search-modal-box {
    background: #ffffff;
    width: 90%;
    max-width: 640px;
    padding: 24px;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.search-input-group {
    display: flex;
    gap: 8px;
}

.search-input-group input {
    flex: 1;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid var(--times-border);
    border-radius: 3px;
}

.search-input-group button {
    background-color: var(--times-blue);
    color: #ffffff;
    border: none;
    padding: 0 20px;
    border-radius: 3px;
    font-weight: 700;
    cursor: pointer;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 1024px) {
    .editorial-hero-grid {
        grid-template-columns: 1fr 1fr;
    }
    .col-divider-left {
        grid-column: span 2;
        border-left: none;
        border-top: 1px solid var(--times-border);
        padding-left: 0;
        padding-top: 24px;
    }
    .broadsheet-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .magazine-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .opinion-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .editorial-hero-grid {
        grid-template-columns: 1fr;
    }
    .col-divider-right {
        border-right: none;
        padding-right: 0;
    }
    .col-divider-left {
        grid-column: span 1;
        border-top: 1px solid var(--times-border);
        padding-top: 20px;
    }
    .broadsheet-grid-4 {
        grid-template-columns: 1fr;
    }
    .magazine-feature-grid {
        grid-template-columns: 1fr;
    }
    .brand-name {
        font-size: 18px;
    }
    .edition-select, .login-link {
        display: none;
    }
    .center-showcase-story .serif-headline {
        font-size: 24px;
    }
    .center-showcase-story .showcase-img {
        height: 240px;
    }
    .article-main-title {
        font-size: 28px;
    }
    .article-lead-summary {
        font-size: 17px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
