/**********************************************************************************************/
/******************************* HOME SECTION - HOW WE CAN HELP *******************************/
/******************************* Reduced height by approx. 10% ********************************/
/**********************************************************************************************/

.apm-home-help,
.apm-home-help * {
  box-sizing: border-box;
}

.apm-home-help {
  --apm-help-bg: #fbf8f2;
  --apm-help-bg-soft: #f6f2ea;
  --apm-help-navy: #08243f;
  --apm-help-navy-soft: #38536b;
  --apm-help-gold: #d4a44d;
  --apm-help-gold-dark: #b9862d;
  --apm-help-gold-soft: rgba(212, 164, 77, 0.15);
  --apm-help-border: rgba(212, 164, 77, 0.34);
  --apm-help-card: rgba(255, 255, 255, 0.74);
  --apm-help-shadow: 0 22px 48px rgba(8, 36, 63, 0.08);
  --apm-help-shadow-hover: 0 30px 70px rgba(8, 36, 63, 0.13);

  position: relative;
  overflow: hidden;
  padding: 86px 6vw 88px;
  background:
    radial-gradient(circle at 12% 10%, rgba(244, 179, 61, 0.08) 0%, rgba(244, 179, 61, 0) 28%),
    radial-gradient(circle at 92% 82%, rgba(8, 36, 63, 0.06) 0%, rgba(8, 36, 63, 0) 30%),
    linear-gradient(135deg, #ffffff 0%, #fbf8f2 46%, #f7f9fc 100%);
  color: var(--apm-help-navy);
  font-family: "Barlow", "Inter", Arial, sans-serif;
}

/* Elegant line pattern - top left */
.apm-home-help::before {
  content: "";
  position: absolute;
  top: -160px;
  left: -190px;
  width: 620px;
  height: 360px;
  border-radius: 50%;
  border-top: 1px solid rgba(212, 164, 77, 0.24);
  border-right: 1px solid rgba(8, 36, 63, 0.08);
  transform: rotate(-8deg);
  opacity: 0.9;
  pointer-events: none;
}

/* Elegant line pattern - bottom right */
.apm-home-help::after {
  content: "";
  position: absolute;
  right: -170px;
  bottom: -180px;
  width: 680px;
  height: 380px;
  border-radius: 50%;
  border-top: 1px solid rgba(8, 36, 63, 0.08);
  border-left: 1px solid rgba(212, 164, 77, 0.2);
  transform: rotate(-10deg);
  opacity: 0.9;
  pointer-events: none;
}

.apm-home-help__wrap {
  position: relative;
  z-index: 2;
  max-width: 1420px;
  margin: 0 auto;
}

/* Subtle dotted accents */
.apm-home-help__wrap::before,
.apm-home-help__wrap::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
  background-image: radial-gradient(rgba(212, 164, 77, 0.7) 1px, transparent 1px);
  background-size: 13px 13px;
  opacity: 0.16;
}

.apm-home-help__wrap::before {
  left: -20px;
  top: 170px;
  width: 150px;
  height: 130px;
  mask-image: linear-gradient(to right, rgba(0,0,0,1), rgba(0,0,0,0));
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1), rgba(0,0,0,0));
}

.apm-home-help__wrap::after {
  right: 0;
  bottom: -8px;
  width: 180px;
  height: 140px;
  mask-image: linear-gradient(to left, rgba(0,0,0,1), rgba(0,0,0,0));
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1), rgba(0,0,0,0));
}

/* Header */
.apm-home-help__header {
  max-width: 980px;
  margin: 0 auto 47px;
  text-align: center;
}

.apm-home-help__title {
  margin: 0;
  color: var(--apm-help-navy);
  font-family: "Barlow", serif;
  font-size: clamp(38px, 2.85vw, 51px);
  line-height: 0.98;
  font-weight: 700;
}

.apm-home-help__subtitle {
  max-width: 880px;
  margin: 20px auto 0;
  color: var(--apm-help-navy-soft);
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.48;
  font-weight: 400;
}

.apm-home-help__divider {
  display: flex;
  justify-content: center;
  margin-top: 27px;
}

.apm-home-help__divider span {
  position: relative;
  width: 216px;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(212, 164, 77, 0) 0%,
    rgba(212, 164, 77, 0.78) 28%,
    rgba(212, 164, 77, 0.78) 72%,
    rgba(212, 164, 77, 0) 100%
  );
}

.apm-home-help__divider span::before,
.apm-home-help__divider span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1.5px solid rgba(212, 164, 77, 0.88);
  transform: translate(-50%, -50%) rotate(45deg);
}

.apm-home-help__divider span::before {
  width: 16px;
  height: 16px;
}

.apm-home-help__divider span::after {
  width: 8px;
  height: 8px;
  background: rgba(212, 164, 77, 0.18);
}

/* Grid */
.apm-home-help__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 25px;
}

/* Cards */
.apm-home-help__card {
  position: relative;
  min-height: 333px;
  padding: 41px 25px 36px;
  border: 1px solid var(--apm-help-border);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 164, 77, 0.08) 0%, rgba(212, 164, 77, 0) 40%),
    rgba(255, 255, 255, 0.72);
  box-shadow: var(--apm-help-shadow);
  text-align: center;
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease;
}

.apm-home-help__card::before {
  content: "";
  position: absolute;
  left: -28px;
  bottom: -28px;
  width: 120px;
  height: 120px;
  opacity: 0.11;
  background-image: radial-gradient(var(--apm-help-gold) 1px, transparent 1px);
  background-size: 8px 8px;
  border-radius: 50%;
  pointer-events: none;
}

.apm-home-help__card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 21px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  pointer-events: none;
}

.apm-home-help__card:hover {
  transform: translateY(-7px);
  border-color: rgba(212, 164, 77, 0.58);
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 164, 77, 0.12) 0%, rgba(212, 164, 77, 0) 42%),
    rgba(255, 255, 255, 0.88);
  box-shadow: var(--apm-help-shadow-hover);
}

/* Icon */
.apm-home-help__icon-outer {
  position: relative;
  display: inline-flex;
  justify-content: center;
  margin-bottom: 30px;
}

.apm-home-help__icon-outer::before {
  content: "";
  position: absolute;
  inset: -13px;
  border: 1px dashed rgba(212, 164, 77, 0.34);
  border-radius: 50%;
  pointer-events: none;
}

.apm-home-help__icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 106px;
  height: 106px;
  border-radius: 50%;
  color: #ffffff;
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 32%),
    linear-gradient(145deg, #e5bd6a 0%, #c99437 52%, #a97823 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 14px 25px rgba(169, 120, 35, 0.22);
}

.apm-home-help__icon svg {
  width: 56px;
  height: 56px;
}

.apm-home-help__card-title {
  margin: 0;
  color: var(--apm-help-navy);
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  font-size: clamp(25px, 1.95vw, 32px);
  line-height: 1.06;
  font-weight: 700;
}

.apm-home-help__card-line {
  width: 38px;
  height: 3px;
  margin: 18px auto 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--apm-help-gold-dark), var(--apm-help-gold));
}

.apm-home-help__card-text {
  max-width: 240px;
  margin: 0 auto;
  color: var(--apm-help-navy-soft);
  font-size: 16.5px;
  line-height: 1.47;
  font-weight: 400;
}

/* Tablet */
@media (max-width: 1180px) {
  .apm-home-help {
    padding: 77px 4vw 81px;
  }

  .apm-home-help__header {
    margin-bottom: 43px;
  }

  .apm-home-help__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .apm-home-help__card {
    min-height: 306px;
    padding: 38px 24px 34px;
  }

  .apm-home-help__icon {
    width: 102px;
    height: 102px;
  }

  .apm-home-help__icon svg {
    width: 54px;
    height: 54px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .apm-home-help {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 63px 0 67px !important;
    overflow-x: hidden !important;
  }

  .apm-home-help__wrap {
    width: 100% !important;
    max-width: none !important;
    padding-left: 22px !important;
    padding-right: 22px !important;
    margin: 0 auto !important;
  }

  .apm-home-help__wrap::before,
  .apm-home-help__wrap::after {
    display: none;
  }

  .apm-home-help__header {
    margin-bottom: 34px;
    text-align: left;
  }

  .apm-home-help__title {
    font-size: clamp(38px, 11vw, 52px);
    line-height: 1;
  }

  .apm-home-help__subtitle {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.5;
  }

  .apm-home-help__divider {
    justify-content: flex-start;
    margin-top: 21px;
  }

  .apm-home-help__divider span {
    width: 135px;
  }

  .apm-home-help__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .apm-home-help__card {
    min-height: auto;
    padding: 34px 22px 31px;
    border-radius: 20px;
  }

  .apm-home-help__icon-outer {
    margin-bottom: 25px;
  }

  .apm-home-help__icon-outer::before {
    inset: -12px;
  }

  .apm-home-help__icon {
    width: 86px;
    height: 86px;
  }

  .apm-home-help__icon svg {
    width: 47px;
    height: 47px;
  }

  .apm-home-help__card-title {
    font-size: 28px;
  }

  .apm-home-help__card-line {
    margin: 14px auto 16px;
  }

  .apm-home-help__card-text {
    max-width: 320px;
    font-size: 15.5px;
    line-height: 1.45;
  }
}