/* Articles page — AnyRay & Partners */
.articles-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #072d5c 0%, #0d4a93 52%, #0a3a74 100%);
  color: #fff;
  padding: 4.5rem 2rem 4rem;
}

.articles-hero::before {
  content: "";
  position: absolute;
  left: -10%;
  bottom: -40%;
  width: 45%;
  height: 140%;
  background: radial-gradient(circle, rgba(171, 199, 255, 0.14) 0%, transparent 70%);
  pointer-events: none;
}

.articles-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 72rem;
  margin: 0 auto;
}

.articles-kicker {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #d7e3ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.articles-hero h1 {
  margin: 0 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.08;
  font-weight: 400;
  max-width: 16ch;
}

.articles-hero-lead {
  margin: 0;
  max-width: 44rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

.articles-body {
  background: #f8f9fc;
  padding: 3rem 0 4.5rem;
}

.articles-wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.articles-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 2rem;
}

.articles-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 100%;
}

.articles-filter {
  flex: 0 1 auto;
  border: 1px solid rgba(13, 74, 147, 0.18);
  background: #fff;
  color: #0d4a93;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.articles-filter:hover,
.articles-filter:focus-visible {
  border-color: #13aa65;
  color: #006d3e;
  outline: none;
}

.articles-filter.is-active {
  background: #0d4a93;
  border-color: #0d4a93;
  color: #fff;
}

.articles-toolbar-note {
  margin: 0;
  font-size: 0.88rem;
  color: #424751;
}

.articles-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  margin-bottom: 2.5rem;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(13, 74, 147, 0.12);
  box-shadow: 0 14px 36px rgba(7, 45, 92, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.articles-featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(7, 45, 92, 0.12);
}

.articles-featured-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.articles-featured-content {
  padding: 2rem 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.articles-featured-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.articles-badge {
  display: inline-block;
  padding: 0.28rem 0.65rem;
  border-radius: 4px;
  background: rgba(19, 170, 101, 0.14);
  color: #006d3e;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.articles-date,
.articles-read-time {
  font-size: 0.82rem;
  color: #737782;
  font-weight: 600;
}

.articles-featured h2 {
  margin: 0 0 0.85rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  line-height: 1.2;
  color: #00336d;
  font-weight: 400;
}

.articles-featured p {
  margin: 0 0 1.25rem;
  color: #424751;
  line-height: 1.65;
  font-size: 0.98rem;
}

.articles-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #0d4a93;
  font-weight: 700;
  text-decoration: none;
}

.articles-link:hover,
.articles-link:focus-visible {
  color: #13aa65;
  outline: none;
}

.articles-section-title {
  margin: 0 0 1.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 400;
  color: #00336d;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  width: 100%;
}

.articles-grid > .articles-card {
  min-width: 0;
}

.articles-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(13, 74, 147, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(7, 45, 92, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.articles-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(7, 45, 92, 0.1);
}

.articles-card.is-hidden {
  display: none;
}

.articles-card-media {
  height: 190px;
  overflow: hidden;
}

.articles-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.articles-card:hover .articles-card-media img {
  transform: scale(1.04);
}

.articles-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1.35rem 1.35rem 1.25rem;
}

.articles-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.articles-card h3 {
  margin: 0 0 0.65rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  line-height: 1.3;
  color: #00336d;
  font-weight: 400;
}

.articles-card p {
  margin: 0 0 1rem;
  color: #424751;
  line-height: 1.58;
  font-size: 0.92rem;
  flex-grow: 1;
}

.articles-card .articles-link {
  margin-top: auto;
  font-size: 0.9rem;
}

.articles-cta {
  margin-top: 2.5rem;
  padding: 2rem;
  border-radius: 12px;
  background: #eceef0;
  border: 1px solid rgba(13, 74, 147, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.articles-cta h2 {
  margin: 0 0 0.4rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 400;
  color: #00336d;
}

.articles-cta p {
  margin: 0;
  color: #424751;
  max-width: 34rem;
  line-height: 1.55;
}

.articles-cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem 1.2rem;
  border-radius: 6px;
  background: #0d4a93;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.articles-cta a:hover,
.articles-cta a:focus-visible {
  background: #13aa65;
  outline: none;
}

@media (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .articles-featured {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .articles-hero {
    padding: 3.5rem 1.25rem 3rem;
  }

  .articles-wrap {
    padding: 0 1.25rem;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .articles-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .articles-filter {
    flex: none;
    width: 100%;
    text-align: center;
  }
}
