/* ==========================
   GLOBAL STYLES
========================== */
:root {
  --primary: #3baea0;
  --secondary: #77d8d8;
  --accent: #e0f7f6;
  --text: #333;
  --bg: #f9f9f9;
  --white: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ==========================
   NAVBAR
========================== */
header {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 45px;
  height: 45px;
}

.logo h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--primary);
  font-size: 20px;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.btn-nav {
  background: var(--primary);
  color: var(--white) !important;
  padding: 8px 16px;
  border-radius: 20px;
  transition: 0.3s;
}

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

/* ==========================
   HERO SECTION
========================== */
.page-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  text-align: center;
  color: var(--white);
  padding: 100px 20px;
}

.page-hero .hero-overlay {
  background: rgba(0, 0, 0, 0.4);
  padding: 50px 20px;
  border-radius: 10px;
}

.page-hero h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 36px;
  margin-bottom: 10px;
}

.page-hero p {
  font-size: 18px;
}

/* Custom background per page */
.tentang-hero { background-image: url('assets/images/banner.png'); }
.layanan-hero { background-image: url('assets/images/banner.png'); }
.dokter-hero  { background-image: url('assets/images/banner.png'); }
.galeri-hero  { background-image: url('assets/images/banner.png'); }
.berita-hero  { background-image: url('assets/images/banner.png'); }
.daftar-hero  { background-image: url('assets/images/banner.png'); }
.kontak-hero  { background-image: url('assets/images/banner.png'); }

/* ==========================
   CONTAINER & SECTION
========================== */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 60px 20px;
}

section h3 {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 40px;
}

/* ==========================
   LAYANAN & CARD GRID
========================== */
.layanan-grid, .fasilitas-grid, .dokter-grid, .galeri-grid, .berita-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.layanan-card, .fasilitas-card, .dokter-card, .berita-card {
  background: var(--white);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}

.layanan-card:hover,
.fasilitas-card:hover,
.dokter-card:hover,
.berita-card:hover {
  transform: translateY(-5px);
}

.layanan-card i {
  font-size: 40px;
  color: var(--primary);
  margin-bottom: 15px;
}

.fasilitas-card img, 
.galeri-grid img {
  width: 100%;
  border-radius: 12px;
  height: 200px;
  object-fit: cover;
}

/* ==========================
   DOKTER SECTION
========================== */
.dokter-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
}

.dokter-card h4 {
  font-weight: 600;
  color: var(--primary);
}

/* ==========================
   GALERI
========================== */
.galeri-grid img {
  border: 4px solid var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.galeri-grid img:hover {
  transform: scale(1.03);
}

/* ==========================
   BERITA
========================== */
.berita-card img {
  width: 100%;
  height: 180px;
  border-radius: 10px;
  object-fit: cover;
}

.berita-card h4 {
  font-family: 'Poppins', sans-serif;
  color: var(--primary);
  margin: 15px 0 10px;
}

/* ==========================
   FORM PENDAFTARAN
========================== */
form {
  max-width: 700px;
  margin: auto;
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

form .form-group {
  margin-bottom: 20px;
}

form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

form input, form select, form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
}

form button {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: 0.3s;
}

form button:hover {
  background: var(--secondary);
}

/* ==========================
   KONTAK
========================== */
.kontak-info {
  text-align: center;
}

.kontak-info p {
  margin-bottom: 8px;
  font-size: 16px;
}

/* ==========================
   FOOTER
========================== */
/* footer {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 20px 0;
  font-size: 15px;
  margin-top: 40px;
} */

/* ==========================
   RESPONSIVE
========================== */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
  }

  .nav-links {
    justify-content: center;
    gap: 10px;
  }

  .page-hero h2 {
    font-size: 28px;
  }

  form {
    padding: 20px;
  }
}

/* ==========================
   FOOTER (MODERN)
========================== */
.footer {
  background: var(--primary);
  color: var(--white);
  padding: 60px 20px 30px;
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.footer h4 {
  font-family: 'Poppins', sans-serif;
  margin-bottom: 15px;
  color: var(--white);
  font-size: 18px;
  border-bottom: 2px solid var(--secondary);
  display: inline-block;
  padding-bottom: 5px;
}

.footer p {
  font-size: 15px;
  line-height: 1.6;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  transition: 0.3s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact i {
  margin-right: 8px;
  color: var(--accent);
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons a {
  color: var(--white);
  background: rgba(255,255,255,0.2);
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: 0.3s;
}

.social-icons a:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 15px;
  font-size: 14px;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
}

/* ==========================
   INSTAGRAM GRID (RESPONSIVE)
========================== */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  justify-items: center;
}

.instagram-media {
  width: 100% !important;
  max-width: 400px !important;
  min-width: 280px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow: hidden;
}

/* Transisi halus saat hover */
.instagram-media:hover {
  transform: scale(1.02);
  transition: 0.3s ease;
}

/* Responsif penuh */
@media (max-width: 600px) {
  .instagram-grid {
    grid-template-columns: 1fr;
  }
}

