/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: clip !important; /* Sidebar Sticky Support */
    width: 100% !important;
    max-width: 100vw !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== TOP NAVIGATION BAR ===== */
.top-nav {
    background-color: #f1f1f1;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.85rem;
}

.top-nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.top-nav-links a {
    color: #555;
    transition: color 0.3s;
}

.top-nav-links a:hover {
    color: #0066cc;
}

/* ===== MAIN HEADER ===== */
.main-header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

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

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    font-weight: 500;
    color: #444;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: #0066cc;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0066cc;
}

.main-nav .fa-search {
    font-size: 1.1rem;
    color: #666;
}

/* ===== PAGE TITLE ===== */
.page-title {
    background-color: #f5f5f5;
    padding: 20px 0;
    margin-bottom: 30px;
}

.page-title h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
}

/* ===== NEWS ARTICLES GRID (CLS FIXED) ===== */
.news-articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    min-height: 800px;
}

.news-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 🔴 IMAGE & TRENDING BADGE FIXED (Discover Size 16:9) 🔴 */
.article-image {
    width: 100%;
    /* 🔴 Google Discover 16:9 Ratio 🔴 */
    aspect-ratio: 16 / 9 !important; 
    overflow: hidden;
    background-color: #f0f0f0;
    position: relative;
}

.article-image img {
    width: 100%;
    height: 100%;
    /* 🔴 Image fit karne ka behtareen tareeqa 🔴 */
    object-fit: cover !important;
    object-position: center;
}

.trending-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.news-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-category {
    display: inline-block;
    background-color: #e8f4ff;
    color: #0066cc;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
    align-self: flex-start;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #222;
}

.news-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #666;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
    margin-top: auto;
    flex-wrap: wrap;
}

.author {
    font-weight: 500;
    color: #333;
}

.separator {
    color: #ccc;
}

.date {
    color: #555; /* Contrast Fix */
}

/* ===== FOOTER ===== */
.footer {
    background-color: #f1f1f1;
    border-top: 1px solid #e0e0e0;
    padding: 30px 0 20px;
    margin-top: 40px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.footer-links a {
    color: #555;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #0066cc;
}

.copyright {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* ===== ARTICLE PAGE STYLES ===== */
.article-featured-image {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
}

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

/* 🔴 SIDEBAR STRETCH FIX ADDED HERE 🔴 */
.content-wrapper {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    align-items: stretch; /* Ye dono columns ki height barabar karega */
}

.article-content {
    flex: 1;
    min-width: 0;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.breadcrumb {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #0066cc;
}

.breadcrumb span {
    color: #333;
    font-weight: 500;
}

.main-article {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 40px;
}

.article-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #222;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

/* 🔴 Author Header & Size Fix 🔴 */
.author-info-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-header-img, .card-author-img, .mini-avatar, .author-bio img {
    width: 45px !important;
    height: 45px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid #eaeaea;
}

.author-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.author-name-text {
    font-weight: 600;
    color: #222;
    font-size: 1rem;
}

.by-text {
    font-size: 0.8rem;
    color: #666;
}

.publish-date {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
}

.social-share {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.follow-text {
    font-weight: 600;
    color: #333;
}

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

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #555;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: #0066cc;
    color: white;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-body h2 {
    font-size: 1.6rem;
    color: #111;
    margin: 35px 0 15px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 8px;
}

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

.article-body strong {
    color: #000;
    font-weight: 600;
    background: linear-gradient(120deg, #e8f4ff 0%, #e8f4ff 100%);
    background-repeat: no-repeat;
    background-size: 100% 40%;
    background-position: 0 80%;
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 0.95rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 0 1px #eee;
}

.article-table th,
.article-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.article-table thead tr {
    background-color: #f8f9fa;
    color: #111;
    font-weight: 600;
}

.article-table tbody tr:hover {
    background-color: #fcfcfc;
}

.also-read {
    background: linear-gradient(to right, #ffffff, #f8fcfd);
    border: 1px solid #e1f0f9;
    padding: 20px;
    margin: 35px 0;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.also-read::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: #0066cc;
}

.also-read h3 {
    margin: 0 0 8px 0;
    font-size: 0.85rem;
    color: #0066cc;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.also-read a {
    font-size: 1.15rem;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    line-height: 1.4;
    display: block;
}

.also-read a:hover {
    color: #0066cc;
    text-decoration: underline;
}

.author-bio {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-top: 40px;
    border-left: 4px solid #0066cc;
}

.author-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.author-header h3 {
    font-size: 1.3rem;
    color: #222;
}

.verified {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #1da1f2;
    font-weight: 500;
    font-size: 0.9rem;
}

/* 🔴 Sidebar Stretch Fix 🔴 */
.sidebar {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100%;
}

/* 🔴🔴 YAHAN BACKGROUND WHITE AUR BORDER LIGHT KIYA GAYA HAI 🔴🔴 */
.sidebar-widget {
    background-color: #fff; 
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    color: #333; 
    border: 1px solid #eaeaea; 
    flex: 1; /* Ye box ko bilkul end tak kheench dega */
}

.sidebar-widget h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee; 
    color: #222;
}

.latest-articles {
    max-height: none; /* Limit hata di */
     overflow-y: visible; 
    padding-right: 10px;
}

.latest-articles::-webkit-scrollbar {
    width: 6px;
}

.latest-articles::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 3px;
}

.latest-item {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.latest-item:last-child {
    border-bottom: none;
}

.latest-item a {
    display: block;
    font-weight: 500;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.4;
}

.latest-item a:hover {
    color: #f5f5f5;
    text-decoration: underline;
}

.latest-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ===== NOTIFICATION BELL & SHARE BUTTONS ===== */
.notification-bell {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background-color: #524c43;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: bellPulse 2s infinite;
}

.notification-bell:hover {
    transform: scale(1.1);
}

.notification-bell .badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 15px;
    height: 15px;
    background-color: red;
    border-radius: 50%;
    border: 2px solid #524c43;
}

.sub-toast {
    position: fixed;
    bottom: 90px;
    left: 20px;
    background: #333;
    color: #fff;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 0.9rem;
    display: none;
    z-index: 1001;
    animation: slideInLeft 0.5s;
}

@keyframes bellPulse {
    0% { box-shadow: 0 0 0 0 rgba(82, 76, 67, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(82, 76, 67, 0); }
    100% { box-shadow: 0 0 0 0 rgba(82, 76, 67, 0); }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    transition: transform 0.2s;
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-3px);
    color: white;
}

.btn-fb { background: #1877F2; }
.btn-tw { background: #1DA1F2; }
.btn-in { background: #E1306C; }
.btn-wa { background: #25D366; }
.btn-tg { background: #0088cc; }
.btn-copy { background: #555; cursor: pointer; position: relative; }

.footer-socials {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* ===== COMMENT SECTION ===== */
.comments-section {
    padding: 30px 0;
    border-top: 2px solid #f0f0f0;
    margin-top: 40px;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #222;
    font-weight: 600;
}

.comment-note {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 25px;
}

.comment-form .form-group {
    margin-bottom: 20px;
}

.comment-form textarea {
    width: 100%;
    height: 120px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    resize: vertical;
    font-family: inherit;
}

.comment-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.comment-form input[type="text"],
.comment-form input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.submit-btn {
    background-color: #0066cc;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.comments-list {
    margin-top: 30px;
}

/* =========================================
   UPDATED VIP FEATURES: FULL TICKER & UTILITY BAR
   ========================================= */
.top-ticker-bar {
    background-color: #111;
    color: #fff;
    font-size: 0.85rem;
    border-bottom: 2px solid #e1306c;
    position: relative;
    z-index: 100;
    padding: 6px 0;
}

.ticker-container {
    display: flex;
    align-items: center;
}

.ticker-label {
    background: #e1306c;
    color: #fff;
    padding: 3px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 3px;
    margin-right: 15px;
    flex-shrink: 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
    z-index: 2;
    position: relative;
}

.ticker-content-wrapper {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.ticker-content {
    display: inline-block;
    animation: ticker 25s linear infinite;
    padding-left: 100%;
}

.ticker-content:hover {
    animation-play-state: paused;
}

.ticker-content a {
    color: #fff;
    text-decoration: none;
    margin-right: 50px;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.ticker-content a:hover {
    color: #ffcc00;
    text-decoration: underline;
}

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

.utility-bar {
    background-color: #fff;
    border-bottom: 1px solid #eaeaea;
    padding: 10px 0;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

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

.date-display {
    color: #666;
    font-weight: 600;
    font-size: 0.9rem;
}

.top-links {
    display: flex;
    gap: 20px;
}

.top-links a {
    color: #555;
    font-weight: 500;
    font-size: 0.9rem;
    transition: 0.3s;
}

.top-links a:hover {
    color: #0066cc;
}

.top-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.top-actions button {
    background: #f4f4f4;
    border: 1px solid #ddd;
    color: #333;
    height: 32px;
    padding: 0 12px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: 0.3s;
}

.top-actions button:hover {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

#dark-mode-toggle {
    padding: 0;
    width: 32px;
    justify-content: center;
}

/* =========================================
   FIXES: PROGRESS BAR, SCROLL TO TOP
   ========================================= */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 99999;
}

.reading-progress-bar {
    height: 100%;
    background: #e1306c;
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 5px #e1306c;
}

#scroll-to-top {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #0066cc, #004c99);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 1000;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
}

#scroll-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

#scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* 🔴 SEARCH SUGGESTION WIDTH FIX 🔴 */
.search-modal { width: 95% !important; max-width: 600px !important; margin: 0 auto; }
.search-result-item { display: flex !important; align-items: center !important; gap: 12px !important; padding: 12px !important; width: 100% !important; box-sizing: border-box !important; border-bottom: 1px solid #eee; }
.search-result-info { flex: 1 !important; min-width: 0 !important; }
.search-result-info h4 { margin: 0; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #222; }

/* =========================================
   DARK MODE OVERRIDES (100% FIXED FOR ALL PAGES)
   ========================================= */
[data-theme="dark"] body {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
}

[data-theme="dark"] .main-header,
[data-theme="dark"] .footer,
[data-theme="dark"] .utility-bar {
    background-color: #1a1a1a !important;
    border-color: #333 !important;
}

[data-theme="dark"] .logo h1 {
    color: #fff !important;
}

[data-theme="dark"] .main-nav a,
[data-theme="dark"] .top-links a,
[data-theme="dark"] .date-display {
    color: #ccc !important;
}

[data-theme="dark"] .article-content,
[data-theme="dark"] .news-card,
[data-theme="dark"] .sidebar-widget,
[data-theme="dark"] .legal-content,
[data-theme="dark"] .contact-wrapper,
[data-theme="dark"] .comments-section,
[data-theme="dark"] .search-modal,
[data-theme="dark"] .notify-popup,
[data-theme="dark"] .about-hero,
[data-theme="dark"] .about-content-section,
[data-theme="dark"] .feature-box {
    background-color: #1e1e1e !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
    border: 1px solid #333 !important;
    background-image: none !important;
}

[data-theme="dark"] .main-article {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] .news-title,
[data-theme="dark"] .section-title,
[data-theme="dark"] .search-result-info h4 {
    color: #fff !important;
}

[data-theme="dark"] .article-body h2 {
    border-bottom-color: #333 !important;
}

[data-theme="dark"] .article-body p,
[data-theme="dark"] .article-body,
[data-theme="dark"] .comment-note,
[data-theme="dark"] .about-hero p,
[data-theme="dark"] .about-content-section p,
[data-theme="dark"] .feature-box p {
    color: #bbb !important;
}

[data-theme="dark"] .article-body strong {
    color: #fff !important;
    background: none !important;
}

[data-theme="dark"] .news-title:hover,
[data-theme="dark"] .main-nav a:hover,
[data-theme="dark"] .main-nav a.active,
[data-theme="dark"] .top-links a:hover {
    color: #1da1f2 !important;
}

[data-theme="dark"] p,
[data-theme="dark"] .breadcrumb,
[data-theme="dark"] .date,
[data-theme="dark"] .by-text {
    color: #bbb !important;
}

[data-theme="dark"] .breadcrumb span {
    color: #ddd !important;
}

[data-theme="dark"] .author-bio,
[data-theme="dark"] .also-read {
    background: #2a2a2a !important;
    border-color: #444 !important;
}

[data-theme="dark"] .article-table th {
    background-color: #333 !important;
    color: #fff !important;
    border-color: #444 !important;
}

[data-theme="dark"] .article-table td {
    border-bottom: 1px solid #444 !important;
    color: #ddd !important;
}

[data-theme="dark"] .article-table tbody tr:hover {
    background-color: #2a2a2a !important;
}

[data-theme="dark"] input,
[data-theme="dark"] textarea {
    background-color: #2a2a2a !important;
    color: #fff !important;
    border-color: #555 !important;
}

[data-theme="dark"] .top-actions button {
    background: #2a2a2a;
    border-color: #444;
    color: #ccc;
}

[data-theme="dark"] .top-actions button:hover {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

[data-theme="dark"] .page-title {
    background-color: #1a1a1a !important;
    border-bottom: 1px solid #333 !important;
}

[data-theme="dark"] .page-title h2 {
    color: #fff !important;
}

[data-theme="dark"] .also-read a {
    color: #fff !important;
    transition: 0.3s;
}

[data-theme="dark"] .also-read a:hover {
    color: #1da1f2 !important;
}

[data-theme="dark"] .also-read h3 {
    color: #1da1f2 !important;
}

[data-theme="dark"] .author-name-text {
    color: #fff !important;
}

[data-theme="dark"] .author-header-img {
    border-color: #444 !important;
}

[data-theme="dark"] .news-excerpt {
    color: #aaa !important;
}

[data-theme="dark"] ul, 
[data-theme="dark"] li, 
[data-theme="dark"] .legal-content, 
[data-theme="dark"] .legal-content ul, 
[data-theme="dark"] .legal-content li,
[data-theme="dark"] .contact-info-box p,
[data-theme="dark"] .contact-info-box h3,
[data-theme="dark"] .toc-box li,
[data-theme="dark"] .toc-box a {
    color: #bbb !important;
}

[data-theme="dark"] .legal-content a {
    color: #1da1f2 !important;
}

[data-theme="dark"] .toc-box a:hover {
    color: #fff !important;
}

/* =========================================
   🌍 ULTIMATE UNIVERSAL RESPONSIVE FIXES 🌍
   ========================================= */

/* 1. Global Overflow & Width Fix (100% Lock for all devices) */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
}

/* 2. Universal Text Wrapping */
* {
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
}

/* 3. Bulletproof Image Handling */
img, video, iframe {
    max-width: 100% !important;
    height: auto !important;
}

.article-body img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    margin: 15px 0;
    object-fit: cover !important;
}

/* 4. Scrollable Tables for Mobile */
.article-table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    white-space: nowrap !important;
}

/* 5. Mobile & Tablet Specific Layout Fixes */
@media (max-width: 992px) {
    .content-wrapper { flex-direction: column !important; }
    .sidebar { width: 100% !important; position: static !important; }
    .news-articles { grid-template-columns: repeat(2, 1fr); }
    .floating-share { display: none !important; }
}

@media (max-width: 768px) {
    /* Fix padding to maximize mobile screen space */
    .article-content {
        padding: 20px 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .main-article {
        margin-bottom: 20px !important;
    }
    
    /* Navbar & Header Center Fix */
    .header-content {
        flex-direction: column !important;
        gap: 15px !important;
        text-align: center !important;
    }
    .main-nav ul {
        justify-content: center !important;
        gap: 15px !important;
        flex-wrap: wrap !important;
    }

    /* "You May Also Like" Grid Fix (Force 1 Column) */
    .related-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    /* Utility Bar Mobile Fix */
    .utility-bar-inner {
        flex-direction: column;
        gap: 15px;
    }
    .top-links {
        display: none;
    }
    .utility-right,
    .utility-left {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .ticker-label {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    .ticker-content a {
        font-size: 0.85rem;
    }

    /* 🔴 GALAXY Z FOLD / MOBILE CARD CUTTING FIX 🔴 */
    .container {
        width: 100% !important;
        padding: 0 15px !important; 
        box-sizing: border-box !important;
    }

    .news-articles, .related-grid {
        display: block !important; 
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .news-card {
        width: 100% !important; 
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 25px !important; 
        display: flex !important;
        flex-direction: column !important;
        box-sizing: border-box !important;
    }

    .article-image, .news-content {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .article-header h1 {
        font-size: 1.6rem !important;
        line-height: 1.4 !important;
    }
    .article-meta,
    .social-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 350px) {
    .container {
        padding: 0 10px !important; 
    }
    .news-card {
        border-radius: 6px !important;
    }
    .news-title {
        font-size: 1rem !important; 
    }
    .logo h1 { font-size: 1.4rem !important; }
}

/* =========================================
   NOTIFICATION POPUP CENTER FIX
   ========================================= */
.notify-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.notify-popup {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 380px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: popupSlideIn 0.4s ease-out;
}

@keyframes popupSlideIn {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

[data-theme="dark"] .notify-popup {
    background-color: #1e1e1e !important;
    border: 1px solid #333;
}

/* =========================================
   🔴 TOC, KEY TAKEAWAYS & LINKS DARK MODE FIX 🔴
   ========================================= */

/* Main Box ka background aur border black/grey karna */
[data-theme="dark"] .toc-box,
[data-theme="dark"] .key-takeaways,
[data-theme="dark"] .related-internal-links {
    background-color: #1e1e1e !important;
    border-color: #333 !important;
    color: #ddd !important;
}

/* Headings ka color change karke light blue karna */
[data-theme="dark"] .toc-box h2,
[data-theme="dark"] .key-takeaways h3,
[data-theme="dark"] .related-internal-links h4,
[data-theme="dark"] .related-internal-links h3 {
    color: #4da6ff !important;
}

/* Links aur list items ka color theek karna */
[data-theme="dark"] .toc-box a,
[data-theme="dark"] .key-takeaways li,
[data-theme="dark"] .related-internal-links a {
    color: #bbb !important;
}

/* Hover effect light blue karna */
[data-theme="dark"] .toc-box a:hover,
[data-theme="dark"] .related-internal-links a:hover {
    color: #4da6ff !important;
}