/* ============================================
   Klinik Utama Rawat Inap Amanda
   Modern Healthcare Website
   ============================================ */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #0ea5e9;
  --accent: #22d3ee;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark: #0f172a;
  --gray-900: #1e293b;
  --gray-800: #334155;
  --gray-700: #475569;
  --gray-600: #64748b;
  --gray-500: #94a3b8;
  --gray-400: #cbd5e1;
  --gray-300: #e2e8f0;
  --gray-200: #f1f5f9;
  --gray-100: #f8fafc;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, #6366f1 0%, #0ea5e9 50%, #22d3ee 100%);
  --gradient-soft: linear-gradient(135deg, rgba(99,102,241,0.1) 0%, rgba(14,165,233,0.1) 100%);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-full: 9999px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--gray-100);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226,232,240,0.6);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--dark);
  flex-shrink: 0;
  margin-right: 18px;
  white-space: nowrap;
  z-index: 2;
}
.logo span {
  white-space: nowrap;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  justify-content: center;
  min-width: 0;
  flex-wrap: nowrap;
  overflow: hidden;
}

.nav-links a {
  font-weight: 500;
  color: var(--gray-700);
  font-size: 0.88rem;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 14px rgba(99,102,241,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99,102,241,0.5);
}

.btn-outline {
  background: transparent;
  border-color: var(--gray-300);
  color: var(--gray-700);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(99,102,241,0.05);
}

.btn-white {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.mobile-toggle {
  display: none;
  background: none;
  font-size: 1.5rem;
  color: var(--gray-700);
  cursor: pointer;
}

/* ========== HERO ========== */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(180deg, #eef2ff 0%, #f0f9ff 40%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.hero-badge span {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero h1 .highlight {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--gray-600);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.stat-item h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
}

.stat-item p {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin: 0;
}

.hero-image {
  position: relative;
}

.hero-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.hero-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.hero-float {
  position: absolute;
  background: white;
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-float.top {
  top: 30px;
  left: -20px;
}

.hero-float.bottom {
  bottom: 40px;
  right: -10px;
  animation-delay: 1s;
}

.float-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.float-icon.blue { background: #dbeafe; }
.float-icon.green { background: #d1fae5; }
.float-icon.purple { background: #ede9fe; }

.float-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--dark);
}

.float-text span {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* ========== STATS BAR ========== */
.stats-bar {
  background: white;
  padding: 48px 0;
  margin-top: -40px;
  position: relative;
  z-index: 10;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.04);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-card h3 {
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card p {
  color: var(--gray-600);
  font-weight: 500;
  margin-top: 4px;
}

/* ========== SECTIONS ========== */
.section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .badge {
  display: inline-block;
  background: var(--gradient-soft);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ========== SERVICES ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  background: var(--gradient-soft);
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.service-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ========== DOCTORS ========== */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.doctor-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  text-align: center;
}

.doctor-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.doctor-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: linear-gradient(135deg, #c7d2fe, #a5f3fc);
}

.doctor-info {
  padding: 20px 16px 24px;
}

.doctor-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.doctor-info .specialty {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.doctor-social {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.doctor-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  font-size: 0.9rem;
}

.doctor-social a:hover {
  background: var(--primary);
  color: white;
}

/* ========== APPOINTMENT ========== */
.appointment {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e3a5f 100%);
  color: white;
  border-radius: 32px;
  margin: 0 24px;
  padding: 64px;
  position: relative;
  overflow: hidden;
}

.appointment::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,0.3) 0%, transparent 70%);
  border-radius: 50%;
}

.appointment-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.appointment-info h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.appointment-info p {
  opacity: 0.85;
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.appointment-info .info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.appointment-info .info-item .icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.form-card {
  background: white;
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--shadow-xl);
  color: var(--gray-800);
}

.form-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  transition: var(--transition);
  color: var(--dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
  background: white;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-full {
  grid-column: 1 / -1;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--gradient);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99,102,241,0.4);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ========== TESTIMONIALS ========== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
}

.stars {
  color: #fbbf24;
  font-size: 1.1rem;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.testimonial-card p {
  color: var(--gray-700);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
}

.author-info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--dark);
}

.author-info span {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--dark);
  color: var(--gray-400);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer h4 {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
}

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

.footer ul a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

/* ========== MODAL ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 24px;
}

.modal-overlay.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.modal {
  background: white;
  border-radius: 20px;
  padding: 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  transform: scale(0.9);
  transition: var(--transition);
  box-shadow: var(--shadow-xl);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}

.modal-icon.success {
  background: #d1fae5;
  color: var(--success);
}

.modal-icon.error {
  background: #fee2e2;
  color: var(--danger);
}

.modal h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.modal p {
  color: var(--gray-600);
  margin-bottom: 24px;
  line-height: 1.6;
}

.modal-data {
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: left;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.modal-data div {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--gray-200);
}

.modal-data div:last-child {
  border-bottom: none;
}

.modal-data strong {
  color: var(--dark);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.6rem; }
  .doctors-grid { grid-template-columns: repeat(2, 1fr); }
  .appointment { padding: 48px 32px; }
  .appointment-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-outline { display: none; }
  .mobile-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-image { order: -1; }
  .hero-card img { height: 320px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .services-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .appointment { margin: 0 12px; padding: 36px 20px; border-radius: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .section-header h2 { font-size: 1.9rem; }
}

/* Loading spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Field error highlight */
.form-group input.field-error,
.form-group select.field-error {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.15) !important;
}
.field-error-msg {
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}
.field-error-msg.show {
  display: block;
}


/* PWA / Mobile extras */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    text-align: center;
  }
  .hero-content { order: 1; }
  .hero-image {
    order: 2;
    max-width: 260px;
    margin: 0 auto;
  }
  .hero {
    padding: 100px 0 48px !important;
  }
  .hero h1 {
    font-size: 1.85rem !important;
    line-height: 1.25 !important;
  }
  .hero p {
    font-size: 0.95rem !important;
    margin-left: auto;
    margin-right: auto;
    max-width: 100% !important;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px !important;
    margin-bottom: 28px !important;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
    gap: 20px !important;
  }
  .stat-item h3 { font-size: 1.35rem !important; }
  .stat-item p { font-size: 0.75rem !important; }
  .hero-card img {
    height: 280px !important;
  }
  /* Sembunyikan badge mengambang di HP agar tidak bertabrakan */
  .hero-float {
    display: none !important;
  }
  .nav-links { display: none; }
  .nav-actions .btn-primary {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  .nav-actions .btn-primary i { margin-right: 4px; }
  .appointment-grid { grid-template-columns: 1fr !important; }
  .appointment-info { display: none !important; }
  .form-card { max-width: 100% !important; }
  .doctors-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
  .container { padding-left: 16px; padding-right: 16px; }
  .section { padding: 40px 0; }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .services-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .doctors-grid { grid-template-columns: 1fr !important; }
  .hero h1 { font-size: 1.6rem !important; }
  .hero-badge { font-size: 0.75rem !important; padding: 6px 12px !important; }
  .logo span { font-size: 0.95rem; }
  .header .container, header .container { padding-left: 12px; padding-right: 12px; }
  .hero-card img { height: 240px !important; }
  .hero-image { max-width: 220px; }
}


/* Logo image */
.logo-img {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
  background: transparent !important;
  border: none;
  box-shadow: none;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.logo .logo-icon { display: none; }
.footer-brand .logo-img { height: 48px; }
@media (max-width: 480px) {
  .logo-img { height: 36px; }
  .logo span small { display: none; }
}

.hero-card img {
  object-position: center 20%;
}
@media (max-width: 900px) {
  .hero-card img {
    height: 200px !important;
    object-fit: cover;
    object-position: center center;
  }
}

/* Rawat Inap rooms */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.room-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.room-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(79,70,229,0.12);
}
.room-card.room-utama {
  border-color: #a5b4fc;
  background: linear-gradient(180deg, #eef2ff 0%, #fff 40%);
}
.room-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}
.room-card h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  color: #0f172a;
}
.room-sub {
  margin: 0 0 16px;
  font-size: 0.85rem;
  color: #64748b;
}
.room-facilities {
  list-style: none;
  padding: 0;
  margin: 0;
}
.room-facilities li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.9rem;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
}
.room-facilities li:last-child { border-bottom: none; }
.room-facilities li i {
  color: #10b981;
  font-size: 0.8rem;
}
@media (max-width: 900px) {
  .rooms-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .rooms-grid { grid-template-columns: 1fr; }
}


/* Rooms using services-grid style */
.rooms-as-services {
  grid-template-columns: repeat(4, 1fr) !important;
}
.rooms-as-services .room-facilities {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}
.rooms-as-services .room-facilities li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 0.88rem;
  color: #475569;
  border-bottom: 1px solid #f1f5f9;
}
.rooms-as-services .room-facilities li:last-child { border-bottom: none; }
.rooms-as-services .room-facilities li i { color: #10b981; font-size: 0.75rem; }
@media (max-width: 1000px) {
  .rooms-as-services { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 560px) {
  .rooms-as-services { grid-template-columns: 1fr !important; }
}


/* Doctor photo */
.doctor-img {
  height: 220px;
  background: linear-gradient(135deg, #c7d2fe, #a5f3fc);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.doctor-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Fokus ke wajah, bukan potong dahi saja */
  object-position: center 18%;
}
.doctor-img.no-photo,
.doctor-img:not(:has(img)) {
  font-size: 3rem;
  color: #6366f1;
}
.doctor-img i {
  font-size: 3rem;
  color: #6366f1;
}
@media (max-width: 768px) {
  .doctor-img {
    height: 200px;
  }
  .doctor-img img {
    object-position: center 22%;
  }
}
@media (max-width: 480px) {
  .doctor-img {
    height: 180px;
  }
  .doctor-img img {
    /* di layar kecil, sedikit lebih ke tengah agar wajah tidak ke atas */
    object-position: center 25%;
  }
}


/* Doctor click + jadwal modal */
.doctor-card-click { cursor: pointer; }
.doctor-card-click:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(79,70,229,0.15); }
.doctor-jadwal-hint {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #6366f1;
  font-weight: 600;
}
.modal-overlay.show {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.modal-overlay.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.jadwal-modal {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 25px 50px rgba(0,0,0,0.2);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: #f1f5f9;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  color: #64748b;
  line-height: 1;
}
.jadwal-modal-head {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}
.jadwal-modal-foto {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg,#c7d2fe,#a5f3fc);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 2rem;
  color: #6366f1;
}
.jadwal-modal-foto img { width: 100%; height: 100%; object-fit: cover; }
.jadwal-modal-head h3 { margin: 0 0 4px; font-size: 1.15rem; }
.jadwal-spesialis { margin: 0; color: #6366f1; font-size: 0.9rem; font-weight: 600; }
.jadwal-title { font-size: 0.95rem; margin: 0 0 12px; color: #0f172a; }
.jadwal-list { list-style: none; padding: 0; margin: 0; }
.jadwal-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: #334155;
}
.jadwal-list li i { color: #4f46e5; }
.jadwal-note { font-size: 0.8rem; color: #94a3b8; margin: 8px 0 0; }

/* Partners / asuransi */
.partners-section {
  background: #fff;
  border-top: 1px solid #f1f5f9;
}
.partners-section .partners-grid {
  margin-top: 8px;
}
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
}
.partner-badge {
  background: #fff;
  color: #0f172a;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  min-height: 48px;
}
.partner-badge span.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
@media (max-width: 600px) {
  .partner-badge { font-size: 0.75rem; padding: 10px 12px; }
}


/* Jadwal modal - isolated */
.jmodal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.jmodal.open { display: flex !important; }
.jmodal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.6);
}
.jmodal-box {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 20px;
  padding: 28px 22px;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}
.jmodal-x {
  position: absolute;
  top: 10px; right: 12px;
  width: 36px; height: 36px;
  border: none; border-radius: 50%;
  background: #f1f5f9; color: #64748b;
  font-size: 1.5rem; cursor: pointer; line-height: 1;
}
.jmodal-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.jmodal-foto {
  width: 72px; height: 72px; border-radius: 14px;
  background: linear-gradient(135deg,#c7d2fe,#a5f3fc);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0; font-size: 1.8rem; color: #6366f1;
}
.jmodal-foto img { width: 100%; height: 100%; object-fit: cover; }
.jmodal-head h3 { margin: 0 0 4px; font-size: 1.1rem; color: #0f172a; }
.jmodal-spec { margin: 0; color: #6366f1; font-weight: 600; font-size: 0.88rem; }
.jmodal-title { margin: 0 0 10px; font-size: 0.95rem; }
.jmodal-list { list-style: none; padding: 0; margin: 0; }
.jmodal-list li {
  padding: 10px 12px; margin-bottom: 8px; background: #f8fafc;
  border-radius: 10px; font-size: 0.9rem; color: #334155;
  display: flex; gap: 8px; align-items: center;
}
.jmodal-list li i { color: #4f46e5; }
.jmodal-note { font-size: 0.78rem; color: #94a3b8; margin: 6px 0 0; }


.partner-logo-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  max-width: none;
  box-shadow: none;
  transition: transform 0.2s, opacity 0.2s;
}
.partner-logo-card:hover { transform: scale(1.06); opacity: 0.92; }
.partner-logo-card img {
  max-width: 140px;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
  /* bantu logo gelap tetap terbaca di background gelap */
  filter: none;
}
.partners-grid {
  gap: 28px 36px;
}
@media (max-width: 600px) {
  .partner-logo-card { padding: 6px 8px; }
  .partner-logo-card img {
    max-width: 110px;
    max-height: 56px;
  }
  .partners-grid { gap: 18px 20px; }
}


/* Mobile nav open */
@media (max-width: 900px) {
  .nav-links.open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px 20px 24px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    gap: 4px;
    z-index: 1000;
    border-radius: 0 0 16px 16px;
  }
  .nav-links.open li { list-style: none; }
  .nav-links.open a {
    display: block;
    padding: 12px 8px;
    border-radius: 10px;
  }
  .nav-links.open a:hover {
    background: #f1f5f9;
  }
  .mobile-toggle { display: block; cursor: pointer; }
}


/* FAQ */
.faq-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 10px;
  padding: 4px 16px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #0f172a;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: #6366f1; font-size: 1.2rem; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: 0 0 14px; color: #64748b; font-size: 0.95rem; line-height: 1.6; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #e2e8f0;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.gallery-item:hover img { transform: scale(1.05); }
@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.blog-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}
.blog-icon { font-size: 2rem; margin-bottom: 12px; }
.blog-card h3 { margin: 0 0 10px; font-size: 1.1rem; }
.blog-card p { margin: 0; color: #64748b; font-size: 0.92rem; line-height: 1.6; }
@media (max-width: 700px) {
  .blog-grid { grid-template-columns: 1fr; }
}

.map-wrap { overflow: hidden; border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,0.08); }

.antrian-card {
  background: #eef2ff;
  border-radius: 14px;
  padding: 16px;
  margin-top: 10px;
  border: 1px solid #c7d2fe;
}
.antrian-card strong { color: #4f46e5; font-size: 1.3rem; }


/* Foto dokter: jangan potong wajah */
.doctor-img {
  height: 240px !important;
  background: linear-gradient(180deg, #e0e7ff 0%, #f0f9ff 100%) !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  overflow: hidden !important;
}
.doctor-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center bottom !important;
}
@media (max-width: 768px) {
  .doctor-img {
    height: 210px !important;
  }
}
@media (max-width: 480px) {
  .doctor-img {
    height: 190px !important;
  }
}


/* Statistik pengunjung */
.visitor-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  justify-content: center;
  align-items: center;
  padding: 20px 16px;
  margin: 8px 0 4px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.visitor-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e2e8f0;
}
.visitor-item i {
  font-size: 1.35rem;
  color: #818cf8;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(129,140,248,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.visitor-num {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.visitor-label {
  display: block;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 2px;
}
@media (max-width: 480px) {
  .visitor-stats { gap: 14px 20px; }
  .visitor-num { font-size: 1.1rem; }
}


/* input mobile fix */
.form-card input[type="text"],
.form-card input[type="password"],
.form-card input[type="tel"],
.form-card input[type="number"],
.form-card select,
.form-card textarea {
  font-size: 16px !important;
  pointer-events: auto !important;
  -webkit-user-select: text !important;
  user-select: text !important;
  touch-action: manipulation;
  position: relative;
  z-index: 2;
}
.form-card, #stepLogin, #loginForm {
  pointer-events: auto !important;
  position: relative;
  z-index: 2;
}


/* Iklan popup */
.iklan-popup {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.iklan-popup.open { display: flex !important; }
.iklan-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.7);
}
.iklan-box {
  position: relative;
  z-index: 1;
  max-width: min(420px, 92vw);
  max-height: 85vh;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.35);
}
.iklan-box img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
}
.iklan-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(15,23,42,0.75);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}


/* Berita slider di homepage — profesional */
.berita-slider-wrap {
  position: relative;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 0 56px;
  box-sizing: border-box;
}
.berita-slider {
  overflow: hidden;
  width: 100%;
  border-radius: 24px;
  background: #fff;
  box-shadow:
    0 4px 6px -1px rgba(15, 23, 42, 0.04),
    0 20px 40px -12px rgba(15, 23, 42, 0.12);
  position: relative;
  border: 1px solid rgba(226, 232, 240, 0.9);
}
.berita-track {
  display: flex;
  width: 100%;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.berita-slide {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 340px;
  overflow: hidden;
  background: #fff;
}
.berita-slide-media {
  position: relative;
  min-height: 340px;
  background: linear-gradient(145deg, #312e81 0%, #4f46e5 45%, #6366f1 100%);
  overflow: hidden;
}
.berita-slide-img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
  cursor: pointer;
}
.berita-slide:hover .berita-slide-img {
  transform: scale(1.04);
}
.berita-slide-img.placeholder,
.berita-slide-media.placeholder-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  color: rgba(255,255,255,0.85);
  font-size: 3.5rem;
}
.berita-slide-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, rgba(15,23,42,0.03) 100%);
  pointer-events: none;
}
.berita-slide-body {
  padding: 32px 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.berita-slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4f46e5;
  background: #eef2ff;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.berita-slide-meta {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}
.berita-slide-meta i {
  color: #a5b4fc;
  margin-right: 4px;
}
.berita-slide-body h3 {
  margin: 0 0 14px;
  font-size: 1.45rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: color 0.2s;
}
.berita-slide-body h3:hover {
  color: #4f46e5;
}
.berita-slide-body .isi {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.7;
  white-space: pre-line;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.berita-slide-cta {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #4f46e5;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  width: fit-content;
}
.berita-slide-cta:hover {
  gap: 12px;
}
.berita-slide-cta i {
  transition: transform 0.2s;
}
.berita-slide-cta:hover i {
  transform: translateX(4px);
}
.berita-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: #e2e8f0;
  z-index: 3;
  overflow: hidden;
}
.berita-progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #6366f1, #4f46e5);
  transition: width 0.1s linear;
}
.berita-progress.running > span {
  animation: beritaProgress 3s linear forwards;
}
@keyframes beritaProgress {
  from { width: 0; }
  to { width: 100%; }
}
.berita-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  color: #4f46e5;
  cursor: pointer;
  z-index: 2;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.berita-prev { left: 0; }
.berita-next { right: 0; }
.berita-nav:hover {
  background: #4f46e5;
  color: #fff;
  border-color: #4f46e5;
  box-shadow: 0 10px 28px rgba(79, 70, 229, 0.35);
  transform: translateY(-50%) scale(1.05);
}
.berita-nav:active {
  transform: translateY(-50%) scale(0.97);
}
.berita-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}
.berita-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #cbd5e1;
  cursor: pointer;
  padding: 0;
  transition: width 0.3s, background 0.3s, border-radius 0.3s;
}
.berita-dots button.on {
  background: linear-gradient(90deg, #6366f1, #4f46e5);
  width: 28px;
  border-radius: 8px;
}
.berita-dots button:hover:not(.on) {
  background: #94a3b8;
}
@media (max-width: 768px) {
  .berita-slider-wrap { padding: 0 44px; max-width: 100%; }
  .berita-slide {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .berita-slide-media,
  .berita-slide-img,
  .berita-slide-img.placeholder,
  .berita-slide-media.placeholder-wrap {
    min-height: 200px;
    height: 200px;
  }
  .berita-slide-body {
    padding: 22px 20px 24px;
  }
  .berita-slide-body h3 { font-size: 1.2rem; }
  .berita-nav { width: 40px; height: 40px; }
}

/* Detail berita popup */
.berita-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 150000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.berita-detail-modal.open { display: flex !important; }
.berita-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.55);
}
.berita-detail-box {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 18px;
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 24px 20px 20px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}
.berita-detail-x {
  position: absolute;
  top: 10px; right: 12px;
  width: 36px; height: 36px;
  border: none; border-radius: 50%;
  background: #f1f5f9; color: #64748b;
  font-size: 1.4rem; cursor: pointer; line-height: 1;
}
.berita-detail-box img {
  width: 100%; max-height: 280px; object-fit: cover;
  border-radius: 12px; margin-bottom: 14px;
}
.berita-detail-box h3 { margin: 0 0 8px; font-size: 1.25rem; }
.berita-detail-box .meta { font-size: 0.82rem; color: #94a3b8; margin-bottom: 12px; }
.berita-detail-box .full-isi {
  color: #334155; line-height: 1.7; white-space: pre-line; font-size: 0.95rem;
}
.berita-slide-img { cursor: pointer; }

/* nav dense screens — cegah tabrakan logo & menu */
@media (max-width: 1200px) {
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 0.8rem; }
  .logo { margin-right: 10px; font-size: 1.1rem; }
}
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex !important; }
}


/* ===== Skeleton loading ===== */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton-card {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  border: 1px solid #eef2f7;
  box-shadow: 0 4px 14px rgba(15,23,42,0.04);
}
.skeleton-avatar,
.skeleton-line,
.skeleton-block {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: 10px;
}
.skeleton-avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  margin-bottom: 14px;
}
.skeleton-line {
  height: 12px;
  margin-bottom: 10px;
}
.skeleton-line.w30 { width: 30%; }
.skeleton-line.w50 { width: 50%; }
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w70 { width: 70%; }
.skeleton-line.w80 { width: 80%; }
.skeleton-line.w90 { width: 90%; }
.berita-skeleton {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 340px;
}
.berita-skeleton .skeleton-block.media {
  min-height: 340px;
  border-radius: 0;
}
.berita-skeleton .skeleton-block.body {
  background: #fff;
  animation: none;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}
.berita-skeleton .skeleton-block.body .skeleton-line {
  margin: 0;
}
@media (max-width: 768px) {
  .berita-skeleton { grid-template-columns: 1fr; }
  .berita-skeleton .skeleton-block.media { min-height: 180px; height: 180px; }
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1), transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.doctor-card.reveal { transition-delay: 0s; }

/* ===== WhatsApp float ===== */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 1500;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff !important;
  padding: 14px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: waPulse 2.4s infinite;
}
.wa-float i { font-size: 1.55rem; }
.wa-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.55);
  color: #fff !important;
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 10px 36px rgba(37, 211, 102, 0.7); }
}
@media (max-width: 600px) {
  .wa-float-label { display: none; }
  .wa-float { padding: 16px; right: 16px; bottom: 18px; }
  .wa-float i { font-size: 1.7rem; }
}

/* ===== Modal actions ===== */
.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.modal-data {
  text-align: left;
  background: #f8fafc;
  border-radius: 14px;
  padding: 14px 16px;
  margin: 16px 0 8px;
  border: 1px solid #e2e8f0;
}
.modal-data > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 0.9rem;
}
.modal-data > div:last-child { border-bottom: none; }
.modal-data span { color: #64748b; }
.modal-data strong { color: #0f172a; text-align: right; }

/* ===== PWA install bar ===== */
.pwa-install-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 90px;
  z-index: 1400;
  max-width: 420px;
  margin: 0 auto;
}
.pwa-install-inner {
  background: #0f172a;
  color: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 12px 40px rgba(15,23,42,0.35);
}
.pwa-install-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.85rem;
}
.pwa-install-text strong { font-size: 0.95rem; }
.pwa-install-text span { opacity: 0.75; font-size: 0.8rem; }
.pwa-install-btns { display: flex; align-items: center; gap: 8px; }
.pwa-install-btns .btn-sm { padding: 8px 14px; font-size: 0.85rem; border-radius: 10px; }
.pwa-dismiss {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}
