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