/* ===========================
   GLOBAL & RESET
   =========================== */
:root {
    --primary-color: #326891;
    --primary-dark: #1e4a6a;
    --text-primary: #121212;
    --text-secondary: #666;
    --text-muted: #999;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f0f2f5;
    --border-color: #e0e0e0;
    --accent-red: #e32b2b;
    --accent-green: #2d7c2e;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
}

[data-theme="dark"] {
    --text-primary: #e8e8e8;
    --text-secondary: #b0b0b0;
    --text-muted: #888;
    --bg-primary: #1a1a1a;
    --bg-secondary: #242424;
    --bg-tertiary: #2e2e2e;
    --border-color: #404040;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   HEADER & NAVIGATION
   =========================== */
.header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.search-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-bar {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.search-input {
    border: none;
    padding: 10px 16px;
    font-size: 0.9rem;
    width: 240px;
    background: transparent;
    color: var(--text-primary);
}

.search-btn {
    border: none;
    background: var(--primary-color);
    color: white;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.search-btn:hover {
    background: var(--primary-dark);
}

.theme-toggle {
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    padding: 10px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
}

/* ===========================
   NAVIGATION
   =========================== */
.nav {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 80px;
    z-index: 99;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 12px 0;
    overflow: hidden;
}

.categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    flex: 1;
    padding: 4px 0;
}

.categories::-webkit-scrollbar {
    display: none;
    height: 0;
}

.category-btn {
    border: none;
    background: transparent;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    border-radius: 4px;
    transition: all 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    flex-shrink: 0;
}

.category-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.category-btn.active {
    background: var(--primary-color);
    color: white;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-red);
    white-space: nowrap;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-red);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ===========================
   HEADLINE BANNER
   =========================== */
.headline-banner-section {
    display: none;
    margin-top: 24px;
}

.headline-banner-section.active {
    display: block;
}

.headline-banner {
    position: relative;
    height: 500px;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-secondary);
}

.headline-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.headline-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
}

.headline-banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 48px;
    color: white;
}

.headline-banner-badge {
    display: inline-block;
    background: var(--accent-red);
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 2px;
    margin-bottom: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.headline-banner-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 12px;
    max-width: 900px;
}

.headline-banner-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 700px;
    opacity: 0.95;
}

/* ===========================
   MAIN CONTENT LAYOUT
   =========================== */
.main-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    margin-top: 32px;
}

/* ===========================
   FEATURED SECTION
   =========================== */
.featured-section {
    margin-bottom: 48px;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.featured-video,
.featured-article {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.featured-article {
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.featured-article:hover {
    box-shadow: var(--shadow-md);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.live-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.featured-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.featured-content {
    padding: 24px;
}

.video-category {
    background: var(--accent-red);
}

.article-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 2px;
    margin-bottom: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.featured-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.featured-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 12px;
}

.article-meta {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===========================
   NEWSLETTER
   =========================== */
.newsletter-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 48px;
    border-radius: 0;
    margin-bottom: 32px;
    text-align: center;
    color: white;
}

.newsletter-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    margin-bottom: 12px;
}

.newsletter-subtitle {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form-wide {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form-wide input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
}

.newsletter-form-wide button {
    padding: 14px 32px;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s;
}

.newsletter-form-wide button:hover {
    transform: translateY(-2px);
}

.newsletter-msg {
    margin-top: 16px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===========================
   FEATURED EXTRAS
   =========================== */
.featured-extras {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.quick-stats,
.weather-widget,
.breaking-news,
.mini-poll {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 0;
}

.widget-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-box {
    text-align: center;
    padding: 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.weather-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.weather-icon {
    font-size: 2.5rem;
}

.weather-temp {
    font-size: 1.8rem;
    font-weight: 700;
}

.weather-desc {
    color: var(--text-secondary);
}

.breaking-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
}

.breaking-item:last-child {
    border-bottom: none;
}

.breaking-item:hover {
    background: var(--bg-tertiary);
    margin: 0 -12px;
    padding: 12px 12px;
}

.breaking-badge {
    background: var(--accent-red);
    color: white;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 2px;
    height: fit-content;
}

.breaking-text {
    flex: 1;
    font-size: 0.85rem;
    line-height: 1.4;
}

.poll-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    border-radius: 4px;
}

.poll-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

/* ===========================
   SIDEBAR
   =========================== */
.sidebar {
    position: sticky;
    top: 160px;
    height: fit-content;
}

.sidebar-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 24px;
    margin-bottom: 24px;
    border-radius: 0;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.trending-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: transform 0.2s;
}

.trending-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.trending-item:hover {
    transform: translateX(4px);
}

.trending-image {
    width: 80px;
    height: 60px;
    object-fit: cover;
    flex-shrink: 0;
}

.trending-content {
    flex: 1;
}

.trending-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.trending-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Ad Banner Styles */
.ad-banner {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 2px dashed var(--border-color);
    padding: 20px;
    overflow: hidden;
}

.ad-banner > * {
    max-width: 100%;
    height: auto;
}

.desktop-only {
    display: flex;
}

.stats-widget {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
}

.stat-item .stat-number {
    font-size: 1.5rem;
}

.stat-item .stat-label {
    font-size: 0.85rem;
}

/* ===========================
   ARTICLES SECTION
   =========================== */
.articles-section {
    margin: 48px 0;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--text-primary);
}

.section-subtitle {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.articles-grid.single-article {
    grid-template-columns: 1fr;
}

.article-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 12px 0;
    color: var(--text-primary);
}

.article-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    padding: 14px 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.load-more-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ===========================
   ALBUM SECTION
   =========================== */
.album-section {
    background: var(--bg-secondary);
    padding: 64px 0;
    margin-top: 48px;
}

.album-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: thin;
    cursor: grab;
    user-select: none;
}

.album-slider.grabbing {
    cursor: grabbing;
}

.album-item {
    flex: 0 0 280px;
    cursor: pointer;
    transition: transform 0.3s;
}

.album-item:hover {
    transform: scale(1.05);
}

.album-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.album-caption {
    padding: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-top: none;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
}

/* ===========================
   DIRECT SECTION (Featured Content)
   =========================== */
.direct-section {
    background: var(--bg-primary);
    padding: 64px 0;
}

.direct-card {
    display: grid;
    grid-template-columns: 600px 1fr;
    gap: 48px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: box-shadow 0.3s;
    align-items: center;
}

.direct-card:hover {
    box-shadow: var(--shadow-lg);
}

.direct-image-container {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.direct-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.direct-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 60%, rgba(0,0,0,0.1) 100%);
}

.direct-content {
    padding: 48px 48px 48px 0;
}

.direct-badge {
    display: inline-block;
    background: var(--accent-red);
    color: white;
    padding: 6px 14px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 2px;
    margin-bottom: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.direct-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.direct-excerpt {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.direct-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===========================
   CONFLICT SECTION
   =========================== */
.conflict-section {
    padding: 64px 0;
    background: var(--bg-secondary);
}

.conflict-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.conflict-card {
    display: flex;
    gap: 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.conflict-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.conflict-image-container {
    position: relative;
    flex-shrink: 0;
}

.conflict-image {
    width: 120px;
    height: 90px;
    object-fit: cover;
}

.conflict-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--accent-red);
    color: white;
    padding: 4px 8px;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 2px;
}

.conflict-content {
    flex: 1;
}

.conflict-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.conflict-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.conflict-category {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 2px;
    font-weight: 600;
}

/* ===========================
   INTERNATIONAL SECTION
   =========================== */
.international-section {
    padding: 64px 0;
}

.international-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: thin;
    cursor: grab;
}

.international-slider.grabbing {
    cursor: grabbing;
}

.international-item {
    flex: 0 0 320px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.international-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.international-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.international-caption {
    padding: 20px;
}

.international-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 2px;
    margin-bottom: 12px;
}

.international-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.international-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===========================
   DEEP NEWS (PRAYERS) SECTION
   =========================== */
.deep-news-related {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 24px;
    height: fit-content;
}

.deep-news-related-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.deep-related-item {
    padding: 16px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
}

.deep-related-item:last-child {
    border-bottom: none;
}

.deep-related-item:hover,
.deep-related-item.active {
    background: var(--bg-tertiary);
    margin: 0 -12px 12px;
    padding: 16px 12px;
}

.deep-related-item.active {
    border-left: 4px solid var(--primary-color);
}

.deep-related-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.deep-related-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.deep-news-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.deep-news-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s;
}

.deep-news-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.deep-news-card-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 2px;
    margin-bottom: 12px;
}

.deep-news-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.deep-news-card-excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.deep-news-card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 64px 0 32px;
    margin-top: 64px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h3.footer-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 16px;
}

.footer-section h4.footer-subtitle {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.social-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-tagline {
    margin-top: 8px;
    font-weight: 600;
}

/* ===========================
   FLOATING ADS
   =========================== */
.floating-side-ad {
    width: 250px;
    min-height: 600px;
    max-height: 600px;
    z-index: 90;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.floating-side-ad > * {
    max-width: 100%;
    height: auto;
}

/* ===========================
   COOKIE CONSENT
   =========================== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 2px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    padding: 24px;
    display: none;
}

.cookie-consent-content {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.cookie-consent-text {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    flex: 1;
}

.cookie-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.cookie-consent-text p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.cookie-consent-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-consent-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: var(--primary-color);
    color: white;
}

.cookie-btn-primary:hover {
    background: var(--primary-dark);
}

.cookie-btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.cookie-btn-secondary:hover {
    background: var(--bg-secondary);
}

/* ===========================
   POPUNDER NOTIFICATION
   =========================== */
.popunder-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.4s ease-out;
}

.popunder-notification.show {
    transform: translateX(0);
}

.popunder-notification.hide {
    transform: translateX(400px);
}

.popunder-icon {
    font-size: 1.5rem;
}

.popunder-content {
    flex: 1;
}

.popunder-title {
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.popunder-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.popunder-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.popunder-close:hover {
    color: var(--text-primary);
}

.popunder-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--primary-color);
    width: 100%;
    animation: progressBar 5s linear;
}

@keyframes progressBar {
    from { width: 100%; }
    to { width: 0%; }
}

/* ===========================
   UTILITY CLASSES
   =========================== */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 1rem;
}

.hidden {
    display: none !important;
}

.no-results,
.no-direct,
.no-international {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-results h3,
.no-direct h3,
.no-international h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr 280px;
        gap: 32px;
    }
    
    .direct-card {
        grid-template-columns: 500px 1fr;
        gap: 32px;
    }
    
    .direct-content {
        padding: 32px 32px 32px 0;
    }
    
    .direct-title {
        font-size: 1.875rem;
    }
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .desktop-only {
        display: none !important;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .direct-card {
        grid-template-columns: 1fr;
    }
    
    .direct-image-container {
        height: 400px;
    }
    
    .direct-content {
        padding: 32px;
    }
    
    .conflict-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .deep-news-container {
        grid-template-columns: 1fr;
    }
    
    .deep-news-bottom {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    .floating-side-ad {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .search-input {
        width: 200px;
    }
    
    .nav-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .headline-banner {
        height: 400px;
    }
    
    .headline-banner-content {
        padding: 32px 24px;
    }
    
    .headline-banner-title {
        font-size: 1.75rem;
    }
    
    .headline-banner-excerpt {
        font-size: 0.95rem;
    }
    
    .featured-extras {
        grid-template-columns: 1fr;
    }
    
    .newsletter-hero {
        padding: 32px 24px;
    }
    
    .newsletter-title {
        font-size: 1.5rem;
    }
    
    .newsletter-form-wide {
        flex-direction: column;
    }
    
    .sidebar {
        grid-template-columns: 1fr;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .direct-image-container {
        height: 300px;
    }
    
    .direct-content {
        padding: 24px;
    }
    
    .direct-title {
        font-size: 1.5rem;
    }
    
    .direct-excerpt {
        font-size: 1rem;
    }
    
    .conflict-grid {
        grid-template-columns: 1fr;
    }
    
    .conflict-card {
        flex-direction: column;
    }
    
    .conflict-image {
        width: 100%;
        height: 200px;
    }
    
    .deep-news-slider {
        height: 350px;
    }
    
    .deep-news-bottom {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-consent-buttons {
        flex-direction: column;
    }
    
    .floating-side-ad {
        display: none !important;
    }
    
    .popunder-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .header {
        padding: 16px 0;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .search-input {
        width: 150px;
        padding: 8px 12px;
    }
    
    .category-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .headline-banner {
        height: 300px;
    }
    
    .headline-banner-content {
        padding: 24px 16px;
    }
    
    .headline-banner-title {
        font-size: 1.25rem;
    }
    
    .headline-banner-excerpt {
        font-size: 0.85rem;
    }
    
    .newsletter-hero {
        padding: 24px 16px;
    }
    
    .newsletter-title {
        font-size: 1.25rem;
    }
    
    .newsletter-subtitle {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .direct-image-container {
        height: 240px;
    }
    
    .direct-content {
        padding: 20px;
    }
    
    .direct-title {
        font-size: 1.25rem;
    }
    
    .direct-excerpt {
        font-size: 0.9rem;
    }
    
    .deep-news-slider {
        height: 280px;
    }
    
    .deep-news-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* ===========================
   SCROLLBAR STYLING
   =========================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ===========================
   PRINT STYLES
   =========================== */
@media print {
    .header,
    .nav,
    .sidebar,
    .footer,
    .floating-side-ad,
    .cookie-consent,
    .popunder-notification,
    .ad-banner {
        display: none !important;
    }
    
    .main-content {
        grid-template-columns: 1fr;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* ===========================
   ENHANCED INTERACTIONS
   =========================== */
.article-card::after,
.direct-card::after,
.conflict-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.article-card {
    position: relative;
    overflow: hidden;
}

.article-card:hover::after {
    width: 100%;
}

.direct-card {
    position: relative;
}

/* ===========================
   SMOOTH SCROLL BEHAVIOR
   =========================== */
html {
    scroll-behavior: smooth;
}

/* ===========================
   FOCUS STYLES FOR ACCESSIBILITY
   =========================== */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===========================
   SELECTION STYLING
   =========================== */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* ===========================
   IMAGE LOADING PLACEHOLDER
   =========================== */
img {
    background: var(--bg-tertiary);
}

img:not([src]) {
    opacity: 0;
}

/* ===========================
   ANIMATED ENTRANCE
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card,
.direct-card,
.conflict-card,
.international-item {
    animation: fadeInUp 0.5s ease-out backwards;
}

.article-card:nth-child(1) { animation-delay: 0.1s; }
.article-card:nth-child(2) { animation-delay: 0.2s; }
.article-card:nth-child(3) { animation-delay: 0.3s; }
.article-card:nth-child(4) { animation-delay: 0.1s; }
.article-card:nth-child(5) { animation-delay: 0.2s; }
.article-card:nth-child(6) { animation-delay: 0.3s; }

/* ===========================
   SKELETON LOADING
   =========================== */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading-skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-tertiary) 0%,
        var(--bg-secondary) 50%,
        var(--bg-tertiary) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
    border-radius: 4px;
}

/* ===========================
   TYPOGRAPHY REFINEMENTS
   =========================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

p {
    margin-bottom: 1em;
}

a {
    color: inherit;
    text-decoration: none;
}

strong {
    font-weight: 600;
}

em {
    font-style: italic;
}

/* ===========================
   BADGE VARIATIONS
   =========================== */
.badge-breaking {
    background: var(--accent-red);
}

.badge-trending {
    background: #ff6b6b;
}

.badge-new {
    background: var(--accent-green);
}

.badge-featured {
    background: #ffd93d;
    color: var(--text-primary);
}

/* ===========================
   HOVER STATES ENHANCEMENT
   =========================== */
.trending-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.trending-item {
    position: relative;
}

.trending-item:hover::before {
    transform: scaleY(1);
}

/* ===========================
   DIRECT SECTION ENHANCEMENTS
   =========================== */
.direct-card:hover .direct-image {
    transform: scale(1.05);
    transition: transform 0.6s ease;
}

.direct-image {
    transition: transform 0.6s ease;
}

.direct-badge {
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(227, 43, 43, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(227, 43, 43, 0);
    }
}

/* ===========================
   CONFLICT SECTION ENHANCEMENTS
   =========================== */
.conflict-badge {
    animation: liveBlink 1.5s infinite;
}

@keyframes liveBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* ===========================
   NEWSLETTER ENHANCED
   =========================== */
.newsletter-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.newsletter-hero {
    position: relative;
    overflow: hidden;
}

/* ===========================
   STATS WIDGET ANIMATION
   =========================== */
.stat-number {
    animation: countUp 1s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===========================
   ALBUM SLIDER ENHANCEMENTS
   =========================== */
.album-slider::-webkit-scrollbar {
    height: 6px;
}

.album-slider::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.album-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%, rgba(0,0,0,0.6) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.album-item {
    position: relative;
}

.album-item:hover::after {
    opacity: 1;
}

/* ===========================
   INTERNATIONAL SLIDER ENHANCEMENT
   =========================== */
.international-slider::-webkit-scrollbar {
    height: 6px;
}

.international-slider::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

/* ===========================
   DEEP NEWS IMPROVEMENTS
   =========================== */
.deep-news-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    pointer-events: none;
}

/* ===========================
   FOOTER LINK UNDERLINE EFFECT
   =========================== */
.footer-links a {
    position: relative;
    display: inline-block;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

/* ===========================
   SEARCH INPUT ENHANCEMENTS
   =========================== */
.search-input:focus {
    outline: none;
    background: var(--bg-primary);
}

.search-input::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

/* ===========================
   CATEGORY BUTTON ACTIVE STATE
   =========================== */
.category-btn.active {
    box-shadow: 0 4px 12px rgba(50, 104, 145, 0.3);
}

/* ===========================
   LOAD MORE BUTTON ANIMATION
   =========================== */
.load-more-btn {
    position: relative;
    overflow: hidden;
}

.load-more-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.load-more-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* ===========================
   RESPONSIVE AD CONTAINER
   =========================== */
.ad-banner iframe,
.ad-banner ins {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ===========================
   FEATURED GRID RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
    .featured-extras {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .featured-extras {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===========================
   IMPROVED TOUCH TARGETS
   =========================== */
@media (max-width: 768px) {
    .category-btn,
    .cookie-btn,
    .poll-btn,
    .search-btn,
    .theme-toggle {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ===========================
   DARK MODE SPECIFIC ADJUSTMENTS
   =========================== */
[data-theme="dark"] .headline-banner-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 60%);
}

[data-theme="dark"] .direct-overlay {
    background: linear-gradient(to right, transparent 60%, rgba(0,0,0,0.3) 100%);
}

[data-theme="dark"] img {
    opacity: 0.95;
}

[data-theme="dark"] .newsletter-hero {
    background: linear-gradient(135deg, #1e4a6a, #153548);
}

/* ===========================
   PERFORMANCE OPTIMIZATIONS
   =========================== */
.article-card,
.direct-card,
.conflict-card,
.international-item,
.album-item {
    will-change: transform;
}

.deep-news-slide {
    will-change: opacity;
}

img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ===========================
   FINAL POLISH
   =========================== */
body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    -webkit-tap-highlight-color: transparent;
}

/* Remove animation on reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===========================
   DIRECT SECTION SPECIAL LAYOUT
   =========================== */
.direct-section #directArticles {
    display: block;
}

.direct-section .direct-card:not(:last-child) {
    margin-bottom: 32px;
}

/* Single article special treatment */
.direct-section .direct-card:only-child {
    box-shadow: var(--shadow-lg);
}

/* ===========================
   AD BANNER FLEXIBLE SIZING
   =========================== */
.sidebar-section.ad-banner {
    background: var(--bg-tertiary);
    border: 2px dashed var(--border-color);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 250px;
    max-height: 600px;
}

.sidebar-section.ad-banner > *,
.sidebar-section.ad-banner iframe,
.sidebar-section.ad-banner ins {
    max-width: 100%;
    max-height: 100%;
    width: auto !important;
    height: auto !important;
    margin: auto;
}

/* Ensure ad scripts are contained */
.sidebar-section.ad-banner script + * {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===========================
   FLOATING ADS POSITIONING
   =========================== */
.floating-side-ad {
    position: fixed;
    width: 160px;
    min-height: 600px;
    max-height: 600px;
    z-index: 90;
    background: var(--bg-tertiary);
    border: 1.5px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8px;
}

.floating-side-ad > *,
.floating-side-ad iframe,
.floating-side-ad ins {
    max-width: 100%;
    max-height: 100%;
    margin: auto;
}

/* Left floating ad */
#floatingSideAdLeft {
    bottom: 50px;
    left: 18px;
    right: auto;
}

/* Right floating ad */
#floatingSideAd {
    bottom: 50px;
    right: 18px;
    left: auto;
}

/* Hide on smaller screens */
@media (max-width: 1400px) {
    .floating-side-ad {
        display: none !important;
    }
}

/* ===========================
   RESPONSIVE AD CONTAINERS
   =========================== */
@media (max-width: 768px) {
    .sidebar-section.ad-banner {
        min-height: 200px;
        max-height: 400px;
    }
}

/* ===========================
   DIRECT CONTENT TYPOGRAPHY
   =========================== */
.direct-title {
    text-wrap: balance;
    hyphens: auto;
}

.direct-excerpt {
    text-wrap: pretty;
    hyphens: auto;
}

/* ===========================
   IMPROVED READABILITY
   =========================== */
.article-excerpt,
.featured-excerpt,
.direct-excerpt,
.deep-news-card-excerpt {
    text-wrap: pretty;
    orphans: 2;
    widows: 2;
}

.featured-title,
.article-title,
.direct-title,
.headline-banner-title {
    text-wrap: balance;
}

/* ===========================
   LOADING STATES
   =========================== */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 4px solid var(--bg-tertiary);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin-top: 20px;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===========================
   ARTICLE CARD VARIATIONS
   =========================== */
.articles-grid.single-article .article-card {
    max-width: 100%;
}

.articles-grid.single-article .article-card .article-image {
    height: 400px;
}

.articles-grid.single-article .article-card .article-content {
    padding: 32px;
}

.articles-grid.single-article .article-card .article-title {
    font-size: 2rem;
    margin: 16px 0;
}

.articles-grid.single-article .article-card .article-excerpt {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ===========================
   ENHANCED SECTION SEPARATORS
   =========================== */
.album-section,
.direct-section,
.conflict-section,
.international-section,
.deep-news-section {
    position: relative;
}

.album-section::before,
.conflict-section::before,
.international-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

/* ===========================
   BREAKING NEWS TICKER EFFECT
   =========================== */
.breaking-news {
    position: relative;
    overflow: hidden;
}

.breaking-item {
    position: relative;
    animation: none;
}

/* ===========================
   COOKIE CONSENT RESPONSIVE
   =========================== */
@media (max-width: 640px) {
    .cookie-consent {
        padding: 16px;
    }
    
    .cookie-consent-text {
        flex-direction: column;
        gap: 12px;
    }
    
    .cookie-icon {
        font-size: 1.5rem;
    }
    
    .cookie-consent-text p {
        font-size: 0.85rem;
    }
    
    .cookie-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* ===========================
   POPUNDER NOTIFICATION MOBILE
   =========================== */
@media (max-width: 480px) {
    .popunder-notification {
        bottom: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        padding: 12px 16px;
    }
    
    .popunder-title {
        font-size: 0.85rem;
    }
    
    .popunder-text {
        font-size: 0.75rem;
    }
}

/* ===========================
   SMOOTH HOVER TRANSITIONS
   =========================== */
.article-card,
.direct-card,
.conflict-card,
.international-item,
.album-item,
.trending-item,
.deep-related-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===========================
   HEADLINE BANNER RESPONSIVE TEXT
   =========================== */
@media (max-width: 640px) {
    .headline-banner-content {
        padding: 20px 16px;
    }
    
    .headline-banner-badge {
        padding: 4px 10px;
        font-size: 0.7rem;
        margin-bottom: 12px;
    }
    
    .headline-banner-title {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .headline-banner-excerpt {
        font-size: 0.8rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* ===========================
   DIRECT SECTION MOBILE OPTIMIZATION
   =========================== */
@media (max-width: 640px) {
    .direct-badge {
        padding: 4px 10px;
        font-size: 0.65rem;
        margin-bottom: 12px;
    }
    
    .direct-meta {
        font-size: 0.8rem;
    }
}

/* ===========================
   NEWSLETTER FORM MOBILE
   =========================== */
@media (max-width: 480px) {
    .newsletter-form-wide input {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .newsletter-form-wide button {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

/* ===========================
   STATS GRID MOBILE
   =========================== */
@media (max-width: 480px) {
    .stats-grid {
        gap: 12px;
    }
    
    .stat-box {
        padding: 12px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
}

/* ===========================
   IMPROVED TEXT CONTRAST
   =========================== */
[data-theme="dark"] .article-title,
[data-theme="dark"] .direct-title,
[data-theme="dark"] .featured-title,
[data-theme="dark"] .headline-banner-title {
    color: #f5f5f5;
}

[data-theme="dark"] .article-excerpt,
[data-theme="dark"] .direct-excerpt,
[data-theme="dark"] .featured-excerpt {
    color: #c0c0c0;
}

/* ===========================
   BROWSER COMPATIBILITY
   =========================== */
/* Safari specific fixes */
@supports (-webkit-backdrop-filter: blur(1px)) {
    .header {
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        background: rgba(255, 255, 255, 0.95);
    }
    
    [data-theme="dark"] .header {
        background: rgba(26, 26, 26, 0.95);
    }
}

/* Firefox specific fixes */
@-moz-document url-prefix() {
    .article-card,
    .direct-card {
        transform: translateZ(0);
    }
}

/* ===========================
   FINAL OPTIMIZATIONS
   =========================== */
/* Prevent layout shift */
.article-image,
.featured-image,
.direct-image,
.conflict-image,
.international-image,
.album-image {
    display: block;
    width: 100%;
    object-fit: cover;
}

/* Smooth font rendering */
body {
    font-feature-settings: "kern" 1, "liga" 1;
    font-kerning: normal;
    font-variant-ligatures: common-ligatures;
}

/* Optimize animations */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Better link states */
a:active {
    opacity: 0.8;
}

/* Prevent text overflow */
.article-title,
.direct-title,
.featured-title,
.conflict-title,
.international-title,
.deep-related-title {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

/* ===========================
   CSS COMPLETE ✨
   =========================== */news-section {
    padding: 64px 0;
    background: var(--bg-secondary);
}

.deep-news-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    margin-top: 32px;
}

.deep-news-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    cursor: pointer;
}

.deep-news-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.deep-news-slide.active {
    opacity: 1;
}

.deep-news-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deep-news-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.deep-news-nav {
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.deep-news-nav:hover {
    background: rgba(0,0,0,0.8);
}

.deep-news-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.deep-news-dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.deep-news-dot.active {
    background: white;
    width: 30px;
    border-radius: 5px;
}

.deep-news-dot.active {
    background: white;
    width: 30px;
    border-radius: 5px;
}

.deep-news-related {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 24px;
    height: fit-content;
}

.deep-news-related-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.deep-related-item {
    padding: 16px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
}

.deep-related-item:last-child {
    border-bottom: none;
}

.deep-related-item:hover,
.deep-related-item.active {
    background: var(--bg-tertiary);
    margin: 0 -12px 12px;
    padding: 16px 12px;
}

.deep-related-item.active {
    border-left: 4px solid var(--primary-color);
}

.deep-related-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.deep-related-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.deep-news-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.deep-news-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s;
}

.deep-news-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.deep-news-card-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 2px;
    margin-bottom: 12px;
}

.deep-news-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.deep-news-card-excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.deep-news-card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 64px 0 32px;
    margin-top: 64px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h3.footer-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 16px;
}

.footer-section h4.footer-subtitle {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.social-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-tagline {
    margin-top: 8px;
    font-weight: 600;
}

/* ===========================
   DIRECT SECTION - VERTICAL STACK MOBILE
   =========================== */
@media (max-width: 640px) {
    .direct-card {
        grid-template-columns: 1fr;
    }
    
    .direct-image-container {
        height: 250px;
        order: 1;
    }
    
    .direct-content {
        order: 2;
        padding: 20px;
    }
    
    .direct-title {
        font-size: 1.15rem;
    }
    
    .direct-excerpt {
        font-size: 0.9rem;
    }
}

/* ===========================
   AD SCRIPT WRAPPER FIX
   =========================== */
.sidebar-section.ad-banner > div,
.floating-side-ad > div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure Google AdSense compatibility */
.sidebar-section.ad-banner ins.adsbygoogle,
.floating-side-ad ins.adsbygoogle {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* ===========================
   CONFLICT CARD IMAGE FIX
   =========================== */
@media (max-width: 640px) {
    .conflict-card {
        flex-direction: row;
    }
    
    .conflict-image-container {
        flex-shrink: 0;
    }
    
    .conflict-image {
        width: 100px;
        height: 75px;
    }
}

/* ===========================
   DEEP NEWS MOBILE CONTROLS
   =========================== */
@media (max-width: 640px) {
    .deep-news-slider {
        height: 250px;
    }
    
    .deep-news-nav {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .deep-news-controls {
        bottom: 12px;
        right: 12px;
        gap: 8px;
    }
    
    .deep-news-dots {
        bottom: 12px;
    }
}

/* ===========================
   INTERNATIONAL SLIDER TOUCH
   =========================== */
.international-slider,
.album-slider {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.international-item,
.album-item {
    scroll-snap-align: start;
}

/* ===========================
   FEATURED GRID GAP MOBILE
   =========================== */
@media (max-width: 640px) {
    .featured-grid {
        gap: 16px;
    }
    
    .featured-image {
        height: 200px;
    }
    
    .featured-content {
        padding: 16px;
    }
    
    .featured-title {
        font-size: 1.1rem;
    }
}

/* ===========================
   WEATHER WIDGET MOBILE
   =========================== */
@media (max-width: 480px) {
    .weather-info {
        gap: 12px;
    }
    
    .weather-icon {
        font-size: 2rem;
    }
    
    .weather-temp {
        font-size: 1.5rem;
    }
}

/* ===========================
   MINI POLL MOBILE
   =========================== */
@media (max-width: 480px) {
    .mini-poll p {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    #pollButtons {
        flex-direction: column;
        gap: 8px;
    }
    
    .poll-btn {
        width: 100%;
    }
}

/* ===========================
   TRENDING SIDEBAR MOBILE
   =========================== */
@media (max-width: 480px) {
    .trending-image {
        width: 70px;
        height: 52px;
    }
    
    .trending-title {
        font-size: 0.85rem;
    }
    
    .trending-meta {
        font-size: 0.7rem;
    }
}

/* ===========================
   ALBUM CAPTION MOBILE
   =========================== */
@media (max-width: 480px) {
    .album-item {
        flex: 0 0 240px;
    }
    
    .album-image {
        height: 150px;
    }
    
    .album-caption {
        padding: 10px;
        font-size: 0.85rem;
    }
}

/* ===========================
   SECTION TITLE MOBILE
   =========================== */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.15rem;
        padding-bottom: 12px;
        border-bottom-width: 2px;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
}

/* ===========================
   FOOTER MOBILE REFINEMENT
   =========================== */
@media (max-width: 480px) {
    .footer {
        padding: 48px 0 24px;
    }
    
    .footer-content {
        gap: 24px;
        margin-bottom: 32px;
    }
    
    .footer-section h3.footer-title {
        font-size: 1.25rem;
    }
    
    .footer-section h4.footer-subtitle {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    .footer-description {
        font-size: 0.85rem;
    }
    
    .footer-social {
        gap: 10px;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .footer-bottom {
        padding-top: 24px;
        font-size: 0.8rem;
    }
}

/* ===========================
   VIDEO CONTAINER ASPECT RATIO
   =========================== */
.video-container iframe,
.video-container video {
    border: none;
}

/* ===========================
   ARTICLE META RESPONSIVE
   =========================== */
@media (max-width: 480px) {
    .article-meta {
        font-size: 0.8rem;
        gap: 8px;
    }
}

/* ===========================
   CATEGORY BADGE RESPONSIVE
   =========================== */
@media (max-width: 480px) {
    .article-category,
    .international-badge,
    .deep-news-card-badge {
        font-size: 0.65rem;
        padding: 3px 10px;
    }
}

/* ===========================
   NO RESULTS MESSAGE
   =========================== */
.no-results,
.no-direct,
.no-international,
.no-conflict {
    padding: 48px 20px;
}

@media (max-width: 480px) {
    .no-results,
    .no-direct,
    .no-international,
    .no-conflict {
        padding: 32px 16px;
    }
    
    .no-results h3,
    .no-direct h3,
    .no-international h3,
    .no-conflict h3 {
        font-size: 1.15rem;
        margin-bottom: 8px;
    }
    
    .no-results p,
    .no-direct p,
    .no-international p,
    .no-conflict p {
        font-size: 0.85rem;
    }
}

/* ===========================
   LIVE INDICATOR MOBILE
   =========================== */
@media (max-width: 640px) {
    .live-indicator {
        font-size: 0.75rem;
    }
    
    .live-dot {
        width: 6px;
        height: 6px;
    }
}

/* ===========================
   HEADER STICKY ADJUSTMENT
   =========================== */
@media (max-width: 768px) {
    .header {
        position: sticky;
        top: 0;
    }
    
    .nav {
        position: sticky;
        top: 70px;
    }
}

/* ===========================
   Z-INDEX MANAGEMENT
   =========================== */
.header { z-index: 100; }
.nav { z-index: 99; }
.floating-side-ad { z-index: 90; }
.cookie-consent { z-index: 1000; }
.popunder-notification { z-index: 1000; }

/* ===========================
   ENSURE VISIBILITY
   =========================== */
.hidden {
    display: none !important;
    visibility: hidden !important;
}

/* ===========================
   FINAL MOBILE POLISH
   =========================== */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .search-input {
        width: 120px;
        font-size: 0.85rem;
    }
}


/* Mobile categories scroll */
@media (max-width: 768px) {
    .nav-content {
        flex-direction: row;
        gap: 12px;
        padding: 8px 0;
    }
    
    .categories {
        gap: 6px;
        padding: 4px 0;
        margin-right: 12px;
    }
    
    .category-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
    
    .live-indicator {
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .categories {
        gap: 4px;
    }
    
    .category-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

/* Scroll hint for categories */
.categories::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, transparent, var(--bg-secondary));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

@media (max-width: 768px) {
    .nav {
        position: relative;
    }
    
    .nav::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 30px;
        background: linear-gradient(to right, transparent, var(--bg-secondary));
        pointer-events: none;
    }
}

/* ===========================
   DEEP NEWS (PRAYERS) - RESPONSIVE
   =========================== */
.deep-news-section {
    padding: 64px 0;
    background: var(--bg-secondary);
}

.deep-news-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    margin-top: 32px;
}

/* Tablet */
@media (max-width: 1024px) {
    .deep-news-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .deep-news-slider {
        height: 450px;
    }
    
    .deep-news-related {
        max-width: 100%;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .deep-news-section {
        padding: 48px 0;
    }
    
    .deep-news-slider {
        height: 350px;
    }
    
    .deep-news-related {
        padding: 20px;
    }
    
    .deep-news-related-title {
        font-size: 1rem;
        margin-bottom: 16px;
    }
    
    .deep-related-item {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .deep-related-title {
        font-size: 0.9rem;
    }
    
    .deep-related-meta {
        font-size: 0.7rem;
    }
    
    .deep-news-bottom {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 24px;
    }
}

@media (max-width: 640px) {
    .deep-news-slider {
        height: 280px;
    }
    
    .deep-news-controls {
        bottom: 12px;
        right: 12px;
        gap: 8px;
    }
    
    .deep-news-nav {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .deep-news-dots {
        bottom: 12px;
        gap: 6px;
    }
    
    .deep-news-dot {
        width: 8px;
        height: 8px;
    }
    
    .deep-news-dot.active {
        width: 24px;
    }
    
    .deep-news-related {
        padding: 16px;
    }
    
    .deep-news-bottom {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .deep-news-card {
        padding: 20px;
    }
    
    .deep-news-card-title {
        font-size: 1rem;
    }
    
    .deep-news-card-excerpt {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .deep-news-section {
        padding: 40px 0;
    }
    
    .deep-news-slider {
        height: 240px;
        border-radius: 0;
    }
    
    .deep-news-controls {
        bottom: 10px;
        right: 10px;
        gap: 6px;
    }
    
    .deep-news-nav {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .deep-news-dots {
        bottom: 10px;
    }
    
    .deep-related-item {
        padding: 10px;
        margin: 0 0 8px 0;
    }
    
    .deep-related-item:hover,
    .deep-related-item.active {
        margin: 0 -8px 8px;
        padding: 10px 8px;
    }
    
    .deep-news-card {
        padding: 16px;
    }
    
    .deep-news-card-badge {
        font-size: 0.65rem;
        padding: 3px 8px;
        margin-bottom: 10px;
    }
    
    .deep-news-card-title {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    
    .deep-news-card-excerpt {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
    
    .deep-news-card-meta {
        font-size: 0.75rem;
    }
}

/* Deep News Slider - Better mobile touch */
.deep-news-slider {
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y pinch-zoom;
}

.deep-news-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.deep-news-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.deep-news-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Deep News Related - Better scrolling on mobile */
@media (max-width: 768px) {
    .deep-news-related {
        max-height: 400px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .deep-news-related::-webkit-scrollbar {
        width: 4px;
    }
    
    .deep-news-related::-webkit-scrollbar-thumb {
        background: var(--border-color);
        border-radius: 2px;
    }
}

/* ===========================
   SIDEBAR CATEGORIES - RESPONSIVE
   =========================== */
.sidebar-section .category-btn {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    padding: 10px 16px;
}

@media (max-width: 1024px) {
    .sidebar-section .category-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}

/* ===========================
   ENSURE HORIZONTAL SCROLL WORKS
   =========================== */
.categories,
.album-slider,
.international-slider {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories::-webkit-scrollbar,
.album-slider::-webkit-scrollbar,
.international-slider::-webkit-scrollbar {
    display: none;
}

/* Add subtle scroll indicator */
@media (hover: none) and (pointer: coarse) {
    .categories,
    .album-slider,
    .international-slider {
        scrollbar-width: thin;
        scrollbar-color: var(--border-color) transparent;
    }
    
    .categories::-webkit-scrollbar,
    .album-slider::-webkit-scrollbar,
    .international-slider::-webkit-scrollbar {
        display: block;
        height: 3px;
    }
    
    .categories::-webkit-scrollbar-thumb,
    .album-slider::-webkit-scrollbar-thumb,
    .international-slider::-webkit-scrollbar-thumb {
        background: var(--border-color);
        border-radius: 2px;
    }
}

/* ===========================
   PRAYERS SECTION TITLE RESPONSIVE
   =========================== */
@media (max-width: 768px) {
    .deep-news-section .section-title {
        font-size: 1.75rem;
    }
    
    .deep-news-section .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }
}

@media (max-width: 480px) {
    .deep-news-section .section-title {
        font-size: 1.4rem;
    }
    
    .deep-news-section .section-subtitle {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
}

/* Tablet - 768px */
@media (max-width: 768px) {
    .footer {
        padding: 48px 0 24px;
        margin-top: 48px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
        margin-bottom: 32px;
    }
    
    .footer-section:first-child {
        grid-column: 1 / -1;
    }
    
    .footer-section h3.footer-title {
        font-size: 1.35rem;
        margin-bottom: 14px;
    }
    
    .footer-section h4.footer-subtitle {
        font-size: 0.95rem;
        margin-bottom: 14px;
    }
    
    .footer-description {
        font-size: 0.88rem;
        margin-bottom: 18px;
    }
    
    .footer-links a {
        font-size: 0.88rem;
    }
    
    .footer-bottom {
        padding-top: 28px;
        font-size: 0.8rem;
    }
}

/* Mobile - 640px */
@media (max-width: 640px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 28px;
    }
    
    .footer-section:first-child {
        grid-column: 1;
        text-align: center;
    }
    
    .footer-section h3.footer-title {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }
    
    .footer-section h4.footer-subtitle {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    .footer-description {
        font-size: 0.85rem;
        margin-bottom: 16px;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-social {
        justify-content: center;
        gap: 10px;
    }
    
    .social-link {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-links li {
        margin-bottom: 8px;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
    
    .footer-bottom {
        padding-top: 24px;
        font-size: 0.78rem;
    }
    
    .footer-tagline {
        margin-top: 6px;
    }
}

/* Mobile - 480px */
@media (max-width: 480px) {
    .footer {
        padding: 32px 0 16px;
    }
    
    .footer-content {
        gap: 24px;
        margin-bottom: 24px;
    }
    
    .footer-section h3.footer-title {
        font-size: 1.15rem;
        margin-bottom: 10px;
    }
    
    .footer-section h4.footer-subtitle {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }
    
    .footer-description {
        font-size: 0.8rem;
        line-height: 1.5;
        margin-bottom: 14px;
    }
    
    .footer-social {
        gap: 8px;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .footer-links li {
        margin-bottom: 6px;
    }
    
    .footer-links a {
        font-size: 0.8rem;
        padding: 4px 0;
    }
    
    .footer-bottom {
        padding-top: 20px;
        font-size: 0.75rem;
        line-height: 1.5;
    }
    
    .footer-bottom p {
        margin-bottom: 6px;
    }
    
    .footer-tagline {
        margin-top: 4px;
        font-size: 0.75rem;
    }
}

/* Very Small Mobile - 360px */
@media (max-width: 360px) {
    .footer {
        padding: 28px 0 14px;
    }
    
    .footer-content {
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .footer-section h3.footer-title {
        font-size: 1.05rem;
    }
    
    .footer-section h4.footer-subtitle {
        font-size: 0.8rem;
    }
    
    .footer-description {
        font-size: 0.75rem;
    }
    
    .footer-links a {
        font-size: 0.75rem;
    }
    
    .social-link {
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
    }
    
    .footer-bottom {
        padding-top: 18px;
        font-size: 0.7rem;
    }
}

/* Footer link hover effect - responsive */
.footer-links a {
    position: relative;
    display: inline-block;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

/* Center align on mobile for better readability */
@media (max-width: 640px) {
    .footer-links a::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Dark mode footer adjustments */
[data-theme="dark"] .footer {
    background: var(--bg-secondary);
    border-top-color: var(--border-color);
}

[data-theme="dark"] .social-link {
    background: var(--bg-primary);
}

[data-theme="dark"] .social-link:hover {
    background: var(--primary-color);
}

/* Print styles for footer */
@media print {
    .footer {
        padding: 32px 0 16px;
        page-break-inside: avoid;
    }
    
    .footer-social {
        display: none;
    }
    
    .footer-bottom {
        border-top: 1px solid #ccc;
    }
}