@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
button {
  font-family: "Poppins", sans-serif;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

.body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.navbar {
  height: 80px;
  padding: 20px 0;
  background-color: #ffff;
  border-bottom: 2px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.container-fluid h1,
.offcanvas-title {
  font-size: 2em;
  color: #4bb7a8;
}

.navbar-toggler,
.navbar-toggler:focus,
.navbar-toggler:active {
  border: none;
  font-size: 1.25em;
  box-shadow: none;
  outline: none;
  color: #4bb7a8;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%234bb7a8' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.btn-close,
.btn-close:focus,
.btn-close:active,
.btn-close:focus-visible {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath stroke='%234bb7a8' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M2 2l12 12M14 2L2 14'/%3E%3C/svg%3E");
  border: none;
  box-shadow: none;
  outline: none;
}

.navbar-nav .nav-link {
  color: #666777;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
  line-height: 1.2;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #000;
}

@media (min-width: 991px) {
  .navbar-nav .nav-link::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #4bb7a8;
    transition: 0.15s ease-in-out;
  }

  .navbar-nav .nav-link:hover::before,
  .navbar-nav .nav-link:active::before,
  .navbar-nav .nav-link.active::before {
    width: 100%;
    visibility: visible;
  }

  .navbar-nav,
  .nav-link:focus {
    outline: none;
    box-shadow: none;
  }
}

.home-section {
  min-height: 90vh; /* buat seluruh section tinggi penuh layar */
  background-color: #4bb7a8;
  color: #ffffff;
  display: flex;
  align-items: center;
}

.home-section .container {
  padding-left: 10px;
  padding-right: 10px;
  margin-left: auto;
  margin-right: auto;
  max-width: 75%;
}
.home-section .container {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.home-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
}

.home-section p {
  font-size: 1.1rem;
  color: #ffffff;
}

.home-section img {
  max-width: 500%;
  height: auto;
  display: block;
  width: 100%;
}

.konsultasi-btn {
  color: #ffffff;
  background-color: transparent;
  border-color: #ffffff;
  transition: color 0.2s ease-in-out;
  margin-left: 10px;
}

.konsultasi-btn:hover,
.konsultasi-btn:focus {
  color: #4bb7a8;
  border-color: #e6f7f5;
  background-color: #ffffff;
}

.konsultasi-btn:active {
  color: #4bb7a8;
  border-color: #4bb7a8;
  background-color: #ffffff;
}

.footer {
  background-color: #1c2b4a;
  color: #ffff;
}
.footer .container-fluid {
  padding-left: 50px;
  padding-right: 50px;
  margin-left: auto;
  margin-right: auto;
}

.assessment-container {
  max-width: 600px;
  margin: 60px auto;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.form-title {
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

main {
  flex: 1;
}

.intro-section {
  background-color: #4bb7a8;
  padding-top: 2rem;
  padding-top: 30px;
}

.intro-section h2 {
  font-size: 1.8rem;
  color: #ffffff;
  margin: 0;
}

.btn-mulai {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  background-color: #4bb7a8;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.btn-mulai:hover,
.btn-mulai:focus,
.btn-mulai:active {
  background-color: #ffffff !important;
  color: #4bb7a8 !important;
  border-color: #4bb7a8 !important;
  text-decoration: none;
}

.edukasi {
  background-color: #4bb7a8;
}

.edukasi-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: calc(100vh - 80px - 80px);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  background: white;
  border-radius: 10px;
}

.jumbotron {
  padding: 2rem 0;
  text-align: center;
}

.image-box {
  max-width: 350px;
  margin: 0 auto;
}

.image-box img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.form-title {
  margin-top: 1.5rem;
  text-align: center;
}

.btn-wrapper {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.btn-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 700px;
}

.btn-group button {
  background-color: #4bb7a8;
  color: white;
  padding: 10px 14px;
  margin: 4px;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

.btn-group button:hover {
  background-color: #ffffff;
  color: #4bb7a8;
  border-color: #4bb7a8;
}

.btn-group button:focus,
.btn-group button:active {
  background-color: #e6f7f5;
  color: #4bb7a8;
  border-color: #4bb7a8;
  outline: none;
}

.edukasi-box {
  display: block !important;
  background-color: #4bb7a8;
  margin: 20px auto;
  padding: 20px;
  border-radius: 12px;
  max-width: 800px;
  width: 100%; /* tambahkan ini agar menyesuaikan lebar layar */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  box-sizing: border-box; /* agar padding tidak menambah lebar total */
}

#konten-edukasi {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
}

#kategori_buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

#kategori_buttons button {
  flex: 1 1 20%;
  min-width: 180px;
  max-width: 200px;
  padding: 18px 0;
  font-size: 16px;
  font-weight: 600;
  background-color: #4bb7a8;
  color: #fff;
  border: none;
  border-radius: 8px;
  transition: 0.3s;
}

#kategori_buttons button:hover {
  background-color: #3aa798;
  color: #fff;
}

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
  .edukasi-box {
    padding: 15px;
    font-size: 0.95rem;
  }

  #kategori_buttons button {
    flex: 1 1 45%;
    min-width: 140px;
  }
}

@media (max-width: 425px) {
  #kategori_buttons button {
    flex: 1 1 100%;
    min-width: 100%;
    margin: 0 1 rem;
  }
}

.judul {
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 10px;
}

.konten {
  font-size: 16px;
  line-height: 1.6;
}

main.about {
  padding-top: 0;
  padding-bottom: 00px;
  background-color: #ffffff;
}

.judul-about {
  font-size: 2.2rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
  margin-bottom: 25px;
  margin-top: 20px;
}

.judul-about::after {
  content: "";
  position: absolute;
  width: 80%;
  height: 4px;
  background-color: #ffffff;
  left: 10%;
  bottom: 0;
  border-radius: 2px;
}

.about-container {
  background-color: #4bb7a8 !important;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
  padding: 30px;
  margin-top: 0px;
}

.about-container h2,
.about-container h3 {
  color: #ffffff;
  font-weight: 600;
}

.about-container ol li {
  margin-bottom: 10px;
  color: #1c2b4a;
}

.about-container p {
  color: #1c2b4a;
  font-size: 1rem;
  line-height: 1.6;
  text-align: justify;
}

.hasil-konsultasi {
  background: #ffffff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.hasil_konsultasi-bg {
  background-color: #4bb7a8;
}

.hasil-konsultasi,
.hasil-konsultasi h5,
.hasil-konsultasi p {
  color: #4bb7a8;
}

.hasil-konsultasi h2 {
  color: white;
}

.question {
  display: none !important;
  height: 100%;
  width: 100%;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.question.active {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.btn-outline-teal {
  color: #4bb7a8 !important;
  border: 1px solid #4bb7a8 !important;
  background-color: transparent;
  transition: 0.3s ease-in-out;
}

.btn-outline-teal:hover {
  background-color: #4bb7a8 !important;
  color: white !important;
}

.btn-teal {
  background-color: #4bb7a8 !important;
  color: white !important;
  border: 1px solid #4bb7a8 !important;
  transition: 0.3s ease-in-out;
}

.btn-teal:hover {
  background-color: #3ba69a !important;
  border-color: #3ba69a !important;
}

.btn-mulai {
  width: 60% !important;
  padding: 14px 0 !important;
  font-size: 18px !important;
  border-radius: 10px !important;
  margin-top: 20px !important;
}

.btn-option {
  width: 100%;
  margin: 5px 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
