:root {
  --bs-body-font-family: "Bw Modelica", "Noto Sans", -apple-system, BlinkMacSystemFont, Segoe UI, Roboto,
    Helvetica Neue, Arial, sans-serif, Apple Color Emoji,
    Segoe UI Emoji, Segoe UI Symbol, Noto Color Emojia;
}

.sict-w38 {
  width: 38px;
}

.sict-h38 {
  height: 38px;
}

nav#TableOfContents {
  display: block;
  background: transparent;
  padding-bottom: 2rem;
  font-size: 1.2em;
}

nav#TableOfContents ul {
  display: list-item;
  padding-left: 0;
}

nav#TableOfContents ul:not(:first-child) {
  display: list-item;
  padding-left: 0.9rem;
  font-size: 95%;
}

nav#TableOfContents ul > li {
  display: inherit;
  color: var(--bs-primary);
}

nav#TableOfContents ul > li > a {
  color: inherit;
  text-align: left;
  padding: 0;
}

nav#TableOfContents a:hover {
  color: var(--bs-secondary);
  background-color: transparent;
}

.card-body .card-title {
  height: 4em;
}

/* .content,
.sidebar-section.downloads {
  margin-top: 20px;
  padding: 10px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
} */

.sidebar-section.downloads h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
}

.sidebar-section.downloads ul {
  list-style: none;
  padding: 0;
}

.sidebar-section.downloads ul li {
  margin-bottom: 5px;
}

.sidebar-section.downloads ul li a {
  text-decoration: none;
  color: #007bff;
}

.sidebar-section.downloads ul li a:hover {
  text-decoration: underline;
}

.section-dark {
  background: var(--bs-dark);
  color: var(--bs-light);
}

.padding-lg {
  padding: 40px 22px;
}
.max-width-100 {
  max-width: 100%;
}
.max-width-80 {
  max-width: 80%;
}
.margin-bottom-16 {
  margin-bottom: 16px;
}

/* ============================================
   SBL Reading Experience
   SDARM Huisstijl: Navy #0a245e | Gold #f1be48
   Accent bronze #c5a55a | Crème #f2f1ef
   ============================================ */

/* -- Layout -- */
.sbl-lesson {
  max-width: 720px;
  margin: 0 auto;
}

.sbl-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bs-primary);
  letter-spacing: 0.02em;
}

.sbl-section-title i {
  opacity: 0.6;
}

/* -- Memory Verse -- */
.sbl-memory-verse {
  background: linear-gradient(135deg, var(--bs-primary) 0%, #0d2f75 100%);
  color: white;
  padding: 2rem 2rem;
  border-radius: 0.75rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sbl-memory-verse::before {
  content: "\201C";
  font-family: "Noto Serif", Georgia, serif;
  font-size: 8rem;
  color: rgba(255, 255, 255, 0.06);
  position: absolute;
  top: -1.5rem;
  left: 1rem;
  line-height: 1;
  pointer-events: none;
}

.sbl-mv-icon {
  font-size: 1.25rem;
  opacity: 0.5;
  margin-bottom: 0.75rem;
}

.sbl-mv-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.7;
  margin-bottom: 0.75rem;
}

.sbl-mv-text {
  font-family: "Noto Serif", Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.7;
  font-style: italic;
  max-width: 560px;
  margin: 0 auto;
}

.sbl-mv-ref {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}

.sbl-mv-ref .sbl-verse-ref {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border-color: rgba(255, 255, 255, 0.25);
}

/* -- Verse References (badge style, no links) -- */
.sbl-verse-ref.badge {
  background: rgba(var(--bs-primary-rgb), 0.08);
  color: var(--bs-primary);
  border: 1px solid rgba(var(--bs-primary-rgb), 0.2);
  font-weight: 600;
  font-size: 0.8em;
  padding: 0.2em 0.55em;
  border-radius: 50rem;
  vertical-align: middle;
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: background 0.15s;
}

.sbl-verse-ref.badge:hover {
  background: rgba(var(--bs-primary-rgb), 0.14);
}

/* -- Suggested Reading -- */
.sbl-reading {
  background: rgba(var(--bs-primary-rgb), 0.03);
  border-left: 3px solid rgba(var(--bs-primary-rgb), 0.3);
  padding: 0.75rem 1.125rem;
  border-radius: 0 0.375rem 0.375rem 0;
  font-size: 0.9rem;
  color: var(--bs-secondary);
}

.sbl-reading i {
  color: var(--bs-primary);
  opacity: 0.5;
}

.sbl-reading .sbl-reading-item .sop-book {
  font-style: italic;
}

/* -- SOP Quotes (blockquote style) -- */
.sbl-note {
  background: #faf8f5;
  border-left: 3px solid #c5a55a;
  padding: 1.125rem 1.25rem 1rem;
  border-radius: 0 0.375rem 0.375rem 0;
  margin: 0.75rem 0;
  position: relative;
}

.sbl-note::before {
  content: "\201C";
  font-family: "Noto Serif", Georgia, serif;
  font-size: 2.5rem;
  color: rgba(197, 165, 90, 0.2);
  position: absolute;
  top: 0;
  left: 0.75rem;
  line-height: 1;
  pointer-events: none;
}

.sbl-note p:last-child {
  margin-bottom: 0;
}

.sbl-sop {
  font-family: "Noto Serif", Georgia, serif;
  font-style: italic;
  line-height: 1.7;
  font-size: 0.95rem;
}

.sbl-note p + p {
  margin-top: 0.125rem;
}

.sbl-note .sbl-sop + .sbl-sop {
  border-top: 1px solid rgba(197, 165, 90, 0.15);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

.sbl-sop-ref {
  font-family: "Noto Sans", sans-serif;
  font-size: 0.78rem;
  font-style: normal;
  color: #9e8a60;
  letter-spacing: 0.01em;
}

/* -- Accordion (Daily Lessons) -- */
.sbl-accordion .accordion-item {
  border: 1px solid rgba(var(--bs-primary-rgb), 0.1);
  margin-bottom: 0;
  border-radius: 0 !important;
  overflow: hidden;
}

.sbl-accordion .accordion-item:first-child {
  border-radius: 0.5rem 0.5rem 0 0 !important;
}

.sbl-accordion .accordion-item:last-child {
  border-radius: 0 0 0.5rem 0.5rem !important;
}

.sbl-accordion .accordion-item + .accordion-item {
  border-top: none;
}

.sbl-accordion .accordion-button {
  padding: 0.875rem 1.125rem;
  font-size: 0.95rem;
  background: white;
  gap: 0;
  transition: background 0.15s;
}

.sbl-accordion .accordion-button:not(.collapsed) {
  background: rgba(var(--bs-primary-rgb), 0.04);
  color: var(--bs-primary);
  box-shadow: none;
  border-bottom: 1px solid rgba(var(--bs-primary-rgb), 0.08);
}

.sbl-accordion .accordion-button:focus {
  box-shadow: 0 0 0 0.15rem rgba(var(--bs-primary-rgb), 0.12);
}

.sbl-accordion .accordion-body {
  padding: 1.125rem 1.25rem;
}

/* Day number badge */
.sbl-day-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  border-radius: 50%;
  background: var(--bs-primary);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.accordion-button:not(.collapsed) .sbl-day-badge {
  background: var(--bs-primary);
  box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.15);
}

.sbl-day-subtitle {
  font-size: 0.85rem;
  color: var(--bs-secondary);
  font-style: italic;
  text-transform: capitalize;
}

/* -- Lesson Header (e.g. "LESSON 1") -- */
.sbl-lesson-header {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: var(--bs-secondary);
  opacity: 0.7;
}

/* -- FSO Collapsible Details -- */
.sbl-fso-details {
  overflow: hidden;
  border-color: rgba(var(--bs-warning-rgb), 0.4) !important;
}

.sbl-fso-header {
  cursor: pointer;
  list-style: none;
  background: rgba(var(--bs-warning-rgb), 0.06);
  transition: background 0.15s;
}

.sbl-fso-header:hover {
  background: rgba(var(--bs-warning-rgb), 0.1);
}

.sbl-fso-header::-webkit-details-marker {
  display: none;
}

.sbl-fso-details[open] .sbl-fso-header {
  border-bottom: 1px solid rgba(var(--bs-warning-rgb), 0.2);
}

.sbl-fso-details .card-body {
  font-size: 0.93rem;
  line-height: 1.65;
}

.sbl-fso-details .card-body p:last-child {
  margin-bottom: 0;
}

/* -- Questions -- */
.sbl-question {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sbl-question:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.sbl-question-text {
  color: var(--bs-secondary);
  font-size: 0.93rem;
  line-height: 1.55;
}

/* Empty Friday placeholder */
.sbl-empty-day {
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--bs-secondary);
  font-style: italic;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* -- Quarter Overview (list.html) -- */
.sbl-year-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bs-primary);
  border-bottom: 2px solid rgba(var(--bs-primary-rgb), 0.15);
  padding-bottom: 0.5rem;
}

.sbl-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.sbl-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1.25rem rgba(var(--bs-primary-rgb), 0.1) !important;
}

.sbl-card-img-wrapper {
  position: relative;
  background: linear-gradient(145deg, rgba(var(--bs-primary-rgb), 0.12), rgba(var(--bs-primary-rgb), 0.03));
  aspect-ratio: 600 / 852;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sbl-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.sbl-card:hover .sbl-card-img {
  transform: scale(1.03);
}

.sbl-card-img-fallback {
  background: linear-gradient(145deg, rgba(var(--bs-primary-rgb), 0.15), rgba(var(--bs-primary-rgb), 0.04));
}

.sbl-card-img-fallback::after {
  content: "\f02d";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 2.5rem;
  color: rgba(var(--bs-primary-rgb), 0.2);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.sbl-card-quarter-badge {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  background: var(--bs-primary);
  color: white;
  padding: 0.2rem 0.625rem;
  border-radius: 50rem;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.sbl-card .card-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  height: auto;
  min-height: 2.6em;
  color: var(--bs-primary);
}

.sbl-card .card-text.small {
  font-size: 0.82rem;
  line-height: 1.4;
}

.sbl-card .btn-primary {
  font-size: 0.82rem;
  padding: 0.35rem 0.875rem;
  letter-spacing: 0.02em;
}

/* -- Quarter Detail (single.html) -- */
.sbl-foreword-details {
  border: 1px solid rgba(var(--bs-primary-rgb), 0.1);
  border-radius: 0.5rem;
  overflow: hidden;
}

.sbl-foreword-summary {
  padding: 0.875rem 1.125rem;
  background: rgba(var(--bs-primary-rgb), 0.03);
  cursor: pointer;
  list-style: none;
  transition: background 0.15s;
}

.sbl-foreword-summary:hover {
  background: rgba(var(--bs-primary-rgb), 0.06);
}

.sbl-foreword-summary::-webkit-details-marker {
  display: none;
}

.sbl-foreword-summary::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  float: right;
  transition: transform 0.25s ease;
  color: var(--bs-secondary);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

details[open] .sbl-foreword-summary::after {
  transform: rotate(180deg);
}

.sbl-foreword-body {
  padding: 1rem 1.25rem 1.25rem;
  line-height: 1.65;
  font-size: 0.93rem;
  border-top: 1px solid rgba(var(--bs-primary-rgb), 0.06);
}

.sbl-foreword-body p:last-child {
  margin-bottom: 0;
}

/* Lesson list (numbered) */
.sbl-lesson-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid rgba(var(--bs-primary-rgb), 0.1);
}

.sbl-lesson-item {
  padding: 0.75rem 1rem;
  border: none;
  border-bottom: 1px solid rgba(var(--bs-primary-rgb), 0.06);
  color: var(--bs-body-color);
  transition: background 0.15s ease, padding-left 0.15s ease;
}

.sbl-lesson-item:first-child {
  border-radius: 0;
}

.sbl-lesson-item:last-child {
  border-bottom: none;
  border-radius: 0;
}

.sbl-lesson-item:hover {
  background: rgba(var(--bs-primary-rgb), 0.04);
  padding-left: 1.25rem;
}

a.sbl-lesson-item {
  text-decoration: none;
}

.sbl-lesson-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  border-radius: 50%;
  background: var(--bs-primary);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.sbl-lesson-item:hover .sbl-lesson-badge {
  box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.12);
}

.sbl-lesson-title {
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--bs-body-color);
}

.sbl-lesson-item:hover .sbl-lesson-title {
  color: var(--bs-primary);
}

.sbl-lesson-item .fa-chevron-right {
  font-size: 0.7rem;
  opacity: 0.3;
  transition: opacity 0.15s, transform 0.15s;
}

.sbl-lesson-item:hover .fa-chevron-right {
  opacity: 0.6;
  transform: translateX(2px);
}

/* -- Breadcrumb -- */
.breadcrumb {
  font-size: 0.85rem;
}

.breadcrumb-item a {
  color: var(--bs-primary);
  opacity: 0.7;
  text-decoration: none;
  transition: opacity 0.15s;
}

.breadcrumb-item a:hover {
  opacity: 1;
}

/* -- Navigation -- */
.sbl-nav .btn {
  min-width: 0;
  font-size: 0.85rem;
  border-radius: 50rem;
  padding: 0.375rem 0.875rem;
}

.sbl-nav .btn-outline-primary {
  border-color: rgba(var(--bs-primary-rgb), 0.3);
}

.sbl-nav .btn-outline-primary:hover {
  border-color: var(--bs-primary);
}

.sbl-nav .btn-outline-secondary {
  border-color: rgba(0, 0, 0, 0.15);
}

/* -- Scroll to Top -- */
.sbl-scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--bs-primary);
  color: white;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(var(--bs-primary-rgb), 0.25);
  font-size: 0.85rem;
}

.sbl-scroll-top.visible {
  opacity: 0.85;
  visibility: visible;
}

.sbl-scroll-top:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.3);
}

/* ============================================
   Print Stylesheet
   ============================================ */
@media print {
  .accordion-collapse {
    display: block !important;
    height: auto !important;
  }
  .accordion-button::after {
    display: none;
  }
  .accordion-button {
    pointer-events: none;
  }
  .sbl-nav,
  .sbl-scroll-top,
  .breadcrumb,
  nav[aria-label="breadcrumb"],
  header,
  footer,
  .btn {
    display: none !important;
  }
  .sbl-lesson {
    max-width: 100%;
  }
  .sbl-mv-text,
  .sbl-sop {
    font-family: "Noto Serif", Georgia, serif;
  }
  body {
    font-size: 11pt;
    line-height: 1.5;
    color: black;
  }
  .sbl-memory-verse {
    background: none !important;
    color: black !important;
    border: 2px solid #333;
    padding: 1rem;
  }
  .sbl-memory-verse::before {
    display: none;
  }
  .sbl-mv-ref .sbl-verse-ref {
    background: none;
    color: black;
    border-color: #666;
  }
  .sbl-note {
    background: none !important;
    border-left: 3px solid #666;
  }
  .sbl-note::before {
    display: none;
  }
  .sbl-day-badge,
  .sbl-lesson-badge {
    background: #333 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .sbl-accordion .accordion-item {
    break-inside: avoid;
    border: 1px solid #ccc;
    margin-bottom: 0.5rem;
  }
  .sbl-question {
    break-inside: avoid;
  }
  .sbl-fso-details,
  .sbl-foreword-details {
    border: 1px solid #ccc;
  }
  .sbl-fso-details[open],
  .sbl-foreword-details[open] {
    break-inside: avoid;
  }
  details > summary {
    pointer-events: none;
  }
  details > summary::after {
    display: none;
  }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 991.98px) {
}

@media (max-width: 575.98px) {
  .sbl-memory-verse {
    padding: 1.5rem 1.25rem;
    border-radius: 0.5rem;
  }
  .sbl-memory-verse::before {
    font-size: 5rem;
    top: -1rem;
  }
  .sbl-mv-text {
    font-size: 1rem;
    line-height: 1.6;
  }
  .sbl-mv-label {
    font-size: 0.65rem;
  }
  .sbl-accordion .accordion-button {
    padding: 0.75rem 0.875rem;
    min-height: 3.25rem;
    font-size: 0.9rem;
  }
  .sbl-accordion .accordion-body {
    padding: 1rem;
  }
  .sbl-day-badge {
    width: 1.625rem;
    height: 1.625rem;
    min-width: 1.625rem;
    font-size: 0.75rem;
  }
  .sbl-nav .btn {
    font-size: 0.78rem;
    padding: 0.3rem 0.5rem;
  }
  .sbl-lesson-badge {
    width: 1.75rem;
    height: 1.75rem;
    min-width: 1.75rem;
    font-size: 0.78rem;
  }
  .sbl-lesson-item {
    padding: 0.625rem 0.75rem;
  }
  .sbl-lesson-title {
    font-size: 0.88rem;
  }
  .sbl-note {
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
  }
  .sbl-note::before {
    font-size: 1.75rem;
    top: 0.1rem;
    left: 0.5rem;
  }
  .sbl-sop {
    line-height: 1.6;
  }
  .sbl-reading {
    padding: 0.625rem 0.875rem;
    font-size: 0.85rem;
  }
  .sbl-lesson-header {
    font-size: 0.7rem;
  }
  .sbl-section-title {
    font-size: 1rem;
  }
  .sbl-question {
    margin-bottom: 0.875rem;
    padding-bottom: 0.875rem;
  }
  .sbl-verse-ref.badge {
    font-size: 0.75em;
    padding: 0.15em 0.45em;
  }
  .sbl-foreword-body {
    font-size: 0.88rem;
  }
  .sbl-scroll-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.78rem;
  }
  .breadcrumb {
    font-size: 0.78rem;
  }
}