/* Critical CSS Variables for theming */
:root {
    --primary: #1a73e8;
    --secondary: #ea4335;
    --accent: #34a853;
    --dark: #202124;
    --light: #f8f9fa;
    --gray: #5f6368;
    --border: #dadce0;
    --shadow: 0 2px 10px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

/* Critical styles for above-the-fold content */
body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.hero-section {
    margin: 25px 0;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.featured-article {
    position: relative;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    position: relative;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card-img {
    height: 180px;
    overflow: hidden;
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.trending-section {
    background-color: white;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: var(--shadow);
}

footer {
    background-color: var(--dark);
    color: white;
    padding: 10px;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr;
        margin: 5px 0;
        gap: 5px;
    }
    
    .featured-article {
        height: 300px;
    }
    
    .article-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 5px;
        margin-bottom: 5px;
    }
    
    .trending-section {
        margin: 5px 0;
        padding: 0 5px;
    }
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    color: var(--secondary);
}

.date-display {
    color: var(--gray);
    font-size: 14px;
    display: none;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-btn, .menu-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--gray);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}

.search-btn:hover, .menu-btn:hover {
    background-color: #f1f3f4;
    color: var(--primary);
}

.main-nav {
    padding: 12px 0;

}

.nav-list {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-list a {
    font-weight: 600;
    font-size: 15px;
    color: var(--gray);
    white-space: nowrap;
    padding: 5px 0;
    position: relative;
}

.nav-list a:hover, .nav-list a.active {
    color: var(--primary);
}

.nav-list a.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
}

/* Hero Section */
.hero-section {
    margin: 25px 0;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.featured-article {
    position: relative;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.featured-article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-article:hover img {
    transform: scale(1.03);
}

.article-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 30px;
    color: white;
}

.article-category {
    display: inline-block;
    background-color: var(--secondary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.featured-title {
    font-size: 28px;
    margin-bottom: 10px;
    line-height: 1.3;
    font-weight: 700;
}

.article-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

/* Secondary Articles */
.secondary-articles {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 15px;
}

.secondary-article {
    position: relative;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.secondary-article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.secondary-article:hover img {
    transform: scale(1.05);
}

.secondary-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 15px;
    color: white;
}

.secondary-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}



.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 50px;
    height: 4px;
    background-color: var(--primary);
}

.view-all {
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Article Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.card-img {
    height: 180px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .card-img img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-category {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-excerpt {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--gray);
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

/* Trending Section */
.trending-section {
    background-color: white;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: var(--shadow);
}

.trending-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.trending-icon {
    background-color: var(--secondary);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.trending-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.trending-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.trending-item:hover {
    background-color: #f8f9fa;
    border-color: var(--border);
}

.trending-number {
    font-size: 28px;
    font-weight: 800;
    color: #e0e0e0;
    line-height: 1;
}

.trending-content h4 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

.trending-meta {
    font-size: 13px;
    color: var(--gray);
    display: flex;
    gap: 12px;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary), #4a6fa5);
    border-radius: 12px;
    padding: 40px;
    color: white;
    text-align: center;
    margin: 40px 0;
}

.newsletter-title {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 800;
}

.newsletter-desc {
    max-width: 600px;
    margin: 0 auto 25px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-input {
    flex: 1;
    padding: 14px 20px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
}

.newsletter-btn {
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-btn:hover {
    background-color: #d93a2a;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 10px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #bdc1c6;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    font-size: 14px;
    color: #bdc1c6;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-bottom-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom-links a:hover {
    color: white;
    text-decoration: underline;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.close-menu {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
}

.mobile-nav-list {
    list-style: none;
}

.mobile-nav-list li {
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-list a {
    display: block;
    padding: 10px 0;
    font-weight: 600;
    color: var(--dark);
}

/* Overlay for mobile menu */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
}

.overlay.active {
    display: block;
}

/* Category Page Styles */
.category-header {
    margin: 30px 0 20px;
    text-align: center;
}

.category-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--dark);
}

.category-description {
    font-size: 18px;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

.category-filter {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-select {
    padding: 8px 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: white;
    font-size: 14px;
    cursor: pointer;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--dark);
    font-weight: 600;
    transition: var(--transition);
}

.page-link:hover, .page-link.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Detail Page Styles */
.article-detail {
    margin: 30px 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    padding: 30px;
}

.article-header {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}

.article-breadcrumb {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 15px;
}

.article-breadcrumb a:hover {
    color: var(--primary);
}

.article-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--dark);
}

.article-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 15px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background-color: #f1f3f4;
    color: var(--gray);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.article-image {
    margin-bottom: 30px;
}

.article-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.image-caption {
    text-align: center;
    font-size: 14px;
    color: var(--gray);
    margin-top: 10px;
    font-style: italic;
}

.article-content {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
}

.article-content h2 {
    font-size: 24px;
    margin: 30px 0 15px;
    font-weight: 700;
    color: var(--dark);
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul {
    margin: 15px 0 20px 30px;
}

.article-content ul li {
    margin-bottom: 8px;
}

.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 15px 20px;
    margin: 25px 0;
    background-color: #f8f9fa;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.article-content blockquote cite {
    display: block;
    margin-top: 10px;
    font-style: normal;
    font-weight: 600;
    color: var(--gray);
}

.article-share {
    margin: 40px 0;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.article-share h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    color: white;
}

.share-btn.facebook { background-color: #3b5998; }
.share-btn.twitter { background-color: #1da1f2; }
.share-btn.linkedin { background-color: #0077b5; }
.share-btn.email { background-color: var(--gray); }

.share-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.author-bio {
    display: flex;
    gap: 20px;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 30px 0;
    align-items: center;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--dark);
}

.author-info p {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 10px;
}

.author-links {
    display: flex;
    gap: 15px;
}

.author-links a {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.author-links a:hover {
    text-decoration: underline;
}

.related-articles {
    margin: 40px 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.related-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    gap: 15px;
    transition: var(--transition);
}

.related-card:hover {
    transform: translateY(-3px);
}

.related-card img {
    width: 100px;
    height: 100%;
    object-fit: cover;
}

.related-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.related-content h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.related-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--gray);
    margin-top: auto;
}

.comments-section {
    margin-top: 50px;
}

.comment-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
}

.comment-form h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.btn-submit {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background-color: #0d5cb6;
    transform: translateY(-2px);
}

.comments-list {
    margin-top: 30px;
}

.comment {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    background: white;
    border-radius: 8px;
    margin-bottom: 15px;
}

.comment-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.comment-meta h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 3px;
}

.comment-meta span {
    font-size: 13px;
    color: var(--gray);
}

.comment-body {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

.load-more {
    text-align: center;
    margin-top: 25px;
}

.btn-load {
    display: inline-block;
    padding: 12px 30px;
    background-color: #f1f3f4;
    color: var(--dark);
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-load:hover {
    background-color: var(--primary);
    color: white;
}

/* Legal Pages */
.legal-page {
    margin: 40px auto;
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow);
    max-width: 1000px;
}

.legal-page h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--dark);
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.legal-page h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.last-updated {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 30px;
    text-align: center;
}

.privacy-notice {
    background-color: #f0f7ff;
    border-left: 4px solid var(--primary);
    padding: 20px;
    margin: 20px 0 30px;
    border-radius: 0 8px 8px 0;
}

.toc-container {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
    border: 1px solid var(--border);
}

.toc-container h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 18px;
    text-align: center;
    border-bottom: none;
}

.toc-container p {
    margin: 8px 0;
}

.toc-container a {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.toc-container a:hover {
    color: #0d5cb6;
    text-decoration: underline;
}

.title {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 25px;
    position: relative;
}

.anchor-link {
    position: absolute;
    left: -25px;
    opacity: 0;
    transition: opacity 0.2s;
}

.title:hover .anchor-link {
    opacity: 1;
}

.title h3 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeaea;
}

.title p {
    margin-bottom: 10px;
    line-height: 1.7;
}

.title ul {
    margin: 15px 0 15px 30px;
}

.title ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.highlight {
    background-color: #fff9c4;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 600;
}

.mm {
    background-color: #ffebee;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 600;
}

.legal-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.legal-content h2 {
    font-size: 24px;
    margin: 30px 0 15px;
    font-weight: 700;
    color: var(--dark);
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
}

.legal-content h3 {
    font-size: 20px;
    margin: 25px 0 10px;
    font-weight: 700;
    color: var(--dark);
}

.legal-content p {
    margin-bottom: 15px;
}

.legal-content ul {
    margin: 15px 0 20px 30px;
}

.legal-content ul li {
    margin-bottom: 8px;
}

.legal-content strong {
    font-weight: 700;
    color: var(--dark);
}

/* Responsive Design */
@media (min-width: 768px) {
    .date-display {
        display: block;
    }
    .menu-btn {
        display: none;
    }
    .mobile-menu-btn {
        display: none;
    }
    
}
@media screen and (max-width: 768px) {
    .main-nav {
        display: none;
    }
    .section-header{
        margin: 10px 0;
    }
    .trending-item{
        padding: 5px;
    }
    .trending-list{
        gap: 5px;
    }
}
@media (max-width: 900px) {
    .hero-section {
        grid-template-columns: 1fr;
    }
    .featured-article {
        height: 350px;
    }
    .secondary-articles {
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: none;
        height: auto;
    }
    .secondary-article {
        height: 200px;
    }
    .trending-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-top {
        padding: 10px 0;
    }
    .nav-list {
        gap: 15px;
    }
    .featured-title {
        font-size: 22px;
    }
    .article-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    .newsletter-form {
        flex-direction: column;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .container{
        padding: 0 5px;
    }
    .hero-section{
     margin: 5px 0;
     gap: 5px;   
    }
    .card-content,.article-detail{
        padding: 10px !important;
    }
    .article-grid{
        gap: 5px;
        margin-bottom: 5px;
    }
    p{
        margin-bottom: 0 !important;
    }
    .trending-section{
        margin: 5px 0;
        padding: 0 5px;
    }
    .category-header,.pagination{
        margin:  0;
    }
    #load-more-btn{
        margin: 5px 0 !important;
    }
    .article-detail{
        margin-top: 5px !important;
    }
}

@media (max-width: 480px) {
    .secondary-articles {
        grid-template-columns: 1fr;
    }
    .secondary-article {
        height: 180px;
    }
    .article-grid {
        grid-template-columns: 1fr;
    }
    .featured-article {
        height: 300px;
    }
    .newsletter-section {
        padding: 25px;
    }
    .newsletter-title {
        font-size: 22px;
    }
    .article-title {
        font-size: 24px;
    }
    .article-detail {
        padding: 20px;
    }
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    .related-card {
        flex-direction: column;
    }
    .related-card img {
        width: 100%;
        height: 150px;
    }
}
