/* Reset dasar */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; line-height: 1.6; }

/* Navbar */
.navbar {
  background: rgba(7, 94, 32, 0.85); 
  color: rgb(0, 0, 0);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.nav-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  margin: auto;
}

.navbar ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.navbar ul li {
  margin-left: 20px;
}

.navbar ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.navbar ul li a:hover {
  color: #cddc39;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
}

.logo-img {
  height: 40px;
  width: auto;
  margin-right: 10px;
}

/* Default (semua device) */
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
}

/* Mode Desktop */
@media(min-width: 769px) {
  .nav-menu { display: flex; }
  .nav-menu li { margin-left: 20px; }
  .nav-menu li a { color: white; font-weight: bold; }
  .nav-menu li a:hover { color: #cddc39; }
  .hamburger { display: none; }
}

/* Tombol hamburger default hidden */
.hamburger { display: none; }

/* Mode Mobile */
@media(max-width: 768px) {
  .hamburger {
    display: block;
    cursor: pointer;
    font-size: 1.8rem;
    color: white;
  }
  .nav-menu {
    position: fixed;
    top: 60px;
    right: 100%;
    background: rgba(7, 94, 32, 0.95);
    flex-direction: column;
    width: 220px;
    max-width: 80%;
    padding: 15px;
    border-radius: 0 8px 8px 0 ;
    z-index: 999;
    transition: right 0.3s ease;
    display: none;
  }
  .nav-menu.active { right: 0; }
  .nav-menu li { margin: 12px 0; }
  .nav-menu li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    padding: 8px;
    display: block;
    border-radius: 5px;
  }
  .nav-menu li a:hover {
    background: #388e3c;
    color: #cddc39;
  }
}

/* Hero */
.hero {
  height: 100vh;
  background: url("images/hero.jpg") no-repeat center center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}
.hero-content {
  background: rgba(0,0,0,0.5);
  padding: 20px;
  border-radius: 10px;
}

/* Sections */
.section { padding: 60px 0; }
.section h2 { text-align: center; margin-bottom: 30px; }
.bg-light { background: #f4f4f4; }
.container { width: 90%; margin: auto; }

/* Section Perkenalan */
.intro-section {
  padding: 50px 20px;
  background: #f9f9f9;
}

.intro-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  max-width: 1100px;
  margin: auto;
  flex-wrap: wrap;
}

.intro-text {
  flex: 1;
  min-width: 300px;
}

.intro-text h2 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #075E20;
}

.intro-text p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

.intro-video {
  flex: 1;
  min-width: 300px;
}

.intro-video iframe {
  width: 100%;
  height: 315px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Keunggulan */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.about img {
  width: 100%;
  max-width: 700px;
  height: 450px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.keunggulan-checklist {
  list-style: none; /* Hilangkan bullet default */
  padding-left: 0;
  margin-top: 15px;
}

.keunggulan-checklist li {
  position: relative;
  padding: 10px 15px 10px 40px; /* Jarak untuk penanda */
  margin-bottom: 10px;
  line-height: 1.6;
  font-size: 1.05rem;
  background: #fff; /* Latar putih untuk setiap item */
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1); /* Sedikit bayangan */
  transition: transform 0.2s;
}

.keunggulan-checklist li:hover {
  transform: translateX(5px); /* Efek visual saat di-hover */
  background: #f1f8f4;
}

.keunggulan-checklist li::before {
  content: "\f058"; /* Menggunakan Font Awesome check-circle (Pastikan FA dimuat) */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #075E20; /* Warna hijau tema */
  font-size: 1.3rem;
}

/* Fasilitas */
.fasilitas-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.fasilitas-card {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.fasilitas-card h3 {
  margin-bottom: 15px;
  color: #075E20;
  text-align: center;
  font-size: 1.4rem;
}
.fasilitas-list { list-style: none; padding: 0; }
.fasilitas-list li {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.5;
}
@media(max-width: 768px){ .fasilitas-cards { grid-template-columns: 1fr; } }

/* Program */
.program-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}
.card img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  border-radius: 8px;
}
.price {
  font-size: 1.2rem;
  color: #075E20;
  font-weight: bold;
}

/* materi */
.curriculum-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.curriculum-block {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.curriculum-block h3 {
  margin-bottom: 15px;
  color: #075E20;
  text-align: center;
  font-size: 1.4rem;
}
.semester { margin-bottom: 20px; }
.semester h4 {
  color: #000000;
  margin-bottom: 10px;
  border-left: 4px solid #075E20;
  padding-left: 10px;
  font-size: 1.1rem;
}
.materi-list { list-style: none; padding-left: 0; }
.materi-list li {
  margin-bottom: 8px;
  padding-left: 25px;
  line-height: 1.5;
  position: relative;
}
.materi-list li::before {
  content: "";
  position: absolute;
  left: 0;
  color: #075E20;
  font-weight: bold;
}

/* Galeri */
.gallery-slider {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}
.gallery-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 20px;
  padding: 10px;
}
.gallery-track img {
  flex: 0 0 300px;            
  height: 180px;              
  object-fit: cover;          
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.gallery-slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
}
.prev { left: 10px; }
.next { right: 10px; }

/* Kontak */
.contact-info { list-style: none; font-size: 1rem; line-height: 1.8; }
.contact-info li { margin-bottom: 10px; }
.contact-info i { margin-right: 8px; color: #075E20; }

/* Footer */
footer {
  background: #212121;
  color: #e0e0e0;
  text-align: center;
  padding: 20px;
  margin-top: 20px;
}

/* WhatsApp floating */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
}
.whatsapp-float:hover { background-color: #20b358; }
/* Floating Chatbot Button */
#chatbot-button {
  position: fixed;
  bottom: 90px;
  right: 20px;
  background: #007bff;
  color: white;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 2000;
}
#chatbot-button:hover { background: #0056b3; }

/* Chatbot Window */
#chatbot-window {
  position: fixed;
  bottom: 160px;
  right: 20px;
  width: 320px;
  max-height: 450px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 3000;
  border: 2px solid rgba(7, 94, 32, 0.85);
}

/* Header tema hijau */
.chatbot-header {
  background: linear-gradient(135deg, rgba(7, 94, 32, 0.95), #2e7d32);
  color: white;
  padding: 12px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
}

/* Tombol close (X) modern */
#close-chatbot {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.2s;
}
#close-chatbot:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: rotate(90deg);
}

/* Chat area */
.chatbot-body {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  font-size: 14px;
}
.chatbot-footer {
  display: flex;
  padding: 10px;
  border-top: 1px solid #ddd;
}
.chatbot-footer input {
  flex: 1;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.chatbot-footer button {
  margin-left: 5px;
  padding: 5px 10px;
  background: #075E20;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.chatbot-footer button:hover { background: #064a19; }

/* Chat messages */
.bot-message, .user-message {
  margin: 5px 0;
  padding: 8px 12px;
  border-radius: 8px;
  max-width: 80%;
  line-height: 1.4;
}
.bot-message {
  background: #f1f8f4;
  border: 1px solid #c8e6c9;
  align-self: flex-start;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.user-message {
  background: rgba(7, 94, 32, 0.85);
  color: white;
  align-self: flex-end;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* Chatbot Form Style */
#chatbot-form {
  display: flex;
  flex-direction: column;
  padding: 15px;
}
#chatbot-form p { margin-bottom: 10px; font-size: 14px; }
#chatbot-form input {
  margin: 5px 0;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
#chatbot-form button {
  margin-top: 10px;
  padding: 10px;
  background: #075E20;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
#chatbot-form button:hover { background: #064a19; }

/* Quick Replies */
.quick-replies {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 15px 0;
}
.quick-btn {
  padding: 10px;
  border: 1px solid #ddd;
  background: #f9f9f9;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: background 0.3s, color 0.3s;
}
.quick-btn:hover {
  background: rgba(7, 94, 32, 0.9);
  color: white;
}

/* Utility hidden class */
.hidden { display: none !important; }

/* Responsive */
@media(max-width: 768px){
  .about { grid-template-columns: 1fr; }
  .program-cards,
  .curriculum-cards { grid-template-columns: 1fr; }
  .about img { height: 300px; }
  .card img { height: 200px; }
}

