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

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base for rem calculations */
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 1rem;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* ===== TOP TICKER BAR ===== */
.top-ticker-bar {
    background-color: #111;
    color: #fff;
    font-size: 0.85rem;
    border-bottom: 2px solid #2c3e9c;
    position: relative;
    z-index: 100;
    padding: 6px 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

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

.ticker-label {
    background: #2c3e9c;
    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%;
    will-change: transform;
}

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

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

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

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

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

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

.logo h1 {
    font-size: clamp(1.5rem, 5vw, 1.8rem);
    font-weight: 700;
    color: #1a1a1a;
    transition: color 0.3s ease;
    line-height: 1.2;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: clamp(15px, 3vw, 25px);
    align-items: center;
    flex-wrap: wrap;
}

.main-nav a {
    font-weight: 500;
    color: #444;
    padding: 5px 0;
    position: relative;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    transition: color 0.3s ease;
    display: inline-block;
}

/* Improve touch target */
.main-nav a,
.main-nav .fa-search {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.main-nav a:hover,
.main-nav a.active {
    color: #2c3e9c;
}

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

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

/* ===== UTILITY BAR ===== */
.utility-bar {
    background-color: #fff;
    border-bottom: 1px solid #eaeaea;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

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

.date-display {
    color: #666;
    font-weight: 600;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    transition: color 0.3s ease;
}

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

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

.top-actions button:hover {
    background: #2c3e9c;
    color: #fff;
    border-color: #2c3e9c;
}

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

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

.page-title h2 {
    font-size: clamp(1.5rem, 5vw, 1.8rem);
    font-weight: 600;
    color: #333;
    transition: color 0.3s ease;
}

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

.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;
    transition: all 0.3s ease;
    will-change: transform;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.article-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #f0f0f0;
    aspect-ratio: 16 / 9;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

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

.article-category {
    display: inline-block;
    background-color: #edf2fc;
    color: #2c3e9c;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
    align-self: flex-start;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.news-title {
    font-size: clamp(1rem, 3vw, 1.1rem);
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #222;
    transition: color 0.3s ease;
}

.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;
    transition: color 0.3s ease;
}

.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;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.author {
    font-weight: 500;
    color: #333;
    transition: color 0.3s ease;
}

.separator {
    color: #ccc;
    transition: color 0.3s ease;
}

.date {
    color: #888;
    transition: color 0.3s ease;
}

/* ===== FOOTER ===== */
.footer {
    background-color: #f8f9fa;
    padding: 40px 0 20px;
    border-top: 1px solid #eee;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

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

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

.btn-fb { background: #1877F2; }
.btn-tw { background: #1DA1F2; }
.btn-in { background: #E1306C; }

.footer-links {
    display: flex;
    justify-content: center;
    gap: clamp(15px, 4vw, 25px);
    flex-wrap: wrap;
    margin-bottom: 20px;
    font-weight: 500;
}

.footer-links a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: #2c3e9c;
}

.copyright {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    border-top: 1px solid #ddd;
    padding-top: 20px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

/* ===== PAGINATION ===== */
.pagination-controls {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    transition: border-color 0.3s ease;
    flex-wrap: wrap;
}

.page-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover {
    background: #f0f0f0;
}

.page-btn.active {
    background: #2c3e9c;
    color: #fff;
    border-color: #2c3e9c;
}

/* ===== NOTIFICATION BELL ===== */
.notification-bell {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background-color: #2c3e9c;
    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: all 0.3s ease;
    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 #2c3e9c;
}

.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;
    max-width: calc(100vw - 40px);
    word-break: break-word;
}

@keyframes bellPulse {
    0% { box-shadow: 0 0 0 0 rgba(44, 62, 156, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(44, 62, 156, 0); }
    100% { box-shadow: 0 0 0 0 rgba(44, 62, 156, 0); }
}

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

/* ===== SCROLL TO TOP ===== */
#scroll-to-top {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #2c3e9c, #1a2a6c);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    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);
}

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

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

/* ===== SEARCH OVERLAY ===== */
#search-full-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 20000;
    display: none;
    justify-content: center;
    align-items: flex-start;
    padding: 80px 20px 20px;
    overflow-y: auto;
}

.search-modal {
    width: 100%;
    max-width: 650px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
    margin: auto;
}

.search-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 2px solid #f0f0f0;
    transition: border-color 0.3s ease;
}

.search-header input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 10px;
    background: transparent;
    transition: color 0.3s ease;
    min-height: 44px;
}

.close-search-btn {
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease;
    min-width: 44px;
    text-align: center;
}

#search-results-list {
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
}

.search-result-item {
    display: flex;
    gap: 15px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    border-bottom: 1px solid #f9f9f9;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    align-items: center;
}

.search-result-item img {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.search-result-info h4 {
    margin: 0;
    font-size: 0.95rem;
    color: #222;
    transition: color 0.3s ease;
}

.search-result-info p {
    margin: 4px 0 0;
    font-size: 0.8rem;
    color: #2c3e9c;
    font-weight: 600;
    transition: color 0.3s ease;
}

/* ===== NOTIFICATION POPUP ===== */
.notify-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.notify-popup {
    background: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    transition: background-color 0.3s ease;
}

.notify-icon {
    width: 60px;
    height: 60px;
    background: #edf2fc;
    color: #2c3e9c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.notify-popup h3 {
    color: #222;
    transition: color 0.3s ease;
    font-size: clamp(1.2rem, 5vw, 1.5rem);
    margin-bottom: 10px;
}

.notify-popup p {
    color: #666;
    transition: color 0.3s ease;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.notify-popup .btn-allow,
.notify-popup .btn-deny {
    min-width: 120px;
    min-height: 44px;
    margin: 5px;
}

.btn-allow {
    background: #2c3e9c;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-deny {
    background: #f1f1f1;
    color: #555;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* ===== ARTICLE PAGE STYLES ===== */
.article-content {
    background: #fff;
    padding: clamp(20px, 5vw, 30px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.article-header h1 {
    color: #222;
    transition: color 0.3s ease;
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    line-height: 1.3;
}

.article-meta {
    border-bottom-color: #eee;
    transition: border-color 0.3s ease;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.author-bio {
    background-color: #f8f9fa;
    border-left-color: #2c3e9c;
    transition: background-color 0.3s ease;
    padding: 15px;
}

.also-read {
    background: linear-gradient(to right, #ffffff, #edf2fc);
    border-color: #b0c4de;
    transition: background 0.3s ease, border-color 0.3s ease;
    padding: 15px;
}

.also-read::before {
    background: #2c3e9c;
}

.also-read a {
    color: #222;
    transition: color 0.3s ease;
    word-break: break-word;
}

.also-read a:hover {
    color: #2c3e9c;
}

.article-body h2 {
    border-bottom-color: #f0f0f0;
    transition: border-color 0.3s ease;
    font-size: clamp(1.3rem, 5vw, 1.8rem);
    margin: 25px 0 15px;
}

.article-body p {
    font-size: 1rem;
    line-height: 1.7;
}

.article-body strong {
    background: linear-gradient(120deg, #edf2fc 0%, #edf2fc 100%);
    transition: background 0.3s ease;
}

.article-table {
    width: 100%;
    overflow-x: auto;
    display: block;
}

.article-table th {
    background-color: #f8f9fa;
    transition: background-color 0.3s ease;
    padding: 10px;
}

.article-table td {
    border-bottom-color: #eee;
    transition: border-color 0.3s ease;
    padding: 10px;
}

.article-table tbody tr:hover {
    background-color: #fcfcfc;
    transition: background-color 0.3s ease;
}

/* ===== SIDEBAR ===== */
.sidebar-widget {
    background-color: #111;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    color: #fff;
}

.sidebar-widget h3 {
    border-bottom-color: rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.latest-item {
    border-bottom-color: rgba(255, 255, 255, 0.3);
    padding: 10px 0;
}

.latest-item a {
    color: #fff;
    font-size: 0.95rem;
    word-break: break-word;
}

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

/* ===== COMMENTS ===== */
.comments-section {
    border-top-color: #f0f0f0;
    transition: border-color 0.3s ease;
    margin-top: 30px;
    padding-top: 30px;
}

.section-title {
    color: #222;
    transition: color 0.3s ease;
    font-size: clamp(1.2rem, 5vw, 1.5rem);
    margin-bottom: 20px;
}

.comment-form textarea,
.comment-form input {
    border-color: #ddd;
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    padding: 12px;
    font-size: 1rem;
    border-radius: 4px;
    width: 100%;
    margin-bottom: 10px;
}

.submit-btn {
    background-color: #2c3e9c;
    transition: background-color 0.3s ease;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    min-height: 44px;
    font-weight: 600;
}

.single-comment {
    background: #f9f9f9;
    transition: background-color 0.3s ease;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* ===== AUTHOR PAGE ===== */
.author-profile {
    background: #fff;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.author-avatar img {
    border-color: #edf2fc;
    width: clamp(80px, 20vw, 120px);
    height: auto;
    border-radius: 50%;
}

.author-details h1 {
    color: #222;
    transition: color 0.3s ease;
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 5px;
}

.author-details p {
    color: #444;
    transition: color 0.3s ease;
    font-size: 1rem;
}

/* ===== DARK MODE STYLES ===== */
[data-theme="dark"] body {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
}

[data-theme="dark"] .top-ticker-bar {
    background-color: #1a1a1a !important;
    border-bottom-color: #4a6cf7 !important;
}

[data-theme="dark"] .ticker-label {
    background: #4a6cf7 !important;
}

[data-theme="dark"] .ticker-content a {
    color: #e0e0e0 !important;
}

[data-theme="dark"] .ticker-content a:hover {
    color: #4a6cf7 !important;
}

[data-theme="dark"] .main-header {
    background-color: #1a1a1a !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

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

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

[data-theme="dark"] .main-nav a:hover,
[data-theme="dark"] .main-nav a.active {
    color: #4a6cf7 !important;
}

[data-theme="dark"] .main-nav a.active::after {
    background-color: #4a6cf7 !important;
}

[data-theme="dark"] .main-nav .fa-search {
    color: #ccc !important;
}

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

[data-theme="dark"] .date-display {
    color: #ccc !important;
}

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

[data-theme="dark"] .top-actions button:hover {
    background: #4a6cf7 !important;
    border-color: #4a6cf7 !important;
    color: #fff !important;
}

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

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

[data-theme="dark"] .news-card {
    background-color: #1e1e1e !important;
    border-color: #333 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .news-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .article-category {
    background-color: #2a2a2a !important;
    color: #4a6cf7 !important;
}

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

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

[data-theme="dark"] .news-meta {
    color: #aaa !important;
    border-top-color: #333 !important;
}

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

[data-theme="dark"] .separator {
    color: #444 !important;
}

[data-theme="dark"] .date {
    color: #888 !important;
}

[data-theme="dark"] .footer {
    background-color: #1a1a1a !important;
    border-top-color: #333 !important;
}

[data-theme="dark"] .footer-links a {
    color: #ccc !important;
}

[data-theme="dark"] .footer-links a:hover {
    color: #4a6cf7 !important;
}

[data-theme="dark"] .copyright {
    color: #888 !important;
    border-top-color: #333 !important;
}

[data-theme="dark"] .pagination-controls {
    border-top-color: #333 !important;
}

[data-theme="dark"] .page-btn {
    background: #2a2a2a !important;
    border-color: #444 !important;
    color: #ccc !important;
}

[data-theme="dark"] .page-btn:hover {
    background: #333 !important;
}

[data-theme="dark"] .page-btn.active {
    background: #4a6cf7 !important;
    border-color: #4a6cf7 !important;
    color: #fff !important;
}

[data-theme="dark"] .article-content {
    background-color: #1e1e1e !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

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

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

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

[data-theme="dark"] .also-read {
    background: linear-gradient(to right, #1e1e1e, #2a2a2a) !important;
    border-color: #444 !important;
}

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

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

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

[data-theme="dark"] .article-body p {
    color: #ccc !important;
}

[data-theme="dark"] .article-body strong {
    color: #fff !important;
    background: linear-gradient(120deg, #2a2a2a 0%, #2a2a2a 100%) !important;
}

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

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

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

[data-theme="dark"] .search-modal {
    background: #1e1e1e !important;
}

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

[data-theme="dark"] .search-header input {
    color: #fff !important;
}

[data-theme="dark"] .close-search-btn {
    color: #888 !important;
}

[data-theme="dark"] .search-result-item {
    border-bottom-color: #333 !important;
}

[data-theme="dark"] .search-result-item:hover {
    background-color: #2a2a2a !important;
}

[data-theme="dark"] .search-result-info h4 {
    color: #fff !important;
}

[data-theme="dark"] .search-result-info p {
    color: #4a6cf7 !important;
}

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

[data-theme="dark"] .notify-icon {
    background: #2a2a2a !important;
    color: #4a6cf7 !important;
}

[data-theme="dark"] .notify-popup h3 {
    color: #fff !important;
}

[data-theme="dark"] .notify-popup p {
    color: #ccc !important;
}

[data-theme="dark"] .btn-deny {
    background: #2a2a2a !important;
    color: #ccc !important;
}

[data-theme="dark"] .comments-section {
    border-top-color: #333 !important;
}

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

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

[data-theme="dark"] .single-comment {
    background: #2a2a2a !important;
}

[data-theme="dark"] .single-comment div {
    color: #fff !important;
}

[data-theme="dark"] .single-comment p {
    color: #ccc !important;
}

[data-theme="dark"] .author-profile {
    background: #1e1e1e !important;
}

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

[data-theme="dark"] .author-details p {
    color: #ccc !important;
}

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

[data-theme="dark"] .breadcrumb a {
    color: #4a6cf7 !important;
}

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

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

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

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

/* ===== FONT AWESOME FIX ===== */
.fa,
.fas,
.far,
.fal,
.fad,
.fab {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

.fa-moon:before {
    content: "\f186";
}

.fa-sun:before {
    content: "\f185";
}

.fa-bell:before {
    content: "\f0f3";
}

.fa-arrow-up:before {
    content: "\f062";
}

.fa-search:before {
    content: "\f002";
}

.fa-code:before {
    content: "\f121";
}

.fa-calendar-alt:before {
    content: "\f073";
}

.fa-facebook-f:before {
    content: "\f39e";
}

.fa-twitter:before {
    content: "\f099";
}

.fa-instagram:before {
    content: "\f16d";
}

.fa-check-circle:before {
    content: "\f058";
}

.fa-user:before {
    content: "\f007";
}

.fa-clock:before {
    content: "\f017";
}

.fa-book-reader:before {
    content: "\f5da";
}

.fa-calculator:before {
    content: "\f1ec";
}

.fa-ruler:before {
    content: "\f545";
}

.fa-weight:before {
    content: "\f496";
}

.fa-database:before {
    content: "\f1c0";
}

.fa-hashtag:before {
    content: "\f292";
}

/* ===== ADDITIONAL RESPONSIVE MEDIA QUERIES ===== */

/* Large tablets and small desktops (max-width: 1200px) */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    .news-articles {
        gap: 15px;
    }
}

/* Tablets (max-width: 992px) */
@media (max-width: 992px) {
    .news-articles {
        grid-template-columns: repeat(2, 1fr);
    }
    .article-image {
        height: 160px;
    }
}

/* Small tablets and large phones (max-width: 768px) */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    .main-nav ul {
        justify-content: center;
    }
    .utility-bar-inner {
        flex-direction: column;
        text-align: center;
    }
    .top-actions {
        justify-content: center;
    }
    .ticker-label {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    .ticker-content a {
        font-size: 0.8rem;
        margin-right: 30px;
    }
    .article-image {
        height: 180px;
    }
    .author-profile {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        gap: 15px;
    }
    .footer-links a {
        font-size: 0.85rem;
    }
}

/* Phones (max-width: 576px) */
@media (max-width: 576px) {
    .news-articles {
        grid-template-columns: 1fr;
    }
    .article-image {
        height: 200px; /* Slightly larger for single column */
    }
    .pagination-controls {
        gap: 5px;
    }
    .page-btn {
        padding: 8px 12px;
        min-width: 40px;
    }
    .ticker-content {
        animation-duration: 30s; /* Slower on mobile for readability */
    }
    .ticker-content a {
        font-size: 0.75rem;
        margin-right: 20px;
    }
    .top-actions button span:not(.fa) {
        /* Hide button text on very small screens, show only icons */
        display: none;
    }
    .top-actions button {
        width: 44px;
        padding: 0;
        justify-content: center;
    }
    #dark-mode-toggle {
        width: 44px;
    }
    .search-result-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .search-result-item img {
        width: 100%;
        height: auto;
        max-height: 120px;
    }
}

/* Very small phones (max-width: 480px) */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    .container {
        padding: 0 15px;
    }
    .logo h1 {
        font-size: 1.5rem;
    }
    .page-title h2 {
        font-size: 1.3rem;
    }
    .news-title {
        font-size: 1rem;
    }
    .news-excerpt {
        font-size: 0.85rem;
    }
    .article-content {
        padding: 15px;
    }
    .article-header h1 {
        font-size: 1.4rem;
    }
    .author-bio {
        padding: 10px;
    }
    .also-read {
        padding: 10px;
    }
    .sidebar-widget {
        padding: 15px;
    }
    .comment-form textarea,
    .comment-form input {
        padding: 10px;
    }
    .submit-btn {
        width: 100%;
    }
    .notification-bell {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 15px;
        left: 15px;
    }
    #scroll-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 75px;
        right: 15px;
    }
    .sub-toast {
        bottom: 75px;
        left: 15px;
        font-size: 0.8rem;
        padding: 10px 15px;
    }
}

/* Landscape orientation for phones */
@media (max-width: 768px) and (orientation: landscape) {
    .news-articles {
        grid-template-columns: repeat(2, 1fr);
    }
    .article-image {
        height: 150px;
    }
}