/** Mixins */ /** Colors */
/** Config  */
:root {
  --announcement-bar-height: 0px;
  --show-fade-animation: 1;
}

.m-featured-slider.swiper {
  position: relative;
  overflow: hidden !important;
  height: 350px;
  margin: -40px -20px 40px;
  transition: all 0.25s cubic-bezier(0.02, 0.01, 0.47, 1);
}
@media only screen and (min-width: 48rem) {
  .m-featured-slider.swiper:hover {
    transform: translateY(-5px);
    box-shadow: var(--article-shadow-hover), 0 0 0 transparent;
  }
}
@media only screen and (min-width: 48rem) {
  .m-featured-slider.swiper {
    width: 100%;
    height: 420px;
    margin: -40px 10px 20px 10px;
    border-radius: 10px;
  }
}
@media only screen and (min-width: 64rem) {
  .m-featured-slider.swiper {
    width: calc(66.6666666667% - 40px);
    margin: 0 20px 40px 20px;
    overflow: unset;
  }
}

.m-featured-slider:not(:root:root) {
  overflow: hidden !important;
}

.m-featured-slider__list {
  list-style-type: none;
  padding: 0;
  margin: 0;
  height: 100%;
}
@media only screen and (min-width: 48rem) {
  .m-featured-slider__list {
    border-radius: 10px;
  }
}

.m-featured-slider__list__item {
  height: 100%;
  overflow: hidden;
}
@media only screen and (min-width: 48rem) {
  .m-featured-slider__list__item {
    border-radius: 10px;
  }
}

.m-featured-article {
  position: relative;
  height: 100%;
  overflow: hidden;
  background-color: var(--primary-subtle-color);
  z-index: 1;
}
.m-featured-article:hover .m-featured-article__author {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 0 transparent;
}
.m-featured-article.no-picture .m-featured-article__picture {
  background-color: var(--primary-subtle-color);
}

.m-featured-article__picture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: 1;
}
.m-featured-article__picture div {
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.7;
}

.m-featured-article__meta {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 4;
}
@media only screen and (min-width: 48rem) {
  .m-featured-article__meta {
    top: 40px;
    left: 40px;
  }
}

.rtl .m-featured-article__meta {
  left: auto;
  right: 20px;
}
@media only screen and (min-width: 48rem) {
  .rtl .m-featured-article__meta {
    left: auto;
    right: 40px;
  }
}

.m-featured-article__author {
  display: block;
  width: 35px;
  height: 35px;
  background-color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  margin-bottom: 20px;
  transition: all 0.25s cubic-bezier(0.02, 0.01, 0.47, 1);
}
.m-featured-article__author div {
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-radius: 50%;
}

.m-featured-article__tag {
  color: #fff;
  letter-spacing: 0.3px;
  font-weight: 700;
  font-size: 1rem;
}

.m-featured-article__ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 26px;
  right: 20px;
  width: 24px;
  height: 24px;
  color: #000;
  background-color: #fff;
  border-radius: 50%;
  z-index: 2;
}
@media only screen and (min-width: 48rem) {
  .m-featured-article__ribbon {
    justify-content: flex-start;
    top: 47px;
    right: 40px;
    width: auto;
    height: 22px;
    padding: 0 7px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 15px;
  }
}
.m-featured-article__ribbon span {
  display: inline-block;
}
@media only screen and (min-width: 48rem) {
  .m-featured-article__ribbon span:first-of-type {
    font-size: 0.75rem;
    margin-right: 4px;
  }
}
.m-featured-article__ribbon span:last-of-type {
  display: none;
}
@media only screen and (min-width: 48rem) {
  .m-featured-article__ribbon span:last-of-type {
    display: block;
  }
}

.rtl .m-featured-article__ribbon {
  right: auto;
  left: 20px;
}
@media only screen and (min-width: 48rem) {
  .rtl .m-featured-article__ribbon {
    right: auto;
    left: 40px;
  }
}
@media only screen and (min-width: 48rem) {
  .rtl .m-featured-article__ribbon span:first-of-type {
    margin-right: 0;
    margin-left: 4px;
  }
}

.m-featured-article__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 120px 20px 20px 20px;
  position: relative;
  z-index: 3;
}
@media only screen and (min-width: 48rem) {
  .m-featured-article__content {
    padding: 125px 40px 40px 40px;
  }
}

.m-featured-article__title {
  color: #fff;
  letter-spacing: 0.4px;
  line-height: 1.3;
  font-size: 1.625rem;
  font-weight: 600;
  margin: 0;
}
@media only screen and (min-width: 48rem) {
  .m-featured-article__title {
    letter-spacing: 0.5px;
    font-size: 2.25em;
    max-width: 80%;
  }
}

.m-featured-article__timestamp {
  display: flex;
  align-items: center;
  color: #fff;
  letter-spacing: 0.2px;
  font-size: 0.875rem;
}
.m-featured-article__timestamp span:nth-child(2) {
  padding: 0 10px;
}

/* ========== Hero slider (feature-slider) – responsive scroll-snap ========== */

/* Split cards inside hero */
.home-template .hero-slider .split-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.home-template .hero-slider .split-card-media {
  width: 100%;
  aspect-ratio: 739 / 332;
  overflow: hidden;
  flex-shrink: 0;
}
.home-template .hero-slider .split-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-template .hero-slider .split-card-body {
  padding: 16px 20px 24px;
  display: grid;
  gap: 0;
  flex: 1;
  min-width: 0;
}
.home-template .hero-slider .split-card-title {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 500;
  margin: 0;
  color: var(--text-title);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 8px 0 5px;
}
@media (max-width: 575px) {
  .home-template .hero-slider .split-card-title {
    font-size: 20px;
  }
}
.home-template .hero-slider .split-card-meta {
  font-size: 0.875rem;
  color: #667085;
}
.home-template .hero-slider .kicker {
  font-size: 0.85rem;
  color: #475569;
}

/* Grid: slider left, ad right */
.home-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 30px 0 16px;
  background: #fff;
  padding: 30px;
  border-radius: 30px;
}
@media (max-width: 768px) {
  .home-hero-grid {
    padding: 20px;
  }
}

.home-hero-grid .home-hero-left {
  min-height: 0;
  background: #fff;
}

/* About card (right side) – same look as hero split-card */
.home-hero-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.about-us-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  /* border: 1px solid rgba(0, 0, 0, 0.08); */
  border-radius: 30px 30px 0 0; 
  overflow: hidden;
  color: inherit;
}
.about-us-card__media,
.about-us-card .split-card-media {
  width: 100%;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  flex-shrink: 0;
}
.about-us-card__media img,
.about-us-card .split-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-us-card__body,
.about-us-card .split-card-body {
  padding: 0.75rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}
.about-us-card__title,
.about-us-card .split-card-title {
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 500;
  margin: 0;
  color: var(--text-title);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.about-us-card__excerpt,
.about-us-card .split-card-meta {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #667085;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 62rem) {
  .home-hero-grid {
    grid-template-columns: 2fr 1fr;
  }
}

/* Hero slider container */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
}

/* Horizontal scroll strip – one card per view on all breakpoints */
.hero-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 1rem;
  -webkit-overflow-scrolling: touch;
}
.hero-strip::-webkit-scrollbar {
  display: none;
}
.hero-strip {
  scrollbar-width: none;
}
.hero-card {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-width: 0;
}

/* Prev/Next over the strip – centered vertically */
.hero-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 0.5rem;
  z-index: 2;
}
.hero-nav {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.hero-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.hero-nav svg, 
.strip-nav svg,
.slab-nav svg
 {
  fill: none !important;
  width: 18px;
  height: 18px;
}



/* Responsive: smaller nav on small screens */
@media (max-width: 480px) {
  .hero-nav {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }
  .hero-controls {
    padding: 0 0.25rem;
  }
}

/* Card hover */
@media (hover: hover) {
  .home-template .hero-slider .split-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }
  .home-template .hero-slider .split-card:hover {
    transform: translateY(-2px);
    /* box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1); */
  }
}

/* ========== Post strip (feature-post-strip) – responsive slider ========== */

.strip-section {
  margin: 60px 0 0;
  padding: 30px;
  border-radius: 30px;
  background: rgba(16, 73, 49, 0.06);
}
.strip-section.section--teal {
  background: rgba(16, 73, 49, 0.06);
}

.strip-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}
.strip-header h2 {
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem);
  line-height: 1.2;
  margin: 0;
  color: #0f172a;
  flex: 1;
  min-width: 0;
}
.strip-header .button.small {
  flex-shrink: 0;
}
.strip-controls {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.strip-nav {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.strip-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}
@media (max-width: 768px) {
  .strip-section {
    padding: 20px;
  }
}



@media (max-width: 480px) {
  .strip-nav {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
}

/* Horizontal scroll strip – responsive card width */
.post-strip {
  display: grid;
  grid-auto-flow: column;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.25rem;
}
.post-strip::-webkit-scrollbar {
  display: none;
}
.post-strip {
  scrollbar-width: none;
}

/* Card width: 3 on large, 2 on tablet, 1 on small */
.post-strip {
  grid-auto-columns: calc((100% - 2rem) / 3);
}
@media (max-width: 1024px) {
  .post-strip {
    grid-auto-columns: calc((100% - 1rem) / 2);
  }
}
@media (max-width: 640px) {
  .post-strip {
    grid-auto-columns: 100%;
  }
}

.strip-card {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-width: 0;
}

/* Strip cards: compact split card */
.strip-section .split-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.strip-section .split-card-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  flex-shrink: 0;
}
.strip-section .split-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.strip-section .split-card-body {
  padding: 16px 20px 24px;
  display: grid;
  gap: 0;
  min-width: 0;
}
.strip-section .split-card-title {
  font-size: 20px;
  line-height: 1.4;
  margin: 0 0 12px;
  font-weight: 600;
  color: #1f2937;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.strip-section .split-card-meta {
  font-size: 0.8rem;
  color: #667085;
}
.strip-section .kicker {
  font-size: 0.8rem;
  color: #475569;
}

@media (hover: hover) {
  .strip-section .split-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }
  .strip-section .split-card:hover {
    transform: translateY(-2px);
    /* box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); */
  }
}

/* ========== Feature slab rectangle – responsive slider ========== */

.feature-section.feature-slab-section {
  margin: 60px 0 0;
}

.feature-slab-section .section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 24px;
}
.feature-slab-section .section-header h2 {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
  color: var(--text-title);
  flex: 1;
  min-width: 0;
}

@media (max-width: 575px) {
  .feature-slab-section .section-header h2 {
    font-size: 24px;
  }
}


.feature-slab-section .section-header .button.small {
  flex-shrink: 0;
}
.feature-slab-section .slab-controls {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.feature-slab-section .slab-nav {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feature-slab-section .slab-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}
@media (max-width: 480px) {
  .feature-slab-section .slab-nav {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
}

.slab-strip-wrap {
  position: relative;
  margin: 0 -0.25rem;
}

.slab-strip {
  display: grid;
  grid-auto-flow: column;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.25rem;
}
.slab-strip::-webkit-scrollbar {
  display: none;
}
.slab-strip {
  scrollbar-width: none;
}

/* Responsive: 3 cols → 2 → 1 */
.slab-strip {
  grid-auto-columns: calc((100% - 2rem) / 3);
}
@media (max-width: 1024px) {
  .slab-strip {
    grid-auto-columns: calc((100% - 1rem) / 2);
  }
}
@media (max-width: 640px) {
  .slab-strip {
    grid-auto-columns: 100%;
  }
}

.slab-card {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-width: 0;
}

/* Slab cards */
.feature-slab-section .slab-card.split-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.feature-slab-section .slab-card .split-card-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  flex-shrink: 0;
}
.feature-slab-section .slab-card .split-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.feature-slab-section .slab-card .split-card-body {
  padding: 16px 20px 24px;
  display: grid;
  gap: 0;
  min-width: 0;
}
.feature-slab-section .slab-card .split-card-title {
  font-size: 20px;
  line-height: 1.4;
  margin: 0 0 12px;
  font-weight: 600;
  color: #1f2937;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feature-slab-section .slab-card .split-card-meta {
  font-size: 0.85rem;
  color: #667085;
}
.feature-slab-section .slab-card .kicker {
  font-size: 0.85rem;
  color: #475569;
}

@media (hover: hover) {
  .feature-slab-section .slab-card.split-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }
  .feature-slab-section .slab-card.split-card:hover {
    transform: translateY(-2px);
    /* box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); */
  }
}

/* ========== Feature slab square – responsive slider ========== */

.feature-section.feature-slab-square {
  margin: 60px 0 0;
}

.feature-slab-square .section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 24px;
}
.feature-slab-square .section-header h2 {
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
  color: var(--text-title);
  flex: 1;
  min-width: 0;
}
@media (max-width: 575px) {
  .feature-slab-square .section-header h2 {
    font-size: 24px;
  }
}
.feature-slab-square .section-header .button.small {
  flex-shrink: 0;
}
.feature-slab-square .square-strip-controls {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.feature-slab-square .square-strip-nav {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feature-slab-square .square-strip-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}
@media (max-width: 480px) {
  .feature-slab-square .square-strip-nav {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
}

.square-strip-wrap {
  position: relative;
  margin: 0 -0.25rem;
}

.square-strip {
  display: grid;
  grid-auto-flow: column;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.25rem;
}
.square-strip::-webkit-scrollbar {
  display: none;
}
.square-strip {
  scrollbar-width: none;
}

/* Responsive: 4 cols → 2 → 1 (limit is 4 posts) */
.square-strip {
  grid-auto-columns: calc((100% - 3rem) / 4);
}
@media (max-width: 1024px) {
  .square-strip {
    grid-auto-columns: calc((100% - 1rem) / 2);
  }
}
@media (max-width: 640px) {
  .square-strip {
    grid-auto-columns: 100%;
  }
}

.square-strip-card {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-width: 0;
}

/* Square cards with image */
.feature-slab-square .square-card.split-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.feature-slab-square .square-card .split-card-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  flex-shrink: 0;
}
.feature-slab-square .square-card .split-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.feature-slab-square .square-card .split-card-body {
  padding: 16px 20px 24px;
  display: grid;
  gap: 0;
  min-width: 0;
}
.feature-slab-square .square-card .split-card-title {
  font-size: 20px;
  line-height: 1.4;
  margin: 0 0 12px;
  font-weight: 600;
  color: var(--text-title);
}
.feature-slab-square .square-card .split-card-meta {
  font-size: 0.85rem;
  color: #667085;
}

/* Square items (text-only, no image) */
.feature-slab-square .square-item {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}
.feature-slab-square .square-item a {
  text-decoration: none;
  color: inherit;
}
.feature-slab-square .square-item .square-title {
  font-size: 1rem;
  line-height: 1.3;
  margin: 0 0 0.25rem;
  font-weight: 600;
  color: #1f2937;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feature-slab-square .square-item .square-meta {
  font-size: 0.85rem;
  color: #667085;
  margin: 0;
}

@media (hover: hover) {
  .feature-slab-square .square-card.split-card,
  .feature-slab-square .square-item {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }
  .feature-slab-square .square-card.split-card:hover,
  .feature-slab-square .square-item:hover {
    transform: translateY(-2px);
    /* box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); */
  }
}
