:root {
    --cnbc-red: #d22d27;
    --cnbc-dark-red: #a8231f;
    --cnbc-blue: #0066a1;
    --cnbc-dark-blue: #004d7a;
    --cnbc-light-gray: #f4f4f4;
    --cnbc-gray: #e0e0e0;
    --cnbc-dark-gray: #333;
    --cnbc-text: #222;
    --cnbc-light-text: #666;

    /* Enhanced gradients */
    --gradient-primary: linear-gradient(135deg, var(--cnbc-blue) 0%, var(--cnbc-dark-blue) 100%);
    --gradient-accent: linear-gradient(135deg, var(--cnbc-red) 0%, var(--cnbc-dark-red) 100%);
    --gradient-light: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    color: var(--cnbc-text);
    background-color: #fff;
    line-height: 1.5;
    font-size: 14px;
    /* Default for mobile */
}

@media (min-width: 768px) {
    body {
        font-size: 16px;
    }
}

/* Header Styles - Mobile Optimized */
.header {
    background-color: white;
    border-bottom: 1px solid var(--cnbc-gray);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.3s ease-out;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.top-bar {
    background-color: #333;
    /* Grey background as requested */
    color: white;
    padding: 8px 0;
    /* Increased for mobile spacing */
    font-size: 0.85rem;
    /* Slightly smaller for mobile */
    display: none;
    /* Hidden on mobile by default */
}

.top-bar.mobile-visible {
    display: block;
}

.top-bar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    overflow-x: auto;
    white-space: nowrap;
}

.market-data {
    display: flex;
    gap: 15px;
}

.market-item {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.market-item .label {
    font-weight: bold;
    margin-right: 5px;
    font-size: 0.8rem;
}

.market-item .value {
    font-weight: bold;
    font-size: 0.85rem;
}

.market-item .change {
    font-size: 0.75rem;
    margin-left: 5px;
}

.market-item .change.positive {
    color: #00a86b;
}

.market-item .change.negative {
    color: #ff3333;
}

.date-time {
    font-size: 0.8rem;
    display: none;
}

.logo-font {
    font-family: 'Orbitron', sans-serif;
}

.logo-container {
    margin: 0 auto;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
}

.logo h1 {
    color: #d22d27;
    font-size: 1.5rem;
    /* Smaller for mobile */
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: -1px;
    line-height: 1;
    margin: 0;
}

@media (min-width: 375px) {
    .logo h1 {
        font-size: 1.7rem;
    }
}

.logo .tagline {
    color: #0066a1;
    font-size: 0.7rem;
    /* Slightly smaller for mobile */
    margin-top: 2px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    text-transform: none;
    opacity: 0.85;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.subscribe-btn {
    background: var(--gradient-accent);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(210, 45, 39, 0.3);
    position: relative;
    overflow: hidden;
}

.subscribe-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.subscribe-btn:hover::before {
    width: 300px;
    height: 300px;
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(210, 45, 39, 0.4);
}

.mobile-menu-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--cnbc-dark-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

/* Header Icon Buttons (Search, Favorites, Account) */
.header-icon-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--cnbc-dark-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.header-icon-btn:hover {
    background-color: var(--cnbc-light-gray);
    color: var(--cnbc-red);
    transform: scale(1.1);
}

/* Favorites Button Specific Styles */
.favorites-btn.active i {
    color: var(--cnbc-red);
    animation: heartBeat 0.3s ease;
}

.favorites-btn.liked i {
    color: var(--cnbc-red);
}

.favorites-btn.liked i::before {
    content: "\f004";
    /* Solid heart */
}

/* Favorites Counter Badge */
.favorites-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: var(--cnbc-red);
    color: white;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    display: none;
}

.favorites-count.show {
    display: block;
    animation: popIn 0.3s ease;
}

/* Hide desktop account button on mobile */
.desktop-only {
    display: none;
}

/* Animations */
@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.3);
    }

    50% {
        transform: scale(1.1);
    }

    75% {
        transform: scale(1.25);
    }
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}


/* Mobile Navigation */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
}

.mobile-nav-overlay.active {
    display: block;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background-color: white;
    z-index: 2001;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding-top: 20px;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--cnbc-gray);
    margin-bottom: 20px;
}

.mobile-nav-header h2 {
    color: var(--cnbc-red);
    font-size: 1.3rem;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--cnbc-dark-gray);
    cursor: pointer;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    border-bottom: 1px solid var(--cnbc-light-gray);
}

.mobile-nav a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--cnbc-dark-gray);
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.mobile-nav a:hover,
.mobile-nav .active a {
    background-color: rgba(210, 45, 39, 0.05);
    color: var(--cnbc-red);
    border-left: 4px solid var(--cnbc-red);
}

.mobile-nav li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Desktop Navigation - Hidden on Mobile */
.nav-container {
    display: none;
}

/* Main Content Layout - Mobile Optimized */
.container {
    margin: 0 auto;
    padding: 15px;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
    height: auto;
}

/* Main Featured Article - Mobile Optimized */
.main-featured {
    margin-bottom: 30px;
    border: none;
}

.featured-link {
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.featured-img-container {
    position: relative;
    height: 300px;
    /* Reduced for mobile */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .featured-img-container {
        height: 500px;
        border-radius: 16px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    }
}

.featured-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 80%);
}

.featured-text-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    /* Tighter for mobile */
    color: white;
}

@media (min-width: 768px) {
    .featured-text-content {
        padding: 50px 40px;
    }
}

.featured-tag {
    background: var(--cnbc-red) !important;
    margin-bottom: 15px;
    font-size: 0.8rem;
    padding: 6px 12px;
}

@media (min-width: 768px) {
    .featured-tag {
        margin-bottom: 20px;
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

.featured-title {
    font-size: 1.5rem;
    /* Smaller for mobile */
    color: white !important;
    margin-bottom: 12px;
    line-height: 1.2;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

@media (min-width: 768px) {
    .featured-title {
        font-size: 3rem;
        margin-bottom: 15px;
    }
}

.featured-meta {
    display: flex;
    flex-wrap: wrap;
    /* Wrap on mobile */
    gap: 15px;
    font-size: 0.8rem;
    opacity: 0.95;
}

@media (min-width: 768px) {
    .featured-meta {
        gap: 20px;
        font-size: 1rem;
    }
}

.featured-article img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 8px;
}

.category-tag {
    background-color: var(--cnbc-red);
    color: white;
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 10px;
    border-radius: 3px;
}

.featured-article h2 {
    font-size: 1.6rem;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--cnbc-dark-gray);
}

.featured-article p {
    color: var(--cnbc-light-text);
    margin-bottom: 15px;
    font-size: 1rem;
}

.article-meta {
    color: var(--cnbc-light-text);
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Articles Grid - Mobile Optimized */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* 1 column by default */
    gap: 20px;
    margin-bottom: 30px;
}

@media (min-width: 480px) {
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

.article-card {
    border-bottom: 1px solid var(--cnbc-gray);
    padding-bottom: 20px;
}

.article-card:last-child {
    border-bottom: none;
}

.article-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 12px;
    border-radius: 6px;
}

.article-card h3 {
    font-size: 1.2rem;
    line-height: 1.3;
    margin-bottom: 8px;
}

.article-card p {
    color: var(--cnbc-light-text);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Article Like/Save Button */
.article-like-btn {
    background-color: transparent;
    border: 2px solid var(--cnbc-gray);
    color: var(--cnbc-dark-gray);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

.article-like-btn:hover {
    background-color: var(--cnbc-red);
    border-color: var(--cnbc-red);
    color: white;
    transform: translateY(-2px);
}

.article-like-btn i {
    font-size: 1rem;
}


/* Sidebar - Mobile Optimized */
.sidebar {
    background-color: var(--cnbc-light-gray);
    padding: 20px;
    border-radius: 8px;
    margin-top: 10px;
}

.sidebar h3 {
    color: var(--cnbc-blue);
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--cnbc-blue);
}

.sidebar-article {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--cnbc-gray);
}

.sidebar-article:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-article img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    margin-right: 12px;
    border-radius: 4px;
    flex-shrink: 0;
}

.sidebar-article-content {
    flex: 1;
}

.sidebar-article h4 {
    font-size: 0.95rem;
    line-height: 1.3;
    margin-bottom: 5px;
}

/* Latest News Ticker - Mobile Optimized */
.news-ticker {
    background-color: var(--cnbc-dark-gray);
    color: white;
    padding: 0;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
    border-bottom: 2px solid var(--cnbc-red);
    display: flex;
    align-items: center;
    height: 35px;
    /* Slightly shorter for mobile */
}

@media (min-width: 768px) {
    .news-ticker {
        height: 40px;
    }
}

.ticker-fixed-label {
    background-color: var(--cnbc-red);
    color: white;
    padding: 0 15px 0 10px;
    /* Tighter padding for mobile */
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 900;
    font-size: 0.75rem;
    /* Smaller font for mobile */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 10;
    white-space: nowrap;
    clip-path: polygon(0 0, 85% 0, 100% 100%, 0% 100%);
}

@media (min-width: 768px) {
    .ticker-fixed-label {
        padding: 0 25px 0 15px;
        font-size: 0.85rem;
    }
}

.ticker-fixed-label i {
    font-size: 0.75rem;
    margin-left: 5px;
}

.ticker-content-wrapper {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 15px;
    /* Fix overlap with slanted label on mobile */
}

@media (min-width: 768px) {
    .ticker-content-wrapper {
        padding-left: 25px;
    }
}

.news-ticker-label {
    color: var(--cnbc-red);
    font-weight: bold;
    font-size: 0.9rem;
}

.ticker-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
}

.ticker-container {
    padding: 0;
    width: 100%;
}

.ticker-scroller {
    display: inline-flex;
    white-space: nowrap;
    animation: ticker-roll 80s linear infinite;
    /* Seamless loop without initial gap */
}

.ticker-scroller:hover {
    animation-play-state: paused;
}

@keyframes ticker-roll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Half width for duplicate content */
}

.ticker-item {
    white-space: nowrap;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    margin-right: 0;
}

.ticker-divider {
    margin: 0 20px;
    color: rgba(255, 255, 255, 0.3);
    font-weight: normal;
}

.ticker-item .ticker-label {
    background: #4a4a4a;
    /* Default darker badge */
    color: white;
    padding: 0 15px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: 900;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
}

/* Specific category colors for ticker */
.ticker-item .ticker-label[data-cat="AUTOMATION"] {
    background-color: #d22d27;
}

.ticker-item .ticker-label[data-cat="ROBOTICS"] {
    background-color: #0066a1;
}

.ticker-item .ticker-label[data-cat="AI"] {
    background-color: #059669;
}

.ticker-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 700;
    font-size: 0.9rem;
    padding-right: 20px;
}

.ticker-link:hover {
    color: #f59e0b;
    text-decoration: underline;
}

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    border-top: 1px solid var(--cnbc-gray);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.mobile-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--cnbc-light-text);
    font-size: 0.75rem;
    flex: 1;
}

.mobile-bottom-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.mobile-bottom-nav-item.active {
    color: var(--cnbc-red);
}

/* Footer - Mobile Optimized */
.footer {
    background-color: var(--cnbc-dark-gray);
    color: white;
    padding: 30px 0 20px;
    margin-top: 30px;
    margin-bottom: 60px;
    /* Account for bottom nav */
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns on mobile */
    gap: 30px 20px;
    margin-bottom: 30px;
}

.footer-column:last-child {
    grid-column: span 2;
    /* "Follow Us" spans full width */
    text-align: center;
}

.footer-column:last-child ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

@media (min-width: 768px) {
    .footer-links {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 25px;
    }

    .footer-column:last-child {
        grid-column: auto;
        text-align: left;
    }

    .footer-column:last-child ul {
        display: block;
    }
}

.footer-column h4 {
    color: var(--cnbc-gray);
    font-size: 0.95rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-column a:hover {
    color: white;
}

.copyright {
    border-top: 1px solid #555;
    padding-top: 15px;
    text-align: center;
    color: #aaa;
    font-size: 0.8rem;
}

/* Responsive Design */
@media (min-width: 768px) {
    .top-bar {
        display: block;
    }

    .date-time {
        display: block;
    }

    .mobile-menu-btn {
        display: none;
    }

    .desktop-only {
        display: flex;
    }

    .nav-container {
        display: block;
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 30px;
    }

    .main-nav {
        display: flex;
        list-style: none;
        border-top: 1px solid var(--cnbc-gray);
        padding-top: 12px;
        padding-bottom: 12px;
        overflow-x: auto;
        white-space: nowrap;
    }

    .main-nav li {
        margin-right: 25px;
    }

    .main-nav a {
        text-decoration: none;
        color: var(--cnbc-dark-gray);
        font-weight: 600;
        font-size: 0.95rem;
        transition: color 0.2s;
    }

    .main-nav a:hover {
        color: var(--cnbc-red);
    }

    .main-nav .active a {
        color: var(--cnbc-red);
        border-bottom: 2px solid var(--cnbc-red);
        padding-bottom: 10px;
    }

    .logo-container {
        flex-direction: row;
        align-items: center;
        padding: 15px 20px;
    }

    .logo {
        flex-direction: row;
        align-items: center;
    }

    .logo h1 {
        font-size: 2.2rem;
        letter-spacing: -2px;
    }

    .logo .tagline {
        margin-left: 10px;
        margin-top: 3px;
        /* Better baseline alignment */
        font-size: 0.85rem;
    }

    .content-wrapper {
        flex-direction: row;
        gap: 30px;
    }

    .main-content {
        flex: 3;
    }

    .sidebar {
        flex: 1;
        margin-top: 0;
        margin-left: 40px;
        padding-left: 20px;
        position: sticky;
        top: 20px;
        align-self: flex-start;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }

    .articles-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .article-card {
        border-bottom: none;
        padding-bottom: 0;
    }

    .featured-article img {
        height: 350px;
    }

    .footer-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .mobile-bottom-nav {
        display: none;
    }

    .footer {
        margin-bottom: 0;
    }
}

@media (min-width: 1024px) {

    .container,
    .logo-container,
    .nav-container,
    .footer-container {
        max-width: 1400px;
        padding-left: 30px;
        padding-right: 30px;
    }

    .top-bar-container {
        padding: 0 30px;
        max-width: 1400px;
    }

    .featured-article img {
        height: 400px;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-links {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Modern Category & Blog Styles */
.category-hero {
    background: linear-gradient(135deg, var(--cnbc-dark-blue) 0%, #001f3f 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
    border-radius: 0 0 20px 20px;
    position: relative;
    overflow: hidden;
}

.category-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MCIgaGVpZ2h0PSI4MCIgdmlld0JveD0iMCAwIDgwIDgwIiBvcGFjaXR5PSIwLjEiPjxnIGZpbGw9IiNmZmYiPjxwYXRoIGQ9Ik0wIDBoODB2ODBIMHoiIGZpbGw9Im5vbmUiLz48cGF0aCBkPSJNMCAwYzQwIDAgODAgNDAgODAgODBWMHoiLz48L2c+PC9zdmc+');
    opacity: 0.1;
}

.category-hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.category-hero h1 {
    font-size: 2rem;
    /* Smaller for mobile */
    font-weight: 800;
    margin-bottom: 10px;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .category-hero h1 {
        font-size: 3rem;
        letter-spacing: 1px;
    }
}

.category-hero p {
    font-size: 1rem;
    /* Smaller for mobile */
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .category-hero p {
        font-size: 1.2rem;
    }
}

/* Modern Card Design */
.modern-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.modern-card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.modern-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.modern-card:hover img {
    transform: scale(1.05);
}

.modern-card-content {
    padding: 15px;
    /* Tighter for mobile */
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .modern-card-content {
        padding: 20px;
    }
}

.modern-card-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 102, 161, 0.9);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    backdrop-filter: blur(5px);
}

.modern-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--cnbc-text);
}

.modern-card p {
    color: #666;
    font-size: 0.95rem;
    flex: 1;
    margin-bottom: 15px;
}

.modern-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
    font-size: 0.8rem;
    color: #888;
}

/* Breadcrumbs */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 30px;
    font-size: 0.85rem;
    color: #64748b;
}

.breadcrumb-nav a {
    color: var(--cnbc-blue);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-nav a:hover {
    color: var(--cnbc-red);
}

.breadcrumb-nav i {
    font-size: 0.7rem;
    opacity: 0.5;
}

/* Single Blog Header Section (Centered) */
.single-blog-header-section {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.floating-category {
    margin-bottom: 25px;
}

.floating-category a {
    background: var(--cnbc-blue);
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1.5px;
    display: inline-block;
    transition: all 0.3s ease;
}

.floating-category a:hover {
    background: var(--cnbc-red);
    transform: translateY(-2px);
}

.single-blog-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 30px;
    color: var(--cnbc-text);
    text-transform: none;
}

@media (min-width: 768px) {
    .single-blog-title {
        font-size: 3.8rem;
    }
}

/* Premium Meta Box */
.premium-meta-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 35px;
    padding: 20px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #475569;
}

.meta-item i {
    color: var(--cnbc-blue);
    font-size: 1rem;
}

.meta-divider {
    width: 1px;
    height: 15px;
    background: #e2e8f0;
}

@media (max-width: 600px) {
    .meta-divider {
        display: none;
    }

    .premium-meta-box {
        gap: 10px 20px;
    }
}

/* Hero Wrapper (Centered) */
.premium-hero-wrapper {
    margin: 40px auto;
    max-width: 1000px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.single-blog-hero {
    height: auto;
    max-height: 650px;
    width: 100%;
    object-fit: cover;
    display: block;
}

.single-blog-content {
    font-size: 1.1rem;
    /* Smaller for mobile */
    line-height: 1.7;
    /* Tighter for mobile */
    color: #2a2a2a;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .single-blog-content {
        font-size: 1.25rem;
        line-height: 1.9;
    }
}

.single-blog-content p {
    margin-bottom: 30px;
}

/* Social Share (Premium) */
.premium-share-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.share-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    min-width: 120px;
    justify-content: center;
}

.share-btn i {
    font-size: 1.1rem;
}

@media (max-width: 600px) {
    .share-btn span {
        display: none;
    }

    .share-btn {
        min-width: 50px;
        flex: 1;
    }
}

.share-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    filter: brightness(1.1);
}

.share-btn.twitter {
    background: #000000;
}

.share-btn.facebook {
    background: #1877F2;
}

.share-btn.linkedin {
    background: #0A66C2;
}

.share-btn.whatsapp {
    background: #25D366;
}

/* Premium Author Box */
.author-box {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 2px solid #f1f5f9;
}

.author-card {
    display: flex;
    gap: 30px;
    background: #f8fafc;
    padding: 35px;
    border-radius: 16px;
    align-items: flex-start;
    border: 1px solid #eef2f6;
}

@media (max-width: 768px) {
    .author-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
    }
}

.author-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: #cbd5e1;
    flex-shrink: 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.author-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--cnbc-blue);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.author-info h4 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 12px;
    color: var(--cnbc-dark-gray);
    letter-spacing: -0.5px;
}

.author-info p {
    font-size: 1rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 25px;
}

.author-social {
    display: flex;
    gap: 20px;
}

@media (max-width: 768px) {
    .author-social {
        justify-content: center;
    }
}

.author-social a {
    color: #94a3b8;
    font-size: 1.4rem;
    transition: all 0.2s ease;
}

.author-social a:hover {
    color: var(--cnbc-blue);
    transform: scale(1.1);
}

/* About & Contact Page Styles - Mobile First */
.about-container {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

/* About Page Hero */
.about-hero {
    background: linear-gradient(135deg, var(--cnbc-dark-blue), #0f172a);
    color: white;
    padding: 110px 20px;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.about-hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: white;
    transform: skewY(-3.5deg);
}

.about-hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.about-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .about-hero h1 {
        font-size: 3.5rem;
    }

    .about-hero p {
        font-size: 1.25rem;
    }
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

@media (min-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-section {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.about-section h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--cnbc-blue);
    font-size: 1.4rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Related Posts Section */
.related-posts-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #f1f5f9;
}

.related-section-title {
    font-size: 1.4rem;
    margin-bottom: 30px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--cnbc-dark-gray);
    border-left: 6px solid var(--cnbc-red);
    padding-left: 15px;
    letter-spacing: -0.5px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.related-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: #e2e8f0;
}

.related-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.related-image {
    height: 180px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.08);
}

.related-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.related-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
    color: var(--cnbc-text);
    transition: color 0.2s;
}

.related-card:hover .related-title {
    color: var(--cnbc-blue);
}

.related-meta {
    margin-top: auto;
    font-size: 0.85rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.related-meta i {
    color: var(--cnbc-blue);
}

.contact-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
}

.page-title {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    border-bottom: 2px solid var(--cnbc-blue);
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-size: 1.8rem;
    /* Smaller for mobile */
}

@media (min-width: 768px) {
    .page-title {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }
}

.about-content {
    font-size: 1rem;
    color: #333;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .about-content {
        font-size: 1.1rem;
        line-height: 1.8;
    }
}

.section-title {
    margin: 30px 0 15px;
    color: var(--cnbc-blue);
    font-size: 1.3rem;
}

@media (min-width: 768px) {
    .section-title {
        margin: 40px 0 20px;
        font-size: 1.6rem;
    }
}

.coverage-list {
    list-style-type: none;
    padding-left: 0;
}

.coverage-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.coverage-list i {
    color: var(--cnbc-blue);
    margin-right: 12px;
    margin-top: 4px;
}

.cta-box {
    background: #f7fafc;
    padding: 25px;
    border-radius: 12px;
    margin-top: 40px;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    font-size: 1.5rem;
}

.social-links a {
    transition: transform 0.2s;
}

.social-links a:hover {
    transform: scale(1.2);
}

/* Contact Page Specific */
.contact-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

@media (min-width: 768px) {
    .contact-card {
        padding: 40px;
    }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    /* Stack on mobile */
    gap: 20px;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.submit-btn {
    background: var(--cnbc-red);
    color: white;
    border: none;
    padding: 14px 25px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(210, 45, 39, 0.2);
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(210, 45, 39, 0.3);
}

.contact-info-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr;
    /* Stack on mobile */
    gap: 20px;
}

@media (min-width: 480px) {
    .contact-info-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

.info-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
}

.info-item i {
    font-size: 2rem;
    color: var(--cnbc-blue);
    margin-bottom: 12px;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}