/* ===================================
   RSIA SOERYA - CLEAN SYSTEM
   Standalone CSS (No Template)
=================================== */

/* ========= RESET ========= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========= BRAND COLORS ========= */
:root {
  --primary: #69259c;
  --dark: #222;
  --gray: #666;
  --light-bg: #f3f3f3;
}

/* ========= GLOBAL ========= */
body {
  font-family: 'Poppins', Arial, sans-serif;
  background: #ffffff;
  color: var(--dark);
  line-height: 1.6;
  padding-top: 80px; /* For fixed navbar */
}

.wrapper {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ========= NAVBAR ========= */
.navbar {
  background: #ffffff;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: bold;
  font-size: 20px;
  color: var(--accent);
}

.logo img {
  height: 44px;   /* sesuaikan */
  width: auto;
  display: block;
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.nav-links a:hover {
  color: #69259c;
}

.navbar .btn-reservasi {
  background-color: #69259c;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: 0.2s ease;
}

.navbar .btn-reservasi:hover {
  opacity: 0.9;
}

/* HAMBURGER BUTTON */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 992px) {

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    gap: 0;
    display: none;
    padding: 20px 0;
    border-top: 1px solid #eee;
  }

  .nav-links li {
    text-align: center;
    padding: 12px 0;
  }

  .nav-links.active {
    display: flex;
  }

  .btn-reservasi {
    display: none;
  }

  .nav-toggle {
    display: block;
  }
}

/* ========= HERO ========= */
.hero {
  background: url('/assets/images/bg-gedung.jpg') center/cover no-repeat;
  color: #fff;
  padding: 80px 0;   /* ukuran tetap dari teks + padding */
  text-align: center;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero p {
  font-size: clamp(18px, 2.3vw, 24px);
  line-height: 1.6;
  max-width: 820px;
  margin: 0 auto;
}


/* ========= SECTION ========= */
.section {
  padding: 70px 0;
}

.section-title {
  margin-bottom: 40px;
}

.section-title h2 {
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title p {
  color: var(--gray);
}

/* ========= CARD GRID ========= */
.card-grid {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.card {
  flex: 1;
  min-width: 280px;
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  border-top: 5px solid var(--primary);
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.card small {
  display: block;
  margin-bottom: 10px;
  color: var(--gray);
}

.card p {
  color: var(--dark);
  margin-bottom: 15px;
}

.card a {
  text-decoration: none;
  font-weight: bold;
  color: var(--secondary);
}

.card a:hover {
  color: var(--accent);
}

/* Layanan Kami */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}

.service-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  border-top: 4px solid var(--primary);
  transition: 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.partner-list {
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
}

/* ========= DOCTOR SECTION ========= */

.poli-section {
  margin-bottom: 60px;
}

.poli-title {
  margin-bottom: 25px;
  color: var(--accent);
  font-weight: 600;
}

.doctor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
}

.doctor-card {
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  text-align: center;
  transition: 0.3s ease;
}

.doctor-card:hover {
  transform: translateY(-5px);
}

.doctor-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}

.doctor-name {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
}

.doctor-spec {
  display: block;
  font-size: 14px;
  color: var(--gray);
}

/* ========= RESPONSIVE ========= */
@media (max-width: 768px) {
  .nav-links {
    gap: 15px;
    font-size: 14px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .card-grid {
    flex-direction: column;
  }
}

/* ========= DOCTOR GALLERY STYLE ========= */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.gallery-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: 0.3s ease;
}

.gallery-item:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

/* BOX FOTO 3x4 */
.gallery-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.gallery-item .desc {
  padding: 12px;
  text-align: center;
  font-size: 14px;
}