.wg-main {
  background:
    radial-gradient(120% 60% at 0% -10%, #fff6cc 0%, rgba(255, 246, 204, 0) 55%),
    radial-gradient(80% 50% at 100% -20%, #ebf6ff 0%, rgba(235, 246, 255, 0) 60%),
    #fff;
}

.wg-hero {
  padding-top: 30px;
  padding-bottom: 14px;
}

.wg-hero-grid {
  display: grid;
  gap: 22px;
}

.wg-hero-text {
  margin-top: 14px;
  color: var(--muted);
  max-width: 740px;
}

.wg-hero-sub {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 680px;
}

.wg-hero-image {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(14, 20, 35, 0.08);
}

.wg-hero-image img {
  width: 100%;
  max-height: 350px;
  object-fit: cover;
}

.wg-hero-badges {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wg-hero-badges span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #dbe1ec;
  color: #1d2230;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
}

.wg-directory {
  padding-top: 18px;
}

.wg-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0f3f8;
  border: 1px solid #dbe1ec;
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

.wg-search-icon {
  flex-shrink: 0;
  color: #5c6472;
}

.wg-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: #111319;
  outline: none;
  min-width: 0;
}

.wg-search-input::placeholder {
  color: #8892a4;
}

.wg-search-input::-webkit-search-cancel-button {
  display: none;
}

.wg-search-clear {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dbe1ec;
  border: none;
  border-radius: 999px;
  width: 26px;
  height: 26px;
  cursor: pointer;
  color: #5c6472;
  transition: background 0.15s;
}

.wg-search-clear:hover {
  background: #c8d0de;
}

.wg-result-count {
  font-size: 13px;
  color: #5c6472;
  font-weight: 600;
  margin-bottom: 10px;
  min-height: 18px;
}

.wg-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.wg-filter {
  appearance: none;
  border: 1px solid #ced6e4;
  background: #fff;
  color: #1a2030;
  border-radius: 999px;
  padding: 7px 12px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.wg-filter.is-active,
.wg-filter:hover,
.wg-filter:focus-visible {
  background: var(--yellow);
  border-color: #e5bb00;
  color: #111319;
}

.wg-grid {
  display: grid;
  gap: 16px;
}

.wg-grid-scroll-wrap {
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: thin;
  scrollbar-color: #dbe1ec transparent;
  padding-bottom: 8px;
}

.wg-grid-scroll-wrap .wg-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
}

.wg-grid-scroll-wrap .wg-card {
  flex: 0 0 clamp(260px, 30vw, 320px);
}

.wg-card {
  background: #fff;
  border: 1px solid #dbe1ec;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(10, 19, 36, 0.05);
}

.wg-card-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

.wg-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.wg-card:hover .wg-card-image img,
.wg-card:focus-within .wg-card-image img {
  transform: scale(1.03);
}

.wg-cat-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--yellow, #ffd600);
  color: #111319;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-heading);
  padding: 4px 10px;
  border-radius: 999px;
  pointer-events: none;
  line-height: 1.4;
}

.wg-cat-pill-left {
  right: auto;
  left: 10px;
}

.wg-new-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #d4f7e0;
  color: #167a40;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 6px;
}

.wg-card-body {
  padding: 14px;
}

.wg-card-meta {
  margin: 0 0 8px;
  color: #5f6880;
  font-size: 13px;
  font-weight: 600;
}

.wg-card h2,
.wg-card h3 {
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  margin-bottom: 9px;
}

.wg-card h2 a,
.wg-card h3 a {
  text-decoration: none;
}

.wg-card h2 a:hover,
.wg-card h2 a:focus-visible,
.wg-card h3 a:hover,
.wg-card h3 a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wg-card p:last-child {
  color: var(--muted);
}

.wg-breadcrumb {
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #56607a;
  font-size: 13px;
}

.wg-breadcrumb a {
  text-decoration: none;
}

.wg-breadcrumb a:hover,
.wg-breadcrumb a:focus-visible {
  text-decoration: underline;
}

.wg-article-hero {
  padding-top: 26px;
  padding-bottom: 14px;
}

.wg-article-head {
  display: grid;
  gap: 16px;
}

.wg-article-copy h1 {
  margin-top: 4px;
}

.wg-updated {
  margin-top: 10px;
  color: #6f778b;
  font-size: 13px;
}

.wg-article-main-image {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(14, 20, 35, 0.08);
}

.wg-article-main-image img {
  width: 100%;
  max-height: 390px;
  object-fit: cover;
}

.wg-article-body {
  padding-top: 12px;
}

.wg-article-grid {
  display: grid;
  gap: 18px;
}

.wg-article-content {
  display: grid;
  gap: 20px;
}

.wg-article-content.wg-prose {
  display: block;
}

.wg-article-content section {
  background: #fff;
  border: 1px solid #dbe1ec;
  border-radius: 16px;
  padding: 16px;
}

.wg-article-content h2 {
  margin-bottom: 10px;
}

.wg-article-mid-image {
  margin: 2em 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #dbe1ec;
  box-shadow: 0 6px 20px rgba(10, 19, 36, 0.07);
}

.wg-article-mid-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.wg-image-row {
  display: grid;
  gap: 12px;
}

.wg-image-row figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #dbe1ec;
  box-shadow: 0 6px 18px rgba(11, 19, 34, 0.08);
}

.wg-image-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.wg-faq {
  display: grid;
  gap: 8px;
  margin-top: 2em;
  padding-top: 1.5em;
  border-top: 1px solid #dbe1ec;
}

.wg-faq-item {
  border: 1px solid #dbe1ec;
  border-radius: 12px;
  background: #fbfcff;
  overflow: hidden;
}

.wg-faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-heading);
  padding: 12px 14px;
}

.wg-faq-item summary::-webkit-details-marker {
  display: none;
}

.wg-faq-item p {
  padding: 0 14px 12px;
  color: var(--muted);
}

.wg-aside {
  display: grid;
  gap: 12px;
  align-self: start;
}

.wg-infobox {
  border-radius: 14px;
  padding: 14px;
  border: 1px solid #dbe1ec;
}

.wg-infobox h3 {
  margin-bottom: 9px;
}

.wg-infobox ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.wg-infobox p {
  color: var(--muted);
}

.wg-infobox a {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  font-weight: 700;
}

.wg-infobox-light a {
  display: block;
  margin-top: 6px;
  color: #152748;
}

.wg-infobox-yellow {
  background: linear-gradient(160deg, #fff8d8 0%, #fffef5 100%);
}

.wg-infobox-blue {
  background: linear-gradient(150deg, #eaf4ff 0%, #f8fbff 100%);
}

.wg-infobox-light {
  background: #fff;
}

@media (min-width: 740px) {
  .wg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wg-image-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wg-hero {
    padding-top: 36px;
  }
}

@media (min-width: 1024px) {
  .wg-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 470px);
    align-items: center;
    gap: 26px;
  }

  .wg-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wg-card-body {
    padding: 15px;
  }

  .wg-article-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    align-items: center;
  }

  .wg-article-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
  }

  .wg-aside {
    position: sticky;
    top: calc(var(--header-height-desktop) + 14px);
  }

  .wg-featured-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
  }

  .wg-featured-image {
    border-radius: 18px 0 0 18px;
  }

  .wg-featured-image img {
    max-height: 340px;
  }

  .wg-featured-body {
    padding: 28px 24px;
  }

  .wg-featured-body h2 {
    font-size: 1.6rem;
  }
}

/* Featured article card */
.wg-featured-section {
  padding-top: 8px;
  padding-bottom: 0;
}

.wg-featured-card {
  display: grid;
  grid-template-columns: 1fr;
  background: #fff;
  border: 1px solid #dbe1ec;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(10, 19, 36, 0.06);
}

.wg-featured-image {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.wg-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.wg-featured-card:hover .wg-featured-image img {
  transform: scale(1.03);
}

.wg-featured-body {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-start;
}

.wg-featured-body h2 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 800;
  margin: 0;
}

.wg-featured-body h2 a {
  text-decoration: none;
  color: #111319;
}

.wg-featured-body h2 a:hover,
.wg-featured-body h2 a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wg-featured-body p {
  color: #5c6472;
  margin: 0;
}

.wg-featured-link {
  display: inline-block;
  margin-top: 6px;
  font-weight: 700;
  color: #111319;
  text-decoration: none;
  font-size: 0.95rem;
}

.wg-featured-link:hover,
.wg-featured-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Prose styles for article body */
.wg-prose {
  display: block;
}

.wg-prose p {
  line-height: 1.75;
  font-size: 1rem;
  margin-bottom: 1.2em;
  color: #111319;
}

.wg-prose h2 {
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 0.5em;
  color: #111319;
}

.wg-prose h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 1.5em;
  margin-bottom: 0.4em;
  color: #111319;
}

.wg-prose ul,
.wg-prose ol {
  padding-left: 1.5em;
  margin-bottom: 1.2em;
}

.wg-prose li {
  margin-bottom: 0.4em;
  line-height: 1.6;
}

.wg-prose strong {
  font-weight: 700;
}

.wg-prose a {
  color: #0077cc;
}

.wg-prose a:hover {
  text-decoration: none;
}

.wg-prose img {
  width: 100%;
  border-radius: 14px;
  margin: 1.5em 0;
}

.wg-prose blockquote {
  border-left: 3px solid var(--yellow, #ffd600);
  padding-left: 1em;
  color: #5c6472;
  margin: 1.2em 0;
}
