/* ==========================================================================
   ARTICLES PAGE - PREMIUM OVERRIDE LAYER
   ========================================================================== */

/* Premium articles */
.articles-premium-page {
  --article-ink: #182733;
  --article-muted: #66747e;
  --article-green: #2e7d68;
  width: 100%;
  padding: 0 0 46px;
  color: var(--article-ink);
  background:
    radial-gradient(circle at 14% 8%, rgba(203, 235, 224, 0.52), transparent 24%),
    linear-gradient(180deg, #fbfdfc 0%, #ffffff 38%, #f7faf8 100%);
}

.articles-premium-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
  gap: clamp(44px, 7vw, 110px);
  align-items: center;
  width: min(1380px, calc(100% - 64px));
  min-height: 590px;
  margin: 0 auto;
  padding: clamp(58px, 8vw, 104px) 0 52px;
}

.articles-hero-copy {
  position: relative;
  z-index: 2;
}

.articles-badge,
.article-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border: 1px solid rgba(46, 125, 104, 0.1);
  border-radius: 999px;
  color: #27705d;
  background: #eaf6f1;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.articles-badge {
  padding: 9px 13px;
}

.articles-badge .ui-icon {
  width: 17px;
  height: 17px;
}

.articles-hero-copy h1 {
  max-width: 690px;
  margin: 24px 0 20px;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1.04;
  letter-spacing: 0;
}

.articles-hero-copy > p {
  max-width: 650px;
  margin: 0;
  color: var(--article-muted);
  font-size: 18px;
  line-height: 1.75;
}

.articles-search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 520px;
  height: 58px;
  margin-top: 30px;
  border: 1px solid #dfe9e5;
  border-radius: 16px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 15px 38px rgba(26, 63, 51, 0.08);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.articles-search:focus-within {
  border-color: rgba(46, 125, 104, 0.48);
  box-shadow: 0 18px 42px rgba(26, 98, 75, 0.12);
}

.articles-search .ui-icon {
  flex: 0 0 auto;
  width: 21px;
  color: #647681;
}

.articles-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0;
  color: var(--article-ink);
  background: transparent;
  font: inherit;
}

.articles-hero-visual {
  position: relative;
  min-height: 460px;
}

.articles-hero-visual::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: 14px;
  width: 48%;
  height: 38%;
  border-radius: 52% 48% 30% 70%;
  background: rgba(220, 241, 233, 0.7);
}

.articles-organic-shape {
  position: absolute;
  top: 2%;
  left: -8%;
  width: 48%;
  aspect-ratio: 1;
  border-radius: 50% 42% 56% 44%;
  background: #e6f3ee;
}

.articles-hero-visual img {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 44% 12% 42% 14%;
  object-fit: cover;
  box-shadow: 0 30px 70px rgba(29, 70, 56, 0.15);
}

.articles-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: min(1380px, calc(100% - 64px));
  margin: 0 auto 32px;
}

.articles-filters button {
  min-height: 44px;
  border: 1px solid #dfe9e5;
  border-radius: 999px;
  padding: 0 20px;
  color: #5b6872;
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(31, 62, 52, 0.05);
  cursor: pointer;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.articles-filters button:hover,
.articles-filters button.active {
  color: #fff;
  border-color: var(--article-green);
  background: linear-gradient(135deg, #26745f, #45a184);
  box-shadow: 0 12px 28px rgba(38, 116, 95, 0.2);
  transform: translateY(-1px);
}

.featured-article-shell,
.articles-recent,
.articles-closing-strip {
  width: min(1380px, calc(100% - 64px));
  margin-right: auto;
  margin-left: auto;
}

.featured-article-card {
  display: grid;
  grid-template-columns: minmax(360px, 0.98fr) minmax(0, 1.02fr);
  min-height: 410px;
  overflow: hidden;
  border: 1px solid #e1eae6;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 24px 60px rgba(25, 54, 45, 0.09);
}

.article-image-button,
.article-card-image,
.article-card-title {
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.article-image-button {
  min-height: 410px;
  overflow: hidden;
}

.article-image-button img,
.article-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.featured-article-card:hover .article-image-button img,
.article-preview-card:hover .article-card-image img {
  transform: scale(1.035);
}

.featured-article-copy {
  display: grid;
  align-content: center;
  padding: clamp(34px, 5vw, 70px);
}

.article-category {
  padding: 7px 10px;
  font-size: 10px;
}

.featured-article-copy h2 {
  max-width: 650px;
  margin: 18px 0 15px;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.08;
}

.featured-article-copy > p {
  max-width: 650px;
  margin: 0;
  color: var(--article-muted);
  font-size: 17px;
  line-height: 1.7;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  color: #78858d;
  font-size: 12px;
  font-weight: 700;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-meta .ui-icon {
  width: 15px;
  height: 15px;
}

.article-read-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  min-height: 48px;
  margin-top: 24px;
  border: 0;
  border-radius: 13px;
  padding: 0 19px;
  color: #fff;
  background: linear-gradient(135deg, #26745f, #43a184);
  box-shadow: 0 12px 25px rgba(38, 116, 95, 0.2);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.article-read-button .ui-icon {
  width: 17px;
  transition: transform 180ms ease;
}

.article-read-button:hover .ui-icon {
  transform: translateX(3px);
}

.articles-recent {
  padding-top: 68px;
}

.articles-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  margin-bottom: 24px;
}

.articles-section-heading span {
  color: var(--article-green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.articles-section-heading h2 {
  margin: 5px 0 0;
  font-size: clamp(30px, 3vw, 42px);
}

.articles-section-heading p {
  max-width: 470px;
  margin: 0;
  color: var(--article-muted);
  line-height: 1.6;
}

.articles-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

[data-article-card][hidden] {
  display: none !important;
}

.article-preview-card {
  display: grid;
  grid-template-rows: 250px 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e1eae6;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(25, 54, 45, 0.07);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.article-preview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 54px rgba(25, 54, 45, 0.12);
}

.article-card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.article-card-content {
  display: grid;
  align-content: start;
  padding: 25px;
}

.article-card-title {
  margin-top: 15px;
  color: var(--article-ink);
  font-size: 23px;
  font-weight: 900;
  line-height: 1.18;
}

.article-card-title:hover {
  color: var(--article-green);
}

.article-card-content > p {
  margin: 13px 0 0;
  color: var(--article-muted);
  font-size: 14px;
  line-height: 1.65;
}

.articles-empty {
  justify-items: center;
  gap: 8px;
  border: 1px dashed #cfded8;
  border-radius: 20px;
  padding: 48px 24px;
  color: var(--article-muted);
  background: #fff;
  text-align: center;
}

.articles-empty:not([hidden]) {
  display: grid;
}

.articles-empty .ui-icon {
  width: 30px;
  height: 30px;
  color: var(--article-green);
}

.articles-empty strong {
  color: var(--article-ink);
  font-size: 18px;
}

.articles-closing-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-top: 54px;
  border: 1px solid #d9ebe4;
  border-radius: 22px;
  padding: 28px 32px;
  background: linear-gradient(110deg, #eaf7f2, #f8fcfa);
}

.articles-closing-strip > span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--article-green);
}

.articles-closing-strip strong {
  color: var(--article-ink);
  font-size: 20px;
}

.articles-closing-strip p {
  margin: 5px 0 0;
  color: var(--article-muted);
}

.articles-closing-strip a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  border-radius: 13px;
  padding: 0 18px;
  color: #fff;
  background: var(--article-green);
  font-weight: 900;
  text-decoration: none;
}

.articles-closing-strip a .ui-icon {
  width: 17px;
}

.article-reader {
  width: min(920px, calc(100% - 36px));
  max-height: min(88vh, 900px);
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  padding: 0;
  color: var(--article-ink);
  background: #fff;
  box-shadow: 0 36px 100px rgba(12, 32, 26, 0.3);
}

.article-reader::backdrop {
  background: rgba(15, 28, 24, 0.62);
  backdrop-filter: blur(8px);
}

.article-reader-close {
  position: absolute;
  z-index: 4;
  top: 18px;
  right: 18px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(34, 65, 55, 0.1);
  border-radius: 50%;
  color: var(--article-ink);
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 10px 24px rgba(23, 43, 36, 0.14);
  font-size: 26px;
  cursor: pointer;
}

.article-reader-scroll {
  max-height: min(88vh, 900px);
  overflow: auto;
}

.article-reader-hero {
  display: block;
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.article-reader-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 46px 48px 54px;
}

.article-reader-content h2 {
  margin: 17px 0 0;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.08;
}

.article-reader-copy {
  margin-top: 32px;
}

.article-reader-copy p {
  margin: 0 0 20px;
  color: #465761;
  font-size: 18px;
  line-height: 1.85;
}

.article-reader-sources {
  margin-top: 34px;
  border-radius: 18px;
  padding: 24px;
  background: #f1f8f5;
}

.article-reader-sources h3 {
  margin: 0 0 14px;
  font-size: 17px;
}

.article-reader-sources > div {
  display: grid;
  gap: 9px;
}

.article-reader-sources a {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid #dce9e4;
  padding: 10px 0;
  color: #256c59;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.article-reader-sources a:last-child {
  border-bottom: 0;
}

.article-reader-sources .ui-icon {
  flex: 0 0 auto;
  width: 16px;
}

@media (max-width: 980px) {
  .articles-premium-hero {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: auto;
  }

  .articles-hero-copy {
    max-width: 760px;
  }

  .articles-hero-visual {
    min-height: 410px;
  }

  .featured-article-card {
    grid-template-columns: 1fr;
  }

  .article-image-button {
    min-height: 360px;
    max-height: 420px;
  }

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

@media (max-width: 700px) {
  .articles-premium-page {
    padding-bottom: 30px;
  }

  .articles-premium-hero,
  .articles-filters,
  .featured-article-shell,
  .articles-recent,
  .articles-closing-strip {
    width: calc(100% - 32px);
  }

  .articles-premium-hero {
    padding: 38px 0 28px;
  }

  .articles-hero-copy h1 {
    margin-top: 18px;
    font-size: 38px;
    line-height: 1.06;
  }

  .articles-hero-copy > p {
    font-size: 16px;
    line-height: 1.65;
  }

  .articles-search {
    height: 54px;
    margin-top: 24px;
  }

  .articles-hero-visual {
    min-height: 300px;
  }

  .articles-hero-visual img {
    border-radius: 32% 10% 30% 10%;
  }

  .articles-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-bottom: 22px;
    padding: 2px 0 8px;
    scrollbar-width: none;
  }

  .articles-filters::-webkit-scrollbar {
    display: none;
  }

  .articles-filters button {
    flex: 0 0 auto;
  }

  .featured-article-card {
    border-radius: 20px;
  }

  .article-image-button {
    min-height: 230px;
    height: 230px;
  }

  .featured-article-copy {
    padding: 26px 22px 28px;
  }

  .featured-article-copy h2 {
    font-size: 29px;
  }

  .featured-article-copy > p {
    font-size: 15px;
  }

  .articles-recent {
    padding-top: 46px;
  }

  .articles-section-heading {
    display: block;
  }

  .articles-section-heading p {
    margin-top: 10px;
  }

  .article-preview-card {
    grid-template-rows: 210px 1fr;
  }

  .article-card-image {
    height: 210px;
  }

  .article-card-content {
    padding: 22px;
  }

  .article-card-title {
    font-size: 21px;
  }

  .articles-closing-strip {
    grid-template-columns: auto 1fr;
    padding: 24px 20px;
  }

  .articles-closing-strip a {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .article-reader {
    width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
    border-radius: 20px;
  }

  .article-reader-scroll {
    max-height: calc(100vh - 20px);
  }

  .article-reader-hero {
    height: 240px;
  }

  .article-reader-content {
    padding: 30px 22px 38px;
  }

  .article-reader-content h2 {
    font-size: 31px;
  }

  .article-reader-copy p {
    font-size: 16px;
    line-height: 1.75;
  }

  .article-reader-sources {
    padding: 20px;
  }
}

/* Public typography, image clarity and footer alignment refinements */
.public-hero h1 {
  font-size: 46px;
  line-height: 1.1;
}

.about-premium-copy h2 {
  font-size: 50px;
  line-height: 1.07;
}

.services-premium-copy h2 {
  font-size: 46px;
  line-height: 1.1;
}

.articles-hero-copy h1 {
  font-size: 48px;
  line-height: 1.07;
}

.public-nav .brand-name strong,
.topbar .brand-name strong {
  color: #286f5d;
  font-size: 20px;
  font-weight: 800;
}

.public-nav .brand-name small,
.topbar .brand-name small {
  font-size: 10px;
}

.services-hero-visual img {
  width: min(100%, 680px);
  height: 520px;
  object-fit: cover;
  border-radius: 46% 12% 42% 16%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.62) 12%, #000 28%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.62) 12%, #000 28%, #000 100%);
}

.premium-service-photo img {
  filter: none;
  image-rendering: auto;
  object-position: 72% center;
}

.premium-service-card:nth-child(2) .premium-service-photo img {
  object-position: 68% center;
}

.premium-service-card:nth-child(4) .premium-service-photo img,
.premium-service-card:nth-child(6) .premium-service-photo img {
  object-position: 78% center;
}

.premium-service-card:nth-child(5) .premium-service-photo img {
  object-position: 82% center;
}

.public-footer {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 760px) {
  .public-hero h1,
  .about-premium-copy h2,
  .services-premium-copy h2,
  .articles-hero-copy h1 {
    font-size: 32px;
    line-height: 1.1;
  }

  .services-hero-visual img {
    height: 340px;
  }
}

@media (max-width: 620px) {
  .public-nav .brand-name strong,
  .topbar .brand-name strong {
    font-size: 16px;
  }

  .public-nav .brand-name small,
  .topbar .brand-name small {
    font-size: 7.5px;
  }

  .public-footer {
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    justify-items: center;
    gap: 5px;
    overflow: hidden;
    padding: 15px 24px;
  }

  .public-footer span,
  .public-footer small {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .public-footer small {
    line-height: 1.45;
  }
}
