/* ============================================
   Modern News Website Design
   RTL Layout - Professional News Site
   ============================================ */

:root {
    --primary: #05335f;
    --primary-dark: #021f3c;
    --accent: #0099cc;
    --accent-light: #11b9f5;
    --coral: #fc7d6e;
    --dot: #14b9f3;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --text-muted: #999;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a1a;
    --border: #e1e8ed;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --radius: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --display-font: 'Changa', 'Droid Arabic Kufi', sans-serif;
}

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

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    direction: rtl;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* Prevent horizontal overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container-news {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    overflow-x: hidden;
}

.py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

/* Top Bar */
.top-bar-news {
    background: var(--primary);
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--accent);
    width: 100%;
    overflow-x: hidden;
}

.top-bar-content-news {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    overflow-x: hidden;
}

.top-bar-links-news {
    display: flex;
    gap: 24px;
    list-style: none;
}

.top-bar-links-news a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.top-bar-links-news a:hover {
    color: var(--accent-light);
}

.top-bar-social-news {
    display: flex;
    gap: 16px;
    align-items: center;
}

.top-bar-social-news svg {
    width: 18px;
    height: 18px;
    color: var(--accent-light);
    transition: var(--transition);
}

.top-bar-social-news svg:hover {
    color: white;
    transform: scale(1.15);
}

.top-bar-row-1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.top-bar-row-2 {
    display: none;
}

.top-bar-text {
    flex: 1;
}

.top-bar-text-desktop {
    display: block;
}

/* Desktop: show text in row-1, hide row-2 */
@media (min-width: 769px) {
    .top-bar-content-news {
        flex-direction: row;
    }
    
    .top-bar-row-1 {
        display: flex;
        width: 100%;
    }
    
    .top-bar-row-2 {
        display: none;
    }
    
    .top-bar-text-desktop {
        display: block;
    }
}

/* Main Header */
.header-news {
    background: var(--bg-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--accent);
    width: 100%;
    overflow: visible;
}

.header-content-news {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    width: 100%;
    overflow: visible;
}

.header-logo-news img {
    height: 60px;
    width: auto;
    transition: var(--transition);
}

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

.header-nav-news {
    flex: 1;
    display: flex;
    justify-content: center;
    overflow: visible;
    min-width: 0;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-list-news {
    display: flex;
    list-style: none;
    gap: 12px;
    align-items: center;
    flex-wrap: nowrap;
    position: relative;
    overflow: visible;
    width: 100%;
}

.nav-item-news {
    position: relative;
}

.nav-link-news {
    display: block;
    padding: 12px 24px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nav-link-news:hover,
.nav-item-news.active .nav-link-news {
    color: var(--accent);
    background: rgba(0, 153, 204, 0.08);
}

.nav-item-news.active .nav-link-news::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.nav-item-news a[href*="compaign_page"] {
    transition: var(--transition);
}

.nav-item-news a[href*="compaign_page"]:hover {
    background-color: #e66a5a !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(252, 125, 110, 0.3);
}

.header-cta-news {
    background: linear-gradient(135deg, var(--coral), #e66a5a);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(252, 125, 110, 0.3);
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.header-cta-news:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(252, 125, 110, 0.4);
    color: white;
}

/* Breaking News Bar */
.breaking-news-bar {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 12px 0;
    border-bottom: 2px solid var(--border);
}

.breaking-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.breaking-label {
    background: var(--primary);
    color: white;
    padding: 6px 16px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

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

.breaking-content {
    flex: 1;
    color: var(--text-dark);
    font-weight: 600;
    overflow: hidden;
}

.breaking-content a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.breaking-content a:hover {
    color: var(--accent);
}

.acme-news-ticker ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.acme-news-ticker ul li {
    display: inline-block;
    padding: 0 10px;
    font-weight: 600;
}

.acme-news-ticker ul li + li::before {
    content: '•';
    color: var(--accent);
    margin: 0 10px;
}

/* Hero Featured Story */
.hero-featured {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
    height: 350px;
}

.hero-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(5, 51, 95, 0.95), transparent);
    padding: 30px;
    color: white;
}

.hero-featured-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(20, 185, 243, 0.3);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 20px;
    border-right: 3px solid var(--dot);
    margin-bottom: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-featured-category::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--dot);
    border-radius: 50%;
}

.hero-featured-title {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    font-family: var(--display-font);
}

.hero-featured-title a {
    color: white;
    text-decoration: none;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* News Card */
.news-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.news-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.news-card-body {
    padding: 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card-category::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--dot);
    border-radius: 50%;
}

.news-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.news-card-title a:hover {
    color: var(--accent);
}

.news-card-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-card-excerpt {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 16px;
    flex-grow: 1;
    font-size: 0.95rem;
}

.news-card-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card-link:hover {
    gap: 10px;
    color: var(--accent-light);
}

/* Section Headers */
.section-header-news {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent);
    position: relative;
}

.section-header-news::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 100px;
    height: 3px;
    background: var(--accent-light);
}

.section-title-news {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 0;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--display-font);
    position: relative;
    padding-right: 24px;
}

.section-title-news::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
}

/* Article Page */
.article-layout-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.article-main {
    min-width: 0;
}

.article-sidebar {
    min-width: 0;
}

.article-header-news {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
}

.article-title-news {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 900;
}

.article-meta-news {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.article-image-news {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
}

.article-content-news {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.9;
    font-size: 1.1rem;
    color: var(--text-dark);
    background: var(--bg-white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

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

.article-content-news img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 30px 0;
}

/* Sidebar */
.sidebar-news {
    background: var(--bg-white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.sidebar-title-news {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-item-news {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.sidebar-item-news:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-item-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.sidebar-item-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.sidebar-item-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.sidebar-item-title a:hover {
    color: var(--accent);
}

/* Footer */
.footer-news {
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 50px 0 25px;
    margin-top: 60px;
}

.footer-content-news {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid-news {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 40px;
}

.footer-section-news h4 {
    color: var(--accent-light);
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(17, 185, 245, 0.3);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links-news {
    list-style: none;
}

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

.footer-links-news a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    padding-right: 15px;
    position: relative;
}

.footer-links-news a::before {
    content: '▸';
    position: absolute;
    right: 0;
    opacity: 0;
    transition: var(--transition);
    color: var(--accent-light);
}

.footer-links-news a:hover {
    color: var(--accent-light);
    padding-right: 20px;
}

.footer-links-news a:hover::before {
    opacity: 1;
}

.footer-logo-news img {
    max-width: 200px;
    margin-bottom: 20px;
}

.footer-text-news {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-social-news {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social-news a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social-news a:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.footer-social-news svg {
    width: 20px;
    height: 20px;
    color: white;
}

.footer-bottom-news {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-bottom-news span {
    color: var(--accent-light);
    font-weight: 600;
}

/* Buttons */
.btn-news {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary-news {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 153, 204, 0.3);
}

.btn-primary-news:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 153, 204, 0.4);
    color: white;
}

.btn-coral-news {
    background: var(--coral);
    color: white;
    box-shadow: 0 4px 12px rgba(252, 125, 110, 0.3);
}

.btn-coral-news:hover {
    background: #e66a5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(252, 125, 110, 0.4);
    color: white;
}

/* Forms */
.form-group-news {
    margin-bottom: 24px;
}

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

.form-control-news {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-control-news:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 153, 204, 0.1);
}

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

/* More Menu Dropdown */
.more-menu {
    position: relative;
    flex-shrink: 0;
    z-index: 1001;
}

.more-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    background: transparent;
    border: none;
    font-family: inherit;
    white-space: nowrap;
}

.more-menu-toggle:hover,
.more-menu.active .more-menu-toggle {
    color: var(--accent);
    background: rgba(0, 153, 204, 0.08);
}

.more-menu-toggle svg {
    width: 16px;
    height: 16px;
    transition: var(--transition);
    flex-shrink: 0;
}

.more-menu.active .more-menu-toggle svg {
    transform: rotate(180deg);
}

.more-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    min-width: 200px;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1002;
    border: 1px solid var(--border);
    padding: 8px 0;
    overflow: visible;
}

.more-menu.active .more-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.more-menu-dropdown a {
    display: block;
    padding: 12px 24px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.more-menu-dropdown a:hover {
    color: var(--accent);
    background: rgba(0, 153, 204, 0.08);
}

/* Desktop - Ensure More menu is visible */
@media (min-width: 769px) {
    .header-news {
        overflow: visible;
    }
    
    .header-content-news {
        overflow: visible;
    }
    
    .header-nav-news {
        overflow: visible;
    }
    
    .nav-list-news {
        overflow: visible;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    /* Tablet and below */
    .hero-featured {
        height: 300px;
    }
    
    .hero-featured-title {
        font-size: 1.6rem;
    }
    
    .trending-card-image {
        width: 120px;
    }
    
    .trending-card-title {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
        width: 100%;
        position: relative;
    }
    
    .container-news,
    .top-bar-news,
    .header-news,
    .footer-news,
    .breaking-news-bar {
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .container-news {
        padding: 0 15px;
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .top-bar-news {
        padding: 10px 0;
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .top-bar-content-news {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    .top-bar-row-1,
    .top-bar-row-2 {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .top-bar-row-1 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .top-bar-row-2 {
        display: block;
        width: 100%;
    }
    
    .top-bar-text-desktop {
        display: none;
    }
    
    .top-bar-links-news {
        gap: 10px;
        font-size: 0.75rem;
        flex: 0 0 auto;
    }
    
    .top-bar-text {
        font-size: 0.75rem;
        width: 100%;
        flex: none;
        position: static;
        transform: none;
    }
    
    .top-bar-social-news {
        flex: 0 0 auto;
        gap: 8px;
    }
    
    .top-bar-social-news svg {
        width: 16px;
        height: 16px;
    }
    
    .header-content-news {
        flex-wrap: wrap;
        gap: 15px;
        padding: 15px;
        position: relative;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .header-logo-news img {
        height: 45px;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 2;
    }
    
    .header-nav-news {
        order: 3;
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 2px solid var(--border);
    }
    
    .header-nav-news.active {
        display: flex;
    }
    
    .nav-list-news {
        flex-direction: column;
        width: 100%;
        gap: 8px;
        align-items: stretch;
    }
    
    .nav-item-news {
        width: 100%;
    }
    
    .nav-link-news {
        width: 100%;
        text-align: right;
        padding: 14px 20px;
    }
    
    .nav-item-news a[href*="compaign_page"] {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.9rem;
    }
    
    .more-menu {
        width: 100%;
    }
    
    .more-menu-toggle {
        width: 100%;
        text-align: right;
        padding: 14px 20px;
    }
    
    .more-menu-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0;
        margin-top: 8px;
        margin-right: 20px;
    }
    
    .more-menu.active .more-menu-dropdown {
        display: block;
    }
    
    .hero-featured {
        height: 250px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .hero-featured-title {
        font-size: 1.4rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .hero-grid,
    .main-content-grid {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0;
    }
    
    .news-card,
    .trending-card,
    .sidebar-news,
    .section-header-news {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .breaking-wrapper {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }
    
    .footer-grid-news {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .article-title-news {
        font-size: 1.8rem;
    }
    
    .article-layout-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .article-meta-news {
        flex-wrap: wrap;
        gap: 10px;
        font-size: 0.85rem;
    }
    
    .article-content-news {
        padding: 20px;
        font-size: 1rem;
    }
    
    /* Make hero full width on mobile */
    .hero-grid {
        grid-template-columns: 1fr !important;
    }
    
    .main-content-grid {
        grid-template-columns: 1fr !important;
    }
    
    .hero-featured + div {
        grid-template-columns: 1fr !important;
    }
    
    .trending-card {
        height: auto;
    }
    
    .trending-card-image {
        width: 100px;
    }
    
    .quick-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-category-item {
        font-size: 0.8rem;
        padding: 12px 16px;
    }
    
    .breaking-wrapper {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .breaking-label {
        text-align: center;
        width: 100%;
    }
    
    .breaking-content {
        width: 100%;
    }
}

@media (max-width: 480px) {
    html, body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .top-bar-content-news {
        padding: 0 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .container-news {
        padding: 0 10px;
    }
    
    .header-content-news {
        padding: 12px;
    }
    
    .top-bar-text {
        font-size: 0.75rem;
    }
    
    .top-bar-links-news {
        gap: 10px;
        font-size: 0.75rem;
    }
    
    .top-bar-social-news svg {
        width: 16px;
        height: 16px;
    }
    
    .header-content-news {
        padding: 12px;
    }
    
    .header-logo-news img {
        height: 40px;
    }
    
    .nav-link-news {
        font-size: 0.9rem;
        padding: 12px 15px;
    }
    
    .nav-item-news a[href*="compaign_page"] {
        font-size: 0.85rem;
        padding: 12px 15px;
    }
    
    .nav-item-news a[href*="compaign_page"] img {
        height: 18px;
        width: 18px;
    }
    
    .quick-categories {
        grid-template-columns: 1fr;
    }
    
    .hero-featured {
        height: 220px;
    }
    
    .hero-featured-title {
        font-size: 1.2rem;
    }
    
    .hero-featured-overlay {
        padding: 15px;
    }
    
    .breaking-label {
        font-size: 0.8rem;
        padding: 5px 12px;
    }
    
    .breaking-content {
        font-size: 0.85rem;
    }
    
    .section-title-news {
        font-size: 1.3rem;
    }
    
    .news-card-title {
        font-size: 1rem;
    }
    
    .container-news {
        padding: 0 15px;
    }
}

/* Trending Cards */
.trending-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    gap: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
    height: calc((350px - 30px) / 3);
}

.trending-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(-3px);
}

.trending-card-image {
    width: 140px;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.trending-card-content {
    padding: 12px 15px 12px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.trending-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.trending-card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trending-card-title a:hover {
    color: var(--accent);
}

/* Quick Categories */
.quick-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 40px;
}

.quick-category-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--display-font);
}

.quick-category-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
}

.quick-category-item svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* Featured Topics */
.featured-topics {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.featured-topics::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(17, 185, 245, 0.15) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
    pointer-events: none;
}

.featured-topics-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.featured-topics-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: var(--shadow);
}

.featured-topics-header h3 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--primary);
    font-weight: 700;
    font-family: var(--display-font);
}

.featured-topics-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.featured-topics-list a {
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(5, 51, 95, 0.15);
    background: rgba(5, 51, 95, 0.05);
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
    font-family: var(--display-font);
}

.featured-topics-list a:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 2rem;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Pagination (News pages) */
.pagination-wrapper-news nav {
    width: 100%;
}

.pagination-wrapper-news .pagination {
    gap: 10px;
    margin-bottom: 0;
    flex-wrap: wrap;
    justify-content: center;
}

/* Bootstrap adds negative margins for grouped pagination; we want spaced pills */
.pagination-wrapper-news .page-item:not(:first-child) .page-link {
    margin-left: 0;
}

.pagination-wrapper-news .page-link {
    border: 1px solid rgba(5, 51, 95, 0.15);
    background: var(--bg-white);
    color: var(--primary);
    border-radius: 12px;
    padding: 0.55rem 0.9rem;
    min-width: 44px;
    text-align: center;
    font-weight: 700;
    font-family: var(--display-font);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.pagination-wrapper-news .page-link:hover {
    background: rgba(5, 51, 95, 0.05);
    border-color: rgba(5, 51, 95, 0.25);
    color: var(--primary-dark);
    transform: translateY(-1px);
}

.pagination-wrapper-news .page-link:focus {
    box-shadow: 0 0 0 0.25rem rgba(17, 185, 245, 0.25);
}

.pagination-wrapper-news .page-item.active .page-link {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow);
}

.pagination-wrapper-news .page-item.disabled .page-link {
    opacity: 0.55;
    background: var(--bg-light);
    border-color: rgba(5, 51, 95, 0.12);
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 576px) {
    .pagination-wrapper-news .pagination {
        gap: 8px;
    }

    .pagination-wrapper-news .page-link {
        padding: 0.45rem 0.75rem;
        min-width: 40px;
        border-radius: 10px;
    }
}

