@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Sora:wght@500;600;700&display=swap');

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

.apm-home-blog {
  position: relative;
  padding: 63px 0 57px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  overflow: hidden;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: -0.01em;
}

.apm-home-blog-container {
  position: relative;
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

/* HEADER */
.apm-home-blog-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 36px;
  margin-bottom: 34px;
  z-index: 2;
}

.apm-home-blog-heading {
  max-width: 700px;
}

.apm-home-blog-eyebrow {
  display: inline-block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #c88622;
  margin-bottom: 12px;
}

.apm-home-blog-accent {
  display: block;
  width: 52px;
  height: 2px;
  background: linear-gradient(90deg, #d79b3d 0%, #f1bc62 100%);
  border-radius: 999px;
  margin-bottom: 16px;
}

.apm-home-blog-accent-bottom {
  margin-top: 13px;
  margin-bottom: 16px;
}

.apm-home-blog-title {
  margin: 0;
  font-family: 'Sora', system-ui, sans-serif;
  font-size: clamp(36px, 4vw, 45px);
  line-height: 1.06;
  font-weight: 700;
  color: #07264a;
  letter-spacing: -0.045em;
}

.apm-home-blog-intro {
  margin: 0;
  max-width: 640px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.62;
  font-weight: 400;
  color: #30455d;
  letter-spacing: -0.005em;
}

.apm-home-blog-actions {
  position: relative;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
  padding-top: 20px;
  z-index: 3;
}

.apm-home-blog-view-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  color: #0b2f57;
  transition: color 0.25s ease, transform 0.25s ease;
}

.apm-home-blog-view-all span {
  color: #d2902d;
  font-size: 21px;
  line-height: 1;
  font-family: 'Inter', system-ui, sans-serif;
}

.apm-home-blog-view-all:hover {
  color: #00798b;
  transform: translateX(2px);
}

.apm-home-blog-arc {
  position: absolute;
  top: -150px;
  right: -190px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(7, 124, 144, 0.08);
}

.apm-home-blog-arc::before,
.apm-home-blog-arc::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(7, 124, 144, 0.10);
}

.apm-home-blog-arc::after {
  inset: 60px;
}

/* DOTS */
.apm-home-blog-dots {
  display: grid;
  grid-template-columns: repeat(6, 8px);
  gap: 12px;
}

.apm-home-blog-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(8, 53, 94, 0.18);
}

.apm-home-blog-dots-top {
  margin-top: 4px;
}

.apm-home-blog-dots-bottom {
  position: absolute;
  left: 0;
  bottom: -6px;
  opacity: 0.65;
}

/* GRID */
.apm-home-blog-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* CARD */
.apm-home-blog-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(10, 44, 79, 0.08);
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 10px 30px rgba(7, 33, 61, 0.06),
    0 2px 8px rgba(7, 33, 61, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(8px);
}

.apm-home-blog-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 18px 46px rgba(7, 33, 61, 0.10),
    0 6px 16px rgba(7, 33, 61, 0.06);
}

.apm-home-blog-card-image-wrap {
  position: relative;
  display: block;
  height: 210px;
  overflow: hidden;
  text-decoration: none !important;
  background: #0a2947;
}

.apm-home-blog-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform 0.45s ease;
}

.apm-home-blog-card:hover .apm-home-blog-card-image {
  transform: scale(1.05);
}

.apm-home-blog-card-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(5, 24, 44, 0.12) 0%,
      rgba(5, 24, 44, 0.25) 48%,
      rgba(5, 24, 44, 0.66) 100%
    );
}

.apm-home-blog-badge {
  position: absolute;
  left: 18px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(227, 167, 74, 0.8);
  background: rgba(6, 31, 57, 0.88);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  box-shadow: 0 10px 20px rgba(6, 31, 57, 0.16);
}

.apm-home-blog-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  color: #e2a545;
  font-size: 13px;
  line-height: 1;
}

.apm-home-blog-card-content {
  padding: 20px 20px 20px;
}

.apm-home-blog-card-title {
  margin: 0 0 11px;
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 19px;
  line-height: 1.28;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.apm-home-blog-card-title a {
  color: #0a2b52;
  text-decoration: none !important;
  transition: color 0.25s ease;
}

.apm-home-blog-card-title a:hover {
  color: #00798b;
}

.apm-home-blog-card-excerpt {
  margin: 0;
  min-height: 52px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  color: #506377;
  letter-spacing: -0.005em;
}

.apm-home-blog-card-divider {
  margin: 18px 0 13px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(10, 43, 82, 0.12) 0%,
    rgba(10, 43, 82, 0.04) 100%
  );
}

.apm-home-blog-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  color: #69798b;
  margin-bottom: 18px;
  letter-spacing: -0.005em;
}

.apm-home-blog-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.apm-home-blog-meta-icon {
  font-size: 14px;
  line-height: 1;
  opacity: 0.8;
}

.apm-home-blog-meta-separator {
  color: #9aa7b3;
}

.apm-home-blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  color: #0a2b52;
  transition: color 0.25s ease, transform 0.25s ease;
}

.apm-home-blog-card-link span {
  color: #d2902d;
  font-size: 21px;
  line-height: 1;
  font-family: 'Inter', system-ui, sans-serif;
}

.apm-home-blog-card-link:hover {
  color: #00798b;
  transform: translateX(2px);
}

/* SLIDER INDICATOR */
.apm-home-blog-slider-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.apm-home-blog-slider-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 121, 139, 0.28);
}

.apm-home-blog-slider-indicator .is-active {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d79b3d 0%, #efbb61 100%);
}

/* RESPONSIVE */
@media (max-width: 1180px) {
  .apm-home-blog-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .apm-home-blog-actions {
    align-items: flex-start;
    min-width: auto;
    padding-top: 0;
  }

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

@media (max-width: 767px) {
  .apm-home-blog {
    padding: 49px 0 45px;
  }

  .apm-home-blog-container {
    width: min(100% - 32px, 1280px);
  }

  .apm-home-blog-header {
    margin-bottom: 28px;
    gap: 22px;
  }

  .apm-home-blog-eyebrow {
    margin-bottom: 11px;
    font-size: 11.5px;
    letter-spacing: 0.14em;
  }

  .apm-home-blog-accent {
    margin-bottom: 16px;
  }

  .apm-home-blog-accent-bottom {
    margin-top: 13px;
    margin-bottom: 16px;
  }

  .apm-home-blog-title {
    font-size: 33px;
    line-height: 1.08;
    letter-spacing: -0.04em;
  }

  .apm-home-blog-intro {
    font-size: 15.5px;
    line-height: 1.58;
  }

  .apm-home-blog-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .apm-home-blog-card-image-wrap {
    height: 178px;
  }

  .apm-home-blog-card-content {
    padding: 18px 18px 18px;
  }

  .apm-home-blog-card-title {
    font-size: 19px;
    line-height: 1.3;
    letter-spacing: -0.03em;
  }

  .apm-home-blog-card-excerpt {
    min-height: auto;
    font-size: 15px;
    line-height: 1.58;
  }

  .apm-home-blog-card-meta {
    font-size: 13.5px;
    margin-bottom: 16px;
  }

  .apm-home-blog-slider-indicator {
    margin-top: 22px;
  }

  .apm-home-blog-dots-top,
  .apm-home-blog-dots-bottom,
  .apm-home-blog-arc {
    display: none;
  }
}