/* ===== RESET & BASE STYLES (SEO & Performance Optimized) ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* SEO: Better User Experience */
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    text-rendering: optimizeLegibility; /* SEO: Clearer text rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* ===== 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:hover {
    color: #e1306c;
}

/* ===== 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: 25px;
    align-items: center;
}

.main-nav a {
    font-weight: 500;
    color: #444;
    padding: 5px 0;
    position: relative;
    font-size: 0.9rem;
}

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

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

.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 ===== */
.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: transform 0.2s ease, box-shadow 0.2s ease;
    will-change: transform; /* SEO Performance: GPU Acceleration */
}

.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;
    content-visibility: auto; /* SEO Performance: Defers rendering of offscreen images */
}

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

.article-category {
    display: inline-block;
    background-color: #fdf5f7;
    color: #e1306c;
    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;
}

/* NAYA EXCERPT (2-LINE) STYLE */
.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: #888;
}

/* Responsive Grid */
@media (max-width: 900px) {
    .news-articles { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .news-articles { grid-template-columns: 1fr; }
}

/* ===== 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;
}

.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;
}

.content-wrapper {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    align-items: flex-start;
}

.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: #e1306c; }
.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 {
    width: 45px !important;
    height: 45px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eaeaea;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.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;
}

.social-icons a:hover {
    background-color: #e1306c;
    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, #fdf5f7 0%, #fdf5f7 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, #fdf5f7);
    border: 1px solid #f9d5e5;
    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: #e1306c; }
.also-read h3 { margin: 0 0 8px 0; font-size: 0.85rem; color: #e1306c; 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: #e1306c; text-decoration: underline; }

.author-bio { background-color: #f8f9fa; padding: 25px; border-radius: 8px; margin-top: 40px; border-left: 4px solid #e1306c; }
.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 */
.sidebar { width: 320px; flex-shrink: 0; position: sticky; top: 20px; }
.sidebar-widget { background-color: #111; border-radius: 12px; padding: 25px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); margin-bottom: 30px; color: #fff; }
.sidebar-widget h3 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.latest-articles { max-height: 600px; overflow-y: auto; 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); }

@media (max-width: 900px) {
    .content-wrapper { flex-direction: column; }
    .sidebar { width: 100%; position: static; }
    .article-content { padding: 15px; }
}

@media (max-width: 768px) {
    .header-content { flex-direction: column; gap: 15px; text-align: center; }
    .main-nav ul { justify-content: center; gap: 15px; flex-wrap: wrap; }
    .article-image { height: 180px; }
    .article-header h1 { font-size: 1.8rem; }
    .article-meta, .social-share { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ===== NOTIFICATION BELL & SHARE BUTTONS ===== */
.notification-bell {
    position: fixed; bottom: 20px; left: 20px; width: 60px; height: 60px;
    background-color: #e1306c; 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;
    will-change: box-shadow; /* SEO Performance */
}

.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 #e1306c; }

.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(225, 48, 108, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(225, 48, 108, 0); }
    100% { box-shadow: 0 0 0 0 rgba(225, 48, 108, 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;
    will-change: transform;
}
.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; }

@media (max-width: 1024px) { .floating-share { display: none !important; } }

/* ===== 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: #e1306c; color: white; padding: 12px 30px; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; }
.comments-list { margin-top: 30px; }

/* ===== 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%; 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%); } }

.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; }
.top-links a:hover { color: #e1306c; }
.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: #e1306c; color: #fff; border-color: #e1306c; }
#dark-mode-toggle { padding: 0; width: 32px; justify-content: center; }

@media (max-width: 768px) {
    .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; }
}

/* ===== 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%; box-shadow: 0 0 5px #e1306c; will-change: width; }

#scroll-to-top {
    position: fixed; bottom: 90px; right: 20px; width: 45px; height: 45px;
    background: linear-gradient(135deg, #e1306c, #c2255c); 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: 0.3s; display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    will-change: opacity, transform;
}
#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); }

/* ===== DARK MODE OVERRIDES ===== */
[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 { 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: #e1306c !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: #e1306c; color: #fff; border-color: #e1306c; }
[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; }
[data-theme="dark"] .also-read a:hover { color: #e1306c !important; }
[data-theme="dark"] .also-read h3 { color: #e1306c !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: #e1306c !important; }
[data-theme="dark"] .toc-box a:hover { color: #fff !important; }