/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #10b981;
    --dark-bg: #0f172a;
    --dark-card: #1e293b;
    --dark-border: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    background-image:
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.1) 0px, transparent 50%);
}

.container {
    max-width: 100%;
    width: 90%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Limit container width only for header */
.header .container {
    max-width: 100%;
    width: 90%;
}

/* Markets banner should be full width like news section */
.top-coins-banner .container {
    max-width: 100%;
    width: 90%;
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 16px;
    }
}

/* Header */
.header {
    background: var(--dark-card);
    border-bottom: 1px solid var(--dark-border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(30, 41, 59, 0.8);
}

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

.logo h1 {
    font-size: 28px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.tagline {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
}

/* Header Controls */
.header-controls {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Selector Dropdown */
.selector-dropdown {
    position: relative;
}

.selector-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(51, 65, 85, 0.6);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.selector-btn:hover {
    background: rgba(51, 65, 85, 0.9);
    border-color: rgba(102, 126, 234, 0.5);
}

.selector-icon {
    font-size: 16px;
}

.selector-text {
    min-width: 30px;
}

.selector-arrow {
    font-size: 10px;
    opacity: 0.6;
    transition: transform 0.2s ease;
}

.selector-dropdown.open .selector-arrow {
    transform: rotate(180deg);
}

.selector-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 150px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.selector-dropdown.open .selector-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.selector-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 14px;
    color: var(--text-primary);
}

.selector-item:hover {
    background: rgba(102, 126, 234, 0.1);
}

.selector-item.active {
    background: rgba(102, 126, 234, 0.15);
}

.currency-flag, .lang-flag {
    font-size: 18px;
}

.check-mark {
    margin-left: auto;
    color: var(--success-color);
    font-weight: bold;
    opacity: 0;
}

.selector-item.active .check-mark {
    opacity: 1;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-indicator {
    flex-direction: row;
    gap: 8px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Top Coins Banner */
.top-coins-banner {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-bottom: 1px solid var(--dark-border);
    padding: 30px 0;
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.title-icon {
    font-size: 24px;
}

.refresh-icon {
    margin-left: auto;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.refresh-icon:hover {
    opacity: 1;
    transform: rotate(180deg);
}

/* Markets Layout - Horizontal: Crypto Left, Traditional Right */
.coins-slider {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
}

/* Crypto Section (Left) - 10 coins in 2 rows of 5 */
.crypto-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.crypto-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

/* Traditional Section (Right) - 2 markets vertically stacked */
.traditional-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: space-between;
    height: 100%;
}

.traditional-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Responsive breakpoints */
@media (max-width: 1600px) {
    .coins-slider {
        grid-template-columns: 1fr 350px;
    }
    .crypto-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1400px) {
    .coins-slider {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .crypto-row {
        grid-template-columns: repeat(5, 1fr);
    }
    .traditional-section {
        width: 100%;
    }
    .traditional-row {
        flex-direction: row;
        gap: 16px;
    }
    .traditional-row > * {
        flex: 1;
    }
}

@media (max-width: 1024px) {
    .crypto-row {
        grid-template-columns: repeat(3, 1fr);
    }
    .traditional-row {
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    .crypto-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .traditional-row {
        flex-direction: row;
    }
}

@media (max-width: 480px) {
    .crypto-row {
        grid-template-columns: 1fr;
    }
    .traditional-row {
        flex-direction: column;
    }
}

.coin-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.coin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.coin-card:hover::before {
    transform: translateX(100%);
}

.coin-card:hover {
    transform: translateY(-4px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.coin-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.coin-icon img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.coin-info {
    flex: 1;
    min-width: 0;
}

.coin-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.coin-symbol {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.coin-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.coin-change {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.coin-change.positive {
    color: var(--success-color);
}

.coin-change.negative {
    color: var(--danger-color);
}

.coin-rank {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(102, 126, 234, 0.2);
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 8px;
}

.loading-coins {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    padding: 20px;
    color: var(--text-muted);
}

.loading-spinner-small {
    width: 24px;
    height: 24px;
    border: 3px solid var(--dark-border);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Skeleton Loader */
.skeleton-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.skeleton {
    background: linear-gradient(90deg, var(--dark-border) 25%, rgba(102, 126, 234, 0.1) 50%, var(--dark-border) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.skeleton-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-line {
    height: 12px;
    border-radius: 4px;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-line.medium {
    width: 80%;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Main Content */
.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* News Card */
.news-card {
    background: linear-gradient(135deg, var(--dark-card) 0%, rgba(30, 41, 59, 0.8) 100%);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease;
    backdrop-filter: blur(10px);
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.news-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
                rgba(102, 126, 234, 0.1) 0%,
                transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.news-card:hover::before {
    transform: scaleX(1);
}

.news-card:hover::after {
    opacity: 1;
}

.news-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(102, 126, 234, 0.3);
}

.news-card.new {
    animation: slideInRight 0.5s ease, glow 2s ease-in-out;
    border-color: var(--success-color);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(16, 185, 129, 0.6);
    }
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 12px;
}

.news-emoji {
    font-size: 32px;
    line-height: 1;
}

.news-thumbnail {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.news-source {
    flex: 1;
}

.source-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.news-time {
    font-size: 12px;
    color: var(--text-muted);
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.news-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--dark-border);
}

.news-link {
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.news-link:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.new-badge {
    background: var(--success-color);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin: 40px 0;
}

.load-more-btn {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.4);
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Loading */
.loading {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--dark-border);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.empty-state p {
    font-size: 16px;
    color: var(--text-muted);
}

/* Footer */
.footer {
    background: var(--dark-card);
    border-top: 1px solid var(--dark-border);
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
}

.footer p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 8px;
}

.disclaimer {
    font-size: 13px;
    opacity: 0.7;
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--dark-card);
    border: 1px solid var(--success-color);
    border-radius: 12px;
    padding: 16px 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-emoji {
    font-size: 24px;
}

.toast-message {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats {
        gap: 20px;
        width: 100%;
        justify-content: space-between;
    }

    .stat-number {
        font-size: 20px;
    }

    .top-coins-banner {
        padding: 20px 0;
    }

    .section-title {
        font-size: 18px;
    }

    .coins-slider {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 12px;
    }

    .coin-card {
        padding: 12px;
    }

    .coin-icon {
        width: 36px;
        height: 36px;
    }

    .coin-icon img {
        width: 28px;
        height: 28px;
    }

    .coin-name {
        font-size: 13px;
    }

    .coin-price {
        font-size: 14px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .logo h1 {
        font-size: 24px;
    }

    .news-card {
        padding: 20px;
    }

    .news-card:hover {
        transform: translateY(-2px) scale(1.01);
    }

    .header-controls {
        gap: 10px;
    }

    .selector-btn {
        padding: 6px 10px;
        font-size: 13px;
    }

    .selector-icon {
        font-size: 14px;
    }

    .selector-text {
        min-width: 24px;
    }

    .toast {
        right: 10px;
        left: 10px;
        top: 80px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--dark-border);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* ========================================
   3-COLUMN MAGAZINE LAYOUT
   ======================================== */

.content-layout {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 24px;
    margin-top: 30px;
}

/* Large screens - expand sidebars proportionally */
@media (min-width: 1400px) {
    .content-layout {
        grid-template-columns: 320px 1fr 320px;
        gap: 32px;
    }
}

@media (min-width: 1600px) {
    .content-layout {
        grid-template-columns: 340px 1fr 340px;
        gap: 40px;
    }
}

@media (min-width: 1920px) {
    .content-layout {
        grid-template-columns: 380px 1fr 380px;
        gap: 48px;
    }
}

/* Left Sidebar */
.left-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--dark-border);
}

.sidebar-title .title-icon {
    font-size: 20px;
}

/* Recent News List (Left Sidebar) */
.recent-news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recent-news-item {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    gap: 12px;
    text-decoration: none;
}

.recent-news-item:hover {
    background: rgba(51, 65, 85, 0.8);
    border-color: rgba(102, 126, 234, 0.6);
    transform: translateX(4px);
}

.recent-news-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.recent-news-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.recent-news-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.recent-news-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-news-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
}

.recent-news-source {
    font-weight: 500;
}

.recent-news-time {
    opacity: 0.8;
}

/* Center Content */
.center-content {
    min-width: 0;
}

.subsection-title {
    font-size: 20px;
    font-weight: 700;
    margin: 30px 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

/* Featured News (Center) */
.featured-news {
    background: linear-gradient(135deg, var(--dark-card) 0%, rgba(30, 41, 59, 0.9) 100%);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.featured-news:hover {
    transform: translateY(-4px);
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.featured-image {
    width: 100%;
    height: 450px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    position: relative;
    overflow: hidden;
}

/* Larger featured image on bigger screens */
@media (min-width: 1400px) {
    .featured-image {
        height: 500px;
        font-size: 120px;
    }
}

@media (min-width: 1600px) {
    .featured-image {
        height: 550px;
        font-size: 140px;
    }
}

.featured-image img,
.featured-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    padding: 36px;
}

@media (min-width: 1400px) {
    .featured-content {
        padding: 40px;
    }
}

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

.featured-source {
    display: flex;
    align-items: center;
    gap: 12px;
}

.featured-emoji {
    font-size: 32px;
}

.featured-thumbnail-small {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.featured-source-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.featured-source-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
}

.featured-time {
    font-size: 13px;
    color: var(--text-muted);
}

.featured-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 18px;
}

@media (min-width: 1400px) {
    .featured-title {
        font-size: 36px;
        margin-bottom: 20px;
    }
}

@media (min-width: 1600px) {
    .featured-title {
        font-size: 40px;
        margin-bottom: 24px;
    }
}

.featured-excerpt {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

@media (min-width: 1400px) {
    .featured-excerpt {
        font-size: 18px;
        line-height: 1.8;
    }
}

.featured-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.featured-link:hover {
    color: #3b82f6;
    gap: 12px;
}

/* Right Sidebar */
.right-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Trending News List (Right Sidebar) */
.trending-news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.trending-news-item {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.trending-news-item:hover {
    background: rgba(51, 65, 85, 0.8);
    border-color: rgba(102, 126, 234, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.trending-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trending-news-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trending-news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
}

.trending-news-source {
    font-weight: 500;
}

/* Center News Grid - Make it 2 columns on larger screens */
.center-content .news-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Responsive Design */
@media (max-width: 1200px) {
    .content-layout {
        grid-template-columns: 250px 1fr 250px;
        gap: 20px;
    }

    .left-sidebar, .right-sidebar {
        font-size: 14px;
    }

    .featured-title {
        font-size: 24px;
    }
}

@media (max-width: 992px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .left-sidebar, .right-sidebar {
        position: static;
        max-width: 100%;
    }

    .left-sidebar {
        order: 2;
    }

    .center-content {
        order: 1;
    }

    .right-sidebar {
        order: 3;
    }

    .recent-news-list, .trending-news-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
    }

    .featured-image {
        height: 300px;
    }

    .featured-title {
        font-size: 22px;
    }
}

@media (max-width: 640px) {
    .featured-image {
        height: 200px;
        font-size: 60px;
    }

    .featured-content {
        padding: 20px;
    }

    .featured-title {
        font-size: 20px;
    }

    .featured-excerpt {
        font-size: 14px;
    }

    .recent-news-list, .trending-news-list {
        grid-template-columns: 1fr;
    }
}
