/* THE WALL STREET / FORBES MODEL */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,400&family=Lato:wght@300;400;700;900&display=swap');

:root {
    --bg-color: #fcfcfc;
    --text-main: #1a1a1a;
    --text-muted: #5f6368;
    
    /* Prestigious Navy Blue Accent */
    --accent: #0b2545; 
    --accent-hover: #133a6e;
    
    /* Very delicate hairline borders */
    --border-color: #e8e8e8; 
    
    --header-bg: #ffffff;
    --header-text: #1a1a1a;
    
    --font-serif: 'Merriweather', serif;
    --font-sans: 'Lato', sans-serif;
}

[data-theme="dark"] {
    /* Prestigious Financial Dark Mode */
    --bg-color: #0d1117;
    --text-main: #e6edf3;
    --text-muted: #8b949e;
    --accent: #58a6ff;
    --accent-hover: #79c0ff;
    --border-color: #30363d;
    --header-bg: #0d1117;
    --header-text: #e6edf3;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background: var(--bg-color);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s ease, color 0.3s ease;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.25;
    margin-bottom: 0.5rem;
}

/* =========================================
   HEADER & NAVIGATION
========================================= */
.main-header {
    background: var(--header-bg);
    border-bottom: 2px solid var(--text-main); /* Strong publication line */
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-weight: 900;
    font-size: 2.2rem;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    color: var(--header-text);
}

.main-nav-links {
    display: flex;
    gap: 2rem;
}

.main-nav-links a {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--header-text);
}

.main-nav-links a:hover {
    color: var(--accent);
}

.nav-toggles {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    color: var(--header-text);
}

.nav-toggles button {
    background: none;
    border: none;
    color: var(--header-text);
    cursor: pointer;
    font-size: 1.1rem;
}

/* =========================================
   GRID & LAYOUT ARCHITECTURE
========================================= */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem;
}

.hero-tag {
    display: inline-block;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-family: var(--font-sans);
}

/* Hero Section (Left/Right Split) */
.hero-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.hero-main {
    border-right: 1px solid var(--border-color);
    padding-right: 2rem;
}

.hero-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color); /* Newspaper image ruling */
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-main p {
    font-size: 1.15rem;
    color: var(--text-muted);
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-side .side-article {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.hero-side .side-article:last-child {
    border-bottom: none;
}

.hero-side img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

/* Dense 4-Column Masonry Grid */
.grid-header {
    border-top: 4px solid var(--text-main);
    padding-top: 1rem;
    margin-bottom: 2rem;
}

.grid-header h2 {
    font-size: 1.5rem;
    text-transform: uppercase;
    font-family: var(--font-sans);
    letter-spacing: 1px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.grid-article img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.grid-article h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.grid-article p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Grid Typography Hover Rules */
.grid-article a:hover h3, 
.hero-main a:hover h1, 
.side-article a:hover h3 {
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
}

/* =========================================
   ARTICLE PAGES (READING EXPERIENCE)
========================================= */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.article-main {
    max-width: 760px; /* Forbes reading width */
}

.article-main-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-family: var(--font-serif);
}

.article-main-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 2rem;
    font-family: var(--font-serif);
    font-style: italic;
}

.article-meta-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.article-meta-bar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.article-hero-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
}

.article-body {
    font-size: 1.15rem;
    line-height: 1.8;
}

.article-body h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-serif);
}

.article-body p {
    margin-bottom: 1.5rem;
    font-family: var(--font-sans);
}

.article-body ul, .article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    font-family: var(--font-sans);
}

.article-body blockquote {
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    margin: 2rem 0;
    background: #f4f6f8;
    color: var(--text-main);
    font-style: italic;
    font-size: 1.25rem;
    font-family: var(--font-serif);
}

[data-theme="dark"] .article-body blockquote {
    background: #161b22;
}

/* =========================================
   RIGHT SIDEBAR WIDGETS
========================================= */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.sidebar-widget h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-sans);
    border-bottom: 2px solid var(--text-main);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.trending-list {
    list-style-type: decimal;
    padding-left: 1.2rem;
}

.trending-list li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
    line-height: 1.4;
    font-family: var(--font-serif);
    color: var(--accent);
}

.trending-list li::marker {
    color: var(--text-muted);
    font-weight: 400;
}

.trending-list li a {
    color: var(--text-main);
}

.trending-list li a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.trending-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
    
    .hero-section {
        grid-template-columns: 1fr;
    }
    
    .hero-main {
        border-right: none;
        padding-right: 0;
    }
    
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
}
