/*
Theme Name: RRBCONTENTS News
Theme URI: https://news.rrbcontents.com
Author: RRBCONTENTS
Author URI: https://rrbcontents.com
Description: A modern, dark-mode-first news theme for RRBCONTENTS News — India's premier competitive exam current affairs platform. Features editorial typography, category-based layouts, daily quiz widgets, and full SEO schema support.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rrbcontents-news
Tags: news, dark-mode, custom-menu, featured-images, responsive-layout, translation-ready
*/

/* ==========================================================================
   1. CSS Custom Properties (Design Tokens)
   ========================================================================== */
:root {
    /* Dark mode (default) — Matched to RRBCONTENTS-NEWS logo */
    --bg-primary: #0b182e;
    --bg-card: #11223f;
    --bg-card-hover: #182e54;
    --border-color: #1d3a68;
    --navy: #0b182e;
    
    --gold: #f2b824;
    --gold-secondary: #d49e1e;
    --gold-hover: #e5ad1f;
    
    --cyan: #36a4a7;
    --cyan-light: #48c0c4;
    --teal: #36a4a7;
    --teal-light: #48c0c4;
    
    --crimson: #d9383a;
    
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --header-gradient: linear-gradient(135deg, #091325, #0f2244);
    
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.5);
    
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --font-body: 'Noto Sans Devanagari', 'Poppins', sans-serif;
    --font-heading: 'Noto Sans Devanagari', 'Poppins', sans-serif;
}

[data-theme="light"] {
    --bg-primary: #f4f6fa;
    --bg-card: #ffffff;
    --bg-card-hover: #eef2f8;
    --border-color: #d0d8e8;
    
    --text-primary: #0b182e;
    --text-secondary: #2c3e50;
    --text-muted: #5a6b7c;
    --text-dim: #8a99a8;
    
    --header-gradient: linear-gradient(135deg, #0b182e, #132a4f);
    
    --shadow: 0 4px 20px rgba(11, 24, 46, 0.08);
    --shadow-hover: 0 8px 30px rgba(11, 24, 46, 0.14);
}

/* ==========================================================================
   2. Reset & Base
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--teal-light);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover, a:focus {
    color: var(--gold);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 500; }

::selection {
    background: var(--gold);
    color: #000;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--gold-secondary);
    border-radius: var(--radius);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* ==========================================================================
   3. Layout Utilities
   ========================================================================== */
.rrbcn-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.rrbcn-grid {
    display: grid;
    gap: 1.5rem;
}

.rrbcn-grid--2 { grid-template-columns: repeat(2, 1fr); }
.rrbcn-grid--3 { grid-template-columns: repeat(3, 1fr); }
.rrbcn-grid--4 { grid-template-columns: repeat(4, 1fr); }

.screen-reader-text,
.rrbcn-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ==========================================================================
   4. Top Bar & Header Navigation
   ========================================================================== */
.rrbcn-top-bar {
    background: #060d1b;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.78rem;
    color: var(--text-muted);
    padding: 0.4rem 0;
    z-index: 1001;
    position: relative;
}

.rrbcn-top-bar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.rrbcn-top-bar__left, .rrbcn-top-bar__right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rrbcn-top-bar__date {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.rrbcn-top-bar__dot {
    color: var(--cyan);
    font-weight: bold;
}

.rrbcn-top-bar__tagline {
    color: var(--text-dim);
}

.rrbcn-top-bar__telegram {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(54, 164, 167, 0.12);
    color: var(--cyan-light) !important;
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    border: 1px solid rgba(54, 164, 167, 0.3);
    font-weight: 600;
    transition: all var(--transition);
}

.rrbcn-top-bar__telegram:hover {
    background: var(--cyan);
    color: #fff !important;
    border-color: var(--cyan);
}

.rrbcn-top-bar__rss {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--gold) !important;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    background: rgba(242, 184, 36, 0.1);
    border: 1px solid rgba(242, 184, 36, 0.3);
    transition: all var(--transition);
}

.rrbcn-top-bar__rss:hover {
    background: var(--gold);
    color: #0b182e !important;
}

.rrbcn-top-bar__site-link {
    color: var(--gold) !important;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-size: 0.74rem;
}

.rrbcn-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--header-gradient);
    backdrop-filter: blur(12px);
    height: 72px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    transition: height var(--transition), box-shadow var(--transition);
}

.rrbcn-header--scrolled {
    height: 58px;
    box-shadow: var(--shadow);
}

.rrbcn-header .rrbcn-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Brand Logo (Matching Uploaded Image) */
.rrbcn-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none !important;
}

.rrbcn-logo__emblem {
    flex-shrink: 0;
    transition: transform var(--transition);
}

.rrbcn-logo:hover .rrbcn-logo__emblem {
    transform: rotate(15deg) scale(1.05);
}

.rrbcn-logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.rrbcn-logo__brand {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--gold) !important;
    letter-spacing: 0.05em;
    font-family: var(--font-heading);
}

.rrbcn-logo__news {
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.25em;
}

/* Navigation Menu */
.rrbcn-nav {
    display: none;
}

.rrbcn-nav__menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
}

.rrbcn-nav__menu > li {
    position: relative;
}

.rrbcn-nav__link {
    color: var(--text-secondary);
    padding: 0.6rem 0.85rem;
    font-weight: 600;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}

.rrbcn-nav__link:hover,
.rrbcn-nav__menu li.current-menu-item > .rrbcn-nav__link,
.rrbcn-nav__menu li.current-category-ancestor > .rrbcn-nav__link {
    color: var(--gold) !important;
    background: rgba(242, 184, 36, 0.08);
}

.rrbcn-dropdown-arrow {
    transition: transform 0.25s ease;
    opacity: 0.8;
}

.rrbcn-nav__menu li:hover > .rrbcn-nav__link .rrbcn-dropdown-arrow {
    transform: rotate(180deg);
    color: var(--gold);
}

.rrbcn-nav__icon svg {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    color: var(--cyan);
}

/* Multi-level Dropdown Sub-menu */
.rrbcn-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--gold);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: var(--shadow-hover);
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1002;
}

.rrbcn-nav__menu li:hover > .rrbcn-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.rrbcn-dropdown-menu li {
    position: relative;
}

.rrbcn-dropdown-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    transition: background var(--transition), color var(--transition), padding-left var(--transition);
}

.rrbcn-dropdown-menu a:hover {
    background: var(--bg-card-hover);
    color: var(--gold) !important;
    padding-left: 1.5rem;
}

/* Secondary nested dropdown */
.rrbcn-sub-dropdown {
    top: 0;
    left: 100%;
    border-top: 1px solid var(--border-color);
    border-left: 3px solid var(--cyan);
}

.rrbcn-header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rrbcn-header__actions button {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    transition: all var(--transition);
}

.rrbcn-header__actions button:hover {
    color: var(--gold);
    border-color: var(--border-color);
    background: rgba(242, 184, 36, 0.08);
}

/* Mobile Off-canvas Drawer Header */
.rrbcn-mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.rrbcn-theme-toggle svg {
    transition: transform 0.5s ease;
}

.rrbcn-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 340px;
    height: 100vh;
    background: var(--bg-card);
    z-index: 1005;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem 1.5rem 2rem;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.rrbcn-mobile-menu--open,
.rrbcn-mobile-menu--active {
    right: 0 !important;
}

/* ==========================================================================
   5. Hero Section
   ========================================================================== */
.rrbcn-hero {
    margin-top: 90px;
    margin-bottom: 3rem;
}

.rrbcn-hero__card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: block;
    aspect-ratio: 4/3;
}

.rrbcn-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    z-index: 1;
}

.rrbcn-hero__card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    z-index: 1;
}

.rrbcn-hero__image {
    position: absolute;
    inset: 0;
}

.rrbcn-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition);
}

.rrbcn-hero__card:hover .rrbcn-hero__image img {
    transform: scale(1.02);
}

.rrbcn-hero__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    z-index: 2;
    color: #fff;
}

.rrbcn-hero .rrbcn-card__badge {
    margin-bottom: 1rem;
    display: inline-block;
}

.rrbcn-hero__title {
    color: #fff;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.rrbcn-hero__excerpt {
    color: rgba(255,255,255,0.9);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rrbcn-hero__meta {
    color: rgba(255,255,255,0.7);
}

/* ==========================================================================
   6. Post Cards
   ========================================================================== */
.rrbcn-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.rrbcn-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--gold);
}

.rrbcn-card__image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.rrbcn-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.rrbcn-card:hover .rrbcn-card__image img {
    transform: scale(1.05);
}

.rrbcn-card__bookmark {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    z-index: 2;
    transition: background var(--transition), color var(--transition);
}

.rrbcn-card__bookmark:hover {
    background: var(--bg-card);
    color: var(--gold);
}

.rrbcn-card__content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.rrbcn-card__badge {
    background: rgba(13, 148, 136, 0.1);
    color: var(--teal-light);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    align-self: flex-start;
    margin-bottom: 0.75rem;
}

.rrbcn-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.rrbcn-card__title a {
    color: var(--text-primary);
}

.rrbcn-card__title a:hover {
    color: var(--gold);
}

.rrbcn-card__excerpt {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.rrbcn-card__meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-dim);
    align-items: center;
    margin-top: auto;
}

/* ==========================================================================
   7. Category Rows
   ========================================================================== */
.rrbcn-category-row {
    margin-bottom: 3rem;
}

.rrbcn-category-row__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gold);
}

.rrbcn-category-row__title {
    font-size: 1.5rem;
    font-weight: 700;
    border-left: 4px solid var(--gold);
    padding-left: 1rem;
    margin: 0;
}

.rrbcn-category-row__link {
    color: var(--teal-light);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.rrbcn-category-row__link:hover {
    text-decoration: underline;
}

.rrbcn-category-row__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 1rem;
    /* Hide scrollbar for clean look */
    scrollbar-width: none; 
}
.rrbcn-category-row__grid::-webkit-scrollbar {
    display: none;
}

.rrbcn-category-row__grid > * {
    min-width: 280px;
    scroll-snap-align: start;
    flex: 0 0 auto;
}

/* ==========================================================================
   8. Trending Sidebar
   ========================================================================== */
.rrbcn-sidebar {
    margin-bottom: 2rem;
}

.rrbcn-trending {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.rrbcn-trending__title {
    color: var(--gold);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.rrbcn-trending__item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.rrbcn-trending__item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.rrbcn-trending__rank {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gold);
    opacity: 0.9;
    line-height: 1;
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(242, 184, 36, 0.1);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.rrbcn-trending__title {
    margin: 0 0 5px 0;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.4;
}

.rrbcn-trending__title a {
    color: var(--text-primary);
    transition: color var(--transition);
}

.rrbcn-trending__title a:hover {
    color: var(--gold);
}

.rrbcn-trending__meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}










/* ==========================================================================
   9. Quiz Widget
   ========================================================================== */
.rrbcn-quiz {
    background: linear-gradient(135deg, var(--bg-card), var(--navy));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.rrbcn-quiz__title {
    margin: 0;
    color: var(--gold);
    font-size: 1.2rem;
    font-weight: 700;
}

.rrbcn-quiz__question {
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.rrbcn-quiz__options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rrbcn-quiz__option {
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}

.rrbcn-quiz__option:hover:not(:disabled) {
    border-color: var(--teal);
    background: rgba(13, 148, 136, 0.05);
}

.rrbcn-quiz__option--correct {
    border-color: #22c55e !important;
    background: rgba(34, 197, 94, 0.1) !important;
    color: #22c55e !important;
}

.rrbcn-quiz__option--wrong {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
}

.rrbcn-quiz__result {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: none;
    animation: slideDown 0.3s ease;
}

.rrbcn-quiz__result.active {
    display: block;
}


/* Sidebar CTA */
.rrbcn-sidebar__cta {
    margin-top: 30px;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    text-align: center;
}

.rrbcn-sidebar__cta svg {
    margin-bottom: 10px;
}

.rrbcn-sidebar__cta h4 {
    margin-top: 0;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.rrbcn-sidebar__cta p {
    font-size: 0.88rem;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.rrbcn-sidebar__cta-btn {
    width: 100%;
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--gold);
    color: var(--bg-primary);
    font-weight: 700;
    transition: all var(--transition);
}

.rrbcn-sidebar__cta-btn:hover {
    background: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 184, 36, 0.3);
}

/* ==========================================================================
   10. Article Page
   ========================================================================== */
.rrbcn-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gold);
    width: 0%;
    z-index: 1001;
    transition: width 0.1s ease;
}

.rrbcn-article__header {
    max-width: 800px;
    margin: 0 auto;
}

.rrbcn-article__title {
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 1rem 0;
}

.rrbcn-article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 1.5rem 0;
    align-items: center;
}

.rrbcn-article__featured-image {
    width: 100%;
    border-radius: var(--radius);
    margin: 2rem 0;
    overflow: hidden;
}

.rrbcn-article__body {
    max-width: 720px;
    margin: 0 auto;
}

.rrbcn-article__body p {
    margin-bottom: 1.5rem;
}

.rrbcn-article__body h2, 
.rrbcn-article__body h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--gold);
    padding-left: 1rem;
}

.rrbcn-article__body blockquote {
    border-left: 4px solid var(--gold);
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    font-style: italic;
    margin: 2rem 0;
}

.rrbcn-article__body ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.rrbcn-article__body li {
    margin-bottom: 0.5rem;
}

.rrbcn-article__body ul li::marker {
    color: var(--teal);
}

.rrbcn-quick-facts {
    background: linear-gradient(135deg, var(--bg-card), var(--navy));
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

.rrbcn-quick-facts h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
    border: none;
    padding: 0;
}

.rrbcn-quick-facts ul {
    margin: 0;
}

.rrbcn-quick-facts li::marker {
    color: var(--gold);
}

.rrbcn-related {
    max-width: 1280px;
    margin: 4rem auto 0;
    padding: 3rem 1.5rem;
    border-top: 1px solid var(--border-color);
}
.rrbcn-related__grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.rrbcn-study-cta {
    margin-top: 3rem;
    text-align: center;
}

.rrbcn-quiz-cta {
    text-align: center;
    margin: 2rem 0;
}


/* ==========================================================================
   11. Search Overlay
   ========================================================================== */
.rrbcn-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10vh;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.rrbcn-search-overlay--active {
    opacity: 1;
    pointer-events: auto;
}

.rrbcn-search-overlay__close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

.rrbcn-search-overlay__form {
    width: 90%;
    max-width: 600px;
}

.rrbcn-search-overlay__input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--gold);
    color: #fff;
    font-size: 1.5rem;
    padding: 1rem 0;
    outline: none;
}

.rrbcn-search-overlay__results {
    width: 90%;
    max-width: 600px;
    margin-top: 2rem;
}

/* ==========================================================================
   12. Footer
   ========================================================================== */
.rrbcn-footer {
    background: #060e1a;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.rrbcn-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.rrbcn-footer__col h4 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.rrbcn-footer__col ul {
    list-style: none;
}

.rrbcn-footer__col ul li {
    margin-bottom: 0.75rem;
}

.rrbcn-footer__bottom {
    margin-top: 2.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================================================
   13. Digest Banner
   ========================================================================== */
.rrbcn-digest-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--navy);
    border-top: 2px solid var(--gold);
    color: #fff;
    padding: 1rem 0;
    z-index: 998;
    box-shadow: var(--shadow-hover);
    transition: transform var(--transition);
}

.rrbcn-digest-banner--hidden {
    transform: translateY(100%);
}

.rrbcn-digest-banner .rrbcn-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.rrbcn-digest-banner__close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

/* ==========================================================================
   14. Breadcrumbs
   ========================================================================== */
.rrbcn-breadcrumbs {
    font-size: 0.875rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.rrbcn-breadcrumbs a {
    color: var(--text-muted);
}

.rrbcn-breadcrumbs .separator {
    margin: 0 0.5rem;
}

.rrbcn-breadcrumbs .current {
    color: var(--text-primary);
}

/* ==========================================================================
   15. Buttons
   ========================================================================== */
.rrbcn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.rrbcn-btn--gold {
    background: var(--gold);
    color: #0a1628 !important;
}

.rrbcn-btn--gold:hover {
    background: var(--gold-hover);
    transform: translateY(-1px);
}

.rrbcn-btn--teal {
    background: var(--teal);
    color: #fff !important;
}

.rrbcn-btn--outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.rrbcn-btn--outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.rrbcn-load-more {
    margin: 2rem auto;
    display: block;
}

/* ==========================================================================
   16. Back to Top
   ========================================================================== */
.rrbcn-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--gold);
    color: #0a1628;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
    z-index: 997;
    box-shadow: var(--shadow);
}

.rrbcn-back-to-top--visible {
    opacity: 1;
    pointer-events: auto;
}

.rrbcn-back-to-top:hover {
    transform: scale(1.1);
    background: var(--gold-hover);
}

/* ==========================================================================
   17. Archive Pages
   ========================================================================== */
.rrbcn-archive__header {
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

/* ==========================================================================
   18. Page Template
   ========================================================================== */
.rrbcn-page {
    padding: 3rem 0;
}

.rrbcn-page__content {
    max-width: 800px;
    margin: 0 auto;
}

/* ==========================================================================
   19. 404 Page
   ========================================================================== */
.rrbcn-404 {
    text-align: center;
    padding: 5rem 0;
}

.rrbcn-404 h1 {
    font-size: clamp(4rem, 10vw, 8rem);
    background: linear-gradient(to right, var(--gold), var(--gold-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

/* ==========================================================================
   20. Comments
   ========================================================================== */
.rrbcn-comments {
    max-width: 720px;
    margin: 4rem auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   21. WordPress Core Overrides
   ========================================================================== */
.alignwide {
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: 100vw;
}

.wp-caption {
    background: var(--bg-card);
    padding: 0.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.sticky {
    border-left: 4px solid var(--gold);
}


/* ==========================================================================
   Latest News Feed Section
   ========================================================================== */
.rrbcn-latest-feed {
    margin: 2rem 0;
}

.rrbcn-latest-feed__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gold);
}

.rrbcn-latest-feed__badge {
    background: var(--crimson);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rrbcn-latest-feed__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.rrbcn-latest-feed__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rrbcn-latest-feed__item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition);
}

.rrbcn-latest-feed__item:hover {
    background: var(--bg-card-hover);
    margin: 0 -1rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
}

.rrbcn-latest-feed__item:last-child {
    border-bottom: none;
}

.rrbcn-latest-feed__thumb {
    width: 120px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.rrbcn-latest-feed__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rrbcn-latest-feed__headline {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 0.35rem;
}

.rrbcn-latest-feed__headline a {
    color: var(--text-primary);
    transition: color var(--transition);
}

.rrbcn-latest-feed__headline a:hover {
    color: var(--gold);
}

.rrbcn-latest-feed__meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rrbcn-latest-feed__category {
    color: var(--cyan);
    font-weight: 600;
}

/* ==========================================================================
   22. Animations
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* LIVE dot pulse */
.rrbcn-live-dot {
    width: 8px;
    height: 8px;
    background: var(--crimson);
    border-radius: 50%;
    display: inline-block;
    animation: livePulse 1.5s ease-in-out infinite;
    margin-right: 6px;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* Section fade-in */
.rrbcn-section-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.rrbcn-section-animate--visible {
    opacity: 1;
    transform: translateY(0);
}

/* Gold nav underline slide */
.rrbcn-nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease, left 0.3s ease;
}

.rrbcn-nav__link:hover::after {
    width: 80%;
    left: 10%;
}

/* Section divider accent */
.rrbcn-section-divider {
    border: none;
    height: 2px;
    background: linear-gradient(to right, var(--gold), transparent);
    margin: 2rem 0;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   23. Print Styles
   ========================================================================== */
@media print {
    .rrbcn-header,
    .rrbcn-footer,
    .rrbcn-sidebar,
    .rrbcn-related,
    .rrbcn-comments,
    .rrbcn-digest-banner,
    .rrbcn-back-to-top {
        display: none !important;
    }
    
    body {
        background: #fff;
        color: #000;
    }
    
    .rrbcn-article__body {
    max-width: 720px;
    margin: 0 auto;
}
}


/* ==========================================================================
   Floating Social Share Bar
   ========================================================================== */
.rrbcn-share-float {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 100;
}

.rrbcn-share-float__btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.rrbcn-share-float__btn:hover {
    background: var(--gold);
    color: var(--bg-primary);
    border-color: var(--gold);
    transform: scale(1.1);
}

.rrbcn-share-float__btn--whatsapp:hover { background: #25d366; border-color: #25d366; color: #fff; }
.rrbcn-share-float__btn--telegram:hover { background: var(--cyan); border-color: var(--cyan); color: #fff; }
.rrbcn-share-float__btn--twitter:hover { background: #1da1f2; border-color: #1da1f2; color: #fff; }
.rrbcn-share-float__btn--facebook:hover { background: #1877f2; border-color: #1877f2; color: #fff; }

@media (max-width: 1024px) {
    .rrbcn-share-float {
        position: static;
        transform: none;
        flex-direction: row;
        justify-content: center;
        margin: 1.5rem 0;
    }
}

/* ==========================================================================
   24. Multi-Device Responsive Breakpoints (Mobile, Tablet & Desktop)
   ========================================================================== */

/* Mobile Base Touch & Layout Rules (< 768px) */
@media (max-width: 767px) {
    .rrbcn-header__btn,
    .rrbcn-theme-toggle,
    .rrbcn-header__hamburger,
    .rrbcn-card__bookmark,
    .rrbcn-breaking__close {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .rrbcn-top-bar__tagline {
        display: none;
    }

    .rrbcn-top-bar__right {
        gap: 0.5rem;
        font-size: 0.75rem;
    }

    .rrbcn-top-bar__link:not(:first-child) {
        display: none;
    }

    .rrbcn-hero__card {
        aspect-ratio: 16/9;
    }

    .rrbcn-latest-feed__item {
        flex-direction: row;
        gap: 0.75rem;
    }

    .rrbcn-latest-feed__thumb {
        width: 100px;
        height: 70px;
        flex-shrink: 0;
    }

    .rrbcn-post-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Tablet Layout Rules (768px to 1023px) */
@media (min-width: 768px) {
    .rrbcn-nav { display: block !important; }
    .rrbcn-header__hamburger { display: none !important; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .rrbcn-category-row__grid,
    .rrbcn-post-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem;
    }

    .rrbcn-main-content,
    .rrbcn-home {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .rrbcn-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop Layout Rules (>= 1024px) */
@media (min-width: 1024px) {
    .rrbcn-category-row__grid { grid-template-columns: repeat(4, 1fr); }
    
    .rrbcn-main-content, .rrbcn-home {
        display: grid;
        grid-template-columns: 1fr 300px;
        gap: 2rem;
    }
    
    .rrbcn-sidebar {
        position: sticky;
        top: 100px;
    }

    .rrbcn-footer__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1280px) {
    .rrbcn-hero__card { aspect-ratio: 21/9; }
    .rrbcn-main-content, .rrbcn-home { grid-template-columns: 1fr 340px; }
}
