/* =========================================================
   Button Style Module
   Yellow Button with Smooth Blue Ripple
========================================================= */

/* Alignment wrapper */
section[data-module="button-style"] .button-style-wrap {
  display: flex;
  align-items: center;
  width: 100%;
}

section[data-module="button-style"] .button-style-wrap.button-align-left {
  justify-content: flex-start;
}

section[data-module="button-style"] .button-style-wrap.button-align-center {
  justify-content: center;
}

section[data-module="button-style"] .button-style-wrap.button-align-right {
  justify-content: flex-end;
}


/* Main button */
section[data-module="button-style"] .button-style {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  padding: 9px 12px 9px 22px;
  border-radius: 999px;
  background: #f9d067;
  border: 1px solid #f9d067;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
  box-shadow: none;
  transition:
    transform 0.35s ease,
    border-color 0.35s ease;
}

/* Blue ripple layer */
section[data-module="button-style"] .button-style::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: 0;
  height: 0;
  border-radius: 999px;
  background: #156082;
  transform: translate(-50%, -50%);
  transition:
    width 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Soft surface layer */
section[data-module="button-style"] .button-style::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* Button text */
section[data-module="button-style"] .button-style-text {
  position: relative;
  z-index: 2;
  font-family: "Open Sans", sans-serif;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.01em;
  color: #111111;
  white-space: nowrap;
  transition:
    color 0.38s ease,
    transform 0.38s ease;
}

/* Blue icon circle */
section[data-module="button-style"] .button-style-icon {
  position: relative;
  z-index: 2;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  background: #156082;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.38s ease,
    transform 0.38s ease;
}

/* Custom arrow icon */
section[data-module="button-style"] .button-style-icon::before {
  content: "";
  width: 10px;
  height: 10px;
  display: block;
  background: url('/wp-content/uploads/2026/04/button-right.png') no-repeat center;
  background-size: contain;
  filter: none;
  transition:
    filter 0.38s ease,
    transform 0.38s ease;
}

/* Hover */
section[data-module="button-style"] .button-style:hover {
  transform: translateY(-1px);
  border-color: #156082;
  background: #f9d067;
}

section[data-module="button-style"] .button-style:hover::before {
  width: 240px;
  height: 240px;
}

section[data-module="button-style"] .button-style:hover::after {
  opacity: 1;
}

section[data-module="button-style"] .button-style:hover .button-style-text {
  color: #ffffff;
  transform: translateX(1px);
}

section[data-module="button-style"] .button-style:hover .button-style-icon {
  background: #156082;
  transform: translateX(2px);
}

section[data-module="button-style"] .button-style:hover .button-style-icon::before {
  filter: brightness(0) invert(1);
  transform: translateX(1px);
}

section[data-module="button-style"] .button-style:active {
  transform: scale(0.98);
}


/* =========================================================
   Responsive - Laptop
========================================================= */
@media (max-width: 1499px) and (min-width: 992px) {
  section[data-module="button-style"] .button-style {
    padding: 8px 11px 8px 20px;
    gap: 6px;
  }

  section[data-module="button-style"] .button-style-text {
    font-size: 16px;
  }

  section[data-module="button-style"] .button-style-icon {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  section[data-module="button-style"] .button-style-icon::before {
    width: 10px;
    height: 10px;
  }

  section[data-module="button-style"] .button-style:hover::before {
    width: 220px;
    height: 220px;
  }
}


/* =========================================================
   Responsive - Mobile
========================================================= */
@media (max-width: 767px) {
  section[data-module="button-style"] .button-style {
    padding: 8px 10px 8px 18px;
    gap: 5px;
  }

  section[data-module="button-style"] .button-style-text {
    font-size: 15px;
  }

  section[data-module="button-style"] .button-style-icon {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
  }

  section[data-module="button-style"] .button-style-icon::before {
    width: 9px;
    height: 9px;
  }

  section[data-module="button-style"] .button-style:hover {
    transform: translateY(-1px);
  }

  section[data-module="button-style"] .button-style:hover::before {
    width: 200px;
    height: 200px;
  }
}