/* =============================================================
   BANNER 16:9 OVERRIDE — Responsive for all devices
   Aspect ratio 16:9 (width:height) on every screen size
   ============================================================= */

/* --- HEADER LOGO (topbar) — no blue background --- */
.brand-mini {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0;
}
.brand-mini img {
  border-radius: 14px;
  width: 80px;
  height: 80px;
  object-fit: cover;
  display: block;
}

/* --- SIDEBAR LOGO (desktop) — also no background --- */
.brand-logo {
  background: transparent !important;
  box-shadow: none !important;
}
.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}


/* --- MAIN BANNER (hero on home) --- */
.banner {
  position: relative;
  background: linear-gradient(135deg, var(--c-primary) 0%, #4583ff 100%);
  border-radius: var(--r-lg);
  padding: 18px 18px;
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(45, 107, 255, .28);
  margin-bottom: 28px;
  min-width: 0;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  width: 100%;
}

/* Small mobile (≤360px) — keep 16:9 but tighter */
@media (max-width: 360px) {
  .banner { padding: 12px 12px; gap: 10px; }
  .banner-text h2 { font-size: 16px; }
  .banner-text p  { font-size: 11px; }
  .btn-pill { padding: 7px 16px; font-size: 12px; }
  .banner-dots .dot { width: 6px; height: 6px; }
  .banner-dots .dot.active { width: 18px; }
}

/* Mobile portrait (361–480px) */
@media (min-width: 361px) and (max-width: 480px) {
  .banner { padding: 14px 14px; gap: 12px; }
  .banner-text h2 { font-size: 17px; }
}

/* Larger phones (481–600px) */
@media (min-width: 481px) and (max-width: 600px) {
  .banner { padding: 18px 18px; gap: 16px; }
}

/* Tablet portrait (601–960px) */
@media (min-width: 601px) and (max-width: 960px) {
  .banner { padding: 24px 22px; gap: 20px; }
  .banner-text h2 { font-size: 24px; }
}

/* Tablet landscape / small desktop (961–1200px) */
@media (min-width: 961px) and (max-width: 1200px) {
  .banner { padding: 28px 26px; gap: 24px; }
  .banner-text h2 { font-size: 28px; }
  .banner-text p  { font-size: 15px; }
}

/* Large desktop (≥1201px) */
@media (min-width: 1201px) {
  .banner { padding: 32px 30px; gap: 28px; }
  .banner-text h2 { font-size: 32px; }
  .banner-text p  { font-size: 16px; }
}

.banner-text {
  flex: 1 1 auto;
  min-width: 0;
  z-index: 1;
}

.banner-text h2 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.4px;
  line-height: 1.2;
}

.banner-text p {
  font-size: 13px;
  color: rgba(255, 255, 255, .9);
  margin-top: 6px;
  line-height: 1.5;
}

.btn-pill {
  margin-top: 12px;
  background: #fff;
  color: var(--c-primary);
  font-weight: 700;
  font-size: 13px;
  padding: 9px 20px;
  border-radius: var(--r-pill);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .12);
  transition: transform .15s;
}

.btn-pill:hover { transform: translateY(-1px); }

/* Illustration sits on the right, sized by height of banner */
.banner-illu {
  width: auto;
  max-width: 40%;
  flex: 0 0 auto;
  height: 88%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  overflow: hidden;
}

.banner-illu svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.banner-illu.has-image {
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-illu.has-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
}

.banner-dots {
  position: absolute;
  left: 18px;
  bottom: 10px;
  display: flex;
  gap: 6px;
  z-index: 1;
}

.banner-dots .dot {
  width: 7px;
  height: 7px;
  background: rgba(255, 255, 255, .4);
  border-radius: 50%;
}

.banner-dots .dot.active {
  background: #fff;
  width: 22px;
  border-radius: 4px;
}

/* --- APPT-HERO sub-banners (other views) --- */
.appt-hero {
  background: linear-gradient(135deg, var(--c-primary) 0%, #4583ff 100%);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  box-shadow: 0 14px 30px rgba(45, 107, 255, .25);
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
}

.appt-hero.alt     { background: linear-gradient(135deg, #1849BD 0%, var(--c-primary) 100%); }
.appt-hero.alt-blue{ background: linear-gradient(135deg, #2D6BFF 0%, #6FA0FF 100%); }

@media (max-width: 360px) {
  .appt-hero { padding: 10px 12px; gap: 10px; }
  .appt-hero-text h2 { font-size: 15px; }
  .appt-hero-text p  { font-size: 11px; }
}

@media (min-width: 361px) and (max-width: 600px) {
  .appt-hero { padding: 12px 14px; }
  .appt-hero-text h2 { font-size: 16px; }
}

@media (min-width: 601px) and (max-width: 960px) {
  .appt-hero { padding: 22px 22px; gap: 20px; }
  .appt-hero-text h2 { font-size: 22px; }
}

@media (min-width: 961px) and (max-width: 1200px) {
  .appt-hero {
    padding: 26px 26px;
    gap: 24px;
  }
  .appt-hero-text h2 { font-size: 24px; }
}

@media (min-width: 1201px) {
  .appt-hero {
    padding: 30px 30px;
    gap: 28px;
  }
  .appt-hero-text h2 { font-size: 26px; }
}

.appt-hero-text h2 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.3px;
  line-height: 1.2;
}

.appt-hero-text p {
  font-size: 12px;
  color: rgba(255, 255, 255, .9);
  margin-top: 5px;
  line-height: 1.5;
}

.appt-hero-illu {
  width: auto;
  max-width: 30%;
  flex: 0 0 auto;
  height: 80%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.appt-hero-illu svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* --- TAB BANNER IMAGE (Jadwal / Promo & Harga / Media) --- */
.tab-banner-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-lg);
  box-shadow: 0 14px 30px rgba(45, 107, 255, .18);
  margin-bottom: 20px;
  object-fit: cover;
}

/* --- ADMIN BANNER PREVIEW (matches 16:9) --- */
.brand-asset-preview.banner-img {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 16 / 9;
  height: auto;
}

.brand-asset-preview.banner-img img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* --- TEAM PHOTO BACKGROUND (Tim Dokter hero) --- */
.appt-hero.has-photo-bg {
  background-image:
    linear-gradient(100deg, rgba(15, 42, 120, .78) 0%, rgba(20, 62, 163, .55) 32%, rgba(45, 107, 255, .22) 55%, rgba(45, 107, 255, .05) 75%),
    url('../assets/hero-tim-dokter.webp');
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
}
