* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}
body {
  line-height: 1.6;
  background-color: #f9f9f9;
  
  overflow-x: hidden;
  color: #333333;
  
  
}
html {
  scroll-behavior: smooth;
}

body, html {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

/* Header container */
.header-navbar {
  background: #0288d1;
  position: sticky;
  top: 0;
  z-index: 999;
  color: white;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

/* Logo kiri */
.logo {
  font-size: 1.8rem;
  font-weight: bold;
}

/* Hamburger kanan */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: white;
  margin: 4px 0;
  border-radius: 2px;
}

/* Menu utama */
nav {
  display: flex;
  gap: 20px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

nav a:hover {
  color: #b2ebf2;
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    position: absolute;    
    right: 20px;         
    top: 20px;  
  }

  nav {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #0288d1;
    flex-direction: column;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
  }

  nav.active {
    max-height: 300px;
  }

  nav a {
    padding: 15px;
    text-align: center;
  }
}

/* Hero Section */
.hero {
  background-image: url('img/bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  backdrop-filter: blur(3px);
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  background: none;
  backdrop-filter: none;
  padding: 50px 30px;
  border-radius: 0;
  text-align: center;
  max-width: 700px;
  box-shadow: none;
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 25px;
  color: #f1f1f1;
}

.hero-btn {
  display: inline-block;
  background: #33b5e5; /* Biru Muda */
  color: white;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

.hero-btn:hover {
  transform: translateY(-3px);
  background: #33b5e5;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade {
  animation: fadeIn 1s ease-in-out;
}

/* Section layout umum */
section:not(.hero) {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
}
section {
  scroll-margin-top: 100px; 
}

/* Tentang Kami */
#tentang {
  background-color: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px; 
  margin-bottom: 50px; 
  margin-top: 50px;
}

#tentang h2 {
  color: #333333; 
  font-size: 36px; 
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

#tentang h2::after {
  content: "";
  display: block;
  width: 80px; 
  height: 4px;
  background: #0288d1;
  margin: 10px auto 0;
  border-radius: 2px;
}

#tentang p {
  font-size: 18px;
  line-height: 1.8;
  color: #555; 
  margin: auto;
  max-width: 900px; 
  padding-top: 20px;
  text-align: justify; 
}




/* Layanan */
#layanan {
  background: #fff;
  padding: 60px 20px;
  text-align: center;
  border: 1px solid #ccc;
  box-shadow: none;
}

#layanan .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

#layanan h2 {
  color: #333;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
}

#layanan h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #0288d1;
  margin: 10px auto 0;
  border-radius: 2px;
}

#layanan p {
  font-size: 18px;
  line-height: 1.8;
  color: #333;
  margin: auto;
}


/* Produk */

.produk-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  gap: 15px;
  padding: 20px;
}

.produk-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 10px;
  text-align: center;
  transition: transform 0.3s;
}

.produk-card:hover {
  transform: translateY(-5px);
}

.produk-card img {
  max-width: 100%;
  height: 150px;
  object-fit: cover;
  margin-bottom: 8px;
  border-radius: 5px;
}

.produk-card h3 {
  margin: 8px 0 4px;
  font-size: 14px;
}

.produk-card p {
  color: #0288d1;
  font-weight: bold;
  font-size: 13px;
}

/* 🔹 Responsif di Tablet dan HP */
@media (max-width: 1024px) {
  .produk-container {
    grid-template-columns: repeat(3, 1fr); /* 3 Kolom di Tablet */
  }
}

@media (max-width: 768px) {
  .produk-container {
    grid-template-columns: repeat(3, 1fr); /* 2 Kolom di HP */
  }
}

@media (max-width: 500px) {
  .produk-container {
    grid-template-columns: 1fr; /* 1 Kolom di layar kecil */
  }
}



/* Kontak */
#kontak {
  padding: 60px 20px 80px; 
  background-color: #ffffff;
 margin-top: 50px;
  text-align: center;
}

#kontak iframe {
  width: 100%;
  height: 300px;
  border: none;
  margin-top: 20px;
  border-radius: 10px;
}

footer {
  background: #333; 
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 0;
}
.wa-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 75px; 
  height: 75px; 
  z-index: 100;
  cursor: pointer;
  transition: transform 0.3s ease;
  background-color: #25D366; 
  border-radius: 50%; 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.wa-float:hover {
  transform: scale(1.1);
}

.wa-float img {
  width: 60%; 
  height: 60%; 
 zzz
}


/* Responsive */
@media (max-width: 600px) {
  .header-navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-navbar nav a {
    display: block;
    margin: 5px 0;
  }

  .hero {
    height: auto;
    padding: 60px 20px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-content {
    padding: 30px 20px;
  }
}
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text {
  animation: fadeInUp 1s ease-out;
}


/* admin/*

/* Container Utama */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Poppins', sans-serif;
}

/* Judul Halaman */
h2 {
  text-align: center;
  margin-bottom: 30px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

/* Tombol Tambah Produk */
.add-button {
  display: inline-block;
  margin-bottom: 20px;
  padding: 10px 20px;
  background-color: #0288d1; /* Biru */
  color: white;
  font-size: 15px;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.add-button:hover {
  background-color: #0056b3;
}

/* Tabel */
table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  margin-top: 20px;
}

table, th, td {
  border: 1px solid #ccc;
}

th, td {
  padding: 12px 10px;
  font-size: 14px;
}

/* Header Tabel */
th {
  background-color: #0288d1; /* Biru */
  color: white;
  text-align: left;
}

/* Penyesuaian Alignment Kolom */
td:nth-child(1), /* No */
td:nth-child(2), /* Foto */
td:nth-child(6)  /* Aksi */ {
  text-align: center;
}

td:nth-child(4) { /* Harga */
  text-align: center;
}

td:nth-child(3), /* Nama Obat */
td:nth-child(5)  /* Deskripsi */ {
  text-align: center;
}

td {
  vertical-align: top;
  color: #333;
}

/* Baris Genap/Ganjil */
tr:nth-child(odd) {
  background-color: #f9f9f9;
}

tr:nth-child(even) {
  background-color: #fefefe;
}

tr:hover {
  background-color: #e6f0fa;
}

/* Gambar Produk */
td img {
  border-radius: 6px;
  max-width: 100px;
  max-height: 80px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Aksi (Edit & Hapus) */
.table-action a {
  text-decoration: none;
  font-weight: bold;
  margin: 0 6px;
  font-size: 18px;
}

.table-action i:hover {
  color: #007bff;
}

.table-action .delete:hover {
  color: #dc3545;
}

td a:first-child {
  color: #007bff;
}

td a:first-child:hover {
  color: #0056b3;
}

td a:last-child {
  color: #dc3545;
}

td a:last-child:hover {
  color: #a71d2a;
}

/* Responsif */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }

  th, td {
    padding: 10px;
    font-size: 13px;
  }

  .add-button {
    width: 100%;
    text-align: center;
  }

  td img {
    max-width: 70px;
    max-height: 70px;
  }
}


  /* Overlay */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

/* Modal Box */
.modal-content {
  background-color: #fff;
  margin: 60px auto;
  padding: 20px;
  width: 60%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.4s ease;
  font-family: 'Poppins', sans-serif;
}

/* Tombol Tutup */
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 28px;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #000;
}

/* Konten Modal */
.modal-body {
  text-align: center;
}

.modal-body img {
  width: 100%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 4 / 3; /* Menjaga rasio gambar */
  object-fit: cover;   /* Potong gambar jika perlu agar rapi */
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}


.modal-body h3 {
  margin: 0 0 10px;
  font-size: 1.5em;
}

.modal-body p {
  font-size: 1em;
  color: #555;
}

/* Responsif */
@media (max-width: 768px) {
  .modal-content {
    width: 90%;
    margin: 40px auto;
    padding: 15px;
  }

  .modal-close {
    font-size: 24px;
    top: 10px;
    right: 10px;
  }

  .modal-body img {
    max-width: 100%;
  }
}

/* Animasi */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


