/* ══════════════════════════════════════════
   ROYAL ELEMENTOR TABS - HOVER UNDERLINE
══════════════════════════════════════════ */

/* ── Tab nav wrapper ── */
.hover-tab .wpr-tabs-nav {
  border-bottom: 2px solid #eee;
}

/* ── Each tab title base ── */
.hover-tab .wpr-tab-link {
  display: inline-block;
  position: relative;
  padding-bottom: 8px;
  cursor: pointer;
  color: #555;
  font-weight: 600;
  transition: color 0.3s ease;
  text-decoration: none;
}

/* ── Underline hidden by default ── */
.hover-tab .wpr-tab-link::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #F80622;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
  z-index: 1;
}

/* ── Underline animates on hover ── */
.hover-tab .wpr-tab-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* ── Hover title color ── */
.hover-tab .wpr-tab-link:hover {
  color: #F80622;
}

/* ── Active tab stays underlined ── */
.hover-tab .wpr-tab-link.wpr-active::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* ── Active tab title color ── */
.hover-tab .wpr-tab-link.wpr-active {
  color: #F80622;
}

/* ── Tab icon (if used) color on hover ── */
.hover-tab .wpr-tab-link:hover i,
.hover-tab .wpr-tab-link.wpr-active i {
  color: #F80622;
  transition: color 0.3s ease;
}

/* ── Tab content fade in ── */
.hover-tab .wpr-tab-content {
  animation: royalFadeIn 0.3s ease-in-out;
}

@keyframes royalFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════
   RESPONSIVE - MOBILE
══════════════════════════════════════════ */
@media (max-width: 767px) {
  .hover-tab .wpr-tab-link {
    font-size: 13px;
    padding: 8px 12px;
  }

  .hover-tab .wpr-tab-link::after {
    height: 2px;
  }
}