:root {
  --tosca: #14b8a6;
  --azure: #0ea5e9;
  --gradient: linear-gradient(135deg, var(--tosca) 0%, var(--azure) 100%);
  --gradient-soft: linear-gradient(135deg, #f0fdfa 0%, #e0f2fe 100%);
  --tosca-dark: #0d9488;
  --azure-dark: #0284c7;
  --tosca-soft: #ccfbf1;
  --azure-soft: #e0f2fe;
  --tosca-pale: #f0fdfa;
  --ink: #0f172a;
  --muted: #64748b;
  --white: #ffffff;
  --radius: clamp(16px, 3vw, 20px);
  --shadow: 0 10px 40px rgba(14,165,233,0.10);
  --shadow-lg: 0 25px 60px rgba(20,184,166,0.15);
  --container: min(92%, 1200px);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Inter',sans-serif;
  color: var(--ink);
  background: #fafbfc;
  overflow-x: hidden;
}
h1,
h2,
h3,
h4 {
  font-family: 'Montserrat',sans-serif;
  font-weight: 700;
  line-height: 1.2;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.container {
  width: var(--container);
  margin-inline: auto;
}

/* NAVBAR */
.nav-premium {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(14,165,233,0.08);
  padding: 14px 0;
  transition: all .3s ease;
}
.nav-premium.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 12px 40px rgba(14,165,233,0.08);
  padding: 10px 0;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat';
  font-weight: 700;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}
.logo-pill {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(14,165,233,0.25);
  flex-shrink: 0;
}
.logo-pill i {
  font-size: 1.4rem;
  color: #fff;
}
.navbar .nav-link {
  color: var(--ink)!important;
  font-weight: 500;
  font-size: clamp(.85rem, 1.5vw, .95rem);
  margin: 0 3px;
  padding: 9px 14px!important;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all .25s ease;
  position: relative;
  white-space: nowrap;
}
.navbar .nav-link i {
  font-size: 1.1rem;
  opacity: .8;
}
.navbar .nav-link:hover {
  color: var(--azure-dark)!important;
  background: var(--gradient-soft);
}
.navbar .nav-link.active {
  color: var(--azure-dark)!important;
  background: var(--gradient-soft);
  font-weight: 600;
}
.navbar .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  border-radius: 3px;
  background: var(--gradient);
}
.btn-login {
  background: var(--gradient);
  color: #fff!important;
  border-radius: 50px;
  padding: 10px 22px!important;
  font-size: clamp(.85rem, 1.5vw, .95rem);
  font-weight: 600;
  border: none;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 8px 24px rgba(14,165,233,0.25);
  transition: .3s;
  white-space: nowrap;
}
.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(2,132,199,0.35);
  color: #fff!important;
}
.custom-toggler {
  border: none;
  background: transparent;
  padding: 8px;
}
.custom-toggler span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--azure-dark);
  margin: 5px 0;
  border-radius: 2px;
  transition: .3s;
}
.custom-toggler[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(6px,6px);
}
.custom-toggler[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.custom-toggler[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(6px,-6px);
}
.nav-item.dropdown {
  position: relative;
}
.dropdown-toggle::after {
  margin-left: 5px;
  border-top: .35em solid;
  border-right: .35em solid transparent;
  border-left: .35em solid transparent;
  transition: .3s;
}
.nav-item.dropdown.show .dropdown-toggle::after {
  transform: rotate(180deg);
}
.dropdown-premium {
  border: none;
  border-radius: 16px;
  padding: 8px;
  margin-top: 12px;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(14,165,233,0.18);
  border: 1px solid rgba(14,165,233,0.08);
  min-width: 200px;
}
.dropdown-premium .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  transition: .2s;
}
.dropdown-premium .dropdown-item i {
  font-size: 1.05rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.dropdown-premium .dropdown-item:hover,
.dropdown-premium .dropdown-item.active {
  background: var(--gradient-soft);
  color: var(--azure-dark);
}

/* SECTION */
section {
  padding: clamp(60px, 8vw, 100px) 0;
  border-bottom: 1px solid rgba(14,165,233,0.06);
}
section:last-of-type {
  border-bottom: none;
}
.section-title {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 60px);
  padding: 0 16px;
}
.section-title h2 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  margin-bottom: 14px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.section-title p {
  color: var(--muted);
  max-width: 650px;
  margin: 0 auto;
  font-size: clamp(.95rem, 2vw, 1.1rem);
}
.bg-soft {
  background: var(--gradient-soft);
}

/* GRID */
.grid-3,
.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media(min-width:640px) {
  .grid-3 {
    grid-template-columns: repeat(2,1fr);
  }
}
@media(min-width:992px) {
  .grid-3 {
    grid-template-columns: repeat(3,1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(4,1fr);
  }
}

/* CARD */
.card-rs {
  background: #fff;
  padding: clamp(20px, 4vw, 34px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(14,165,233,0.06);
  transition: .4s;
}
.card-rs:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.card-rs .icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-soft);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-rs .icon i {
  font-size: 1.6rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.doctor-card {
  text-align: center;
  padding: clamp(24px, 4vw, 32px) 16px;
}
.doctor-card img {
  width: clamp(100px, 20vw, 130px);
  height: clamp(100px, 20vw, 130px);
  border-radius: 50%;
  margin: 0 auto 16px;
  border: 5px solid #fff;
  box-shadow: 0 8px 24px rgba(14,165,233,0.12);
  object-fit: cover;
  transition: .3s;
}
.doctor-card .spesialis {
  background: var(--gradient-soft);
  color: var(--azure-dark);
  font-weight: 600;
  font-size: clamp(.8rem, 1.8vw, .9rem);
  margin-bottom: 14px;
  padding: 5px 14px;
  border-radius: 50px;
  display: inline-block;
}
.btn-outline-rs {
  padding: 14px 28px;
  font-size: clamp(.9rem, 1.8vw, 1rem);
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: .3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  background: linear-gradient(#fff,#fff) padding-box, var(--gradient) border-box;
  color: var(--azure-dark);
}
.btn-outline-rs:hover {
  background: var(--gradient);
  color: #fff;
  transform: translateY(-2px);
}

/* BERITA */
.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: .4s;
  border: 1px solid rgba(14,165,233,0.06);
  height: 100%;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.news-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .5s;
}
.news-card:hover .news-img img {
  transform: scale(1.08);
}
.news-body {
  padding: clamp(16px, 3vw, 24px);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-meta {
  font-size: .8rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.news-link {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  text-decoration: none;
  font-size: .85rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
}

/* CTA */
.cta-band {
  margin: 0 16px;
  padding: clamp(50px, 10vw, 90px) clamp(20px, 5vw, 50px);
  background: var(--gradient);
  border-radius: 28px;
  text-align: center;
  color: #fff;
}
.cta-band h2 {
  font-size: clamp(1.6rem, 4.5vw, 2.8rem);
  margin-bottom: 18px;
}
.cta-band .btn-primary-rs {
  background: #fff;
  color: var(--azure-dark);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  box-shadow: var(--shadow-lg);
}
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 40px 16px 20px;
  margin-top: 60px;
  text-align: center;
  font-size: .9rem;
}

/* ===== FLOATING WA POPUP ===== */
.wa-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.wa-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  cursor: pointer;
  transition: .3s;
  border: none;
}
.wa-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(37,211,102,0.5);
}
.wa-toggle i {
  font-size: 2rem;
  color: #fff;
}
.wa-popup {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  padding: 16px;
  width: 300px;
  max-width: calc(100vw - 48px);
  display: none;
  animation: slideUp .3s ease;
}
.wa-popup.active {
  display: block;
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.wa-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}
.wa-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.wa-header h6 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}
.wa-header p {
  margin: 0;
  font-size: .8rem;
  color: var(--muted);
}
.wa-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: .2s;
  margin-bottom: 8px;
}
.wa-item:hover {
  background: var(--gradient-soft);
}
.wa-item .icon {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: #d1fae5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wa-item .icon i {
  font-size: 1.4rem;
  color: #25D366;
}
.wa-item .text h6 {
  margin: 0;
  font-size: .95rem;
  font-weight: 600;
}
.wa-item .text p {
  margin: 0;
  font-size: .8rem;
  color: var(--muted);
}
.wa-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
}
@media(max-width:480px) {
  .wa-float {
    bottom: 16px;
    left: 16px;
  }
  .wa-popup {
    width: calc(100vw - 32px);
  }
}

/* ===== KELAS PENGGANTI INLINE STYLE ===== */
.section-heading {
  font-size: 1.6rem;
  margin: 0;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.btn-sm-rs {
  padding: 10px 24px;
  font-size: .9rem;
}
.btn-doctor {
  padding: 9px 22px;
  font-size: .9rem;
  margin-left: 0;
}
.section-action {
  text-align: center;
  margin-top: 40px;
}

/* SIDEBAR JADWAL DOKTER HARI INI */
.sidebar-card {
  padding: 28px;
  background: var(--gradient-soft);
  border: 1px solid rgba(14,165,233,0.1);
  position: sticky;
  top: 100px;
}
.jadwal-box {
  border-top: 1px solid rgba(14,165,233,0.15);
  padding-top: 20px;
}
.jadwal-title {
  font-size: .95rem;
  margin-bottom: 16px;
  color: var(--azure-dark);
  font-weight: 700;
}
.jadwal-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(14,165,233,0.12);
}
.jadwal-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.jadwal-avatar i {
  color: #fff;
  font-size: 1.1rem;
}
.jadwal-info {
  flex: 1;
}
.jadwal-name {
  font-weight: 600;
  font-size: .9rem;
  line-height: 1.3;
}
.jadwal-spesialis {
  color: var(--muted);
  font-size: .8rem;
  display: block;
}
.jadwal-poli {
  background: var(--tosca-pale);
  color: var(--tosca-dark);
  padding: 2px 8px;
  border-radius: 20px;
  font-size: .75rem;
  margin-top: 4px;
  display: inline-block;
}
.jadwal-empty {
  font-size: .85rem;
  color: var(--muted);
  margin: 0;
}
.jadwal-link {
  font-size: .85rem;
  margin-top: 12px;
  display: inline-block;
}

/* ===== SLIDER INFORMASI (carousel: slide tengah + tetangga terlihat) ===== */
.info-slider-section {
  padding: clamp(24px, 4vw, 40px) 0 clamp(16px, 3vw, 28px);
  background: #fff;
}
.info-slider {
  position: relative;
  overflow: hidden;
  padding: 10px 0 18px;
  touch-action: pan-y;
}
.info-track {
  position: relative;
  display: flex;
  gap: clamp(12px, 2vw, 24px);
  transition: transform .7s cubic-bezier(.65,0,.35,1);
  will-change: transform;
}
.info-track.no-anim,
.info-track.no-anim .info-slide {
  transition: none;
}
.info-slide {
  position: relative;
  flex: 0 0 min(62vw, 1000px);
  height: clamp(280px, 32vw, 480px);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow);
  opacity: .5;
  transform: scale(.92);
  transition: opacity .7s ease, transform .7s ease;
}
.info-slide.is-active {
  opacity: 1;
  transform: scale(1);
  box-shadow: var(--shadow-lg);
}
.info-slide-bg {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  filter: blur(24px) brightness(.7);
}
.info-slide img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.info-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px clamp(16px, 3vw, 32px) 18px;
  background: linear-gradient(to top, rgba(15,23,42,0.85), rgba(15,23,42,0));
  color: #fff;
}
.info-caption h3 {
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  margin: 0 0 4px;
}
.info-caption p {
  margin: 0;
  font-size: clamp(.8rem, 1.6vw, .95rem);
  opacity: .9;
}
.info-nav {
  position: absolute;
  top: 50%;
  margin-top: -9px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--azure-dark);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15,23,42,0.2);
  transition: .25s;
}
.info-nav:hover {
  background: #fff;
  transform: scale(1.08);
}
.info-prev {
  left: 14px;
}
.info-next {
  right: 14px;
}
.info-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.info-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: #cbd5e1;
  cursor: pointer;
  transition: .3s;
}
.info-dots button.active {
  width: 26px;
  background: var(--tosca);
}

@media(max-width:768px) {
  .info-slide {
    flex-basis: 84vw;
    height: clamp(240px, 62vw, 380px);
  }
  .info-nav {
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
  }
  .info-prev {
    left: 8px;
  }
  .info-next {
    right: 8px;
  }
}
