/* =========================================================
   HOME PAGE - BLOG SECTION
========================================================= */

.apm-home-blog-preview,
.apm-home-blog-preview * {
  box-sizing: border-box;
  font-family: "Barlow", "Segoe UI", Arial, sans-serif;
}

.apm-home-blog-preview {
  width: 100%;
  margin: 0;
  padding: 48px 24px 56px;
  background: #f6f9fc;
  color: #001834;
}

.apm-home-blog-preview-wrap {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 28px 36px 34px;
  background: #f3f8fc;
  border-radius: 10px;
}

/* HEADER */

.apm-home-blog-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.apm-home-blog-preview-head-left {
  display: block;
}

.apm-home-blog-preview-eyebrow {
  margin: 0 0 6px;
  color: #001834;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.apm-home-blog-preview-title {
  margin: 0;
  color: #001834;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.35px;
}

.apm-home-blog-preview-all {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #006877 !important;
  text-decoration: none !important;
  text-transform: uppercase;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.apm-home-blog-preview-all:hover {
  color: #00475a !important;
}

.apm-home-blog-preview-all span {
  font-size: 16px;
  line-height: 1;
}

/* GRID - DESKTOPON 3 EGYFORMA OSZLOP */

.apm-home-blog-preview-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 28px !important;
  width: 100% !important;
  align-items: stretch !important;
}

/* CARD */

.apm-home-blog-preview-card {
  width: 100% !important;
  min-width: 0 !important;
  overflow: hidden;
  border-radius: 7px;
  background: #ffffff;
  border: 1px solid rgba(0, 24, 52, 0.06);
  box-shadow:
    0 10px 26px rgba(0, 24, 52, 0.045),
    0 1px 2px rgba(0, 24, 52, 0.035);
  display: flex;
  flex-direction: column;
}

/* IMAGE - MINDIG EGYFORMA MAGASSÁG, VÁGÁSSAL */

.apm-home-blog-preview-image {
  display: block;
  width: 100%;
  height: 155px !important;
  min-height: 155px !important;
  max-height: 155px !important;
  overflow: hidden;
  background: #e9eef4;
  text-decoration: none !important;
  border-radius: 7px 7px 0 0;
}

.apm-home-blog-preview-image img {
  width: 100% !important;
  height: 100% !important;
  min-height: 155px !important;
  max-height: 155px !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* FALLBACK IMAGE */

.apm-home-blog-preview-placeholder {
  width: 100%;
  height: 155px;
  background:
    linear-gradient(135deg, rgba(0, 104, 119, 0.18), rgba(0, 24, 52, 0.12)),
    radial-gradient(circle at 30% 30%, rgba(240, 169, 68, 0.22), transparent 35%);
}

/* CARD BODY */

.apm-home-blog-preview-body {
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.apm-home-blog-preview-category {
  margin: 0 0 7px;
  color: #00475a;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.apm-home-blog-preview-card-title {
  margin: 0 0 8px;
  color: #001834;
  font-size: 15.5px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.15px;
}

.apm-home-blog-preview-card-title a {
  color: #001834 !important;
  text-decoration: none !important;
}

.apm-home-blog-preview-card-title a:hover {
  color: #006877 !important;
}

.apm-home-blog-preview-excerpt {
  margin: 0 0 13px;
  color: #4a5a70;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 400;
}

.apm-home-blog-preview-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #24344f;
  font-size: 12px;
  line-height: 1;
  font-weight: 500;
}

/* RESPONSIVE */

@media (max-width: 980px) {
  .apm-home-blog-preview-wrap {
    max-width: 620px;
    padding: 26px 24px 32px;
  }

  .apm-home-blog-preview-grid {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }

  .apm-home-blog-preview-image {
    height: 190px !important;
    min-height: 190px !important;
    max-height: 190px !important;
  }

  .apm-home-blog-preview-image img {
    min-height: 190px !important;
    max-height: 190px !important;
  }

  .apm-home-blog-preview-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .apm-home-blog-preview-all {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .apm-home-blog-preview {
    padding: 40px 16px 50px;
  }

  .apm-home-blog-preview-wrap {
    padding: 24px 18px 28px;
  }

  .apm-home-blog-preview-title {
    font-size: 22px;
  }

  .apm-home-blog-preview-image {
    height: 170px !important;
    min-height: 170px !important;
    max-height: 170px !important;
  }

  .apm-home-blog-preview-image img {
    min-height: 170px !important;
    max-height: 170px !important;
  }

  .apm-home-blog-preview-card-title {
    font-size: 15px;
  }
}




  .apm-blog-hero-card-section {
    width: 100%;
    padding: 0;
    margin: 0;
    background: transparent;
    font-family: 'Barlow', sans-serif;
  }

  .apm-blog-hero-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 180px;
    padding: 30px 4vw 30px;
    border-radius: 5px 5px 0 0;
    background:
      radial-gradient(circle at 76% 20%, rgba(30, 202, 211, 0.18), transparent 30%),
      radial-gradient(circle at 26% 65%, rgba(0, 95, 140, 0.28), transparent 38%),
      linear-gradient(135deg, #03243b 0%, #053b57 48%, #076276 100%);
    color: #ffffff;
    text-align: center;
    border: none;
    outline: none;
    box-shadow: none;
  }

  .apm-blog-hero-content {
    position: relative;
    z-index: 5;
    max-width: 1050px;
    margin: 0 auto;
  }

  .apm-blog-icon-wrap {
    position: relative;
    width: 78px;
    height: 78px;
    margin: 0 auto 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .apm-blog-icon {
    width: 56px;
    height: 56px;
    border: 1px solid rgba(30, 202, 211, 0.85);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #35e0eb;
    font-size: 20px;
    line-height: 1;
    background: rgba(30, 202, 211, 0.06);
    box-shadow: 0 0 28px rgba(30, 202, 211, 0.20);
  }

  .apm-blog-orange-arc {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 4px solid transparent;
    border-left-color: #f3a13b;
    border-top-color: #f3a13b;
    transform: rotate(-22deg);
  }

  .apm-blog-hero-card h2 {
    margin: 0 0 22px;
    color: #ffffff;
    font-size: 42px; /*clamp(42px, 5vw, 78px);*/
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
  }

  .apm-blog-hero-card p {
    margin: 0 auto;
    max-width: 1050px;
    color: #fff;
    font-size: clamp(19px, 2vw, 28px);
    line-height: 1.55;
    font-weight: 400;
  }

  .apm-blog-decoration {
    position: absolute;
    pointer-events: none;
    z-index: 1;
  }

  .apm-dots-left {
    left: 48px;
    bottom: 42px;
    width: 330px;
    height: 205px;
    opacity: 0.25;
    background-image: radial-gradient(circle, rgba(30, 202, 211, 0.72) 2px, transparent 2px);
    background-size: 24px 24px;
  }

  .apm-dots-right {
    right: 48px;
    top: 32px;
    width: 260px;
    height: 190px;
    opacity: 0.28;
    background-image: radial-gradient(circle, rgba(30, 202, 211, 0.72) 2px, transparent 2px);
    background-size: 24px 24px;
  }

  .apm-arc-left {
    left: -260px;
    bottom: -340px;
    width: 760px;
    height: 760px;
    border: 2px solid rgba(30, 202, 211, 0.20);
    border-radius: 50%;
  }

  .apm-arc-right {
    right: -130px;
    bottom: -430px;
    width: 650px;
    height: 650px;
    border: 2px solid rgba(30, 202, 211, 0.20);
    border-radius: 50%;
  }

  .apm-sunburst {
    top: 60px;
    right: 210px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    opacity: 0.18;
    background:
      repeating-conic-gradient(
        from 245deg,
        rgba(255, 255, 255, 0.35) 0deg,
        rgba(255, 255, 255, 0.35) 0.7deg,
        transparent 0.7deg,
        transparent 7deg
      );
    mask: radial-gradient(circle, transparent 0 47%, #000 48% 50%, transparent 51%);
    -webkit-mask: radial-gradient(circle, transparent 0 47%, #000 48% 50%, transparent 51%);
  }

  .apm-dot-bottom {
    right: 20%;
    bottom: 26px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1ecad3;
    box-shadow: 0 0 24px rgba(30, 202, 211, 0.65);
  }

  .apm-line-left {
    top: 98px;
    left: 120px;
    width: 160px;
    height: 2px;
    background: linear-gradient(90deg, #1ecad3, transparent);
  }

  .apm-line-left::before {
    content: "";
    position: absolute;
    left: -5px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1ecad3;
    transform: translateY(-50%);
  }

  .apm-line-right {
    top: 98px;
    right: 190px;
    width: 170px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #1ecad3);
  }

  .apm-line-right::after {
    content: "";
    position: absolute;
    right: -5px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1ecad3;
    transform: translateY(-50%);
  }

  @media (max-width: 1024px) {
    .apm-blog-hero-card {
      min-height: 330px;
      padding: 62px 6vw 52px;
      border-radius: 25px 25px 0 0;
    }

    .apm-blog-icon-wrap {
      margin-bottom: 34px;
    }

    .apm-dots-left {
      width: 250px;
      height: 160px;
      left: 28px;
      bottom: 28px;
      background-size: 20px 20px;
    }

    .apm-dots-right {
      width: 190px;
      height: 145px;
      right: 28px;
      top: 26px;
      background-size: 20px 20px;
    }

    .apm-line-left,
    .apm-line-right {
      display: none;
    }

    .apm-sunburst {
      width: 280px;
      height: 280px;
      right: 60px;
      top: 42px;
    }
  }

  @media (max-width: 768px) {
    .apm-blog-hero-card {
      min-height: auto;
      padding: 36px 24px 34px;
      border-radius: 25px 25px 0 0;
    }

    .apm-blog-icon-wrap {
      width: 62px;
      height: 62px;
      margin-bottom: 26px;
    }

    .apm-blog-icon {
      width: 46px;
      height: 46px;
      font-size: 16px;
    }

    .apm-blog-orange-arc {
      border-width: 3px;
    }

    .apm-blog-hero-card h2 {
      font-size: clamp(34px, 9vw, 44px);
      margin-bottom: 16px;
      letter-spacing: -0.02em;
    }

    .apm-blog-hero-card p {
      font-size: 16px;
      line-height: 1.5;
    }

    .apm-blog-hero-card p br {
      display: none;
    }

    .apm-dots-left {
      width: 150px;
      height: 110px;
      left: 18px;
      bottom: 20px;
      background-size: 16px 16px;
    }

    .apm-dots-right {
      width: 130px;
      height: 100px;
      right: 18px;
      top: 18px;
      background-size: 16px 16px;
    }

    .apm-arc-left {
      width: 430px;
      height: 430px;
      left: -270px;
      bottom: -275px;
    }

    .apm-arc-right {
      width: 430px;
      height: 430px;
      right: -280px;
      bottom: -300px;
    }

    .apm-sunburst {
      width: 210px;
      height: 210px;
      right: -20px;
      top: 24px;
    }

    .apm-dot-bottom {
      width: 16px;
      height: 16px;
      right: 18%;
      bottom: 18px;
    }
  }


/* Positioning the View All Articles link to RIGHT */
.apm-button-wrapper {
  width: 100%;
  max-width: 1220px;
  margin: 24px auto;
  display: flex;
  justify-content: flex-end;
}

.apm-button-wrapper a {
  color: #000000 !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.apm-button-wrapper a:hover {
  color: #00475a !important;
}


/* Blog felső sor: bal oldali szöveg + jobb oldali link */

.apm-blog-top-row {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.apm-blog-top-text {
  margin: 0;
  color: #001834;
  font-size: 24px !important;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.35px;
}

.apm-blog-top-row .apm-button-wrapper {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  display: flex !important;
  justify-content: flex-end !important;
}

.apm-blog-top-row .apm-button-wrapper a {
  color: #006877 !important;
  text-decoration: none !important;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.apm-blog-top-row .apm-button-wrapper a:hover {
  color: #00475a !important;
}

/* Mobilon egymás alá kerül */

@media (max-width: 640px) {
  .apm-blog-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .apm-blog-top-text {
    font-size: 20px !important;
  }

  .apm-blog-top-row .apm-button-wrapper {
    justify-content: flex-start !important;
  }
}