.foundationPortal {
  overflow: hidden;
}

.foundation-portal-banner {
  width: 100%;
  height: 60vw;
  min-height: 300px;
  max-height: 500px;
  position: relative;
  overflow: hidden;
  background-color: #062590;
  background-image: url("../../images/foundationPortal/banner-bg.png");
  background-repeat: no-repeat;
  background-position: center var(--portal-banner-y, 0px);
  background-size: cover;
}

.foundation-portal-banner-inner {
  height: 100%;
  display: flex;
  align-items: center;
  padding-top: 0;
  position: relative;
  z-index: 1;
}

.foundation-portal-banner-copy {
  width: 48%;
  flex: 0 0 48%;
  max-width: 620px;
  padding-top: 70px;
  box-sizing: border-box;
}

.foundationPortal .banner-inner-list-icon {
  width: auto;
  height: 100%;
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.foundationPortal .banner-inner-list-icon img {
  display: block;
  float: none;
  width: auto;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 42px rgba(0, 10, 80, 0.24));
}

.foundation-portal-banner-copy h1 {
  margin: 0 0 11px;
  font-weight: 800;
  font-size: 40px;
  color: #ffffff;
  line-height: 52px;
  letter-spacing: 3px;
}

.foundation-portal-banner-copy h2 {
  margin: 0 0 22px;
  font-weight: 700;
  font-size: 20px;
  color: #ffffff;
  line-height: 32px;
}

.foundation-portal-banner-copy p {
  margin: 0;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 32px;
}

.portal-columns {
  padding: 70px 0;
  background: #ffffff;
}

.portal-trust {
  padding: 70px 0;
  background: #f8f7ff;
}

.portal-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 276px);
  justify-content: center;
  gap: 24px;
}

.portal-trust-card {
  width: 276px;
  height: 345px;
  padding: 22px 26px 20px;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(123, 75, 247, 0.1);
  border-radius: 10px;
  border: 1px solid #e6ddff;
  box-sizing: border-box;
  text-align: center;
}

.portal-trust-card > img {
  display: block;
  float: none;
  width: 138px;
  height: 131px;
  margin: 0 auto;
  object-fit: contain;
}

.portal-trust-card h3 {
  margin: 12px 0 4px;
  font-weight: 600;
  font-size: 18px;
  color: #333333e3;
  line-height: 25px;
}

.portal-trust-card h4 {
  margin: 0;
  font-weight: bold;
  font-size: 16px;
  color: #666666;
  line-height: 22px;
}

.portal-trust-card h4::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  margin: 12px auto 17px;
  background: #8e56ff;
}

.portal-trust-card p {
  margin: 0;
  font-size: 14px;
  color: #999999;
  line-height: 24px;
  text-align: left;
}

.portal-section-heading {
  margin-bottom: 40px;
  text-align: center;
}

.portal-section-heading h2 {
  margin: 0 0 16px;
  font-weight: bold;
  font-size: 30px;
  color: #333333e3;
  line-height: 42px;
}

.portal-section-heading > p {
  margin: 0;
  font-size: 18px;
  color: #666666;
  line-height: 25px;
}

.portal-column-grid {
  display: grid;
  grid-template-columns: repeat(4, 280px);
  justify-content: center;
  gap: 20px;
}

.portal-column-card {
  width: 280px;
  height: 228px;
  padding: 20px 22px;
  background: #ffffff;
  box-shadow: 0px 2px 12px 0px rgba(123, 75, 247, 0.1);
  border-radius: 6px;
  border: 1px solid #e6ddff;
  box-sizing: border-box;
  text-align: center;
}

.portal-column-card > img {
  display: block;
  float: none;
  width: 70px;
  height: 70px;
  margin: 0 auto;
  object-fit: contain;
}

.portal-column-card h3 {
  margin: 8px 0 5px;
  font-weight: 600;
  font-size: 18px;
  color: #333333e3;
  line-height: 25px;
}

.portal-column-card p {
  margin: 0;
  font-size: 14px;
  color: rgba(102, 102, 102, 0.68);
  line-height: 24px;
}

.portal-column-card p span {
  display: block;
  color: rgba(102, 102, 102, 1);
}

@media (hover: hover) and (pointer: fine) {
  .portal-column-card {
    transition:
      transform 0.35s ease,
      box-shadow 0.35s ease,
      border-color 0.35s ease;
  }

  .portal-column-card > img {
    transition: transform 0.35s ease;
  }

  .portal-column-card:hover {
    transform: translateY(-6px);
    border-color: #bca7ff;
    box-shadow: 0 15px 32px rgba(105, 72, 249, 0.15);
  }

  .portal-column-card:hover > img {
    transform: translateY(-3px) scale(1.05);
  }

  .portal-trust-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  }

  .portal-trust-card > img {
    transition: transform 0.35s ease;
  }

  .portal-trust-card:hover {
    transform: translateY(-7px);
    border-color: #c9b5ff;
    box-shadow: 0 16px 34px rgba(123, 75, 247, 0.15);
  }

  .portal-trust-card:hover > img {
    transform: translateY(-3px) scale(1.04);
  }
}

@media screen and (max-width: 1200px) {
  .foundation-portal-banner-copy h1 {
    font-size: 34px;
    line-height: 46px;
  }
  .foundation-portal-banner-copy h2 {
    font-size: 18px;
  }
  .foundation-portal-banner-copy p {
    font-size: 16px;
    line-height: 29px;
  }
  .portal-column-grid {
    grid-template-columns: repeat(4, minmax(0, 280px));
  }
  .portal-column-card {
    width: 100%;
  }
  .portal-trust-grid { grid-template-columns: repeat(4, minmax(0, 276px)); }
  .portal-trust-card { width: 100%; }
}

@media screen and (max-width: 820px) {
  .foundation-portal-banner {
    height: auto;
    min-height: 600px;
    background-position: 62% center;
  }

  .foundation-portal-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      90deg,
      rgba(2, 18, 86, 0.94) 0%,
      rgba(4, 30, 125, 0.78) 52%,
      rgba(16, 24, 100, 0.22) 100%
    );
  }

  .foundation-portal-banner-inner {
    flex-direction: column;
    justify-content: flex-start;
    padding: 100px 24px 36px;
  }

  .foundation-portal-banner-copy {
    width: 100%;
    flex: 0 0 auto;
    max-width: 620px;
    padding-top: 0;
    text-align: center;
  }

  .foundationPortal .banner-inner-list-icon {
    width: 100%;
    height: 280px;
    flex: 0 0 280px;
    margin-top: 20px;
    display: flex;
    justify-content: center;
  }

  .portal-columns {
    padding: 60px 0;
  }
  .portal-trust { padding: 60px 0; }
  .portal-section-heading h2 {
    font-size: 27px;
    line-height: 39px;
  }
  .portal-section-heading > p {
    font-size: 16px;
    line-height: 25px;
  }
  .portal-column-grid {
    grid-template-columns: repeat(2, 280px);
  }
  .portal-trust-grid { grid-template-columns: repeat(2, 276px); row-gap: 24px; }
}

@media screen and (max-width: 600px) {
  .foundation-portal-banner {
    min-height: 700px;
    background-position: 68% center;
    background-size: auto 100%;
  }

  .foundation-portal-banner::before {
    background: linear-gradient(180deg, rgba(3, 18, 83, 0.92) 0%, rgba(4, 25, 111, 0.82) 56%, rgba(19, 22, 100, 0.38) 100%);
  }

  .foundation-portal-banner-inner {
    align-items: flex-start;
    padding: 104px 18px 40px;
  }

  .foundation-portal-banner-copy {
    width: 100%;
    text-align: center;
  }

  .foundation-portal-banner-copy h1 {
    margin-bottom: 12px;
    font-size: 28px;
    line-height: 40px;
    letter-spacing: 1px;
  }

  .foundation-portal-banner-copy h2 {
    margin: 0 auto 14px;
    max-width: 360px;
    font-size: 16px !important;
    line-height: 26px !important;
    text-wrap: balance;
  }

  .foundation-portal-banner-copy p {
    max-width: 440px;
    margin: 0 auto;
    font-size: 14px !important;
    line-height: 26px !important;
    text-align: left;
  }

  .foundationPortal .banner-inner-list-icon {
    height: 240px;
    flex-basis: 240px;
    margin-top: 24px;
  }

  .foundationPortal .banner-inner-list-icon img {
    width: auto;
    height: 100%;
  }

  .portal-columns {
    padding: 50px 0;
  }
  .portal-trust { padding: 50px 0; }
  .portal-section-heading {
    margin-bottom: 40px;
  }
  .portal-section-heading h2 {
    font-size: 24px;
    line-height: 36px;
  }
  .portal-section-heading > p {
    font-size: 15px;
    line-height: 24px;
  }
  .portal-column-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .portal-column-card {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  .portal-trust-grid { grid-template-columns: 1fr; gap: 16px; }
  .portal-trust-card { width: 100%; max-width: 320px; margin: 0 auto; }
}

@media screen and (max-width: 380px) {
  .foundation-portal-banner { min-height: 720px; background-position: 70% center; }
  .foundation-portal-banner-inner { padding-top: 96px; }
  .foundation-portal-banner-copy h1 { font-size: 25px; line-height: 36px; }
  .foundation-portal-banner-copy h2 { max-width: 290px; font-size: 15px !important; line-height: 24px !important; }
  .foundation-portal-banner-copy p { font-size: 13px !important; line-height: 24px !important; }
  .foundationPortal .banner-inner-list-icon { height: 220px; flex-basis: 220px; }
}

.portal-content-management {
  padding: 70px 0;
  background: #f8f9ff;
}

.portal-content-management-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
}

.portal-content-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 276px);
  gap: 16px 14px;
}

.portal-content-feature {
  width: 276px;
  height: 72px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border-radius: 7px;
  box-shadow: 0 3px 12px rgba(99, 71, 187, 0.09);
  box-sizing: border-box;
}

.portal-content-feature > img {
  display: block;
  float: none;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  object-fit: contain;
}

.portal-content-feature h3 {
  margin: 0;
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 15px;
  color: #333333e3;
  line-height: 21px;
  white-space: nowrap;
}

.portal-content-feature h3 span {
  margin-right: 8px;
  display: inline-flex;
  align-items: center;
  color: #666666;
}

.portal-content-feature h3 span::after {
  content: "";
  width: 1px;
  height: 12px;
  margin-left: 8px;
  background: #cfcfcf;
  flex: 0 0 1px;
}

.portal-content-feature p {
  margin: 0;
  font-size: 13px;
  color: #999999;
  line-height: 24px;
  white-space: nowrap;
}

.portal-content-screen {
  width: 599px;
  height: 384px;
  overflow: hidden;
}

.portal-content-screen img {
  display: block;
  float: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (hover: hover) and (pointer: fine) {
  .portal-content-feature,
  .portal-content-screen { transition: transform 0.35s ease, box-shadow 0.35s ease; }
  .portal-content-feature > img { transition: transform 0.35s ease; }
  .portal-content-feature:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(99, 71, 187, 0.14); }
  .portal-content-feature:hover > img { transform: scale(1.06); }
  .portal-content-screen:hover { transform: translateY(-4px);  }
}

@media screen and (max-width: 1200px) {
  .portal-content-management-layout { gap: 24px; }
  .portal-content-feature-grid { grid-template-columns: repeat(2, minmax(0, 276px)); }
  .portal-content-feature { width: 100%; }
  .portal-content-screen { width: 48%; height: auto; aspect-ratio: 599 / 384; }
  .portal-content-screen img { width: 100%; height: 100%; }
}

@media screen and (max-width: 820px) {
  .portal-content-management { padding: 60px 0; }
  .portal-content-management-layout { flex-direction: column; gap: 34px; }
  .portal-content-feature-grid { grid-template-columns: repeat(2, 276px); }
  .portal-content-feature { width: 276px; }
  .portal-content-screen { width: 599px; max-width: 100%; }
}

@media screen and (max-width: 600px) {
  .portal-content-management { padding: 50px 0; }
  .portal-content-feature-grid { width: 100%; grid-template-columns: 1fr; gap: 12px; }
  .portal-content-feature { width: 100%; max-width: 320px; margin: 0 auto; }
  .portal-content-screen { width: 100%; height: auto; aspect-ratio: 599 / 384; padding: 6px; border-radius: 14px; }
}

@media screen and (max-width: 380px) {
  .portal-content-feature { padding-left: 9px; padding-right: 9px; gap: 7px; }
  .portal-content-feature h3 { font-size: 14px; }
  .portal-content-feature h3 span { margin-right: 5px; }
  .portal-content-feature p { font-size: 12px; }
}

.portal-custom-experience {
  padding: 70px 0;
  background: #ffffff;
}

.portal-experience-grid {
  display: grid;
  grid-template-columns: repeat(2, 585px);
  justify-content: center;
  gap: 20px;
}

.portal-experience-card {
  position: relative;
  width: 585px;
  height: 436px;
  padding: 34px 31px 20px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 10px;
  box-sizing: border-box;
  text-align: center;
}

.portal-experience-card > h3,
.portal-experience-card > p,
.portal-custom-features,
.portal-custom-showcase,
.portal-device-content {
  position: relative;
  z-index: 1;
}

.portal-experience-decoration {
  position: absolute;
  z-index: 0;
  display: block;
  float: none;
  object-fit: contain;
  pointer-events: none;
}

.portal-custom-decoration {
  top: 0;
  right: 0;
  width: 140px;
  height: 144px;
}

.portal-device-decoration {
  top: 16px;
  right: 0;
  width: 112px;
  height: 118px;
}

.portal-custom-card {
  background: linear-gradient(180deg, #ebf5ff 0%, #f5faff 99.41%) padding-box,
    linear-gradient(180deg, #b6d4f8, #d7e9fb) border-box;
}

.portal-device-card {
  background: linear-gradient(180deg, #f9eeff 0%, #fdfbff 100%) padding-box,
    linear-gradient(180deg, #f0caff, #ecdbff) border-box;
}

.portal-experience-card > h3 {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: 26px;
  color: #006df2;
  line-height: 37px;
}

.portal-device-card > h3 {
  color: #7b43f6;
}

.portal-experience-card > p {
  margin: 0;
  font-size: 14px;
  color: #8a95a2;
  line-height: 24px;
}

.portal-custom-features {
  margin: 15px 0 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.portal-custom-features > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
}

.portal-custom-features img {
  display: block;
  float: none;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.portal-custom-features span {
  white-space: nowrap;
  font-size: 13px;
  color: #333333e3;
  line-height: 18px;
}

.portal-custom-showcase {
  display: block;
  float: none;
  width: 502px;
  height: 208px;
  margin: 0 auto;
  object-fit: contain;
}

.portal-device-content {
  height: 208px;
  margin-top: 49px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portal-device-list {
  width: 180px;
  display: flex;
  flex-direction: column;
  gap: 33px;
  text-align: left;
}

.portal-device-list > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.portal-device-list img {
  display: block;
  float: none;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  object-fit: contain;
}

.portal-device-list span,
.portal-device-list strong,
.portal-device-list small {
  display: block;
}

.portal-device-list strong {
  font-weight: bold;
  font-size: 14px;
  color: #333333e3;
  line-height: 20px;
}

.portal-device-list small {
  font-size: 12px;
  color: #999999;
  line-height: 17px;
}

.portal-device-showcase {
  display: block;
  float: none;
  width: 313px;
  height: 200px;
  object-fit: contain;
}
.banner-sm{
background-image: url(../../images/foundationPortal/banner-sm-bg.png);
}
@media (hover: hover) and (pointer: fine) {
  .portal-experience-card { transition: transform 0.35s ease, box-shadow 0.35s ease; }
  .portal-custom-showcase,
  .portal-device-showcase { transition: transform 0.4s ease; }
  .portal-experience-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(87, 105, 170, 0.14); }
  .portal-experience-card:hover .portal-custom-showcase,
  .portal-experience-card:hover .portal-device-showcase { transform: scale(1.02); }
}

@media screen and (max-width: 1200px) {
  .portal-experience-grid { grid-template-columns: repeat(2, minmax(0, 585px)); }
  .portal-experience-card { width: 100%; padding-left: 24px; padding-right: 24px; }
  .portal-custom-showcase { max-width: 100%; }
  .portal-device-showcase { width: 58%; }
}

@media screen and (max-width: 960px) {
  .portal-experience-grid { grid-template-columns: 585px; gap: 22px; }
}

@media screen and (max-width: 600px) {
  .portal-custom-experience { padding: 50px 0; }
  .portal-experience-grid { grid-template-columns: 1fr; }
  .portal-experience-card { width: 100%; height: auto; min-height: 436px; padding: 28px 14px 18px; }
  .portal-experience-card > h3 { font-size: 22px; line-height: 32px; }
  .portal-experience-card > p { font-size: 14px; line-height: 24px; }
  .portal-custom-features { grid-template-columns: repeat(2, 1fr); row-gap: 8px; }
  .portal-device-content { height: auto; flex-direction: column-reverse; gap: 10px; }
  .portal-device-list { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .portal-device-list > div { flex-direction: column; gap: 3px; text-align: center; }
  .portal-device-showcase { width: 100%; max-width: 313px; }
}

@media screen and (max-width: 380px) {
  .portal-custom-features span { font-size: 12px; }
  .portal-device-list strong { font-size: 13px; }
  .portal-device-list small { font-size: 11px; line-height: 16px; }
}

.portal-application-cases {
  padding: 70px 0;
  background: #f8f9ff;
}

.portal-case-grid {
  display: grid;
  grid-template-columns: repeat(4, 280px);
  justify-content: center;
  gap: 24px;
}

.portal-case-link {
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.portal-case-link:focus-visible {
  outline: 2px solid #7b43f6;
  outline-offset: 4px;
  border-radius: 10px;
}

.portal-case-card {
  position: relative;
  width: 280px;
  height: 352px;
  overflow: hidden;
  background: #ffffff;
  border-radius: 10px;
  box-sizing: border-box;
  text-align: center;
}

.portal-case-cover {
  display: block;
  float: none;
  width: 280px;
  height: 186px;
  object-fit: cover;
}

.portal-case-logo {
  position: absolute;
  top: 162px;
  left: 50%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: contain;
  transform: translateX(-50%);
  z-index: 2;
}

.portal-case-card h3 {
  margin: 35px 16px 7px;
  font-weight: 600;
  font-size: 16px;
  color: #333333e3;
  line-height: 22px;
}

.portal-case-card p {
  margin: 0 auto;
  width: calc(100% - 36px);
  font-size: 14px;
  color: #666666;
  line-height: 24px;
}

.portal-case-card::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 20px;
  width: 22px;
  height: 2px;
  background: #99609b;
  transform: translateX(-50%);
}

.portal-case-card:nth-child(2)::after { background: #397cc6; }
.portal-case-card:nth-child(3)::after { background: #397cc6; }
.portal-case-card:nth-child(4)::after { background: #32a768; }

@media (hover: hover) and (pointer: fine) {
  .portal-case-card { transition: transform 0.35s ease, box-shadow 0.35s ease; }
  .portal-case-cover,
  .portal-case-logo { transition: transform 0.4s ease; }
  .portal-case-card:hover { transform: translateY(-7px) scale(1.015); box-shadow: 0 16px 34px rgba(62, 80, 151, 0.14); }
  .portal-case-card:hover .portal-case-cover { transform: scale(1.035); }
  .portal-case-card:hover .portal-case-logo { transform: translateX(-50%) scale(1.08); }
}

@media screen and (max-width: 1200px) {
  .portal-case-grid { grid-template-columns: repeat(4, minmax(0, 280px)); }
  .portal-case-card { width: 100%; }
  .portal-case-cover { width: 100%; }
}

@media screen and (max-width: 820px) {
  .portal-application-cases { padding: 60px 0; }
  .portal-case-grid { grid-template-columns: repeat(2, 280px); row-gap: 24px; }
  .portal-case-card { width: 280px; }
}

@media screen and (max-width: 600px) {
  .portal-application-cases { padding: 50px 0; }
  .portal-case-grid { grid-template-columns: 1fr; gap: 16px; }
  .portal-case-card { width: 100%; max-width: 320px; margin: 0 auto; }
  .portal-case-cover { width: 100%; }
}

.portal-trust-card,
.portal-column-card,
.portal-content-feature,
.portal-content-screen,
.portal-experience-card,
.portal-case-card,
.portal-trust-card img,
.portal-column-card img,
.portal-content-feature img,
.portal-content-screen img,
.portal-experience-card img,
.portal-case-card img {
  transition: all 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .foundationPortal *,
  .foundationPortal *::before,
  .foundationPortal *::after {
    animation: none !important;
    transition: none !important;
  }

  .foundationPortal [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
}
