/* 
 * The Original CSS Variables and Core Styles (Enterprise Edition)
 */

:root {
    --color-primary: #cc0000; /* Bold Red for Breaking/News identity */
    --color-secondary: #000000; /* Pure black for high contrast */
    --color-text: #111111;
    --color-text-light: #555555;
    --color-bg: #ffffff;
    --color-gray-bg: #f2f2f2;
    --color-border: #cccccc;
    --color-border-light: #e5e5e5;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --font-condensed: 'Roboto Condensed', sans-serif;
    --transition: all 0.2s ease;
}

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

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: var(--transition);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

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

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

/* --- ENTERPRISE HEADER --- */

/* Reading Progress */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 9999;
}
.reading-progress-bar {
    height: 100%;
    background: var(--color-primary);
    width: 0%;
}

/* Breaking News Ticker */
.breaking-news-ticker {
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-condensed);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
}
.ticker-inner {
    display: flex;
    align-items: center;
    padding: 8px 0;
}
.ticker-label {
    background: #000;
    padding: 4px 10px;
    margin-right: 15px;
    white-space: nowrap;
}
.ticker-content ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
}
.ticker-content a {
    color: #fff;
}
.ticker-content a:hover {
    text-decoration: underline;
}

/* Top Bar */
.header-top-bar {
    background: var(--color-gray-bg);
    border-bottom: 1px solid var(--color-border-light);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-light);
    padding: 5px 0;
}
.header-top-inner {
    display: flex;
    justify-content: space-between;
}
.header-socials a {
    margin-left: 15px;
    color: var(--color-text-light);
}
.header-socials a:hover {
    color: var(--color-primary);
}

/* Branding */
.site-branding-wrapper {
    padding: 25px 0;
    border-bottom: 1px solid var(--color-border);
}
.site-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.site-title {
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
}

/* Mega Navigation */
.mega-navigation {
    border-bottom: 4px solid var(--color-secondary);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-inner {
    display: flex;
    justify-content: center;
    position: relative;
}
.mega-navigation ul {
    display: flex;
    list-style: none;
}
.mega-navigation a {
    display: block;
    padding: 15px 20px;
    font-family: var(--font-condensed);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
}
.mega-navigation li:hover > a {
    background: var(--color-gray-bg);
    color: var(--color-primary);
}
.header-search {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}
.menu-toggle {
    display: none;
}

/* --- ENTERPRISE HOMEPAGE --- */

.section-divider {
    border: 0;
    border-top: 1px solid var(--color-border);
    margin: 40px 0;
}
.section-heading {
    font-family: var(--font-condensed);
    text-transform: uppercase;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color-secondary);
    padding-bottom: 5px;
}
.border-top-thick {
    border-top: 4px solid var(--color-secondary);
    border-bottom: none;
    padding-top: 5px;
}

/* Splash Grid */
.splash-section {
    margin-top: 30px;
}
.splash-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 30px;
}
.splash-lead-article .massive-title {
    font-size: 3rem;
    font-weight: 900;
    margin-top: 15px;
    letter-spacing: -0.5px;
}
.splash-lead-article .lead-summary {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 15px;
}
.splash-sub-articles {
    border-left: 1px solid var(--color-border);
    padding-left: 30px;
}
.sub-article {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--color-border-light);
}
.sub-article:last-child {
    border-bottom: none;
}
.sub-article .entry-title {
    font-size: 1.2rem;
}

/* Editor Picks (4 cols) */
.picks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.pick-article .entry-title {
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Layout A (Category with Lead + List) */
.layout-a .cat-grid,
.layout-b .cat-grid {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 30px;
    align-items: stretch;
}
.layout-b .cat-grid {
    grid-template-columns: 1.2fr 1.8fr; /* Reverse for variety */
}
.cat-lead {
    display: flex;
    flex-direction: column;
}
.cat-lead > a img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
}
.cat-lead .entry-title {
    font-size: 1.8rem;
    margin-top: 15px;
    margin-bottom: 10px;
}
.cat-lead .entry-summary {
    color: var(--color-text-light);
    font-size: 1.05rem;
    line-height: 1.6;
}
.cat-list {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.cat-item {
    display: flex;
    gap: 15px;
    border-bottom: 1px dotted var(--color-border);
    padding-bottom: 15px;
    margin-bottom: 15px;
}
.cat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}
.cat-item img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
}
.cat-item-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.cat-item .entry-title {
    font-size: 1.1rem;
    font-family: var(--font-main);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 5px;
}
.cat-item .posted-on {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* --- ENTERPRISE SINGLE POST --- */
.immersive-article {
    margin-bottom: 50px;
}
.single-header .entry-cats {
    margin-bottom: 20px;
}
.single-header .cat-label {
    font-size: 0.95rem;
    padding: 6px 12px;
    margin-right: 8px;
    display: inline-block;
    border-radius: 4px;
}
.immersive-article .massive-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
}
.rich-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 15px 0;
    margin-bottom: 30px;
}
.meta-author {
    display: flex;
    align-items: center;
    gap: 15px;
}
.meta-author img {
    border-radius: 50%;
}
.meta-text {
    font-size: 0.9rem;
}
.share-btn {
    background: var(--color-gray-bg);
    border: 1px solid var(--color-border);
    padding: 8px 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
}

/* Full Bleed Image */
.full-bleed {
    margin: 0 -20px 40px -20px;
}
.full-bleed img {
    width: 100%;
}
.wp-caption-text {
    font-size: 0.85rem;
    color: var(--color-text-light);
    padding: 10px 20px;
    text-align: right;
    border-bottom: 1px solid var(--color-border-light);
}

/* Dropcap and Content Typography */
.dropcap-enabled > p:first-of-type::first-letter {
    font-family: var(--font-heading);
    font-size: 5rem;
    line-height: 0.8;
    float: left;
    margin-right: 15px;
    margin-top: 5px;
    color: var(--color-secondary);
}
.entry-content {
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}
.entry-content p {
    margin-bottom: 1.5rem;
}
.entry-content h2 {
    font-size: 2rem;
    margin: 2rem 0 1rem 0;
}

/* Sidebar and Sticky */
.enterprise-sidebar {
    width: 380px; /* Widened from 350px */
    flex-shrink: 0;
}
.sticky-sidebar {
    position: sticky;
    top: 80px; /* Offset for mega menu */
}
.content-layout {
    display: flex;
    gap: 60px;
}

/* Widgets */
.widget {
    margin-bottom: 40px;
}
.widget-title {
    font-family: var(--font-condensed);
    font-size: 1.3rem;
    text-transform: uppercase;
    border-bottom: 4px solid var(--color-secondary);
    padding-bottom: 5px;
    margin-bottom: 15px;
}
.widget ul {
    list-style: none;
}
.widget li {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border-light);
}

/* Footer (Keep simple for now) */
.site-footer {
    background: var(--color-secondary);
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 60px;
}
.site-footer a, 
.site-info a, 
.footer-widget-column a {
    color: #cbd5e1;
}
.site-footer a:hover, 
.site-info a:hover,
.footer-widget-column a:hover {
    color: #fff;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .splash-grid {
        grid-template-columns: 1fr;
    }
    .splash-sub-articles {
        border-left: none;
        border-top: 1px solid var(--color-border);
        padding-left: 0;
        padding-top: 30px;
    }
    .content-layout {
        flex-direction: column;
    }
    .enterprise-sidebar {
        width: 100%;
    }
    .full-bleed {
        margin: 0 0 30px 0;
    }
}
@media (max-width: 768px) {
    .picks-grid, .layout-a .cat-grid {
        grid-template-columns: 1fr;
    }
    .immersive-article .massive-title {
        font-size: 2.5rem;
    }
    .header-top-bar {
        display: none;
    }
    .nav-inner {
        justify-content: space-between;
    }
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-weight: bold;
        text-transform: uppercase;
        padding: 15px 0;
    }
    .mega-navigation ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        border-bottom: 4px solid var(--color-primary);
    }
    .mega-navigation.toggled ul {
        display: flex;
    }
}

/* --- NEW SEARCH STYLING --- */
.modern-search {
    position: relative;
    display: flex;
    align-items: center;
}
.modern-search .search-field {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 2px solid var(--color-border);
    border-radius: 20px;
    font-size: 0.95rem;
    font-family: var(--font-main);
    transition: var(--transition);
}
.modern-search .search-field:focus {
    outline: none;
    border-color: var(--color-primary);
}
.modern-search .search-submit {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
}
.modern-search .search-submit:hover {
    color: var(--color-primary);
}
.search-header {
    background: var(--color-gray-bg);
    padding: 40px;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 40px;
}
.highlight {
    color: var(--color-primary);
}

/* --- NEW WIDGET STYLING --- */
.trending-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px dotted var(--color-border);
}
.trending-item:last-child {
    border-bottom: none;
}
.trending-rank {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--color-border);
    line-height: 1;
    font-weight: 900;
}
.trending-content .entry-title {
    font-size: 1rem;
    margin-bottom: 5px;
}
.trending-content .posted-on {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

/* --- NEW AUTHOR BOX --- */
.massive-author-box {
    display: flex;
    gap: 30px;
    background: var(--color-gray-bg);
    padding: 40px;
    margin-top: 40px;
    border-top: 4px solid var(--color-secondary);
}
.massive-author-box img {
    border-radius: 50%;
}
.massive-author-box h3 {
    margin-bottom: 10px;
}
.author-link {
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--color-primary);
}

/* --- LIST DENSE (Search Results) --- */
.list-article-dense {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--color-border-light);
}
.list-article-dense .post-thumbnail {
    flex: 0 0 200px;
}

/* --- ARCHIVE / CATEGORY / TAGS STYLING --- */
.archive-header {
    background: var(--color-gray-bg);
    padding: 40px;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--color-primary);
    text-align: center;
}
.archive-header .page-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.archive-description {
    font-size: 1.1rem;
    color: var(--color-text-light);
}
.archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.grid-article .post-thumbnail img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    margin-bottom: 15px;
}
.grid-article .entry-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.grid-article .entry-meta {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 15px;
}
.grid-article .entry-summary {
    color: var(--color-text-light);
}
@media (max-width: 768px) {
    .archive-grid {
        grid-template-columns: 1fr;
    }
}

