/* Reduce bullet list indent on mobile screens */
@media (max-width: 768px) {
    .entry-content ul, 
    .entry-content ol {
        margin-left: 1.2em; 
    }
}

/* Box Style Button for PhysicsGurukul */
.pg-box-btn {
  background-color: #FFD700; /* Yellow Background */
  color: #000000 !important; /* Black Text */
  border: 2px solid #000000; /* Solid Black Border */
  padding: 15px 30px;        /* Big clickable area */
  text-align: center;
  text-decoration: none !important;
  display: inline-block;
  font-size: 18px;
  font-weight: 800;          /* Extra Bold */
  text-transform: uppercase; /* All Caps looks more like a button */
  border-radius: 0px;        /* 0px makes it a sharp BOX */
  transition: all 0.2s ease-in-out;
}

/* Hover Effect */
.pg-box-btn:hover {
  background-color: #008000; /* Turns Green */
  color: #FFFFFF !important; /* Text turns White */
  border-color: #000000;
  box-shadow: 5px 5px 0px rgba(0,0,0,0.2); /* Adds a 3D shadow on hover */
}



/* ==============================
   SCROLLABLE TABLES ON MOBILE
   ============================== */
.entry-content table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  white-space: nowrap;
}

/* ==============================
   SCROLLABLE MATHJAX BLOCK/DISPLAY EQUATIONS ONLY
   ============================== */

/* MathJax v3 - Block equations only */
mjx-container[display="true"] {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  display: block;
  padding-bottom: 5px;
}

/* MathJax v2 - Block equations only */
.MathJax_Display {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  padding-bottom: 5px;
}

/* ==============================
   GENERAL SAFETY NET
   ============================== */
.entry-content {
  overflow-x: hidden;
}

.entry-content img {
  max-width: 100%;
  height: auto;
}

/* =================================================================
   PHYSICSGURUKUL — CATEGORY / ARCHIVE PAGE CSS
   Paste into: Appearance → Customize → Additional CSS → Publish
   Works with GeneratePress theme
   ================================================================= */

/* --- GOOGLE FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@600;700;800;900&display=swap');

/* ----------------------------------------------------------------
   1. HERO HEADER — category title banner
   ---------------------------------------------------------------- */
.archive .page-header,
.category .page-header,
.tag .page-header {
  background: linear-gradient(135deg, #1a237e 0%, #1565c0 100%) !important;
  padding: 36px 32px 32px !important;
  margin-bottom: 32px !important;
  border-radius: 12px !important;
  position: relative !important;
  overflow: hidden !important;
  width: 100% !important;
}

.archive .page-header .page-title,
.category .page-header .page-title,
.tag .page-header .page-title {
  font-family: 'Nunito', sans-serif !important;
  font-size: 28px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  margin: 0 !important;
  line-height: 1.3 !important;
  text-shadow: 0 2px 6px rgba(0,0,0,0.25) !important;
}

.archive .archive-description,
.category .archive-description,
.tag .archive-description {
  color: #c5d3ff !important;
  margin-top: 8px !important;
  font-size: 16px !important;
}

/* ----------------------------------------------------------------
   2. BACKGROUND
   ---------------------------------------------------------------- */
.archive #page,
.category #page,
.tag #page {
  background: #f5f7fa !important;
}

.archive #primary,
.category #primary,
.tag #primary {
  background: transparent !important;
}

/* ----------------------------------------------------------------
   3. POST GRID — flex layout, correct for GeneratePress
   ---------------------------------------------------------------- */

.archive .site-main,
.category .site-main,
.tag .site-main {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
  align-items: flex-start !important;
  padding: 0 !important;
  background: transparent !important;
}

/* Page header — force full width inside the flex container */
.archive .site-main > .page-header,
.category .site-main > .page-header,
.tag .site-main > .page-header {
  width: 100% !important;
  flex: 0 0 100% !important;
}

/* Pagination — force full width */
.archive .site-main > .pagination,
.category .site-main > .pagination,
.tag .site-main > .pagination,
.archive .site-main > nav,
.category .site-main > nav,
.tag .site-main > nav {
  width: 100% !important;
  flex: 0 0 100% !important;
}

/* Each article card — 3 column grid */
.archive .site-main > article,
.category .site-main > article,
.tag .site-main > article {
  flex: 1 1 calc(33.333% - 14px) !important;
  min-width: 280px !important;
  max-width: calc(33.333% - 14px) !important;
  background: #ffffff !important;
  border: 1px solid #e0e4ee !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  transition: box-shadow 0.25s, transform 0.25s !important;
  border-top: 4px solid #1a237e !important;
}

.archive .site-main > article:hover,
.category .site-main > article:hover,
.tag .site-main > article:hover {
  box-shadow: 0 8px 28px rgba(26,35,126,0.15) !important;
  transform: translateY(-3px) !important;
}

/* ----------------------------------------------------------------
   4. POST TITLE
   ---------------------------------------------------------------- */
.archive .entry-header,
.category .entry-header,
.tag .entry-header {
  padding: 18px 20px 18px !important;
  flex: 1 !important;
}

.archive .entry-title,
.category .entry-title,
.tag .entry-title {
  font-family: 'Nunito', sans-serif !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.45 !important;
  margin: 0 0 8px !important;
}

.archive .entry-title a,
.category .entry-title a,
.tag .entry-title a {
  color: #1a237e !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
}

.archive .entry-title a::before,
.category .entry-title a::before,
.tag .entry-title a::before {
  content: '›' !important;
  color: #e53935 !important;
  font-size: 22px !important;
  line-height: 1.2 !important;
  flex-shrink: 0 !important;
  font-weight: 900 !important;
}

.archive .entry-title a:hover,
.category .entry-title a:hover,
.tag .entry-title a:hover {
  color: #e53935 !important;
}

/* ----------------------------------------------------------------
   5. META — hidden for clean title-only cards
   ---------------------------------------------------------------- */
.archive .entry-meta,
.category .entry-meta,
.tag .entry-meta {
  display: none !important;
}

/* ----------------------------------------------------------------
   6. EXCERPT — hidden for clean title-only cards
   ---------------------------------------------------------------- */
.archive .entry-summary,
.category .entry-summary,
.tag .entry-summary {
  display: none !important;
}

/* ----------------------------------------------------------------
   7. READ MORE — hidden, title itself is the link
   ---------------------------------------------------------------- */
.archive .more-link,
.category .more-link,
.tag .more-link {
  display: none !important;
}

/* ----------------------------------------------------------------
   8. ENTRY FOOTER — fully hidden for clean title-only cards
   ---------------------------------------------------------------- */
.archive .entry-footer,
.category .entry-footer,
.tag .entry-footer {
  display: none !important;
}

/* ----------------------------------------------------------------
   9. PAGINATION
   ---------------------------------------------------------------- */
.archive .pagination .nav-links,
.category .pagination .nav-links,
.tag .pagination .nav-links {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}

.archive .page-numbers,
.category .page-numbers,
.tag .page-numbers {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 38px !important;
  height: 38px !important;
  padding: 0 12px !important;
  border-radius: 8px !important;
  font-family: 'Nunito', sans-serif !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  border: 2px solid #e0e4ee !important;
  background: #fff !important;
  color: #1a237e !important;
  text-decoration: none !important;
  transition: all 0.2s !important;
}

.archive .page-numbers.current,
.category .page-numbers.current,
.tag .page-numbers.current,
.archive .page-numbers:hover,
.category .page-numbers:hover,
.tag .page-numbers:hover {
  background: #1a237e !important;
  border-color: #1a237e !important;
  color: #ffffff !important;
}

/* ----------------------------------------------------------------
   10. RESPONSIVE
   ---------------------------------------------------------------- */
@media (max-width: 900px) {
  .archive .site-main > article,
  .category .site-main > article,
  .tag .site-main > article {
    flex: 1 1 calc(50% - 10px) !important;
    max-width: calc(50% - 10px) !important;
  }
}

@media (max-width: 600px) {
  .archive .site-main > article,
  .category .site-main > article,
  .tag .site-main > article {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }

  .archive .site-main,
  .category .site-main,
  .tag .site-main {
    gap: 14px !important;
  }

  .archive .page-header .page-title,
  .category .page-header .page-title,
  .tag .page-header .page-title {
    font-size: 22px !important;
  }

  .archive .page-header,
  .category .page-header,
  .tag .page-header {
    padding: 22px 18px 20px !important;
    border-radius: 8px !important;
  }
}

/* =================================================================
   END — PHYSICSGURUKUL ARCHIVE/CATEGORY CSS
   ================================================================= */


/* --- Chapter Listing Global Styles --- */
.c8m-wrap { 
  margin: 4px 0 28px; 
  padding: 3px 6px 3px 2px; 
}

.c8m-list { 
  list-style: none; 
  margin: 0; 
  padding: 0; 
  display: flex; 
  flex-direction: column; 
  gap: 7px; 
}

.c8m-list a { 
  font-family: 'Gentium Book Basic', serif; /* Your preferred body font */
  display: flex; 
  align-items: center; 
  gap: 14px; 
  padding: 13px 16px 13px 0; 
  background: #fff; 
  border: 1.5px solid #e8eef6; 
  border-left: 4px solid var(--accent); 
  border-radius: 10px; 
  text-decoration: none; 
  transition: all 0.15s ease; 
  color: inherit; 
}

.c8m-list a:hover { 
  border-color: var(--accent); 
  box-shadow: 0 3px 14px rgba(0,0,0,0.09); 
  background: var(--accent-bg); 
  text-decoration: none; 
}

.c8m-num { 
  font-size: 1.05rem; 
  font-weight: 700; 
  color: var(--accent); 
  background: var(--accent-bg); 
  border-radius: 6px; 
  padding: 4px 8px; 
  min-width: 44px; 
  text-align: center; 
  flex-shrink: 0; 
  margin-left: 14px; 
}

.c8m-title { 
  font-size: 1.15rem; 
  font-weight: 700; 
  color: #1e293b; 
  flex: 1; 
  line-height: 1.4; 
}

.c8m-arrow { 
  font-size: 1rem; 
  color: #cbd5e1; 
  flex-shrink: 0; 
  margin-right: 4px; 
  transition: all 0.15s ease; 
}

.c8m-list a:hover .c8m-arrow { 
  color: var(--accent); 
  transform: translateX(3px); 
}

/* Optional: If you want a specific heading above the list */
.c8m-heading {
  font-family: 'Lora', serif; /* Your preferred heading font */
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #0f172a;
}

/* ── INTRO CSS ── */
  #xc8 .intro-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #1a56a0;
    border-radius: 12px;
    padding: 24px 28px;
    font-size: 19px; 
    line-height: 1.85;
    box-shadow: 0 1px 8px rgba(0,0,0,0.05);
  }
  #xc8 .intro-box strong { color: #0f172a; }
  #xc8 .curiosity-note {
    display: flex; align-items: flex-start; gap: 8px;
    background: #fffbeb; border: 1px solid #fde68a;
    border-radius: 8px; padding: 10px 14px;
    font-size: 16px; margin-top: 14px;
  }

/* =========================================
   XAM CONTENT - GLOBAL STYLES
   ========================================= */

/* -- SHARED UTILITIES -- */
.xc-wrap .gap { height: 44px; }
.xc-wrap a { text-decoration: none; box-shadow: none; }
.xc-wrap h2.xc-title { text-align: center; border: none; padding: 0; margin-bottom: 16px; background: none; }

/* -- CLASS NAV -- */
.xc-wrap .class-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 30px; }
.xc-wrap .class-pill {
  padding: 9px 22px; border-radius: 100px;
  font-size: 15px; font-weight: 600;
  border: 2px solid #e2e8f0; color: #64748b;
  background: #fff; transition: all 0.2s;
}
.xc-wrap .class-pill:hover { border-color: #1a56a0; color: #1a56a0; }
.xc-wrap .class-pill.on { background: #1a56a0; color: #fff; border-color: #1a56a0; }

/* -- CTA BANNER -- */
.xc-wrap .cta-banner {
  background: linear-gradient(135deg, #0e3572, #1a56a0);
  border-radius: 16px; padding: 36px 32px;
  text-align: center; color: white; margin-top: 20px;
}
.xc-wrap .cta-banner h3 {
  font-size: 29px; margin-bottom: 10px; color: #ffffff !important;
  border: none; padding: 0; background: none;
}
.xc-wrap .cta-banner p { font-size: 19px; opacity: 0.85; margin-bottom: 24px; color: #ffffff; }
.xc-wrap .cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* -- BUTTONS -- */
.xc-wrap .btn-w {
  display: inline-block; padding: 11px 26px; border-radius: 100px;
  font-size: 18px; font-weight: 700;
  background: white; color: #1a56a0; transition: all 0.2s; border: none;
}
.xc-wrap .btn-w:hover { background: #f0f9ff; color: #0e3572; }

.xc-wrap .btn-o {
  display: inline-block; padding: 11px 26px; border-radius: 100px;
  font-size: 18px; font-weight: 700;
  background: transparent; color: white;
  border: 2px solid rgba(255,255,255,0.45); transition: all 0.2s;
}
.xc-wrap .btn-o:hover { background: rgba(255,255,255,0.12); color: white; }



@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&display=swap');

/* ══════════════════════════════════════
   PHYSICSGURUKUL — CSS VARIABLES
══════════════════════════════════════ */
:root {
  --maroon:        #7a1c2e;
  --maroon-dark:   #4e0f1c;
  --maroon-mid:    #9e2840;
  --maroon-pale:   #fdf5f5;
  --gold:          #c8902a;
  --gold-light:    #fdf6e8;
  --gold-border:   #e8c87a;
  --border:        #e8d0d4;
  --sage:          #2d6e4e;
  --sage-light:    #eaf7f0;
  --sage-border:   #a8d8c0;
  --code-bg:       #2a0a10;
  --code-text:     #ffcdd5;
  --blue:          #1a4a8a;
  --blue-light:    #eef3ff;
  --blue-border:   #b0c8f0;
}

/* ══════════════════════════════════════
   KEY CONCEPTS BOX
══════════════════════════════════════ */
.pg-key-concepts {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 32px rgba(78,15,28,0.15);
  font-family: 'Gentium Book Basic', serif;
  background: #fff;
  margin: 28px 0;
}
.pg-kc-header {
  background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon) 60%, var(--maroon-mid) 100%);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.pg-kc-header::before {
  content: '';
  position: absolute;
  right: -30px; top: -30px;
  width: 120px; height: 120px;
  border: 2px solid rgba(200,144,42,0.2);
  border-radius: 50%;
}
.pg-kc-header::after {
  content: '';
  position: absolute;
  right: 10px; top: 10px;
  width: 70px; height: 70px;
  border: 1.5px solid rgba(200,144,42,0.15);
  border-radius: 50%;
}
.pg-kc-icon {
  width: 40px; height: 40px;
  background: var(--gold);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  position: relative; z-index: 1;
}
.pg-kc-header-text { position: relative; z-index: 1; }
.pg-kc-header-text h2 {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  margin: 0;
}
.pg-kc-header-text p {
  font-family: 'Gentium Book Basic', serif;
  font-size: 13px;
  font-style: italic;
  color: rgba(255,220,200,0.85);
  margin: 3px 0 0 0;
}
.pg-kc-chapter-tag {
  margin-left: auto;
  background: rgba(200,144,42,0.22);
  border: 1px solid rgba(200,144,42,0.45);
  color: #ffd890;
  font-family: 'Lora', serif;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 20px;
  white-space: nowrap;
  position: relative; z-index: 1;
}
.pg-concept-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0 18px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.pg-concept-row:last-of-type { border-bottom: none; }
.pg-concept-row:hover { background: var(--maroon-pale); }
.pg-concept-num {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
  color: #fff;
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 15px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 2px 8px rgba(78,15,28,0.25);
}
.pg-concept-term {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--maroon-dark);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1.4;
}
.pg-formula-badge {
  font-family: 'Gentium Book Basic', serif;
  font-size: 11px;
  font-weight: 700;
  background: var(--gold-light);
  color: #7a4800;
  border: 1px solid var(--gold-border);
  padding: 1px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.pg-concept-def {
  font-family: 'Gentium Book Basic', serif;
  font-size: 18px;
  line-height: 1.8;
  color: #2e1a1e;
}
.pg-concept-def strong { color: var(--maroon); font-weight: 700; }
.pg-concept-formula {
  margin-top: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 17px;
  background: var(--code-bg);
  color: var(--code-text);
  padding: 10px 16px;
  border-radius: 8px;
  display: inline-block;
  border-left: 3px solid var(--gold);
  line-height: 1.6;
}
.pg-kc-footer {
  background: var(--gold-light);
  border-top: 2px solid var(--gold-border);
  padding: 14px 24px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.pg-kc-footer-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.pg-kc-footer p {
  font-family: 'Gentium Book Basic', serif;
  font-size: 17px;
  color: #5a3800;
  line-height: 1.7;
  margin: 0;
}
.pg-kc-footer strong {
  font-family: 'Lora', serif;
  color: #3e2400;
  font-weight: 700;
}

/* ══════════════════════════════════════
   SHARED BASE — ALL QUESTION TYPES
══════════════════════════════════════ */
.pg-qblock {
  width: 100%;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 32px rgba(78,15,28,0.13);
  border: 1px solid var(--border);
  margin: 32px 0;
}
.pg-qblock-header {
  background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon) 60%, var(--maroon-mid) 100%);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.pg-qblock-header::before {
  content: '';
  position: absolute;
  right: -30px; top: -30px;
  width: 120px; height: 120px;
  border: 2px solid rgba(200,144,42,0.18);
  border-radius: 50%;
}
.pg-qblock-num {
  width: 44px; height: 44px;
  background: var(--gold);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--maroon-dark);
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  position: relative; z-index: 1;
}
.pg-qblock-header-text { position: relative; z-index: 1; }
.pg-qblock-header-text h3 {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  margin: 0 0 2px 0;
  line-height: 1.3;
}
.pg-qblock-header-text span {
  font-family: 'Gentium Book Basic', serif;
  font-size: 13px;
  font-style: italic;
  color: rgba(255,210,190,0.85);
}
.pg-qblock-tag {
  margin-left: auto;
  background: rgba(200,144,42,0.22);
  border: 1px solid rgba(200,144,42,0.45);
  color: #ffd890;
  font-family: 'Lora', serif;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  position: relative; z-index: 1;
}
.pg-question {
  padding: 20px 26px;
  border-bottom: 1px solid var(--border);
}
.pg-question:last-child { border-bottom: none; }
.pg-q-text {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.pg-q-num {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--maroon);
  background: var(--maroon-pale);
  border: 1.5px solid var(--border);
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.pg-q-stem {
  font-family: 'Gentium Book Basic', serif;
  font-size: 17px;
  line-height: 1.75;
  color: #1e1012;
  flex: 1;
}
.pg-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
  padding-left: 40px;
}
.pg-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #fdfbfb;
  font-size: 16px;
  line-height: 1.5;
  color: #2a1518;
  font-family: 'Gentium Book Basic', serif;
  transition: border-color 0.18s, background 0.18s;
}
.pg-option-letter {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--maroon);
  background: var(--maroon-pale);
  border: 1px solid var(--border);
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.pg-answer-toggle {
  margin-left: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1.5px solid var(--maroon);
  color: var(--maroon);
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.pg-answer-toggle:hover,
.pg-answer-toggle.open {
  background: var(--maroon);
  color: #fff;
}
.pg-answer-toggle .toggle-icon {
  font-size: 16px;
  transition: transform 0.25s;
  display: inline-block;
}
.pg-answer-toggle.open .toggle-icon {
  transform: rotate(180deg);
}
.pg-answer-panel {
  margin-left: 40px;
  margin-top: 12px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid var(--sage-border);
  display: none;
}
.pg-answer-panel.visible {
  display: block;
  animation: pgSlideDown 0.22s ease;
}
@keyframes pgSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pg-answer-correct {
  background: var(--sage-light);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--sage-border);
}
.pg-answer-correct .correct-label {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.pg-answer-correct .correct-value {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--sage);
  background: #fff;
  border: 1.5px solid var(--sage-border);
  padding: 2px 12px;
  border-radius: 6px;
}
.pg-answer-correct .tick { margin-left: auto; font-size: 18px; }
.pg-answer-explanation {
  background: #fff;
  padding: 14px 16px;
}
.pg-answer-explanation .exp-label {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--maroon-dark);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 7px;
  display: block;
}
.pg-answer-explanation p {
  font-family: 'Gentium Book Basic', serif;
  font-size: 16px;
  line-height: 1.78;
  color: #2a1518;
  margin: 0;
}
.pg-answer-explanation p + p { margin-top: 10px; }
.pg-answer-explanation p strong { color: var(--maroon); }
.exp-formula {
  margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  background: var(--code-bg);
  color: var(--code-text);
  padding: 8px 14px;
  border-radius: 6px;
  display: inline-block;
  border-left: 3px solid var(--gold);
}

/* ══════════════════════════════════════
   CASE STUDY ADDITION
══════════════════════════════════════ */
.pg-cs-passage {
  padding: 22px 26px;
  border-bottom: 2px dashed var(--border);
  background: #fffaf8;
  position: relative;
}
.pg-cs-passage::before {
  content: '"';
  position: absolute;
  top: 10px; left: 18px;
  font-size: 60px;
  color: var(--border);
  font-family: 'Lora', serif;
  line-height: 1;
  pointer-events: none;
}
.pg-cs-passage p {
  font-size: 17px;
  line-height: 1.85;
  color: #2a1518;
  position: relative; z-index: 1;
  margin: 0;
}
.pg-cs-passage p + p { margin-top: 12px; }

/* ══════════════════════════════════════
   MCQ GROUP ADDITION
══════════════════════════════════════ */
.pg-mcq-group-header {
  padding: 14px 26px;
  background: var(--gold-light);
  border-bottom: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pg-mcq-group-header .group-icon { font-size: 16px; }
.pg-mcq-group-header .group-title {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 14px;
  color: #5a3800;
}
.pg-mcq-group-header .group-count {
  margin-left: auto;
  font-family: 'Gentium Book Basic', serif;
  font-style: italic;
  font-size: 13px;
  color: #8a6000;
}

/* ══════════════════════════════════════
   ASSERTION REASON ADDITIONS
══════════════════════════════════════ */
.pg-ar-directions {
  padding: 16px 26px;
  background: var(--blue-light);
  border-bottom: 2px solid var(--blue-border);
}
.pg-ar-directions .dir-label {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 12px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}
.pg-ar-directions ol {
  padding-left: 18px;
}
.pg-ar-directions ol li {
  font-family: 'Gentium Book Basic', serif;
  font-size: 15px;
  line-height: 1.7;
  color: #1a2a4a;
  margin-bottom: 4px;
}
.pg-ar-directions ol li:last-child { margin-bottom: 0; }
.pg-ar-statements {
  padding: 12px 14px;
  background: var(--blue-light);
  border: 1.5px solid var(--blue-border);
  border-radius: 8px;
  margin-bottom: 14px;
  margin-left: 40px;
}
.pg-ar-statement {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-family: 'Gentium Book Basic', serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1a2a4a;
}
.pg-ar-statement + .pg-ar-statement {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--blue-border);
}
.pg-ar-statement .ar-label {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--blue);
  background: #fff;
  border: 1px solid var(--blue-border);
  padding: 1px 9px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ══════════════════════════════════════
   SUBJECTIVE ADDITION
══════════════════════════════════════ */
.pg-subjective .pg-answer-toggle { margin-left: 40px; }
.pg-subjective .pg-answer-panel {
  margin-left: 40px;
  border-color: var(--gold-border);
}
.pg-subjective .pg-answer-correct {
  background: var(--gold-light);
  border-bottom-color: var(--gold-border);
}
.pg-subjective .pg-answer-correct .correct-label { color: #5a3800; }
.pg-subjective .pg-answer-correct .correct-value {
  color: #3e2400;
  border-color: var(--gold-border);
  font-size: 14px;
  font-style: italic;
}
.pg-subjective .pg-answer-correct .tick { font-size: 16px; }
.pg-subjective .pg-answer-explanation p {
  font-size: 16.5px;
  line-height: 1.85;
}

/* ══════════════════════════════════════
   MOBILE
══════════════════════════════════════ */
@media (max-width: 600px) {
  .pg-kc-chapter-tag { display: none; }
  .pg-concept-row { padding: 14px 16px; gap: 0 12px; }
  .pg-kc-header { padding: 16px 18px; }
  .pg-kc-header-text h2 { font-size: 17px; }
  .pg-concept-term { font-size: 15px; }
  .pg-concept-def { font-size: 15px; }
  .pg-qblock-tag { display: none; }
  .pg-cs-passage { padding: 16px 18px; }
  .pg-cs-passage::before { display: none; }
  .pg-question { padding: 16px 18px; }
  .pg-q-stem { font-size: 16px; }
  .pg-options { grid-template-columns: 1fr; padding-left: 0; }
  .pg-option { min-height: 48px; }
  .pg-answer-toggle { margin-left: 0; width: 100%; justify-content: center; }
  .pg-answer-panel { margin-left: 0; }
  .pg-ar-statements { margin-left: 0; }
  .pg-subjective .pg-answer-toggle { margin-left: 0; }
  .pg-subjective .pg-answer-panel { margin-left: 0; }
}


.pg-option { font-size: 17px; }
.pg-answer-explanation p { font-size: 18px; }
.pg-subjective .pg-answer-explanation p { font-size: 18px; }
.pg-ar-statement { font-size: 17px; }
.pg-ar-directions ol li { font-size: 16px; }