/* Isolate the WordPress tree page from Tailwind/Next.js resets and
   restore Faun + HTMega widget styles used on sadbhavnadham.org. */

.wp-tree-page {
  overflow: visible;
}

.wp-tree-clone {

.wp-tree-clone {
  --gt-000: #000;
  --gt-fff: #fff;
  --gt-primary: #0d3b5e;
  --gt-text-color: #010201;
  --gt-text-color-reverse: #fff;
  --gt-counter-text-color: #fff;
  --gt-button-background-color: #0d3b5e;
  --gt-button-color: #fff;
  --gt-button-border-color: #0d3b5e;
  --gt-button-background-color-hover: #0d3b5e;
  --gt-button-color-hover: #fff;
  --gt-marquee-duration: 50s;
  --gt-marquee-direction: normal;
  --gt-marquee-gap: 36px;
  --e-global-typography-primary-font-family: var(--font-onest);
  --e-global-typography-secondary-font-family: var(--font-onest);
  --e-global-typography-text-font-family: var(--font-onest);
  --e-global-typography-accent-font-family: var(--font-onest);
  overflow: visible;
  font-family: var(--font-onest), "Onest", sans-serif;
  color: #010201;
}

.wp-tree-clone .elementor-heading-title,
.wp-tree-clone .elementor-icon-box-title,
.wp-tree-clone .elementor-icon-box-description,
.wp-tree-clone .elementor-button,
.wp-tree-clone .elementor-counter,
.wp-tree-clone .elementor-text-editor,
.wp-tree-clone .gt-number,
.wp-tree-clone .htb-btn {
  font-family: var(--font-onest), "Onest", sans-serif;
}

.wp-tree-clone h1,
.wp-tree-clone h2,
.wp-tree-clone h3,
.wp-tree-clone h4,
.wp-tree-clone h5,
.wp-tree-clone h6 {
  margin: 0;
  font-family: inherit;
}

.wp-tree-clone p {
  margin: 0 0 0.9em;
}

.wp-tree-clone p:last-child {
  margin-bottom: 0;
}

.wp-tree-clone ul,
.wp-tree-clone ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wp-tree-clone a {
  color: inherit;
  text-decoration: none;
}

.wp-tree-clone img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

.wp-tree-clone .elementor-icon svg,
.wp-tree-clone .e-font-icon-svg {
  width: 1em;
  height: 1em;
  display: block;
  fill: currentColor;
}

.wp-tree-clone .elementor-icon-list-icon svg {
  width: var(--e-icon-list-icon-size, 1em);
  height: var(--e-icon-list-icon-size, 1em);
  fill: currentColor;
}

.wp-tree-clone .row {
  display: flex;
  flex-wrap: wrap;
}

.wp-tree-clone .col-12,
.wp-tree-clone .col-md-12,
.wp-tree-clone .col-lg-12 {
  width: 100%;
  max-width: 100%;
}

.wp-tree-clone .gt-g-0 {
  gap: 0;
}

/* Village stack — DMmotionarts / live WordPress sticky stack */
.wp-tree-clone .elementor-element-12aa514e,
.wp-tree-clone .elementor-element-7f70778a,
.wp-tree-clone .elementor-element-472dc705 {
  --overflow: visible;
  overflow: visible !important;
}

.wp-tree-clone .elementor-element-472dc705 {
  --gap: 0px;
  --row-gap: 0px;
  --column-gap: 0px;
  gap: 0 !important;
}

.wp-tree-clone .dm-stack-cards {
  position: sticky;
  top: 15vh;
  transform-origin: center top;
  will-change: transform;
  z-index: 1;
}

.wp-tree-clone .dm-stack-cards:nth-child(1) {
  z-index: 1;
}

.wp-tree-clone .dm-stack-cards:nth-child(2) {
  transform: translateY(20px);
  z-index: 2;
}

.wp-tree-clone .dm-stack-cards:nth-child(3) {
  transform: translateY(40px);
  z-index: 3;
}

.wp-tree-clone .dm-stack-cards:nth-child(4) {
  transform: translateY(60px);
  z-index: 4;
}

.wp-tree-clone .dm-stack-cards:nth-child(5) {
  transform: translateY(80px);
  z-index: 5;
}

/* Faun counter */
.gt-counter {
  --gt-counter-text-color: #fff;
}

.gt-counter .gt-item {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.gt-counter .gt-item .gt-number {
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -2.8px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--gt-counter-text-color, #fff);
}

.gt-counter .gt-item .gt-number[data-prefix]::before {
  content: attr(data-prefix);
}

.gt-counter .gt-item .gt-number[data-suffix]::after {
  content: attr(data-suffix);
}

.gt-counter.gt-align-center {
  text-align: center;
}

.gt-counter.gt-align-center .gt-item {
  justify-content: center;
  align-items: center;
}

.gt-counter.gt-number-block .gt-item {
  flex-direction: column;
}

/* Faun gallery + marquee */
.gt-gallery .gt-item {
  position: relative;
}

.gt-gallery .gt-item .gt-image {
  position: relative;
  overflow: hidden;
}

.gt-gallery .gt-item .gt-image img {
  width: 100%;
  height: auto;
  display: block;
}

.gt-gallery .gt-item .gt-image a {
  display: block;
  position: relative;
}

.gt-gallery.gt-rounded .gt-item .gt-image,
.gt-gallery.gt-rounded .gt-item .gt-image img {
  border-radius: 16px;
}

.gt-marquee {
  position: relative;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
}

.gt-marquee.gt-fade {
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.gt-marquee .gt-inner {
  display: flex;
  width: max-content;
  animation: marquee-horizontal var(--gt-marquee-duration, 50s) linear infinite;
  animation-direction: var(--gt-marquee-direction, normal);
}

.gt-marquee.gt-pause-on-hover .gt-inner:hover {
  animation-play-state: paused;
}

.gt-marquee .gt-inner .gt-item {
  display: flex;
  gap: var(--gt-marquee-gap, 36px);
}

@keyframes marquee-horizontal {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Faun button */
.gt-button {
  width: fit-content;
}

.gt-button a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  gap: 12px;
  padding: 13px 20px;
  font-weight: 700;
}

.gt-button.gt-style-2 {
  --gt-button-color: #fff;
  --gt-button-background-color: #0d3b5e;
}

.gt-button.gt-style-2.gt-rounded a,
.gt-button.gt-rounded a {
  background: #0d3b5e;
  color: #fff;
  border-radius: 40px;
}

.gt-button.gt-style-2.gt-rounded a span,
.gt-button.gt-rounded a span {
  color: #fff;
}

/* HTMega button */
.htmega-button .htb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(132deg, #72b976 23%, #01bfbd 77%);
  color: #fff;
  border-radius: 80px;
  padding: 6px 15px 6px 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.4;
}

.htmega-button .htb-btn:hover,
.htmega-button .htb-btn:focus {
  color: #fff;
}

/* Elementor buttons inside the clone */
.wp-tree-clone .elementor-element-1071907 .elementor-button,
.wp-tree-clone .elementor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0d3b5e;
  color: #fff;
  border-radius: 100px;
  padding: 12px 22px;
  font-weight: 600;
  line-height: 1.2;
}

.wp-tree-clone .elementor-element-ac6fbc4 .elementor-button {
  background: transparent;
  color: #0d3b5e;
  gap: 8px;
  padding: 0;
  box-shadow: none;
}

.wp-tree-clone .elementor-element-ac6fbc4 .elementor-button-text,
.wp-tree-clone .elementor-element-ac6fbc4 span {
  background: linear-gradient(140deg, #72b976 0%, #01bfbd 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-weight: 700;
}

.wp-tree-clone .e-n-carousel {
  overflow: hidden;
}

.wp-tree-clone .e-n-carousel .swiper-wrapper {
  display: flex;
  align-items: stretch;
}

.wp-tree-clone .e-n-carousel .swiper-slide {
  height: auto;
}
