/* Style umum */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #fff;
  color: #333;
}

/* Hero Section */
.hero {
  position: relative;
  height: 90vh; /* hampir penuh layar */
  background: url("images/gambarApotek1 - Copy.png") no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 56, 102, 0.6);
  z-index: 1;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
}

.hero-overlay h2 {
  font-size: 50px;
  font-weight: bold;
  margin-bottom: 15px;
}

.hero-overlay p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 25px;
  color: #f0f0f0;
}

.btn {
  background: #2e8b57;
  color: white;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
}

.btn:hover {
  background: #246b44;
}

/* Footer */
.footer {
  background: #003366;
  color: white;
  padding: 50px 20px 20px;
  margin-top: 40px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  gap: 15px;
  align-items: center;
}

.footer-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-col h3 {
  margin-bottom: 12px;
  font-size: 18px;
  color: white;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  text-decoration: none;
  color: #ddd;
}

.footer-col ul li a:hover {
  color: white;
}

.footer-col p {
  margin: 6px 0;
  font-size: 14px;
}

.social-links li {
  margin-bottom: 6px;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 10px;
}

.footer-col p, 
.footer-col a {
  font-size: 14px;
  color: white;
  text-decoration: none;
  margin: 6px 0;
  display: flex;
  align-items: center;
}

.footer-col i {
  margin-right: 8px;
  font-size: 16px;
  color: white;
}

.footer-col a:hover {
  color: white;
}

/* Halaman Login */
.login-container {
  max-width: 400px;
  margin: 80px auto;
  padding: 30px;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}

.login-container h2 {
  margin-bottom: 20px;
  color: #2e8b57;
}

.login-container input {
  width: 90%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.login-container button {
  background: #2e8b57;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
}

.login-container button:hover {
  background: #246b44;
}

.error {
  color: red;
  margin-bottom: 10px;
}

/* ==============================
   PRODUK SECTION
   ============================== */
.produk-section {
  background: #f9fdf9;
  padding: 60px 20px;
  text-align: center;
}

.produk-section h3 {
  font-size: 26px;
  color: #2e8b57;
  margin-bottom: 20px;
}

.produk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto 30px;
}

.produk-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-weight: bold;
  color: #0056b3;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.produk-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  background: #e8f5e9;
  color: #2e8b57;
}

.produk-btn {
  display: inline-block;
  padding: 12px 30px;
  background: #2e8b57;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.produk-btn:hover {
  background: #246b44;
}

/* ==============================
   ALAMAT SECTION
   ============================== */
.alamat {
  background: #fff;
  color: #333;
  padding: 60px 20px;
  text-align: center;
}

.alamat h3 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #0056b3;
}

.alamat-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Box tiap info alamat */
.alamat-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.alamat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.alamat-card i {
  font-size: 22px;
  color: #0056b3;
  background: #e6f4ea;
  border-radius: 50%;
  padding: 12px;
  flex-shrink: 0;
}

/* Isi teks dan link */
.alamat-card span,
.alamat-card a {
  font-size: 16px;
  color: #333;
  text-align: left;
  line-height: 1.5;
  text-decoration: none;
}

/* Khusus jam operasional */
.alamat-card .jam-operasional {
  color: #333;
  font-weight: 400; /* tidak bold */
}

.alamat-card .jam-minggu {
  display: block;
  color: #444;
  font-weight: 400;
  margin-top: 3px;
}

/* Link Maps */
.alamat-card a.maps-link {
  color: #008000;
  font-weight: 500;
}

.alamat-card a.maps-link:hover {
  color: #005700;
  text-decoration: underline;
}

/* Link WhatsApp */
.alamat-card a.wa-link {
  color: #25D366; /* hijau WA */
  font-weight: 500;
}

.alamat-card a.wa-link:hover {
  color: #1ebc5b;
  text-decoration: underline;
}

.alamat-map img {
  width: 100%;
  max-width: 900px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.alamat-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  justify-content: center;
}

.alamat-box {
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  flex: 1 1 400px;
  max-width: 450px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.alamat-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.alamat-box h4 {
  margin-bottom: 12px;
  font-size: 20px;
  color: #0056b3;
}

.alamat-box img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.alamat-card a:hover {
  color: #000000;
  text-decoration: underline;
}

.alamat-box img:hover {
  transform: scale(1.03);
  transition: transform 0.3s ease;
}


/* ==============================
   RESPONSIVE DESIGN
   ============================== */
@media (max-width: 992px) {
  .hero-overlay h2 {
    font-size: 36px;
  }
  .produk-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
  .alamat-gallery {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 70vh;
    background-position: center;
  }

  .hero-overlay h2 {
    font-size: 28px;
  }

  .hero-overlay p {
    font-size: 14px;
  }

  .btn {
    font-size: 14px;
    padding: 10px 20px;
  }

  .alamat-card {
    flex-direction: column;
    text-align: center;
  }

  .alamat-card i {
    margin-bottom: 10px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-overlay h2 {
    font-size: 24px;
  }

  .produk-card {
    font-size: 14px;
    padding: 15px;
  }

  .produk-btn {
    width: 100%;
    display: block;
    padding: 10px 0;
  }

  .alamat h3 {
    font-size: 22px;
  }

  .alamat-card span, 
  .alamat-card a {
    font-size: 14px;
  }

  .footer {
    padding: 30px 10px;
  }

  .footer-bottom {
    font-size: 12px;
  }
}
