.dwca-page,
.dwca-page * {
  box-sizing: border-box;
}

.dwca-page {
  --dw-navy: #1d2951;
  --dw-dark: #101a36;
  --dw-blue: #5dafdf;
  --dw-gold: #cc7800;
  --dw-gold-dark: #9c5b01;
  --dw-white: #ffffff;
  --dw-text: #26324f;
  background: #f7f9fc;
  color: var(--dw-text);
  font-family: "Poppins", Arial, sans-serif;
}

.dwca-shell {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
}

.dwca-hero {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  display: flex;
  align-items: center;
  padding: 120px 0 78px;
  background:
    linear-gradient(90deg, rgba(7,14,32,.96), rgba(15,27,56,.80)),
    url('/wp-content/uploads/2026/07/de-wet-van-der-watt-articles-desktop.png') center/cover no-repeat;
  color: var(--dw-white);
}

.dwca-hero::after {
  content: "";
  position: absolute;
  right: -125px;
  bottom: -170px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(204,120,0,.25);
  transform: rotate(45deg);
}

.dwca-hero__inner {
  position: relative;
  z-index: 2;
}

.dwca-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 26px;
  color: rgba(255,255,255,.58);
  font-size: .7rem;
}

.dwca-breadcrumb a {
  color: rgba(255,255,255,.76);
  text-decoration: none;
}

.dwca-breadcrumb a:hover {
  color: var(--dw-blue);
}

.dwca-eyebrow {
  margin: 0 0 12px;
  color: var(--dw-blue);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.dwca-hero h1 {
  max-width: 850px;
  margin: 0 0 18px;
  color: var(--dw-white);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.1rem, 7vw, 6rem);
  font-weight: 600;
  line-height: .94;
  letter-spacing: -.035em;
}

.dwca-intro {
  max-width: 720px;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 1rem;
  line-height: 1.75;
}

.dwca-content {
  padding: 54px 0 85px;
}

.dwca-category-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin: 0 0 38px;
  padding: 12px;
  border: 1px solid rgba(29,41,81,.09);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(16,26,54,.07);
}

.dwca-category-bar a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid rgba(29,41,81,.13);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--dw-navy);
  font-size: .72rem;
  font-weight: 600;
  text-decoration: none;
  transition: .2s ease;
}

.dwca-category-bar a:hover,
.dwca-category-bar a.is-active {
  transform: translateY(-2px);
}

.dwca-category-bar a:hover {
  border-color: var(--dw-blue);
  background: rgba(93,175,223,.08);
}

.dwca-category-bar a.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--dw-gold), var(--dw-gold-dark));
  color: #fff;
  box-shadow: 0 9px 22px rgba(156,91,1,.22);
}

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

.dwca-card {
  overflow: hidden;
  border: 1px solid rgba(29,41,81,.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(16,26,54,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.dwca-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 55px rgba(16,26,54,.13);
}

.dwca-card__image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e9eef5;
}

.dwca-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.dwca-card:hover .dwca-card__image img {
  transform: scale(1.035);
}

.dwca-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #dfe7f1, #f7f9fc);
}

.dwca-card__body {
  padding: 23px 22px 25px;
}

.dwca-card__meta {
  margin: 0 0 10px;
  color: var(--dw-gold);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dwca-card__title {
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.05;
}

.dwca-card__title a {
  color: var(--dw-navy);
  text-decoration: none;
}

.dwca-card__excerpt {
  margin-bottom: 18px;
  color: rgba(38,50,79,.72);
  font-size: .8rem;
  line-height: 1.7;
}

.dwca-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dw-gold-dark);
  font-size: .74rem;
  font-weight: 700;
  text-decoration: none;
}

.dwca-card__link:hover {
  color: var(--dw-blue);
}

.dwca-pagination {
  margin-top: 45px;
}

.dwca-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.dwca-pagination .page-numbers {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border: 1px solid rgba(29,41,81,.13);
  border-radius: 8px;
  background: #fff;
  color: var(--dw-navy);
  font-size: .75rem;
  font-weight: 600;
  text-decoration: none;
}

.dwca-pagination .page-numbers.current,
.dwca-pagination .page-numbers:hover {
  border-color: transparent;
  background: linear-gradient(135deg, var(--dw-gold), var(--dw-gold-dark));
  color: #fff;
}

.dwca-empty {
  padding: 55px 25px;
  border: 1px dashed rgba(29,41,81,.18);
  border-radius: 14px;
  background: #fff;
  text-align: center;
}

.dwca-empty h2 {
  margin: 0 0 8px;
  color: var(--dw-navy);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
}

.dwca-empty p {
  margin: 0 0 18px;
}

.dwca-empty a {
  color: var(--dw-gold-dark);
  font-weight: 700;
}

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

@media (max-width: 640px) {
  .dwca-shell {
    width: calc(100% - 28px);
  }

  .dwca-hero {
    min-height: 390px;
    padding: 105px 0 65px;
  }

  .dwca-hero h1 {
    font-size: clamp(3rem, 14vw, 4.35rem);
  }

  .dwca-category-bar {
    justify-content: flex-start;
  }

  .dwca-category-bar a {
    flex: 1 1 calc(50% - 9px);
  }

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

@media (max-width: 420px) {
  .dwca-category-bar a {
    flex-basis: 100%;
  }
}
