@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&display=swap");
body {
  margin: 0;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

.icon-hover:hover {
  border-color: #3b71ca !important;
  background-color: white !important;
}

.icon-hover:hover i {
  color: #3b71ca !important;
}

.hero {
  margin-bottom: 5%;
  margin-top: auto;
  position: relative;
}

.hero-subtitle {
  font-size: 2rem;
  font-weight: 800;
  color: #333333;
}

.hero-title {
  font-family: "Fredoka", sans-serif;
  text-transform: uppercase;
  background-image: linear-gradient(
    -225deg,
    #a3e50b 0%,
    #86b404 20%,
    #5a8100 40%,
    #1e5e01 60%,
    #007c27 80%,
    #00a99d 100%
  );
  background-size: auto auto;
  background-clip: border-box;
  background-size: 200% auto;
  color: #fff;
  background-clip: text;
  text-fill-color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textclip 2s linear infinite;
  display: inline-block;
  font-size: 4rem !important;
  fontweight: 900;
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  line-height: 1.2 !important;
}

@keyframes textclip {
  to {
    background-position: 200% center;
  }
}

.typewriter .hero-paragraph {
  overflow: hidden;
  font-weight: 600;
  white-space: pre-wrap;
  margin: 0 auto;
  letter-spacing: 0.1em;
}

.typewriter .hero-paragraph::after {
  content: "|";
  animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
  from,
  to {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }
}

@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes erasing {
  from {
    width: 100%;
  }

  to {
    width: 0;
  }
}

@media (max-width: 884px) {
  .hero-title,
  .hero-subtitle,
  .hero-paragraph {
    text-align: center;
  }
}

@media (max-width: 884px) {
  .hero-title {
    font-size: 3.5rem;
    text-align: center;
  }
}

.splide .splide__track .splide__slide img {
  height: auto;
  width: 100%;
  justify-self: center;
  gap: 10rem;
}

.splide__wrapper .splide {
  padding: 4rem;
}

.pagination-splide {
  z-index: 1000;
  position: relative;
}

.pagination-splide.is-active,
.pagination-splide:focus {
  color: #39ff14;
  background-color: #39ff14;
}

.splide__wrapper .splide__pagination__page.is-active {
  opacity: 1;
  background-color: #39ff14;
}

.hero .hero-text {
  position: absolute;
  top: 40%;
  left: 10%;
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
  border-right: 4px solid orange;
  border-radius: 0 100px 0 0;
}

.hero .hero-text .hero-title {
  font-weight: 900;
}

.section-title {
  font-weight: 800;
  color: #333333;
  text-align: center;
}

.section-title span {
  color: #a3e50b;
}

.extracurricular {
  margin-bottom: 5%;
}

.extracurricular .row .card .card-img img {
  border-radius: 0 0 20px 20px;
}

.extracurricular .row .card {
  cursor: pointer;
  overflow: hidden;
  transition: 0.5s;
  border-radius: 10px;
}

.extracurricular .row .card:hover {
  transform: scale(1.05);
}

.extracurricular .row .card .card-body .card-title {
  color: black;
  padding: 0 0 0 0;
}

.extracurricular .row .card .card-body .card-text {
  font-weight: 600;
  color: #e4a11b;
}

.extracurricular .row .card .card-body .card-footer {
  justify-content: center;
}

.extracurricular .row .card .card-body .badge {
  border: 1px solid #9fa6b2;
  display: inline-block;
  width: fit-content;
  height: 2rem;
  margin-bottom: 0.5rem;
  color: grey;
  align-items: center;
  justify-content: center;
  align-content: center;
  font-size: 1rem;
  flex-direction: row;
}

.extracurricular .view-product {
  justify-content: center;
}

.extracurricular {
  padding: 1rem;
}

.contact {
  width: 100%;
  height: auto;
  margin-bottom: 10%;
}

.contact .contact-map {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact h6 {
  font-weight: 800;
  text-align: center;
  margin-bottom: 5%;
}

.contact-content h6 {
  font-weight: 800;
  text-align: center;
}

.contact .contact-content .contact-content-title {
  font-size: 12px;
}

@media (max-width: 767px) {
  .contact-content {
    margin-top: 5%;
  }
}

.profil {
  margin-bottom: 5%;
}

.profil .profil-img {
  width: 100%;
  height: 100%;
  border-radius: 2% 20% 2% 20%;
}

.profil .profil-content {
  padding-left: 2rem;
  padding-right: 2rem;
}

.profil .profil-content .profil-content-text {
  font-size: 1.1rem;
  text-align: justify;
  line-height: 2;
}

.profil .profil-content .profil-content-text .profil-content-text-company {
  color: #333333;
  font-weight: 800;
}

@media (max-width: 992px) {
  .profil .profil-content .profil-content-text {
    margin-top: 2%;
  }
}

@media (max-width: 767px) {
  .profil .profil-content {
    padding-left: 0rem;
    padding-right: 0rem;
  }

  .profil .profil-content .profil-content-text {
    margin-top: 5%;
  }
}

.extracurricular .row .card .card-body .card-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}

@media (max-width: 576px) {
  .produk-tersedia {
    font-size: 0.8rem;
    margin: auto;
  }

  .extracurricular .row .card .card-body .card-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 400px;
  }
}

@media (max-width: 1024px) {
  .extracurricular .row .card .card-body .card-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 400px;
  }
}

@media (width: 1024px) {
  .card-text {
    flex-direction: column;
  }
}

@media (max-width: 273px) {
  .card-text {
    flex-direction: column;
  }
}

@media (max-width: 1200px) {
  .overlay-text {
    text-align: center;
    margin: auto;
  }
}

.gallery {
  width: 100%;
  height: auto;
  margin-bottom: 10%;
}

.image-with-frame {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 16/9;
  display: block;
}

#btnPrev {
  position: absolute;
  top: 40%;
  left: 0;
  border-radius: 0 40% 40% 0;
  border-left: 0px;
  background-color: #32cd32;
  border: 0.1px #32cd32;
}

#btnNext {
  position: absolute;
  top: 40%;
  right: 0;
  border-radius: 40% 0 0 40%;
  border-left: 0px;
  background-color: #32cd32;
  border: 0.1px #32cd32;
}

@media (min-width: 768px) {
  .overlay-text {
    position: absolute;
    top: 40%;
    left: 10%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    max-width: 40%;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
    font-size: 1em;
    text-align: justify;
    border-right: 8px solid #ff073a;
    border-radius: 10px 100px 10px 10px;
  }
}

@media (max-width: 768px) {
  .overlay-text {
    max-width: 90%;
    padding: 15px;
    font-size: 0.9em;
  }

  .overlay-text h2 {
    font-size: 1.2em;
  }

  .overlay-text p {
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .overlay-text {
    position: relative;
    margin: auto;
    font-size: 0.8em;
    text-align: center;
  }

  .overlay-text h2 {
    font-size: 1em;
  }

  .overlay-text p {
    font-size: 0.8em;
  }
}

.description-extra-text {
  overflow: hidden;
  text-overflow: ellipsis;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
