/* FROM THE ISLAND archive */
body.category-news .l-main > .l-section:first-child {
  position: relative;
  padding-top: 740px;
  overflow: hidden;
  background: #fff;
}

body.category-news .l-main > .l-section:first-child::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 720px;
  background:
    linear-gradient(rgba(0, 0, 0, .28), rgba(0, 0, 0, .08)),
    url("https://www.az-dip.com/wp-content/uploads/2025/06/IMG_5475.jpeg") center 45% / cover no-repeat;
  z-index: 0;
}

body.category-news .l-main > .l-section:first-child::after {
  content: "";
  position: absolute;
  top: 650px;
  left: -5%;
  width: 110%;
  height: 110px;
  background: #fff;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  z-index: 1;
}

body.category-news .l-main > .l-section:first-child .l-section-h {
  position: relative;
  z-index: 2;
}

body.category-news .l-main h1.post_title {
  margin: 0 0 3rem;
  color: #1a1a1a;
  font-family: "Permanent Marker", cursive;
  text-align: center;
  text-transform: uppercase;
  text-shadow: none;
}

body.category-news .w-grid-list {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 2rem !important;
}

body.category-news .w-grid-item {
  width: auto !important;
}

body.category-news .w-grid-item-h {
  height: 100%;
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .11);
  transition: transform .2s ease, box-shadow .2s ease;
}

body.category-news .w-grid-item-h:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .16);
}

body.category-news .post_image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

body.category-news .w-grid-item:not(.has-post-thumbnail) .w-grid-item-h::before {
  content: "";
  display: block;
  aspect-ratio: 4 / 3;
  background: url("https://www.az-dip.com/wp-content/uploads/2024/07/2272556697-scaled.jpg") center / cover no-repeat;
}

body.category-news .w-grid-item h2.post_title {
  margin: 0;
  padding: 1rem 1.1rem 1.25rem;
  color: #286fba;
  font-family: "Permanent Marker", cursive;
  font-size: 1.3rem;
  line-height: 1.25;
}

/* Shared article template */
@media (min-width: 1025px) {
  body.single-post .l-main > .l-section:first-child {
    min-height: 720px;
  }
}

body.single-post .l-main > .l-section:first-child {
  margin-bottom: 100px;
}

body.single-post .l-main > .l-section:first-child .l-section-h,
body.single-post .l-main > .l-section:first-child .wpb_column,
body.single-post .l-main > .l-section:first-child .vc_column-inner {
  position: static;
}

body.single-post .l-main > .l-section:first-child .post_title {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: -78px;
  margin: 0 auto;
  max-width: 1120px;
  color: #1a1a1a !important;
  font-family: "Permanent Marker", cursive !important;
  font-size: clamp(2rem, 4vw, 4rem) !important;
  font-weight: 700;
  line-height: 1.08;
  text-align: center !important;
  text-shadow: none;
  z-index: 2;
}

body.single-post .l-main > p,
body.single-post .l-main > h2,
body.single-post .l-main > h3,
body.single-post .l-main > h4,
body.single-post .l-main > ul,
body.single-post .l-main > ol {
  box-sizing: border-box;
  width: 100%;
  max-width: 940px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 1.25rem;
  padding-left: 1.25rem;
}

body.single-post .l-main > p,
body.single-post .l-main > ul,
body.single-post .l-main > ol {
  font-size: 1.075rem;
  line-height: 1.75;
}

@media (max-width: 1024px) {
  body.category-news .l-main > .l-section:first-child {
    padding-top: 560px;
  }

  body.category-news .l-main > .l-section:first-child::before {
    height: 540px;
  }

  body.category-news .l-main > .l-section:first-child::after {
    top: 485px;
    height: 90px;
  }

  body.category-news .w-grid-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 600px) {
  body.category-news .l-main > .l-section:first-child {
    padding-top: 440px;
  }

  body.category-news .l-main > .l-section:first-child::before {
    height: 420px;
  }

  body.category-news .l-main > .l-section:first-child::after {
    top: 375px;
    height: 70px;
  }

  body.category-news .w-grid-list {
    grid-template-columns: 1fr !important;
  }

  body.single-post .l-main > .l-section:first-child {
    margin-bottom: 85px;
  }

  body.single-post .l-main > .l-section:first-child .post_title {
    bottom: -65px;
    font-size: 2rem !important;
  }
}

body.category-news .pagination {
  margin-top: 3rem;
  text-align: center;
}

body.category-news .pagination .page-numbers {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  margin: .25rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .1);
  color: #286fba;
  font-weight: 700;
}

body.category-news .pagination .page-numbers.current,
body.category-news .pagination .page-numbers:hover {
  background: #286fba;
  color: #fff;
}