/* MARK: News pages */

/* MARK: Page foundations */

.news-page {
  --news-v2-gap: var(--calabash-section-gap);
  background: var(--calabash-white);
  color: var(--calabash-navy);
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.65;
}

.news-page *,
.news-page *::before,
.news-page *::after {
  box-sizing: border-box;
}

.news-page img {
  display: block;
  max-width: 100%;
  height: auto;
}

.news-page .site-container {
  width: min(
    calc(100% - (var(--calabash-page-padding) * 2)),
    var(--calabash-page-max-width)
  );
  margin-inline: auto;
}

.news-page .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* MARK: Header (list pages and the top of an article) */

.news-v2-hero {
  padding: clamp(48px, 6vw, 76px) 0 clamp(40px, 4vw, 56px);
  background: linear-gradient(
    120deg,
    var(--calabash-turquoise-08) 0%,
    var(--calabash-off-white) 50%
  );
}

.news-v2-eyebrow {
  margin: 0 0 14px;
  color: var(--calabash-company-orange-a11y);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.news-v2-hero h1 {
  max-width: 820px;
  margin: 0;
  color: var(--calabash-navy);
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

.news-v2-hero__intro {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--calabash-muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.6;
}

/* MARK: List: category filter, grid, pagination */

.news-v2-list {
  padding: var(--news-v2-gap) 0;
}

.news-v2-filters {
  margin: 0 0 32px;
}

.news-v2-filters ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-v2-filters a {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--calabash-border);
  border-radius: 999px;
  background: var(--calabash-white);
  color: var(--calabash-navy);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition:
    background-color var(--calabash-transition),
    border-color var(--calabash-transition),
    color var(--calabash-transition);
}

.news-v2-filters a:hover,
.news-v2-filters a:focus-visible {
  border-color: var(--calabash-navy);
}

.news-v2-filters a:focus-visible {
  outline: 3px solid var(--calabash-orange-28);
  outline-offset: 2px;
}

.news-v2-filters a[aria-current="page"] {
  border-color: var(--calabash-navy);
  background: var(--calabash-navy);
  color: var(--calabash-white);
}

.news-v2-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.news-v2-empty {
  margin: 0;
  color: var(--calabash-muted);
  font-size: 1.05rem;
}

.news-page .pagination {
  margin-top: 48px;
}

.news-page .pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.news-page .pagination .page-numbers {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--calabash-border);
  border-radius: 12px;
  color: var(--calabash-navy);
  font-weight: 700;
  text-decoration: none;
  transition:
    border-color var(--calabash-transition),
    background-color var(--calabash-transition);
}

.news-page .pagination a.page-numbers:hover,
.news-page .pagination a.page-numbers:focus-visible {
  border-color: var(--calabash-navy);
}

.news-page .pagination .page-numbers.current {
  border-color: var(--calabash-navy);
  background: var(--calabash-navy);
  color: var(--calabash-white);
}

.news-page .pagination .page-numbers.dots {
  border-color: transparent;
}

/* MARK: Card */

.news-v2-card {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--calabash-white);
  box-shadow: var(--calabash-card-shadow);
  transition:
    box-shadow var(--calabash-transition),
    transform var(--calabash-transition);
}

.news-v2-card:hover {
  box-shadow: 0 14px 32px rgb(8 34 74 / 12%);
  transform: translateY(-4px);
}

.news-v2-card:focus-within {
  outline: 3px solid rgb(235 105 16 / 28%);
  outline-offset: 4px;
}

.news-v2-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--calabash-light-grey);
}

.news-v2-card__media .news-v2-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-v2-card__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(
    135deg,
    var(--calabash-orange-18) 0%,
    var(--calabash-off-white) 45%,
    var(--calabash-turquoise-12) 100%
  );
}

.news-v2-card__fallback img {
  width: auto;
  height: 56px;
}

.news-v2-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 24px 24px;
}

.news-v2-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 0 0 10px;
  font-size: 0.84rem;
  line-height: 1.4;
}

.news-v2-card__category {
  color: var(--calabash-green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-v2-card__date {
  color: var(--calabash-muted);
}

.news-v2-card__title {
  margin: 0;
  color: var(--calabash-navy);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.3;
  text-wrap: pretty;
}

.news-v2-card__title a {
  color: inherit;
  text-decoration: none;
}

.news-v2-card__title a::after {
  position: absolute;
  inset: 0;
  content: "";
}

.news-v2-card:hover .news-v2-card__title a {
  color: var(--calabash-company-orange-a11y);
}

.news-v2-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 12px 0 0;
  color: var(--calabash-text);
  font-size: 0.95rem;
  line-height: 1.6;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-v2-card__more {
  margin-top: auto;
  padding-top: 18px;
  color: var(--calabash-company-orange-a11y);
  font-size: 0.92rem;
  font-weight: 800;
}

.news-v2-card__more span {
  display: inline-block;
  transition: transform var(--calabash-transition);
}

.news-v2-card:hover .news-v2-card__more span {
  transform: translateX(4px);
}

/* MARK: Single article */

.news-v2-article .news-v2-hero {
  padding-bottom: clamp(28px, 3vw, 40px);
}

.news-v2-article .news-v2-hero__inner,
.news-v2-article__layout {
  max-width: 760px;
  margin-inline: auto;
}

.news-v2-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  color: var(--calabash-navy);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.news-v2-back:hover,
.news-v2-back:focus-visible {
  color: var(--calabash-company-orange-a11y);
}

.news-v2-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 0 0 14px;
  color: var(--calabash-muted);
  font-size: 0.92rem;
}

.news-v2-article__category {
  color: var(--calabash-green);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.news-v2-article__category:hover,
.news-v2-article__category:focus-visible {
  text-decoration: underline;
}

.news-v2-article__title {
  margin: 0;
  color: var(--calabash-navy);
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}

.news-v2-article__layout {
  padding: var(--news-v2-gap) 0;
}

.news-v2-article__figure {
  overflow: hidden;
  margin: 0 0 clamp(28px, 3vw, 40px);
  border-radius: 10px;
  background: var(--calabash-light-grey);
}

.news-v2-article__figure img {
  width: 100%;
}

.news-v2-article__content {
  color: var(--calabash-text);
  font-size: 1.06rem;
  line-height: 1.75;
  overflow-wrap: break-word;
}

.news-v2-article__content::after {
  display: table;
  clear: both;
  content: "";
}

.news-v2-article__content > :first-child {
  margin-top: 0;
}

.news-v2-article__content > :last-child {
  margin-bottom: 0;
}

.news-v2-article__content p {
  margin: 0 0 1.25em;
}

.news-v2-article__content p:empty {
  display: none;
}

.news-v2-article__content h2,
.news-v2-article__content h3,
.news-v2-article__content h4 {
  color: var(--calabash-navy);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.news-v2-article__content h2 {
  margin: 1.9em 0 0.6em;
  font-size: 1.6rem;
}

.news-v2-article__content h3 {
  margin: 1.7em 0 0.55em;
  font-size: 1.3rem;
}

.news-v2-article__content h4 {
  margin: 1.5em 0 0.5em;
  font-size: 1.1rem;
}

.news-v2-article__content ul,
.news-v2-article__content ol {
  margin: 0 0 1.25em;
  padding-left: 1.4em;
}

.news-v2-article__content li {
  margin: 0 0 0.4em;
}

.news-v2-article__content li::marker {
  color: var(--calabash-company-orange-a11y);
  font-weight: 800;
}

.news-v2-article__content a {
  color: var(--calabash-company-orange-a11y);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-v2-article__content a:hover,
.news-v2-article__content a:focus-visible {
  color: var(--calabash-company-orange-a11y-dark);
}

.news-v2-article__content img {
  border-radius: 8px;
}

.news-v2-article__content .aligncenter {
  margin-inline: auto;
}

.news-v2-article__content .alignleft {
  float: left;
  margin: 0.4em 1.5em 1em 0;
}

.news-v2-article__content .alignright {
  float: right;
  margin: 0.4em 0 1em 1.5em;
}

.news-v2-article__content figure,
.news-v2-article__content .wp-caption {
  max-width: 100%;
  margin: 1.5em 0;
}

.news-v2-article__content figcaption,
.news-v2-article__content .wp-caption-text {
  margin-top: 0.6em;
  color: var(--calabash-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.news-v2-article__content blockquote {
  margin: 1.6em 0;
  padding: 1em 1.4em;
  border-left: 4px solid var(--calabash-company-turquoise);
  border-radius: 0 8px 8px 0;
  background: var(--calabash-off-white);
  color: var(--calabash-navy);
}

.news-v2-article__content blockquote > :last-child {
  margin-bottom: 0;
}

.news-v2-article__content table {
  width: 100%;
  margin: 1.5em 0;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.news-v2-article__content th,
.news-v2-article__content td {
  padding: 10px 12px;
  border: 1px solid var(--calabash-border);
  text-align: left;
  vertical-align: top;
}

.news-v2-article__content th {
  background: var(--calabash-off-white);
  color: var(--calabash-navy);
}

.news-v2-article__content hr {
  margin: 2em 0;
  border: 0;
  border-top: 1px solid var(--calabash-border);
}

.news-v2-article__content iframe,
.news-v2-article__content video {
  max-width: 100%;
}

.news-v2-article__content iframe[src*="youtube"],
.news-v2-article__content iframe[src*="vimeo"] {
  width: 100%;
  height: auto;
  border: 0;
  aspect-ratio: 16 / 9;
}

/* MARK: Older articles */

.news-v2-article__content .clear {
  clear: both;
}

@media (min-width: 721px) {
  .news-v2-article__content .one-fourth,
  .news-v2-article__content .one-third,
  .news-v2-article__content .one-half,
  .news-v2-article__content .two-third,
  .news-v2-article__content .three-fourth {
    float: left;
    margin: 0 4% 1.5em 0;
  }

  .news-v2-article__content .one-fourth {
    width: 22%;
  }

  .news-v2-article__content .one-third {
    width: 30.6%;
  }

  .news-v2-article__content .one-half {
    width: 48%;
  }

  .news-v2-article__content .two-third {
    width: 65.3%;
  }

  .news-v2-article__content .three-fourth {
    width: 74%;
  }

  .news-v2-article__content .last {
    margin-right: 0;
  }
}

.news-v2-article__content .royalSlider .rsContent:not(:first-child),
.news-v2-article__content .royalSlider .rsTmb,
.news-v2-article__content .tabs-nav {
  display: none;
}

.news-v2-article__content .royalSlider img {
  width: 100%;
}

/* MARK: More news (end of an article) */

.news-v2-more {
  padding: var(--news-v2-gap) 0;
  background: var(--calabash-off-white);
}

.news-v2-more h2 {
  margin: 0 0 32px;
  color: var(--calabash-navy);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.news-v2-more__all {
  margin: 32px 0 0;
  text-align: center;
}

.news-v2-more__all a {
  color: var(--calabash-company-orange-a11y);
  font-weight: 800;
  text-decoration: none;
}

.news-v2-more__all a:hover,
.news-v2-more__all a:focus-visible {
  text-decoration: underline;
}

/* MARK: Tablet and mobile layout */

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

@media (max-width: 640px) {
  .news-v2-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .news-v2-card__body {
    padding: 20px 20px 22px;
  }

  .news-v2-article__content {
    font-size: 1rem;
  }

  .news-v2-article__content .alignleft,
  .news-v2-article__content .alignright {
    float: none;
    margin: 1.2em auto;
  }
}

/* MARK: Accessibility and reduced motion */

@media (prefers-reduced-motion: reduce) {
  .news-page *,
  .news-page *::before,
  .news-page *::after {
    transition-duration: 0.01ms !important;
  }

  .news-v2-card:hover {
    transform: none;
  }
}
