.expanded-puja-services {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 46px 16px 64px;
  background:
    radial-gradient(circle at 84% 8%, rgba(201, 159, 78, .24) 0 2px, transparent 3px),
    radial-gradient(circle at 12% 70%, rgba(201, 159, 78, .16) 0 2px, transparent 3px),
    linear-gradient(115deg, #fff9e8 0%, #fffef5 42%, #f6edcf 100%);
  font-family: Heebo, Arial, sans-serif;
  color: #26170d;
}

.expanded-puja-services::before,
.expanded-puja-services::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(163, 126, 59, .18);
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 12deg, rgba(137, 99, 43, .13) 0 7deg, transparent 7deg 14deg),
    radial-gradient(circle, transparent 0 38%, rgba(163, 126, 59, .12) 39% 40%, transparent 41% 100%);
  opacity: .7;
  pointer-events: none;
}

.expanded-puja-services::before {
  top: -126px;
  right: -58px;
}

.expanded-puja-services::after {
  bottom: -132px;
  left: -92px;
}

.expanded-puja-services * {
  box-sizing: border-box;
}

.expanded-puja-services__inner {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
}

.expanded-puja-services__eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 0 10px;
  padding: 6px 18px 5px 15px;
  border: 1px solid rgba(139, 101, 45, .36);
  border-right: 0;
  border-radius: 0;
  background: linear-gradient(180deg, #f5dfaa 0%, #c39a4a 48%, #e8c879 100%);
  color: #4a2a10;
  box-shadow: 0 4px 10px rgba(68, 42, 15, .22);
  font-family: "Nunito Sans", Heebo, Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.expanded-puja-services__eyebrow::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -18px;
  width: 18px;
  height: calc(100% + 2px);
  background: linear-gradient(135deg, #c39a4a 0 50%, transparent 50% 100%),
    linear-gradient(45deg, #c39a4a 0 50%, transparent 50% 100%);
  background-position: 0 0, 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 50%;
}

.expanded-puja-services h2 {
  margin: 0 0 8px;
  max-width: 980px;
  color: #5a381b;
  font-family: "Kotta One", Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: 0;
}

.expanded-puja-services__intro {
  max-width: 850px;
  margin: 0 0 24px;
  color: #2f2418;
  font-family: Inter, Heebo, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
}

.expanded-puja-services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 26px;
  align-items: stretch;
}

.expanded-puja-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  padding: 8px;
  border: 1px solid rgba(122, 78, 26, .5);
  border-radius: 14px;
  background:
    linear-gradient(#fff7df, #fff7df) padding-box,
    linear-gradient(135deg, #7d4f1a, #f6dda0 22%, #9c6a25 50%, #fff1bd 78%, #6b4217) border-box;
  box-shadow:
    0 14px 28px rgba(75, 45, 15, .28),
    inset 0 0 0 3px rgba(255, 255, 255, .8);
  transition: transform .24s ease, box-shadow .24s ease;
}

.expanded-puja-card::before,
.expanded-puja-card::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 58px;
  height: 58px;
  opacity: .7;
  pointer-events: none;
}

.expanded-puja-card::before {
  left: 10px;
  bottom: 10px;
  border-left: 2px solid rgba(170, 131, 61, .56);
  border-bottom: 2px solid rgba(170, 131, 61, .56);
  border-bottom-left-radius: 18px;
  background: radial-gradient(circle at 12px 44px, transparent 0 10px, rgba(170, 131, 61, .36) 11px 12px, transparent 13px);
}

.expanded-puja-card::after {
  right: 10px;
  bottom: 10px;
  border-right: 2px solid rgba(170, 131, 61, .56);
  border-bottom: 2px solid rgba(170, 131, 61, .56);
  border-bottom-right-radius: 18px;
  background: radial-gradient(circle at 46px 44px, transparent 0 10px, rgba(170, 131, 61, .36) 11px 12px, transparent 13px);
}

.expanded-puja-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 20px 34px rgba(75, 45, 15, .34),
    inset 0 0 0 3px rgba(255, 255, 255, .88);
}

.expanded-puja-card__image {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(123, 82, 28, .36);
  border-radius: 9px 9px 3px 3px;
  background: #ead8a8;
}

.expanded-puja-card__image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  transition: transform .3s ease, filter .3s ease;
}

.expanded-puja-card:hover .expanded-puja-card__image img {
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.035);
}

.expanded-puja-card__body {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  min-height: 144px;
  padding: 0 18px 14px;
  border: 1px solid rgba(183, 142, 69, .28);
  border-top: 0;
  border-radius: 0 0 9px 9px;
  background:
    radial-gradient(circle at 12px calc(100% - 12px), transparent 0 11px, rgba(174, 134, 60, .18) 12px 13px, transparent 14px),
    radial-gradient(circle at calc(100% - 12px) calc(100% - 12px), transparent 0 11px, rgba(174, 134, 60, .18) 12px 13px, transparent 14px),
    linear-gradient(180deg, #fffdf2 0%, #fff6d9 100%);
  color: #18100a;
  text-align: center;
}

.expanded-puja-services .expanded-puja-card h3 {
  width: calc(100% + 36px);
  margin: 0 -18px 10px;
  padding: 8px 12px 7px;
  border-bottom: 1px solid rgba(255, 224, 142, .56);
  border-radius: 0 0 8px 8px;
  background: linear-gradient(90deg, #760014 0%, #8b001b 28%, #bc8420 100%);
  color: #fff !important;
  font-family: "Kotta One", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .28);
}

.expanded-puja-card p {
  max-width: 285px;
  margin: 0 0 12px;
  color: #17110b;
  font-family: Heebo, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.28;
}

.expanded-puja-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: center;
  margin-top: auto;
  min-height: 29px;
  min-width: 120px;
  padding: 7px 15px 6px;
  border: 1px solid rgba(101, 61, 18, .46);
  border-radius: 999px;
  background: linear-gradient(180deg, #f9e3a4 0%, #c7973e 50%, #77501b 100%);
  color: #211305 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .75),
    0 5px 11px rgba(77, 45, 12, .34);
  text-decoration: none !important;
  font-family: "Nunito Sans", Heebo, Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .35px;
  line-height: 1;
  text-transform: uppercase;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.expanded-puja-card__link::after {
  content: "";
  width: 12px;
  height: 12px;
  background: currentColor;
  clip-path: polygon(0 43%, 68% 43%, 44% 19%, 58% 5%, 100% 50%, 58% 95%, 44% 81%, 68% 57%, 0 57%);
}

.expanded-puja-card__link:hover,
.expanded-puja-card__link:focus-visible {
  color: #211305 !important;
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .8),
    0 7px 14px rgba(77, 45, 12, .4);
}

@media (max-width: 1024px) {
  .expanded-puja-services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .expanded-puja-services {
    padding: 38px 12px 48px;
  }

  .expanded-puja-services::before,
  .expanded-puja-services::after {
    width: 230px;
    height: 230px;
  }

  .expanded-puja-services h2 {
    font-size: 28px;
  }

  .expanded-puja-services__intro {
    font-size: 14px;
  }

  .expanded-puja-services__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .expanded-puja-card {
    max-width: 390px;
    margin: 0 auto;
  }

  .expanded-puja-card__body {
    min-height: 138px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .expanded-puja-services .expanded-puja-card h3 {
    width: calc(100% + 28px);
    margin-right: -14px;
    margin-left: -14px;
    font-size: 18px;
  }
}
