/* =========================================================
   ANCOR Homepage News Section
   ========================================================= */

.ahn-section {
  position: relative;
  overflow: hidden;
  padding: 72px 0 78px;
  background:
    radial-gradient(
      circle at 9% 8%,
      rgba(199, 155, 82, 0.1),
      transparent 26%
    ),
    linear-gradient(
      180deg,
      #FCFCFC 0%,
      #FCFCFC 100%
    );
}

.ahn-section::before {
  content: "";
  position: absolute;
  top: 58px;
  right: -130px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(199, 155, 82, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.ahn-section .ahn-container {
  position: relative;
  z-index: 2;
  width: min(1420px, calc(100% - 58px));
  margin-inline: auto;
}

.ahn-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 29px;
}

.ahn-heading-copy {
  max-width: 760px;
}

.ahn-kicker {
  display: block;
  margin-bottom: 8px;
  color: #b58439;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.ahn-heading h2 {
  margin: 0 0 9px;
  color: #212121;
  font-size: clamp(33px, 4vw, 53px);
  font-weight: 900;
  line-height: 1.2;
}

.ahn-heading p {
  max-width: 650px;
  margin: 0;
  color: #74818c;
  font-size: 13px;
  line-height: 1.85;
}

.ahn-heading-mark {
  flex: 0 0 auto;
  color: rgba(199, 155, 82, 0.28);
  font-family: Arial, sans-serif;
  font-size: 80px;
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.08em;
}

/* Layout */

.ahn-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.18fr)
    minmax(0, 0.82fr);
  gap: 17px;
}

.ahn-featured {
  position: relative;
  overflow: hidden;
  min-height: 590px;
  border-radius: 25px;
  background: #212121;
  box-shadow: 0 22px 56px rgba(16, 40, 63, 0.14);
}

.ahn-featured-image {
  position: absolute;
  inset: 0;
}

.ahn-featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}

.ahn-featured:hover .ahn-featured-image img {
  transform: scale(1.055);
}

.ahn-featured::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      0deg,
      rgba(5, 17, 27, 0.93) 0%,
      rgba(5, 17, 27, 0.5) 43%,
      rgba(5, 17, 27, 0.08) 80%
    );
}

.ahn-featured-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  padding: 34px;
  color: #FCFCFC;
}

.ahn-badge {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  margin-bottom: 14px;
  padding: 5px 11px;
  border: 1px solid rgba(199, 155, 82, 0.35);
  border-radius: 999px;
  background: rgba(199, 155, 82, 0.16);
  color: #957A56;
  font-size: 9px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.ahn-featured h3 {
  max-width: 770px;
  margin: 0 0 12px;
  color: #FCFCFC;
  font-size: clamp(28px, 3vw, 43px);
  font-weight: 900;
  line-height: 1.35;
}

.ahn-featured p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  line-height: 1.9;
}

.ahn-featured-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: #957A56;
  font-size: 10px;
  font-weight: 900;
}

.ahn-featured-footer::before {
  content: "";
  width: 28px;
  height: 1px;
  background: #957A56;
}

/* Small cards */

.ahn-list {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.ahn-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  min-height: 286px;
  border: 1px solid rgba(16, 40, 63, 0.1);
  border-radius: 19px;
  background: #FCFCFC;
  box-shadow: 0 13px 34px rgba(16, 40, 63, 0.07);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.ahn-card:hover {
  transform: translateY(-5px);
  border-color: rgba(199, 155, 82, 0.48);
  box-shadow: 0 20px 44px rgba(16, 40, 63, 0.12);
}

.ahn-card-image {
  position: relative;
  height: 145px;
  overflow: hidden;
  background:
    linear-gradient(
      135deg,
      #212121,
      #31556e
    );
}

.ahn-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      0deg,
      rgba(5, 17, 27, 0.36),
      transparent 65%
    );
}

.ahn-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.ahn-card:hover .ahn-card-image img {
  transform: scale(1.07);
}

.ahn-card-number {
  position: absolute;
  top: 11px;
  right: 11px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 35px;
  height: 35px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.21);
  border-radius: 50%;
  background: rgba(7, 21, 34, 0.6);
  color: #f1cd86;
  font-size: 9px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.ahn-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 17px 16px 15px;
}

.ahn-card-category {
  display: block;
  margin-bottom: 6px;
  color: #b17e31;
  font-size: 8px;
  font-weight: 900;
}

.ahn-card h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 8px;
  color: #212121;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ahn-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #212121;
  font-size: 10px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.ahn-card-footer {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 12px;
  color: #957A56;
  font-size: 9px;
  font-weight: 900;
}

.ahn-card-footer::before {
  content: "←";
  font-size: 13px;
}

/* Bottom CTA */

.ahn-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 23px;
  padding: 17px 20px;
  border: 1px solid rgba(16, 40, 63, 0.09);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.77);
}

.ahn-bottom p {
  margin: 0;
  color: #6d7a85;
  font-size: 11px;
  line-height: 1.7;
}

.ahn-bottom strong {
  color: #212121;
}

.ahn-bottom a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid #212121;
  border-radius: 9px;
  color: #212121;
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
}

.ahn-bottom a:hover {
  background: #212121;
  color: #FCFCFC;
}

/* Tablet */

@media (max-width: 1050px) {
  .ahn-grid {
    grid-template-columns: 1fr;
  }

  .ahn-featured {
    min-height: 520px;
  }

  .ahn-list {
    grid-template-columns:
      repeat(4, minmax(250px, 1fr));
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .ahn-list::-webkit-scrollbar {
    display: none;
  }

  .ahn-card {
    scroll-snap-align: start;
  }
}

/* Mobile */

@media (max-width: 680px) {
  .ahn-section {
    padding: 42px 0 47px;
  }

  .ahn-section .ahn-container {
    width: calc(100% - 18px);
  }

  .ahn-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 19px;
  }

  .ahn-heading h2 {
    font-size: 32px;
  }

  .ahn-heading p {
    font-size: 11px;
  }

  .ahn-heading-mark {
    display: none;
  }

  .ahn-featured {
    min-height: 440px;
    border-radius: 18px;
  }

  .ahn-featured-content {
    padding: 20px 17px;
  }

  .ahn-featured h3 {
    font-size: 25px;
  }

  .ahn-featured p {
    font-size: 11px;
  }

  .ahn-list {
    grid-template-columns:
      repeat(4, minmax(82vw, 1fr));
    gap: 11px;
  }

  .ahn-card {
    min-height: 300px;
    border-radius: 16px;
  }

  .ahn-card-image {
    height: 160px;
  }

  .ahn-card h3 {
    font-size: 17px;
  }

  .ahn-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .ahn-bottom a {
    width: 100%;
  }
}
