/*
Theme Name: Thara Photo Divi 5
Theme URI: https://tharaphoto.com
Template: Divi
Author: Thara Photo
Description: Custom child theme for Divi 5.
Version: 1.0.7
Text Domain: tharaphoto-divi5
*/

/* Local environment visual indicator */
#wpadminbar,
#top-header,
#main-header {
  background-color: #e17041 !important;
}

/* iPhone Safari safe area: extend the mobile header color behind the status area. */
@media only screen and (max-width: 980px) {
  html,
  body:not(.et-fb) {
    background-color: #c17f60;
  }

  body:not(.et-fb) #page-container {
    background-color: #e6e2d8;
  }

  body:not(.et-fb)::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: env(safe-area-inset-top);
    background-color: #c17f60;
    pointer-events: none;
    z-index: 2147483647;
  }

  body:not(.et-fb) .et-l--header {
    background-color: #c17f60;
    padding-top: env(safe-area-inset-top);
  }

  body:not(.et-fb) .et-l--header .et_pb_section:first-child {
    background-color: #c17f60 !important;
  }
}

/* Ensure mobile dropdown menu opens at usable width from header hamburger */
@media only screen and (max-width: 980px) {
  .et-l--header .et_pb_menu .et_mobile_menu {
    width: min(88vw, 340px) !important;
    min-width: 250px !important;
    max-width: min(88vw, 340px) !important;
    max-height: calc(100vh - 92px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    left: auto !important;
    right: 0 !important;
    margin: 0 !important;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
  }

  .et-l--header .et_pb_menu .et_mobile_menu li a {
    white-space: normal;
    line-height: 1.35;
    padding: 12px 16px 12px 36px !important;
  }

  /* Divi exposes desktop sticky active colors, but not mobile; keep active items readable. */
  .et-l--header .et_pb_sticky .et_pb_menu .et_mobile_menu li.current-menu-item > a,
  .et-l--header .et_pb_sticky .et_pb_menu .et_mobile_menu li.current-menu-ancestor > a,
  .et-l--header .et_pb_sticky .et_pb_menu .et_mobile_menu li.current_page_item > a,
  .et-l--header .et_pb_sticky .et_pb_menu .et_mobile_menu li.current_page_ancestor > a,
  .et-l--header .et_pb_menu .et_mobile_menu li.current-menu-item > a,
  .et-l--header .et_pb_menu .et_mobile_menu li.current-menu-ancestor > a,
  .et-l--header .et_pb_menu .et_mobile_menu li.current_page_item > a,
  .et-l--header .et_pb_menu .et_mobile_menu li.current_page_ancestor > a {
    color: rgba(193, 212, 226, 0.6) !important;
  }

  .et-l--header .et_pb_menu .et_mobile_menu ul.sub-menu {
    padding-left: 14px !important;
  }

  /* Home page Safari stability: keep mobile menu panel from clipping/collapsing */
  body.page-id-2 .thara-mobile-menu-stable,
  body.page-id-2 .thara-mobile-menu-stable .et_builder_inner_content,
  body.page-id-2 .thara-mobile-menu-stable .et_pb_section,
  body.page-id-2 .thara-mobile-menu-stable .et_pb_row,
  body.page-id-2 .thara-mobile-menu-stable .et_pb_group,
  body.page-id-2 .thara-mobile-menu-stable .et_pb_menu,
  body.page-id-2 .thara-mobile-menu-stable .et_pb_menu__wrap,
  body.page-id-2 .thara-mobile-menu-stable .mobile_nav {
    overflow: visible !important;
  }

  body.page-id-2 .thara-mobile-menu-stable {
    position: relative;
    z-index: 100000 !important;
  }

  body.page-id-2 .thara-mobile-menu-stable .et_mobile_menu {
    left: auto !important;
    right: 0 !important;
    z-index: 100001 !important;
  }

  body.page-id-2 .thara-mobile-menu-stable .mobile_nav .mobile_menu_bar:before {
    content: "\2630" !important;
    font-family: inherit !important;
    font-size: 33px !important;
    line-height: 1 !important;
  }

  /* Offset CTA anchor jumps so the sticky mobile header does not cover the form intro. */
  body:not(.et-fb) #contact,
  body:not(.et-fb) #tharaphoto_footer_form {
    scroll-margin-top: 260px;
  }
}

/* Portfolio is a menu label (non-clickable) on desktop */
@media only screen and (min-width: 981px) {
  .et-l--header .et_pb_menu .menu-item.tharaphoto-parent-only > a {
    pointer-events: none;
    cursor: default;
  }
}

/* HOME TEST page styles */
body.page-home-test {
  --hp-ink: #1b3f59;
  --hp-ink-deep: #0f2434;
  --hp-black: #000000;
  --hp-cream: #e6e2d8;
  --hp-white: #ffffff;
  --hp-sand: #d7d2c6;
  --hp-clay: #e3a98c;
  --hp-olive: #96abba;
  --hp-orange: #e17041;
  --hp-blue: #c1d4e2;
  --hp-ocean: #39576b;
  --hp-shadow: rgba(0, 0, 0, 0.18);
  --hp-display: "Jost", sans-serif;
  --hp-body: "Adamina", serif;

  color: var(--hp-black);
  background-color: var(--hp-cream);
  font-family: var(--hp-body);
}

body.page-home-test h1,
body.page-home-test h2,
body.page-home-test h3 {
  font-family: var(--hp-display);
  letter-spacing: -0.005em;
}

body.page-home-test .hp-hero {
  padding: 0;
}

body.page-home-test .hp-weddings {
  padding: clamp(36px, 6vw, 64px) 0;
}

body.page-home-test .hp-feature {
  padding: 0;
}

body.page-home-test .hp-quote {
  padding: clamp(56px, 8vw, 96px) 0;
}

body.page-home-test .hp-hero__row .et_pb_column,
body.page-home-test .hp-feature__row .et_pb_column {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}

body.page-home-test .hp-weddings__row .et_pb_column {
  margin: 0 !important;
  float: none !important;
}

body.page-home-test .hp-hero {
  background: var(--hp-cream);
  border-bottom: 1px solid #000000;
}

body.page-home-test .hp-hero__row {
  display: grid;
  gap: 0;
  align-items: stretch;
  width: min(1454px, 100%);
  max-width: 1454px;
  margin: 0 auto;
  height: 90vh;
  min-height: 90vh;
}

@media (min-width: 981px) {
  body.page-home-test .hp-hero__row {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

body.page-home-test .hp-hero__row .et_pb_column {
  height: 100%;
}

body.page-home-test .hp-kicker {
  display: none;
}

body.page-home-test .hp-hero__copy {
  padding: clamp(36px, 4.8vw, 72px) clamp(28px, 4vw, 64px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

body.page-home-test .hp-hero__media {
  padding: 0;
  border-left: 1px solid #000000;
  display: flex;
}

body.page-home-test .hp-hero__title .et_pb_text_inner {
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.1;
  margin: 0 0 24px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--hp-orange);
  font-family: var(--hp-display);
}

body.page-home-test .hp-hero__lead .et_pb_text_inner {
  font-family: var(--hp-body);
  font-weight: 400;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.45;
  margin: 0 0 28px;
  color: rgba(0, 0, 0, 0.65);
}

body.page-home-test .hp-hero__image img,
body.page-home-test .hp-card__image img {
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: 0 24px 60px var(--hp-shadow);
  object-fit: cover;
  will-change: transform;
  transform: translateY(var(--parallax-y, 0px)) scale(var(--hover-scale, 1));
  transition: transform 0.45s ease-out;
}

body.page-home-test .hp-hero__image img {
  aspect-ratio: auto;
  height: 100%;
  width: 100%;
  min-height: 0;
  display: block;
  object-fit: cover;
  object-position: center;
  box-shadow: none;
}

body.page-home-test .hp-hero__image .et_pb_image_wrap,
body.page-home-test .hp-hero__image {
  height: 100%;
}

body.page-home-test:not(.et-fb) .hp-hero__image .et_pb_image_wrap {
  overflow: hidden;
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.03);
  }
}

body.page-home-test .hp-button .et_pb_button {
  background-color: var(--hp-blue);
  color: var(--hp-ink);
  border: none;
  padding: 12px 26px;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 20px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.page-home-test .hp-button .et_pb_button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(19, 16, 13, 0.2);
}

body.page-home-test .hp-button.hp-button--ghost .et_pb_button {
  background-color: transparent;
  color: var(--hp-ink);
  border: 1px solid var(--hp-ink);
}

body.page-home-test .hp-weddings {
  background-color: var(--hp-cream);
  border-bottom: 1px solid #000000;
}

body.page-home-test .hp-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: clamp(12px, 1.2vw, 14px);
  color: var(--hp-ink);
  margin-bottom: 12px;
}

body.page-home-test .hp-weddings__intro {
  width: min(1330px, 92vw);
  margin: 0 auto clamp(14px, 2vw, 22px);
}

body.page-home-test .hp-section-title .et_pb_text_inner {
  font-size: clamp(26px, 3.2vw, 40px);
  margin: 0 0 10px;
  color: var(--hp-black);
}

body.page-home-test .hp-weddings__row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: clamp(8px, 1.6vw, 18px);
  width: min(1330px, 92vw);
  height: auto;
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 981px) {
  body.page-home-test .hp-weddings__row {
    flex-wrap: nowrap;
  }
}

body.page-home-test .hp-weddings__row .et_pb_column {
  flex: 0 0 min(340px, 30vw);
  max-width: 420px;
}

@media (max-width: 980px) {
  body.page-home-test .hp-hero__row {
    min-height: 0;
    height: auto;
  }

  body.page-home-test .hp-hero__copy {
    padding: 40px 24px;
  }

  body.page-home-test .hp-hero__media {
    border-left: 0;
    border-top: 1px solid #000000;
  }

  body.page-home-test .hp-hero__image img {
    min-height: 0;
    height: auto;
  }

  body.page-home-test .hp-weddings__row {
    flex-direction: column;
    height: auto;
    overflow: visible;
    width: min(92vw, 520px);
  }

  body.page-home-test .hp-weddings__row .et_pb_column {
    flex: 1 1 auto;
    max-width: 100%;
  }
}

body.page-home-test .hp-card {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  padding: 0;
  border: 0;
  box-shadow: none;
}

body.page-home-test .hp-card__image,
body.page-home-test .hp-card__image .et_pb_image_wrap {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
}

body.page-home-test .hp-card__image::after,
body.page-home-test .hp-card__image .et_pb_image_wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.page-home-test .hp-card__image:hover::after,
body.page-home-test .hp-card__image .et_pb_image_wrap:hover::after {
  opacity: 1;
}

body.page-home-test .hp-card__image:hover img,
body.page-home-test .hp-card__image .et_pb_image_wrap:hover img {
  --hover-scale: 1.04;
  transform: translateY(var(--parallax-y, 0px)) scale(1.04);
}

body.page-home-test .hp-card__image img {
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  box-shadow: none;
}

body.page-home-test .hp-card__meta .et_pb_text_inner {
  white-space: pre-line;
  font-size: clamp(16px, 1.7vw, 20px);
  color: rgba(0, 0, 0, 0.65);
  font-family: var(--hp-body);
}

body.page-home-test .hp-card__meta .et_pb_text_inner::first-line {
  font-family: var(--hp-display);
  font-weight: 700;
  font-size: clamp(18px, 1.9vw, 22px);
  color: var(--hp-black);
}

body.page-home-test .hp-weddings__cta {
  margin-top: clamp(24px, 4vw, 48px);
  text-align: center;
}

body.page-home-test .hp-quote {
  background: var(--hp-blue);
  position: relative;
  border-top: 1px solid #000000;
  padding: clamp(18px, 3vw, 36px) 0;
  min-height: 20vh;
  display: flex;
  align-items: center;
}

body.page-home-test .hp-quote__row {
  width: min(1100px, 90vw);
  margin: 0 auto;
  text-align: center;
}

body.page-home-test .hp-quote__text blockquote {
  font-size: clamp(22px, 3.1vw, 36px);
  line-height: 1.55;
  margin: 0 0 18px;
  color: var(--hp-ink);
  font-family: var(--hp-body);
}

body.page-home-test .hp-quote__byline {
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--hp-ink);
  font-family: var(--hp-display);
  font-weight: 600;
}

body.page-home-test .hp-feature {
  background: var(--hp-cream);
  border-bottom: 1px solid #000000;
}

body.page-home-test .hp-feature__row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 64px;
  padding: clamp(56px, 8vw, 96px) 0 clamp(28px, 4vw, 40px);
  width: min(1454px, 94vw);
  max-width: 1454px;
  margin: 0 auto;
}

body.page-home-test .hp-feature__content {
  padding: 0 clamp(24px, 5vw, 73px);
}

body.page-home-test .hp-feature__title .et_pb_text_inner {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 900;
  color: var(--hp-orange);
  font-family: var(--hp-display);
  margin: 0 0 16px;
}

body.page-home-test .hp-feature__copy .et_pb_text_inner {
  font-family: var(--hp-display);
  font-weight: 500;
  font-size: clamp(18px, 1.9vw, 23px);
  line-height: 1.5;
  margin: 0 0 24px;
  color: var(--hp-black);
}

body.page-home-test .hp-feature__button .et_pb_button {
  background-color: var(--hp-blue);
  color: var(--hp-ink);
  border-radius: 20px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
}

body.page-home-test .hp-feature__image img {
  border-radius: 20px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: none;
}

body.page-home-test .hp-trust {
  background: var(--hp-cream);
  border-bottom: 1px solid #000000;
  padding: clamp(14px, 2.4vw, 28px) 0;
}

body.page-home-test .hp-trust .et_pb_row {
  width: min(1200px, 92vw);
  margin: 0 auto;
  gap: clamp(16px, 3vw, 40px);
}

body.page-home-test .hp-trust .et_pb_number_counter {
  text-align: center;
  padding: clamp(6px, 1.4vw, 14px);
}

body.page-home-test .hp-trust .et_pb_number_counter .percent-value,
body.page-home-test .hp-trust .et_pb_number_counter .percent-value span {
  font-family: var(--hp-display);
  font-weight: 800;
  font-size: clamp(36px, 4.6vw, 66px);
  color: var(--hp-orange);
  letter-spacing: 0.02em;
}

body.page-home-test .hp-trust .et_pb_number_counter .title {
  font-family: var(--hp-display);
  font-weight: 500;
  font-size: clamp(14px, 1.4vw, 18px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.7);
  margin-top: 8px;
}

body.page-home-test .hp-counter .et_pb_text_inner {
  white-space: pre-line;
  text-align: center;
  font-family: var(--hp-body);
  font-size: clamp(14px, 1.4vw, 18px);
  letter-spacing: 0.06em;
  color: rgba(0, 0, 0, 0.7);
  margin: 0;
}

body.page-home-test .hp-counter .et_pb_text_inner::first-line {
  font-family: var(--hp-display);
  font-weight: 800;
  font-size: clamp(36px, 4.6vw, 66px);
  color: var(--hp-orange);
  letter-spacing: 0.02em;
}

body.page-home-test .hp-contact {
  background: var(--hp-ocean);
  color: #f5f1e8;
  border-top: 1px solid rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
  padding: clamp(32px, 6vw, 60px) 0;
}

body.page-home-test .hp-trust__heading {
  width: min(900px, 88vw);
  margin: 0 auto clamp(8px, 1.6vw, 14px);
  text-align: center;
}

body.page-home-test .hp-trust__title .et_pb_text_inner {
  font-family: var(--hp-display);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 600;
  color: var(--hp-ink);
  letter-spacing: 0.04em;
  margin: 0;
}

body.page-home-test .hp-soft-cta {
  background: var(--hp-cream);
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  padding: clamp(32px, 6vw, 64px) 0;
  text-align: center;
}

body.page-home-test .hp-soft-cta__title .et_pb_text_inner {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--hp-ink);
  margin: 0 0 18px;
}

body.page-home-test .hp-soft-cta .et_pb_button {
  background: var(--hp-blue);
  color: var(--hp-ink);
  border-radius: 20px;
  padding: 12px 28px;
  font-weight: 600;
}

body.page-home-test .hp-footer {
  background: var(--hp-ink-deep);
  color: #f5f1e8;
  padding: clamp(32px, 6vw, 60px) 0;
}

body.page-home-test .hp-footer__row {
  width: min(1200px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 4vw, 48px);
}

body.page-home-test .hp-footer__title {
  font-family: var(--hp-display);
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: #f5f1e8;
}

body.page-home-test .hp-footer a {
  color: #f5f1e8;
  text-decoration: none;
}

body.page-home-test .hp-contact__row {
  width: min(1200px, 94vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(16px, 3vw, 40px);
  align-items: start;
}

body.page-home-test .hp-contact__title .et_pb_text_inner {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hp-orange);
  margin: 0 0 8px;
}

body.page-home-test .hp-contact__copy .et_pb_text_inner {
  font-family: var(--hp-display);
  font-size: clamp(15px, 1.8vw, 20px);
  line-height: 1.6;
  margin: 0 0 14px;
  color: #f5f1e8;
  white-space: pre-line;
}

body.page-home-test .hp-contact .tharaphoto-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

body.page-home-test .hp-contact__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.page-home-test .hp-contact .tharaphoto-form .tharaphoto-field {
  margin: 0;
  position: relative;
}

body.page-home-test .hp-contact .tharaphoto-form label {
  position: absolute;
  left: -9999px;
}

body.page-home-test .hp-contact .tharaphoto-form input,
body.page-home-test .hp-contact .tharaphoto-form textarea,
body.page-home-test .hp-contact .tharaphoto-form select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: #ffffff;
  color: #4b5561;
  padding: 14px 16px;
  font-size: clamp(14px, 1.6vw, 18px);
  border-radius: 4px;
  font-family: var(--hp-display);
}

body.page-home-test .hp-contact .tharaphoto-form textarea {
  min-height: 180px;
  resize: vertical;
}

body.page-home-test .hp-contact .tharaphoto-form .tharaphoto-field-email,
body.page-home-test .hp-contact .tharaphoto-form .tharaphoto-field-phone,
body.page-home-test .hp-contact .tharaphoto-form .tharaphoto-field-message,
body.page-home-test .hp-contact .tharaphoto-form button {
  grid-column: 1 / -1;
}

body.page-home-test .hp-contact .tharaphoto-form button {
  justify-self: end;
  background: var(--hp-blue);
  color: var(--hp-ink);
  border: none;
  border-radius: 24px;
  padding: 12px 28px;
  font-family: var(--hp-display);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: clamp(14px, 1.6vw, 18px);
}

body.page-home-test .hp-quote .et_pb_testimonial {
  background: transparent;
  border: none;
  box-shadow: none;
  margin: 0 auto;
  max-width: 980px;
}

body.page-home-test .hp-quote .et_pb_testimonial_content {
  font-family: var(--hp-body);
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.55;
  color: var(--hp-ink);
}

body.page-home-test .hp-quote .et_pb_testimonial_author {
  font-family: var(--hp-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hp-ink);
}

body.page-home-test .hp-quote .et_pb_testimonial_position {
  font-family: var(--hp-display);
  color: rgba(27, 63, 89, 0.8);
}

body.page-home-test:not(.et-fb) .hp-fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

body.page-home-test:not(.et-fb) .hp-fade-up.is-inview {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  body.page-home-test .hp-feature__row {
    flex-direction: column;
    padding: 80px 24px 32px;
  }

  body.page-home-test .hp-feature__content {
    padding: 0;
  }

  body.page-home-test .hp-feature__image img {
    border-radius: 0 16px 16px 0;
  }
}

/* Mobile back-to-top button */
.thara-back-to-top {
  position: fixed;
  right: max(8px, env(safe-area-inset-right));
  bottom: calc(env(safe-area-inset-bottom) + 84px);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px 0 0 8px;
  background: rgba(88, 88, 88, 0.5);
  color: #f3f5f6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease;
  z-index: 9999;
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
}

.thara-back-to-top__icon {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  font-size: 0;
  line-height: 0;
}

.thara-back-to-top__icon::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 4px;
  width: 14px;
  height: 14px;
  border-top: 4px solid currentColor;
  border-left: 4px solid currentColor;
  transform: rotate(45deg);
  transform-origin: center;
}

.thara-back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.thara-back-to-top:active,
.thara-back-to-top:focus-visible {
  background: rgba(76, 76, 76, 0.61);
}

@media only screen and (min-width: 768px) {
  .thara-back-to-top {
    display: none !important;
  }
}

body.et-fb .thara-back-to-top {
  display: none !important;
}

/* Mobile-only reliability fixes for Home + Home Test hero rendering */
@media only screen and (max-width: 767px) {
  /* Home FAQ: use injected CSS-drawn controls instead of Divi's icon font on iOS Safari. */
  body.page-id-2:not(.et-fb) .et_pb_accordion_0.thara-faq-icons-stable .et_pb_toggle_title {
    position: relative;
    padding-right: 52px !important;
  }

  body.page-id-2:not(.et-fb) .et_pb_accordion_0.thara-faq-icons-stable .et_pb_toggle_title:before,
  body.page-id-2:not(.et-fb) .et_pb_accordion_0.thara-faq-icons-stable .et_pb_toggle_title:after {
    content: "" !important;
    display: none !important;
  }

  body.page-id-2:not(.et-fb) .et_pb_accordion_0.thara-faq-icons-stable .thara-faq-toggle-icon {
    position: absolute;
    top: 50%;
    right: 22px;
    width: 18px;
    height: 18px;
    display: block;
    transform: translateY(-50%);
    pointer-events: none;
  }

  body.page-id-2:not(.et-fb) .et_pb_accordion_0.thara-faq-icons-stable .thara-faq-toggle-icon:before,
  body.page-id-2:not(.et-fb) .et_pb_accordion_0.thara-faq-icons-stable .thara-faq-toggle-icon:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    background: #365870;
    border-radius: 999px;
    opacity: 0.78;
    transform: translate(-50%, -50%);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  body.page-id-2:not(.et-fb) .et_pb_accordion_0.thara-faq-icons-stable .thara-faq-toggle-icon:before {
    width: 18px;
    height: 2px;
  }

  body.page-id-2:not(.et-fb) .et_pb_accordion_0.thara-faq-icons-stable .thara-faq-toggle-icon:after {
    width: 2px;
    height: 18px;
  }

  body.page-id-2:not(.et-fb) .et_pb_accordion_0.thara-faq-icons-stable .et_pb_toggle_open .thara-faq-toggle-icon:after {
    opacity: 0;
    transform: translate(-50%, -50%) scaleY(0);
  }

  /* Home page Safari stability: force static mobile hero image (no parallax wrapper). */
  body.page-id-2 .thara-home-mobile-hero-fallback {
    position: relative !important;
    overflow: hidden !important;
    min-height: 65vh !important;
    min-height: 65svh !important;
    height: 65vh !important;
    height: 65svh !important;
    background-image: var(--thara-mobile-hero-image, url('/wp-content/uploads/2026/04/Z62_5506-mobile.jpg')) !important;
    background-position: 50% 50% !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  body.page-id-2 .thara-home-mobile-hero-fallback .et-pb-parallax-wrapper {
    display: none !important;
  }

  body.page-id-2 .thara-home-mobile-hero-fallback > * {
    position: relative;
    z-index: 1;
  }

  body.page-id-66:not(.et-fb) .hp-hero + .et_pb_section {
    position: relative;
    min-height: 66vh !important;
    height: 66vh !important;
    min-height: 66svh !important;
    height: 66svh !important;
    overflow: hidden;
  }

  body.page-id-66 .thara-mobile-hero-ready .thara-mobile-hero-layer {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    will-change: transform;
    transform-origin: center center;
    z-index: 0;
  }

  body.page-id-66 .thara-mobile-hero-ready > *:not(.thara-mobile-hero-layer) {
    position: relative;
    z-index: 1;
  }

  body.page-id-66 .hp-hero + .et_pb_section + .et_pb_section {
    min-height: auto !important;
    height: auto !important;
    padding-top: 18px !important;
    padding-bottom: 24px !important;
  }

  body.page-id-66 .hp-hero + .et_pb_section + .et_pb_section .et_pb_row {
    width: min(92%, 430px) !important;
    max-width: 430px !important;
  }

  body.page-id-66 .hp-hero + .et_pb_section + .et_pb_section .et_pb_button_module_wrapper {
    margin-top: 18px !important;
    margin-bottom: 18px !important;
  }

  body.page-id-66 .hp-hero + .et_pb_section + .et_pb_section + .et_pb_section {
    padding-top: 10px !important;
  }
}
