/*
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) */
    --bg-primary: #0a1628;
    --bg-card: #111d35;
    --bg-card-hover: #162a4a;
    --border-color: #1e3a5f;
    --navy: #0A2540;
    
    --gold: #fbbf24;
    --gold-secondary: #D4A843;
    --gold-hover: #f59e0b;
    
    --teal: #0d9488;
    --teal-light: #2dd4bf;
    
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --header-gradient: linear-gradient(135deg, #0c2d6b, #1565c0);
    
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.4);
    
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --font-body: 'Poppins', sans-serif;
    --font-heading: 'Poppins', sans-serif;
}

[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --border-color: #e2e8f0;
    
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-dim: #94a3b8;
    
    --header-gradient: linear-gradient(135deg, #1565c0, #1976d2);
    
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
}

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

.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. Header
   ========================================================================== */
.rrbcn-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--header-gradient);
    backdrop-filter: blur(10px);
    height: 70px;
    display: flex;
    align-items: center;
    transition: height var(--transition), box-shadow var(--transition);
}

.rrbcn-header--scrolled {
    height: 56px;
    box-shadow: var(--shadow);
}

.rrbcn-header .rrbcn-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rrbcn-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff !important;
}

.rrbcn-logo span {
    color: var(--gold);
    margin-right: 0.25rem;
}

.rrbcn-nav {
    display: none;
}

.rrbcn-nav__menu {
    list-style: none;
    display: flex;
    gap: 0.5rem;
}

.rrbcn-nav__menu li {
    position: relative;
}

.rrbcn-nav__menu a {
    color: #ffffff;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    position: relative;
}

.rrbcn-nav__menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.75rem;
    right: 0.75rem;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.rrbcn-nav__menu a:hover::after {
    transform: scaleX(1);
}

.rrbcn-header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rrbcn-header__actions button {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition);
}

.rrbcn-header__actions button:hover {
    color: var(--gold);
}

.rrbcn-theme-toggle svg {
    transition: transform 0.5s ease;
}

.rrbcn-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-card);
    z-index: 999;
    transition: right var(--transition);
    padding: 5rem 1.5rem 2rem;
    box-shadow: var(--shadow-hover);
    overflow-y: auto;
}

.rrbcn-mobile-menu--open {
    right: 0;
}

/* ==========================================================================
   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__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;
    width: 100%;
    padding: 1.5rem;
    z-index: 2;
}

.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: all var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.rrbcn-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

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

.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: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.rrbcn-trending__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.rrbcn-trending__number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.rrbcn-trending__content .rrbcn-card__title {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

/* ==========================================================================
   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 {
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

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

/* ==========================================================================
   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;
    padding-top: 2rem;
}

.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;
    font-size: 1.05rem;
    line-height: 1.8;
}

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

/* ==========================================================================
   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;
    gap: 3rem;
    padding: 4rem 0;
}

.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 {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-dim);
}

/* ==========================================================================
   13. Digest Banner
   ========================================================================== */
.rrbcn-digest-banner {
    /* Hidden: a fixed bottom bar was overlapping page content on every
       viewport size, reading as broken rather than intentional. */
    display: none;
}

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

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

@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: 100%;
    }
}

/* ==========================================================================
   24. Responsive Breakpoints
   ========================================================================== */
@media (min-width: 480px) {
    .rrbcn-hero__card { aspect-ratio: 16/9; }
}

@media (min-width: 768px) {
    .rrbcn-category-row__grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        overflow-x: visible;
        padding-bottom: 0;
    }
    .rrbcn-category-row__grid > * { min-width: auto; }
    
    .rrbcn-footer__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .rrbcn-nav { display: block; }
    .rrbcn-mobile-menu, .rrbcn-header__actions .rrbcn-btn-menu { display: none; }
    
    .rrbcn-category-row__grid { grid-template-columns: repeat(4, 1fr); }
    
    .rrbcn-main-content {
        display: grid;
        grid-template-columns: 1fr 300px;
        gap: 2rem;
    }
    
    .rrbcn-sidebar {
        position: sticky;
        top: 100px;
    }
}

@media (min-width: 1280px) {
    .rrbcn-hero__card { aspect-ratio: 21/9; }
    .rrbcn-main-content { grid-template-columns: 1fr 340px; }
}
