/* --- Reset dan Variabel Global --- */
:root {
  --primary-color: #0d47a1;
  /* Biru tua yang elegan */
  --secondary-color: #ffc107;
  /* Kuning/Emas (seperti lebah/K-Bee) */
  --text-color: #333;
  --text-light: #f4f4f4;
  --bg-color: #ffffff;
  --surface-color: #f9f9f9;
  --header-height: 70px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  padding-top: var(--header-height);
}

/* --- Perbaikan: Sembunyikan Widget Blog1 Wajib --- */
/* Kita tetap membutuhkannya agar Blogspot mau merender halaman */
.main-blog-section {
  display: none;
  visibility: hidden;
  height: 0;
  width: 0;
  margin: 0;
  padding: 0;
}

/* --- Utilitas --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

section:nth-of-type(even) {
  background-color: var(--surface-color);
}

h1,
h2,
h3 {
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--primary-color);
}

h1 {
  font-size: 2.8rem;
}

h2 {
  font-size: 2.2rem;
  text-align: center;
  color: #ff5722;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.cta-button {
  display: inline-block;
  background: var(--secondary-color);
  color: rgba(0,0,0,0.8);
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-3px);
}

/* --- Header dan Navigasi --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* Safari support */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: top 0.3s;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  height: 50px;
  width: auto;
}

.logo span {
  color: var(--secondary-color);
}

.image-logo {
  height: 5em;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav-links a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.1rem;
  position: relative;
  padding: 5px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--primary-color);
  transition: all 0.3s ease-in-out;
}

/* --- Hero Section --- */
#home {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-height));
  text-align: center;
  /* Ganti 'url' dengan URL gambar Anda yang sudah di-hosting */
  background: linear-gradient(rgba(29, 130, 32, 0.243), rgba(245, 249, 254, 0.157)), url('/assets/img/monumen-tugu-malang.webp') no-repeat center center/cover;
  background-size: cover;
  background-position: center;
  color: var(--bg-color);
}

#home .hero-content {
  max-width: 800px;
}

#home h1 {
color: var(--bg-color);
font-size: 3.5rem;
margin-bottom: 10px;
text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

#home h1 span {
color: var(--secondary-color);
text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

#home p {
font-size: 1.4rem;
margin-bottom: 30px;
font-weight: 300;
text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* --- Layanan Section --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: var(--bg-color);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-card .icon {
  display: none;
  /* Sembunyikan ikon emoji */
}

/* GAMBAR BARU UNTUK KARTU LAYANAN */
.service-card .service-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  /* Rounded corners */
  margin-bottom: 20px;
}

.service-card h3 {
  margin-bottom: 15px;
}

.service-card .service-content {
  flex-grow: 1;
  /* Dorong daftar ke bawah */
}

/* --- STYLE BARU UNTUK SUB-LAYANAN --- */
.service-card ul {
  /* PERBAIKAN: Menggunakan kode CSS \2714 agar tidak dirusak XML */
  list-style-type: '\2714';
  /* Simbol checkmark (&#10004;) */
  margin: 0px 0 15px 25px;
  /* Padding kiri untuk list */
  text-align: left;
  font-size: 1rem;
  color: #555;
  /* Warna teks sub-layanan */
}

.service-card li {
  padding-left: 10px;
  /* Jarak antara bullet dan teks */
  margin-bottom: 5px;
  /* Jarak antar item list */
}

/* --- Testimonials Section (Menggantikan Galeri) --- */
/* --- Style Rating Baru --- */
.rating {
  color: var(--secondary-color);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.rating span {
  display: inline-block;
  /* Agar bintang tidak terpisah aneh */
}

/* --- Style Slider Baru --- */
.testimonial-slider-container {
  width: 100%;
  overflow: hidden;
  margin-top: 40px;
  position: relative;
  /* Diperlukan untuk tombol absolute */
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  /* Transisi untuk slide */
}

.testimonial-card {
  background: var(--bg-color);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  padding: 30px;
  display: flex;
  flex-direction: column;
  width: 350px;
  /* Lebar kartu yang pasti */
  margin: 15px;
  /* Jarak antar kartu */
  flex-shrink: 0;
  /* Mencegah kartu menyusut */
  min-height: 250px;
  /* Tinggi minimum agar rapi */
}

.testimonial-card p {
  font-style: italic;
  font-size: 1.1rem;
  flex-grow: 1;
  /* Membuat semua kartu sama tinggi */
  margin-bottom: 20px;
}

.testimonial-card .author {
  font-weight: bold;
  color: var(--primary-color);
  font-style: normal;
  text-align: right;
}

/* --- Tombol Slider Baru --- */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.slider-btn:hover {
  background-color: var(--secondary-color);
}

.slider-btn#prevBtn {
  left: 10px;
  display: none;
  /* Sembunyi di awal */
}

.slider-btn#nextBtn {
  right: 10px;
}

/* --- Tentang Kami --- */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-content img {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* --- Kontak Section --- */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Diubah dari 1fr 1.5fr */
  gap: 40px;
  margin-top: 40px;
}

.contact-info p {
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.contact-info strong {
  color: var(--primary-color);
}

/* --- STYLE BARU UNTUK PETA --- */
.map-container {
  width: 100%;
  height: 400px;
  /* Sesuaikan tinggi peta */
  border-radius: 10px;
  overflow: hidden;
  /* Agar iframe mengikuti border-radius */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Footer --- */
.footer {
  background: var(--primary-color);
  color: var(--text-light);
  text-align: center;
  padding: 30px 20px;
}

.footer p {
  margin: 0;
  font-size: 1rem;
}

.footer a {
  color: var(--secondary-color);
  text-decoration: none;
}

/* --- Sembunyikan ikon edit cepat Blogger --- */
.quickedit {
  display: none;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  h1 {
    font-size: 2.5rem;
  }

  #home h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  p {
    font-size: 1rem;
  }

  .container {
    padding: 0 15px;
  }

  section {
    padding: 60px 0;
  }

  /* --- Mobile Nav --- */
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    /* Mulai dari luar layar */
    width: 70%;
    height: 100vh;
    background: var(--bg-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  }

  .nav-links.active {
    right: 0;
    /* Munculkan menu */
  }

  .nav-links a {
    font-size: 1.3rem;
  }

  /* --- Animasi Hamburger --- */
  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* --- Grid Stacking --- */
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }

  .about-content img {
    order: -1;
    /* Pindahkan gambar ke atas di mobile */
    margin-bottom: 20px;
  }

  /* --- Penyesuaian Slider di Mobile --- */
  .testimonial-card {
    width: 280px;
    /* Perkecil kartu di mobile */
    margin: 10px;
    padding: 25px;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .slider-btn#prevBtn {
    left: 5px;
  }

  .slider-btn#nextBtn {
    right: 5px;
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}