/* Custom homepage — extends theme branding (Josefin Sans / Open Sans, .cmn--btn, .text--base) */

.hp-hero .hp-hero__brand {
  display: inline-block;
  margin-bottom: 12px;
  font-family: "Josefin Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.92;
}

.hp-hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hp-hero__image {
  position: relative;
  width: 100%;
  max-width: 520px;
  padding: 20px 10px 30px;
  animation: hpHeroFadeInRight 1s ease-out;
}

.hp-hero__svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.12));
  animation: hpHeroFloatImage 5s ease-in-out infinite;
}

.hp-hero__float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(71, 46, 164, 0.18);
  animation: hpHeroFloatCard 4s ease-in-out infinite;
  z-index: 2;
}

.hp-hero__float-card:first-of-type {
  bottom: 70px;
  right: 8px;
}

.hp-hero__float-card--alt {
  top: 40px;
  left: 0;
  animation-delay: 2s;
}

.hp-hero__float-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #472EA4 0%, #6a4fd4 100%);
  color: #fff;
  font-size: 22px;
  flex-shrink: 0;
}

.hp-hero__float-card--alt .hp-hero__float-icon {
  background: linear-gradient(135deg, #DFA11A 0%, #f0bf45 100%);
}

.hp-hero__float-content h3 {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 700;
  font-family: "Josefin Sans", sans-serif;
  color: #2f2f2f;
  line-height: 1.25;
}

.hp-hero__float-content p {
  margin: 0;
  font-size: 13px;
  color: #666;
}

@keyframes hpHeroFadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes hpHeroFloatImage {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes hpHeroFloatCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.hp-stat-item {
  text-align: center;
  padding: 28px 16px;
  border-radius: 10px;
  background: rgba(223, 161, 26, 0.1);
  border: 1px solid rgba(223, 161, 26, 0.18);
  box-shadow: 0 8px 24px rgba(223, 161, 26, 0.06);
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hp-stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(223, 161, 26, 0.12);
}

.hp-stat-item__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(223, 161, 26, 0.16);
  color: #DFA11A;
  font-size: 24px;
}

.hp-stat-item__value {
  margin-bottom: 6px;
  font-family: "Josefin Sans", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #4a4a4a;
}

.hp-stat-item__label {
  margin: 0;
  color: #555;
  font-size: 14px;
}

.hp-category-card,
.hp-task-card {
  height: 100%;
  background: rgba(71, 46, 164, 0.06);
  border-radius: 10px;
  border: 1px solid rgba(71, 46, 164, 0.12);
  box-shadow: 0 8px 24px rgba(71, 46, 164, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hp-category-card:hover,
.hp-task-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(71, 46, 164, 0.1);
  border-color: rgba(71, 46, 164, 0.28);
}

.hp-category-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px 20px;
  color: inherit;
  text-decoration: none !important;
}

.hp-category-card__media {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(71, 46, 164, 0.1);
}

.hp-category-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-category-card__icon {
  color: #472EA4;
  font-size: 28px;
  line-height: 1;
}

.hp-category-card__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-family: "Josefin Sans", sans-serif;
  color: #4a4a4a;
}

.hp-category-card__desc {
  margin: 0 0 12px;
  color: #555;
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hp-category-card__meta {
  margin-top: auto;
  font-size: 13px;
  font-weight: 700;
  color: #472EA4;
}

.hp-task-card {
  display: flex;
  flex-direction: column;
  padding: 22px 20px;
}

.hp-task-card--featured {
  border-color: rgba(18, 194, 168, 0.28);
}

.hp-task-card__body {
  flex: 1 1 auto;
}

.hp-task-card__top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.hp-task-card__category,
.hp-task-card__difficulty {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.hp-task-card__category {
  background: rgba(71, 46, 164, 0.12);
  color: #472EA4;
}

.hp-task-card__difficulty {
  background: rgba(85, 85, 85, 0.08);
  color: #555;
}

.hp-task-card__difficulty--easy {
  background: rgba(40, 199, 111, 0.12);
  color: #28c76f;
}

.hp-task-card__difficulty--medium {
  background: rgba(249, 159, 11, 0.14);
  color: #f99f0b;
}

.hp-task-card__difficulty--hard {
  background: rgba(234, 84, 85, 0.12);
  color: #ea5455;
}

.hp-task-card__title {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.35;
  font-family: "Josefin Sans", sans-serif;
}

.hp-task-card__title a {
  color: #4a4a4a;
  text-decoration: none !important;
}

.hp-task-card__title a:hover,
.hp-task-card__title a:focus-visible {
  color: #5a5eff;
}

.hp-task-card__reward {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 18px;
}

.hp-task-card__reward-label {
  font-size: 13px;
  color: #777;
}

.hp-task-card__reward strong {
  font-size: 18px;
  font-family: "Josefin Sans", sans-serif;
}

.hp-task-card__footer .cmn--btn {
  width: 100%;
}

.hp-jobs-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 0 24px;
}

.hp-jobs-tabs__btn {
  border: 1px solid rgba(71, 46, 164, 0.18);
  background: #fff;
  color: #472EA4;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hp-jobs-tabs__btn:hover,
.hp-jobs-tabs__btn:focus-visible {
  border-color: rgba(71, 46, 164, 0.4);
  box-shadow: 0 6px 16px rgba(71, 46, 164, 0.08);
}

.hp-jobs-tabs__btn.active {
  background: #472EA4;
  border-color: #472EA4;
  color: #fff;
}

.hp-jobs-panel {
  display: none;
}

.hp-jobs-panel.active {
  display: block;
}

.hp-jobs-table-wrap {
  border-radius: 12px;
  border: 1px solid rgba(71, 46, 164, 0.1);
  background: #fff;
  box-shadow: 0 10px 28px rgba(71, 46, 164, 0.05);
  overflow: hidden;
}

.hp-jobs-table.cmn--table thead {
  background: #472EA4;
}

.hp-jobs-table.cmn--table thead th {
  white-space: nowrap;
}

.hp-jobs-table.cmn--table tbody tr td {
  vertical-align: middle;
  color: #4a4a4a;
}

.hp-jobs-table.cmn--table tbody tr:nth-of-type(even) {
  background: rgba(71, 46, 164, 0.03);
}

.hp-jobs-table__job {
  text-align: left;
  min-width: 220px;
}

.hp-jobs-table__title {
  display: block;
  color: #2f2f2f;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none !important;
  margin-bottom: 4px;
}

.hp-jobs-table__title:hover,
.hp-jobs-table__title:focus-visible {
  color: #472EA4;
}

.hp-jobs-table__category {
  display: inline-block;
  font-size: 12px;
  color: #472EA4;
  background: rgba(71, 46, 164, 0.08);
  border-radius: 999px;
  padding: 3px 10px;
  font-weight: 600;
}

.hp-jobs-table__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.hp-jobs-table__pay {
  font-family: "Josefin Sans", sans-serif;
  font-weight: 700;
  color: #DFA11A;
  white-space: nowrap;
}

.hp-jobs-table__progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hp-jobs-table__difficulty {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  background: rgba(85, 85, 85, 0.08);
  color: #555;
  text-transform: capitalize;
}

.hp-jobs-table__difficulty--easy {
  background: rgba(40, 199, 111, 0.12);
  color: #28c76f;
}

.hp-jobs-table__difficulty--medium {
  background: rgba(249, 159, 11, 0.14);
  color: #f99f0b;
}

.hp-jobs-table__difficulty--hard {
  background: rgba(234, 84, 85, 0.12);
  color: #ea5455;
}

.hp-jobs-table__progress-value {
  color: #777;
  font-size: 13px;
}

.hp-jobs-table__completion {
  white-space: nowrap;
  font-size: 14px;
}

.hp-jobs-table__completion strong {
  color: #472EA4;
  font-family: "Josefin Sans", sans-serif;
}

.hp-jobs-table__action {
  white-space: nowrap;
}

@media (max-width: 767px) {
  .hp-jobs-table.cmn--table tbody tr td {
    text-align: left !important;
  }

  .hp-jobs-table__job,
  .hp-jobs-table__progress {
    justify-content: flex-start;
  }

  .hp-jobs-table__action {
    width: auto;
  }
}

.hp-faq__decor {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.hp-faq__decor span {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(135deg, #472EA4 0%, #6a4fd4 100%);
}

.hp-faq__decor span:first-child {
  width: 60px;
}

.hp-faq__decor span:last-child {
  width: 30px;
}

.hp-faq__accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  --bs-accordion-border-width: 0;
  --bs-accordion-border-radius: 12px;
  --bs-accordion-inner-border-radius: 12px;
  --bs-accordion-btn-padding-x: 20px;
  --bs-accordion-btn-padding-y: 18px;
  --bs-accordion-body-padding-x: 20px;
  --bs-accordion-body-padding-y: 0 20px 18px;
  --bs-accordion-active-bg: #fff;
  --bs-accordion-btn-focus-box-shadow: none;
}

.hp-faq__item {
  background: #fff;
  border: 2px solid rgba(71, 46, 164, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.hp-faq__item:hover {
  border-color: rgba(71, 46, 164, 0.35);
  box-shadow: 0 8px 22px rgba(71, 46, 164, 0.08);
}

.hp-faq__item .accordion-header {
  margin: 0;
}

.hp-faq__button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  font-size: 16px;
  font-weight: 600;
  color: #2f2f2f;
  background: #fff;
  box-shadow: none !important;
}

.hp-faq__button:not(.collapsed) {
  color: #472EA4;
  background: #fff;
  box-shadow: none;
}

.hp-faq__button::after {
  margin-left: auto;
  background-size: 16px;
  flex-shrink: 0;
}

.hp-faq__q-icon {
  color: #472EA4;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.hp-faq__q-text {
  flex: 1;
  text-align: left;
  line-height: 1.35;
}

.hp-faq__body {
  color: #555;
  font-size: 14px;
  line-height: 1.7;
  padding-top: 0 !important;
}

.hp-faq__body p {
  margin-bottom: 8px;
}

.hp-faq__body p:last-child {
  margin-bottom: 0;
}

.hp-faq__list {
  margin: 8px 0 0;
  padding-left: 18px;
}

.hp-faq__list li + li {
  margin-top: 4px;
}

.hp-faq__support {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  padding: 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(71, 46, 164, 0.08) 0%, rgba(223, 161, 26, 0.1) 100%);
  border: 2px solid rgba(71, 46, 164, 0.2);
  flex-wrap: wrap;
}

.hp-faq__support-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, #472EA4 0%, #6a4fd4 100%);
  color: #fff;
  font-size: 24px;
}

.hp-faq__support-content {
  flex: 1 1 160px;
}

.hp-faq__support-content h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-family: "Josefin Sans", sans-serif;
  color: #2f2f2f;
}

.hp-faq__support-content p {
  margin: 0;
  font-size: 14px;
  color: #555;
}

.hp-faq__visual {
  position: relative;
  padding: 18px;
}

.hp-faq__visual-card {
  position: relative;
  z-index: 1;
  padding: 40px 32px;
  border-radius: 20px;
  background:
    linear-gradient(160deg, rgba(71, 46, 164, 0.12), rgba(223, 161, 26, 0.1)),
    #fff;
  border: 1px solid rgba(71, 46, 164, 0.12);
  box-shadow: 0 16px 40px rgba(71, 46, 164, 0.1);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hp-faq__visual-badge {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: rgba(71, 46, 164, 0.12);
  color: #472EA4;
  font-size: 32px;
}

.hp-faq__visual-title {
  margin: 0 0 12px;
  font-size: 28px;
  font-family: "Josefin Sans", sans-serif;
  color: #2f2f2f;
}

.hp-faq__visual-text {
  margin: 0 0 22px;
  color: #555;
  font-size: 15px;
  line-height: 1.7;
}

.hp-faq__visual-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.hp-faq__visual-points li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #2f2f2f;
  font-size: 14px;
}

.hp-faq__visual-points i {
  color: #472EA4;
  font-size: 18px;
}

.hp-faq__float {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #472EA4;
  box-shadow: 0 10px 24px rgba(71, 46, 164, 0.16);
  font-size: 20px;
  z-index: 2;
  animation: hpFaqFloat 4s ease-in-out infinite;
}

.hp-faq__float--1 {
  top: 8%;
  right: 0;
}

.hp-faq__float--2 {
  top: 48%;
  right: -6px;
  animation-delay: 1s;
  color: #DFA11A;
}

.hp-faq__float--3 {
  bottom: 10%;
  left: 0;
  animation-delay: 2s;
}

@keyframes hpFaqFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@media (max-width: 991px) {
  .hp-faq__float {
    display: none;
  }

  .hp-faq__visual {
    padding: 0;
  }

  .hp-faq__visual-card {
    min-height: 0;
    padding: 28px 22px;
  }
}

@media (max-width: 575px) {
  .hp-faq__support {
    flex-direction: column;
    align-items: flex-start;
  }

  .hp-faq__button {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hp-faq__float {
    animation: none;
  }
}

.hp-cta__panel {
  padding: 36px 28px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(90, 94, 255, 0.08), rgba(18, 194, 168, 0.08)),
    #fff;
  border: 1px solid rgba(90, 94, 255, 0.1);
  box-shadow: 0 12px 30px rgba(26, 39, 68, 0.06);
}

.hp-how .how__item-title {
  color: #fff;
}

.hp-categories .feature__item,
.hp-why .feature__item {
  height: 100%;
}

@media (max-width: 991px) {
  .hp-hero .banner__wrapper {
    gap: 36px;
  }

  .hp-hero__image {
    max-width: 420px;
    margin: 0 auto;
  }

  .hp-hero__float-card--alt {
    display: none;
  }

  .hp-cta__panel .btn__grp {
    justify-content: flex-start !important;
  }
}

@media (max-width: 767px) {
  .hp-hero__float-card:first-of-type {
    position: static;
    margin-top: 16px;
    justify-content: center;
    animation: none;
  }

  .hp-hero__svg {
    animation: none;
  }
}

@media (max-width: 575px) {
  .hp-hero__float-content h3 {
    font-size: 14px;
  }

  .hp-stat-item__value {
    font-size: 24px;
  }

  .hp-cta__panel {
    padding: 28px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hp-hero__image,
  .hp-hero__svg,
  .hp-hero__float-card,
  .hp-stat-item,
  .hp-category-card,
  .hp-task-card {
    animation: none;
    transition: none;
  }

  .hp-stat-item:hover,
  .hp-category-card:hover,
  .hp-task-card:hover {
    transform: none;
  }
}
