/* ULTIMATE PROFESSIONAL NEWS PORTAL CSS */
:root {
    --primary: #1a365d;
    --primary-light: #2d5a87;
    --primary-dark: #0f2a44;
    --accent: #e53e3e;
    --accent-light: #fc8181;
    --success: #38a169;
    --warning: #d69e2e;
    --info: #3182ce;
    --bg: #ffffff;
    --bg-alt: #f7fafc;
    --surface: #ffffff;
    --surface-hover: #edf2f7;
    --text: #1a202c;
    --text-light: #4a5568;
    --text-muted: #718096;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
    --shadow-xl: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
    --radius: 6px;
    --radius-lg: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-primary: 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

[data-theme="dark"] {
    --bg: #1a202c;
    --bg-alt: #2d3748;
    --surface: #2d3748;
    --surface-hover: #4a5568;
    --text: #f7fafc;
    --text-light: #e2e8f0;
    --text-muted: #a0aec0;
    --border: #4a5568;
    --border-light: #2d3748;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

/* TOP BAR */
.top-bar {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 500;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.live-data {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.live-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.15);
    transition: var(--transition);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    min-width: fit-content;
}

.live-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

.live-label {
    opacity: 0.9;
    font-size: 12px;
}

.positive { color: #68d391; }
.negative { color: #fc8181; }

.live-time {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.top-actions {
    display: flex;
    gap: 12px;
}

.top-btn {
    padding: 6px 12px;
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.top-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* TICKER */
.ticker {
    background: var(--accent);
    color: white;
    padding: 12px 0;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.ticker-content {
    display: flex;
    align-items: center;
    animation: scroll 40s linear infinite;
    white-space: nowrap;
    font-weight: 500;
}

@keyframes scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* HEADER */
.header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.header.scrolled {
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    background: rgba(255,255,255,0.95);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 16px 0;
    flex-wrap: wrap;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: var(--transition);
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo-text h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    margin: 0;
}

.nepali-title {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    display: block;
    line-height: 1.3;
}

.tagline {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
    display: block;
    margin-top: 2px;
}

.live-badge {
    background: linear-gradient(45deg, var(--accent), var(--accent-light));
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: pulse 2s infinite;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

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

/* SEARCH */
.header-center {
    flex: 1;
    max-width: 500px;
    margin: 0 16px;
}

.search-container {
    position: relative;
    margin-bottom: 8px;
}

.search-input {
    width: 100%;
    padding: 12px 48px 12px 20px;
    border: 2px solid var(--border);
    border-radius: 25px;
    background: var(--bg-alt);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
    background: var(--surface);
}

.search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}

.suggestion-item:hover {
    background: var(--surface-hover);
    color: var(--primary);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item strong {
    color: var(--primary);
    font-weight: 600;
}

.trending-keywords {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.trending-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.trending-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.trending-tag {
    padding: 4px 8px;
    background: var(--surface-hover);
    color: var(--text-light);
    border-radius: 12px;
    font-size: 11px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.trending-tag:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

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

.control-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.control-btn {
    position: relative;
    padding: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    font-weight: 700;
}

.user-menu {
    position: relative;
}

.user-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    z-index: 1000;
    margin-top: 8px;
}

.user-dropdown a {
    display: block;
    padding: 12px 16px;
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
    font-weight: 500;
}

.user-dropdown a:hover {
    background: var(--surface-hover);
    color: var(--primary);
}

/* NAVIGATION */
.main-nav {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 12px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
    padding: 4px 0;
}

.nav-categories::-webkit-scrollbar {
    display: none;
}

.nav-chip {
    padding: 8px 16px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-chip:hover,
.nav-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.nav-extras {
    display: flex;
    gap: 8px;
    margin-left: 16px;
}

.nav-extra {
    padding: 8px 12px;
    background: var(--warning);
    color: var(--text);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-extra:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* BREAKING ALERT */
.breaking-alert {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    padding: 12px 0;
    animation: slideDown 0.5s ease;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.alert-icon {
    font-size: 20px;
    animation: pulse 1.5s infinite;
}

.alert-text {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
}

.alert-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
    transition: var(--transition);
}

.alert-close:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* HERO CAROUSEL */
.hero-section {
    margin: 20px 0;
}

.hero-carousel {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    background: var(--surface);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slides {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    color: white;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    z-index: 2;
}

.carousel-content h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.carousel-content p {
    font-size: 18px;
    margin-bottom: 24px;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    font-size: 24px;
    padding: 16px;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 3;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev { left: 24px; }
.carousel-btn.next { right: 24px; }

.carousel-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: white;
    transform: scale(1.3);
}

/* BREAKING NEWS BAR */
.breaking-news {
    background: var(--info);
    color: white;
    padding: 12px 0;
    margin-bottom: 24px;
}

.breaking-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.breaking-label {
    font-weight: 700;
    white-space: nowrap;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.breaking-text {
    flex: 1;
    animation: marquee 30s linear infinite;
    font-weight: 500;
    font-size: 14px;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* SECTIONS */
.main {
    padding: 20px 0;
    position: relative;
    z-index: 1;
    min-height: 60vh;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    position: relative;
    flex-wrap: wrap;
    gap: 12px;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    position: relative;
}

.category-indicator {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    margin-right: 8px;
    display: inline-block;
}

.news-count {
    font-size: 18px;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 8px;
}

.view-toggle {
    display: flex;
    gap: 4px;
    background: var(--surface-hover);
    border-radius: 8px;
    padding: 4px;
}

.toggle-btn {
    padding: 8px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
    font-size: 16px;
}

.toggle-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.see-all-btn {
    padding: 8px 16px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.see-all-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* FEATURED GRID */
.featured-grid {
    margin-bottom: 48px;
    height: 400px;
}

.tiktok-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
}

.tiktok-scroll::-webkit-scrollbar {
    display: none;
}

.tiktok-card {
    flex: 0 0 240px;
    height: 380px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 2px solid #8b0000;
    box-shadow: 0 0 8px rgba(139, 0, 0, 0.3);
}

.tiktok-card:hover {
    transform: scale(1.05);
}

.tiktok-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tiktok-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
}

.tiktok-overlay h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.tiktok-overlay time {
    font-size: 12px;
    opacity: 0.8;
}

.featured-main {
    width: 66.67%;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    cursor: pointer;
    transition: all 0.3s ease;
    height: 420px;
}

.featured-main:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}

.featured-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.featured-main:hover img {
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 24px;
}

.featured-overlay h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.featured-sidebar {
    width: 33.33%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 420px;
    margin-left: auto;
}

.featured-item {
    height: 96px;
}

.featured-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--surface);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    align-items: flex-start;
    height: 96px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.featured-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    border-color: var(--primary);
}

.featured-item img {
    width: 70px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.featured-item:hover img {
    transform: scale(1.05);
}

.featured-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 50px;
    overflow: hidden;
}

.featured-item-content h4 {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 4px;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-item-content time {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: auto;
}

/* NEWS GRID */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
    width: 100%;
}

.news-card {
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 380px;
    position: relative;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 20px;
}

.news-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    border-color: var(--primary);
}

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

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: block;
}

.news-card:hover img {
    transform: scale(1.05);
}

.news-card-content {
    padding: 20px;
    background: var(--surface);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.news-card-content img {
    display: none !important;
}

.news-card-content * {
    color: var(--text) !important;
    background: transparent !important;
    text-shadow: none !important;
    filter: none !important;
    font-weight: normal !important;
}

.news-card-content img,
.news-card-content picture,
.news-card-content video {
    display: none !important;
}

.news-card h3 {
    color: var(--text) !important;
    background: none !important;
    text-decoration: none !important;
    font-style: normal !important;
}

.news-card p {
    color: var(--text-light) !important;
    background: none !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4 !important;
    max-height: 2.8em;
}

.trending-badge {
    background: var(--accent);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 12px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.trending-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.trending-badge:hover::before {
    left: 100%;
}

.card-meta-top {
    display: none;
}

.card-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.card-meta-item i {
    font-size: 10px;
    color: var(--primary);
}

.news-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card p {
    color: var(--text-light) !important;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.4 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 2.8em !important;
    background: none !important;
    text-decoration: none !important;
    font-style: normal !important;
    font-weight: normal !important;
}

.news-card p img,
.news-card p picture,
.news-card p video {
    display: none !important;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.read-time {
    background: var(--surface-hover);
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--primary);
}

/* LOAD MORE */
.load-more-btn {
    display: block;
    margin: 24px auto;
    padding: 10px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.load-more-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* FLOATING ACTION BUTTON */
.fab-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}

/* MODAL STYLES */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--surface);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--surface-hover);
    color: var(--text);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-primary {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.subscription-plans {
    display: grid;
    gap: 16px;
}

.plan {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.plan:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.plan h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text);
}

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

.plan ul {
    list-style: none;
    margin-bottom: 20px;
}

.plan li {
    padding: 4px 0;
    color: var(--text-light);
}

.notification-item {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.notification-item:hover {
    background: var(--surface-hover);
}

.notification-item h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.notification-item p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.notification-item small {
    font-size: 11px;
    color: var(--text-muted);
}

.weather-widget {
    text-align: center;
}

.weather-today {
    margin-bottom: 20px;
}

.weather-today h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text);
}

.temp {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.condition {
    font-size: 14px;
    color: var(--text-light);
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    background: var(--surface-hover);
    border-radius: var(--radius);
    font-size: 12px;
}

.detail-item span:first-child {
    color: var(--text-muted);
    margin-bottom: 4px;
}

.detail-item span:last-child {
    font-weight: 600;
    color: var(--primary);
}

.weather-forecast {
    margin-top: 20px;
}

.weather-forecast h5 {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--text);
    text-align: center;
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.forecast-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--surface-hover);
    border-radius: var(--radius);
    font-size: 14px;
}

.horoscope-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.horoscope-item {
    padding: 16px;
    background: var(--surface-hover);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.horoscope-item:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.horoscope-item h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.horoscope-item p {
    font-size: 11px;
    opacity: 0.8;
}

.list-view {
    display: block !important;
}

.list-view .news-card {
    display: flex;
    margin-bottom: 16px;
    height: 120px;
}

.list-view .news-card img {
    width: 200px;
    height: 120px;
    flex-shrink: 0;
}

.list-view .news-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* TRENDING CAROUSEL */
.trending-section {
    margin-bottom: 48px;
}

.trending-carousel {
    position: relative;
    overflow: hidden;
}

.trending-slides {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 16px;
    scroll-behavior: smooth;
    align-items: stretch;
    padding: 10px;
    scrollbar-width: none;
}

.trending-slides::-webkit-scrollbar {
    display: none;
}

.trending-card {
    flex: 0 0 280px;
    max-width: 280px;
    height: 350px;
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    display: inline-block;
    box-sizing: border-box;
}

.trending-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.trending-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.trending-prev {
    left: 10px;
}

.trending-next {
    right: 10px;
}

.trending-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 18px;
}

.trending-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    border-color: var(--primary);
}

.trending-card:hover::before {
    opacity: 1;
}

.trending-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: all 0.3s ease;
}

.trending-card:hover img {
    transform: scale(1.05);
}

.trending-card-content {
    padding: 16px;
    height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.trending-card-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 36px;
}

.trending-card-content p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    margin-bottom: 8px;
}

.trending-card-content img,
.trending-card-content picture,
.trending-card-content video {
    display: none !important;
}

.trending-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: auto;
}

.slide-btn {
    display: none;
}

/* LOADING STATES */
.skeleton-hero {
    height: 480px;
    background: var(--surface-hover);
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
    animation: pulse 1.5s ease-in-out infinite alternate;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.skeleton-card {
    background: var(--surface-hover);
    border-radius: var(--radius-lg);
    height: 400px;
    animation: pulse 1.5s ease-in-out infinite alternate;
}

/* ERROR STATES */
.error, .no-results {
    text-align: center;
    padding: 64px 32px;
}

.error-content, .no-results-content {
    max-width: 400px;
    margin: 0 auto;
}

.error-icon, .no-results-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.retry-btn {
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

/* COMMENTS SECTION */
.comments-section {
    background: var(--surface);
    padding: 32px;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
    border: 1px solid var(--border);
}

.comment-form textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.submit-comment {
    margin-top: 16px;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
}

/* NEWSLETTER POPUP */
.newsletter-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.popup-content {
    background: var(--surface);
    padding: 32px;
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
}

.newsletter-form {
    display: flex;
    gap: 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.newsletter-form button {
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
}

/* PREMIUM NAVIGATION */
.premium-nav {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 999;
}

.premium-categories {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 4px;
    padding: 8px 0;
    justify-content: flex-start;
}

.premium-categories::-webkit-scrollbar {
    display: none;
}

.premium-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-light);
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    min-width: 90px;
    position: relative;
    background: transparent;
    border-radius: 8px;
    flex-shrink: 0;
}

.premium-nav-item:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
}

.premium-nav-item.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-bottom-color: var(--secondary);
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
    border-radius: 12px;
}

.premium-nav-item.special {
    background: var(--surface);
    color: #1a202c;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}

.premium-nav-item.special::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.premium-nav-item.special:hover::before {
    left: 100%;
}

.premium-nav-item.special:hover {
    background: var(--surface-hover);
    transform: translateY(-4px) scale(1.08);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.nav-icon {
    font-size: 16px;
    margin-bottom: 6px;
    display: block;
    transition: var(--transition);
    position: relative;
    color: inherit;
}

.nav-icon i {
    font-size: 16px;
    color: inherit;
    display: block;
}

.nav-icon i {
    display: block;
    transition: var(--transition);
}

.premium-nav-item:hover .nav-icon {
    transform: scale(1.1) rotate(3deg);
}

.premium-nav-item:hover .nav-icon i {
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.premium-nav-item.active .nav-icon {
    transform: scale(1.05);
}

.premium-nav-item.active .nav-icon i {
    text-shadow: 0 0 15px rgba(255,255,255,0.8);
}

.premium-nav-item.special .nav-icon i {
    animation: pulse 2s infinite;
    color: #1a202c;
}

.premium-nav-item.special .nav-text {
    color: #1a202c;
}

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

.nav-text {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

/* CLEAN MODERN NEWS DETAIL PAGE */
.news-detail {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    background: transparent;
}

.detail-header {
    margin-bottom: 30px;
    padding: 20px 0;
}

.back-btn {
    padding: 10px 20px;
    background: #fff;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.back-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.detail-content {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    line-height: 1.7;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
}

.detail-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.detail-content h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    color: #1a1a1a;
}

.detail-content .article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.meta-item i {
    color: var(--primary);
    font-size: 12px;
}

.detail-content img,
.detail-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.detail-image:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

.detail-content p {
    margin-bottom: 18px;
    text-align: justify;
    font-size: 17px;
    line-height: 1.6;
    color: #444;
}

@media (max-width: 768px) {
    .news-detail {
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .detail-content {
        padding: 25px 20px;
        border-radius: 12px;
    }
    
    .detail-content h1 {
        font-size: 26px;
    }
    
    .detail-content .article-meta {
        gap: 15px;
        flex-direction: column;
        align-items: flex-start;
    }
}

.related-news {
    margin-top: 40px;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.related-news:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.related-news h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
}

.related-news h3::before {
    content: '📰';
    font-size: 18px;
}

@media (max-width: 768px) {
    .related-news {
        margin-top: 30px;
        padding: 20px;
    }
    
    .related-news h3 {
        font-size: 20px;
    }
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.related-card {
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    backdrop-filter: blur(10px);
}

.related-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 16px;
}

.related-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border-color: var(--primary);
}

.related-card:hover::before {
    opacity: 1;
}

.related-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    transition: all 0.4s ease;
    filter: brightness(1) saturate(1.1);
}

.related-card:hover img {
    transform: scale(1.05);
    filter: brightness(1.1) saturate(1.2);
}

.related-content {
    padding: 12px;
}

.related-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
    color: var(--text);
}

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

.loading-related,
.no-related {
    text-align: center;
    padding: 32px;
    color: var(--text-muted);
    font-style: italic;
    grid-column: 1 / -1;
}

.loading-related {
    animation: pulse 1.5s ease-in-out infinite alternate;
}

/* CLEAN SOCIAL SHARE */
.social-share {
    margin: 30px 0;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.social-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.social-share h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-share h3::before {
    content: '🔗';
    font-size: 16px;
}

.share-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
}

.share-btn:focus {
    outline: 3px solid rgba(0,0,0,0.12);
    outline-offset: 2px;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.share-btn svg {
    width: 20px;
    height: 20px;
    display: block;
}

.share-btn.facebook { background: #1877F2; color: white; }
.share-btn.twitter { background: #1da1f2; color: white; }
.share-btn.whatsapp { background: #25d366; color: white; }
.share-btn.copy { background: #0d214f; color: white; }

@media (max-width: 768px) {
    .social-share {
        padding: 20px;
    }
    
    .share-buttons {
        gap: 8px;
    }
    
    .share-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* Recommended News */
.recommended-news {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 2px solid var(--border);
}

.recommended-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.recommended-card {
    background: var(--surface);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    backdrop-filter: blur(10px);
}

.recommended-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 14px;
}

.recommended-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.recommended-card:hover::before {
    opacity: 1;
}

.recommended-card img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    transition: all 0.3s ease;
    filter: brightness(1) saturate(1.05);
}

.recommended-card:hover img {
    transform: scale(1.03);
    filter: brightness(1.05) saturate(1.1);
}

.recommended-content {
    padding: 12px;
}

.recommended-content h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
    color: var(--text);
}

.recommended-content time {
    font-size: 11px;
    color: var(--text-muted);
}

/* MODERN ARTICLE DETAIL PAGE */
.article-detail {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    background: transparent;
}

.hero {
    margin-bottom: 40px;
    text-align: center;
}

.hero .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--surface);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.hero .back-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text);
}

.hero .meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.hero .meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.hero .meta i {
    color: var(--primary);
    font-size: 12px;
}

.hero .featured-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    margin: 20px 0;
    transition: var(--transition);
}

.hero .featured-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.article-content {
    background: var(--surface);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    position: relative;
}

.share-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 18px;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.share-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: var(--shadow);
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.copy { background: var(--text); }

.article-body {
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.7;
    font-size: 18px;
    color: var(--text);
}

.article-body p {
    margin-bottom: 20px;
    text-align: justify;
}

.article-body p:first-letter {
    font-size: 3rem;
    font-weight: bold;
    float: left;
    margin-right: 8px;
    margin-top: 4px;
    color: var(--primary);
    line-height: 1;
}

.related-articles {
    background: var(--surface);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.related-articles h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 12px;
}

.related {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.related .card {
    background: var(--bg-alt);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: var(--transition);
    cursor: pointer;
}

.related .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.related .card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    transition: var(--transition);
}

.related .card:hover img {
    transform: scale(1.05);
}

.related .card-content {
    padding: 16px;
}

.related .card h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    color: var(--text);
}

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

.comment-section {
    background: var(--surface);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.comment-section h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 12px;
}

.comment-form textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
    background: var(--bg-alt);
    color: var(--text);
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.submit-comment {
    margin-top: 16px;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.submit-comment:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Mobile Responsive for Article Detail */
@media (max-width: 768px) {
    .article-detail {
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .meta {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .article-content {
        padding: 25px 20px;
    }
    
    .article-body {
        font-size: 16px;
    }
    
    .article-body p:first-letter {
        font-size: 2.5rem;
    }
    
    .related {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        gap: 8px;
    }
    
    .share-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* MODERN FOOTER */
.modern-footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: white;
    margin-top: 64px;
    position: relative;
    overflow: hidden;
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
    fill: var(--bg);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    padding: 80px 0 40px;
    position: relative;
    z-index: 1;
}

.footer-brand {
    max-width: 400px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.brand-img {
    height: 48px;
    width: auto;
    filter: brightness(1.2);
}

.brand-text h2 {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-text span {
    font-size: 14px;
    opacity: 0.8;
    display: block;
    margin-top: 4px;
}

.brand-desc {
    font-size: 16px;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 32px;
}

.social-media {
    display: flex;
    gap: 16px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-btn i {
    position: relative;
    z-index: 2;
    line-height: 1;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.social-btn:hover::before {
    left: 100%;
}

.social-btn.facebook {
    background: #1877f2;
}

.social-btn.linkedin {
    background: #0077b5;
}

.social-btn.youtube {
    background: #ff0000;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
}

.social-btn:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.footer-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.links-column h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #f1f5f9;
    position: relative;
}

.links-column h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.links-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.links-column ul li {
    margin-bottom: 12px;
}

.links-column ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
}

.links-column ul li a:hover {
    color: white;
    transform: translateX(8px);
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.9);
    font-size: 15px;
}

.contact-list i {
    width: 20px;
    color: var(--accent-light);
    font-size: 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 32px 0;
    position: relative;
    z-index: 1;
}

.bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.legal-links {
    display: flex;
    gap: 32px;
}

.legal-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.legal-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.legal-links a:hover {
    color: white;
}

.legal-links a:hover::after {
    width: 100%;
}

/* UTILITY CLASSES */
.hidden { display: none !important; }

/* Show/Hide Content */
.article-detail.active {
    display: block;
}

#home-content.hidden {
    display: none;
}

/* RESPONSIVE DESIGN FOR ALL DEVICES */

/* Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
    .container { max-width: 1400px; }
    .news-grid { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
    .hero-carousel { height: 600px; }
    .carousel-content h2 { font-size: 42px; }
}

/* Large Devices (1200px to 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .container { max-width: 1200px; }
    .news-grid { grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); }
}

/* Medium Devices (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .container { max-width: 960px; padding: 0 20px; }
    .header-content { gap: 20px; }
    .news-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
    .featured-grid { gap: 20px; }
    .premium-nav-item { min-width: 100px; padding: 16px 18px; }
}

/* Small Devices (768px to 991px) - Tablets */
@media (min-width: 768px) and (max-width: 991px) {
    .container { max-width: 720px; padding: 0 16px; }
    
    .header-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .logo-section {
        justify-content: center;
    }
    
    .header-center {
        max-width: 100%;
        margin: 0;
    }
    
    .premium-categories {
        justify-content: flex-start;
        overflow-x: auto;
        gap: 4px;
        padding: 8px 0;
    }
    
    .premium-nav-item {
        min-width: 80px;
        padding: 12px 14px;
        flex-shrink: 0;
    }
    
    .hero-carousel { height: 350px; }
    .carousel-content { padding: 24px; }
    .carousel-content h2 { font-size: 24px; }
    
    .featured-grid {
        flex-direction: column;
        gap: 16px;
        height: auto;
    }
    
    .featured-main {
        height: 250px;
    }
    
    .featured-main img {
        height: 250px;
    }
    
    .featured-sidebar {
        height: auto;
        flex-direction: row;
        overflow-x: auto;
        gap: 12px;
        padding: 12px 0;
    }
    
    .featured-item {
        height: 120px;
        min-width: 280px;
        flex-shrink: 0;
    }
    
    .featured-item img {
        width: 80px;
        height: 60px;
    }
    
    .featured-item-content {
        height: 60px;
    }
    
    .featured-item-content h4 {
        font-size: 13px;
    }
    
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .news-card {
        min-height: 350px;
    }
    
    .trending-slides {
        gap: 16px;
    }
    
    .trending-card {
        min-width: 280px;
    }
}

/* Extra Small Devices (576px to 767px) - Large Phones */
@media (min-width: 576px) and (max-width: 767px) {
    .container { max-width: 540px; padding: 0 16px; }
    
    .top-bar .container {
        flex-direction: column;
        gap: 8px;
    }
    
    .live-data {
        gap: 8px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .live-item {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .logo-text h1 { font-size: 18px; }
    .nepali-title { font-size: 11px; }
    .tagline { font-size: 9px; }
    
    .search-input {
        padding: 8px 36px 8px 12px;
        font-size: 13px;
    }
    
    .premium-categories {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 6px 0;
        gap: 2px;
    }
    
    .premium-nav-item {
        min-width: 70px;
        padding: 10px 12px;
        flex-shrink: 0;
    }
    
    .nav-text { font-size: 10px; }
    .nav-icon { font-size: 11px; }
    
    .hero-carousel { height: 280px; }
    .carousel-content { padding: 16px; }
    .carousel-content h2 { font-size: 20px; }
    .carousel-content p { font-size: 14px; }
    .carousel-btn { display: none; }
    
    .featured-grid { 
        flex-direction: column;
        gap: 12px;
        height: auto;
    }
    
    .featured-main {
        height: 220px;
    }
    
    .featured-main img {
        height: 220px;
    }
    
    .featured-sidebar {
        height: auto;
        flex-direction: column;
        gap: 8px;
    }
    
    .featured-item {
        height: 80px;
        min-width: auto;
    }
    
    .featured-item img {
        width: 60px;
        height: 45px;
    }
    
    .featured-item-content {
        height: 45px;
    }
    
    .featured-item-content h4 {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
    
    .news-grid { 
        grid-template-columns: 1fr; 
        gap: 16px; 
    }
    
    .news-card {
        min-height: 320px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .section-header h2 { font-size: 20px; }
    
    .trending-slides {
        gap: 12px;
    }
    
    .trending-card {
        min-width: 240px;
    }
}

/* Small Devices (up to 575px) - Mobile Phones */
@media (max-width: 575px) {
    .container { padding: 0 12px; }
    
    .top-bar {
        padding: 4px 0;
        font-size: 11px;
    }
    
    .live-data {
        gap: 6px;
        justify-content: center;
    }
    
    .live-item {
        font-size: 10px;
        padding: 3px 6px;
        min-width: auto;
    }
    
    .ticker {
        padding: 6px 0;
        font-size: 12px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 10px;
        padding: 10px 0;
    }
    
    .logo-section {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
    
    .logo {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
    
    .logo-img { height: 36px; }
    .logo-text h1 { font-size: 16px; }
    .nepali-title { font-size: 10px; }
    .tagline { font-size: 8px; }
    
    .live-badge {
        font-size: 9px;
        padding: 3px 6px;
    }
    
    .search-input {
        padding: 6px 32px 6px 10px;
        font-size: 12px;
        border-radius: 18px;
    }
    
    .search-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .trending-keywords {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
    
    .trending-tags {
        justify-content: center;
    }
    
    .trending-tag {
        font-size: 9px;
        padding: 2px 5px;
    }
    
    .premium-nav {
        padding: 0;
    }
    
    .premium-categories {
        overflow-x: auto;
        gap: 2px;
        padding: 4px 0;
        justify-content: flex-start;
    }
    
    .premium-nav-item {
        min-width: 60px;
        padding: 8px 10px;
        flex-shrink: 0;
        border-radius: 6px;
    }
    
    .nav-text { font-size: 9px; }
    .nav-icon { font-size: 10px; margin-bottom: 3px; }
    
    .breaking-alert {
        padding: 6px 0;
    }
    
    .alert-content {
        gap: 6px;
        font-size: 12px;
    }
    
    .hero-carousel { height: 220px; }
    .carousel-content { padding: 12px; }
    .carousel-content h2 { font-size: 16px; line-height: 1.2; }
    .carousel-content p { font-size: 13px; }
    .carousel-btn { display: none; }
    .carousel-dots { bottom: 8px; }
    .carousel-dot { width: 6px; height: 6px; }
    
    .breaking-news {
        padding: 6px 0;
    }
    
    .breaking-label {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .breaking-text {
        font-size: 12px;
    }
    
    .main {
        padding: 12px 0;
    }
    
    .section-header {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 12px;
        text-align: center;
    }
    
    .section-header h2 { font-size: 18px; }
    
    .featured-grid {
        flex-direction: column;
        gap: 10px;
        height: auto;
    }
    
    .featured-main {
        border-radius: 12px;
        height: 180px;
    }
    
    .featured-main img {
        height: 180px;
    }
    
    .featured-overlay {
        padding: 12px;
    }
    
    .featured-overlay h3 {
        font-size: 14px;
    }
    
    .featured-sidebar {
        height: auto;
        gap: 6px;
    }
    
    .featured-item {
        padding: 8px;
        height: 60px;
        border-radius: 8px;
    }
    
    .featured-item img {
        width: 50px;
        height: 40px;
    }
    
    .featured-item-content {
        height: 40px;
    }
    
    .featured-item-content h4 {
        font-size: 11px;
        -webkit-line-clamp: 2;
    }
    
    .featured-item-content time {
        font-size: 9px;
    }
    
    .trending-section {
        margin-bottom: 24px;
    }
    
    .trending-slides {
        gap: 10px;
        padding: 10px 0;
    }
    
    .trending-card {
        min-width: 200px;
        border-radius: 10px;
    }
    
    .trending-card img {
        height: 120px;
    }
    
    .trending-card-content {
        padding: 10px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .news-card {
        border-radius: 12px;
        min-height: 300px;
    }
    
    .news-card img {
        height: 160px;
    }
    
    .news-card-content {
        padding: 12px;
    }
    
    .news-card h3 {
        font-size: 14px;
    }
    
    .news-card p {
        font-size: 12px;
    }
    
    .news-meta {
        font-size: 10px;
    }
    
    .load-more-btn {
        padding: 8px 20px;
        font-size: 12px;
        margin: 20px auto;
    }
    
    .fab {
        width: 44px;
        height: 44px;
        bottom: 12px;
        right: 12px;
        font-size: 16px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 0 20px;
    }
    
    .brand-logo {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .brand-img { height: 36px; }
    .brand-text h2 { font-size: 20px; }
    .brand-text span { font-size: 12px; }
    .brand-desc { font-size: 13px; text-align: center; }
    
    .social-media {
        justify-content: center;
        gap: 10px;
    }
    
    .social-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: center;
    }
    
    .links-column h3 {
        font-size: 16px;
        text-align: center;
    }
    
    .contact-list li {
        font-size: 13px;
        justify-content: center;
    }
    
    .footer-bottom {
        padding: 16px 0;
    }
    
    .bottom-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        font-size: 12px;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 6px;
    }
}

/* Article Detail Responsive */
@media (max-width: 768px) {
    .article-detail {
        margin: 16px auto;
        padding: 0 12px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero .meta {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .hero .featured-image {
        max-height: 250px;
        border-radius: 12px;
    }
    
    .article-content {
        padding: 20px 16px;
        border-radius: 12px;
    }
    
    .share-buttons {
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .share-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .article-body {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .related-articles,
    .comment-section {
        padding: 20px 16px;
        border-radius: 12px;
    }
    
    .related {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .related .card img {
        height: 120px;
    }
    
    .comment-form textarea {
        min-height: 100px;
        padding: 12px;
        font-size: 14px;
    }
}

/* Landscape Orientation for Mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-carousel { height: 200px; }
    .carousel-content { padding: 12px; }
    .carousel-content h2 { font-size: 16px; }
    .carousel-content p { font-size: 13px; }
    
    .top-bar { display: none; }
    .ticker { display: none; }
    
    .header-content {
        padding: 8px 0;
    }
    
    .premium-nav-item {
        padding: 8px 10px;
    }
}

/* Print Styles */
@media print {
    .top-bar,
    .ticker,
    .premium-nav,
    .breaking-alert,
    .hero-section,
    .breaking-news,
    .trending-section,
    .fab,
    .share-buttons {
        display: none !important;
    }
    
    .article-detail {
        margin: 0;
        padding: 0;
    }
    
    .article-content {
        box-shadow: none;
        padding: 0;
    }
    
    .article-body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
}

/* SCROLL TO TOP BUTTON */
.fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 1000;
}

.fab:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}
/* ADDITIONAL LAYOUT FIXES */
.featured-section {
    margin-bottom: 40px;
}

.news-section {
    margin-bottom: 40px;
}

.trending-section {
    margin-bottom: 40px;
}

/* Ensure proper image loading */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Fix for news card content alignment */
.news-card-content h3 {
    margin-bottom: 12px;
    line-height: 1.3;
}

.news-card-content p {
    margin-bottom: 16px;
    flex-grow: 1;
}

/* Improve trending badge visibility */
.trending-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

/* Fix for featured item hover effects */
.featured-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Ensure proper spacing in sections */
.section-header + * {
    margin-top: 0;
}

/* Fix for mobile navigation scrolling */
.premium-categories::-webkit-scrollbar {
    height: 2px;
}

.premium-categories::-webkit-scrollbar-track {
    background: transparent;
}

.premium-categories::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

/* Loading state improvements */
.loading-page * {
    pointer-events: none;
}

.loading-page .news-grid {
    opacity: 0.5;
}

/* Accessibility improvements */
.premium-nav-item:focus,
.news-card:focus,
.trending-card:focus,
.featured-item:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Performance optimizations */
.news-card,
.trending-card,
.featured-item {
    will-change: transform;
}

.news-card:hover,
.trending-card:hover,
.featured-item:hover {
    will-change: auto;
}

/* Fix for text overflow in cards */
.news-card h3,
.trending-card h4,
.featured-item h4 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

/* Ensure consistent card heights in grid */
.news-grid {
    align-items: stretch;
}

.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Fix for carousel on touch devices */
.carousel-slides {
    touch-action: pan-x;
}

/* Improve button accessibility */
button:focus,
.btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Fix for search suggestions positioning */
.search-suggestions {
    margin-top: 4px;
    border-radius: 8px;
}

/* Ensure proper footer spacing */
.modern-footer {
    margin-top: auto;
}

/* Fix for live data overflow on small screens */
.live-data {
    min-height: 40px;
    align-items: center;
}

/* Improve carousel navigation */
.carousel-btn {
    opacity: 0.8;
}

.carousel-btn:hover {
    opacity: 1;
}

/* Fix for trending slides smooth scrolling */
.trending-slides {
    scroll-behavior: smooth;
}

/* Ensure proper aspect ratios */
.news-card img,
.trending-card img,
.featured-main img {
    aspect-ratio: 16/9;
    object-fit: cover;
}

.featured-item img {
    aspect-ratio: 4/3;
    object-fit: cover;
}

/* Fix for modal z-index issues */
.modal-overlay {
    backdrop-filter: blur(4px);
}

/* Improve notification positioning */
.notification {
    z-index: 9999;
}

/* Fix for header sticky behavior */
.header.scrolled {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Ensure proper text contrast */
.news-card-content,
.trending-card-content,
.featured-item-content {
    background: var(--surface);
    color: var(--text);
}

/* Fix for carousel dots positioning */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

/* Improve loading states */
.skeleton-card,
.skeleton-hero {
    background: linear-gradient(90deg, var(--surface-hover) 25%, var(--border) 50%, var(--surface-hover) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* Fix for social buttons alignment */
.social-media {
    align-items: center;
}

/* Ensure proper grid behavior */
@supports (display: grid) {
    .news-grid {
        display: grid;
    }
}

@supports not (display: grid) {
    .news-grid {
        display: flex;
        flex-wrap: wrap;
    }
    
    .news-card {
        flex: 1 1 300px;
        margin: 12px;
    }
}

/* Fix for iOS Safari viewport issues */
@supports (-webkit-touch-callout: none) {
    .hero-carousel {
        height: 50vh;
        min-height: 300px;
        max-height: 400px;
    }
}

/* Improve touch targets */
@media (hover: none) and (pointer: coarse) {
    .premium-nav-item {
        min-height: 44px;
        padding: 12px 16px;
    }
    
    .news-card,
    .trending-card,
    .featured-item {
        min-height: 44px;
    }
}
@media (max-width: 768px) {
    .trending-card {
        flex: 0 0 250px;
        max-width: 250px;
        height: 320px;
    }
    
    .trending-btn {
        display: none;
    }
}

@media (max-width: 576px) {
    .trending-card {
        flex: 0 0 220px;
        max-width: 220px;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .trending-card {
        flex: 0 0 200px;
        max-width: 200px;
        height: 280px;
    }
    
    .trending-card-content {
        height: 150px;
        padding: 12px;
    }
    
    .trending-card img {
        height: 130px;
    }
}
.all-trending-grid .news-card {
    transition: none !important;
    transform: none !important;
}

.all-trending-grid .news-card:hover {
    transform: none !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
}

.all-trending-grid .news-card img {
    transition: none !important;
    transform: none !important;
}

.all-trending-grid .news-card:hover img {
    transform: none !important;
}