/*
Theme Name: Manas Bhakti
Theme URI: https://manasbhakti.com
Author: Manas Bhakti
Description: A devotional WordPress theme for bhajan, katha, satsang videos, gallery, donation and contact pages.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
Text Domain: manasbhakti
*/

:root {
  --maroon: #7c1d17;
  --saffron: #e88925;
  --gold: #f7c85c;
  --leaf: #2d6a4f;
  --ink: #27221d;
  --muted: #6e6258;
  --paper: #fffaf0;
  --cream: #f8efdf;
  --white: #ffffff;
  --shadow: 0 18px 44px rgba(70, 35, 14, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Poppins", "Arial", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  background: var(--maroon);
  color: var(--white);
  font-size: 0.9rem;
}

.topbar__inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 240, 0.96);
  box-shadow: 0 8px 24px rgba(64, 32, 10, 0.08);
  backdrop-filter: blur(12px);
}

.navbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s ease;
}

.brand:hover,
.brand:focus-visible {
  transform: translateY(-2px);
}

.brand__mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--maroon);
  background: linear-gradient(135deg, var(--gold), #fff3bd);
  border: 2px solid rgba(124, 29, 23, 0.16);
  font-family: "Arya", serif;
  font-size: 1.8rem;
  font-weight: 700;
}

.site-header .brand__logo {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 58px;
  overflow: hidden;
}

.site-header .custom-logo-link {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 58px;
}

.site-header .brand__logo img,
.site-header .custom-logo {
  width: 58px !important;
  max-width: 58px !important;
  height: 58px !important;
  max-height: 58px !important;
  object-fit: contain;
  border-radius: 50%;
  transition: transform 0.24s ease;
}

.brand:hover .custom-logo,
.brand:focus-visible .custom-logo,
.brand:hover .brand__logo img,
.brand:focus-visible .brand__logo img,
.brand:hover .brand__mark,
.brand:focus-visible .brand__mark {
  transform: scale(1.08);
}

.brand strong {
  display: block;
  color: var(--maroon);
  font-size: 1.24rem;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.menu {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
  color: #4b392d;
  flex-wrap: nowrap;
}

.menu li {
  flex: 0 0 auto;
}

.menu a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(139, 23, 16, 0.13);
  border-radius: 6px;
  padding: 8px 13px;
  white-space: nowrap;
  background: #fff8ea;
  box-shadow: 0 7px 18px rgba(82, 25, 9, 0.08);
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.menu a:hover {
  color: var(--white);
  background: var(--maroon);
  transform: scale(1.06);
  box-shadow: 0 13px 26px rgba(139, 23, 16, 0.22);
}

.menu a:focus-visible {
  outline: 3px solid rgba(246, 196, 83, 0.8);
  outline-offset: 2px;
}

.live-tv-btn {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  padding: 9px 14px;
  color: var(--white);
  background: linear-gradient(135deg, #b4120b, var(--maroon-dark));
  box-shadow: 0 12px 24px rgba(139, 23, 16, 0.24);
  font-weight: 800;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.live-tv-btn:hover,
.live-tv-btn:focus-visible {
  color: var(--white);
  transform: scale(1.06);
  box-shadow: 0 18px 34px rgba(139, 23, 16, 0.3);
}

.live-tv-btn__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffdf5b;
  box-shadow: 0 0 0 0 rgba(255, 223, 91, 0.85);
  animation: live-pulse 1.4s infinite;
}

@keyframes live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 223, 91, 0.85);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(255, 223, 91, 0);
  }
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(124, 29, 23, 0.2);
  background: var(--white);
  border-radius: 6px;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--maroon);
}

.hero {
  position: relative;
  min-height: 650px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero__image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(72, 20, 13, 0.9), rgba(72, 20, 13, 0.48), rgba(72, 20, 13, 0.18)),
    url("https://images.unsplash.com/photo-1609156706598-ae7b0b6f0da7?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero__content {
  position: relative;
  padding: 120px 0 88px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--saffron);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  max-width: 780px;
  font-family: "Arya", serif;
  font-size: clamp(4rem, 12vw, 8.2rem);
  line-height: 0.92;
}

.hero p {
  max-width: 680px;
  font-size: 1.2rem;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.btn:hover::after,
.btn:focus-visible::after {
  transform: translateX(120%);
}

.btn--primary {
  color: var(--white);
  background: var(--maroon);
  box-shadow: 0 12px 28px rgba(124, 29, 23, 0.24);
}

.btn--light {
  color: var(--maroon);
  background: var(--white);
}

.section {
  padding: 86px 0;
}

.section--warm {
  background: var(--cream);
}

.section--deep {
  color: var(--white);
  background: #213b32;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

h2 {
  margin: 0 0 16px;
  font-family: "Arya", serif;
  color: var(--maroon);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
}

.section--deep h2 {
  color: var(--white);
}

.intro__grid,
.contact__grid,
.donation__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 42px;
  align-items: center;
}

.intro p,
.donation p {
  color: var(--muted);
  font-size: 1.04rem;
}

.stats {
  display: grid;
  gap: 16px;
}

.stats div,
.program-card,
.video-card,
.contact-form {
  background: var(--white);
  border: 1px solid rgba(124, 29, 23, 0.1);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.stats div {
  padding: 22px;
}

.stats strong {
  display: block;
  color: var(--maroon);
  font-family: "Arya", serif;
  font-size: 1.7rem;
  line-height: 1.1;
}

.stats span {
  color: var(--muted);
}

.program-grid,
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.program-card,
.video-card {
  padding: 24px;
}

.program-card,
.video-card,
.post-card,
.stats div,
.donation__inner,
.contact-form {
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.program-card:hover,
.program-card:focus-within,
.video-card:hover,
.video-card:focus-within,
.post-card:hover,
.post-card:focus-within,
.stats div:hover,
.donation__inner:hover,
.contact-form:focus-within {
  transform: translateY(-6px);
  border-color: rgba(232, 137, 37, 0.42);
  box-shadow: 0 24px 54px rgba(82, 25, 9, 0.22);
}

.program-card time {
  color: var(--leaf);
  font-weight: 700;
}

.program-card h3,
.video-card h3 {
  margin: 12px 0 10px;
  color: var(--maroon);
  font-family: "Arya", serif;
  font-size: 1.65rem;
  line-height: 1.12;
}

.program-card p,
.video-card p {
  color: var(--muted);
}

.program-card span {
  display: inline-block;
  margin-top: 10px;
  color: var(--maroon);
  font-weight: 700;
}

.video-thumb {
  min-height: 158px;
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(124, 29, 23, 0.9), rgba(232, 137, 37, 0.78)),
    url("https://images.unsplash.com/photo-1599661046289-e31897846e41?auto=format&fit=crop&w=900&q=80");
  background-position: center;
  background-size: cover;
  font-size: 2.4rem;
  transition: transform 0.28s ease, filter 0.28s ease;
}

.video-card:hover .video-thumb,
.video-card:focus-within .video-thumb {
  transform: scale(1.03);
  filter: saturate(1.12);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-item {
  min-height: 280px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  position: relative;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
}

.gallery-item:hover,
.gallery-item:focus-within {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.04);
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.28);
}

.gallery-item::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.18));
  opacity: 0;
  transition: opacity 0.24s ease;
}

.gallery-item:hover::after,
.gallery-item:focus-within::after {
  opacity: 1;
}

.gallery-item--one,
.gallery-item--1 {
  background-image: url("https://images.unsplash.com/photo-1582510003544-4d00b7f74220?auto=format&fit=crop&w=700&q=80");
}

.gallery-item--two,
.gallery-item--2 {
  background-image: url("https://images.unsplash.com/photo-1604608678051-64d46d8a9243?auto=format&fit=crop&w=700&q=80");
}

.gallery-item--three,
.gallery-item--3 {
  background-image: url("https://images.unsplash.com/photo-1605648916361-9bc12ad6a569?auto=format&fit=crop&w=700&q=80");
}

.gallery-item--four,
.gallery-item--4 {
  background-image: url("https://images.unsplash.com/photo-1609947017136-9daf32a5eb16?auto=format&fit=crop&w=700&q=80");
}

.donation__inner {
  padding: 38px;
  border: 1px solid rgba(232, 137, 37, 0.32);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff7e6, #ffffff);
  box-shadow: var(--shadow);
}

.contact-list {
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.contact-list li {
  margin-bottom: 12px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--maroon);
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(124, 29, 23, 0.18);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
  background: #fffdf8;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--saffron);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(242, 140, 24, 0.14);
}

.footer {
  color: var(--white);
  background: #2a1711;
}

.footer__inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer a {
  margin-left: 16px;
}

.wp-posts {
  background: var(--paper);
}

.post-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.post-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid rgba(124, 29, 23, 0.1);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.post-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 14px;
  transition: transform 0.28s ease, filter 0.28s ease;
}

.post-card:hover img,
.post-card:focus-within img {
  transform: scale(1.03);
  filter: saturate(1.08);
}

.post-card__content {
  margin-bottom: 14px;
}

.post-card__content iframe,
.post-card__content embed,
.post-card__content object,
.post-card__content video {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 6px;
}

.post-card__content .wp-block-embed {
  margin: 0;
}

.post-card__content .wp-block-embed__wrapper {
  position: relative;
}

.video-card .post-card__content iframe,
.video-card .post-card__content embed,
.video-card .post-card__content object,
.video-card .post-card__content video {
  display: block;
}

.video-card .post-card__content {
  margin-bottom: 14px;
}

.post-card h3 {
  margin: 0 0 10px;
  color: var(--maroon);
  font-family: "Arya", serif;
  font-size: 1.55rem;
  line-height: 1.15;
}

.custom-block-section {
  background: var(--paper);
}

.custom-block-section:nth-child(even) {
  background: var(--cream);
}

.custom-block-section h1,
.custom-block-section h2,
.content-area h1,
.content-area h2 {
  color: var(--maroon);
  font-family: "Arya", serif;
  line-height: 1.08;
}

.custom-block-section img,
.content-area img,
.single-featured img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.custom-block-section iframe,
.custom-block-section embed,
.custom-block-section object,
.custom-block-section video,
.content-area iframe,
.content-area embed,
.content-area object,
.content-area video {
  max-width: 100%;
  border: 0;
  border-radius: 8px;
}

.custom-block-section .wp-block-columns,
.content-area .wp-block-columns {
  gap: 24px;
}

.custom-block-section .wp-block-button__link,
.content-area .wp-block-button__link {
  border-radius: 6px;
  background: var(--maroon);
  font-weight: 700;
}

.page-content {
  background: var(--paper);
}

.content-area {
  max-width: 960px;
}

.content-area h1 {
  margin-top: 0;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .menu {
    position: absolute;
    top: 124px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .menu li {
    width: 100%;
  }

  .menu.is-open {
    display: flex;
  }

  .menu a {
    display: block;
    padding: 12px;
    white-space: normal;
  }

  .live-tv-btn {
    width: 100%;
    margin-top: 10px;
  }

  .intro__grid,
  .contact__grid,
  .donation__inner,
  .program-grid,
  .video-grid,
  .gallery-grid,
  .post-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 590px;
  }
}

.flower-rain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
}

.flower-petal {
  position: absolute;
  top: -40px;
  width: var(--petal-size, 18px);
  height: var(--petal-size, 18px);
  opacity: 0.92;
  background:
    radial-gradient(circle at 35% 35%, #fff8d6 0 18%, transparent 19%),
    radial-gradient(ellipse at 50% 18%, #ffcf58 0 28%, transparent 29%),
    radial-gradient(ellipse at 83% 50%, #f48a30 0 28%, transparent 29%),
    radial-gradient(ellipse at 50% 83%, #d82919 0 28%, transparent 29%),
    radial-gradient(ellipse at 18% 50%, #f48a30 0 28%, transparent 29%);
  border-radius: 50%;
  filter: drop-shadow(0 5px 8px rgba(89, 18, 8, 0.24));
  animation: flower-fall var(--fall-duration, 5s) linear forwards;
}

@keyframes flower-fall {
  0% {
    transform: translate3d(0, -40px, 0) rotate(0deg) scale(0.86);
  }
  45% {
    transform: translate3d(var(--drift-mid, 40px), 48vh, 0) rotate(220deg) scale(1);
  }
  100% {
    transform: translate3d(var(--drift-end, -30px), 108vh, 0) rotate(520deg) scale(0.92);
  }
}

@media (max-width: 560px) {
  .topbar__inner {
    justify-content: center;
    text-align: center;
    padding: 8px 0;
  }

  .brand small {
    display: none;
  }

  .hero__content {
    padding: 92px 0 64px;
  }

  .hero p {
    font-size: 1rem;
  }

  .section {
    padding: 64px 0;
  }

  .donation__inner {
    padding: 24px;
  }
}

/* Manas Bhakti premium devotional layout */
:root {
  --maroon: #8b1710;
  --maroon-dark: #4f0b07;
  --saffron: #f28c18;
  --gold: #f6c453;
  --leaf: #3b7a4b;
  --ink: #241915;
  --muted: #6f5d50;
  --paper: #fff9ee;
  --cream: #f7ead7;
  --white: #ffffff;
  --shadow: 0 18px 42px rgba(82, 25, 9, 0.16);
}

body {
  background:
    radial-gradient(circle at top left, rgba(246, 196, 83, 0.18), transparent 34rem),
    var(--paper);
}

.topbar {
  background: var(--maroon);
  border-bottom: 4px solid var(--gold);
}

.topbar__inner {
  min-height: 46px;
  justify-content: center;
  gap: 26px;
  font-size: 0.84rem;
  font-weight: 600;
}

.topbar__book {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  padding: 6px 14px;
  color: var(--maroon);
  background: var(--gold);
}

.site-header {
  background: rgba(255, 249, 238, 0.98);
}

.navbar {
  min-height: 86px;
}

.brand strong {
  color: var(--maroon);
  font-size: 1.34rem;
}

.menu {
  gap: 18px;
  font-size: 0.95rem;
}

.menu a {
  position: relative;
  font-weight: 700;
}

.menu a::after {
  display: none;
}

.menu a:hover::after {
  transform: scaleX(1);
}

.site-header .brand__logo,
.site-header .custom-logo-link {
  width: 68px;
  height: 68px;
  flex-basis: 68px;
}

.site-header .brand__logo img,
.site-header .custom-logo {
  width: 68px !important;
  max-width: 68px !important;
  height: 68px !important;
  max-height: 68px !important;
  border-radius: 8px;
}

.hero {
  min-height: 620px;
  align-items: center;
  background: var(--maroon-dark);
}

.hero__image {
  background:
    linear-gradient(90deg, rgba(77, 9, 5, 0.88), rgba(123, 24, 12, 0.52), rgba(77, 9, 5, 0.12)),
    url("assets/back.webp");
  background-position: center;
  background-size: cover;
}

.hero__content {
  padding: 126px 0 116px;
}

.hero h1 {
  max-width: 840px;
  text-shadow: 0 5px 20px rgba(0, 0, 0, 0.22);
}

.hero p {
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.hero__dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.hero__dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.hero__dots span:first-child {
  background: var(--gold);
}

.btn--gold {
  color: var(--maroon-dark);
  background: var(--gold);
}

.section-heading--center {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.intro {
  background: var(--white);
}

.intro__grid {
  grid-template-columns: 1fr 0.78fr;
}

.intro__copy {
  max-width: 710px;
}

.intro__location {
  color: var(--saffron) !important;
  font-weight: 700;
}

.intro__media {
  display: grid;
  min-height: 360px;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(139, 23, 16, 0.08), rgba(246, 196, 83, 0.22)),
    var(--cream);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.intro__media img,
.intro__media .custom-logo {
  width: 100% !important;
  max-width: 420px !important;
  height: auto !important;
  max-height: 360px !important;
  object-fit: contain;
  border-radius: 0;
}

.intro__placeholder {
  color: var(--maroon);
  font-family: "Arya", serif;
  font-size: 10rem;
}

.program-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.program-card {
  position: relative;
  overflow: hidden;
  min-height: 0;
  border: 0;
  padding: 0 0 28px;
  text-align: center;
}

.program-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  content: "";
  background: linear-gradient(90deg, var(--maroon), var(--saffron), var(--gold));
}

.program-card__date {
  display: inline-flex;
  margin-bottom: 10px;
  border-radius: 4px;
  padding: 7px 12px;
  color: var(--white);
  background: var(--maroon);
  font-weight: 700;
}

.program-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  background:
    linear-gradient(135deg, rgba(139, 23, 16, 0.92), rgba(242, 140, 24, 0.72)),
    url("assets/back.webp");
  background-position: center;
  background-size: cover;
  color: var(--gold);
  font-family: "Arya", serif;
  font-size: 5rem;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.program-card:hover .program-card__image,
.program-card:focus-within .program-card__image {
  transform: scale(1.035);
  filter: saturate(1.08);
}

.program-card__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 20px 20px 8px;
  color: var(--muted);
  font-weight: 600;
  flex-wrap: wrap;
}

.program-card__meta span::before {
  color: var(--saffron);
  margin-right: 6px;
}

.program-card__meta span:first-child::before {
  content: "▣";
}

.program-card__meta span:nth-child(2)::before {
  content: "●";
}

.program-card h3,
.program-card p {
  margin-right: 22px;
  margin-left: 22px;
}

.program-card__button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  border-radius: 999px;
  padding: 10px 26px;
  color: var(--white);
  background: var(--maroon);
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(139, 23, 16, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.program-card__button:hover,
.program-card__button:focus-visible {
  color: var(--white);
  transform: scale(1.06);
  box-shadow: 0 18px 34px rgba(139, 23, 16, 0.3);
}

.video-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-card {
  overflow: hidden;
  padding: 18px;
}

.video-card .post-card__content {
  margin: -18px -18px 16px;
}

.video-card .post-card__content iframe,
.video-card .post-card__content video {
  border-radius: 8px 8px 0 0;
}

.video-link {
  display: flex;
  min-height: 156px;
  align-items: center;
  justify-content: center;
  padding: 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--maroon), var(--saffron));
  font-weight: 700;
  overflow-wrap: anywhere;
}

.video-card.is-hidden {
  display: none;
}

.video-grid.is-expanded .video-card.is-hidden {
  display: block;
}

.show-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.gallery-grid--six {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-grid--six .gallery-item {
  min-height: 250px;
}

.gallery-item--5 {
  background-image: url("https://images.unsplash.com/photo-1567591370504-80142b0f33c1?auto=format&fit=crop&w=700&q=80");
}

.gallery-item--6 {
  background-image: url("https://images.unsplash.com/photo-1606293926075-69a00dbfde81?auto=format&fit=crop&w=700&q=80");
}

.donation {
  background: linear-gradient(135deg, #fff7e5, #ffffff);
}

.donation__inner {
  grid-template-columns: 1fr auto;
}

.donation__image {
  width: 180px;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.footer {
  color: rgba(255, 255, 255, 0.88);
  background: #260b06;
}

.footer__main {
  padding: 64px 0 44px;
  background:
    linear-gradient(135deg, rgba(139, 23, 16, 0.96), rgba(38, 11, 6, 0.98)),
    radial-gradient(circle at top right, rgba(246, 196, 83, 0.2), transparent 24rem);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.75fr 1fr 0.9fr;
  gap: 30px;
}

.footer h3 {
  margin: 0 0 14px;
  color: var(--gold);
  font-family: "Arya", serif;
  font-size: 1.7rem;
  line-height: 1.05;
}

.footer__logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer__logo .custom-logo,
.footer__logo img {
  width: 74px !important;
  height: 74px !important;
  max-width: 74px !important;
  max-height: 74px !important;
  object-fit: contain;
  border-radius: 8px;
}

.footer__links,
.footer__social {
  display: grid;
  gap: 9px;
}

.footer a {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.footer a:hover {
  color: var(--gold);
}

.footer__bottom {
  background: #160603;
}

.footer__bottom-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.footer__bottom p {
  margin: 0;
}

.custom-block-section {
  border-top: 1px solid rgba(139, 23, 16, 0.08);
}

@media (max-width: 1000px) {
  .footer__grid,
  .program-grid,
  .video-grid,
  .gallery-grid--six {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .topbar__inner {
    gap: 12px;
  }

  .menu {
    top: 132px;
  }

  .intro__grid,
  .donation__inner,
  .footer__grid,
  .program-grid,
  .video-grid,
  .gallery-grid--six {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 560px;
  }
}

@media (max-width: 560px) {
  .topbar__inner span:nth-child(3) {
    display: none;
  }

  .site-header .brand__logo,
  .site-header .custom-logo-link {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  .site-header .brand__logo img,
  .site-header .custom-logo {
    width: 56px !important;
    max-width: 56px !important;
    height: 56px !important;
    max-height: 56px !important;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 18vw, 5rem);
  }
}
