/*
Theme Name: bahaibg
Theme URI: https://bahai-bg-migration.ddev.site
Author: Bahaibg
Description: Custom WordPress theme for the Bahai BG migration project.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: bahaibg
*/

@font-face {
  font-family: "Repo";
  src:
    url("assets/fonts/Repo-Light.otf.woff2") format("woff2"),
    url("assets/fonts/Repo-Light.otf.woff") format("woff");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Repo";
  src:
    url("assets/fonts/Repo-Regular.otf.woff2") format("woff2"),
    url("assets/fonts/Repo-Regular.otf.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Repo";
  src:
    url("assets/fonts/Repo-Medium.otf.woff2") format("woff2"),
    url("assets/fonts/Repo-Medium.otf.woff") format("woff");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Repo";
  src:
    url("assets/fonts/Repo-DemiBold.otf.woff2") format("woff2"),
    url("assets/fonts/Repo-DemiBold.otf.woff") format("woff");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Repo";
  src:
    url("assets/fonts/Repo-Bold.otf.woff2") format("woff2"),
    url("assets/fonts/Repo-Bold.otf.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Repo";
  src:
    url("assets/fonts/Repo-ExtraBold.otf.woff2") format("woff2"),
    url("assets/fonts/Repo-ExtraBold.otf.woff") format("woff");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Repo";
  src:
    url("assets/fonts/Repo-Black.otf.woff2") format("woff2"),
    url("assets/fonts/Repo-Black.otf.woff") format("woff");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "Pliska";
  src: url("assets/fonts/Pliska-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Pliska";
  src: url("assets/fonts/Pliska-Italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Pliska";
  src: url("assets/fonts/Pliska-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Pliska";
  src: url("assets/fonts/Pliska-BoldItalic.woff2") format("woff2");
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}

:root {
  --bahaibg-bg: #f6f3ee;
  --bahaibg-surface: #ffffff;
  --bahaibg-surface-soft: #f1ede7;
  --bahaibg-border: rgba(143, 55, 55, 0.12);
  --bahaibg-ink: #3f342e;
  --bahaibg-muted: #71655f;
  --bahaibg-accent: #7c6445;
  --bahaibg-accent-deep: rgb(143, 55, 55);
  --bahaibg-shadow: 0 20px 45px rgba(80, 58, 45, 0.08);
  --bahaibg-header-height: 104px;
  --bahaibg-header-divider-height: 38px;
  --bahaibg-radius-lg: 28px;
  --bahaibg-radius-md: 20px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(124, 100, 69, 0.08), transparent 32%),
    linear-gradient(180deg, #fbfaf8 0%, var(--bahaibg-bg) 100%);
  color: var(--bahaibg-ink);
  font-family: "Repo", "Open Sans", Arial, sans-serif;
  line-height: 1.5;
  padding-top: calc(var(--bahaibg-header-height) + var(--bahaibg-header-divider-height));
}

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: var(--bahaibg-accent-deep);
  text-decoration-color: rgba(143, 55, 55, 0.35);
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: var(--bahaibg-accent);
}

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

.container-xxl.bahaibg-wide {
  max-width: none;
  width: 100%;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1035;
  min-height: var(--bahaibg-header-height);
  box-shadow: 0 12px 30px rgba(32, 22, 16, 0.16);
  transition: box-shadow 200ms ease, backdrop-filter 200ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 16px 38px rgba(32, 22, 16, 0.24);
  backdrop-filter: blur(6px);
}

.site-header__inner {
  min-height: var(--bahaibg-header-height);
  gap: 1rem;
  position: relative;
}

.site-branding {
  min-width: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.site-branding__title,
.site-branding__title:hover,
.site-branding__title:focus {
  color: rgba(41, 31, 28, 0.92);
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: clamp(1.2rem, 1rem + 1vw, 2rem);
  text-decoration: none;
  text-transform: uppercase;
}

.site-branding__tagline {
  color: rgba(41, 31, 28, 0.82);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
  position: relative;
  z-index: 1;
}

.site-header__button {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(41, 31, 28, 0.22);
  background: rgba(255, 255, 255, 0.42);
  color: rgba(41, 31, 28, 0.92);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.site-header__button:hover,
.site-header__button:focus {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(41, 31, 28, 0.36);
  color: rgba(41, 31, 28, 0.92);
}

.site-search-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: rgba(255, 251, 246, 0.98);
  border-bottom: 1px solid rgba(143, 55, 55, 0.1);
  box-shadow: 0 18px 40px rgba(49, 37, 29, 0.12);
}

.site-search-bar .search-form {
  padding: 1rem 0;
}

.site-search-bar .search-field {
  border-radius: 999px;
  border: 1px solid rgba(143, 55, 55, 0.16);
  padding: 0.85rem 1.1rem;
}

.site-search-bar .search-submit {
  border-radius: 999px;
  background: var(--bahaibg-accent-deep);
  border: 0;
  color: #fff;
  padding: 0.85rem 1.3rem;
}

.site-header-divider {
  position: fixed;
  top: var(--bahaibg-header-height);
  left: 0;
  right: 0;
  z-index: 1030;
  background: var(--bahaibg-accent-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-header-divider__inner {
  min-height: var(--bahaibg-header-divider-height);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.site-header-divider__text {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

body.admin-bar .site-header-divider {
  top: calc(32px + var(--bahaibg-header-height));
}

.menu-panel {
  background:
    linear-gradient(180deg, rgba(255, 251, 246, 0.98), rgba(246, 240, 233, 0.98)),
    #fff;
}

.menu-panel__header {
  border-bottom: 1px solid var(--bahaibg-border);
}

.menu-panel__title {
  color: var(--bahaibg-accent-deep);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-panel__section {
  border-bottom: 1px solid rgba(143, 55, 55, 0.08);
  padding: 1rem 0;
}

.menu-panel__section-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--bahaibg-accent);
  letter-spacing: 0.18em;
  margin-bottom: 0.55rem;
  text-decoration: none;
  text-transform: uppercase;
}

.menu-panel__section-title.is-current {
  color: var(--bahaibg-accent-deep);
}

.menu-panel__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

.menu-panel__link {
  display: inline-flex;
  color: var(--bahaibg-muted);
  font-size: 0.98rem;
  margin-left: 0.9rem;
  text-decoration: none;
}

.menu-panel__link.is-current {
  color: var(--bahaibg-accent-deep);
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: #d9d1c7;
}

.hero::after {
  content: none;
}

.hero__media {
  min-height: clamp(170px, 23vw, 280px);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.page-heading {
  background: rgba(255, 255, 255, 0.94);
  padding: clamp(1.5rem, 3.8vw, 3.5rem) 0 clamp(1.5rem, 3vw, 3rem);
  margin-bottom: 1.5rem;
}

.page-heading__inner {
  text-align: center;
}

.page-heading__inner--left {
  text-align: left;
}

.breadcrumbs {
  margin-bottom: 1rem;
}

.breadcrumbs__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.8rem;
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  color: var(--bahaibg-accent);
  font-size: 0.88rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.breadcrumbs__item:not(:last-child)::after {
  content: "/";
  margin-left: 0.8rem;
  color: rgba(113, 101, 95, 0.6);
}

.breadcrumbs__link {
  color: var(--bahaibg-accent);
  text-decoration: none;
}

.breadcrumbs__link:hover,
.breadcrumbs__link:focus {
  color: var(--bahaibg-accent-deep);
}

.breadcrumbs__current {
  color: var(--bahaibg-accent-deep);
}

.page-heading__eyebrow {
  color: var(--bahaibg-accent);
  font-size: 0.88rem;
  letter-spacing: 0.18em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.page-heading__title {
  font-family: "Pliska", "Times New Roman", serif;
  color: #2f2723;
  margin: 0;
  font-size: clamp(1.85rem, 1.05rem + 2.35vw, 3.85rem);
  font-weight: 400;
  line-height: 1;
}

.page-heading__summary {
  color: var(--bahaibg-ink);
  font-size: clamp(1rem, 0.94rem + 0.35vw, 1.25rem);
  line-height: 1.45;
  margin: 1rem 0 0;
  max-width: 52rem;
}

.page-heading--utility {
  margin-bottom: 1.5rem;
}

.page-shell {
  padding-bottom: 1.25rem;
}

.content-layout {
  display: grid;
  gap: 1.5rem;
}

.content-sidebar,
.content-main,
.content-rail {
  min-width: 0;
}

.panel-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(143, 55, 55, 0.08);
  border-radius: var(--bahaibg-radius-md);
  box-shadow: var(--bahaibg-shadow);
  backdrop-filter: blur(8px);
}

.section-nav {
  padding: 1.25rem;
  position: sticky;
  top: calc(var(--bahaibg-header-height) + 1.5rem);
}

.section-nav__label {
  color: var(--bahaibg-accent-deep);
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.section-nav__title {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--bahaibg-accent-deep);
  font-size: 1.3rem;
  line-height: 1.2;
  text-decoration: none;
}

.section-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.section-nav__item a {
  display: block;
  font-size: 1.3rem;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  color: var(--bahaibg-muted);
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.section-nav__item a:hover,
.section-nav__item a:focus {
  background: rgba(124, 100, 69, 0.08);
  color: var(--bahaibg-accent-deep);
  transform: translateX(2px);
}

.section-nav__item.is-current a {
  background: rgba(143, 55, 55, 0.09);
  color: var(--bahaibg-accent-deep);
  font-weight: 700;
}

.content-main .entry-card {
  padding: clamp(1.4rem, 3vw, 2.6rem);
}

.entry-title {
  font-size: clamp(1.8rem, 1.4rem + 1vw, 2.6rem);
  color: var(--bahaibg-accent-deep);
  margin-bottom: 1.25rem;
}

.entry-content {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--bahaibg-ink);
}

.entry-content > :first-child {
  margin-top: 0;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--bahaibg-accent-deep);
  line-height: 1.2;
  margin-top: 2rem;
}

.entry-content img {
  display: block;
  height: auto;
  margin: 1.6rem auto;
  max-width: 100%;
  box-shadow: 0 14px 28px rgba(52, 39, 31, 0.12);
}

.entry-content p.bahaibg-image-center {
  position: relative;
  display: table;
  text-align: center;
  width: auto;
  max-width: 100%;
  margin: 1.6rem auto;
}

.entry-content p:has(> img:only-child) {
  position: relative;
}

.entry-content p.bahaibg-image-float {
  position: relative;
}

.entry-content p:has(> img.bahaibg-image-float) {
  position: relative;
}

.entry-content p:has(> img:only-child)::after,
.entry-content p.bahaibg-image-float::after,
.entry-content p:has(> img.bahaibg-image-float)::after,
.entry-content p.bahaibg-image-center::after {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: -1rem;
  height: 1.5rem;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(30, 20, 16, 0.5) 0%, rgba(30, 20, 16, 0.3) 42%, rgba(30, 20, 16, 0.12) 62%, rgba(30, 20, 16, 0) 82%);
  filter: blur(9px);
  pointer-events: none;
  z-index: 0;
}

.entry-content p.bahaibg-image-center > img {
  float: none !important;
  clear: both !important;
  display: block;
  height: auto !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  position: relative;
  z-index: 1;
}

.entry-content p {
  margin-bottom: 1.15rem;
}

.entry-content p.bahaibg-image-caption {
  border-left: 0;
  color: var(--bahaibg-accent-deep);
  font-size: 0.96rem;
  font-style: italic;
  line-height: 1.45;
  margin: 0.6rem auto 1.25rem;
  max-width: 100%;
  padding-left: 0;
  text-align: left;
}

.entry-content p.bahaibg-intro {
  color: var(--bahaibg-accent-deep);
  font-size: clamp(1.2rem, 1.08rem + 0.45vw, 1.5rem);
  line-height: 1.55;
  margin-left: clamp(1rem, 3vw, 2.5rem);
  margin-right: clamp(1rem, 3vw, 2.5rem);
  margin-bottom: 1.5rem;
}

.entry-content blockquote {
  border-left: 4px solid rgba(124, 100, 69, 0.5);
  margin: 1.8rem 0;
  padding: 0.6rem 0 0.6rem 1.25rem;
  color: var(--bahaibg-muted);
  font-style: italic;
}

.entry-content .bahaibg-pullquote-card {
  position: relative;
  margin: 1.6rem auto;
  padding: 5.7rem 1.7rem 1.8rem;
  width: min(100%, 20rem);
  max-width: 20rem;
  box-sizing: border-box;
  border-radius: 22px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.78), transparent 34%),
    linear-gradient(180deg, #fcf8eb 0%, #f3ead4 100%);
  box-shadow: 0 18px 34px rgba(120, 98, 71, 0.14);
  color: var(--bahaibg-accent-deep);
  text-align: center;
}

.entry-content .bahaibg-pullquote-card::before {
  content: "❝";
  position: absolute;
  top: 1.2rem;
  left: 1.7rem;
  color: rgba(124, 100, 69, 0.9);
  font-family: "Pliska", "Times New Roman", serif;
  font-size: 3.7rem;
  font-style: normal;
  line-height: 1;
}

.entry-content .bahaibg-pullquote-card {
  margin: 1.6rem auto;
}

.entry-content .bahaibg-pullquote-card .bahaibg-pullquote-body,
.entry-content .bahaibg-pullquote-card:not(.is-enhanced) {
  color: var(--bahaibg-accent-deep);
  font-family: "Great Vibes", "Snell Roundhand", "Brush Script MT", cursive;
  font-size: 2rem;
  letter-spacing: 0.02em;
  font-style: italic;
  line-height: 1.18;
  text-align: center;
}

.entry-content .bahaibg-pullquote-card .bahaibg-pullquote-body,
.entry-content .bahaibg-pullquote-card .bahaibg-pullquote-source {
  display: block;
}

.entry-content .bahaibg-pullquote-card .bahaibg-pullquote-source {
  color: var(--bahaibg-accent-deep);
  font-family: "Repo", "Open Sans", Arial, sans-serif;
  font-size: 0.98rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
  text-align: center;
  text-transform: none;
  margin-top: 0.95rem;
}

.entry-content .bahaibg-pullquote-card + .bahaibg-pullquote-card:not(.is-enhanced) {
  color: var(--bahaibg-accent-deep);
  font-family: "Repo", "Open Sans", Arial, sans-serif;
  font-size: 0.98rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
  margin-top: -0.9rem;
  padding-top: 0;
  text-align: center;
  text-transform: none;
}

.entry-content .bahaibg-principles-page {
  position: relative;
  display: grid;
  gap: 1.2rem;
  padding: clamp(1rem, 2vw, 1.7rem);
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(143, 55, 55, 0.11), transparent 28%),
    radial-gradient(circle at bottom left, rgba(124, 100, 69, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(255, 252, 246, 0.98) 0%, rgba(248, 243, 235, 0.96) 100%);
  border: 1px solid rgba(124, 100, 69, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.entry-content .bahaibg-principles-page::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 22px;
  border: 1px solid rgba(143, 55, 55, 0.08);
  pointer-events: none;
}

.entry-content .bahaibg-principles-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  padding: 1.35rem 1.35rem 1.2rem;
  border-radius: 26px;
  border: 1px solid rgba(124, 100, 69, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(252, 248, 242, 0.98) 100%);
  box-shadow: 0 18px 34px rgba(73, 56, 43, 0.08);
  overflow: hidden;
}

.entry-content .bahaibg-principles-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, rgba(143, 55, 55, 0.92), rgba(124, 100, 69, 0.7));
}

.entry-content .bahaibg-principles-card--2::before {
  background: linear-gradient(90deg, rgba(124, 100, 69, 0.92), rgba(169, 132, 88, 0.7));
}

.entry-content .bahaibg-principles-card--3::before {
  background: linear-gradient(90deg, rgba(143, 55, 55, 0.84), rgba(184, 130, 110, 0.7));
}

.entry-content .bahaibg-principles-label {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--bahaibg-accent-deep);
  font-family: "Pliska", "Times New Roman", serif;
  font-size: clamp(1.12rem, 1.02rem + 0.35vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: none;
  padding-top: 0.25rem;
}

.entry-content .bahaibg-principles-note {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 0 0.2rem;
  color: var(--bahaibg-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.entry-content .bahaibg-principles-card > .bahaibg-principles-note {
  color: var(--bahaibg-muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.entry-content .bahaibg-principles-list {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.entry-content .bahaibg-principles-list li {
  position: relative;
  margin: 0;
  padding-left: 2rem;
  font-size: 1.08rem;
  line-height: 1.5;
}

.entry-content .bahaibg-principles-list li::before {
  content: "";
  position: absolute;
  left: 0.65rem;
  top: 0.6rem;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: var(--bahaibg-accent-deep);
  box-shadow: 0 0 0 0.25rem rgba(143, 55, 55, 0.12);
}

.entry-content .bahaibg-principles-list--2 li::before {
  background: var(--bahaibg-accent);
  box-shadow: 0 0 0 0.25rem rgba(124, 100, 69, 0.12);
}

.entry-content .bahaibg-principles-list--3 li::before {
  background: #9a5252;
  box-shadow: 0 0 0 0.25rem rgba(154, 82, 82, 0.12);
}

@media (min-width: 992px) {
  .entry-content .bahaibg-principles-page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
    padding: 1.45rem;
  }

  .entry-content .bahaibg-principles-card--1 {
    grid-column: 1 / -1;
  }

  .entry-content .bahaibg-principles-card {
    padding: 1.5rem 1.55rem 1.3rem;
  }
}

@media (max-width: 575.98px) {
  .entry-content .bahaibg-principles-page {
    padding: 0.85rem;
    border-radius: 24px;
  }

  .entry-content .bahaibg-principles-card {
    padding: 1.15rem 1rem 1rem;
    border-radius: 22px;
  }

  .entry-content .bahaibg-principles-note {
    font-size: 0.94rem;
  }

  .entry-content .bahaibg-principles-list li {
    padding-left: 1.75rem;
    font-size: 1rem;
  }
}

@media (min-width: 992px) {
  .entry-content .bahaibg-pullquote-card {
    float: right;
    clear: right;
    margin: 0.5rem 0 1.5rem 1.5rem;
  }

  .entry-content .bahaibg-pullquote-card + h1,
  .entry-content .bahaibg-pullquote-card + h2,
  .entry-content .bahaibg-pullquote-card + h3,
  .entry-content .bahaibg-pullquote-card + h4,
  .entry-content .bahaibg-pullquote-card + h5,
  .entry-content .bahaibg-pullquote-card + h6 {
    clear: none;
  }
}

.quote-rail {
  padding: 1.25rem;
}

.content-rail {
  display: grid;
  gap: 0;
  align-content: start;
}

.quote-rail--literature {
  position: static;
}

.quote-rail--literature.quote-rail--after-quote {
  margin-top: 1.5rem;
}

.quote-card {
  padding: 0;
}

.quote-card__text {
  font-family: "Great Vibes", "Snell Roundhand", "Brush Script MT", cursive;
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--bahaibg-accent);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.quote-card__meta {
  color: var(--bahaibg-muted);
  font-size: 0.92rem;
  text-align: right;
}

.library-catalog {
  display: grid;
  gap: 1.35rem;
}

.library-catalog__item {
  display: grid;
  gap: 1.25rem;
  padding: 1.25rem;
  border: 1px solid rgba(143, 55, 55, 0.08);
  border-radius: 18px;
  background: rgba(249, 246, 241, 0.78);
  scroll-margin-top: calc(var(--bahaibg-header-height) + 1.5rem);
}

.library-catalog__cover {
  max-width: 220px;
}

.library-catalog__cover img {
  display: block;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  float: none !important;
  box-shadow: 0 10px 22px rgba(52, 39, 31, 0.12);
}

.entry-content .library-catalog__title {
  font-family: "Pliska", "Times New Roman", serif;
  color: #2f2723;
  font-size: clamp(1.55rem, 1.2rem + 0.8vw, 2.1rem);
  line-height: 1.08;
  margin: 0 0 0.35rem;
  margin-top: 0;
}

.library-catalog__author {
  color: var(--bahaibg-accent-deep);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
}

.library-catalog__excerpt {
  margin-bottom: 0.8rem;
}

.library-catalog__excerpt > :last-child {
  margin-bottom: 0;
}

.library-catalog__details {
  color: var(--bahaibg-muted);
  font-size: 0.96rem;
}

.library-catalog__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  margin-top: 1rem;
}

.library-catalog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-left: auto;
}

.library-catalog__link,
.literature-spotlight__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(143, 55, 55, 0.08);
  color: var(--bahaibg-accent-deep);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
}

.library-catalog__link--secondary {
  background: rgba(124, 100, 69, 0.1);
  color: var(--bahaibg-accent);
}

.literature-spotlight__eyebrow {
  color: var(--bahaibg-accent);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
}

.literature-spotlight__cover {
  display: block;
  width: fit-content;
  float: left;
  margin: 0.2rem 1rem 0.75rem 0;
}

.literature-spotlight__cover img {
  display: block;
  width: auto;
  max-width: 120px;
  margin: 0;
  float: none;
  box-shadow: 0 12px 24px rgba(52, 39, 31, 0.12);
}

.literature-spotlight__title {
  font-family: "Pliska", "Times New Roman", serif;
  font-size: 1.8rem;
  line-height: 1.08;
  margin-bottom: 0.3rem;
}

.literature-spotlight__title a {
  color: #2f2723;
  text-decoration: none;
}

.literature-spotlight__author {
  color: var(--bahaibg-accent-deep);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
}

.literature-spotlight__excerpt {
  color: var(--bahaibg-ink);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.literature-spotlight__link {
  clear: both;
  float: none;
  display: table;
  margin-left: auto;
}

.footer-links {
  /*margin-top: 1.25rem;*/
  padding: 2.6rem 0;
  background:
    linear-gradient(180deg, rgba(241, 237, 231, 0.92), rgba(233, 227, 219, 0.94)),
    #efe7df;
  border-top: 1px solid rgba(143, 55, 55, 0.08);
}

.footer-links__title {
  color: var(--bahaibg-accent-deep);
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  text-align: center;
  text-transform: uppercase;
}

.footer-contact {
  display: grid;
  gap: 0.2rem;
  max-width: 40rem;
  margin: 0 auto;
  justify-items: center;
}

.footer-contact__item {
  padding: 0.05rem 0;
}

.footer-contact__text {
  color: #4b403b;
  font-size: 0.98rem;
  line-height: 1.35;
  text-align: center;
}

.site-footer {
  padding: 1.1rem 0 1.6rem;
  background: #f8f3ed;
  color: var(--bahaibg-muted);
  font-size: 0.96rem;
}

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.entry-content table.bahaibg-country-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0;
  overflow: hidden;
  border: 1px solid rgba(124, 100, 69, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(250, 247, 242, 0.98), rgba(244, 238, 229, 0.96)),
    #f8f2ea;
  box-shadow: 0 18px 36px rgba(79, 59, 43, 0.1);
}

.entry-content table.bahaibg-country-table > tbody > tr:first-child td {
  padding: 1rem 1.15rem 0.9rem;
  border-bottom: 1px solid rgba(124, 100, 69, 0.14);
  background:
    linear-gradient(180deg, rgba(124, 100, 69, 0.13), rgba(124, 100, 69, 0.05)),
    rgba(255, 255, 255, 0.36);
  color: var(--bahaibg-accent-deep);
  font-family: "Repo", "Open Sans", Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: bottom;
}

.entry-content table.bahaibg-country-table > tbody > tr:first-child td + td,
.entry-content table.bahaibg-country-table > tbody > tr + tr td + td {
  border-left: 1px solid rgba(124, 100, 69, 0.1);
}

.entry-content table.bahaibg-country-table > tbody > tr + tr td {
  padding: 1rem 1.15rem 1.2rem;
  vertical-align: top;
  width: 20%;
  color: var(--bahaibg-ink);
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.35;
}

.entry-content table.bahaibg-country-table > tbody > tr + tr td p {
  margin: 0 0 0.5rem;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.entry-content table.bahaibg-country-table > tbody > tr + tr td p:first-child {
  margin-top: 0;
}

.entry-content table.bahaibg-country-table > tbody > tr + tr td p:last-child {
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .entry-content table.bahaibg-country-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .entry-content table.bahaibg-country-table > tbody {
    display: table;
    min-width: 880px;
    width: 100%;
  }
}

.auxiliary-empty {
  padding: 1.25rem;
  color: var(--bahaibg-muted);
}

.search-results-shell {
  padding-top: clamp(1rem, 2.6vw, 2.5rem);
}

.search-heading {
  margin: 0 auto clamp(1.25rem, 3vw, 2rem);
  max-width: 980px;
  text-align: center;
}

.search-heading__inner {
  display: grid;
  gap: 1rem;
}

.search-heading__title {
  color: #2f2723;
  font-family: "Pliska", "Times New Roman", serif;
  font-size: clamp(2.2rem, 1.45rem + 2.2vw, 4rem);
  font-weight: 400;
  line-height: 1.02;
  margin: 0;
}

.search-heading__summary {
  color: var(--bahaibg-muted);
  font-size: 1.04rem;
  line-height: 1.55;
  margin: 0 auto;
  max-width: 100%;
}

.search-heading__form {
  margin: 0 auto;
  max-width: 720px;
  width: 100%;
}

.search-heading__form .search-form {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(143, 55, 55, 0.1);
  border-radius: 999px;
  box-shadow: var(--bahaibg-shadow);
  padding: 0.35rem;
}

.search-heading__form .search-field {
  background: transparent;
  border: 0;
  border-radius: 999px;
  min-height: 2.8rem;
  padding: 0.6rem 1rem;
}

.search-heading__form .search-field:focus {
  box-shadow: none;
}

.search-heading__form .search-submit {
  background: var(--bahaibg-accent-deep);
  border: 0;
  border-radius: 999px;
  color: #fff;
  min-height: 2.8rem;
  padding: 0.6rem 1.2rem;
}

.search-results-layout {
  margin: 0 auto;
  max-width: 980px;
}

.search-results-card {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.search-results-list {
  display: grid;
  gap: 1.25rem;
}

.search-result-item {
  border-bottom: 1px solid rgba(143, 55, 55, 0.1);
  padding-bottom: 1.25rem;
}

.search-result-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.search-result-item__title {
  font-family: "Pliska", "Times New Roman", serif;
  font-size: clamp(1.55rem, 1.25rem + 0.8vw, 2.2rem);
  font-weight: 400;
  line-height: 1.06;
  margin: 0 0 0.45rem;
}

.search-result-item__title a {
  color: var(--bahaibg-accent-deep);
  text-decoration: none;
}

.search-result-item__title a:hover,
.search-result-item__title a:focus {
  color: var(--bahaibg-accent);
  text-decoration: underline;
}

.search-result-item__excerpt,
.search-results-empty p {
  color: var(--bahaibg-ink);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

@media (max-width: 991.98px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  body.admin-bar .site-header-divider {
    top: calc(46px + var(--bahaibg-header-height));
  }

  .site-header {
    background-position: left center !important;
  }

  .site-header__inner {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    justify-content: flex-end !important;
  }

  .site-header__actions {
    margin-left: 0;
  }

  .site-branding {
    left: 0.75rem;
    transform: none;
    text-align: left;
    max-width: calc(100% - 124px);
    width: calc(100% - 124px);
  }

  .site-branding__title,
  .site-branding__title:hover,
  .site-branding__title:focus {
    display: block;
    font-size: 1.35rem;
    line-height: 1.05;
  }

  .site-branding__tagline {
    display: block;
    width: 100%;
    letter-spacing: 0.1em;
    font-size: 0.54rem;
    line-height: 1.2;
  }
}

@media (min-width: 992px) {
  .content-layout {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    align-items: start;
  }

  .content-rail {
    display: none;
  }

  .entry-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-top: 1.6rem;
    margin-bottom: 1.6rem;
  }

  .entry-content p:has(> img:only-child) {
    margin: 1.6rem auto;
    width: auto;
    max-width: 100%;
    float: none;
    clear: both;
  }

  .entry-content p.bahaibg-image-center {
    float: none !important;
    clear: both !important;
    width: auto !important;
    max-width: 100%;
    margin: 1.6rem auto !important;
  }

  .entry-content p.bahaibg-image-float,
  .entry-content p.bahaibg-image-float:has(> img:only-child) {
    width: fit-content;
    max-width: min(48%, 420px);
    margin-top: 0.35rem;
    margin-bottom: 0.5rem;
  }

  .entry-content p:has(> img.bahaibg-image-float) {
    width: min(48%, 420px);
    margin-top: 0.35rem;
    margin-bottom: 0.5rem;
  }

  .entry-content p.bahaibg-image-left,
  .entry-content p.bahaibg-image-left:has(> img:only-child) {
    float: left;
    clear: left;
    margin: 0.35rem 1.5rem 0.5rem 0;
  }

  .entry-content p:has(> img.bahaibg-image-left) {
    float: left;
    clear: left;
    width: min(48%, 420px);
    margin: 0.35rem 1.5rem 0.5rem 0;
  }

  .entry-content p.bahaibg-image-right,
  .entry-content p.bahaibg-image-right:has(> img:only-child) {
    float: right;
    clear: right;
    margin: 0.35rem 0 0.5rem 1.5rem;
  }

  .entry-content p:has(> img.bahaibg-image-right) {
    float: right;
    clear: right;
    width: min(48%, 420px);
    margin: 0.35rem 0 0.5rem 1.5rem;
  }

  .entry-content p:has(> img:only-child) > img {
    width: auto !important;
    max-width: 100%;
    position: relative;
    z-index: 1;
  }

  .entry-content p.bahaibg-image-float > img {
    width: auto !important;
    max-width: 100%;
    margin: 0 !important;
    position: relative;
    z-index: 1;
  }

  .entry-content img.bahaibg-image-float {
    width: min(48%, 420px) !important;
    max-width: min(48%, 420px) !important;
    margin-top: 0.35rem;
    margin-bottom: 0.5rem;
  }

  .entry-content img.bahaibg-image-left {
    float: left;
    clear: left;
    margin-right: 1.5rem;
    margin-left: 0;
  }

  .entry-content img.bahaibg-image-right {
    float: right;
    clear: right;
    margin-left: 1.5rem;
    margin-right: 0;
  }

  .entry-content p.bahaibg-image-center > img {
    width: auto !important;
    max-width: none !important;
  }

  .entry-content p.bahaibg-image-center + p.bahaibg-image-caption {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0.6rem auto 1.25rem;
    color: var(--bahaibg-accent-deep);
    font-size: 0.96rem;
    font-style: italic;
    line-height: 1.45;
    border-left: 0;
    padding-left: 0;
    text-align: left;
  }

  .entry-content p.bahaibg-image-left + p.bahaibg-image-caption {
    float: left;
    clear: left;
    max-width: min(48%, 420px);
    margin: 0.6rem 1.5rem 1.25rem 0;
    color: var(--bahaibg-accent-deep);
    font-size: 0.96rem;
    font-style: italic;
    line-height: 1.45;
  }

  .entry-content p:has(> img.bahaibg-image-left) + p.bahaibg-image-caption {
    float: left;
    clear: left;
    max-width: min(48%, 420px);
    margin: 0.6rem 1.5rem 1.25rem 0;
    color: var(--bahaibg-accent-deep);
    font-size: 0.96rem;
    font-style: italic;
    line-height: 1.45;
  }

  .entry-content p.bahaibg-image-right + p.bahaibg-image-caption {
    float: right;
    clear: right;
    max-width: min(48%, 420px);
    margin: 0.6rem 0 1.25rem 1.5rem;
    color: var(--bahaibg-accent-deep);
    font-size: 0.96rem;
    font-style: italic;
    line-height: 1.45;
  }

  .entry-content p:has(> img.bahaibg-image-right) + p.bahaibg-image-caption {
    float: right;
    clear: right;
    max-width: min(48%, 420px);
    margin: 0.6rem 0 1.25rem 1.5rem;
    color: var(--bahaibg-accent-deep);
    font-size: 0.96rem;
    font-style: italic;
    line-height: 1.45;
  }

  .entry-content h1,
  .entry-content h2,
  .entry-content h3,
  .entry-content h4,
  .entry-content h5,
  .entry-content h6 {
    clear: both;
  }

  .entry-content .bahaibg-pullquote-card + h1,
  .entry-content .bahaibg-pullquote-card + h2,
  .entry-content .bahaibg-pullquote-card + h3,
  .entry-content .bahaibg-pullquote-card + h4,
  .entry-content .bahaibg-pullquote-card + h5,
  .entry-content .bahaibg-pullquote-card + h6 {
    clear: none;
  }

  .entry-content::after {
    content: "";
    display: block;
    clear: both;
  }

  .library-catalog__item {
    grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
    align-items: start;
  }

  .entry-content .library-catalog img,
  .entry-content .library-catalog__cover img,
  .entry-content .literature-spotlight__cover img {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
  }

  .entry-content .library-catalog p,
  .entry-content .library-catalog__item p {
    margin-bottom: 0;
  }
}

@media (min-width: 1440px) {
  .content-layout {
    grid-template-columns: minmax(220px, 1fr) minmax(0, 2.15fr) minmax(230px, 1fr);
    gap: 1.75rem;
  }

  .content-rail {
    display: grid;
  }
}

@media (max-width: 1439.98px) {
  .quote-rail {
    position: static;
  }
}

@media (max-width: 991.98px) {
  .content-layout {
    grid-template-columns: 1fr;
  }

  .section-nav,
  .quote-rail {
    position: static;
  }

  .page-heading {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.front-page-shell {
  padding-bottom: 3rem;
}

.front-news-accordion-wrap {
  padding: clamp(0.8rem, 1.8vw, 1.25rem) 0 0;
}

.front-section {
  padding: clamp(1.8rem, 3.8vw, 3.5rem) 0;
}

.front-hero + .front-section {
  padding-top: clamp(1rem, 2vw, 1.55rem);
}

.front-news-accordion-wrap + .front-hero {
  padding-top: clamp(0.8rem, 1.8vw, 1.25rem);
}

.front-section + .front-section {
  padding-top: clamp(1.2rem, 2.6vw, 2.15rem);
}

.front-section__container {
  margin: 0 auto;
  max-width: 1180px !important;
  width: min(100%, 1180px) !important;
}

.front-section--gateway,
.front-section--teachings,
.front-section--literature {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
}

.front-section-eyebrow {
  display: inline-block;
  color: var(--bahaibg-accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.front-section__heading {
  margin: 0 auto 1.15rem;
  max-width: 46rem;
  text-align: center;
}

.front-section__title {
  color: #2f2723;
  font-family: "Pliska", "Times New Roman", serif;
  font-size: clamp(2rem, 1.3rem + 2.1vw, 3.75rem);
  font-weight: 400;
  line-height: 1.03;
  margin: 0;
}

.bahaibg-reveal-ready .bahaibg-reveal,
.bahaibg-reveal-ready .bahaibg-reveal-up,
.bahaibg-reveal-ready .bahaibg-reveal-left,
.bahaibg-reveal-ready .bahaibg-reveal-right {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity 560ms ease,
    transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--bahaibg-reveal-delay, 0ms);
  will-change: opacity, transform;
}

.bahaibg-reveal-ready .bahaibg-reveal-left {
  transform: translate3d(-34px, 0, 0);
}

.bahaibg-reveal-ready .bahaibg-reveal-right {
  transform: translate3d(34px, 0, 0);
}

.bahaibg-reveal-ready .bahaibg-reveal.is-revealed,
.bahaibg-reveal-ready .bahaibg-reveal-up.is-revealed,
.bahaibg-reveal-ready .bahaibg-reveal-left.is-revealed,
.bahaibg-reveal-ready .bahaibg-reveal-right.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .bahaibg-reveal-ready .bahaibg-reveal,
  .bahaibg-reveal-ready .bahaibg-reveal-up,
  .bahaibg-reveal-ready .bahaibg-reveal-left,
  .bahaibg-reveal-ready .bahaibg-reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}

.front-button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 600;
  gap: 0.4rem;
  justify-content: center;
  min-height: 2.95rem;
  padding: 0.7rem 1.3rem;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.front-button:hover,
.front-button:focus {
  transform: translateY(-1px);
}

.front-button--primary {
  background: var(--bahaibg-accent-deep);
  border: 1px solid transparent;
  color: #fff7f3;
}

.front-button--primary:hover,
.front-button--primary:focus {
  background: #793030;
  color: #fff7f3;
}

.front-button--secondary {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(124, 100, 69, 0.18);
  color: var(--bahaibg-accent-deep);
}

.front-button--secondary:hover,
.front-button--secondary:focus {
  background: rgba(255, 255, 255, 0.92);
  color: var(--bahaibg-accent-deep);
}

.front-hero {
  padding: clamp(1rem, 2.4vw, 1.75rem) 0 clamp(0.75rem, 1.7vw, 1.2rem);
}

.front-hero__grid {
  align-items: stretch;
  display: grid;
  gap: 1rem;
}

.front-hero__container {
  margin: 0 auto;
  max-width: 1180px;
}

.front-hero__panel {
  border: 1px solid rgba(124, 100, 69, 0.12);
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(80, 58, 45, 0.06);
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(143, 55, 55, 0.08), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 239, 231, 0.92));
}

.front-hero__content,
.front-hero__media {
  min-width: 0;
}

.front-hero__content {
  padding: clamp(1.2rem, 2.8vw, 2rem);
}

.front-hero__title {
  color: #2f2723;
  font-family: "Pliska", "Times New Roman", serif;
  font-size: clamp(2.15rem, 1.45rem + 2.2vw, 4.1rem);
  font-weight: 400;
  line-height: 0.98;
  margin: 0;
  max-width: none;
  text-wrap: balance;
}

.front-hero__summary {
  color: var(--bahaibg-ink);
  font-size: clamp(1rem, 0.95rem + 0.16vw, 1.08rem);
  line-height: 1.5;
  margin: 0.95rem 0 0;
  max-width: 40rem;
}

.front-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.1rem;
}

.front-hero__media {
  color: #fff;
  display: block;
  position: relative;
  text-decoration: none;
}

.front-hero__media::after {
  background: linear-gradient(180deg, rgba(28, 23, 20, 0.04), rgba(28, 23, 20, 0.14));
  content: "";
  inset: 0;
  position: absolute;
}

.front-hero__media img {
  display: block;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  object-position: center center;
  width: 100%;
}

.front-news-accordion {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 239, 231, 0.9)),
    #fff;
  border: 1px solid rgba(143, 55, 55, 0.16);
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(80, 58, 45, 0.06);
  overflow: hidden;
}

.front-news-accordion__summary {
  align-items: center;
  color: var(--bahaibg-accent-deep);
  cursor: pointer;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  list-style: none;
  min-height: 3.4rem;
  padding: 0.85rem 1.1rem;
  position: relative;
  text-align: center;
}

.front-news-accordion__summary::-webkit-details-marker {
  display: none;
}

.front-news-accordion__summary:focus-visible {
  outline: 3px solid rgba(143, 55, 55, 0.22);
  outline-offset: -3px;
}

.front-news-accordion__summary-text {
  flex: 1 1 auto;
  font-size: clamp(0.98rem, 0.92rem + 0.22vw, 1.1rem);
  font-weight: 700;
  line-height: 1.25;
  padding-left: 1.4rem;
}

.front-news-accordion__summary-icon {
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  display: inline-block;
  flex: 0 0 auto;
  height: 0.58rem;
  margin-right: 0.18rem;
  transform: rotate(45deg);
  transition: transform 160ms ease;
  width: 0.58rem;
}

.front-news-accordion[open] .front-news-accordion__summary {
  border-bottom: 1px solid rgba(143, 55, 55, 0.12);
}

.front-news-accordion[open] .front-news-accordion__summary-icon {
  transform: rotate(-135deg);
}

.front-news-accordion__body {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.front-news-accordion__footer {
  display: flex;
  justify-content: center;
  margin-top: 1.2rem;
}

.front-gateway-grid,
.front-figure-grid,
.front-teachings-grid,
.front-image-card-grid,
.front-community-grid,
.front-news-grid {
  display: grid;
  gap: 1.2rem;
}

.front-gateway-card {
  border-radius: 14px;
  color: #fff;
  display: grid;
  min-height: 270px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.front-gateway-card__image,
.front-gateway-card__image img,
.front-gateway-card__overlay {
  grid-area: 1 / 1;
}

.front-gateway-card__image img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.front-gateway-card__overlay {
  background:
    linear-gradient(180deg, rgba(28, 23, 20, 0.14), rgba(28, 23, 20, 0.72)),
    linear-gradient(135deg, rgba(124, 100, 69, 0.34), rgba(28, 23, 20, 0.08) 48%, transparent 80%);
}

.front-gateway-card__content {
  align-self: end;
  display: grid;
  gap: 0.55rem;
  grid-area: 1 / 1;
  padding: 1.1rem;
  position: relative;
  z-index: 1;
}

.front-gateway-card__title {
  color: #fff;
  font-family: "Pliska", "Times New Roman", serif;
  font-size: clamp(1.55rem, 1.1rem + 1vw, 2.2rem);
  line-height: 1;
  max-width: 11ch;
  text-shadow: 0 3px 16px rgba(12, 9, 7, 0.42);
  text-decoration: none;
}

.front-gateway-card__summary {
  color: rgba(255, 248, 242, 0.92);
  font-size: 0.94rem;
  line-height: 1.4;
  max-width: 32rem;
  text-shadow: 0 2px 10px rgba(12, 9, 7, 0.38);
  text-decoration: none;
}

.front-gateway-card:hover .front-gateway-card__title,
.front-gateway-card:focus .front-gateway-card__title,
.front-gateway-card:hover .front-gateway-card__summary,
.front-gateway-card:focus .front-gateway-card__summary {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.92);
  text-underline-offset: 0.18em;
}

.front-video-stack {
  display: grid;
  gap: 1.35rem;
}

.front-video-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(124, 100, 69, 0.12);
  border-radius: 16px;
  box-shadow: var(--bahaibg-shadow);
  display: grid;
  gap: 1rem;
  overflow: hidden;
}

.front-video-card__copy {
  padding: 1.5rem 1.5rem 0;
}

.front-video-card__tag,
.front-figure-card__eyebrow {
  color: var(--bahaibg-accent-deep);
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.front-video-card__title,
.front-figure-card__title,
.front-teaching-card__title,
.front-image-card__title,
.front-community-card__title,
.front-book-card__title,
.front-news-card__title {
  color: #2f2723;
  font-family: "Pliska", "Times New Roman", serif;
  font-size: clamp(1.7rem, 1.3rem + 1vw, 2.35rem);
  font-weight: 400;
  line-height: 1.04;
  margin: 0.5rem 0 0;
}

.front-video-card__summary,
.front-figure-card__summary,
.front-image-card__summary,
.front-community-card__summary,
.front-literature-copy__summary,
.front-news-card__excerpt,
.front-closing-card__summary {
  color: var(--bahaibg-ink);
  font-size: 1.02rem;
  line-height: 1.6;
}

.front-video-card__media {
  background: #201816;
  position: relative;
}

.front-video-card__media img,
.front-video-card__media iframe {
  display: block;
  height: 100%;
  max-height: 360px;
  min-height: 240px;
  width: 100%;
}

.front-video-card__media img {
  object-fit: cover;
}

.front-video-card__media iframe {
  border: 0;
}

.front-video-card__play {
  background: rgba(143, 55, 55, 0.88);
  border-radius: 50%;
  box-shadow: 0 14px 24px rgba(54, 30, 26, 0.18);
  height: 82px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 82px;
}

.front-video-card__play::before {
  border-bottom: 14px solid transparent;
  border-left: 24px solid #fff9f4;
  border-top: 14px solid transparent;
  content: "";
  left: 50%;
  margin-left: 4px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.front-quote-band {
  padding: 0;
}

.front-quote-band__inner {
  background:
    linear-gradient(135deg, rgba(255, 249, 240, 0.96), rgba(242, 233, 214, 0.84)),
    radial-gradient(circle at bottom right, rgba(124, 100, 69, 0.12), transparent 38%);
  border-top: 1px solid rgba(124, 100, 69, 0.1);
  border-bottom: 1px solid rgba(124, 100, 69, 0.1);
  margin: 0;
  padding: clamp(1.9rem, 4.2vw, 3.25rem) 0;
}

.front-quote-band__content {
  margin: 0 auto;
  max-width: 1040px;
  text-align: center;
}

.front-quote-band__text {
  color: var(--bahaibg-accent-deep);
  font-family: "Pliska", "Times New Roman", serif;
  font-size: clamp(1.55rem, 1.1rem + 1.25vw, 2.5rem);
  line-height: 1.03;
  margin: 0;
}

.front-quote-band__source {
  color: var(--bahaibg-accent);
  display: block;
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-top: 1rem;
  text-transform: uppercase;
}

.front-figure-card,
.front-teaching-card,
.front-news-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(124, 100, 69, 0.12);
  border-radius: 14px;
  box-shadow: var(--bahaibg-shadow);
  display: block;
  padding: 1.4rem;
  text-decoration: none;
}

.front-news-card {
  align-content: start;
  border-top: 4px solid rgba(124, 100, 69, 0.32);
  display: grid;
  gap: 0.8rem;
  height: 100%;
}

.front-news-grid > .front-news-card:nth-child(3n + 1) {
  border-top-color: rgba(143, 55, 55, 0.65);
}

.front-news-grid > .front-news-card:nth-child(3n + 2) {
  border-top-color: rgba(124, 100, 69, 0.72);
}

.front-news-grid > .front-news-card:nth-child(3n + 3) {
  border-top-color: rgba(104, 126, 94, 0.72);
}

.front-figure-card,
.front-teaching-card {
  overflow: hidden;
  padding: 0;
}

.front-figure-card__image img {
  display: block;
  height: 220px;
  object-fit: cover;
  width: 100%;
}

.front-figure-card__body,
.front-teaching-card__body {
  display: grid;
  gap: 0.7rem;
  padding: 1.25rem;
}

.front-teaching-card {
  position: relative;
}

.front-teaching-card__visual--principles {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.72), transparent 18%),
    linear-gradient(135deg, rgba(143, 55, 55, 0.12), rgba(124, 100, 69, 0.08) 52%, rgba(124, 100, 69, 0.16));
}

.front-teaching-card__visual--spirit {
  background:
    radial-gradient(circle at 78% 16%, rgba(255, 246, 225, 0.58), transparent 20%),
    linear-gradient(135deg, rgba(124, 100, 69, 0.08), rgba(216, 198, 167, 0.28) 48%, rgba(143, 55, 55, 0.08));
}

.front-teaching-card__visual--consultation {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0) 28%, rgba(255, 255, 255, 0.08) 60%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(135deg, rgba(124, 100, 69, 0.09), rgba(143, 55, 55, 0.11) 54%, rgba(76, 96, 116, 0.1));
}

.front-teaching-card__list {
  color: var(--bahaibg-ink);
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.front-teaching-card__list li + li {
  margin-top: 0.45rem;
}

.front-image-card,
.front-community-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(124, 100, 69, 0.12);
  border-radius: 14px;
  box-shadow: var(--bahaibg-shadow);
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  overflow: hidden;
  text-decoration: none;
}

.front-image-card__image img,
.front-community-card__image img {
  display: block;
  height: 220px;
  object-fit: cover;
  width: 100%;
}

.front-image-card__body,
.front-community-card__body {
  align-content: start;
  display: grid;
  gap: 0.7rem;
  padding: 1.25rem;
}

.front-literature-layout,
.front-closing-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(124, 100, 69, 0.12);
  border-radius: 16px;
  box-shadow: var(--bahaibg-shadow);
  display: grid;
  gap: 1.35rem;
  padding: clamp(1.4rem, 3.6vw, 2.4rem);
}

.front-book-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.front-book-card {
  align-content: start;
  display: grid;
  gap: 0.75rem;
}

.front-book-card img {
  border-radius: 18px;
  box-shadow: 0 16px 24px rgba(62, 45, 37, 0.12);
  display: block;
  width: 100%;
}

.front-book-card__title {
  font-size: 1rem;
  line-height: 1.35;
}

.front-news-card__date {
  align-items: center;
  color: var(--bahaibg-accent);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  font-weight: 700;
  gap: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.front-news-card__pin {
  background: rgba(143, 55, 55, 0.09);
  border: 1px solid rgba(143, 55, 55, 0.16);
  border-radius: 999px;
  color: var(--bahaibg-accent-deep);
  display: inline-flex;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 0.32rem 0.55rem;
}

.front-news-card__title {
  font-size: clamp(1.25rem, 1.05rem + 0.45vw, 1.55rem);
  line-height: 1.1;
  margin-top: 0.15rem;
}

.front-news-card__title a {
  color: inherit;
  text-decoration: none;
}

.front-news-card__footer {
  margin-top: 0.2rem;
  padding-top: 0.15rem;
}

.front-news-card__more {
  color: var(--bahaibg-accent-deep);
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.front-news-card__more:hover,
.front-news-card__more:focus {
  color: var(--bahaibg-accent);
  text-decoration: underline;
}

.news-archive {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

.news-archive__section {
  display: grid;
  gap: 1rem;
}

.entry-content .news-archive__section > h2 {
  margin: 0;
}

.news-archive__section--archived {
  border-top: 1px solid rgba(143, 55, 55, 0.12);
  padding-top: clamp(1.5rem, 3vw, 2rem);
}

.news-archive__grid {
  margin-top: 0.25rem;
}

.front-closing-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .front-hero__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  }

  .front-figure-grid,
  .front-teachings-grid,
  .front-image-card-grid,
  .front-news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .front-community-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .front-gateway-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1180px;
    margin: 0 auto;
  }

  .container-xxl.bahaibg-wide.front-section__container {
    max-width: 1180px !important;
    width: min(100%, 1180px) !important;
    padding-left: 0;
    padding-right: 0;
  }

  .front-video-card {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
    align-items: stretch;
  }

  .front-video-card__copy {
    padding: 1.8rem;
  }

  .front-video-card__media img {
    max-height: none;
    min-height: 100%;
  }

  .front-literature-layout,
  .front-closing-card {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
  }

  .front-hero__media img {
    min-height: 100%;
  }
}

@media (max-width: 767.98px) {
  .front-button {
    width: 100%;
  }

  .front-hero__title {
    max-width: none;
  }

  .front-gateway-card {
    min-height: 250px;
  }

  .front-book-row {
    grid-template-columns: 1fr;
  }
}
