/* === GLOBAL INSIGHT STYLES === */

/* CSS Variables for theming */
:root {
    --primary-color: #1a237e;
    --secondary-color: #e91e63;
    --accent-color: #00bcd4;
    --dark-bg: #0f1419;
    --light-bg: #f8f9fa;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --text-gray: #6c757d;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: var(--dark-bg);
    color: var(--text-light);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.weather-widget {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--accent-color);
}

.user-actions {
    display: flex;
    gap: 10px;
}

.btn-login, .btn-subscribe {
    padding: 8px 16px;
    border: 1px solid var(--accent-color);
    background: transparent;
    color: var(--text-light);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-subscribe {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-login:hover, .btn-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.main-nav {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    background: transparent;
}

.main-nav ul {
    display: flex;
    gap: 25px;
}

.main-nav a {
    font-weight: 600;
    padding: 8px 0;
    position: relative;
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    width: 30px;
    height: 30px;
    justify-content: space-around;
}

.hamburger {
    width: 100%;
    height: 3px;
    background: var(--text-light);
    transition: all 0.3s ease;
    transform-origin: center;
}





.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 5px 15px;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    background: rgba(255,255,255,0.2);
    transform: scale(1.02);
}

.search-box input {
    background: transparent;
    border: none;
    color: var(--text-light);
    padding: 5px;
    outline: none;
    width: 150px;
}

.search-box button {
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px;
}

/* Breaking News Ticker */
.breaking-news {
    background: var(--secondary-color);
    color: white;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.ticker-label {
    background: var(--dark-bg);
    padding: 5px 15px;
    font-weight: 800;
    margin-right: 15px;
    font-size: 14px;
}

.ticker-content {
    display: inline-block;
    animation: scroll 20s linear infinite;
}

.ticker-content span {
    margin-right: 50px;
    font-size: 14px;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Featured Story */
.featured-story {
    margin: 30px 0;
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.featured-image {
    background-size: cover;
    background-position: center;
    min-height: 400px;
}

.featured-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-badge {
    background: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    width: fit-content;
    margin-bottom: 15px;
}

.featured-content h1 {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.featured-content p {
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 16px;
}

.article-meta {
    display: flex;
    gap: 20px;
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 20px;
}

.read-more {
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    transition: all 0.3s ease;
}

.read-more:hover {
    background: var(--secondary-color);
    transform: translateX(5px);
}

/* News Grid */
.news-grid {
    margin: 40px 0;
}

.news-grid h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-category {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.card-excerpt {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 12px;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-gray);
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 50px;
    border-radius: 12px;
    margin: 40px 0;
    text-align: center;
}

.newsletter-content h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 20px auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 18px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
}

.newsletter-form button {
    background: var(--dark-bg);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.newsletter-content small {
    opacity: 0.8;
    font-size: 12px;
}

/* Category Page Styles */
.category-header {
    text-align: center;
    padding: 40px 0;
    background: white;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: var(--shadow);
}

.category-header h1 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.category-header p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

.category-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.category-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.widget {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.widget h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.topic-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.topic-list li:last-child {
    border-bottom: none;
}

.topic-list a:hover {
    color: var(--secondary-color);
}

.subscribe-small {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    width: 100%;
    margin-top: 10px;
    cursor: pointer;
}

/* Detail Page Styles */
.article-detail {
    margin: 30px auto;
}

.full-article {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.article-header {
    margin-bottom: 30px;
}

.article-header h1 {
    font-size: 36px;
    line-height: 1.2;
    color: var(--primary-color);
    margin: 15px 0;
}

.article-meta {
    display: flex;
    gap: 20px;
    color: var(--text-gray);
    margin: 15px 0;
    flex-wrap: wrap;
}

.share-buttons {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.share-buttons button {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.share-buttons button:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.featured-image-large {
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin: 20px 0;
}

.article-body {
    font-size: 18px;
    line-height: 1.8;
}

.article-body h2 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: var(--primary-color);
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul {
    margin: 20px 0;
    padding-left: 20px;
}

.article-body ul li {
    margin-bottom: 10px;
}

blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 20px;
    margin: 25px 0;
    font-style: italic;
    color: var(--text-gray);
    font-size: 20px;
}

.article-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.article-tags a {
    background: var(--light-bg);
    padding: 6px 12px;
    border-radius: 20px;
    margin-right: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.article-tags a:hover {
    background: var(--primary-color);
    color: white;
}

/* Comments Section */
.comments-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.comments-section h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-height: 100px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 10px;
}

.comment-form button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.comments-list {
    margin-top: 25px;
}

.comment {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.comment:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.comment-header span {
    color: var(--text-gray);
}

/* Related Articles */
.related-articles {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.related-articles h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.related-image {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
}

.related-card h4 {
    padding: 15px;
    font-size: 16px;
    line-height: 1.3;
}

/* Legal Pages */
.legal-page {
    margin: 30px 0;
    min-height: 60vh;
}

.legal-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 100%;
    line-height: 1.7;
}

.legal-content h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 36px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 15px;
}

.legal-content h2 {
    color: var(--primary-color);
    margin: 30px 0 15px 0;
    font-size: 28px;
    border-left: 4px solid var(--secondary-color);
    padding-left: 15px;
}

.legal-content h3 {
    color: var(--text-dark);
    margin: 25px 0 12px 0;
    font-size: 20px;
    font-weight: 600;
}

.last-updated {
    color: var(--text-gray);
    margin-bottom: 30px;
    font-style: italic;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.legal-content section {
    margin-bottom: 30px;
}

.toc-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0 30px 0;
    border-left: 4px solid var(--accent-color);
}

.toc-container h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.toc-container p {
    margin: 8px 0;
}

.toc-container a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    display: block;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.toc-container a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.legal-content p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-dark);
}

.legal-content ul {
    margin: 15px 0 15px 20px;
}

.legal-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.legal-content strong {
    color: var(--text-dark);
    font-weight: 600;
}

.privacy-notice {
    background: #e3f2fd;
    border-left: 4px solid var(--accent-color);
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 8px 8px 0;
}

.highlight {
    background: #fff8e1;
    padding: 2px 5px;
    border-radius: 3px;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: var(--text-light);
    margin-top: 10px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.footer-section p {
    color: #999;
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 15px;
    font-size: 20px;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #999;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .featured-card {
        grid-template-columns: 1fr;
    }

    .category-content {
        grid-template-columns: 1fr;
    }

    .main-nav {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .search-box input {
        width: 120px;
    }

    .article-header h1 {
        font-size: 28px;
    }

    .featured-image-large {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        flex-direction: row;
        gap: 15px;
    }

    .user-actions {
        width: 100%;
        justify-content: center;
    }

    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .newsletter-form {
        flex-direction: column;
    }

    .category-filters {
        gap: 5px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 14px;
    }

    .article-meta {
        flex-direction: column;
        gap: 8px;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-buttons button {
        width: 100%;
        justify-content: center;
    }

    .legal-content {
        padding: 20px;
    }

    .legal-content h1 {
        font-size: 28px;
    }
    
    .toc-container {
        padding: 15px;
    }
    
    .toc-container a {
        font-size: 14px;
        padding: 3px 0;
    }
    
    .privacy-notice {
        padding: 12px;
    }
    
    .dual-column-container {
    grid-template-columns: 1fr !important;
}
}

@media (max-width: 480px) {
    .logo {
        font-size: 22px;
    }

    .breaking-news {
        font-size: 12px;
    }

    .ticker-content span {
        margin-right: 30px;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .article-body {
        font-size: 16px;
    }

    .article-header h1 {
        font-size: 24px;
    }
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-gray);
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hide { display: none; }

/* Dual Column News Section */
.dual-column-news {
    margin: 40px 0;
}

.dual-column-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 25px;
    width: 100%;
}

.column {
    display: flex;
    flex-direction: column;
}

.left-column h2,
.right-column h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.image-articles-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.text-articles-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.article-with-image {
    display: flex;
    gap: 15px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    padding: 15px;
}

.article-with-image:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.article-image {
    width: 160px;
    height: 110px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
}

.article-content {
    flex-grow: 1;
}

.article-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    line-height: 1.3;
}

.article-category {
    font-size: 12px;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}

.article-excerpt {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.4;
}

.text-article {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.text-article:last-child {
    border-bottom: none;
}

.text-article:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.text-article-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}
/* Mobile Navigation */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background: var(--dark-bg);
        transition: left 0.3s ease;
        z-index: 1001;
        box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 5px;
    }
    
    .main-nav li {
        margin: 5px 0;
    }
    
    .main-nav a {
        display: block;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .menu-toggle.active .hamburger:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active .hamburger:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .hamburger:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .top-bar {
        position: relative;
        padding: 10px 5px;
    }
    
    /* Mobile container adjustments */
    .container {
        padding: 0 5px;
    }
    
    /* Adjust margins and padding for various elements */
    .featured-story {
        margin: 10px 0;
    }
    
    .news-grid {
        margin: 15px 0;
    }
    
    .grid-container {
        gap: 10px;
    }
    
    .dual-column-news {
        margin: 15px 0;
    }
    
    .dual-column-container {
        gap: 5px;
    }
    
    .news-card {
        gap: 5px;
    }
    
    .card-content {
        padding: 10px;
    }
    
    .featured-card {
        gap: 10px;
        margin: 5px;
    }
    
    .featured-content {
        padding: 15px;
    }
    
    .featured-content h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .featured-content p {
        margin-bottom: 10px;
        font-size: 14px;
    }
    
    .article-meta {
        gap: 8px;
        font-size: 12px;
    }
    
    .read-more {
        padding: 8px 16px;
    }
    
    .newsletter-section {
        padding: 20px;
        margin: 20px 0;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 5px;
    }
    
    .footer-content {
        padding: 20px 5px;
        gap: 20px;
    }
    
    .footer-bottom {
        padding: 10px 5px;
        font-size: 12px;
    }
    
    /* Category page adjustments */
    .category-header {
        padding: 20px 0;
        margin: 15px 0;
    }
    
    .category-header h1 {
        font-size: 28px;
    }
    
    .category-filters {
        gap: 5px;
    }
    
    .category-content {
        gap: 15px;
    }
    
    .category-grid {
        gap: 10px;
    }
    
    .sidebar {
        gap: 10px;
    }
    
    .widget {
        padding: 15px;
    }
    
    /* Detail page adjustments */
    .article-detail {
        margin: 15px auto;
    }
    
    .full-article {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .article-header h1 {
        font-size: 28px;
        margin: 10px 0;
    }
    
    .article-meta {
        gap: 10px;
    }
    
    .featured-image-large {
        height: 250px;
        margin: 10px 0;
    }
    
    .article-body {
        font-size: 16px;
    }
    
    .comments-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .related-articles {
        padding: 15px;
    }
    
    .related-grid {
        gap: 10px;
    }
    
    /* Legal pages adjustments */
    .legal-page {
        margin: 15px 0;
    }
    
    .legal-content {
        padding: 20px;
    }
    
    .legal-content h1 {
        font-size: 28px;
    }
    
    .legal-content h2 {
        font-size: 22px;
    }
    
    .toc-container {
        padding: 15px;
        margin: 15px 0;
    }
    
    /* Other common spacing adjustments */
    .mb10,
    .mt50 {
        margin-bottom: 5px;
        margin-top: 5px;
    }
    
    .pt80 {
        padding-top: 10px;
    }
    
    .pb20 {
        padding-bottom: 5px;
    }
    
    .gap-10,
    .gap-20,
    .gap-25,
    .gap-30 {
        gap: 5px;
    }
    
    .p-10,
    .p-15,
    .p-20,
    .p-30 {
        padding: 5px;
    }
    
    .m-10,
    .m-15,
    .m-20,
    .m-30 {
        margin: 5px;
    }
    .featured-story{
        margin: 5px 0 !important;
    }
    .featured-card{
        gap: 5px !important;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .top-bar {
        padding: 5px; /* Reduced to 5px max */
    }
    
    .main-nav ul {
        padding: 3px; /* Reduced to 5px max */
    }
    
    .main-nav li {
        margin: 2px 0; /* Reduced to 5px max */
    }
    
    .main-nav a {
        padding: 5px 0; /* Reduced to 5px max */
    }
    
    .container {
        padding: 0 2px; /* Reduced to 5px max */
    }
    
    .featured-story {
        margin: 5px 0; /* Reduced to 5px max */
    }
    
    .news-grid {
        margin: 8px 0; /* Reduced to 5px max */
    }
    
    .grid-container {
        gap: 5px; /* Reduced to 5px max */
    }
    
    .dual-column-container {
        flex-direction: column;
        gap: 2px; /* Reduced to 5px max */
    }
    
    .card-content {
        padding: 5px; /* Reduced to 5px max */
    }
    
    .featured-content {
        padding: 8px; /* Reduced to 5px max */
    }
    
    .newsletter-section {
        padding: 10px; /* Reduced to 5px max */
        margin: 10px 0; /* Reduced to 5px max */
    }
    
    .footer-content {
        padding: 10px 2px; /* Reduced to 5px max */
        gap: 10px; /* Reduced to 5px max */
    }
    
    .category-header {
        padding: 10px 0; /* Reduced to 5px max */
        margin: 8px 0; /* Reduced to 5px max */
    }
    
    .category-filters {
        gap: 2px; /* Reduced to 5px max */
    }
    
    .category-content {
        gap: 8px; /* Reduced to 5px max */
    }
    
    .widget {
        padding: 8px; /* Reduced to 5px max */
    }
    
    .article-detail {
        margin: 8px auto; /* Reduced to 5px max */
    }
    
    .full-article {
        padding: 10px; /* Reduced to 5px max */
        margin-bottom: 8px; /* Reduced to 5px max */
    }
    
    .comments-section {
        padding: 8px; /* Reduced to 5px max */
        margin-bottom: 8px; /* Reduced to 5px max */
    }
    
    .related-articles {
        padding: 8px; /* Reduced to 5px max */
    }
    
    .legal-content {
        padding: 10px; /* Reduced to 5px max */
    }
    
    .toc-container {
        padding: 8px; /* Reduced to 5px max */
        margin: 8px 0; /* Reduced to 5px max */
    }
    
    /* Additional ultra-mobile spacing adjustments */
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.2rem; }
    
    /* Limit all margins and paddings to 5px max on ultra-mobile */
    .p-10, .p-15, .p-20, .p-30, .p-40, .p-50 {
        padding: 5px;
    }
    
    .m-10, .m-15, .m-20, .m-30, .m-40, .m-50 {
        margin: 5px;
    }
    
    .gap-5, .gap-10, .gap-15, .gap-20, .gap-25, .gap-30 {
        gap: 3px;
    }
    
    .mb10, .mb20, .mb30 {
        margin-bottom: 5px;
    }
    
    .mt10, .mt20, .mt30 {
        margin-top: 5px;
    }
    
    .pb10, .pb20, .pb30 {
        padding-bottom: 5px;
    }
    
    .pt10, .pt20, .pt30 {
        padding-top: 5px;
    }
}