/* desktop-new.css */
:root {
    --primary-color-rgb: 59, 130, 246;
    /* Default specific fallback */
    --surface-light: #ffffff;
    --surface-dim: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
}

body {
    background-color: var(--surface-dim);
    color: var(--text-primary);
    line-height: 1.6;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -0.025em;
}

/* --- Utility Classes --- */
.container {
    max-width: 1280px;
    /* Slightly wider for modern feel */
}

.object-cover {
    object-fit: cover;
}

.hover-scale {
    transition: transform 0.2s ease-in-out;
}

.hover-scale:hover {
    transform: scale(1.02);
}

/* --- Header Redesign --- */
.top-bar {
    background: #0f172a !important;
    /* Force darker dark */
    color: #e2e8f0;
    font-size: 0.85rem;
    padding: 8px 0;
}

.main-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.8rem 0;
    /* Reduced padding for sleeker look despite larger logo */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Force logo size override */
.logo img {
    height: 30px !important;
    /* Reduced size as requested */
    width: auto;
    transition: transform 0.3s ease;
    padding-right: 10px;
}

.logo:hover img {
    transform: scale(1.05);
}

/* Redesigned Menu Bar */
.main-nav {
    display: flex;
    gap: 0.5rem;
    /* Gap handled by padding of items */
    align-items: center;
    background: rgba(241, 245, 249, 0.5);
    /* Subtle pill container bg */
    padding: 5px;
    border-radius: 99px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.main-nav a {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
    border-radius: 99px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.main-nav a::after {
    display: none;
    /* Remove previous underline effect */
}

/* --- Hero Section --- */
.hero-section {
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    height: 500px;
    /* Fixed height for consistency */
}

.hero-main {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: block;
    height: 100%;
    box-shadow: var(--shadow-md);
}

.hero-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-main:hover img {
    transform: scale(1.03);
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5), transparent);
    padding: 2rem;
    color: white;
}

.hero-title-lg {
    font-size: 2.5rem;
    color: white;
    margin: 0.5rem 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-side-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    padding-right: 5px;
    /* Prevent visual cut-off */
}

.hero-side-list::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.side-item {
    display: flex;
    gap: 1rem;
    background: white;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.03);
    align-items: center;
}

.side-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.side-item img {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.side-item-content h4 {
    font-size: 0.95rem;
    margin: 0 0 0.25rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-primary);
}

/* --- Cards --- */
.card-premium {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-premium:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.badge-cat {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.badge-cat.orange {
    background: #fff7ed;
    color: #c2410c;
}

.badge-cat.blue {
    background: #eff6ff;
    color: #2563eb;
}

.badge-cat.green {
    background: #f0fdf4;
    color: #15803d;
}

.post-title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.4;
    font-weight: 700;
}

.meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

/* --- Sidebar --- */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
    margin-top: 3rem;
}

.section-title {
    font-size: 1.5rem;
    position: relative;
    margin: 0;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.6rem;
    /* Align with border-bottom */
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* --- Web Stories Marquee --- */
.web-stories-section {
    margin-bottom: 5rem;
    /* Space after section */
    overflow: hidden;
}

.stories-marquee-wrapper {
    display: flex;
    gap: 20px;
    width: 100%;
    overflow: hidden;
}

.stories-track {
    display: flex;
    gap: 20px;
    animation: scroll 40s linear infinite;
    width: max-content;
}

.stories-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.story-card-wrapper {
    width: 200px;
    /* Fixed width for stories */
    flex-shrink: 0;
}

/* --- Footer Refinement --- */
.main-footer {
    background: linear-gradient(to bottom, #0f172a, #020617);
    color: #cbd5e1;
    padding: 5rem 0 2rem;
    margin-top: 5rem;
    position: relative;
    border-top: 5px solid var(--primary-color);
}

/* Wave Decoration (Optional, handled via border-top for cleanliness as requested) */

.footer-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links li a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
}

.footer-links li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-links li a::before {
    content: '\f105';
    /* FontAwesome angle-right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 8px;
    font-size: 0.8rem;
    opacity: 0.5;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4rem;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
}

/* Breaking News Ticker Redesign */
.breaking-news-ticker {
    border: none !important;
    box-shadow: var(--shadow-sm);
}

.ticker-title {
    background: var(--primary-color) !important;
}