/*
Theme Name: The Hindu Club Portal V-2.3.0
Theme URI: https://thehindu.club
Author: The Hindu Club Engineering Team
Author URI: https://thehindu.club
Description: High-authority, zero-confusion educational and civil services study deck theme. Engineered for Indian competitive exam aspirants (UPSC CSE, SSC CGL, Banking, State PSC). Features Sticky Glassmorphic Multi-Stream Study Desk Switcher with immediate hash-state persistence, All India Test Series Portal (88 authentic TCS iON CBT mocks across SSC, Banking, Railways & UPSC), Sovereign Resource Centre (Prelims, Mains, Descriptive), Executive PDF Compendiums, and automated daily editorial dispatches.
Version: 2.3.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thehinduclub
Tags: education, blog, broadsheet, dark-mode, responsive-layout, grid-layout
*/

/* ==========================================================================
   0. UNIVERSAL BRAND IDENTITY: LOGO & CENTERED SLOGAN
   ========================================================================== */
#headerBrandBlock, .header-brand-block {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}

#headerBrandBlock a, .header-brand-block a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto !important;
  text-align: center !important;
  text-decoration: none !important;
}

#headerBrandBlock img, .header-brand-block img, #authModalBrandBlock img {
  height: 34px !important;
  width: auto !important;
  max-height: 38px !important;
  object-fit: contain !important;
  margin: 0 auto !important;
}

html.dark #headerBrandBlock img.light-logo,
html.dark .header-brand-block img.light-logo {
  display: none !important;
}
html.dark #headerBrandBlock img.dark-logo,
html.dark .header-brand-block img.dark-logo {
  display: block !important;
}
html:not(.dark) #headerBrandBlock img.light-logo,
html:not(.dark) .header-brand-block img.light-logo {
  display: block !important;
}
html:not(.dark) #headerBrandBlock img.dark-logo,
html:not(.dark) .header-brand-block img.dark-logo {
  display: none !important;
}

#headerBrandBlock .brand-slogan,
.header-brand-block .brand-slogan {
  display: block !important;
  margin: 3px 0 0 0 !important;
  text-align: center !important;
  width: 100% !important;
  font-family: var(--font-sans), 'Plus Jakarta Sans', sans-serif !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: -0.15px !important;
  line-height: 1.2 !important;
  color: #64748b !important;
}

html.dark #headerBrandBlock .brand-slogan,
html.dark .header-brand-block .brand-slogan {
  color: #94a3b8 !important;
}

/* ==========================================================================
   DIRECT HIGH-CONTRAST DUAL-THEME SWITCHER RULES
   ========================================================================== */
html.dark {
  color-scheme: dark;
}
html.dark, html.dark body {
  background-color: #070D18 !important;
  color: #F1F5F9 !important;
}
html.dark header {
  background-color: #0B1424 !important;
  border-color: #1F3154 !important;
}
html.dark nav {
  background-color: #0B1424 !important;
  border-color: #1F3154 !important;
}
html.dark nav a {
  color: #CBD5E1 !important;
}
html.dark nav a:hover {
  background-color: #13213B !important;
  color: #FFFFFF !important;
}
html.dark #themeToggleBtn {
  background-color: #13213B !important;
  border-color: #1F3154 !important;
  color: #F59E0B !important;
}
html.dark .bg-white {
  background-color: #0E1A2F !important;
  color: #F1F5F9 !important;
}
html.dark .bg-slate-50, html.dark .bg-slate-100 {
  background-color: #0E1A2F !important;
  border-color: #1F3154 !important;
}
html.dark .text-slate-900, html.dark .text-slate-800, html.dark .text-slate-700 {
  color: #F1F5F9 !important;
}
html.dark .text-slate-600, html.dark .text-slate-500 {
  color: #94A3B8 !important;
}
html.dark .border-slate-200, html.dark .border-slate-100 {
  border-color: #1F3154 !important;
}

/* ==========================================================================
   GUARANTEED RESPONSIVE AUTH MODAL RULES
   ========================================================================== */
#authModal {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 99999 !important;
  background-color: rgba(3, 8, 18, 0.75) !important;
  backdrop-filter: blur(6px) !important;
}
#authModal.hidden,
#authModal[style*="display: none"] {
  display: none !important;
}
#authModal:not(.hidden) {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* ==========================================================================
   1. CORE DESIGN TOKENS & NATIVE DUAL-THEME VARIABLES
   ========================================================================== */
:root {
  /* Color Palette: Sovereign Ashoka Blue, Officer Green & Kesar Gold */
  --ashoka-950: #030812;
  --ashoka-900: #06101E;
  --ashoka-800: #0A192F;
  --ashoka-700: #112240;
  --ashoka-600: #1E3A5F;
  --ashoka-500: #2A4E7E;

  --officer-green: #046A38;
  --officer-emerald: #059669;
  --officer-light: #E8F5E9;
  --officer-dark: #034524;

  --kesar-400: #F59E0B;
  --kesar-500: #D97706;
  --kesar-600: #B45309;
  --kesar-light: #FEF3C7;
  --kesar-dark: #78350F;

  /* Surfaces & Backgrounds (Light Theme Defaults) */
  --bg-page: #FAF9F6;
  --bg-card: #FFFFFF;
  --bg-subtle: #F4F2EC;
  --bg-muted: #EAE6DD;
  
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-faint: #94A3B8;

  --border-color: #E2E8F0;
  --border-subtle: #CBD5E1;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-glow-kesar: 0 0 20px -3px rgba(217, 119, 6, 0.25);
  --shadow-glow-emerald: 0 0 20px -3px rgba(5, 150, 105, 0.25);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Newsreader', Georgia, Cambria, 'Times New Roman', serif;
  --font-cinzel: 'Cinzel', serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, Monaco, monospace;
}

/* Dark Mode Overrides (Triggered by class .dark on <html>) */
html.dark {
  --bg-page: #070D18;
  --bg-card: #0B1424;
  --bg-subtle: #0E1A2F;
  --bg-muted: #13213B;

  --text-primary: #F8FAFC;
  --text-secondary: #E2E8F0;
  --text-muted: #94A3B8;
  --text-faint: #64748B;

  --border-color: #1F3154;
  --border-subtle: #2A4068;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 8px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 20px -4px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   2. GLOBAL RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-page);
  color: var(--text-primary);
  transition: background-color 0.2s ease, color 0.2s ease;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Selection Color */
::selection {
  background: var(--kesar-light);
  color: var(--kesar-600);
}
html.dark ::selection {
  background: rgba(217, 119, 6, 0.4);
  color: #FEF3C7;
}

/* ==========================================================================
   3. LAYOUT UTILITIES
   ========================================================================== */
.container-deck {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container-deck { padding-left: 1.5rem; padding-right: 1.5rem; }
}

.deck-grid-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .deck-grid-main {
    grid-template-columns: 8fr 4fr;
  }
}

/* ==========================================================================
   4. POLISHED LIVE BREAKING TICKER (SMOOTH MARQUEE & PAUSE-ON-HOVER)
   ========================================================================== */
.ticker-container {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.8) 0%, rgba(253, 230, 138, 0.6) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-left: 4px solid var(--kesar-500);
  border-radius: var(--radius-md);
  padding: 0.625rem 0.875rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

html.dark .ticker-container {
  background: linear-gradient(135deg, rgba(30, 20, 5, 0.7) 0%, rgba(45, 25, 5, 0.85) 100%);
  border-color: rgba(245, 158, 11, 0.25);
  border-left-color: var(--kesar-400);
}

.ticker-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: #DC2626;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.4);
}

.ticker-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #FFFFFF;
  animation: pulse-dot 1.2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.ticker-marquee-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}

.ticker-track {
  display: inline-flex;
  gap: 3rem;
  white-space: nowrap;
  animation: marquee-scroll 32s linear infinite;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #78350F;
}

html.dark .ticker-track {
  color: #FDE68A;
}

.ticker-marquee-wrapper:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   5. HIGH-IMPACT EDITORIAL HERO CARD (NEWSROOM BROADSHEET)
   ========================================================================== */
.card-hero-editorial {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-hero-editorial::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--kesar-500) 0%, var(--officer-emerald) 50%, var(--ashoka-500) 100%);
}

.card-hero-editorial:hover {
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-lg);
}

.hero-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 0.875rem;
  letter-spacing: -0.015em;
}

@media (min-width: 640px) {
  .hero-title { font-size: 2.125rem; }
}

.hero-title a:hover {
  color: var(--kesar-600);
}
html.dark .hero-title a:hover {
  color: var(--kesar-400);
}

.hero-syllabus-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.pill-syllabus {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.pill-syllabus.gs2 {
  background: rgba(3, 105, 161, 0.1);
  color: #0284C7;
  border-color: rgba(3, 105, 161, 0.25);
}
html.dark .pill-syllabus.gs2 {
  background: rgba(14, 165, 233, 0.15);
  color: #38BDF8;
}

.pill-syllabus.gs3 {
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
  border-color: rgba(5, 150, 105, 0.25);
}
html.dark .pill-syllabus.gs3 {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
}

.hero-summary-box {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-color);
}

.hero-verdict-ribbon {
  background: linear-gradient(135deg, rgba(232, 245, 233, 0.7) 0%, rgba(209, 250, 229, 0.5) 100%);
  border-left: 4px solid var(--officer-emerald);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 0.875rem 1.125rem;
  margin-bottom: 1.25rem;
}
html.dark .hero-verdict-ribbon {
  background: linear-gradient(135deg, rgba(4, 106, 56, 0.2) 0%, rgba(6, 78, 59, 0.25) 100%);
  border-left-color: #34D399;
}

.hero-actions-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   6. INTERACTIVE TOOL EMBED CARDS (ZERO SERVER UPLOAD CLIENT-SIDE ENGINE)
   ========================================================================== */
.tools-dock-section {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.dock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.grid-tools-3col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .grid-tools-3col {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card-tool-interactive {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.card-tool-interactive:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-subtle);
}

.tool-badge-pill {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text-muted);
}

.tool-interactive-area {
  background: var(--bg-subtle);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.875rem;
  margin-top: 0.875rem;
  margin-bottom: 0.875rem;
}

/* Quick Dropzone inside Resizer Card */
.quick-dropzone {
  text-align: center;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease;
}
.quick-dropzone:hover {
  background: rgba(3, 105, 161, 0.08);
}

/* Quick Mini Typing Box inside Typing Test Card */
.mini-typing-input {
  width: 100%;
  padding: 0.5rem 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  outline: none;
}
.mini-typing-input:focus {
  border-color: var(--officer-emerald);
}

/* Quick DOB Inputs inside Age Card */
.mini-dob-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.375rem;
}
.mini-date-input, .mini-select-input {
  width: 100%;
  padding: 0.375rem 0.5rem;
  font-size: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  outline: none;
}

/* Buttons */
.btn-primary-action {
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-sm);
  transition: transform 0.1s ease, background-color 0.15s ease;
  cursor: pointer;
}
.btn-primary-action:hover {
  transform: translateY(-1px);
}

.btn-blue {
  background: var(--ashoka-800);
  color: #FFFFFF;
}
.btn-blue:hover {
  background: var(--ashoka-700);
}
html.dark .btn-blue {
  background: var(--ashoka-700);
}
html.dark .btn-blue:hover {
  background: var(--ashoka-600);
}

.btn-emerald {
  background: var(--officer-green);
  color: #FFFFFF;
}
.btn-emerald:hover {
  background: var(--officer-emerald);
}

.btn-kesar {
  background: var(--kesar-600);
  color: #FFFFFF;
}
.btn-kesar:hover {
  background: var(--kesar-500);
}

/* ==========================================================================
   7. EXAM STREAM FILTER TABS
   ========================================================================== */
.stream-filter-bar {
  position: -webkit-sticky;
  position: sticky;
  top: 58px;
  z-index: 30;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.875rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}
html.dark .stream-filter-bar {
  background: rgba(11, 20, 36, 0.94);
  border-color: #1F3154;
  box-shadow: 0 4px 24px -2px rgba(0, 0, 0, 0.5);
}
@media (min-width: 768px) {
  .stream-filter-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.tab-btn-pill {
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tab-btn-pill:hover {
  color: var(--text-primary);
}
.tab-btn-pill.active {
  background: var(--ashoka-900) !important;
  color: #FFFFFF !important;
  border-color: var(--ashoka-700) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
html.dark .tab-btn-pill {
  color: #cbd5e1;
}
html.dark .tab-btn-pill:hover {
  color: #ffffff;
}
html.dark .tab-btn-pill.active {
  background: #0f172a !important;
  color: #fbbf24 !important;
  border-color: #f59e0b !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3) !important;
}

/* ==========================================================================
   8. SIDEBAR RIGHT COLUMN & QUESTION OF THE DAY WIDGET
   ========================================================================== */
.widget-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.quiz-option-btn {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  margin-bottom: 0.5rem;
}
.quiz-option-btn:hover {
  background: rgba(3, 105, 161, 0.08);
  border-color: #0284C7;
}

/* ==========================================================================
   9. ENTRY CONTENT & EDITORIAL STYLES
   ========================================================================== */
.entry-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-secondary);
}
.entry-content h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}
.entry-content p {
  margin-bottom: 1.25rem;
}
.entry-content ul, .entry-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.entry-content li {
  margin-bottom: 0.5rem;
}

/* Editorial Callout & Notice Boxes Dark Mode Contrast */
html.dark .entry-content div[style*="#e8f5e9"],
.dark .entry-content div[style*="#e8f5e9"],
html.dark .entry-content div[style*="rgb(232, 245, 233)"],
.dark .entry-content div[style*="rgb(232, 245, 233)"] {
  background: rgba(6, 78, 59, 0.45) !important; /* deep emerald dark */
  border-left-color: #10b981 !important; /* emerald-500 */
  border-radius: 8px !important;
  color: #ecfdf5 !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  border-left: 4px solid #10b981 !important;
}

html.dark .entry-content div[style*="#e8f5e9"] *,
.dark .entry-content div[style*="#e8f5e9"] * {
  color: #ecfdf5 !important;
}

html.dark .entry-content div[style*="#e8f5e9"] strong,
.dark .entry-content div[style*="#e8f5e9"] strong,
html.dark .entry-content div[style*="#e8f5e9"] b,
.dark .entry-content div[style*="#e8f5e9"] b {
  color: #34d399 !important; /* emerald-400 */
}

.print-only {
  display: none !important;
}

/* ==========================================================================
   10. PRINT & CORE WEB VITALS OPTIMIZATIONS (WATERMARKED PDF GENERATOR)
   ========================================================================== */
@media print {
  /* Hide UI chrome, navigation, interactive controls, and sidebar */
  .ticker-container, .stream-filter-bar, header, footer, .tools-dock-section,
  #quizIdentityModal, #authModal, #aspirantTelemetryRibbon, nav, aside, .sidebar,
  .no-print, button, .btn-primary-action, .pdf-hide-on-print, #progressBar {
    display: none !important;
  }
  
  .print-only {
    display: block !important;
  }

  body {
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 11pt !important;
    line-height: 1.6 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Subtle, elegant, non-intrusive brand watermark for PDF export */
  body::before {
    content: "THE HINDU CLUB";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-32deg);
    font-size: 52pt;
    font-weight: 800;
    font-family: 'Cinzel', Georgia, serif;
    color: rgba(100, 116, 139, 0.035) !important;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 999999;
    white-space: nowrap;
  }

  main, article, .card-hero-editorial, .container-deck {
    background: #ffffff !important;
    color: #0f172a !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Constrain images in print so they never blow up to full page height */
  img, svg {
    max-height: 180px !important;
    width: auto !important;
    object-fit: contain !important;
    page-break-inside: avoid;
  }

  /* Emoji and inline icons must stay inline at font size */
  img.emoji, img.wp-smiley {
    display: inline-block !important;
    height: 1.1em !important;
    width: 1.1em !important;
    max-height: 1.1em !important;
    vertical-align: middle !important;
  }

  .print-cover-page {
    page-break-after: always !important;
    break-after: page !important;
  }

  a {
    color: #0f172a !important;
    text-decoration: underline !important;
  }
}

/* ==========================================================================
   10. MULTI-STREAM STUDY DESK SWITCHER & TRANSITIONS
   ========================================================================== */
@keyframes streamFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-streamFadeIn {
  animation: streamFadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes streamFlash {
  0% {
    opacity: 0.15;
    transform: translateY(6px) scale(0.995);
    filter: brightness(1.25);
  }
  50% {
    opacity: 0.85;
    filter: brightness(1.08);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: brightness(1);
  }
}

.animate-streamFlash {
  animation: streamFlash 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stream-panel, .stream-quiz-panel, .stream-radar-panel {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* ==========================================================================
   11. HIGH-CONTRAST DUAL-THEME CALLOUT SYSTEM & UNIVERSAL IN-CONTENT CONTRAST
   Guarantees 100% WCAG AAA legibility across light & dark modes.
   ========================================================================== */
.thc-callout {
  border-radius: 12px;
  padding: 18px 20px;
  margin: 22px 0;
  transition: all 0.2s ease;
}

/* Amber Editorial Summary Callout */
.thc-callout-amber {
  background: #fffbeb;
  border-left: 5px solid #d97706;
  border-top: 1px solid #fef3c7;
  border-right: 1px solid #fef3c7;
  border-bottom: 1px solid #fef3c7;
  color: #78350f;
}
.thc-callout-amber p, .thc-callout-amber strong, .thc-callout-amber em {
  color: #78350f !important;
}

html.dark .thc-callout-amber {
  background: #1c1917 !important;
  border-left: 5px solid #f59e0b !important;
  border-top: 1px solid #44403c !important;
  border-right: 1px solid #44403c !important;
  border-bottom: 1px solid #44403c !important;
  color: #fef08a !important;
}
html.dark .thc-callout-amber p,
html.dark .thc-callout-amber strong,
html.dark .thc-callout-amber em {
  color: #fef08a !important;
}

/* Green Recommended Books Callout */
.thc-callout-books {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-left: 5px solid #059669;
  color: #064e3b;
}
.thc-callout-books p, .thc-callout-books li, .thc-callout-books strong {
  color: #064e3b !important;
}
.thc-callout-books a {
  color: #047857 !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
}

html.dark .thc-callout-books {
  background: #022c22 !important;
  border: 1.5px solid #065f46 !important;
  border-left: 5px solid #10b981 !important;
  color: #ecfdf5 !important;
}
html.dark .thc-callout-books p,
html.dark .thc-callout-books li,
html.dark .thc-callout-books strong {
  color: #ecfdf5 !important;
}
html.dark .thc-callout-books a {
  color: #34d399 !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
}

/* Sky Telegram Callout */
.thc-callout-telegram {
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 12px;
  padding: 20px;
  margin: 25px 0;
  text-align: center;
  color: #1e3a8a;
}
.thc-callout-telegram p, .thc-callout-telegram strong {
  color: #1e3a8a !important;
}
html.dark .thc-callout-telegram {
  background: #082f49 !important;
  border: 1.5px solid #0369a1 !important;
  color: #f0f9ff !important;
}
html.dark .thc-callout-telegram p,
html.dark .thc-callout-telegram strong {
  color: #f0f9ff !important;
}

/* Universal Fallback: Invert/Fix ANY pastel background rendered in Dark Mode */
html.dark .entry-content [style*="background: #f1f8e9"],
html.dark .entry-content [style*="background:#f1f8e9"],
html.dark .entry-content [style*="background: #fff3e0"],
html.dark .entry-content [style*="background:#fff3e0"],
html.dark .entry-content [style*="background: #e3f2fd"],
html.dark .entry-content [style*="background:#e3f2fd"],
html.dark .entry-content [style*="background: #eff6ff"],
html.dark .entry-content [style*="background:#eff6ff"],
html.dark .entry-content [style*="background: #fefce8"],
html.dark .entry-content [style*="background:#fefce8"],
html.dark .entry-content [style*="background: #f8fafc"],
html.dark .entry-content [style*="background:#f8fafc"] {
  background-color: #0b1528 !important;
  color: #f1f5f9 !important;
  border-color: #1e293b !important;
}

html.dark .entry-content [style*="background: #f1f8e9"] *,
html.dark .entry-content [style*="background:#f1f8e9"] *,
html.dark .entry-content [style*="background: #fff3e0"] *,
html.dark .entry-content [style*="background:#fff3e0"] *,
html.dark .entry-content [style*="background: #e3f2fd"] *,
html.dark .entry-content [style*="background:#e3f2fd"] *,
html.dark .entry-content [style*="background: #eff6ff"] *,
html.dark .entry-content [style*="background:#eff6ff"] *,
html.dark .entry-content [style*="background: #fefce8"] *,
html.dark .entry-content [style*="background:#fefce8"] *,
html.dark .entry-content [style*="background: #f8fafc"] * {
  color: #f1f5f9 !important;
}

html.dark .entry-content [style*="background: #f1f8e9"] a,
html.dark .entry-content [style*="background:#f1f8e9"] a,
html.dark .entry-content [style*="background: #fff3e0"] a,
html.dark .entry-content [style*="background:#fff3e0"] a,
html.dark .entry-content [style*="background: #e3f2fd"] a,
html.dark .entry-content [style*="background:#e3f2fd"] a {
  color: #38bdf8 !important;
  text-decoration: underline !important;
}

/* Job Radar Action Button Full-Width & Non-Breaking Layout */
.job-action-btn {
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 8px 14px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  font-family: var(--font-mono), monospace !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}


