/* Reset dasar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(to bottom, #0078ff 0%, #ffffff 40%);
  min-height: 100vh;
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  color: black;
  padding: 17px 16px;
  position: sticky;
  top: 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Tombol back */
.back-btn {
  position: absolute;
  color: black;
  left: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.back-btn:hover {
  transform: translateX(-3px);
}

/* SVG icon */
.back-btn svg {
  width: 22px;
  height: 22px;
}

/* Judul navbar */
.navbar-title {
  font-size: 18px;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
}

.intro-text {
  padding: 40px 20px 20px;
}

.intro-text p {
  font-family: "Montserrat", sans-serif;
  color: #fff;
  font-size: 20px;
  font-weight: 700; /* tebal modern */
  text-align: left;
  letter-spacing: 0.3px;
}

/* FAQ Section */
.faq-container {
  margin-top: 20px;
  padding: 0 16px 40px;
}

/* Kategori scroll */
.faq-categories {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.faq-categories::-webkit-scrollbar {
  display: none;
}

.faq-category {
  flex: 0 0 auto;
  background-color: #e8f1ff;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: 600;
  color: #0078ff;
}

.faq-category.active {
  background-color: #0078ff;
  color: #fff;
}

/* Daftar pertanyaan */
.faq-list {
  margin-top: 10px;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

.faq-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #e6e6e6;
  cursor: pointer;
  transition: background 0.2s;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item:hover {
  background: #f7faff;
}

.faq-question {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.faq-arrow {
  font-size: 20px;
  color: #0078ff;
  transition: transform 0.2s;
}

.faq-item:hover .faq-arrow {
  transform: translateX(3px);
}

/* Mode jawaban penuh */
.faq-answer-box.full {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  margin-top: 15px;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}

.faq-answer-box.full .faq-answer-content {
  position: relative;
}

.faq-answer-box.full h3 {
  font-size: 15px;
  font-weight: 700;
  color: #0078ff;
  margin-bottom: 10px;
}

.faq-answer-box.full p {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}

.faq-answer-box.full .close-answer {
  position: absolute;
  top: -8px;
  right: -4px;
  border: none;
  background: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  transition: 0.2s;
}

.faq-answer-box.full .close-answer:hover {
  color: #000;
}

.close-answer {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 20px;
  color: #727;
  cursor: pointer;
}

.close-answer:hover {
  color: #000;
}

.close-answer-bottom {
  display: inline-block;
  margin-top: 14px; /* jarak lebih dekat dari teks */
  padding: 6px 16px; /* ukuran tombol lebih kecil */
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.25);
}

.close-answer-bottom:hover {
  background-color: #0056b3;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 86, 179, 0.35);
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(5px);}
  to {opacity: 1; transform: translateY(0);}
}

.floating-buttons {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center; /* tombol tetap di tengah */
  gap: 40px; /* jarak antar tombol */
  z-index: 999;
  background-color: rgba(220, 220, 220, 0.3); /* lebih samar */
  padding: 15px 0;
  /* box-shadow dihapus */
}

.floating-buttons a {
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.25s ease;
}

/* Tombol biru muda samar */
.btn-about {
  background-color: rgba(0, 123, 255, 0.2);
  color: #0056b3;
  border: 1px solid rgba(0, 123, 255, 0.3);
}

.btn-about:hover {
  background-color: rgba(0, 123, 255, 0.35);
}

/* Tombol biru terang */
.btn-contact {
  background-color: #007bff;
  color: white;
  border: none;
}

.btn-contact:hover {
  background-color: #0056b3;
}
