/* ==========================================================================
   PIARIST FATHERS INDIA — PRAYER BOOK LIBRARY STYLESHEET
   Order of the Pious Schools · Vice Province of India · Aroor 2026
   High Contrast, Maximum Readability & Institutional Dignity
   Zero Emoji Standard · Fully Accessible & Responsive
   ========================================================================== */

:root {
  --pb-navy-deep: #000F1B;
  --pb-navy: #061325;
  --pb-navy-header: #0a1628;
  --pb-navy-card: #0e1e36;
  --pb-gold: #c9a227;
  --pb-gold-light: #FDD68E;
  --pb-gold-warm: #9A6B19;
  --pb-gold-subtle: rgba(201, 162, 39, 0.14);
  --pb-cream: #fbf9f5;
  --pb-cream-alt: #f4efe6;
  --pb-cream-border: #e8e1d5;
  --pb-text-dark: #000F1B;
  --pb-text-body: #26343D;
  --pb-text-muted: #52606A;
  --pb-white: #ffffff;
  --pb-radius-sm: 8px;
  --pb-radius-md: 14px;
  --pb-radius-lg: 20px;
  --pb-radius-xl: 24px;
  --pb-radius-pill: 999px;
  --pb-shadow-soft: 0 8px 25px rgba(0, 15, 27, 0.08);
  --pb-shadow-hover: 0 16px 35px rgba(0, 15, 27, 0.12);
}

/* Ensure default visibility across all sections */
.pb-hero,
.pb-quick-section,
.pb-categories-section,
.pb-quick-card,
.pb-cat-card,
.pb-prayer-card {
  opacity: 1 !important;
  visibility: visible !important;
}

/* ================= 1. HERO SECTION ================= */
.pb-hero {
  position: relative;
  background-color: #000F1B;
  color: #FFFFFF;
  padding: 135px 0 100px;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(253, 214, 142, 0.25);
}

.pb-hero-bg-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.pb-hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(0.68) contrast(1.15);
  transform: scale(1.02);
  transition: transform 6s cubic-bezier(0.25, 1, 0.5, 1);
}

.pb-hero:hover .pb-hero-bg-img {
  transform: scale(1.05);
}

/* Controlled dark overlay behind text */
.pb-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0, 15, 27, 0.72),
    rgba(0, 15, 27, 0.82)
  ) !important;
  pointer-events: none;
}

/* Central Prayer Book Card */
.pb-hero-content-box {
  background: rgba(0, 15, 27, 0.82) !important;
  border: 1px solid rgba(253, 214, 142, 0.65) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25) !important;
  border-radius: 24px !important;
  padding: 60px 70px !important;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (max-width: 992px) {
  .pb-hero-content-box {
    padding: 45px 40px !important;
  }
}

@media (max-width: 640px) {
  .pb-hero {
    padding: 105px 0 75px;
  }
  .pb-hero-content-box {
    padding: 35px 22px !important;
    border-radius: 20px !important;
  }
}

/* Hero Heading */
.pb-hero-title {
  font-family: var(--font-heading) !important;
  font-size: clamp(2.6rem, 5.8vw, 4.2rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: #FFFFFF !important;
  margin: 0 0 0.5rem !important;
  position: relative;
  z-index: 2;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.9) !important;
  line-height: 1.15 !important;
}

/* Subtitle */
.pb-hero-subtitle {
  font-family: var(--font-serif) !important;
  font-size: clamp(1.25rem, 2.8vw, 1.65rem) !important;
  font-style: italic !important;
  font-weight: 600 !important;
  color: #FDD68E !important;
  opacity: 1 !important;
  margin-bottom: 1.15rem !important;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9) !important;
}

/* Description */
.pb-hero-desc {
  font-family: var(--font-sans) !important;
  font-size: 18px !important;
  color: #F5F5F5 !important;
  opacity: 1 !important;
  max-width: 750px !important;
  margin: 0 auto 2rem !important;
  line-height: 1.6 !important;
  font-weight: 400 !important;
  position: relative;
  z-index: 2;
  text-align: center !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85) !important;
}

@media (max-width: 640px) {
  .pb-hero-desc {
    font-size: 15.5px !important;
    margin-bottom: 1.5rem !important;
  }
}

/* Hero Action Button */
.pb-hero-quote,
.pb-hero-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.65rem !important;
  background: #FDD68E !important;
  color: #000F1B !important;
  font-family: var(--font-heading) !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 0.85rem 2.25rem !important;
  position: relative;
  z-index: 2;
  text-decoration: none !important;
  cursor: pointer !important;
  box-shadow: 0 4px 18px rgba(253, 214, 142, 0.35) !important;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease !important;
}

.pb-hero-quote:hover,
.pb-hero-btn:hover {
  background: #ffe3ab !important;
  color: #000F1B !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(253, 214, 142, 0.5) !important;
}

.pb-hero-quote span,
.pb-hero-btn span {
  color: #000F1B !important;
  font-weight: 700 !important;
}

.pb-hero-quote svg,
.pb-hero-btn svg {
  color: #000F1B !important;
  stroke: #000F1B !important;
  flex-shrink: 0;
}

/* Secondary Action: Download Official Prayer Book PDF */
.pb-hero-btn--pdf {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #FFFFFF !important;
  border: 1.5px solid rgba(253, 214, 142, 0.6) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3) !important;
}

.pb-hero-btn--pdf:hover {
  background: rgba(253, 214, 142, 0.22) !important;
  color: #FDD68E !important;
  border-color: #FDD68E !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(253, 214, 142, 0.3) !important;
}

.pb-hero-btn--pdf span {
  color: #FFFFFF !important;
}

.pb-hero-btn--pdf:hover span {
  color: #FDD68E !important;
}

.pb-hero-btn--pdf svg {
  color: #FDD68E !important;
  stroke: #FDD68E !important;
}

/* ================= 2. SEARCH BAR ================= */
.pb-search-section {
  position: relative;
  margin-top: -36px;
  z-index: 10;
  padding: 0 1rem;
}

.pb-search-wrap {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
}

.pb-search-box {
  background: #FFFFFF !important;
  border: none !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
  display: flex !important;
  align-items: center !important;
  padding: 0.55rem 0.75rem 0.55rem 1.6rem !important;
  transition: box-shadow 0.3s ease, transform 0.3s ease !important;
}

.pb-search-box:focus-within {
  box-shadow: 0 12px 40px rgba(0, 15, 27, 0.2) !important;
  transform: translateY(-2px) !important;
}

.pb-search-icon {
  color: #9EACB0 !important;
  display: flex;
  align-items: center;
  margin-right: 0.85rem;
  flex-shrink: 0;
}

.pb-search-icon svg {
  stroke: #9EACB0 !important;
}

.pb-search-input {
  flex: 1;
  border: none !important;
  outline: none !important;
  font-family: var(--font-sans) !important;
  font-size: 1.05rem !important;
  font-weight: 500 !important;
  color: #000F1B !important;
  background: transparent !important;
  padding: 0.45rem 0 !important;
}

.pb-search-input::placeholder {
  color: #66717A !important;
  opacity: 1 !important;
}

.pb-search-clear {
  background: none;
  border: none;
  cursor: pointer;
  color: #66717A;
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}

.pb-search-clear:hover {
  background: #f1f5f9;
  color: #000F1B;
}

.pb-search-badge {
  background: #000F1B !important;
  color: #FFFFFF !important;
  font-family: var(--font-heading) !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 999px !important;
  margin-left: 0.65rem;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .pb-search-badge {
    display: none !important;
  }
  .pb-search-box {
    padding: 0.5rem 0.75rem 0.5rem 1rem !important;
  }
}

/* ================= 3. QUICK ACCESS: BEGIN YOUR PRAYER ================= */
.pb-quick-section {
  padding: 5rem 0 2.5rem;
  background: var(--pb-cream) !important;
}

.pb-section-header {
  text-align: center;
  margin-bottom: 2.75rem;
}

/* Category Section Header Badge */
.pb-section-badge {
  font-family: var(--font-sans) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  color: #9A6B19 !important;
  margin-bottom: 0.5rem !important;
  display: inline-block !important;
}

/* Section Title */
.pb-section-title {
  font-family: var(--font-heading) !important;
  font-size: clamp(2rem, 3.8vw, 2.5rem) !important;
  font-weight: 800 !important;
  color: #000F1B !important;
  margin: 0 0 0.6rem !important;
  line-height: 1.2 !important;
}

/* Section Description */
.pb-section-desc {
  font-family: var(--font-sans) !important;
  font-size: 1.02rem !important;
  color: #52606A !important;
  max-width: 620px !important;
  margin: 0 auto !important;
  line-height: 1.65 !important;
}

.pb-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.35rem;
  margin-top: 1.5rem;
}

/* Quick Card */
.pb-quick-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(0, 15, 27, 0.08) !important;
  box-shadow: 0 8px 25px rgba(0, 15, 27, 0.08) !important;
  border-radius: 18px !important;
  padding: 1.6rem 1.25rem !important;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.pb-quick-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(253, 214, 142, 0.8) !important;
  box-shadow: 0 16px 35px rgba(0, 15, 27, 0.12) !important;
}

.pb-quick-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(154, 107, 25, 0.1) !important;
  color: #9A6B19 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.95rem;
  transition: transform 0.3s, background-color 0.3s, color 0.3s;
}

.pb-quick-icon svg {
  stroke: #9A6B19 !important;
}

.pb-quick-card:hover .pb-quick-icon {
  transform: scale(1.08);
  background: #000F1B !important;
  color: #FDD68E !important;
}

.pb-quick-card:hover .pb-quick-icon svg {
  stroke: #FDD68E !important;
}

.pb-quick-title {
  font-family: var(--font-heading) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #000F1B !important;
  margin: 0 0 0.3rem !important;
  line-height: 1.3 !important;
}

.pb-quick-sub {
  font-family: var(--font-sans) !important;
  font-size: 0.82rem !important;
  color: #52606A !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
}

/* ================= 4. FILTER TOOLBAR ================= */
.pb-filter-toolbar {
  padding: 1.75rem 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  border-bottom: 1px solid var(--pb-cream-border);
  margin-bottom: 2.25rem;
}

.pb-filter-pills {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}

.pb-filter-pill {
  padding: 0.55rem 1.25rem !important;
  border-radius: 999px !important;
  font-family: var(--font-heading) !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  border: 1px solid rgba(0, 15, 27, 0.12) !important;
  background: #FFFFFF !important;
  color: #52606A !important;
  cursor: pointer;
  transition: all 0.25s ease;
}

.pb-filter-pill:hover {
  background: #f4efe6 !important;
  color: #000F1B !important;
  border-color: #9A6B19 !important;
}

.pb-filter-pill.active {
  background: #000F1B !important;
  color: #FFFFFF !important;
  border-color: #000F1B !important;
  box-shadow: 0 4px 15px rgba(0, 15, 27, 0.18) !important;
}

.pb-favorites-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
  padding: 0.55rem 1.35rem !important;
  background: #FFFFFF !important;
  border: 1.5px solid #9A6B19 !important;
  color: #000F1B !important;
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  border-radius: 999px !important;
  cursor: pointer;
  transition: all 0.25s ease !important;
}

.pb-favorites-btn:hover {
  background: #9A6B19 !important;
  color: #FFFFFF !important;
}

.pb-favorites-btn svg {
  color: #9A6B19 !important;
}

.pb-favorites-btn:hover svg {
  color: #FFFFFF !important;
}

.pb-fav-count-badge {
  background: #000F1B !important;
  color: #FFFFFF !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  padding: 2px 8px !important;
  border-radius: 50px !important;
}

/* ================= 5. CATEGORY CARDS GRID ================= */
.pb-categories-section {
  padding: 2rem 0 5.5rem;
  background: var(--pb-cream) !important;
}

.pb-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

@media (max-width: 1024px) {
  .pb-category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
  }
}

@media (max-width: 640px) {
  .pb-category-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Category Card: Horizontal Layout matching reference screenshot */
.pb-cat-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(0, 15, 27, 0.08) !important;
  box-shadow: 0 4px 18px rgba(0, 15, 27, 0.04) !important;
  border-radius: 18px !important;
  padding: 1.25rem 1.35rem !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 1.25rem !important;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
  position: relative;
  overflow: hidden;
}

.pb-cat-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 14px 32px rgba(0, 15, 27, 0.1) !important;
  border-color: rgba(201, 162, 39, 0.45) !important;
}

/* Left: Devotional Illustration */
.pb-cat-illustration-wrap {
  width: 90px;
  height: 90px;
  min-width: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pb-cat-illustration {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.pb-cat-card:hover .pb-cat-illustration {
  transform: scale(1.06);
}

/* Right: Card Body */
.pb-cat-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}

.pb-cat-count {
  font-family: var(--font-heading) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  color: #9A6B19 !important;
  background: #FAF3E5 !important;
  padding: 0.2rem 0.65rem !important;
  border-radius: 999px !important;
  margin-bottom: 0.4rem !important;
  display: inline-block !important;
}

.pb-cat-title {
  font-family: var(--font-heading) !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  color: #000F1B !important;
  margin: 0 0 0.35rem !important;
  line-height: 1.25 !important;
}

.pb-cat-desc {
  font-family: var(--font-sans) !important;
  font-size: 0.82rem !important;
  color: #52606A !important;
  line-height: 1.45 !important;
  margin: 0 0 0.75rem !important;
}

.pb-cat-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  font-family: var(--font-heading) !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: #000F1B !important;
  background: #FAF3E5 !important;
  padding: 0.32rem 0.88rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(201, 162, 39, 0.25) !important;
  cursor: pointer;
  transition: all 0.25s ease !important;
  width: fit-content;
}

.pb-cat-card:hover .pb-cat-btn {
  background: #000F1B !important;
  color: #FFFFFF !important;
  border-color: #000F1B !important;
  padding-right: 1.05rem !important;
}

.pb-cat-btn svg {
  transition: transform 0.25s ease;
}

.pb-cat-card:hover .pb-cat-btn svg {
  transform: translateX(3px);
}

/* ================= 6. SEARCH RESULTS & PRAYER LIST ================= */
.pb-prayers-view {
  display: none;
  padding: 2.5rem 0 5.5rem;
  background: var(--pb-cream) !important;
}

.pb-prayers-view.active {
  display: block !important;
}

.pb-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--pb-cream-border);
  flex-wrap: wrap;
  gap: 1rem;
}

.pb-view-title-group h2 {
  font-family: var(--font-heading) !important;
  font-size: 1.85rem !important;
  font-weight: 800 !important;
  color: #000F1B !important;
  margin: 0 0 0.25rem !important;
}

.pb-view-count {
  font-family: var(--font-sans) !important;
  font-size: 0.9rem !important;
  color: #52606A !important;
}

.pb-nav-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.55rem 1.25rem !important;
  border-radius: 999px !important;
  font-family: var(--font-heading) !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  background: #FFFFFF !important;
  color: #000F1B !important;
  border: 1px solid rgba(0, 15, 27, 0.15) !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pb-nav-btn:hover {
  background: #000F1B !important;
  color: #FFFFFF !important;
}

.pb-prayers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.5rem;
}

.pb-prayer-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(0, 15, 27, 0.08) !important;
  box-shadow: 0 8px 25px rgba(0, 15, 27, 0.08) !important;
  border-radius: 18px !important;
  padding: 1.65rem 1.5rem !important;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pb-prayer-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 35px rgba(0, 15, 27, 0.12) !important;
  border-color: rgba(253, 214, 142, 0.85) !important;
}

.pb-prayer-card-cat {
  font-family: var(--font-heading) !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #9A6B19 !important;
  margin-bottom: 0.5rem !important;
  display: block;
}

.pb-prayer-card-title {
  font-family: var(--font-heading) !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #000F1B !important;
  margin: 0 0 0.55rem !important;
  line-height: 1.35 !important;
}

.pb-prayer-card-snippet {
  font-family: var(--font-sans) !important;
  font-size: 0.9rem !important;
  color: #52606A !important;
  line-height: 1.6 !important;
  margin-bottom: 1.25rem !important;
}

.pb-prayer-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.pb-read-link {
  font-family: var(--font-heading) !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: #000F1B !important;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pb-prayer-card:hover .pb-read-link {
  color: #9A6B19 !important;
}

/* ================= 7. MODAL PRAYER READER ================= */
.pb-reader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 15, 27, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.pb-reader-overlay.active {
  display: flex !important;
}

.pb-reader-container {
  background: #ffffff;
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  border-radius: var(--pb-radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  animation: modalSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.pb-reader-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 15 !important;
  padding: 1rem 1.75rem !important;
  background: #000F1B !important;
  color: #FFFFFF !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
  border-bottom: 2px solid #FDD68E !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
}

.pb-reader-header-main {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 1rem !important;
}

.pb-reader-header-left {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.15rem !important;
  min-width: 0 !important;
  flex: 1 !important;
}

.pb-reader-breadcrumb {
  font-size: 0.75rem !important;
  color: #FDD68E !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}

.pb-reader-breadcrumb-title {
  font-size: 0.95rem !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.pb-reader-close-btn {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1.5px solid #FDD68E !important;
  color: #FDD68E !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 28px !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
  touch-action: manipulation !important;
}

.pb-reader-close-btn:hover,
.pb-reader-close-btn:focus {
  background: #FDD68E !important;
  color: #000F1B !important;
  transform: scale(1.08) !important;
  outline: none !important;
}

.pb-reader-controls {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  flex-wrap: wrap !important;
}

.pb-tool-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pb-tool-btn:hover {
  background: #FDD68E;
  color: #000F1B;
  border-color: #FDD68E;
}

.pb-tool-btn.saved {
  background: #FDD68E;
  color: #000F1B;
  border-color: #FDD68E;
}

.pb-reader-body {
  padding: 2.5rem 3rem;
  overflow-y: auto;
  flex: 1;
}

.pb-reader-meta {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.pb-reader-cat-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #9A6B19;
  background: rgba(154, 107, 25, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.pb-reader-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: #000F1B;
  margin: 0 0 0.5rem;
  line-height: 1.25;
  overflow-wrap: break-word;
  word-break: normal;
}

.pb-reader-subtitle {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: #52606A;
  margin: 0;
}

/* Prayer Body Content Typography */
.pb-reader-content {
  font-family: var(--font-sans);
  color: #26343D;
  line-height: 1.9;
  white-space: pre-line;
}

.font-size-sm { font-size: 0.95rem !important; }
.font-size-md { font-size: 1.1rem !important; }
.font-size-lg { font-size: 1.25rem !important; }
.font-size-xl { font-size: 1.4rem !important; }

/* Focus Mode */
.pb-reader-container.focus-mode {
  max-width: 960px;
  background: #fbf9f5;
}

.pb-reader-container.focus-mode .pb-reader-body {
  padding: 3.5rem 5rem;
}

/* Dialogue Badges & Rubrics */
.pb-dialogue-v,
.pb-dialogue-r,
.pb-dialogue-cel,
.pb-dialogue-all {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-right: 0.5rem;
}

.pb-dialogue-v {
  background: #f1f5f9;
  color: #000F1B;
}

.pb-dialogue-r {
  background: rgba(154, 107, 25, 0.14);
  color: #9A6B19;
}

.pb-dialogue-cel {
  background: #000F1B;
  color: #FDD68E;
}

.pb-dialogue-all {
  background: rgba(154, 107, 25, 0.2);
  color: #000F1B;
}

.pb-rubric {
  font-style: italic;
  color: #9A6B19;
  font-size: 0.95em;
  display: block;
  margin: 0.75rem 0;
}

/* Reader Subnav (Station / Mystery / Section Navigation inside body) */
.pb-reader-body .pb-reader-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.6rem 0 1rem 0;
  background: transparent;
  border-top: none;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 1.25rem;
  justify-content: flex-start;
}

.pb-subnav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.85rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: #000F1B;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.pb-subnav-btn:hover {
  background: #FDD68E;
  color: #000F1B;
  border-color: #c9a227;
}

.pb-subnav-btn.active {
  background: #000F1B;
  color: #FDD68E;
  border-color: #000F1B;
  box-shadow: 0 2px 8px rgba(0, 15, 27, 0.2);
}

/* Reader Footer Navigation (Previous / Next) */
.pb-reader-footer-nav,
.pb-reader-subnav:not(.pb-reader-body .pb-reader-subnav) {
  padding: 1.1rem 2rem;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
}

.pb-nav-btn:disabled,
.pb-nav-btn[disabled] {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

/* Toast */
.pb-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #000F1B;
  color: #FFFFFF;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border: 1px solid #FDD68E;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pb-toast.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ── Mobile Responsive Prayer Reader Modal (Single-Column, No Overlap, Natural Wrap) ── */
@media (max-width: 768px) {
  .pb-reader-overlay {
    padding: 0 !important;
    align-items: flex-end !important;
    justify-content: center !important;
  }

  .pb-reader-container {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
  }

  .pb-reader-header {
    padding: 0.75rem 1rem !important;
    flex-shrink: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.65rem !important;
    background: #000F1B !important;
    border-bottom: 2px solid #FDD68E !important;
  }

  .pb-reader-header-main {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 0.75rem !important;
  }

  .pb-reader-header-left {
    min-width: 0 !important;
    flex: 1 !important;
  }

  .pb-reader-breadcrumb {
    font-size: 0.72rem !important;
  }

  .pb-reader-breadcrumb-title {
    font-size: 0.92rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
  }

  .pb-reader-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-top: 2px !important;
  }

  .pb-tool-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    flex-shrink: 0 !important;
  }

  .pb-reader-body {
    padding: 1.25rem 1.15rem 2rem 1.15rem !important;
    flex: 1 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
  }

  .pb-reader-meta {
    margin-bottom: 1.15rem !important;
    padding-bottom: 0.85rem !important;
    border-bottom: 1px solid #f1f5f9 !important;
  }

  .pb-reader-title {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 1.45rem !important;
    line-height: 1.3 !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: auto;
    margin: 0 0 0.5rem !important;
  }

  .pb-reader-subtitle {
    font-size: 1rem !important;
    line-height: 1.45 !important;
    overflow-wrap: break-word !important;
  }

  .pb-reader-content {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    font-size: 1.05rem !important;
    line-height: 1.8 !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    padding-bottom: 2rem !important;
  }

  .pb-reader-footer-nav,
  .pb-reader-subnav:not(.pb-reader-body .pb-reader-subnav) {
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px)) 1rem !important;
    flex-shrink: 0 !important;
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.75rem !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06) !important;
  }

  .pb-reader-footer-nav .pb-nav-btn,
  .pb-reader-subnav:not(.pb-reader-body .pb-reader-subnav) .pb-nav-btn {
    flex: 1 !important;
    justify-content: center !important;
    min-height: 44px !important;
    padding: 0.55rem 0.85rem !important;
    font-size: 0.82rem !important;
    white-space: nowrap !important;
    text-align: center !important;
  }
}
