.wg-hero-carousel {
  position: relative;
  min-height: clamp(480px, 72vh, 760px);
  overflow: hidden;
  color: #fff;
  background: #171411;
}
.wg-hero-track {
  min-height: inherit;
}
.wg-hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  opacity: 0;
  visibility: hidden;
  transition: opacity .65s ease, visibility .65s ease;
}
.wg-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.wg-hero-media,
.wg-hero-media::after {
  position: absolute;
  inset: 0;
}
.wg-hero-media {
  overflow: hidden;
  background: #171411;
}
.wg-hero-media::after {
  content: "";
  z-index: 2;
  background: linear-gradient(90deg, rgba(10, 25, 19, .92), rgba(20, 19, 16, .54) 55%, rgba(20, 19, 16, .24));
}
.wg-hero-media img,
.wg-hero-media video,
.wg-hero-media iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: cover;
  transform: scale(1.01);
}
.wg-hero-media iframe {
  pointer-events: none;
}
.wg-hero-content {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0 78px;
}
.wg-hero-content.center { text-align: center; }
.wg-hero-content.center > * { margin-left: auto; margin-right: auto; }
.wg-hero-content.right { text-align: right; }
.wg-hero-content.right > * { margin-left: auto; }
.wg-hero-content h1 {
  max-width: 900px;
  margin: 8px 0 18px;
  color: #fff;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1;
}
.wg-hero-content p {
  max-width: 690px;
  margin: 0 0 26px;
  color: rgba(255,255,255,.84);
  font-size: clamp(17px, 2vw, 21px);
}
.wg-hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 26px;
  width: min(1180px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  transform: translateX(-50%);
}
.wg-hero-controls button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 50%;
  color: #fff;
  background: rgba(10,25,19,.58);
  font-size: 22px;
  cursor: pointer;
}
.wg-hero-dots {
  display: flex;
  gap: 7px;
}
.wg-hero-dots button {
  width: 10px;
  height: 10px;
  min-height: 10px;
  padding: 0;
  background: rgba(255,255,255,.52);
}
.wg-hero-dots button.is-active {
  width: 28px;
  border-radius: 999px;
  background: #f0c45b;
}
.portal-record-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.portal-record {
  overflow: hidden;
  border: 1px solid rgba(37,33,29,.12);
  border-radius: 8px;
  background: rgba(255,253,248,.94);
  box-shadow: 0 12px 32px rgba(80,54,25,.08);
}
.portal-record-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e7dccb;
}
.portal-record-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portal-record-body { padding: 18px; }
.portal-record-body h3 { margin: 5px 0 9px; font-size: 21px; }
.portal-record-body p { margin: 0; color: #6f665d; }
.portal-detail-record { max-width: 1080px; margin: 0 auto; }
.portal-detail-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  background: #171411;
}
.portal-detail-media figure,
.portal-detail-video {
  min-height: 280px;
  margin: 0;
  overflow: hidden;
  background: #090807;
}
.portal-detail-media img,
.portal-detail-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  object-fit: contain;
}
.portal-detail-media > :only-child { grid-column: 1 / -1; }
.portal-data-state {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed rgba(37,33,29,.2);
  border-radius: 8px;
  color: #6f665d;
  background: rgba(255,253,248,.7);
  text-align: center;
}
.portal-ad-section {
  display: none;
  padding: 18px 0;
  background: rgba(255,253,248,.86);
}
.portal-ad-section.has-ads { display: block; }
.portal-ad-slot {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}
.portal-ad-carousel { overflow: hidden; }
.portal-ad-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .45s ease;
}
.portal-ad-item {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(37,33,29,.12);
  border-radius: 8px;
  color: #171411;
  background: #fff;
  box-shadow: 0 8px 24px rgba(37,33,29,.08);
}
.portal-ad-item > a {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.portal-ad-item img,
.portal-ad-item video,
.portal-ad-item iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}
.portal-ad-label {
  position: absolute;
  z-index: 2;
  top: 5px;
  right: 7px;
  padding: 2px 5px;
  color: #fff;
  background: rgba(0,0,0,.64);
  font-size: 10px;
}
.portal-ad-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  height: 100%;
  padding: 10px clamp(14px, 2vw, 22px);
  background: linear-gradient(110deg, #fff 0 72%, #f0c45b 72% 100%);
  text-align: left;
}
.portal-ad-copy {
  min-width: 0;
  overflow: hidden;
}
.portal-ad-copy strong {
  display: block;
  margin-bottom: 4px;
  color: #173b2b;
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.15;
}
.portal-ad-body {
  color: #514a43;
  font-size: clamp(11px, 1.2vw, 14px);
  line-height: 1.25;
}
.portal-ad-body p,
.portal-ad-body ul,
.portal-ad-body ol { margin: 0; }
.portal-ad-body ul,
.portal-ad-body ol { padding-left: 18px; }
.portal-ad-copy small {
  display: block;
  margin-top: 5px;
  color: #766d64;
  font-size: 10px;
  line-height: 1.1;
}
.portal-ad-action {
  flex: 0 0 auto;
  padding: 10px 16px;
  border-radius: 6px;
  color: #fff;
  background: #173b2b;
  font-weight: 700;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .wg-hero-carousel { min-height: 560px; }
  .wg-hero-content { padding-bottom: 96px; }
  .wg-hero-media::after { background: linear-gradient(180deg, rgba(10,25,19,.42), rgba(10,25,19,.94)); }
  .portal-record-grid { grid-template-columns: 1fr; }
  .portal-detail-media { grid-template-columns: 1fr; }
  .portal-ad-text {
    gap: 10px;
    padding: 12px;
    background: #fff;
  }
  .portal-ad-action { padding: 8px 10px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .wg-hero-slide { transition: none; }
}
