/* PK-News Modern Homepage CSS */

/* Color Variables */
:root {
    --primary-color: #D71920;
    --secondary-color: #007BFF;
    --dark-color: #121212;
    --light-color: #F4F4F4;
    --white-color: #FFFFFF;
    --text-color: #333333;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables */
body.dark-mode {
    --primary-color: #ff4757;
    --secondary-color: #5352ed;
    --dark-color: #1a1a1a;
    --light-color: #2d2d2d;
    --white-color: #2d2d2d;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --border-color: #404040;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
}

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--light-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

/* Top Header */
.top-header {
    height: 60px;
    background: var(--white-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 1000;
}

.top-header .logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
}

.top-header .logo span {
    color: var(--dark-color);
}

.top-header .search-bar {
    max-width: 400px;
}

.top-header .search-bar input {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    transition: var(--transition);
}

.top-header .search-bar input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.1);
}

.top-header .header-info {
    display: flex;
    gap: 20px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.top-header .header-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-header .header-info-item i {
    color: var(--primary-color);
}

/* Sticky Navigation */
.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--white-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.sticky-nav.scrolled {
    box-shadow: var(--shadow-md);
}

.sticky-nav .navbar {
    padding: 0;
}

.sticky-nav .nav-link {
    font-weight: 500;
    color: var(--text-color);
    padding: 12px 16px !important;
    transition: var(--transition);
    position: relative;
}

.sticky-nav .nav-link:hover {
    color: var(--primary-color);
}

.sticky-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.sticky-nav .nav-link:hover::after {
    width: 80%;
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white-color);
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu .mega-menu-column {
    padding: 0 15px;
}

.mega-menu .mega-menu-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
}

.mega-menu .mega-menu-link {
    display: block;
    padding: 8px 0;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.mega-menu .mega-menu-link:hover {
    color: var(--primary-color);
    padding-left: 8px;
}

/* Breaking News Ticker */
.breaking-news-ticker {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 12px 0;
    overflow: hidden;
}

.breaking-news-ticker .breaking-label {
    background: var(--dark-color);
    color: var(--white-color);
    padding: 6px 16px;
    font-weight: 700;
    font-size: 0.875rem;
    white-space: nowrap;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.breaking-news-ticker .ticker-content {
    overflow: hidden;
    white-space: nowrap;
}

.breaking-news-ticker .ticker-content:hover {
    animation-play-state: paused;
}

.breaking-news-ticker .ticker-item {
    display: inline-block;
    padding: 0 30px;
    color: var(--white-color);
    text-decoration: none;
    transition: var(--transition);
}

.breaking-news-ticker .ticker-item:hover {
    color: #ffd700;
}

/* Hero Section */
.hero-section {
    padding: 30px 0;
}

.hero-section .featured-story {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    height: 500px;
}

.hero-section .featured-story img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.hero-section .featured-story:hover img {
    transform: scale(1.05);
}

.hero-section .featured-story .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 30px;
    color: var(--white-color);
}

.hero-section .featured-story .category-badge {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 12px;
}

.hero-section .featured-story h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.hero-section .featured-story .meta {
    display: flex;
    gap: 16px;
    font-size: 0.875rem;
    opacity: 0.9;
}

.hero-section .side-stories .story-card {
    background: var(--white-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
    transition: var(--transition);
    height: 115px;
}

.hero-section .side-stories .story-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.hero-section .side-stories .story-card img {
    width: 120px;
    height: 100%;
    object-fit: cover;
}

.hero-section .side-stories .story-card .content {
    padding: 12px;
}

.hero-section .side-stories .story-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-section .side-stories .story-card .meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Trending News Section */
.trending-section {
    padding: 30px 0;
    background: var(--white-color);
}

.trending-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.trending-section .section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.trending-section .section-title i {
    color: #ff6b6b;
    animation: fire 0.5s ease infinite alternate;
}

@keyframes fire {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.trending-section .trending-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
}

.trending-section .trending-slider::-webkit-scrollbar {
    height: 6px;
}

.trending-section .trending-slider::-webkit-scrollbar-track {
    background: var(--light-color);
    border-radius: 3px;
}

.trending-section .trending-slider::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.trending-section .trending-card {
    min-width: 280px;
    background: var(--white-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    scroll-snap-align: start;
    transition: var(--transition);
}

.trending-section .trending-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.trending-section .trending-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.trending-section .trending-card .content {
    padding: 16px;
}

.trending-section .trending-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trending-section .trending-card .meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Live TV Section */
.live-tv-section {
    padding: 30px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: var(--white-color);
}

.live-tv-section .live-badge {
    background: #ff0000;
    color: var(--white-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    animation: live-pulse 1.5s ease infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.live-tv-section .live-player {
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/9;
    margin-bottom: 20px;
}

.live-tv-section .channel-logos {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.live-tv-section .channel-logo {
    width: 80px;
    height: 50px;
    background: var(--white-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: var(--transition);
    cursor: pointer;
}

.live-tv-section .channel-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.live-tv-section .channel-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Category Blocks */
.category-section {
    padding: 30px 0;
}

.category-section .category-block {
    background: var(--white-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.category-section .category-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #c82333 100%);
    color: var(--white-color);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-section .category-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.category-section .category-header .view-all {
    color: var(--white-color);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.category-section .category-header .view-all:hover {
    text-decoration: underline;
}

.category-section .category-content {
    padding: 20px;
}

.category-section .main-article {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.category-section .main-article img {
    width: 200px;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.category-section .main-article .content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.category-section .main-article .content .meta {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.category-section .small-articles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.category-section .small-article {
    display: flex;
    gap: 12px;
    align-items: center;
}

.category-section .small-article img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.category-section .small-article h5 {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Video News Section */
.video-section {
    padding: 30px 0;
    background: var(--dark-color);
    color: var(--white-color);
}

.video-section .section-title {
    color: var(--white-color);
}

.video-section .video-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
}

.video-section .video-card {
    min-width: 300px;
    background: var(--white-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    scroll-snap-align: start;
    transition: var(--transition);
}

.video-section .video-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.video-section .video-card .thumbnail {
    position: relative;
    height: 180px;
    background: #000;
}

.video-section .video-card .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-section .video-card .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(215, 25, 32, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

.video-section .video-card:hover .play-button {
    background: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-section .video-card .duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: var(--white-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.video-section .video-card .content {
    padding: 16px;
    color: var(--text-color);
}

.video-section .video-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-section .video-card .views {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Products Section */
.products-section {
    padding: 30px 0;
    background: var(--white-color);
}

.products-section .product-card {
    background: var(--white-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.products-section .product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.products-section .product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.products-section .product-card .content {
    padding: 16px;
}

.products-section .product-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.products-section .product-card .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.products-section .product-card .discount {
    font-size: 0.875rem;
    color: #28a745;
    font-weight: 600;
    margin-bottom: 8px;
}

.products-section .product-card .rating {
    color: #ffc107;
    font-size: 0.875rem;
    margin-bottom: 12px;
}

.products-section .product-card .btn {
    width: 100%;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

/* Blog Section */
.blog-section {
    padding: 30px 0;
}

.blog-section .blog-card {
    background: var(--white-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.blog-section .blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.blog-section .blog-card.large {
    grid-column: span 2;
}

.blog-section .blog-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.blog-section .blog-card.large img {
    height: 250px;
}

.blog-section .blog-card .content {
    padding: 16px;
}

.blog-section .blog-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.blog-section .blog-card.large h4 {
    font-size: 1.25rem;
}

.blog-section .blog-card .meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Most Read Section */
.most-read-section {
    padding: 30px 0;
    background: var(--white-color);
}

.most-read-section .tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.most-read-section .tab {
    padding: 10px 20px;
    background: transparent;
    border: none;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.most-read-section .tab.active {
    color: var(--primary-color);
}

.most-read-section .tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.most-read-section .tab.active::after {
    width: 100%;
}

.most-read-section .tab-content {
    display: none;
}

.most-read-section .tab-content.active {
    display: block;
}

.most-read-section .article-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.most-read-section .article-item:hover {
    background: var(--light-color);
    padding-left: 10px;
}

.most-read-section .article-item .rank {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    opacity: 0.3;
    line-height: 1;
}

.most-read-section .article-item img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.most-read-section .article-item h5 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.4;
}

.most-read-section .article-item .meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Editor's Picks Section */
.editors-picks-section {
    padding: 30px 0;
}

.editors-picks-section .editor-card {
    background: var(--white-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.editors-picks-section .editor-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.editors-picks-section .editor-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.editors-picks-section .editor-card .content {
    padding: 20px;
}

.editors-picks-section .editor-card .editor-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

.editors-picks-section .editor-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.editors-picks-section .editor-card .meta {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Poll Section */
.poll-section {
    padding: 30px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white-color);
}

.poll-section .poll-card {
    background: var(--white-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    color: var(--text-color);
}

.poll-section .poll-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.poll-section .poll-option {
    margin-bottom: 12px;
}

.poll-section .poll-option input[type="radio"] {
    display: none;
}

.poll-section .poll-option label {
    display: block;
    padding: 12px 16px;
    background: var(--light-color);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.poll-section .poll-option input[type="radio"]:checked + label {
    background: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.poll-section .poll-option label:hover {
    border-color: var(--primary-color);
}

.poll-section .vote-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 16px;
}

.poll-section .vote-btn:hover {
    background: #c82333;
}

/* Newsletter Section */
.newsletter-section {
    padding: 40px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #c82333 100%);
    color: var(--white-color);
}

.newsletter-section .newsletter-card {
    text-align: center;
}

.newsletter-section .newsletter-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.newsletter-section .newsletter-card p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 24px;
}

.newsletter-section .newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-section .newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

.newsletter-section .newsletter-form button {
    padding: 14px 30px;
    background: var(--dark-color);
    color: var(--white-color);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-section .newsletter-form button:hover {
    background: #000;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-section .featured-story {
        height: 400px;
    }
    
    .hero-section .side-stories .story-card {
        height: 100px;
    }
    
    .category-section .main-article {
        flex-direction: column;
    }
    
    .category-section .main-article img {
        width: 100%;
        height: 200px;
    }
    
    .category-section .small-articles {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-header {
        height: auto;
        padding: 10px 0;
    }
    
    .top-header .search-bar {
        max-width: 100%;
        margin: 10px 0;
    }
    
    .top-header .header-info {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .sticky-nav .nav-link {
        padding: 10px 12px !important;
        font-size: 0.875rem;
    }
    
    .hero-section {
        padding: 20px 0;
    }
    
    .hero-section .featured-story {
        height: 300px;
    }
    
    .hero-section .featured-story h2 {
        font-size: 1.25rem;
    }
    
    .hero-section .side-stories .story-card {
        height: 90px;
    }
    
    .hero-section .side-stories .story-card img {
        width: 100px;
    }
    
    .trending-section .trending-card {
        min-width: 250px;
    }
    
    .live-tv-section .channel-logos {
        gap: 10px;
    }
    
    .live-tv-section .channel-logo {
        width: 60px;
        height: 40px;
    }
    
    .blog-section .blog-card.large {
        grid-column: span 1;
    }
    
    .newsletter-section .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-section .newsletter-form button {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-section .featured-story {
        height: 250px;
    }
    
    .hero-section .featured-story h2 {
        font-size: 1rem;
    }
    
    .hero-section .featured-story .overlay {
        padding: 16px;
    }
    
    .trending-section .trending-card {
        min-width: 220px;
    }
    
    .category-section .category-content {
        padding: 15px;
    }
    
    .most-read-section .article-item {
        flex-direction: column;
    }
    
    .most-read-section .article-item img {
        width: 100%;
        height: 120px;
    }
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

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

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--light-color);
    z-index: 10000;
}

.reading-progress .progress-bar {
    height: 100%;
    background: var(--primary-color);
    width: 0;
    transition: width 0.1s linear;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 9999;
}

.back-to-top:hover {
    transform: translateY(-4px);
    background: #c82333;
}

.back-to-top.show {
    display: flex;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--dark-color);
    color: var(--white-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 9999;
}

.dark-mode-toggle:hover {
    transform: translateY(-4px);
}

/* Lazy Load Images */
img[loading] {
    loading: lazy;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: var(--light-color);
}

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

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