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

:root {
    --primary-color: #1a73e8;
    --secondary-color: #e63946;
    --accent-color: #ff6b35;
    --dark-color: #121212;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --border-color: #dee2e6;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background-color: #0d62d9;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #d32f2f;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.section-title {
    font-size: 1.6rem;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.view-all {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-all:hover {
    color: var(--secondary-color);
    gap: 8px;
}

.category-tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.category-tag.technology {
    background-color: #17a2b8;
}

.category-tag.sports {
    background-color: #28a745;
}

.category-tag.entertainment {
    background-color: #ffc107;
    color: #333;
}

.category-tag.lifestyle {
    background-color: #dc3545;
}

.category-tag.business {
    background-color: #6f42c1;
}

.category-tag.health {
    background-color: #20c997;
}

.category-tag.travel {
    background-color: #fd7e14;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: var(--dark-color);
    color: white;
    padding: 10px 0;
    font-size: 0.85rem;
}

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

.date-time {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-time span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #ccc;
    font-size: 0.9rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    color: white;
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.main-header {
    padding: 20px 0;
}

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

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--primary-color);
}

.logo-icon {
    color: var(--primary-color);
    font-size: 2.2rem;
}

.search-bar {
    display: flex;
    width: 350px;
}

.search-bar input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 0.95rem;
}

.search-bar button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 1rem;
}

/* Navigation */
nav {
    background-color: var(--dark-color);
    position: relative;
}

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

.main-nav ul {
    display: flex;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    color: white;
    padding: 18px 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: var(--primary-color);
}

.main-nav li.has-dropdown:hover .dropdown {
    display: block;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.dropdown a {
    color: var(--dark-color);
    padding: 12px 20px;
    border-bottom: 1px solid var(--light-gray);
}

.dropdown a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

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

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

.breaking-label {
    background-color: white;
    color: var(--secondary-color);
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
}

.news-ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 24px;
}

.ticker-list {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    animation: ticker 20s linear infinite;
}

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

.ticker-list li {
    white-space: nowrap;
    padding-right: 40px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1588681664899-f142ff2dc9b1?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    margin-bottom: 50px;
    border-radius: 0 0 20px 20px;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* Featured Articles Grid */
.featured-articles {
    margin-bottom: 60px;
}

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

.featured-article {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.featured-article:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.featured-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

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

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

.featured-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.featured-content h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.featured-content h3 a:hover {
    color: var(--primary-color);
}

.featured-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--gray-color);
    margin-bottom: 15px;
    margin-top: auto;
}

.featured-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Main Content Layout */
.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* Recent Articles */
.recent-article {
    display: flex;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    gap: 25px;
}

.recent-img {
    flex: 0 0 280px;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 200px;
}

.recent-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.recent-text {
    flex: 1;
}

.recent-text h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.recent-text h3 a:hover {
    color: var(--primary-color);
}

.recent-meta {
    display: flex;
    font-size: 0.85rem;
    color: var(--gray-color);
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.recent-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Sidebar */
.sidebar-widget {
    background-color: white;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-gray);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.category-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--light-gray);
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.category-list a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.category-count {
    background-color: var(--light-gray);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.popular-posts li {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--light-gray);
    gap: 15px;
}

.popular-img {
    flex: 0 0 80px;
    border-radius: 6px;
    overflow: hidden;
    height: 80px;
}

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

.popular-content h4 {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 5px;
    font-weight: 600;
}

.popular-content h4 a:hover {
    color: var(--primary-color);
}

.popular-content span {
    font-size: 0.8rem;
    color: var(--gray-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.tags-widget .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--light-gray);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

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

/* Trending Now Section */
.trending-now {
    margin-bottom: 60px;
    background-color: #f8f9fa;
    padding: 50px 0;
    border-radius: 20px;
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.trending-item {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.trending-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.trending-img {
    height: 180px;
    overflow: hidden;
}

.trending-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.trending-content {
    padding: 20px;
}

.trending-content h4 {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 10px;
}

.trending-content h4 a:hover {
    color: var(--primary-color);
}

.trending-meta {
    font-size: 0.8rem;
    color: var(--gray-color);
}

/* Editors Pick Section */
.editors-pick {
    margin-bottom: 60px;
}

.editors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.editors-item {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.editors-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.editors-img {
    height: 250px;
    overflow: hidden;
}

.editors-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.editors-content {
    padding: 25px;
}

.editors-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.editors-content h3 a:hover {
    color: var(--primary-color);
}

.editors-content p {
    color: var(--gray-color);
    margin-bottom: 15px;
}

/* Newsletter */
.newsletter-section {
    margin-bottom: 60px;
}

.newsletter {
    background: linear-gradient(135deg, var(--primary-color), #0d62d9);
    color: white;
    padding: 50px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.newsletter h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.newsletter p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
}

.newsletter-form button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0 30px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 70px 0 30px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-widget h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-widget p {
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 20px;
}

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

.footer-links a {
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-links i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-contact i {
    color: var(--primary-color);
    margin-top: 5px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.footer-logo span {
    color: var(--primary-color);
}

/* Single Article Page Styles */
.single-article-header {
    background-color: #f8f9fa;
    padding: 60px 0 40px;
    margin-bottom: 50px;
}

.article-header-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.article-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--dark-color);
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 20px;
    color: var(--gray-color);
    font-size: 0.95rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-meta i {
    color: var(--primary-color);
}

.article-featured-img {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.article-featured-img img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.img-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    font-size: 0.9rem;
    text-align: center;
}

.article-content-wrapper {
    max-width: 900px;
    margin: 0 auto 60px;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 25px;
}

.article-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: var(--dark-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-gray);
}

.article-content h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: var(--dark-color);
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 25px 30px;
    margin: 40px 0;
    background-color: #f8f9fa;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--gray-color);
    font-size: 1.2rem;
    position: relative;
}

.article-content blockquote::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: -10px;
    left: 10px;
    font-family: Georgia, serif;
}

.article-content img {
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: var(--shadow);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.article-tags strong {
    font-size: 1.1rem;
}

.article-author {
    display: flex;
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: var(--border-radius);
    margin-top: 60px;
    gap: 30px;
    align-items: center;
}

.author-avatar {
    flex: 0 0 120px;
}

.author-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: var(--shadow);
}

.author-info h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.author-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.author-info p {
    color: var(--gray-color);
    margin-bottom: 0;
}

.author-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.author-social a {
    width: 36px;
    height: 36px;
    background-color: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
}

.author-social a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Related Articles */
.related-articles {
    margin-top: 60px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.related-item {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.related-img {
    height: 180px;
    overflow: hidden;
}

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

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

.related-content {
    padding: 20px;
}

.related-content h4 {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 10px;
}

.related-content h4 a:hover {
    color: var(--primary-color);
}

/* Comments Section */
.comments-section {
    margin-top: 60px;
}

.comment-form {
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: var(--border-radius);
    margin-top: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Category Page Styles */
.category-header {
    background: linear-gradient(rgba(26, 115, 232, 0.9), rgba(26, 115, 232, 0.8)), url('https://images.unsplash.com/photo-1518709268805-4e9042af2176?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    margin-bottom: 50px;
    border-radius: 0 0 20px 20px;
    text-align: center;
}

.category-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.category-description {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    opacity: 0.9;
}

.category-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: var(--border-radius);
    min-width: 150px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 50px 0;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    margin: 0 5px;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
}

.pagination a:hover,
.pagination a.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.pagination .prev,
.pagination .next {
    width: auto;
    padding: 0 20px;
}

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

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .trending-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .featured-grid,
    .editors-grid,
    .trending-grid,
    .related-grid,
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .search-bar {
        width: 250px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .article-title {
        font-size: 2.3rem;
    }
    
    .category-header h1 {
        font-size: 2.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--dark-color);
        padding: 80px 25px 25px;
        transition: var(--transition);
        z-index: 1001;
        overflow-y: auto;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .dropdown {
        position: static;
        display: none;
        background-color: rgba(0, 0, 0, 0.2);
        box-shadow: none;
        border-radius: 0;
    }
    
    .dropdown.active {
        display: block;
    }
    
    .dropdown a {
        padding-left: 40px;
    }
    
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }
    
    .nav-overlay.active {
        display: block;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .search-bar {
        width: 100%;
        max-width: 400px;
    }
    
    .featured-grid,
    .editors-grid,
    .trending-grid,
    .related-grid,
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .recent-article {
        flex-direction: column;
    }
    
    .recent-img {
        flex: 0 0 auto;
        width: 100%;
        height: 250px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-author {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }
    
    .author-avatar {
        margin-right: 0;
    }
    
    .category-header h1 {
        font-size: 2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
    
    .newsletter {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .category-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        width: 100%;
        max-width: 250px;
    }
    
    .copyright {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}