:root,
[data-bs-theme=light] {
  --bs-primary: #c89a3d;
  --bs-primary-rgb: 200, 154, 61;
  --bs-secondary: #242424;
  --bs-secondary-rgb: 36, 36, 36;
  --bs-success: #66785f;
  --bs-danger: #9d5c4d;
  --bs-warning: #d7b06a;
  --bs-light: #fbf7f0;
  --bs-dark: #151515;
  --bs-body-bg: #fbf7f0;
  --bs-body-color: #222222;
  --bs-secondary-color: #5f5a52;
  --bs-tertiary-bg: #f5ede0;
  --bs-tertiary-color: #5f5a52;
  --bs-emphasis-color: #1d1d1d;
  --bs-border-color: #e5d7bf;
  --bs-link-color: #a67a28;
  --bs-link-hover-color: #8a5a35;
  --brand-primary-dark: #a67a28;
  --brand-charcoal: #151515;
  --brand-charcoal-soft: #242424;
  --brand-ivory: #fbf7f0;
  --brand-sand: #efe2c8;
  --brand-stone: #d8c7ac;
  --brand-bronze: #8a5a35;
  --brand-text: #222222;
  --brand-text-soft: #5f5a52;
  --brand-white: #ffffff;
  --theme-surface-1: #ffffff;
  --theme-surface-2: #f5ede0;
  --theme-surface-3: #efe2c8;
  --theme-heading: #1d1d1d;
  --theme-muted: #5f5a52;
  --theme-header-bg: rgba(255, 251, 245, 0.94);
  --theme-navbar-bg: rgba(255, 255, 255, 0.96);
  --theme-hero-overlay: linear-gradient(
      90deg,
      rgba(251, 247, 240, 0.94) 0%,
      rgba(251, 247, 240, 0.68) 38%,
      rgba(251, 247, 240, 0.12) 100%
  );
  --theme-card-bg: #ffffff;
  --theme-card-border: #eadcc3;
  --theme-card-muted-bg: #f5ede0;
  --theme-shadow: 0 0.75rem 2rem rgba(21, 21, 21, 0.08);
  --theme-donate-panel-bg: linear-gradient(180deg, #d7b06a 0%, #c89a3d 100%);
  --theme-gold-gradient: linear-gradient(135deg, #d8b46b 0%, #c89a3d 55%, #a67a28 100%);
  --theme-divider: rgba(200, 154, 61, 0.35);
  --theme-on-primary: #151515;
  --theme-on-dark: #f3eadb;
  --theme-overlay-scrim: rgba(21, 21, 21, 0.55);
  --theme-footer-bg: #151515;
  --theme-footer-text: #f3eadb;
  --theme-footer-muted: #cdbfa9;
  --theme-footer-link-hover: #d7b06a;
}

[data-bs-theme=dark] {
  --bs-primary: #d7b06a;
  --bs-primary-rgb: 215, 176, 106;
  --bs-secondary: #efe2c8;
  --bs-secondary-rgb: 239, 226, 200;
  --bs-success: #7b8b73;
  --bs-danger: #b97968;
  --bs-warning: #e0bf82;
  --bs-light: #fbf7f0;
  --bs-dark: #111111;
  --bs-body-bg: #111111;
  --bs-body-color: #f3eadb;
  --bs-secondary-color: #cdbfa9;
  --bs-tertiary-bg: #1b1b1b;
  --bs-tertiary-color: #cdbfa9;
  --bs-emphasis-color: #fbf7f0;
  --bs-border-color: rgba(215, 176, 106, 0.18);
  --bs-link-color: #d7b06a;
  --bs-link-hover-color: #efd09a;
  --brand-primary-dark: #d7b06a;
  --brand-charcoal: #111111;
  --brand-charcoal-soft: #1a1a1a;
  --brand-ivory: #f3eadb;
  --brand-sand: #242424;
  --brand-stone: rgba(215, 176, 106, 0.28);
  --brand-bronze: #c89a3d;
  --brand-text: #f3eadb;
  --brand-text-soft: #cdbfa9;
  --brand-white: #ffffff;
  --theme-surface-1: #171717;
  --theme-surface-2: #1d1d1d;
  --theme-surface-3: #242424;
  --theme-heading: #fbf7f0;
  --theme-muted: #cdbfa9;
  --theme-header-bg: rgba(21, 21, 21, 0.94);
  --theme-navbar-bg: rgba(17, 17, 17, 0.97);
  --theme-hero-overlay: linear-gradient(
      90deg,
      rgba(17, 17, 17, 0.92) 0%,
      rgba(17, 17, 17, 0.72) 42%,
      rgba(17, 17, 17, 0.24) 100%
  );
  --theme-card-bg: #1a1a1a;
  --theme-card-border: rgba(215, 176, 106, 0.2);
  --theme-card-muted-bg: #1d1d1d;
  --theme-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.32);
  --theme-donate-panel-bg: linear-gradient(180deg, #c89a3d 0%, #a67a28 100%);
  --theme-gold-gradient: linear-gradient(135deg, #d8b46b 0%, #c89a3d 55%, #a67a28 100%);
  --theme-divider: rgba(215, 176, 106, 0.25);
  --theme-on-primary: #151515;
  --theme-on-dark: #f3eadb;
  --theme-overlay-scrim: rgba(17, 17, 17, 0.62);
  --theme-footer-bg: #0d0d0d;
  --theme-footer-text: #f3eadb;
  --theme-footer-muted: #cdbfa9;
  --theme-footer-link-hover: #efd09a;
}

html {
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
}

html body {
  font-family: "Inter", "Source Sans 3", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
}

h1, h2, h3, h4, h5, h6,
.theme-heading,
.page-title,
.section-heading {
  font-family: "Cormorant Garamond", "Baskerville", "Georgia", serif;
  color: var(--theme-heading);
  font-weight: 600;
}

.page-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.15;
}

.section-heading {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.2;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.05;
}

.text-meta {
  font-size: 0.875rem;
  color: var(--theme-muted);
}

.text-tiny {
  font-size: 0.75rem;
  color: var(--theme-muted);
}

.card:not(.theme-card) {
  --bs-card-bg: var(--theme-card-bg);
  --bs-card-border-color: var(--theme-card-border);
  --bs-card-color: var(--bs-body-color);
  background-color: var(--theme-card-bg);
  border-color: var(--theme-card-border);
  color: var(--bs-body-color);
}

.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--bs-body-color);
  --bs-table-border-color: var(--bs-border-color);
  --bs-table-striped-bg: var(--theme-surface-2);
  --bs-table-striped-color: var(--bs-body-color);
  --bs-table-hover-bg: var(--theme-surface-2);
  --bs-table-hover-color: var(--bs-body-color);
  --bs-table-active-bg: rgba(var(--bs-primary-rgb), 0.12);
  --bs-table-active-color: var(--bs-body-color);
}

.table-dark {
  --bs-table-bg: var(--brand-charcoal);
  --bs-table-color: var(--theme-on-dark);
  --bs-table-border-color: var(--bs-border-color);
  --bs-table-hover-bg: var(--theme-surface-3);
  --bs-table-hover-color: var(--theme-heading);
}

[data-bs-theme=dark] .table-dark {
  --bs-table-bg: var(--theme-surface-3);
  --bs-table-color: var(--theme-heading);
}

.breadcrumb {
  --bs-breadcrumb-divider-color: var(--theme-muted);
  --bs-breadcrumb-item-active-color: var(--theme-heading);
  --bs-breadcrumb-item-padding-x: 0.5rem;
}

.breadcrumb-item a {
  color: var(--bs-link-color);
  text-decoration: none;
}
.breadcrumb-item a:hover {
  color: var(--bs-link-hover-color);
}

.breadcrumb-item.active {
  color: var(--theme-muted);
}

.accordion {
  --bs-accordion-color: var(--bs-body-color);
  --bs-accordion-bg: var(--theme-card-bg);
  --bs-accordion-border-color: var(--theme-card-border);
  --bs-accordion-btn-color: var(--theme-heading);
  --bs-accordion-btn-bg: var(--theme-surface-2);
  --bs-accordion-active-color: var(--theme-heading);
  --bs-accordion-active-bg: var(--theme-surface-2);
  --bs-accordion-btn-focus-border-color: var(--bs-primary);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.18);
}

.accordion-body {
  color: var(--bs-body-color);
}

.list-group {
  --bs-list-group-bg: var(--theme-card-bg);
  --bs-list-group-color: var(--bs-body-color);
  --bs-list-group-border-color: var(--theme-card-border);
  --bs-list-group-action-color: var(--bs-body-color);
  --bs-list-group-action-hover-color: var(--bs-body-color);
  --bs-list-group-action-hover-bg: var(--theme-surface-2);
  --bs-list-group-action-active-color: var(--bs-body-color);
  --bs-list-group-action-active-bg: var(--theme-surface-2);
}

.alert {
  --bs-alert-bg: var(--theme-surface-2);
  --bs-alert-border-color: var(--theme-card-border);
  --bs-alert-color: var(--theme-heading);
  --bs-alert-padding-x: 1.15rem;
  --bs-alert-padding-y: 0.95rem;
  --bs-alert-border-radius: 1rem;
  --bs-alert-link-color: var(--bs-link-color);
  border-width: 1px;
  border-left-width: 4px;
  box-shadow: var(--theme-shadow);
  font-size: 0.92rem;
  line-height: 1.5;
}

.alert-success {
  --bs-alert-color: #2f3a2c;
  --bs-alert-bg: color-mix(in srgb, var(--bs-success) 16%, #fbf7f0);
  --bs-alert-border-color: color-mix(in srgb, var(--bs-success) 42%, #eadcc3);
  --bs-alert-link-color: #4f5e49;
  border-left-color: var(--bs-success);
}

.alert-danger {
  --bs-alert-color: #4a2c26;
  --bs-alert-bg: color-mix(in srgb, var(--bs-danger) 16%, #fbf7f0);
  --bs-alert-border-color: color-mix(in srgb, var(--bs-danger) 42%, #eadcc3);
  --bs-alert-link-color: #9d5c4d;
  border-left-color: var(--bs-danger);
}

.alert-warning {
  --bs-alert-color: #3f3420;
  --bs-alert-bg: color-mix(in srgb, var(--bs-warning) 22%, #fbf7f0);
  --bs-alert-border-color: color-mix(in srgb, var(--bs-primary) 38%, #eadcc3);
  --bs-alert-link-color: var(--brand-bronze);
  border-left-color: var(--bs-primary);
}

.alert-info {
  --bs-alert-color: #1d1d1d;
  --bs-alert-bg: #fbf7f0;
  --bs-alert-border-color: #eadcc3;
  --bs-alert-link-color: var(--bs-link-color);
  border-left-color: var(--bs-primary);
}

.alert .btn-close {
  --bs-btn-close-opacity: 0.5;
  --bs-btn-close-hover-opacity: 0.85;
  --bs-btn-close-focus-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.18);
  filter: none;
}

.alert .close {
  float: right;
  padding: 0.15rem 0.35rem;
  margin: -0.2rem -0.35rem -0.2rem 0.75rem;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  color: inherit;
  opacity: 0.5;
}
.alert .close:hover, .alert .close:focus {
  opacity: 0.85;
  color: inherit;
  box-shadow: none;
  outline: none;
}

.modal-content {
  background-color: var(--theme-card-bg);
  border-color: var(--theme-card-border);
  color: var(--bs-body-color);
}

.modal-header,
.modal-footer {
  border-color: var(--bs-border-color);
}

.dropdown-menu {
  --bs-dropdown-bg: var(--theme-surface-1);
  --bs-dropdown-color: var(--bs-body-color);
  --bs-dropdown-link-color: var(--bs-body-color);
  --bs-dropdown-link-hover-color: var(--bs-link-hover-color);
  --bs-dropdown-link-hover-bg: var(--theme-surface-2);
  --bs-dropdown-border-color: var(--theme-card-border);
}

.btn-link {
  --bs-btn-color: var(--bs-link-color);
  --bs-btn-hover-color: var(--bs-link-hover-color);
}

.form-label,
.col-form-label,
legend {
  color: var(--theme-heading);
}

.form-text,
.invalid-feedback,
.text-muted {
  color: var(--theme-muted) !important;
}

hr {
  border-color: var(--bs-border-color);
  opacity: 1;
}

main .title {
  color: var(--theme-heading);
}
main .sub_title {
  color: var(--theme-muted);
}
main p.content,
main .description {
  color: var(--bs-body-color);
}

.theme-page,
.theme-section,
.detail-content,
.misc-content {
  color: var(--bs-body-color);
}

blockquote,
.blockquote {
  color: var(--bs-body-color);
}

.blockquote-footer {
  color: var(--theme-muted);
}

.input-group-text {
  background-color: var(--theme-surface-2);
  border-color: var(--bs-border-color);
  color: var(--bs-body-color);
}

.bg-light {
  background-color: var(--theme-surface-2) !important;
  color: var(--bs-body-color) !important;
}

.bg-dark {
  background-color: var(--brand-charcoal) !important;
  color: var(--theme-on-dark) !important;
}

.text-dark {
  color: var(--theme-heading) !important;
}

.border {
  border-color: var(--bs-border-color) !important;
}

.theme-card {
  background: var(--theme-card-bg);
  border: 1px solid var(--theme-card-border);
  border-radius: 1.25rem;
  box-shadow: var(--theme-shadow);
  transition: transform 220ms ease-out, box-shadow 220ms ease-out;
}
.theme-card:hover {
  transform: translateY(-2px);
}

.theme-card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--theme-card-border);
  background: var(--theme-surface-2);
  border-radius: 1.25rem 1.25rem 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.theme-card-header-title {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: "Inter", "Source Sans 3", "Segoe UI", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8125rem;
  color: var(--theme-heading);
}
.theme-card-header-title i {
  color: var(--bs-primary);
  font-size: 0.95rem;
}

.theme-card-header-link {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bs-link-color);
  text-decoration: none;
  white-space: nowrap;
}
.theme-card-header-link:hover {
  color: var(--bs-link-hover-color);
}

.theme-card-body {
  padding: 1.25rem 1.5rem;
  font-family: "Inter", "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--bs-body-color);
}

.btn {
  --bs-btn-padding-x: 1.25rem;
  --bs-btn-padding-y: 0.8rem;
  --bs-btn-font-weight: 700;
  --bs-btn-border-radius: 999px;
  --bs-btn-font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background-color 220ms ease-out, border-color 220ms ease-out, color 220ms ease-out;
}

.btn-primary {
  --bs-btn-color: #151515;
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-color: #151515;
  --bs-btn-hover-bg: var(--bs-warning);
  --bs-btn-hover-border-color: var(--bs-warning);
  --bs-btn-active-color: #151515;
  --bs-btn-active-bg: var(--brand-primary-dark, #a67a28);
  --bs-btn-active-border-color: var(--brand-primary-dark, #a67a28);
}

.btn-outline-primary {
  --bs-btn-color: var(--bs-link-color);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-bg: transparent;
  --bs-btn-hover-color: #151515;
  --bs-btn-hover-bg: var(--bs-primary);
  --bs-btn-hover-border-color: var(--bs-primary);
}

.btn-dark {
  --bs-btn-bg: #151515;
  --bs-btn-border-color: #151515;
  --bs-btn-color: var(--bs-primary);
  --bs-btn-hover-bg: #242424;
  --bs-btn-hover-border-color: #242424;
  --bs-btn-hover-color: var(--bs-warning);
}

.form-control,
.form-select {
  min-height: 3rem;
  border-color: var(--bs-border-color);
  background: var(--theme-surface-1);
  color: var(--bs-body-color);
  border-radius: 0.75rem;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.18);
}

.page-intro {
  padding: 0.65rem 0;
  background: var(--theme-surface-2);
  border-bottom: 1px solid var(--bs-border-color);
  margin-bottom: 0;
}
.page-intro .container-xxl {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.85rem;
}
.page-intro .page-intro-title {
  font-family: "Cormorant Garamond", "Baskerville", "Georgia", serif;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.2;
  color: var(--theme-heading);
  margin: 0;
}
.page-intro .page-intro-subtitle {
  color: var(--theme-muted);
  font-size: 0.82rem;
  line-height: 1.35;
  max-width: none;
  margin: 0;
  flex: 1 1 12rem;
}

.theme-listing-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .theme-listing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .theme-listing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

button.theme-listing-card {
  width: 100%;
  padding: 0;
  text-align: left;
  font: inherit;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

.theme-listing-card {
  display: flex;
  flex-direction: column;
  background: var(--theme-card-bg);
  border: 1px solid var(--theme-card-border);
  border-radius: 1.25rem;
  box-shadow: var(--theme-shadow);
  overflow: hidden;
  height: 100%;
  color: var(--bs-body-color);
  transition: transform 220ms ease-out;
}
.theme-listing-card:hover {
  transform: translateY(-2px);
  color: var(--bs-body-color);
  text-decoration: none;
}
.theme-listing-card .theme-listing-card-image {
  position: relative;
  aspect-ratio: 16/10;
  width: 100%;
  overflow: hidden;
  background: var(--theme-surface-2);
  flex: 0 0 auto;
}
.theme-listing-card .theme-listing-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  -o-object-position: center;
     object-position: center;
  display: block;
}
.theme-listing-card .theme-listing-card-body {
  padding: 1.25rem;
  flex: 1 1 auto;
  font-family: "Inter", "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 0.9375rem;
  line-height: 1.6;
}
.theme-listing-card .theme-listing-card-title {
  font-family: "Inter", "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  color: var(--theme-heading);
}
.theme-listing-card .theme-listing-card-meta {
  font-family: "Inter", "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--theme-muted);
}

.prayer-table .prayer-table-head,
.prayer-table .prayer-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.5rem;
  gap: 0.5rem;
  align-items: center;
  padding: 0.65rem 0.85rem;
}
.prayer-table .prayer-table-head {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--theme-muted);
  border-bottom: 1px solid var(--theme-card-border);
  padding-top: 0;
}
.prayer-table .prayer-row {
  border-bottom: 1px solid var(--theme-card-border);
  font-size: 0.92rem;
}
.prayer-table .prayer-row:last-of-type {
  border-bottom: none;
}
.prayer-table .prayer-row.is-active {
  background: var(--bs-primary);
  border-radius: 0.75rem;
  color: var(--bs-dark);
  font-weight: 700;
  border-bottom-color: transparent;
}
.prayer-table .prayer-row.is-active .prayer-bell {
  color: var(--bs-dark);
}
.prayer-table .prayer-table-footer {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--theme-card-border);
  text-align: center;
}
.prayer-table .prayer-bell {
  color: var(--theme-muted);
  font-size: 0.85rem;
}

[data-bs-theme=dark] .prayer-table .prayer-row.is-active {
  background: var(--bs-primary);
  color: var(--bs-dark);
}

.theme-section {
  padding: 4rem 0;
}

.theme-section-alt {
  background: var(--theme-surface-2);
}

.value-ribbon {
  background: var(--theme-surface-2);
  border-top: 1px solid var(--bs-border-color);
  padding: 2.25rem 0;
  position: relative;
  overflow: hidden;
}
.value-ribbon.theme-pattern-bg::before {
  opacity: 0.1;
  background-size: 280px auto;
}
.value-ribbon .value-ribbon-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: center;
  max-width: 100%;
  margin-inline: auto;
}
@media (min-width: 768px) {
  .value-ribbon .value-ribbon-light {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
.value-ribbon .value-ribbon-dark {
  display: none;
}
@media (min-width: 768px) {
  .value-ribbon .value-ribbon-dark {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.value-ribbon .value-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  text-align: left;
  padding: 1rem 0.75rem;
}
.value-ribbon .value-item .value-item-icon {
  flex-shrink: 0;
  width: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-top: 0.1rem;
}
.value-ribbon .value-item .value-item-icon i {
  color: var(--bs-primary);
  font-size: 1.45rem;
}
.value-ribbon .value-item .value-item-copy {
  min-width: 0;
}
.value-ribbon .value-item .value-title {
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--theme-heading);
  margin-bottom: 0.35rem;
}
.value-ribbon .value-item .value-desc {
  font-size: 0.82rem;
  color: var(--theme-muted);
  margin: 0;
  line-height: 1.45;
}

[data-bs-theme=dark] .value-ribbon {
  background: var(--brand-charcoal);
  border-top-color: rgba(var(--bs-primary-rgb), 0.18);
}
[data-bs-theme=dark] .value-ribbon.theme-pattern-bg::before {
  background-image: url("/frontend/images/theme/pattern-bg-3.webp");
  opacity: 0.18;
  background-size: 320px auto;
}
[data-bs-theme=dark] .value-ribbon .value-ribbon-light {
  display: none;
}
[data-bs-theme=dark] .value-ribbon .value-ribbon-dark {
  display: grid;
}

.donate-panel {
  background: var(--theme-donate-panel-bg);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  color: var(--bs-dark);
  text-align: center;
  box-shadow: var(--theme-shadow);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(var(--bs-primary-rgb), 0.35);
}
.donate-panel > * {
  position: relative;
  z-index: 1;
}
.donate-panel i.fa-hand-holding-heart,
.donate-panel i.fa-quran {
  color: var(--bs-dark);
  opacity: 0.85;
}
.donate-panel .donate-panel-title {
  font-family: "Cormorant Garamond", "Baskerville", "Georgia", serif;
  font-size: 1.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.donate-panel .donate-panel-text {
  font-size: 0.95rem;
  margin: 0;
  opacity: 0.92;
  max-width: 16rem;
  margin-inline: auto;
}
.donate-panel .btn {
  margin-top: 0.5rem;
  min-width: 11rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.donate-panel .btn:disabled {
  background: #6b6b6b;
  border-color: #6b6b6b;
  color: #e8e8e8;
  opacity: 1;
  cursor: not-allowed;
  pointer-events: none;
  white-space: normal;
}
.donate-panel .text-tiny {
  color: var(--bs-dark);
  opacity: 0.85;
}

.feature-event-dates {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bs-dark);
  margin: 0;
}
.feature-event-dates i {
  margin-right: 0.35rem;
}

#paginate-block {
  margin-top: 2rem;
}
#paginate-block .pagination {
  --bs-pagination-color: var(--bs-link-color);
  --bs-pagination-bg: var(--theme-card-bg);
  --bs-pagination-border-color: var(--theme-card-border);
  --bs-pagination-hover-color: var(--bs-link-hover-color);
  --bs-pagination-hover-bg: var(--theme-surface-2);
  --bs-pagination-hover-border-color: var(--theme-card-border);
  --bs-pagination-focus-color: var(--bs-link-hover-color);
  --bs-pagination-focus-bg: var(--theme-surface-2);
  --bs-pagination-disabled-color: var(--theme-muted);
  --bs-pagination-disabled-bg: var(--theme-surface-2);
  --bs-pagination-disabled-border-color: var(--theme-card-border);
  --bs-pagination-active-bg: var(--bs-primary);
  --bs-pagination-active-border-color: var(--bs-primary);
  --bs-pagination-active-color: var(--theme-on-primary);
}

.dropdown-menu {
  border-radius: 0.75rem;
  border-color: var(--theme-card-border);
  background: var(--theme-surface-1);
  box-shadow: var(--theme-shadow);
  padding: 0.45rem;
}
.dropdown-menu .dropdown-item {
  border-radius: 0.5rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--bs-body-color);
}
.dropdown-menu .dropdown-item:hover, .dropdown-menu .dropdown-item:focus {
  background: var(--theme-surface-2);
  color: var(--bs-link-hover-color);
}

.navbar .nav-link {
  color: var(--bs-body-color);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.66rem;
  padding: 0.85rem 0.75rem;
  position: relative;
  border: 0;
  box-shadow: none;
  transition: color 220ms ease-out;
}
.navbar .nav-link:hover, .navbar .nav-link:focus, .navbar .nav-link:focus-visible, .navbar .nav-link.active, .navbar .nav-link.show {
  color: var(--bs-primary);
  border: 0;
  box-shadow: none;
  outline: none;
  background: transparent;
}
.navbar .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.95rem;
  right: 0.95rem;
  bottom: 0.45rem;
  height: 2px;
  background: var(--bs-primary);
  border-radius: 1px;
}

.theme-toggle-btn {
  border: 1px solid var(--bs-border-color);
  background: var(--theme-surface-1);
  color: var(--bs-body-color);
  border-radius: 999px;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 220ms ease-out, color 220ms ease-out;
}
.theme-toggle-btn:hover {
  background: var(--theme-surface-2);
  color: var(--bs-primary);
}

#auth-form .theme-card {
  margin-bottom: 2rem;
}

.detail-content,
.misc-content {
  background: var(--theme-card-bg);
  border: 1px solid var(--theme-card-border);
  border-radius: 1.25rem;
  box-shadow: var(--theme-shadow);
  padding: 2rem;
  margin-bottom: 0;
  font-family: "Inter", "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--bs-body-color);
}

.theme-faq-accordion .accordion-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--theme-card-border);
}
.theme-faq-accordion .accordion-item:last-child {
  border-bottom: 0;
}
.theme-faq-accordion .accordion-button {
  font-family: "Inter", "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--theme-heading);
  background: var(--theme-surface-2);
  border-radius: 0.75rem !important;
  box-shadow: none;
  padding: 1rem 1.15rem;
}
.theme-faq-accordion .accordion-button:not(.collapsed) {
  background: rgba(var(--bs-primary-rgb), 0.12);
  color: var(--theme-heading);
}
.theme-faq-accordion .accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.15);
}
.theme-faq-accordion .accordion-body {
  font-family: "Inter", "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--bs-body-color);
  padding: 1rem 1.15rem 1.25rem;
}

.theme-swal-popup.swal2-popup {
  background: #fbf7f0;
  color: #222222;
  border: 1px solid #eadcc3;
  border-radius: 1.25rem;
  box-shadow: 0 1.25rem 2.5rem rgba(21, 21, 21, 0.18);
  padding: 2rem 1.75rem 1.65rem;
  font-family: "Inter", "Source Sans 3", "Segoe UI", sans-serif;
}

.theme-swal-title {
  font-family: "Cormorant Garamond", "Baskerville", "Georgia", serif;
  color: #1d1d1d;
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1.2;
}

.theme-swal-text {
  color: #5f5a52;
  font-size: 0.98rem;
  line-height: 1.55;
}

.theme-swal-confirm.btn {
  margin-top: 0.35rem;
  min-width: 7.5rem;
}

.swal2-icon.theme-swal-icon.swal2-success {
  border-color: #66785f;
}
.swal2-icon.theme-swal-icon.swal2-success .swal2-success-ring {
  border-color: rgba(102, 120, 95, 0.35);
}
.swal2-icon.theme-swal-icon.swal2-success .swal2-success-line-tip,
.swal2-icon.theme-swal-icon.swal2-success .swal2-success-line-long {
  background-color: #66785f;
}

.swal2-icon.theme-swal-icon.swal2-error {
  border-color: #9d5c4d;
  color: #9d5c4d;
}
.swal2-icon.theme-swal-icon.swal2-error .swal2-x-mark-line-left,
.swal2-icon.theme-swal-icon.swal2-error .swal2-x-mark-line-right {
  background-color: #9d5c4d;
}

.swal2-backdrop-show {
  background: rgba(17, 17, 17, 0.62);
}

[data-bs-theme=dark] main .theme-page,
[data-bs-theme=dark] main .theme-section-alt {
  --bs-body-color: #222222;
  --bs-secondary-color: #5f5a52;
  --bs-emphasis-color: #1d1d1d;
  --bs-border-color: #e5d7bf;
  --bs-link-color: #a67a28;
  --bs-link-hover-color: #8a5a35;
  --theme-heading: #1d1d1d;
  --theme-muted: #5f5a52;
  --theme-surface-1: #ffffff;
  --theme-surface-2: #f5ede0;
  --theme-surface-3: #efe2c8;
  --theme-card-bg: #ffffff;
  --theme-card-border: #eadcc3;
  --theme-card-muted-bg: #f5ede0;
  --theme-shadow: 0 0.75rem 2rem rgba(21, 21, 21, 0.08);
  background: var(--brand-ivory);
  color: #222222;
}
[data-bs-theme=dark] main .theme-page .section-heading,
[data-bs-theme=dark] main .theme-page .page-intro-title,
[data-bs-theme=dark] main .theme-section-alt .section-heading,
[data-bs-theme=dark] main .theme-section-alt .page-intro-title {
  color: #1d1d1d;
}
[data-bs-theme=dark] main .theme-page .page-intro-subtitle,
[data-bs-theme=dark] main .theme-page .text-meta,
[data-bs-theme=dark] main .theme-section-alt .page-intro-subtitle,
[data-bs-theme=dark] main .theme-section-alt .text-meta {
  color: #5f5a52;
}
[data-bs-theme=dark] main .theme-page .page-intro,
[data-bs-theme=dark] main .theme-section-alt .page-intro {
  background: transparent;
  border-bottom-color: #eadcc3;
}
[data-bs-theme=dark] main .theme-page .theme-card,
[data-bs-theme=dark] main .theme-page .theme-listing-card,
[data-bs-theme=dark] main .theme-page .detail-content,
[data-bs-theme=dark] main .theme-page .detail-sidebar,
[data-bs-theme=dark] main .theme-section-alt .theme-card,
[data-bs-theme=dark] main .theme-section-alt .theme-listing-card,
[data-bs-theme=dark] main .theme-section-alt .detail-content,
[data-bs-theme=dark] main .theme-section-alt .detail-sidebar {
  background: #ffffff;
  border-color: #eadcc3;
  box-shadow: 0 0.75rem 2rem rgba(21, 21, 21, 0.08);
  color: #222222;
}
[data-bs-theme=dark] main .theme-page .theme-listing-card-title,
[data-bs-theme=dark] main .theme-section-alt .theme-listing-card-title {
  color: #1d1d1d;
}
[data-bs-theme=dark] main .theme-page .theme-listing-card-meta,
[data-bs-theme=dark] main .theme-section-alt .theme-listing-card-meta {
  color: #5f5a52;
}
[data-bs-theme=dark] main .theme-page .theme-card-header,
[data-bs-theme=dark] main .theme-section-alt .theme-card-header {
  background: var(--brand-charcoal);
  border-bottom-color: rgba(215, 176, 106, 0.22);
}
[data-bs-theme=dark] main .theme-page .theme-card-header .theme-card-header-title,
[data-bs-theme=dark] main .theme-section-alt .theme-card-header .theme-card-header-title {
  color: var(--bs-primary);
}
[data-bs-theme=dark] main .theme-page .theme-card-header .theme-card-header-title i,
[data-bs-theme=dark] main .theme-section-alt .theme-card-header .theme-card-header-title i {
  color: var(--bs-primary);
}
[data-bs-theme=dark] main .theme-page .theme-card-header .theme-card-header-link,
[data-bs-theme=dark] main .theme-section-alt .theme-card-header .theme-card-header-link {
  color: var(--bs-primary);
}
[data-bs-theme=dark] main .theme-page .theme-card-header .theme-card-header-link:hover,
[data-bs-theme=dark] main .theme-section-alt .theme-card-header .theme-card-header-link:hover {
  color: #efd09a;
}
[data-bs-theme=dark] main .theme-page .theme-card-body,
[data-bs-theme=dark] main .theme-section-alt .theme-card-body {
  color: #222222;
}
[data-bs-theme=dark] main .theme-page .misc-content,
[data-bs-theme=dark] main .theme-section-alt .misc-content {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  color: #222222;
}
[data-bs-theme=dark] main .theme-page .misc-content h1,
[data-bs-theme=dark] main .theme-page .misc-content h2,
[data-bs-theme=dark] main .theme-page .misc-content h3,
[data-bs-theme=dark] main .theme-page .misc-content h4,
[data-bs-theme=dark] main .theme-page .misc-content h5,
[data-bs-theme=dark] main .theme-page .misc-content h6,
[data-bs-theme=dark] main .theme-section-alt .misc-content h1,
[data-bs-theme=dark] main .theme-section-alt .misc-content h2,
[data-bs-theme=dark] main .theme-section-alt .misc-content h3,
[data-bs-theme=dark] main .theme-section-alt .misc-content h4,
[data-bs-theme=dark] main .theme-section-alt .misc-content h5,
[data-bs-theme=dark] main .theme-section-alt .misc-content h6 {
  color: #1d1d1d;
}
[data-bs-theme=dark] main .theme-page .misc-content p,
[data-bs-theme=dark] main .theme-page .misc-content li,
[data-bs-theme=dark] main .theme-page .misc-content span,
[data-bs-theme=dark] main .theme-page .misc-content div,
[data-bs-theme=dark] main .theme-page .misc-content strong,
[data-bs-theme=dark] main .theme-page .misc-content em,
[data-bs-theme=dark] main .theme-section-alt .misc-content p,
[data-bs-theme=dark] main .theme-section-alt .misc-content li,
[data-bs-theme=dark] main .theme-section-alt .misc-content span,
[data-bs-theme=dark] main .theme-section-alt .misc-content div,
[data-bs-theme=dark] main .theme-section-alt .misc-content strong,
[data-bs-theme=dark] main .theme-section-alt .misc-content em {
  color: inherit;
}
[data-bs-theme=dark] main .theme-page .misc-content [style*=color],
[data-bs-theme=dark] main .theme-section-alt .misc-content [style*=color] {
  color: inherit !important;
}
[data-bs-theme=dark] main .theme-page .misc-content a,
[data-bs-theme=dark] main .theme-section-alt .misc-content a {
  color: #a67a28 !important;
}
[data-bs-theme=dark] main .theme-page .misc-content a:hover, [data-bs-theme=dark] main .theme-page .misc-content a:focus,
[data-bs-theme=dark] main .theme-section-alt .misc-content a:hover,
[data-bs-theme=dark] main .theme-section-alt .misc-content a:focus {
  color: #8a5a35 !important;
}
[data-bs-theme=dark] main .theme-page .text-dark,
[data-bs-theme=dark] main .theme-section-alt .text-dark {
  color: #1d1d1d !important;
}
[data-bs-theme=dark] main .theme-page .text-muted,
[data-bs-theme=dark] main .theme-section-alt .text-muted {
  color: #5f5a52 !important;
}
[data-bs-theme=dark] main .theme-page blockquote,
[data-bs-theme=dark] main .theme-page .blockquote,
[data-bs-theme=dark] main .theme-section-alt blockquote,
[data-bs-theme=dark] main .theme-section-alt .blockquote {
  color: #222222;
}
[data-bs-theme=dark] main .theme-page .blockquote-footer,
[data-bs-theme=dark] main .theme-section-alt .blockquote-footer {
  color: #5f5a52;
}
[data-bs-theme=dark] main .theme-page .breadcrumb-item.active,
[data-bs-theme=dark] main .theme-section-alt .breadcrumb-item.active {
  color: #5f5a52;
}
[data-bs-theme=dark] main .theme-page .form-control,
[data-bs-theme=dark] main .theme-page .form-select,
[data-bs-theme=dark] main .theme-page textarea.form-control,
[data-bs-theme=dark] main .theme-section-alt .form-control,
[data-bs-theme=dark] main .theme-section-alt .form-select,
[data-bs-theme=dark] main .theme-section-alt textarea.form-control {
  background-color: #ffffff;
  border-color: #e5d7bf;
  color: #222222;
}
[data-bs-theme=dark] main .theme-page .form-control:focus,
[data-bs-theme=dark] main .theme-page .form-select:focus,
[data-bs-theme=dark] main .theme-page textarea.form-control:focus,
[data-bs-theme=dark] main .theme-section-alt .form-control:focus,
[data-bs-theme=dark] main .theme-section-alt .form-select:focus,
[data-bs-theme=dark] main .theme-section-alt textarea.form-control:focus {
  background-color: #ffffff;
  border-color: var(--bs-primary);
  color: #222222;
}
[data-bs-theme=dark] main .theme-page .form-control::-moz-placeholder, [data-bs-theme=dark] main .theme-page .form-select::-moz-placeholder, [data-bs-theme=dark] main .theme-page textarea.form-control::-moz-placeholder, [data-bs-theme=dark] main .theme-section-alt .form-control::-moz-placeholder, [data-bs-theme=dark] main .theme-section-alt .form-select::-moz-placeholder, [data-bs-theme=dark] main .theme-section-alt textarea.form-control::-moz-placeholder {
  color: #5f5a52;
}
[data-bs-theme=dark] main .theme-page .form-control::placeholder,
[data-bs-theme=dark] main .theme-page .form-select::placeholder,
[data-bs-theme=dark] main .theme-page textarea.form-control::placeholder,
[data-bs-theme=dark] main .theme-section-alt .form-control::placeholder,
[data-bs-theme=dark] main .theme-section-alt .form-select::placeholder,
[data-bs-theme=dark] main .theme-section-alt textarea.form-control::placeholder {
  color: #5f5a52;
}
[data-bs-theme=dark] main .theme-page .input-group-text,
[data-bs-theme=dark] main .theme-section-alt .input-group-text {
  background-color: #f5ede0;
  border-color: #e5d7bf;
  color: #222222;
}
[data-bs-theme=dark] main .theme-page .form-label,
[data-bs-theme=dark] main .theme-page .col-form-label,
[data-bs-theme=dark] main .theme-section-alt .form-label,
[data-bs-theme=dark] main .theme-section-alt .col-form-label {
  color: #1d1d1d;
}
[data-bs-theme=dark] main .theme-page .accordion-button,
[data-bs-theme=dark] main .theme-section-alt .accordion-button {
  color: #1d1d1d;
  background: #f5ede0;
}
[data-bs-theme=dark] main .theme-page .accordion-button:not(.collapsed),
[data-bs-theme=dark] main .theme-section-alt .accordion-button:not(.collapsed) {
  color: #1d1d1d;
  background: rgba(200, 154, 61, 0.12);
}
[data-bs-theme=dark] main .theme-page .accordion-body,
[data-bs-theme=dark] main .theme-section-alt .accordion-body {
  color: #222222;
}

.theme-pattern-bg {
  position: relative;
  overflow: hidden;
}
.theme-pattern-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  pointer-events: none;
  background-image: url("/frontend/images/theme/pattern-bg.webp");
  background-size: 180px auto;
  background-repeat: repeat;
}

.theme-pattern-gold::before {
  background-image: url("/frontend/images/theme/pattern-bg-2.webp");
  opacity: 0.16;
  background-size: 400px auto;
}

.donate-panel.theme-pattern-gold::before {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.2;
}

[data-bs-theme=dark] .theme-pattern-bg::before {
  background-image: url("/frontend/images/theme/pattern-bg-3.webp");
  opacity: 0.1;
  background-size: 280px auto;
}
[data-bs-theme=dark] .theme-pattern-gold::before {
  background-image: url("/frontend/images/theme/pattern-bg-3.webp");
  opacity: 0.14;
  background-size: 280px auto;
}
[data-bs-theme=dark] .donate-panel.theme-pattern-gold::before {
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}

.theme-pattern-motif {
  position: absolute;
  width: 120px;
  height: 120px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.14;
  background: url("/frontend/images/theme/pattern-shape.webp") center/contain no-repeat;
}
.theme-pattern-motif.left {
  left: 0.5rem;
  bottom: 1rem;
}
.theme-pattern-motif.right {
  right: 0.5rem;
  top: 1rem;
}

.donate-panel-motif {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 72px;
  height: 72px;
  opacity: 0.18;
  pointer-events: none;
  background: url("/frontend/images/theme/pattern-shape.webp") center/contain no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--theme-hero-overlay);
  z-index: 1;
}

.hero-pattern-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: url("/frontend/images/theme/pattern-bg.webp");
  background-size: 200px auto;
  background-repeat: repeat;
  opacity: 0.07;
  -webkit-mask-image: linear-gradient(115deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.55) 28%, rgba(0, 0, 0, 0.12) 48%, transparent 68%);
          mask-image: linear-gradient(115deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.55) 28%, rgba(0, 0, 0, 0.12) 48%, transparent 68%);
}

[data-bs-theme=dark] .hero-pattern-layer {
  background-image: url("/frontend/images/theme/pattern-bg-3.webp");
  background-size: 260px auto;
  opacity: 0.22;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 22%, rgba(0, 0, 0, 0.04) 42%, rgba(0, 0, 0, 0.04) 58%, rgba(0, 0, 0, 0.35) 78%, rgba(0, 0, 0, 0.85) 100%);
          mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 22%, rgba(0, 0, 0, 0.04) 42%, rgba(0, 0, 0, 0.04) 58%, rgba(0, 0, 0, 0.35) 78%, rgba(0, 0, 0, 0.85) 100%);
}

.value-ribbon.theme-pattern-bg::before {
  opacity: 0.05;
}

.site-footer-main.theme-pattern-bg::before {
  opacity: 0.06;
}

@media (max-width: 1199px) {
  html.has-mobile-nav-title .page-intro {
    display: none;
  }
}
@media (max-width: 991px) {
  .theme-section {
    padding: 2.75rem 0;
  }
  .page-intro {
    padding: 0.55rem 0;
  }
  .page-intro .page-intro-title {
    font-size: clamp(1.15rem, 3.2vw, 1.4rem);
  }
  .page-intro .page-intro-subtitle {
    font-size: 0.8rem;
  }
  .detail-content,
  .detail-sidebar,
  .misc-content {
    padding: 1.35rem;
  }
  .detail-sidebar {
    margin-top: 0.5rem;
  }
  .theme-listing-grid {
    gap: 1.15rem;
  }
  .theme-card-body {
    padding: 1rem 1.15rem;
  }
}
@media (max-width: 767px) {
  .theme-section {
    padding: 2.25rem 0;
  }
  .page-intro {
    padding: 0.5rem 0;
  }
  .detail-content,
  .detail-sidebar,
  .misc-content {
    padding: 1.15rem;
    border-radius: 1rem;
  }
  .donate-panel {
    padding: 1.75rem 1.25rem;
    min-height: auto;
  }
  .donate-panel .donate-panel-title {
    font-size: 1.35rem;
  }
  .value-ribbon {
    padding: 1.75rem 0;
  }
  .value-ribbon .value-item {
    padding: 0.85rem 0.5rem;
    gap: 0.65rem;
  }
  .value-ribbon .value-item .value-item-icon i {
    font-size: 1.25rem;
  }
  #whatsapp-block {
    padding: 2rem 0;
  }
}
@media (max-width: 575px) {
  .theme-section {
    padding: 2rem 0;
  }
  .page-intro {
    padding: 0.45rem 0;
  }
  .detail-content,
  .detail-sidebar,
  .misc-content {
    padding: 1rem;
  }
}
@media (max-width: 767px) {
  .prayer-table .prayer-table-head,
  .prayer-table .prayer-row {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr) minmax(0, 0.9fr) 1.1rem;
    gap: 0.35rem;
    padding: 0.55rem 0.65rem;
    font-size: 0.82rem;
  }
  .prayer-table .prayer-table-head {
    font-size: 0.62rem;
  }
}
@media (max-width: 575px) {
  .prayer-table .prayer-table-head,
  .prayer-table .prayer-row {
    padding: 0.5rem 0.45rem;
    font-size: 0.78rem;
  }
}
@media (max-width: 991px) {
  .home-hero,
  header.home-hero {
    min-height: clamp(18rem, 45vh, 28rem);
  }
  .min-vh-75 {
    min-height: clamp(16rem, 42vh, 24rem);
  }
}
@media (max-width: 767px) {
  .home-hero .hero-content {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  .home-hero .hero-title {
    font-size: clamp(2.15rem, 9vw, 3.25rem);
    max-width: none;
  }
  .home-hero .hero-arabic {
    font-size: 1.35rem;
  }
  .home-hero .hero-subtitle {
    letter-spacing: 0.14em;
    font-size: 0.72rem;
  }
  .home-hero .hero-description {
    font-size: 0.95rem;
    max-width: none;
  }
  .home-hero .hero-kicker {
    font-size: 0.72rem;
  }
  [data-bs-theme=light] .home-hero .hero-overlay {
    background: linear-gradient(180deg, rgba(251, 247, 240, 0.97) 0%, rgba(251, 247, 240, 0.9) 55%, rgba(251, 247, 240, 0.55) 100%);
  }
  [data-bs-theme=dark] .home-hero .hero-overlay {
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.94) 0%, rgba(17, 17, 17, 0.82) 55%, rgba(17, 17, 17, 0.45) 100%);
  }
}
.home-event-info,
.home-service-item .flex-grow-1 {
  min-width: 0;
}

.home-event-title,
.home-service-title {
  overflow-wrap: anywhere;
}

#paginate-block .pagination,
#simple-paginate {
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
}

@media (max-width: 767px) {
  #search-bar-block #results-section #search_result_list {
    left: 0;
    right: 0;
    max-height: min(50vh, 24rem);
    overflow-y: auto;
    border-radius: 0.85rem;
    box-shadow: var(--theme-shadow);
  }
}

.header-link,
.theme-toggle-btn,
.navbar .nav-link,
.navbar-toggler {
  min-height: 44px;
}

.navbar .dropdown-item {
  min-height: 38px;
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .navbar .dropdown-item {
    min-height: auto;
  }
}
