/* --- Import Font --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

/* --- Theme & Category Variables --- */
:root {
    /* Category Colors */
    --category-world-updates: #e53935;
    --category-india: #ff9933; /* Saffron */
    --category-tech: #1e88e5;
    --category-entertainment: #fb8c00;
    --category-inspire: #ffc107; /* Amber/Yellow */
    --category-tips: #8e24aa; /* Purple */
    --category-history: #8d6e63; /* Brown */

    /* Light Theme */
    --primary-color-light: #e53935; --primary-dark-light: #c62828;
    --background-color-light: #f8f9fa; --text-color-light: #212529;
    --muted-text-color-light: #6c757d; --card-bg-light: #ffffff;
    --header-footer-bg-light: #ffffff; --border-color-light: #e9ecef;
    --card-shadow-light: 0 4px 12px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
    --card-hover-shadow-light: 0 10px 25px rgba(0, 0, 0, 0.1), 0 5px 10px rgba(0, 0, 0, 0.05);
    --header-shadow-light: 0 2px 8px rgba(0, 0, 0, 0.04);
    --ad-placeholder-bg-light: #f0f0f0; --ad-placeholder-border-light: #ddd; --ad-placeholder-text-light: #888;

    /* Dark Theme */
    --primary-color-dark: #ff5252; --primary-dark-dark: #ff6e6e;
    --background-color-dark: #121212; --text-color-dark: #f8f9fa;
    --muted-text-color-dark: #adb5bd; --card-bg-dark: #1e1e1e;
    --header-footer-bg-dark: #1a1a1a; --border-color-dark: #333;
    --card-shadow-dark: 0 5px 18px rgba(0, 0, 0, 0.25);
    --card-hover-shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.35);
    --header-shadow-dark: 0 2px 8px rgba(0, 0, 0, 0.2);
    --ad-placeholder-bg-dark: #333; --ad-placeholder-border-dark: #555; --ad-placeholder-text-dark: #aaa;
    
    /* Global */
    --header-height: 65px; --header-height-mobile: 60px;
    --border-radius-base: 8px;
    --transition-speed: 0.25s;
    --container-max-width: 1700px;
}

/* Apply Theme Variables */
:root {
    --primary-color: var(--primary-color-light); --primary-dark: var(--primary-dark-light);
    --background-color: var(--background-color-light); --text-color: var(--text-color-light);
    --muted-text-color: var(--muted-text-color-light); --card-bg: var(--card-bg-light);
    --header-footer-bg: var(--header-footer-bg-light); --border-color: var(--border-color-light);
    --card-shadow: var(--card-shadow-light); --card-hover-shadow: var(--card-hover-shadow-light);
    --header-shadow: var(--header-shadow-light);
    --ad-placeholder-bg: var(--ad-placeholder-bg-light); --ad-placeholder-border: var(--ad-placeholder-border-light); --ad-placeholder-text: var(--ad-placeholder-text-light);
}
html[data-theme="dark"] {
    --primary-color: var(--primary-color-dark); --primary-dark: var(--primary-dark-dark);
    --background-color: var(--background-color-dark); --text-color: var(--text-color-dark);
    --muted-text-color: var(--muted-text-color-dark); --card-bg: var(--card-bg-dark);
    --header-footer-bg: var(--header-footer-bg-dark); --border-color: var(--border-color-dark);
    --card-shadow: var(--card-shadow-dark); --card-hover-shadow: var(--card-hover-shadow-dark);
    --header-shadow: var(--header-shadow-dark);
    --ad-placeholder-bg: var(--ad-placeholder-bg-dark); --ad-placeholder-border: var(--ad-placeholder-border-dark); --ad-placeholder-text: var(--ad-placeholder-text-dark);
}

/* --- Base & Typography --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', 'Inter', system-ui, sans-serif; font-weight: 700; line-height: 1.25; margin-bottom: 0.6em; color: var(--text-color); }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.3rem; }
p { margin-bottom: 1.2em; }
a { color: var(--primary-color); text-decoration: none; transition: color var(--transition-speed) ease; }
a:hover, a:focus { color: var(--primary-dark); }
.sr-only, .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
input, select, textarea, button { font-size: 16px; /* Prevents iOS zoom on focus */ }

/* --- Layout & Structure --- */
.container { padding: 1.2rem; max-width: 100%; margin-inline: auto; position: relative; }
main { flex-grow: 1; }
.page-body-wrapper { display: flex; max-width: var(--container-max-width); margin: calc(var(--header-height) + 0.5rem) auto 1.2rem; padding: 0 1.2rem; gap: 1.2rem; width: 100%; }
.sidebar { width: 155px; flex-shrink: 0; height: fit-content; position: sticky; top: calc(var(--header-height) + 0.8rem); }
.sidebar-left { order: 1; } .sidebar-right { order: 3; }
.main-content-area { flex-grow: 1; min-width: 0; order: 2; width: 100%; }
.main-content-area > .container { max-width: 100%; padding-inline: 0; }
.dual-category-container { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.5rem; }
.dual-category-container > .category-section { margin-bottom: 0; }

/* --- Header & Navigation --- */
.header { position: fixed; top: 0; left: 0; width: 100%; background: var(--header-footer-bg); height: var(--header-height); box-shadow: var(--header-shadow); z-index: 1000; font-family: 'Poppins', system-ui, sans-serif; transition: background-color 0.3s ease, box-shadow 0.3s ease; }
.header-content-wrapper { display: flex; align-items: center; max-width: var(--container-max-width); height: 100%; margin: 0 auto; padding: 0 1.2rem; gap: 1rem; }
.logo { display: flex; align-items: center; gap: 0.5rem; color: var(--primary-color); text-decoration: none; font-size: 1.25rem; flex-shrink: 0; }
.logo h1 { font-size: 1.1rem; margin: 0; display: flex; align-items: center; }
.logo-link-text { vertical-align: middle; font-size: 1.3rem; margin: 0; font-weight: bold; letter-spacing: -0.02em; }
.nav { display: flex; gap: 1.5rem; height: 100%; flex-grow: 1; justify-content: center; align-items: center; overflow: hidden; }
.nav a { color: var(--text-color); text-decoration: none; padding: 0.3rem 0.6rem; transition: color 0.25s ease, background-color 0.25s ease; border-radius: 6px; position: relative; font-weight: 500; white-space: nowrap; }
.nav a:hover { color: var(--primary-color); background-color: rgba(229, 57, 53, 0.08); }
.nav a::after { content: ''; position: absolute; bottom: -3px; left: 50%; transform: translateX(-50%); width: 0; height: 3px; background-color: var(--primary-color); transition: width 0.3s ease; border-radius: 4px; }
.nav a:hover::after { width: 85%; }
.header-controls { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }
.language-switcher { margin-left: auto; padding: 0 0.8rem; font-size: 0.85rem; display: flex; align-items: center; gap: 0.4em; }
.language-switcher a, .language-switcher strong { color: var(--muted-text-color); text-decoration: none; white-space: nowrap;}
.language-switcher a:hover { color: var(--primary-color); text-decoration: underline; }
.language-switcher strong { color: var(--text-color); font-weight: bold; }
.menu-icon, .mobile-language-toggle { display: none; }
.search-form { display: flex; align-items: center; gap: 0.4rem; }
.search-input { padding: 0.6rem 0.8rem; border: 1px solid var(--border-color); border-radius: 6px; width: 200px; background-color: var(--background-color); color: var(--text-color); transition: border-color 0.2s ease, box-shadow 0.2s ease; font-size: 0.9rem; }
.search-input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.15); }
.search-button { padding: 0.6rem 0.8rem; background: var(--primary-color); color: white; border: none; border-radius: 6px; cursor: pointer; line-height: 1; font-size: 0.9rem; transition: background-color 0.2s ease, transform 0.1s ease; font-weight: 500; }
.search-button:hover, .search-button:focus { background: var(--primary-dark); transform: translateY(-1px); }
.search-button:active { transform: translateY(0); }
.theme-toggle { background: none; border: none; font-size: 1.3rem; cursor: pointer; padding: 0.5rem; color: var(--text-color); line-height: 1; border-radius: 6px; transition: background-color 0.2s ease, color 0.2s ease; }
.theme-toggle:hover { color: var(--primary-color); background-color: rgba(229, 57, 53, 0.08); }

/* --- Footer --- */
.footer { background: var(--header-footer-bg); padding: 2.5rem 1.5rem 1.5rem; margin-top: auto; border-top: 1px solid var(--border-color); transition: background-color 0.3s ease, border-color 0.3s ease; }
.footer-content { display: flex; flex-wrap: wrap; justify-content: space-between; max-width: var(--container-max-width); margin: 0 auto; gap: 2rem; }
.footer-section { flex: 1; min-width: 170px; }
.footer-section h3 { margin-bottom: 1rem; color: var(--primary-color); font-size: 1.1rem; font-weight: 600; position: relative; padding-bottom: 0.5rem; }
.footer-section h3::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 2px; background-color: var(--primary-color); border-radius: 2px; }
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 0.5rem; }
.footer-section a { color: var(--muted-text-color); text-decoration: none; transition: color 0.25s ease, transform 0.25s ease; font-size: 0.9rem; font-weight: 400; display: inline-block; padding: 0.2rem 0; }
.footer-section a:hover, .footer-section a:focus { color: var(--primary-color); transform: translateX(3px); }
.copyright { text-align: center; padding-top: 1.5rem; color: var(--muted-text-color); font-size: 0.85rem; border-top: 1px solid var(--border-color); margin-top: 2rem; }

/* --- Ad Placeholders --- */
.ad-slot { display: flex; background-color: var(--ad-placeholder-bg); border: 1px dashed var(--ad-placeholder-border); color: var(--ad-placeholder-text); align-items: center; justify-content: center; text-align: center; font-size: 0.9rem; width: 100%; overflow: hidden; position: relative; border-radius: var(--border-radius-base); min-height: 50px; }
.ad-slot p { margin: 0.5rem; font-size: 0.85rem; }
.ad-label { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,0.5); color: white; font-size: 0.7rem; padding: 2px 4px; border-radius: 3px; line-height: 1; z-index: 1; }
.ad-slot-section-banner { min-height: 90px; max-width: 970px; margin: 1.5rem auto 2rem; }
.ad-slot-sidebar { margin-bottom: 1.2rem; min-height: 200px; }
.ad-slot-below-title { min-height: 90px; max-width: 728px; margin: 1.2em auto 1.8em; }
.ad-slot-below-article { min-height: 90px; max-width: 728px; margin: 2em auto 0.8em; }

/* --- Text Ad --- */
.text-ad-container { text-align: center; padding: 18px 15px 15px; background-color: #fdf0f0; border: 1px solid var(--primary-color-light); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08); border-radius: var(--border-radius-base); position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 75px; animation: glow-border 2.5s ease-in-out infinite; }
html[data-theme="dark"] .text-ad-container { border-color: var(--primary-color-dark); background-color: #2f2a2a; animation-name: glow-border-dark; }
.text-ad-container:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(216, 68, 68, 0.15); animation-play-state: paused; }
html[data-theme="dark"] .text-ad-container:hover { box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2); }
.text-ad-link { text-decoration: none; color: var(--text-color); display: block; width: 100%; }
.text-ad-link:hover { color: var(--primary-dark); }
.ad-text-quiz-bold { margin: 4px 0; font-weight: 700; font-size: 1.05rem; color: var(--primary-color); }
.ad-text-quiz-normal { margin: 4px 0 0.5em; font-size: 0.9rem; color: var(--muted-text-color); font-weight: 500; }
.ad-rating-stars { display: block; margin: 0.5em 0; font-size: 1.5em; color: #FFC107; line-height: 1; }
.ad-explore-text { font-weight: 600; margin-top: 0.8em; font-size: 0.9em; }
.ad-topic-list { list-style: none; padding: 0; margin: 0 auto 0.5em; font-size: 0.9em; color: var(--muted-text-color); }
.ad-topic-list li { display: inline-block; margin: 0 0.5em; }
.ad-more-text { margin-top: 0.5em; font-size: 0.85em; color: var(--muted-text-color); }

/* --- Homepage: Trending Bar --- */
.trending-bar { background: var(--primary-color); color: white; padding: 0.5rem 1.2rem; display: flex; align-items: center; overflow: hidden; margin-bottom: 0.6rem; border-radius: var(--border-radius-base); height: 38px; box-shadow: 0 2px 8px rgba(229, 57, 53, 0.15); }
.trending-label { font-weight: 700; text-transform: uppercase; margin-right: 1rem; white-space: nowrap; font-size: 0.8rem; }
.trending-items-container { flex: 1; min-width: 0; overflow: hidden; }
.trending-items-wrapper { display: flex; width: fit-content; animation: marquee-scroll 80s linear infinite; }
.trending-items-wrapper:hover { animation-play-state: paused; }
.trending-items { display: flex; list-style: none; padding: 0; white-space: nowrap; }
.trending-items li { padding: 0 1.5rem; }
.trending-items a { color: white; text-decoration: none; font-size: 0.85rem; transition: opacity 0.2s ease; }
.trending-items a:hover { opacity: 0.8; text-decoration: underline; }

/* --- Homepage: Hero Section --- */
.hero-section { display: flex; flex-wrap: wrap; margin-bottom: 1.2rem; gap: 1.2rem; }
.hero-carousel-column { width: 55%; min-width: 0; }
.news-carousel { aspect-ratio: 16 / 7.8; height: 350px; width: 100%; border-radius: var(--border-radius-base); overflow: hidden; background-color: #eee; border: 1px solid var(--border-color); box-shadow: var(--card-shadow); }
.news-carousel .swiper-slide { text-align: center; background: #eee; display: flex; justify-content: center; align-items: center; position: relative; overflow: hidden; }
.news-carousel .swiper-slide img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.news-carousel .swiper-slide:hover img { transform: scale(1.03); }
.news-carousel .swiper-slide a { display: block; width: 100%; height: 100%; position: relative; color: inherit; }
.news-carousel .slide-caption { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%); padding: 1.2rem 1rem 1rem; text-align: left; }
.news-carousel .slide-caption h3 { color: #fff; font-size: 1.4rem; margin: 0; line-height: 1.25; text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6); }
.news-carousel .swiper-button-next, .news-carousel .swiper-button-prev { color: #ffffff; background-color: rgba(0, 0, 0, 0.25); border-radius: 50%; width: 36px; height: 36px; transition: background-color 0.2s ease; }
.news-carousel .swiper-button-prev { left: 10px; } .news-carousel .swiper-button-next { right: 10px; }
.news-carousel .swiper-button-next:hover, .news-carousel .swiper-button-prev:hover { background-color: rgba(0, 0, 0, 0.5); }
.news-carousel .swiper-button-next::after, .news-carousel .swiper-button-prev::after { font-size: 1rem; font-weight: bold; }
.news-carousel .swiper-pagination { bottom: 8px; }
.news-carousel .swiper-pagination-bullet { background-color: rgba(255, 255, 255, 0.5); width: 7px; height: 7px; opacity: 1; transition: background-color 0.2s ease, transform 0.2s ease; margin: 0 3px !important; }
.news-carousel .swiper-pagination-bullet-active { background-color: var(--primary-color); transform: scale(1.1); }
.recent-posts-hero { width: calc(45% - 1.2rem); background: var(--card-bg); padding: 0.6rem 0.8rem; border-radius: var(--border-radius-base); box-shadow: var(--card-shadow); display: flex; flex-direction: column; border-left: 2px solid var(--primary-color); height: 350px; }
.recent-posts-hero .recent-posts-list-layout { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.4rem 0.8rem; flex-grow: 1; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--primary-color) var(--background-color); }
.recent-posts-hero .recent-post-list-item { padding: 0.4rem 0; border-bottom: 1px solid var(--border-color); }
.recent-posts-hero .recent-posts-list-layout > li:nth-last-child(-n+2) { border-bottom: none; }
.recent-posts-hero .recent-post-list-link { display: flex; align-items: center; gap: 0.6rem; color: inherit; }
.recent-posts-hero .recent-post-list-link:hover .recent-post-list-title { color: var(--primary-color); text-decoration: underline; }
.recent-posts-hero .recent-post-list-title { order: 1; flex-grow: 1; font-size: 0.8rem; line-height: 1.3; max-height: 3.9em; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.recent-posts-hero .recent-post-list-image { order: 2; width: 75px; height: 50px; object-fit: cover; flex-shrink: 0; border-radius: 3px; border: 1px solid var(--border-color); }

/* --- Homepage & Category Pages: Content Sections --- */
.category-section { margin-bottom: 1.5rem; padding: 1.2rem; background: var(--card-bg); border-radius: var(--border-radius-base); box-shadow: var(--card-shadow); }
.featured-section { background: linear-gradient(to right, rgba(216, 68, 68, 0.02), rgba(216, 68, 68, 0.005)); border-left: 3px solid var(--category-world-updates); padding-left: calc(1.2rem - 3px); }
.category-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.2rem; padding-bottom: 0.4rem; border-bottom: 3px solid; display: inline-flex; align-items: center; gap: 0.5em; text-transform: uppercase; letter-spacing: 0.5px; }
.category-world-updates .category-title { border-color: var(--category-world-updates); }
.category-india .category-title { border-color: var(--category-india); }
.category-tech .category-title { border-color: var(--category-tech); }
.category-entertainment .category-title { border-color: var(--category-entertainment); }
.category-inspire .category-title { border-color: var(--category-inspire); }
.category-tips .category-title { border-color: var(--category-tips); }
.category-history .category-title { border-color: var(--category-history); }
.news-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.8rem; }
.dual-category-container .news-grid { grid-template-columns: repeat(4, 1fr); }
.world-updates-grid-with-ad { display: grid; grid-template-columns: repeat(3, 1fr) 25%; gap: 0.8rem; margin-top: 1.5rem; }
.world-updates-grid-with-ad .world-ad-slot-container { grid-column: 4 / 5; grid-row: 1 / 5; display: flex; min-height: 250px; }
.world-updates-grid-with-ad .world-ad-slot-container .ad-slot { height: 100%; }
.world-updates-grid-with-ad .news-card { display: flex; flex-direction: row; align-items: stretch; padding: 0; border: 1px solid var(--border-color); }
.world-updates-grid-with-ad .news-card .img-container { order: 1; width: 90px; height: 70px; flex-shrink: 0; border-radius: var(--border-radius-base) 0 0 var(--border-radius-base); }
.world-updates-grid-with-ad .news-card .news-card-body { order: 2; flex-grow: 1; padding: 0.5rem 0.7rem; justify-content: center; }
.world-updates-grid-with-ad .news-card .card-title { font-size: 0.8rem; line-height: 1.3; max-height: 3.9em; -webkit-line-clamp: 3; margin-bottom: 0; }
.world-updates-grid-with-ad .news-card .news-card-body p, .world-updates-grid-with-ad .news-card .read-more, .world-updates-grid-with-ad .news-card .category-tag { display: none; }

/* --- General News Card Style --- */
.news-card { border-radius: var(--border-radius-base); overflow: hidden; box-shadow: var(--card-shadow); background: var(--card-bg); display: flex; flex-direction: column; border: 1px solid var(--border-color); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--card-hover-shadow); }
.news-card .img-container { position: relative; overflow: hidden; width: 100%; height: 120px; background-color: #eee; order: 1; }
.news-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.news-card:hover img { transform: scale(1.05); }
.news-card .news-card-body { order: 2; padding: 0.7rem; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.news-card .card-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.3em; line-height: 1.3; min-height: 2.6em; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.news-card .card-title a { color: inherit; text-decoration: none; }
.news-card .card-title a:hover { color: var(--primary-color); text-decoration: underline; }
.news-card p { display: -webkit-box; margin-bottom: 0.4rem; font-size: 0.85rem; color: var(--muted-text-color); line-height: 1.35; min-height: 2.7em; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.news-card .read-more { display: inline-block; margin-top: auto; color: var(--primary-color); text-decoration: none; font-weight: 700; font-size: 0.8rem; align-self: flex-start; }
.news-card .read-more:hover { color: var(--primary-dark); }
.news-card .read-more::after { content: '→'; margin-left: 0.3em; display: inline-block; transition: transform 0.2s ease; }
.news-card .read-more:hover::after { transform: translateX(3px); }
.news-card .category-tag { position: absolute; top: 6px; left: 6px; font-size: 0.65rem; font-weight: 700; padding: 2px 6px; border-radius: 3px; color: white; z-index: 1; }
.news-card.category-world-updates .category-tag { background-color: var(--category-world-updates); }
.news-card.category-india .category-tag { background-color: var(--category-india); }
.news-card.category-tech .category-tag { background-color: var(--category-tech); }
.news-card.category-entertainment .category-tag { background-color: var(--category-entertainment); }
.news-card.category-inspire .category-tag { background-color: var(--category-inspire); }
.news-card.category-tips .category-tag { background-color: var(--category-tips); }
.news-card.category-history .category-tag { background-color: var(--category-history); }

/* --- Article Page --- */
.article-container { max-width: 1000px; margin-inline: auto; background-color: var(--card-bg); padding: 2.5rem 3.5rem; box-shadow: var(--card-shadow); border-radius: var(--border-radius-base); margin-bottom: 2.5rem; border: 1px solid var(--border-color); }
.breadcrumbs { font-size: 0.8rem; margin-bottom: 1rem; color: var(--muted-text-color); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4em; }
.breadcrumbs li { display: flex; align-items: center; font-weight: 500; }
.breadcrumbs li:not(:last-child)::after { content: '›'; margin-left: 0.4em; opacity: 0.7; }
.breadcrumbs a { color: var(--primary-color); }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs li[aria-current="page"] { font-weight: 700; color: var(--text-color); }
.article-category-badge { display: inline-block; background-color: var(--primary-color); color: white; font-weight: 700; padding: 0.5em 1em; margin-bottom: 1.2em; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.05em; box-shadow: 0 2px 4px rgba(0,0,0,0.1); transition: all 0.2s ease; }
.article-category-badge:hover { background-color: var(--primary-dark); transform: translateY(-1px); }
.article-title { font-size: 2rem; line-height: 1.25; margin-bottom: 1rem; font-weight: 700; }
.article-meta { gap: 1rem 1.5rem; margin-top: 1rem; font-size: 0.95rem; display: flex; flex-wrap: wrap; }
.article-meta .meta-item { display: inline-flex; align-items: center; gap: 0.4em; }
figure.article-featured-image { margin: 2rem 0 2.5rem; }
.article-featured-image img { max-height: 500px; width: 100%; display: block; border-radius: var(--border-radius-base); }
.image-caption { padding: 0.8rem 1.5rem; font-size: 0.9rem; color: var(--muted-text-color); font-style: italic; text-align: center; }
.article-body { line-height: 1.75; font-size: 1.05rem; }
.article-body p { margin-bottom: 1.4em; }
.article-body strong { color: var(--primary-color); }
.article-body blockquote { margin: 1.8em 0; padding: 1em 1.5em; font-size: 1.1rem; border-left: 4px solid var(--primary-color); background-color: rgba(0,0,0,0.03); }
html[data-theme="dark"] .article-body blockquote { background-color: rgba(255,255,255,0.05); }
.article-body img { margin: 1.5em auto; max-width: 100%; height: auto; display: block; border-radius: var(--border-radius-base); box-shadow: var(--card-shadow); }
.article-body h2 { font-size: 1.6rem; margin-top: 1.8em; }
.article-body h3 { font-size: 1.3rem; margin-top: 1.6em; }
.article-body h4 { font-size: 1.1rem; margin-top: 1.5em; }
.social-sharing { margin: 1.5rem 0; padding: 0.8rem 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); text-align: center; }
.social-sharing h4 { margin-bottom: 0.6rem; font-size: 0.9rem; font-weight: 700; }
.social-sharing a { margin: 0 0.4em; font-weight: 700; font-size: 0.9rem; }
.related-articles { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border-color); }
.related-articles h2 { font-size: 1.4rem; margin-bottom: 1.2rem; text-align: center; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.related-card .img-container { height: 110px; }
.related-card .card-title { font-size: 0.85rem; min-height: auto; -webkit-line-clamp: 2; }
.related-card p { display: none; }

/* --- Category Page --- */
.category-page-title { font-size: 1.8rem; margin-bottom: 1.2rem; color: var(--primary-color); border-bottom: 2px solid var(--border-color); padding-bottom: 0.4rem; }
.category-listing .news-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.category-listing .news-card .img-container { height: 140px; }
.category-listing .news-card .card-title { min-height: 2.6em; }
.category-listing .news-card p { min-height: 4.05em; -webkit-line-clamp: 3; }
.load-more-container { text-align: center; margin: 2rem 0; }
.load-more-btn { background-color: var(--primary-color); color: white; border: none; padding: 0.8rem 1.5rem; border-radius: var(--border-radius-base); font-size: 0.9rem; cursor: pointer; transition: background-color 0.2s ease; }
.load-more-btn:hover { background-color: var(--primary-dark); }
.load-more-btn:disabled { background-color: var(--muted-text-color); cursor: not-allowed; }

/* --- Animations --- */
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes glow-border { 0%, 100% { border-color: var(--primary-color); box-shadow: 0 0 3px var(--primary-color); } 50% { border-color: var(--primary-dark); box-shadow: 0 0 8px var(--primary-dark); } }
@keyframes glow-border-dark { 0%, 100% { border-color: var(--primary-color-dark); box-shadow: 0 0 4px var(--primary-color-dark); } 50% { border-color: #ff8a8a; box-shadow: 0 0 10px #ff8a8a; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* --- Responsive Styles --- */
@media (max-width: 1400px) {
    .sidebar { width: 140px; }
    .news-grid { grid-template-columns: repeat(4, 1fr); }
    .dual-category-container .news-grid { grid-template-columns: repeat(3, 1fr); }
    .world-updates-grid-with-ad { grid-template-columns: repeat(3, 1fr) 28%; }
}

@media (max-width: 1200px) {
    .sidebar { width: 126px; }
    .page-body-wrapper { gap: 1rem; padding: 0 1rem; }
    .news-grid { grid-template-columns: repeat(3, 1fr); }
    .dual-category-container .news-grid { grid-template-columns: repeat(2, 1fr); }
    .world-updates-grid-with-ad { grid-template-columns: repeat(2, 1fr) 30%; }
    .world-updates-grid-with-ad .world-ad-slot-container { grid-row: 1 / 7; }
}

@media (max-width: 992px) {
    .sidebar { display: none; }
    .page-body-wrapper { flex-direction: column; margin-top: calc(var(--header-height-mobile) + 0.4rem); padding: 0; gap: 0; }
    .main-content-area { order: 1; }
    .hero-section { flex-direction: column; gap: 1rem; }
    .hero-carousel-column, .recent-posts-hero { width: 100%; }
    .recent-posts-hero { border-left: none; padding: 1rem; height: auto; }
    .recent-posts-hero .recent-posts-list-layout { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .dual-category-container { grid-template-columns: 1fr; }
    .world-updates-grid-with-ad { grid-template-columns: repeat(2, 1fr); }
    .world-updates-grid-with-ad .world-ad-slot-container { grid-column: 1 / -1; grid-row: auto; order: 99; margin-top: 1rem; }
    .article-container { padding: 2rem 1.8rem; }
}

@media (max-width: 768px) {
    body { font-size: 16px; }
    .header { height: var(--header-height-mobile); }
    .header-content-wrapper { padding: 0 0.8rem; justify-content: space-between; }
    .logo-link-text { font-size: 1.1rem; }
    .search-form, .language-switcher { display: none; }
    .menu-icon, .mobile-language-toggle { display: flex; align-items: center; background: transparent; border: 1px solid var(--border-color); padding: 0.35rem 0.6rem; border-radius: var(--border-radius-base); font-size: 0.8rem; cursor: pointer; }
    .menu-icon { font-size: 1.3rem; border: none; }
    .nav { display: none; position: fixed; top: var(--header-height-mobile); left: 0; right: 0; background: var(--header-footer-bg); padding: 0; flex-direction: column; gap: 0; box-shadow: 0 4px 10px rgba(0,0,0,0.1); z-index: 998; border-top: 1px solid var(--border-color); animation: slideDown 0.3s ease-out; height: auto; }
    .nav.active { display: flex; }
    .nav a { padding: 1rem; width: 100%; border-bottom: 1px solid var(--border-color); font-weight: 500; font-size: 0.95rem; }
    .nav a::after { display: none; }
    .main-content-area > .trending-bar, .main-content-area > .hero-section, .main-content-area > .container { padding-inline: 0.8rem; }
    .main-content-area > .container { padding: 0; }
    .hero-section { margin-bottom: 1.2rem; }
    .news-carousel { height: auto; aspect-ratio: 16/9; max-height: 200px; }
    .news-carousel .slide-caption h3 { font-size: 1rem; padding-bottom: 25px; }
    .news-carousel .swiper-button-next, .news-carousel .swiper-button-prev { width: 28px; height: 28px; }
    .news-carousel .swiper-button-next::after, .news-carousel .swiper-button-prev::after { font-size: 0.8rem; }
    .recent-posts-hero { padding: 0; background: none; box-shadow: none; }
    .recent-posts-hero .recent-post-list-layout, .news-grid, .world-updates-grid-with-ad, .dual-category-container { display: flex; flex-direction: column; gap: 0.8rem; }
    .news-card { flex-direction: row; gap: 0.8rem; align-items: center; border: none; box-shadow: none; padding: 0.8rem 0; border-bottom: 1px solid var(--border-color); background: none; border-radius: 0; }
    .news-card:last-child { border-bottom: none; }
    .news-card .img-container { order: 1; width: 85px; height: 70px; flex-shrink: 0; border-radius: 6px; }
    .news-card .news-card-body { order: 2; padding: 0; background: none; }
    .news-card .card-title { font-size: 0.95rem; line-height: 1.4; -webkit-line-clamp: 3; }
    .news-card p, .news-card .read-more, .news-card .category-tag, .world-updates-grid-with-ad .news-card .read-more { display: none; }
    .world-updates-grid-with-ad .world-ad-slot-container .ad-slot { min-height: 250px; }
    .category-section { padding: 0.8rem 0.6rem; margin-bottom: 0.8rem; border-left: none; box-shadow: none; background: none; border-top: 1px solid var(--border-color); }
    .category-section:first-of-type { border-top: none; }
    .category-title { font-size: 1.2rem; margin-bottom: 0.8rem; }
    .article-container { padding: 1.2rem; }
    .article-title { font-size: 1.6rem; }
    .article-body { font-size: 18px; line-height: 1.7; }
    .article-body p { padding: 0; }
    .article-body h2 { font-size: 1.4rem; } .article-body h3 { font-size: 1.2rem; }
    .article-body blockquote { padding: 1em 1.2em; margin: 1.5em 0; }
    .footer { padding: 1.5rem 1rem 1rem; }
}