.portal-page {
  min-width: 320px;
  background:
    radial-gradient(circle at 10% 46%, rgba(56, 125, 57, .07), transparent 24%),
    radial-gradient(circle at 90% 58%, rgba(56, 125, 57, .06), transparent 22%),
    var(--ivory);
}

.portal-header {
  position: relative;
  z-index: 10;
  color: #fff;
  background: var(--green);
  overflow: hidden;
}

.portal-header::after {
  content: "";
  position: absolute;
  right: -54px;
  bottom: -98px;
  width: 430px;
  height: 215px;
  opacity: .12;
  background: url("../images/10008.png") center / cover no-repeat;
  border-radius: 50%;
}

.portal-header-inner {
  position: relative;
  z-index: 1;
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.portal-brand {
  flex: 0 0 auto;
}

.portal-brand img {
  width: 310px;
  max-height: 66px;
  object-fit: contain;
  object-position: left center;
}

.portal-header-line {
  width: 1px;
  height: 42px;
  background: rgba(255, 255, 255, .4);
}

.portal-header h1 {
  font-size: clamp(25px, 2.4vw, 38px);
  font-weight: 500;
  letter-spacing: .06em;
}

.portal-carousel {
  position: relative;
  z-index: 2;
  padding: 0 24px;
}

.portal-carousel-viewport {
  position: relative;
  width: min(990px, 100%);
  height: clamp(232px, 23vw, 322px);
  margin: 0 auto;
  overflow: hidden;
  background: #dce8e0;
  box-shadow: 0 18px 50px rgba(29, 69, 34, .14);
}

.portal-carousel-track {
  position: relative;
  height: 100%;
}

.portal-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .65s ease, visibility .65s ease;
}

.portal-slide.active {
  opacity: 1;
  visibility: visible;
}

.portal-slide-backdrop {
  position: absolute;
  inset: -28px;
  background-position: center;
  background-size: cover;
  filter: blur(20px) saturate(.7);
  transform: scale(1.08);
}

.portal-slide-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(22, 74, 34, .28);
}

.portal-image-one { background-image: url("../images/intro/10001.jpg"); }
.portal-image-two { background-image: url("../images/intro/10002.jpg"); }
.portal-image-three { background-image: url("../images/intro/10003.jpg"); }

.portal-slide > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.portal-carousel-button {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: rgba(32, 92, 43, .8);
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  transform: translateY(-50%);
  transition: .2s ease;
}

.portal-carousel-button:hover {
  background: var(--green-dark);
  transform: translateY(-50%) scale(1.06);
}

.portal-carousel-button.prev { left: 24px; }
.portal-carousel-button.next { right: 24px; }
.portal-carousel-button img { width: 26px; }

.portal-carousel-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 18px;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.portal-carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  background: rgba(255, 255, 255, .75);
  border: 2px solid rgba(56, 125, 57, .7);
  border-radius: 50%;
  transition: .2s ease;
}

.portal-carousel-dots button.active {
  width: 30px;
  background: var(--green);
  border-radius: 10px;
}

.portal-results {
  position: relative;
  padding: 34px 0 56px;
}

.portal-results::before {
  content: "";
  position: absolute;
  top: 78px;
  left: 50%;
  width: min(990px, 88vw);
  height: 218px;
  border: 1px solid rgba(56, 125, 57, .09);
  transform: translateX(-50%) rotate(-2deg);
  pointer-events: none;
}

.portal-section-heading {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
  text-align: center;
}

.portal-section-heading > span {
  display: none;
}

.portal-section-heading h2 {
  position: relative;
  margin-top: 0;
  color: var(--green-dark);
  font-size: clamp(28px, 2.4vw, 38px);
}

.portal-section-heading h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin: 8px auto 0;
  background: var(--green);
}

.portal-section-heading p {
  margin-top: 16px;
  color: var(--muted);
}

.portal-result-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 990px;
  margin: 0 auto;
  gap: 14px;
}

.portal-result-card {
  position: relative;
  min-height: 160px;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  overflow: hidden;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(31, 72, 35, .09);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.portal-result-card::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -150px;
  width: 240px;
  height: 240px;
  background: rgba(56, 125, 57, .055);
  border-radius: 50%;
  transition: transform .35s ease;
}

.portal-result-card:hover {
  transform: translateY(-8px);
  border-color: #a3c1a5;
  box-shadow: 0 24px 58px rgba(31, 72, 35, .15);
}

.portal-result-card:hover::after {
  transform: scale(1.25);
}

.portal-result-number {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .88);
  background: var(--green);
  font: 700 30px/1 Georgia, serif;
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: .08em;
}

.portal-result-content {
  position: relative;
  z-index: 1;
  padding: 24px 26px 20px;
}

.portal-result-label {
  color: #79927c;
  font-size: 14px;
}

.portal-result-content h3 {
  margin-top: 8px;
  color: var(--green-dark);
  font-size: 23px;
  line-height: 1.38;
}

.portal-result-content p {
  max-width: 520px;
  margin-top: 14px;
  color: var(--muted);
}

.portal-result-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  color: var(--green);
  font-weight: 700;
}

.portal-result-action img {
  width: 20px;
  transition: transform .2s ease;
}

.portal-result-card:hover .portal-result-action img {
  transform: translateX(6px);
}

@media (max-width: 900px) {
  .portal-header-inner { min-height: 84px; gap: 18px; }
  .portal-brand img { width: 240px; }
  .portal-header h1 { font-size: 25px; }
  .portal-carousel { padding-inline: 0; }
  .portal-carousel-viewport { height: 280px; }
  .portal-result-card { grid-template-columns: 78px minmax(0, 1fr); }
  .portal-result-content { padding-inline: 28px; }
}

@media (max-width: 680px) {
  .portal-header-inner {
    min-height: 104px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding-block: 18px;
  }
  .portal-header-line { display: none; }
  .portal-brand img { width: 225px; max-height: 48px; }
  .portal-header h1 { font-size: 21px; letter-spacing: .02em; }
  .portal-carousel-viewport { height: 230px; }
  .portal-carousel-button { width: 42px; height: 42px; }
  .portal-carousel-button.prev { left: 12px; }
  .portal-carousel-button.next { right: 12px; }
  .portal-results { padding: 34px 0 52px; }
  .portal-section-heading { margin-bottom: 18px; }
  .portal-section-heading p { font-size: 15px; }
  .portal-result-grid { grid-template-columns: 1fr; gap: 18px; }
  .portal-result-card { min-height: 168px; grid-template-columns: 66px minmax(0, 1fr); }
  .portal-result-number { font-size: 28px; }
  .portal-result-content { padding: 24px 20px 22px; }
  .portal-result-content h3 { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .portal-slide,
  .portal-result-card,
  .portal-result-card::after,
  .portal-carousel-button { transition: none; }
}
