/*
Theme Name: YJ Notes
Theme URI: https://yjnotes.com
Author: YJ Notes
Description: Rajasthan ke competitive exam students ke liye W3Schools-style educational portal. Dynamic sidebar, quiz system, bookmarks, student login — sab kuch included.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: yj-notes
Tags: education, learning, sidebar, quiz, responsive, custom-menu, rajasthan
*/

/* ================================================================
   YJ NOTES — COMPLETE THEME v2.0
   Rajasthan Competitive Exam Portal
   W3Schools + Javatpoint Style
   ================================================================ */

/* ---- Google Fonts loaded via functions.php ---- */

:root {
  /* Brand Colors from Logo */
  --yj-red:        #8B0000;
  --yj-red-light:  #A52020;
  --yj-red-dark:   #5C0000;
  --yj-gold:       #C9A84C;
  --yj-gold-light: #E2C97E;
  --yj-navy:       #1a1a2e;
  --yj-cream:      #FDF6EC;

  /* UI Colors */
  --bg:            #F4F6F9;
  --surface:       #FFFFFF;
  --surface2:      #FDF0EE;
  --border:        #E2D5D0;
  --text:          #1C1C1C;
  --text-muted:    #6B7280;
  --text-light:    #9CA3AF;

  /* Sidebar */
  --sidebar-bg:    #FFFFFF;
  --sidebar-w:     280px;
  --left-nav-w:    220px;

  /* Topbar */
  --topbar-h:      64px;
  --topbar-bg:     #6B0000;

  /* Topic Sidebar (right-of-left-nav, like W3Schools) */
  --topic-sidebar-w: 260px;

  /* Misc */
  --radius:        8px;
  --radius-lg:     14px;
  --shadow:        0 2px 12px rgba(139,0,0,0.08);
  --shadow-md:     0 4px 20px rgba(139,0,0,0.12);
  --shadow-lg:     0 8px 40px rgba(139,0,0,0.16);

  /* Fonts */
  --font:          'Nunito', sans-serif;
  --font-mono:     'Fira Code', monospace;
  --font-display:  'Playfair Display', serif;
}

/* ================================================================
   RESET & BASE
   ================================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 15px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--yj-red); text-decoration: none; transition: color .18s; }
a:hover { color: var(--yj-red-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.5em; }
button { cursor: pointer; font-family: var(--font); }

/* ================================================================
   ACCESSIBILITY
   ================================================================ */
.skip-link {
  position: absolute; top: -50px; left: 0;
  background: var(--yj-red); color: #fff;
  padding: 8px 16px; z-index: 99999;
  font-weight: 700; border-radius: 0 0 8px 0;
}
.skip-link:focus { top: 0; }
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px,1px,1px,1px);
  height: 1px; width: 1px; overflow: hidden;
}

/* ================================================================
   TOP NAVBAR
   ================================================================ */
#masthead {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: var(--topbar-bg);
  display: flex; align-items: center;
  padding: 0 18px;
  z-index: 9000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
  gap: 14px;
}

/* Logo Area */
.yj-logo-wrap {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.yj-logo-img {
  height: 44px; width: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--yj-gold);
  background: #fff;
}
.yj-logo-text {
  display: flex; flex-direction: column; line-height: 1.1;
}
.yj-logo-title {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 700;
  color: #fff; letter-spacing: 0.5px;
}
.yj-logo-title span { color: var(--yj-gold); }
.yj-logo-tagline {
  font-size: 0.62rem; color: rgba(255,255,255,0.6);
  font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase;
}

/* Header Search */
.header-search {
  flex: 1; max-width: 420px;
  margin: 0 10px;
}
.header-search form {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 8px; height: 38px;
  transition: all .2s;
}
.header-search form:focus-within {
  background: rgba(255,255,255,0.18);
  border-color: var(--yj-gold);
}
.header-search input[type=search] {
  flex: 1; background: none; border: none; outline: none;
  color: #fff; font-family: var(--font); font-size: .88rem;
  padding: 0 14px;
}
.header-search input::placeholder { color: rgba(255,255,255,.5); }
.header-search button {
  background: none; border: none;
  color: rgba(255,255,255,.7); padding: 0 13px;
  font-size: .95rem; height: 100%;
  transition: color .18s;
}
.header-search button:hover { color: var(--yj-gold); }

/* Top Nav Links */
.top-nav { margin-left: auto; }
.top-nav ul { list-style: none; padding: 0; display: flex; align-items: center; gap: 3px; }
.top-nav ul li a {
  color: rgba(255,255,255,.82);
  font-size: .82rem; font-weight: 700;
  padding: 7px 13px; border-radius: 6px;
  transition: all .18s; display: block;
}
.top-nav ul li a:hover,
.top-nav ul li.current-menu-item a {
  background: rgba(255,255,255,.14); color: #fff;
}
.top-nav ul li.menu-btn-login a {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3); color: #fff;
}
.top-nav ul li.menu-btn-register a {
  background: var(--yj-gold); color: var(--yj-navy);
  border-radius: 7px;
}
.top-nav ul li.menu-btn-register a:hover { background: var(--yj-gold-light); }

/* Mobile Toggle */
.mobile-toggle {
  display: none; background: none; border: none;
  color: #fff; font-size: 1.3rem;
  margin-left: auto; padding: 5px 8px;
}

/* ================================================================
   PAGE LAYOUT — 3-COLUMN LIKE W3SCHOOLS
   ================================================================ */
#page {
  padding-top: var(--topbar-h);
  min-height: 100vh;
  display: flex; flex-direction: column;
}

/* Left Category Nav (narrow) */
#yj-left-nav {
  position: fixed;
  top: var(--topbar-h); bottom: 0; left: 0;
  width: var(--left-nav-w);
  background: var(--yj-navy);
  overflow-y: auto; z-index: 800;
  transition: transform .3s ease;
  padding-bottom: 40px;
}
#yj-left-nav::-webkit-scrollbar { width: 3px; }
#yj-left-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 3px; }

/* Topic Sidebar (changes per category) */
#yj-topic-sidebar {
  position: fixed;
  top: var(--topbar-h); bottom: 0;
  left: var(--left-nav-w);
  width: var(--topic-sidebar-w);
  background: var(--surface);
  border-right: 1.5px solid var(--border);
  overflow-y: auto; z-index: 700;
  transition: transform .3s ease;
  padding-bottom: 40px;
}
#yj-topic-sidebar::-webkit-scrollbar { width: 3px; }
#yj-topic-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* Main Content */
#yj-main-content {
  margin-left: calc(var(--left-nav-w) + var(--topic-sidebar-w));
  flex: 1;
  min-height: calc(100vh - var(--topbar-h));
}

/* Content Inner */
.yj-content-inner {
  padding: 28px 32px 60px;
  max-width: 960px;
}

/* ================================================================
   LEFT CATEGORY NAV (Dark)
   ================================================================ */
.lnav-logo-section {
  padding: 20px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 8px;
}
.lnav-logo-section img {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2px solid var(--yj-gold);
  margin: 0 auto 10px;
}
.lnav-logo-section .lnav-site-name {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700;
  color: #fff;
}
.lnav-logo-section .lnav-site-name span { color: var(--yj-gold); }

.lnav-section { padding: 6px 0; }
.lnav-section-title {
  font-size: .6rem; font-weight: 900;
  letter-spacing: 1.8px; text-transform: uppercase;
  color: rgba(255,255,255,.35);
  padding: 8px 16px 4px;
}

.lnav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  font-size: .85rem; font-weight: 700;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  transition: all .16s;
  border-left: 3px solid transparent;
  position: relative;
}
.lnav-item:hover {
  background: rgba(255,255,255,.07);
  color: #fff;
}
.lnav-item.active {
  background: rgba(201,168,76,.12);
  color: var(--yj-gold);
  border-left-color: var(--yj-gold);
}
.lnav-item .lnav-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; flex-shrink: 0;
  background: rgba(255,255,255,.06);
}
.lnav-item.active .lnav-icon { background: rgba(201,168,76,.2); }
.lnav-item .lnav-count {
  margin-left: auto;
  font-size: .62rem; font-weight: 900;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.5);
  padding: 2px 7px; border-radius: 20px;
}
.lnav-item.active .lnav-count { background: rgba(201,168,76,.25); color: var(--yj-gold); }

.lnav-divider { height: 1px; background: rgba(255,255,255,.07); margin: 6px 14px; }

/* ================================================================
   TOPIC SIDEBAR (White, changes dynamically)
   ================================================================ */
.tsidebar-header {
  padding: 16px 18px 10px;
  border-bottom: 1.5px solid var(--border);
  background: var(--surface2);
  position: sticky; top: 0; z-index: 10;
}
.tsidebar-cat-title {
  font-size: .72rem; font-weight: 900;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--yj-red); margin-bottom: 6px;
}
.tsidebar-search input {
  width: 100%; padding: 7px 12px;
  border: 1.5px solid var(--border);
  border-radius: 6px; font-family: var(--font);
  font-size: .82rem; outline: none;
  background: var(--surface);
  transition: border-color .18s;
}
.tsidebar-search input:focus { border-color: var(--yj-red); }

.tsidebar-group { padding: 10px 0 4px; }
.tsidebar-group-title {
  font-size: .64rem; font-weight: 900;
  letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 16px 6px;
}
.tsidebar-link {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  font-size: .85rem; font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: all .15s;
  border-left: 3px solid transparent;
  position: relative;
}
.tsidebar-link:hover {
  background: var(--surface2);
  color: var(--yj-red);
}
.tsidebar-link.active {
  background: #FFF0EE;
  color: var(--yj-red);
  border-left-color: var(--yj-red);
  font-weight: 800;
}
.tsidebar-link .tlink-icon { font-size: .75rem; }
.tsidebar-link .tlink-badge {
  margin-left: auto; font-size: .6rem; font-weight: 900;
  padding: 1px 6px; border-radius: 10px;
  background: #FEE2E2; color: var(--yj-red);
}
.tsidebar-link .tlink-badge.green { background: #D1FAE5; color: #065F46; }
.tsidebar-divider { height: 1px; background: var(--border); margin: 6px 16px; }

/* Progress indicator in topic sidebar */
.tsidebar-progress {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface2);
  position: sticky; bottom: 0;
}
.tsidebar-progress-label {
  font-size: .7rem; font-weight: 800;
  color: var(--text-muted); margin-bottom: 6px;
  display: flex; justify-content: space-between;
}
.tsidebar-progress-bar {
  height: 6px; background: var(--border);
  border-radius: 99px; overflow: hidden;
}
.tsidebar-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--yj-red), var(--yj-red-light));
  border-radius: 99px;
  transition: width .4s;
}

/* ================================================================
   MAIN CONTENT AREA
   ================================================================ */

/* Breadcrumb */
.yj-breadcrumb {
  display: flex; align-items: center; gap: 7px;
  font-size: .78rem; font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.yj-breadcrumb a { color: var(--yj-red); }
.yj-breadcrumb .sep { color: var(--text-light); }
.yj-breadcrumb .current { color: var(--text-muted); }

/* Page Title */
.yj-page-title {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 700;
  color: var(--yj-navy);
  line-height: 1.2; margin-bottom: 10px;
}
.yj-page-subtitle {
  font-size: .9rem; color: var(--text-muted);
  margin-bottom: 24px; line-height: 1.6;
}

/* ================================================================
   HERO BANNER (Homepage)
   ================================================================ */
.yj-hero {
  background: linear-gradient(135deg, var(--yj-red-dark) 0%, var(--yj-red) 55%, #B22222 100%);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
/* Big logo watermark */
.yj-hero .hero-bg-logo {
  position: absolute; right: -30px; top: 50%;
  transform: translateY(-50%);
  width: 260px; height: 260px;
  opacity: 0.07;
  border-radius: 50%;
  object-fit: cover;
}
.hero-left { z-index: 1; max-width: 520px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(201,168,76,.2);
  border: 1px solid rgba(201,168,76,.4);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: .72rem; font-weight: 900;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--yj-gold);
  margin-bottom: 14px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: 2.1rem; font-weight: 700;
  color: #fff; line-height: 1.2;
  margin-bottom: 12px;
}
.hero-title span { color: var(--yj-gold); }
.hero-desc {
  color: rgba(255,255,255,.78);
  font-size: .93rem; line-height: 1.7;
  margin-bottom: 22px;
}
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.hero-right {
  z-index: 1;
  display: flex; flex-direction: column; gap: 10px;
}
.hero-stat {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  padding: 14px 22px;
  text-align: center;
  backdrop-filter: blur(8px);
  min-width: 120px;
}
.hero-stat-num { font-size: 1.6rem; font-weight: 900; color: #fff; }
.hero-stat-lbl { font-size: .68rem; color: rgba(255,255,255,.6); font-weight: 700; letter-spacing: .5px; margin-top: 2px; }

/* ================================================================
   BUTTONS
   ================================================================ */
.yj-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 22px; border-radius: 8px;
  font-family: var(--font); font-size: .86rem;
  font-weight: 800; border: none;
  transition: all .18s; text-decoration: none; line-height: 1;
}
.yj-btn-primary { background: var(--yj-gold); color: var(--yj-navy); }
.yj-btn-primary:hover { background: var(--yj-gold-light); transform: translateY(-1px); color: var(--yj-navy); }
.yj-btn-outline { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.3); }
.yj-btn-outline:hover { background: rgba(255,255,255,.2); color: #fff; }
.yj-btn-red { background: var(--yj-red); color: #fff; }
.yj-btn-red:hover { background: var(--yj-red-dark); color: #fff; }
.yj-btn-ghost { background: #FFF0EE; color: var(--yj-red); }
.yj-btn-ghost:hover { background: var(--yj-red); color: #fff; }
.yj-btn-sm { padding: 7px 16px; font-size: .8rem; }

/* ================================================================
   SECTION HEADERS
   ================================================================ */
.section-hdr {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-hdr-title {
  font-size: 1.05rem; font-weight: 900;
  color: var(--text);
  display: flex; align-items: center; gap: 9px;
}
.section-dot {
  width: 10px; height: 10px;
  background: var(--yj-red); border-radius: 50%;
}
.see-all {
  font-size: .8rem; font-weight: 700;
  color: var(--yj-red);
  padding: 5px 13px; border-radius: 6px;
  background: #FFF0EE;
  transition: all .15s; text-decoration: none;
}
.see-all:hover { background: var(--yj-red); color: #fff; }

/* ================================================================
   NOTES CARDS GRID
   ================================================================ */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 18px; margin-bottom: 30px;
}
.note-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .2s;
  box-shadow: var(--shadow);
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
}
.note-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--yj-red-light);
  color: inherit;
}
.note-card-stripe { height: 5px; }
.nc-body { padding: 16px 17px 12px; flex: 1; }
.nc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.nc-tag {
  font-size: .66rem; font-weight: 900;
  padding: 3px 9px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .5px;
}
.nc-tag-sub  { background: #FFF0EE; color: var(--yj-red); }
.nc-tag-new  { background: #FFFBEB; color: #92400E; }
.nc-tag-quiz { background: #ECFDF5; color: #065F46; }
.nc-tag-imp  { background: #FFF0EE; color: #9B1C1C; }
.nc-tag-exam { background: #EEF2FF; color: #3730A3; }
.nc-tag-free { background: #ECFDF5; color: #065F46; }

.nc-title { font-size: .96rem; font-weight: 800; color: var(--text); margin-bottom: 7px; line-height: 1.35; }
.nc-desc  { font-size: .81rem; color: var(--text-muted); line-height: 1.55; }
.nc-footer {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 9px 17px;
  border-top: 1px solid var(--border);
  background: #FAFAFA;
}
.nc-meta { font-size: .73rem; color: var(--text-muted); font-weight: 700; display: flex; align-items: center; gap: 5px; }
.nc-progress { width: 72px; height: 5px; background: var(--border); border-radius: 99px; overflow: hidden; }
.nc-progress-fill { height: 100%; background: linear-gradient(90deg,#27AE60,#2ECC71); border-radius: 99px; }

/* Stripe colors */
.s-red    { background: linear-gradient(90deg,#8B0000,#C0392B); }
.s-gold   { background: linear-gradient(90deg,#C9A84C,#F4D03F); }
.s-green  { background: linear-gradient(90deg,#27AE60,#2ECC71); }
.s-blue   { background: linear-gradient(90deg,#2980B9,#3498DB); }
.s-purple { background: linear-gradient(90deg,#8E44AD,#9B59B6); }
.s-teal   { background: linear-gradient(90deg,#16A085,#1ABC9C); }

/* ================================================================
   CATEGORY PILLS (Homepage)
   ================================================================ */
.cat-pills {
  display: flex; gap: 9px;
  flex-wrap: wrap; margin-bottom: 24px;
}
.cat-pill {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 17px; border-radius: 40px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  font-size: .83rem; font-weight: 700;
  color: var(--text-muted);
  transition: all .16s;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.cat-pill:hover, .cat-pill.active {
  background: var(--yj-red);
  color: #fff; border-color: var(--yj-red);
  box-shadow: 0 3px 14px rgba(139,0,0,.22);
}

/* ================================================================
   UPDATES LIST
   ================================================================ */
.updates-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.update-item {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 17px;
  display: flex; align-items: flex-start; gap: 13px;
  transition: all .16s; text-decoration: none; color: inherit;
}
.update-item:hover { border-color: var(--yj-red-light); box-shadow: var(--shadow); color: inherit; }
.update-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.update-info { flex: 1; }
.update-title { font-size: .9rem; font-weight: 800; margin-bottom: 3px; color: var(--text); }
.update-desc  { font-size: .79rem; color: var(--text-muted); line-height: 1.5; }
.update-time  { font-size: .72rem; color: var(--text-light); font-weight: 700; white-space: nowrap; }

/* ================================================================
   TWO-COLUMN WRAPPER
   ================================================================ */
.two-col { display: grid; grid-template-columns: 1fr 290px; gap: 22px; margin-bottom: 28px; }

/* ================================================================
   WIDGET BOX
   ================================================================ */
.yj-box {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.yj-box-head {
  padding: 12px 17px; border-bottom: 1.5px solid var(--border);
  font-size: .87rem; font-weight: 900;
  display: flex; align-items: center; gap: 8px;
  background: #FAFAFA;
}

/* Topics Table */
.topics-table { width: 100%; border-collapse: collapse; }
.topics-table tr { border-bottom: 1px solid var(--border); cursor: pointer; transition: background .13s; }
.topics-table tr:last-child { border-bottom: none; }
.topics-table tr:hover { background: #FFF5F5; }
.topics-table td { padding: 10px 15px; font-size: .84rem; }
.topics-table td:first-child { font-weight: 700; color: var(--text); }
.topics-table td:nth-child(2) { text-align: center; }
.topics-table td:last-child { text-align: right; font-size: .76rem; color: var(--text-muted); font-weight: 700; }

.lvl-badge {
  display: inline-block; font-size: .64rem; font-weight: 900;
  padding: 2px 8px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .5px;
}
.lvl-easy   { background: #ECFDF5; color: #065F46; }
.lvl-medium { background: #FFFBEB; color: #92400E; }
.lvl-hard   { background: #FEF2F2; color: #991B1B; }

/* Recent List */
.recent-list { list-style: none; padding: 0; }
.recent-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 15px; border-bottom: 1px solid var(--border);
  font-size: .83rem; cursor: pointer;
  transition: background .13s;
}
.recent-list li:last-child { border-bottom: none; }
.recent-list li:hover { background: #FFF5F5; }
.r-num {
  width: 22px; height: 22px; border-radius: 6px;
  background: #FFF0EE; color: var(--yj-red);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 900; flex-shrink: 0;
}
.r-info { flex: 1; }
.r-title { font-weight: 700; color: var(--text); line-height: 1.3; }
.r-sub   { font-size: .71rem; color: var(--text-muted); margin-top: 2px; }

/* ================================================================
   QUIZ CARD
   ================================================================ */
.quiz-card {
  background: linear-gradient(135deg, var(--yj-red-dark), var(--yj-red));
  border-radius: var(--radius-lg);
  padding: 22px 24px; color: #fff;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-md); margin-bottom: 16px;
}
.quiz-card::after {
  content: '?';
  position: absolute; right: 18px; top: 50%;
  transform: translateY(-50%);
  font-size: 5.5rem; font-weight: 900;
  opacity: .06; font-family: var(--font-display);
}
.quiz-label {
  font-size: .65rem; font-weight: 900; letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--yj-gold); color: var(--yj-navy);
  display: inline-block; padding: 3px 11px; border-radius: 20px;
  margin-bottom: 11px;
}
.quiz-card h3 { font-size: 1rem; font-weight: 900; margin-bottom: 15px; line-height: 1.35; }
.quiz-options { display: flex; flex-direction: column; gap: 7px; }
.quiz-opt {
  background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 7px; padding: 8px 13px;
  font-size: .85rem; font-weight: 700;
  color: rgba(255,255,255,.9);
  transition: all .16s; text-align: left; width: 100%;
  font-family: var(--font);
}
.quiz-opt:hover:not(:disabled) { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.4); }
.quiz-opt.correct { background: rgba(39,174,96,.3); border-color: #27AE60; }
.quiz-opt.wrong   { background: rgba(231,76,60,.3);  border-color: #E74C3C; }
.quiz-opt:disabled { cursor: default; }
.quiz-result-msg { margin-top: 12px; font-size: .84rem; font-weight: 700; text-align: center; }

/* ================================================================
   FEATURED / RAJASTHAN SPECIAL SECTION
   ================================================================ */
.feat-box {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; margin-bottom: 28px; box-shadow: var(--shadow);
}
.feat-left {
  background: linear-gradient(160deg, var(--yj-red-dark), var(--yj-red));
  min-width: 190px; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 26px 20px; color: #fff; text-align: center;
}
.feat-left .fl-icon { font-size: 3rem; margin-bottom: 10px; }
.feat-left .fl-cat  { font-size: .65rem; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; color: var(--yj-gold); margin-bottom: 5px; }
.feat-left .fl-title{ font-size: .96rem; font-weight: 900; line-height: 1.3; }
.feat-right { padding: 22px 26px; flex: 1; }
.feat-right .fr-desc{ font-size: .86rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }

/* ================================================================
   SINGLE POST / ENTRY CONTENT
   ================================================================ */
.entry-header { margin-bottom: 24px; }
.entry-title  { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--yj-navy); line-height: 1.25; margin-bottom: 12px; }
.entry-meta   { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--text-muted); font-weight: 700; margin-bottom: 20px; }
.entry-meta a { color: var(--yj-red); }
.entry-meta .meta-sep { color: var(--border); }

/* Action Bar (bookmark, share) */
.entry-actions {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: var(--surface);
  border: 1.5px solid var(--border); border-radius: var(--radius);
  margin-bottom: 22px; flex-wrap: wrap;
}
.entry-actions .action-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 7px;
  font-size: .8rem; font-weight: 800;
  background: #FFF0EE; color: var(--yj-red);
  border: 1.5px solid #FECACA;
  transition: all .16s; cursor: pointer; font-family: var(--font);
}
.entry-actions .action-btn:hover { background: var(--yj-red); color: #fff; border-color: var(--yj-red); }
.entry-actions .action-btn.bookmarked { background: var(--yj-red); color: #fff; border-color: var(--yj-red); }

.entry-content { font-size: .95rem; line-height: 1.82; color: var(--text); }
.entry-content h2 { font-size: 1.4rem; font-weight: 900; margin: 1.8em 0 .7em; color: var(--yj-navy); border-bottom: 2px solid var(--border); padding-bottom: 8px; }
.entry-content h3 { font-size: 1.15rem; font-weight: 900; margin: 1.5em 0 .6em; color: var(--yj-navy); }
.entry-content h4 { font-size: 1rem; font-weight: 900; margin: 1.2em 0 .5em; }
.entry-content p  { margin-bottom: 1em; }
.entry-content ul, .entry-content ol { margin-bottom: 1em; }
.entry-content li { margin-bottom: .4em; }
.entry-content blockquote {
  border-left: 4px solid var(--yj-red);
  background: var(--surface2); padding: 14px 20px;
  border-radius: 0 8px 8px 0; margin: 1.5em 0;
  font-style: italic; color: var(--text-muted);
}
.entry-content code {
  font-family: var(--font-mono); background: #1C1C2E;
  color: #C3E88D; padding: 2px 7px; border-radius: 5px; font-size: .87em;
}
.entry-content pre {
  background: #1C1C2E; border-radius: 10px;
  padding: 18px 20px; overflow-x: auto;
  margin: 1.5em 0; border: 1px solid #2D2D4E;
  font-family: var(--font-mono); font-size: .87rem; line-height: 1.7; color: #E0E0E0;
}
.entry-content img { border-radius: var(--radius); margin: 1.5em auto; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .9rem; }
.entry-content table th { background: var(--yj-red); color: #fff; padding: 10px 14px; text-align: left; font-weight: 800; }
.entry-content table td { padding: 9px 14px; border-bottom: 1px solid var(--border); }
.entry-content table tr:hover { background: var(--surface2); }
.entry-content a { color: var(--yj-red); text-decoration: underline; }

/* Info/Warn boxes */
.yj-info { background: #EFF6FF; border-left: 4px solid #3B82F6; border-radius: 0 8px 8px 0; padding: 14px 18px; margin: 1.5em 0; font-size: .9rem; }
.yj-warn { background: #FFFBEB; border-left: 4px solid #F59E0B; border-radius: 0 8px 8px 0; padding: 14px 18px; margin: 1.5em 0; font-size: .9rem; }
.yj-tip  { background: #ECFDF5; border-left: 4px solid #10B981; border-radius: 0 8px 8px 0; padding: 14px 18px; margin: 1.5em 0; font-size: .9rem; }

/* Prev/Next Nav */
.post-nav { display: flex; gap: 14px; margin-top: 30px; padding-top: 22px; border-top: 1.5px solid var(--border); }
.post-nav a {
  flex: 1; background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 13px 17px;
  font-size: .86rem; font-weight: 700; color: var(--text);
  transition: all .18s;
}
.post-nav a:hover { border-color: var(--yj-red); background: #FFF5F5; color: var(--yj-red); }
.post-nav-next { text-align: right; }
.nav-sub { font-size: .68rem; color: var(--text-muted); display: block; margin-bottom: 3px; font-weight: 700; }

/* ================================================================
   LOGIN / REGISTER FORMS
   ================================================================ */
.yj-auth-wrap {
  max-width: 440px; margin: 0 auto;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md);
}
.yj-auth-head {
  background: linear-gradient(135deg, var(--yj-red-dark), var(--yj-red));
  padding: 28px 30px; text-align: center;
}
.yj-auth-head img { width: 70px; height: 70px; border-radius: 50%; border: 3px solid var(--yj-gold); margin: 0 auto 12px; }
.yj-auth-head h2 { font-size: 1.4rem; font-weight: 900; color: #fff; margin-bottom: 5px; }
.yj-auth-head p  { font-size: .82rem; color: rgba(255,255,255,.65); }
.yj-auth-body { padding: 28px 30px; }
.yj-form-group { margin-bottom: 16px; }
.yj-form-group label { display: block; font-size: .82rem; font-weight: 800; color: var(--text-muted); margin-bottom: 6px; }
.yj-form-group input,
.yj-form-group select,
.yj-form-group textarea {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-family: var(--font); font-size: .9rem;
  color: var(--text); background: var(--surface);
  transition: border-color .18s; outline: none;
}
.yj-form-group input:focus,
.yj-form-group select:focus { border-color: var(--yj-red); }
.yj-auth-footer { text-align: center; margin-top: 16px; font-size: .83rem; color: var(--text-muted); font-weight: 700; }
.yj-auth-footer a { color: var(--yj-red); font-weight: 800; }

/* ================================================================
   QUIZ RESULT / DASHBOARD
   ================================================================ */
.yj-result-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); margin-bottom: 24px;
}
.yj-result-head {
  background: linear-gradient(135deg, var(--yj-red-dark), var(--yj-red));
  padding: 22px 26px; color: #fff;
  display: flex; align-items: center; gap: 18px;
}
.yj-result-score {
  width: 70px; height: 70px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: 3px solid var(--yj-gold);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; flex-shrink: 0;
}
.yj-result-score .score-num { font-size: 1.4rem; font-weight: 900; line-height: 1; }
.yj-result-score .score-lbl { font-size: .6rem; opacity: .7; font-weight: 700; }
.yj-result-info h3 { font-size: 1.1rem; font-weight: 900; margin-bottom: 4px; }
.yj-result-info p  { font-size: .84rem; opacity: .75; }
.yj-result-body { padding: 20px 26px; }
.result-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 18px; }
.r-stat { text-align: center; padding: 14px; background: var(--bg); border-radius: 10px; border: 1px solid var(--border); }
.r-stat .rs-num { font-size: 1.4rem; font-weight: 900; color: var(--yj-red); }
.r-stat .rs-lbl { font-size: .72rem; color: var(--text-muted); font-weight: 700; margin-top: 2px; }

/* ================================================================
   BOOKMARKS PAGE
   ================================================================ */
.bookmark-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 16px; }
.bookmark-item {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px;
  display: flex; align-items: flex-start; gap: 12px;
  box-shadow: var(--shadow); transition: all .2s;
  position: relative;
}
.bookmark-item:hover { border-color: var(--yj-red-light); box-shadow: var(--shadow-md); }
.bookmark-icon { font-size: 1.4rem; flex-shrink: 0; }
.bookmark-info { flex: 1; }
.bookmark-title { font-size: .9rem; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.bookmark-meta  { font-size: .74rem; color: var(--text-muted); font-weight: 700; }
.bookmark-remove {
  position: absolute; top: 10px; right: 10px;
  background: none; border: none;
  color: var(--text-light); font-size: .9rem;
  cursor: pointer; padding: 2px 5px; border-radius: 4px;
  transition: all .15s;
}
.bookmark-remove:hover { background: #FEE2E2; color: var(--yj-red); }

/* ================================================================
   COMMENTS
   ================================================================ */
.comments-area { margin-top: 30px; padding-top: 24px; border-top: 1.5px solid var(--border); }
.comments-title { font-size: 1.05rem; font-weight: 900; margin-bottom: 20px; }
.comment-list { list-style: none; padding: 0; }
.comment-body {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 15px 17px; margin-bottom: 12px;
}
.comment-author { font-weight: 800; font-size: .87rem; }
.comment-date   { font-size: .74rem; color: var(--text-muted); font-weight: 700; }
.comment-content{ font-size: .88rem; margin-top: 8px; }
.comment-form input,
.comment-form textarea {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-family: var(--font); font-size: .88rem;
  margin-bottom: 12px; outline: none;
  transition: border-color .18s;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--yj-red); }
.comment-form textarea { min-height: 110px; resize: vertical; }
.comment-form .submit {
  background: var(--yj-red); color: #fff; border: none;
  padding: 10px 24px; border-radius: 8px;
  font-family: var(--font); font-size: .88rem; font-weight: 800;
  cursor: pointer; transition: background .18s;
}
.comment-form .submit:hover { background: var(--yj-red-dark); }

/* ================================================================
   SEARCH, ARCHIVE, 404
   ================================================================ */
.yj-page-header {
  background: linear-gradient(120deg, var(--yj-red-dark), var(--yj-red));
  border-radius: var(--radius-lg);
  padding: 26px 30px; color: #fff; margin-bottom: 22px;
}
.yj-page-header h1 { font-size: 1.5rem; font-weight: 900; margin-bottom: 5px; }
.yj-page-header p  { font-size: .88rem; opacity: .75; }

.error-404-wrap { text-align: center; padding: 60px 20px; }
.e404-big { font-family: var(--font-display); font-size: 7rem; font-weight: 700; color: var(--yj-red); opacity: .15; line-height: 1; }
.e404-wrap h2 { font-size: 1.5rem; font-weight: 900; margin: 12px 0 10px; }
.e404-wrap p  { color: var(--text-muted); margin-bottom: 22px; }

/* ================================================================
   PAGINATION
   ================================================================ */
.yj-pagination {
  display: flex; justify-content: center;
  gap: 8px; margin: 24px 0;
  flex-wrap: wrap;
}
.yj-pagination a,
.yj-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 8px;
  font-size: .87rem; font-weight: 700;
  background: var(--surface); border: 1.5px solid var(--border);
  color: var(--text-muted); text-decoration: none;
  transition: all .16s;
}
.yj-pagination a:hover { border-color: var(--yj-red); color: var(--yj-red); }
.yj-pagination .current { background: var(--yj-red); color: #fff; border-color: var(--yj-red); }

/* ================================================================
   FOOTER
   ================================================================ */
#colophon {
  background: #130303;
  margin-left: calc(var(--left-nav-w) + var(--topic-sidebar-w));
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px; padding: 40px 36px 28px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.f-col h4 {
  font-size: .7rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: 1.6px;
  color: var(--yj-gold); margin-bottom: 14px;
}
.f-col p    { font-size: .84rem; color: rgba(255,255,255,.55); line-height: 1.7; }
.f-col ul   { list-style: none; padding: 0; }
.f-col ul li{ margin-bottom: 7px; }
.f-col ul li a { color: rgba(255,255,255,.55); font-size: .84rem; font-weight: 600; transition: color .15s; }
.f-col ul li a:hover { color: var(--yj-gold); }
.f-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 36px; flex-wrap: wrap; gap: 10px;
}
.f-logo { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: #fff; }
.f-logo span { color: var(--yj-gold); }
.f-copy { font-size: .78rem; color: rgba(255,255,255,.4); }
.f-links { display: flex; gap: 16px; }
.f-links a { font-size: .78rem; color: rgba(255,255,255,.4); font-weight: 700; transition: color .15s; }
.f-links a:hover { color: var(--yj-gold); }

/* ================================================================
   NOTIFICATION TOAST
   ================================================================ */
#yj-toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--yj-navy); color: #fff;
  padding: 12px 20px; border-radius: 10px;
  font-size: .86rem; font-weight: 700;
  box-shadow: var(--shadow-lg);
  z-index: 99999;
  display: none;
  align-items: center; gap: 8px;
  max-width: 300px;
  border-left: 4px solid var(--yj-gold);
  animation: slideInToast .3s ease;
}
@keyframes slideInToast {
  from { transform: translateX(20px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes fadeUp { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
.anim-fadeup { animation: fadeUp .5s ease both; }

/* ================================================================
   WP CORE CLASSES
   ================================================================ */
.alignleft   { float: left;  margin: 0 20px 10px 0; }
.alignright  { float: right; margin: 0 0 10px 20px; }
.aligncenter { margin: 0 auto 10px; display: block; }
.sticky { position: relative; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .78rem; color: var(--text-muted); text-align: center; margin-top: 5px; }
.gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 1.5em 0; }
.gallery-item img { border-radius: 8px; width: 100%; }
.wp-block-quote { border-left: 4px solid var(--yj-red); background: var(--surface2); padding: 14px 20px; border-radius: 0 8px 8px 0; margin: 1.5em 0; }
.wp-block-code  { background: #1C1C2E; border-radius: 10px; padding: 18px 20px; color: #C3E88D; font-family: var(--font-mono); font-size: .87rem; overflow-x: auto; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
  :root { --topic-sidebar-w: 220px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  #yj-left-nav, #yj-topic-sidebar { transform: translateX(-100%); }
  #yj-left-nav.open  { transform: translateX(0); }
  #yj-topic-sidebar.open { transform: translateX(var(--left-nav-w)); }
  #yj-main-content { margin-left: 0; }
  #colophon { margin-left: 0; }
  .mobile-toggle { display: block; }
  .top-nav { display: none; }
  .yj-hero { flex-direction: column; gap: 18px; }
  .hero-right { flex-direction: row; justify-content: center; }
  .feat-box { flex-direction: column; }
  .feat-left { min-width: unset; }
  .footer-inner { padding: 28px 20px; }
  .f-bottom { padding: 14px 20px; }
}
@media (max-width: 600px) {
  .header-search { display: none; }
  .notes-grid { grid-template-columns: 1fr; }
  .yj-content-inner { padding: 18px 16px 40px; }
  .yj-hero { padding: 24px 20px; }
  .hero-title { font-size: 1.5rem; }
  .result-stats { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .f-bottom { flex-direction: column; text-align: center; }
}
