.container__portal {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  background-image: linear-gradient(135deg, #fdfcfb 0%, #e2d1c3 100%);
  overflow-x: hidden;
  overflow-y: auto;
}

.container__card {
  /* background-color: white; */
  width: 100%;
  max-width: 100%;
  padding: 10px;
  border-radius: 10px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); */
}

.container__card__finance {
  width: 100%;
  max-width: 20rem;
  /* padding: 0 20px; */
}

.card__portal {
  position: relative;
  width: 100%;
  max-width: 20rem;
  min-height: 10rem;
  height: auto;
  /* background: linear-gradient(to right, rgb(137, 104, 255), rgb(175, 152, 255)); */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border-radius: 10px;
  /* padding: 20px; */
  overflow: hidden;
  transition-duration: 0.2s;
  background: linear-gradient(
    0deg,
    rgba(77, 54, 208, 1) 0%,
    rgba(132, 116, 254, 1) 100%
  );
  box-shadow: 0 0.7em 1.5em -0.5em gray;
  padding: 0.8em 1.5em 0.8em 1.2em;
}

.card__portal:hover {
  transform: rotateY(10deg) rotateX(10deg) scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card__portal:before {
  content: "";
  position: absolute;
  top: -10;
  left: 10;
  width: 100%;
  height: 100%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.1));
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 1;
}

.card__portal:hover:before {
  transform: translateX(100%);
}

.card__portal:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.1));
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 1;
}

.card__portal:hover:after {
  transform: translateX(100%);
}

/* .card__portal:hover {
  transform: scale(1.1);
  transition-duration: 0.2s;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
} */

.card__btn__portal {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 10;
  background-color: white;
  color: rgb(61, 61, 61);
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: 700;
  font-size: clamp(10px, 2vw, 12px);
  cursor: pointer;
  transition-duration: 0.2s;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.card__btn__op__portal {
  z-index: 10;
  background-color: white;
  color: rgb(61, 61, 61);
  border: none;
  text-transform: capitalize;
  padding: 5px 8px;
  border-radius: 5px;
  font-weight: 700;
  font-size: clamp(9px, 1.8vw, 11px);
  text-align: center;
  cursor: pointer;
  transition-duration: 0.2s;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.card__btn__portal:hover {
  background-color: #f3f4f4;
  color: black;
  scale: 1.1;
}

.btn-sm:hover {
  scale: 1.1;
}

.card__btn__op__portal:hover {
  background-color: #f3f4f4;
  color: black;
  scale: 1.1;
}

.card__portal::before {
  width: 110px;
  height: 110px;
  content: "";
  background: linear-gradient(to right, rgb(142, 110, 255), rgb(208, 195, 255));
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  right: -25%;
  top: -25%;
}

.card__heading__portal {
  font-size: clamp(1.2em, 4vw, 1.5em);
  font-weight: 600;
  color: rgb(241, 241, 241);
  z-index: 10;
  line-height: 1.2;
}

.card__desc__portal {
  font-size: 0.9em;
  color: rgb(241, 241, 241);
  z-index: 10;
}

.card__desc__portal a {
  color: rgb(241, 241, 241);
}

.acceptButton {
  padding: 11px 20px;
  background-color: #7b57ff;
  transition-duration: 0.2s;
  border: none;
  color: rgb(241, 241, 241);
  cursor: pointer;
  font-weight: 600;
  z-index: 10;
}

.acceptButton:hover {
  background-color: #714aff;
  transition-duration: 0.2s;
}

.card__red {
  background: linear-gradient(to right, rgb(255, 104, 104), rgb(255, 152, 152));
}

.card__red::before {
  background: linear-gradient(to right, rgb(255, 110, 110), rgb(255, 195, 195));
}

.card__black {
  background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.15) 0%,
      rgba(0, 0, 0, 0.15) 100%
    ),
    radial-gradient(
        at top center,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(0, 0, 0, 0.4) 120%
      )
      #989898;
  background-blend-mode: multiply, multiply;
}

.card__black::before {
  background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.15) 0%,
      rgba(0, 0, 0, 0.15) 100%
    ),
    radial-gradient(
        at top center,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(0, 0, 0, 0.4) 120%
      )
      #989898;
  background-blend-mode: multiply, multiply;
}

.card__blue {
  background-image: linear-gradient(
    to top,
    #0c3483 0%,
    #a2b6df 100%,
    #6b8cce 100%,
    #a2b6df 100%
  );
}

.card__blue::before {
  background-image: linear-gradient(
    to top,
    #0c3483 0%,
    #a2b6df 100%,
    #6b8cce 100%,
    #a2b6df 100%
  );
}

.card__gray {
  background-image: linear-gradient(to top, #09203f 0%, #537895 100%);
}

.card__gray::before {
  background-image: linear-gradient(to top, #09203f 0%, #537895 100%);
}

.portal__circle__blue {
  width: 100px;
  height: 100px;
  content: "";
  background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.15) 0%,
      rgba(0, 0, 0, 0.15) 100%
    ),
    radial-gradient(
        at top center,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(0, 0, 0, 0.4) 120%
      )
      #989898;
  box-shadow: 0 0.7em 1.5em -0.5em gray;
  background-blend-mode: multiply, multiply;
  position: absolute;
  /* z-index: 1; */
  border-radius: 50%;
  left: -20%;
  top: -5%;
}

.portal__circle__red {
  width: 100px;
  height: 100px;
  content: "";
  background-image: linear-gradient(to top, #09203f 0%, #537895 100%);
  position: absolute;
  /* z-index: 0; */
  border-radius: 50%;
  right: -20%;
  bottom: -5%;
  box-shadow: 0 0.7em 1.5em -0.5em gray;
}

.list-item:hover {
  cursor: pointer;
  background-color: #f3f4f4;
}

/* responsive mobile */
@media (max-width: 599px) {
  .container__portal {
    padding: 15px 10px;
    min-height: 100vh;
  }

  .container__card {
    flex-direction: column;
    align-items: center;
    padding: 5px;
    gap: 10px;
    max-width: 100%;
    width: 100%;
  }

  .container__card__finance {
    max-width: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .portal__circle__blue {
    width: 120px;
    height: 120px;
    left: -15%;
    top: -5%;
  }

  .portal__circle__red {
    width: 120px;
    height: 120px;
    right: -15%;
    bottom: -5%;
  }

  .card__portal {
    max-width: 100%;
    width: 100%;
    min-height: 10rem;
    padding: 0.8em 1em 3.5em 1em;
  }

  /* Card dengan banyak button butuh ruang lebih */
  .card__black {
    min-height: 18rem !important;
    padding-bottom: 7em !important;
  }

  /* Grid layout untuk button operasional di mobile */
  .card__black .card__container__button {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 6px !important;
    right: 8px !important;
    bottom: 8px !important;
    left: 8px !important;
    width: calc(100% - 16px);
  }

  .card__heading__portal {
    font-size: 1.2rem;
    margin-bottom: 0.3em;
  }

  .card__portal::before {
    width: 90px;
    height: 90px;
    right: -18%;
    top: -18%;
  }

  .card__container__button {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 6px;
    right: 8px;
    bottom: 8px;
  }

  .card__btn__op__portal {
    font-size: 10px;
    padding: 8px 10px;
    min-width: auto;
    min-height: 36px;
    text-align: center;
  }

  .card__btn__portal {
    font-size: 12px;
    padding: 8px 16px;
    min-width: 80px;
    min-height: 36px;
  }

  /* Logo responsiveness */
  .w-content img {
    max-width: 16rem !important;
  }
}

/* responsive tablet small (portrait) */
@media (min-width: 600px) and (max-width: 767px) {
  .container__portal {
    padding: 20px 15px;
  }

  .container__card {
    flex-direction: column;
    align-items: center;
    padding: 10px;
    gap: 12px;
    max-width: 100%;
    width: 100%;
  }

  .container__card__finance {
    max-width: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .portal__circle__blue {
    width: 150px;
    height: 150px;
    left: -10%;
    top: -5%;
  }

  .portal__circle__red {
    width: 150px;
    height: 150px;
    right: -10%;
    bottom: -5%;
  }

  .card__portal {
    max-width: 95%;
    width: 95%;
    min-height: 12rem;
    padding: 1.2em 1.5em 4em 1.5em;
  }

  /* Card dengan banyak button butuh ruang lebih */
  .card__black {
    min-height: 20rem !important;
    padding-bottom: 7.5em !important;
  }

  /* Grid layout untuk button operasional di tablet portrait */
  .card__black .card__container__button {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 7px !important;
    right: 12px !important;
    bottom: 12px !important;
    left: 12px !important;
    width: calc(100% - 24px);
  }

  .card__heading__portal {
    font-size: 1.5rem;
    margin-bottom: 0.5em;
  }

  .card__portal::before {
    width: 110px;
    height: 110px;
    right: -20%;
    top: -20%;
  }

  .card__container__button {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 7px;
    right: 12px;
    bottom: 12px;
  }

  .card__btn__op__portal {
    font-size: 11px;
    padding: 9px 12px;
    min-width: auto;
    min-height: 38px;
    text-align: center;
  }

  .card__btn__portal {
    font-size: 13px;
    padding: 9px 16px;
    min-width: 90px;
    min-height: 38px;
  }

  /* Logo */
  .w-content img {
    max-width: 18rem !important;
  }
}

/* responsive tablet (landscape & standard) */
@media (min-width: 768px) and (max-width: 900px) {
  .container__portal {
    padding: 20px;
  }

  .container__card {
    flex-direction: column;
    align-items: center;
    padding: 10px;
    gap: 15px;
    max-width: 100%;
    width: 100%;
  }

  .container__card__finance {
    max-width: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .portal__circle__blue {
    width: 180px;
    height: 180px;
    left: -8%;
    top: -5%;
  }

  .portal__circle__red {
    width: 180px;
    height: 180px;
    right: -8%;
    bottom: -5%;
  }

  .card__portal {
    max-width: 90%;
    width: 90%;
    min-height: 12rem;
    padding: 1.3em 1.6em 4.5em 1.6em;
  }

  /* Card dengan banyak button butuh ruang lebih */
  .card__black {
    min-height: 21rem !important;
    padding-bottom: 8em !important;
  }

  /* Grid layout untuk button operasional di tablet landscape */
  .card__black .card__container__button {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px !important;
    right: 12px !important;
    bottom: 12px !important;
    left: 12px !important;
    width: calc(100% - 24px);
  }

  .card__heading__portal {
    font-size: 1.6rem;
    margin-bottom: 0.5em;
  }

  .card__portal::before {
    width: 120px;
    height: 120px;
    right: -20%;
    top: -20%;
  }

  .card__container__button {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 8px;
    right: 12px;
    bottom: 12px;
  }

  .card__btn__op__portal {
    font-size: 12px;
    padding: 10px 14px;
    min-width: auto;
    min-height: 40px;
    text-align: center;
  }

  .card__btn__portal {
    font-size: 14px;
    padding: 10px 18px;
    min-width: 100px;
    min-height: 40px;
  }

  /* Logo */
  .w-content img {
    max-width: 19rem !important;
  }
}

/* responsive tablet */
@media (min-width: 901px) and (max-width: 1200px) {
  .container__portal {
    padding: 20px 15px;
  }

  .container__card {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
    gap: 15px;
    max-width: 95%;
  }

  .container__card__finance {
    max-width: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .portal__circle__blue {
    width: 180px;
    height: 180px;
    left: -8%;
    top: -8%;
  }

  .portal__circle__red {
    width: 180px;
    height: 180px;
    right: -8%;
    bottom: -8%;
  }

  .card__portal {
    max-width: 320px;
    min-height: 13rem;
    padding: 1em 1.3em 3.5em 1.3em;
  }

  /* Card operasional dengan scroll */
  .card__black {
    min-height: 13rem !important;
    padding-bottom: 4em !important;
  }

  .card__heading__portal {
    font-size: 1.3rem;
  }

  .card__portal::before {
    width: 110px;
    height: 110px;
    right: -22%;
    top: -22%;
  }

  .card__container__button {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 5px;
    right: 10px;
    top: 10px;
    z-index: 10;
    bottom: 10px;
    width: 140px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
  }

  /* Scrollbar styling untuk container button */
  .card__container__button::-webkit-scrollbar {
    width: 4px;
  }

  .card__container__button::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
  }

  .card__container__button::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
  }

  .card__container__button::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.7);
  }

  .card__btn__op__portal {
    font-size: 10px;
    padding: 6px 10px;
    min-height: 32px;
    text-align: center;
    flex-shrink: 0;
    width: 100%;
  }

  .card__btn__portal {
    font-size: 11px;
    padding: 6px 12px;
    min-height: 32px;
  }
}

/* responsive laptop */
@media (min-width: 1201px) {
  .container__portal {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background-image: linear-gradient(135deg, #fdfcfb 0%, #e2d1c3 100%);
    overflow-x: hidden;
    overflow-y: auto;
  }

  .container__card {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 15px;
    gap: 20px;
    max-width: 1200px;
  }

  .container__card__finance {
    max-width: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .portal__circle__blue {
    width: 250px;
    height: 250px;
    left: -8%;
    top: -8%;
  }

  .portal__circle__red {
    width: 250px;
    height: 250px;
    right: -8%;
    bottom: -8%;
  }

  .card__portal {
    max-width: 400px;
    min-height: 14rem;
    padding: 1.2em 1.5em 4em 1.5em;
  }

  /* Card operasional dengan scroll */
  .card__black {
    min-height: 14rem !important;
    padding-bottom: 4.5em !important;
  }

  .card__heading__portal {
    font-size: 1.6rem;
  }

  .card__portal::before {
    width: 130px;
    height: 130px;
    right: -20%;
    top: -20%;
    z-index: 10;
  }

  .card__container__button {
    position: absolute;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 6px;
    right: 10px;
    top: 10px;
    bottom: 10px;
    width: 160px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
  }

  /* Scrollbar styling untuk container button */
  .card__container__button::-webkit-scrollbar {
    width: 5px;
  }

  .card__container__button::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
  }

  .card__container__button::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
  }

  .card__container__button::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.7);
  }

  .card__btn__op__portal {
    font-size: 11px;
    padding: 7px 12px;
    min-height: 34px;
    text-align: center;
    flex-shrink: 0;
    width: 100%;
  }

  .card__btn__portal {
    font-size: 12px;
    padding: 7px 14px;
    min-height: 34px;
  }
}

/* responsive large laptop */
@media (min-width: 1400px) {
  .portal__circle__blue {
    width: 300px;
    height: 300px;
    left: -10%;
    top: -10%;
  }

  .portal__circle__red {
    width: 300px;
    height: 300px;
    right: -10%;
    bottom: -10%;
  }

  .card__portal {
    max-width: 450px;
    min-height: 15rem;
    padding: 1.5em 1.8em 4.5em 1.8em;
  }

  /* Card operasional dengan scroll */
  .card__black {
    min-height: 15rem !important;
    padding-bottom: 5em !important;
  }

  .card__heading__portal {
    font-size: 1.8rem;
  }

  .card__portal::before {
    width: 150px;
    height: 150px;
  }

  .card__container__button {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 8px;
    right: 18px;
    top: 10px;
    z-index: 10;
    bottom: 18px;
    width: 180px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
  }

  /* Scrollbar styling untuk container button */
  .card__container__button::-webkit-scrollbar {
    width: 5px;
  }

  .card__container__button::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
  }

  .card__container__button::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
  }

  .card__container__button::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.7);
  }

  .card__btn__op__portal {
    font-size: 12px;
    padding: 8px 14px;
    min-height: 36px;
    text-align: center;
    flex-shrink: 0;
    width: 100%;
  }

  .card__btn__portal {
    font-size: 13px;
    padding: 8px 16px;
    min-height: 36px;
  }
}
