/* Reset & font */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Quicksand", sans-serif;
}

html,
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  background: whitesmoke;
  color: white;
  padding: 15px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo {
  height: 50px;
  margin-right: 7px;
}
nav a {
  margin-left: 15px;
  text-decoration: none;
  color: rgb(56, 168, 96);
  font-weight: 600;
}
nav a.active {
  color: rgb(255, 130, 0);
}
nav a:hover {
  color: rgb(255, 130, 0);
}

/* CTA Button - Get in Touch */
nav a.cta-button {
  padding: 8px 16px;
  border: 2px solid rgb(255, 130, 0); /* garis kotak hijau */
  border-radius: 6px;
  color: rgb(56, 168, 96);
  font-weight: 700;
  transition: all 0.3s ease;
}

nav a.cta-button:hover {
  background: rgb(56, 168, 96); /* isi hijau saat hover */
  color: white; /* teks jadi putih */
  box-shadow: 0 0 10px rgba(56, 168, 96, 0.6); /* glow effect */
}

/* Tombol hamburger */
.menu-toggle {
  display: none; /* default sembunyi di desktop */
  background: none;
  border: none;
  font-size: 1.8rem;
  color: rgb(56, 168, 96);
  cursor: pointer;
}
/* Mobile styles */
@media (max-width: 768px) {
  nav {
    position: fixed;
    top: 0;
    right: -100%; /* sembunyikan di luar layar */
    height: 100%;
    width: 250px;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    align-items: start;
    padding: 80px 20px;
    gap: 20px;
    transition: right 0.3s ease;
  }
  nav.active {
    right: 0; /* muncul dari kanan */
  }
  nav a {
    display: block;
    margin: 10px 0;
    font-size: 1.2rem;
  }
  .menu-toggle {
    display: block; /* tampil di HP */
    z-index: 1001;
  }
}

main {
  flex: 1; /* isi sisa ruang agar footer selalu di bawah */
  display: flex;
  justify-content: center;
  padding: 20px;
}

/* Home-Section */
body.home-page header {
  background: rgba(1, 37, 13, 0.75);
  color: white;
  padding: 15px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body.home-page header .logo {
  height: 50px;
  margin-right: 7px;
}

body.home-page nav a {
  margin-left: 15px;
  text-decoration: none;
  color: white;
  font-weight: 600;
}

body.home-page nav a.active {
  color: rgb(255, 130, 0);
}
body.home-page nav a:hover {
  color: rgb(255, 130, 0);
}

body.home-page .menu-toggle {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
}

body.home-page {
  background: linear-gradient(to right, #6d9693, #0c2506);
}

body.home-page main {
  flex: 1; /* isi sisa ruang agar footer selalu di bawah */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

#home {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px; /* jarak antara gambar dan caption */
  flex-wrap: wrap; /* supaya responsif di layar kecil */
  text-align: center;
}
#home img {
  max-width: 350px;
  height: auto;
  filter: drop-shadow(0 0 12px rgba(0, 63, 10, 0.6));
}
#home h1 {
  font-size: 2rem;
  line-height: 1.4;
  letter-spacing: 3px;
  word-spacing: 5px;
  color: rgb(1, 35, 1);
  text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.75);
}

/*Blog Section */
body.blog-page {
  background: white;
}
.blog-container {
  display: flex;
  flex-direction: row;
  gap: 20px; /* jarak antar kolom */
  padding: 20px;
}
/* Konten artikel di kiri */
.blog-content {
  flex: 3; /* lebih besar, ambil ruang lebih banyak */
  background: rgba(255, 255, 255, 0.5);
  padding: 20px;
  border-radius: 8px;
}

/* Artikel item */
.blog-item {
  display: flex;
  align-items: center; /* teks sejajar dengan tinggi gambar */
  gap: 20px;
  margin-bottom: 30px;
}

.blog-item img {
  max-width: 30%;
  height: auto;
  border-radius: 75px;
  flex-shrink: 0;
}

.blog-item.left {
  flex-direction: row; /* gambar kiri */
}

.blog-item.right {
  flex-direction: row-reverse; /* gambar kanan */
}

.blog-item p {
  flex: 1;
  line-height: 1.6;
  text-indent: 25px; /* tetap ada indentasi */
  margin: 0;
}

/* Sidebar di kanan */
.blog-sidebar {
  flex: 1; /* lebih kecil */
  background: whitesmoke;
  padding: 10px;
  border-radius: 10px;

  /* Sticky Bar */
  position: sticky;
  top: 160px; /* jarak dari atas layar */
  height: fit-content; /* menempel sesuai konten */
}

.blog-sidebar ul {
  list-style: none;
  padding: 0;
}

.blog-sidebar li {
  margin-bottom: 10px;
}

.blog-sidebar a {
  text-decoration: none;
  color: rgba(0, 63, 10, 0.6);
}

.blog-sidebar a:hover {
  color: rgb(255, 130, 0);
}

/* ===== About Section ===== */
#about-us p {
  text-indent: 30px;
  line-height: 1.5;
  margin-bottom: 10px;
  text-align: justify;
}

/* ===== Form Section ===== */
#form-section {
  max-width: 380px; /* Lebih ramping */
  margin: 150px auto; /* Tengah + jarak atas */
  text-align: center;
  padding: 50px;
  color: #333;
}

#form-section h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: #063d1e;
}

#form-section .intro {
  font-size: 0.95rem;
  margin-bottom: 18px;
  color: #555;
}

/* Card Form */
#contact-form {
  background: #fff;
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border 0.3s, box-shadow 0.3s;
}

#contact-form input:focus,
#contact-form textarea:focus {
  border-color: #38a860;
  box-shadow: 0 0 6px rgba(56, 168, 96, 0.4);
  outline: none;
}

/* Button */
#contact-form button {
  padding: 10px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  border: 2px solid #38a860;
  background: #38a860;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

#contact-form button:hover {
  background: white;
  color: #38a860;
  box-shadow: 0 0 10px rgba(56, 168, 96, 0.4);
}

/* Info kontak */
.contact-info {
  margin-top: 15px;
  font-size: 0.9rem;
  color: #333;
  text-align: left;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 5px; /* jarak antara ikon & teks */
  margin: 6px 0;
}

.contact-info i {
  color: #38a860; /* warna ikon hijau */
  font-size: 1rem;
  min-width: 18px; /* biar rata */
  text-align: center;
}

/* Responsif */
@media (max-width: 480px) {
  #form-section {
    max-width: 90%;
    margin: 30px auto;
    padding: 10px;
  }

  #form-section h2 {
    font-size: 1.4rem;
  }

  #form-section .intro {
    font-size: 0.9rem;
  }
}

/* Footer */
footer {
  background: rgba(1, 37, 13, 0.75);
  color: white;
  text-align: center;
  padding: 5px;
}

footer a {
  color: #fff;
  text-decoration: none;
}

/* social icon umum */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 93px; /* ukuran kotak klik */
  border-radius: 8px; /* opsional */
  text-decoration: none;
  color: white; /* warna ikon default */
  transition: transform 0.18s ease, background-color 0.18s ease,
    color 0.18s ease;
  margin-left: 5px; /* jarak ke menu lain */
}

/* ikon ukuran */
.social-icon i {
  font-size: 15px;
}

/* efek hover */
.social-icon:hover {
  transform: translateY(-2px);
  color: #e1306c; /* contoh warna instagram */
  background: rgba(255, 255, 255, 0.06); /* subtle background */
}

