/* ================= RESET & GLOBAL ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", Arial, sans-serif;
  background: #f9f9f9;
  color: #222;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ================= HEADER ================= */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fef5d7;
  padding: 15px 40px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 20px;
  font-weight: 700;
}

.navbar {
  display: flex;
  gap: 20px;
}

.navbar a {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

.user-icon {
  font-size: 18px;
}

/* ================= HERO ================= */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 80px 10%;
  min-height: 100vh;
  background: url("assets/img/tanah.jpg") center / cover no-repeat;
  color: #100f0f;
}

.hero-text {
  max-width: 600px;
}

.hero-text .tagline {
  color: #ffcc66;
  font-weight: 700;
  letter-spacing: 1px;
}

.hero-text h1 {
  font-size: 46px;
  line-height: 1.2;
  margin: 20px 0;
}

.hero-text p {
  margin-bottom: 25px;
  color: #ffe9a6;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  background: #f9c5a6;
  color: #111;
  border-radius: 8px;
  font-weight: 600;
}

/* ================= FEATURES ================= */
.features {
  display: flex;
  justify-content: space-around;
  padding: 40px 10%;
  background: #f9f1c8;
  text-align: center;
}

.feature h4 {
  margin-top: 10px;
  font-size: 16px;
}

.feature p {
  font-size: 13px;
  color: #555;
}


/* ================= LAYANAN ================= */
.layanan-section {
  padding: 70px 10%;
  background: #ffffff;
  text-align: center;
}

.layanan-section h2 {
  font-size: 30px;
  color: #2e7d32;
  margin-bottom: 10px;
}

.layanan-section p {
  color: #555;
  margin-bottom: 45px;
  font-size: 16px;
}

.layanan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
}

.layanan-card {
  background: #f9f9f9;
  padding: 30px 22px;
  border-radius: 16px;
  text-align: left;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  display: block;
}

.layanan-card i {
  font-size: 34px;
  color: #4CAF50;
  margin-bottom: 15px;
}

.layanan-card h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #222;
}

.layanan-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
}

.layanan-card span {
  font-size: 14px;
  font-weight: 600;
  color: #2e7d32;
}

.layanan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

/* Layanan utama / unggulan */
.layanan-card.highlight {
  background: linear-gradient(135deg, #4CAF50, #2e7d32);
  color: #fff;
}

.layanan-card.highlight i,
.layanan-card.highlight span,
.layanan-card.highlight h4,
.layanan-card.highlight p {
  color: #fff;
}


/* ================= PENYAKIT ================= */
.categories {
  padding: 60px 10%;
  text-align: center;
  background: #fffce8;
}

.categories h2 {
  font-size: 30px;
  margin-bottom: 10px;
}

.categories p {
  color: #555;
  margin-bottom: 40px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  font-size: 16px;
  margin: 10px 0;
}

.card a {
  font-size: 13px;
  color: #2a5d8f;
  font-weight: 600;
}

/* ================= TIPS & TRIK ================= */
.tips-section {
  padding: 60px 10%;
  background: #fffce8;
  text-align: center; 
}

.tips-section h2 {
  font-size: 30px;
  margin-bottom: 8px;
  color: #2e7d32;
}

.tips-section p {
  color: #555;
  margin-bottom: 35px;
  font-size: 16px;
}

.tips-section {
  padding: 60px 10%;
  background: #fffce8;
  text-align: center;
}

.tips-section h2 {
  font-size: 30px;
  margin-bottom: 10px;
  color: #2e7d32;
}

.tips-section p {
  color: #555;
  margin-bottom: 35px;
}

.accordion-header {
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 8px;
  transition: 0.3s;
}

.accordion-header:hover {
  background: #c8e6c9;
}

.accordion-header span {
  font-size: 18px;
  transition: transform 0.3s;
}

.accordion-item.active .accordion-header span {
  transform: rotate(45deg);
}

.accordion-content ul {
  text-align: left;
}


/* ================= TUTORIAL ================= */
.tutorial-section {
  padding: 60px 10%;
  background: #f9f9f9;
  text-align: center;
}

.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.tutorial-card iframe {
  width: 100%;
  height: 250px;
  border-radius: 12px;
}

/* ================= KONTAK ================= */
.contact-section {
  background: #f9f9f9;
  padding: 60px 20px;
  border-top: 3px solid #4CAF50;
  font-family: "Poppins", sans-serif;
}

.contact-section .container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.contact-section h2 {
  font-size: 2rem;
  color: #2e7d32;
  margin-bottom: 10px;
}

.contact-section p {
  color: #555;
  margin-bottom: 20px;
}

/* Social Media */
.social-icons {
  margin-bottom: 30px;
}

.social-icons a {
  color: #333;
  font-size: 1.5rem;
  margin: 0 10px;
  transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
  color: #4CAF50;
  transform: scale(1.2);
}

/* Map */
.map-container {
  margin: 30px 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Info Boxes */
.info-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.info-box {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.info-box:hover {
  transform: translateY(-5px);
}

.info-box i {
  font-size: 2rem;
  color: #4CAF50;
  margin-bottom: 10px;
}

.info-box h3 {
  color: #2e7d32;
  margin-bottom: 8px;
}

.info-box p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ================= FOOTER ================= */
.footer {
  background: #f9f9f9;
  padding: 60px 20px 25px;
  font-family: "Poppins", sans-serif;
  color: #333;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 35px;
}

/* Judul */
.footer-column h3,
.footer-column h4 {
  font-size: 15px;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: #2e7d32;
  position: relative;
}

.footer-column h3::after,
.footer-column h4::after {
  content: "";
  width: 35px;
  height: 2px;
  background: #2e7d32;
  display: block;
  margin-top: 6px;
}

/* Paragraf */
.footer-column p {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
}

/* List */
.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #555;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s ease;
}

.footer-column ul li a:hover {
  color: #2e7d32;
  padding-left: 5px;
}

/* Sosial Media */
.footer .social-icons {
  margin-top: 18px;
}

.footer .social-icons a {
  color: #555;
  font-size: 18px;
  margin-right: 12px;
  transition: 0.3s;
}

.footer .social-icons a:hover {
  color: #2e7d32;
  transform: translateY(-2px);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid #ddd;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #777;
  flex-wrap: wrap;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .features {
    flex-direction: column;
    gap: 25px;
  }
}

/* ================= DETAIL PENYAKIT ================= */
.detail-penyakit {
  max-width: 900px;
  margin: 50px auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  text-align: left;
}

.detail-penyakit h1 {
  font-size: 32px;
  margin-bottom: 10px;
  color: #2e7d32;
}

.detail-penyakit .kategori {
  font-size: 14px;
  color: #555;
  margin-bottom: 30px;
}

.detail-penyakit h3 {
  margin-top: 30px;
  font-size: 20px;
  color: #1b5e20;
}

.detail-penyakit ul {
  margin-top: 10px;
  margin-left: 20px;
}

.detail-penyakit ul li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.detail-penyakit p {
  margin-bottom: 15px;
  color: #333;
}

/* Tombol Kembali */
.btn-back {
  display: inline-block;
  margin-bottom: 25px;
  padding: 8px 16px;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-back:hover {
  background: #c8e6c9;
}


/* ================= foto ================= */
.img-detail {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 25px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.detail-penyakit a {
  display: inline-block;
  margin-bottom: 20px;
  color: #2e7d32;
  font-weight: 600;
}


.tips-accordion {
  max-width: 800px;
  margin: 20px auto;
}

.accordion-item {
  border: 1px solid #ddd;
  margin-bottom: 10px;
  border-radius: 6px;
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  background: #f5f5f5;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-content {
  display: none; /* ⬅️ PENTING */
  padding: 15px;
  background: #fff;
}

.accordion-item.active .accordion-content {
  display: block;
}


/* ================= FIX TAMPILAN LAYANAN ================= */
.layanan-section {
  padding: 80px 10%;
  background: #fff;
}

.layanan-section h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.layanan-section > p {
  text-align: center;
  color: #666;
  margin-bottom: 50px;
}

/* GRID CARD */
.layanan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

/* CARD */
.layanan-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 35px 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  text-decoration: none;
  color: #222;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* GARIS AKSEN */
.layanan-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 5px;
  width: 100%;
  background: linear-gradient(90deg, #4CAF50, #2e7d32);
}

/* ICON */
.layanan-card i {
  font-size: 40px;
  color: #4CAF50;
  margin-bottom: 18px;
  display: block;
}

/* JUDUL */
.layanan-card h4 {
  font-size: 20px;
  margin-bottom: 10px;
}

/* DESKRIPSI */
.layanan-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
}

/* LINK */
.layanan-card span {
  font-weight: 600;
  color: #2e7d32;
}

/* HOVER */
.layanan-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}

/* CARD UNGGULAN */
.layanan-card.highlight {
  background: linear-gradient(135deg, #4CAF50, #2e7d32);
  color: #fff;
}

.layanan-card.highlight i,
.layanan-card.highlight h4,
.layanan-card.highlight p,
.layanan-card.highlight span {
  color: #fff;
}
