/**
 * Modern Public Portal CSS
 * Public-facing healthcare website theme (replaces Tooplate 2098 Health)
 */

/* Top Info Header */
header {
  background-color: #0f172a;
  color: #94a3b8;
  font-size: 0.8125rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

header .container > .row {
  align-items: center;
}

header p {
  margin: 0;
  color: #cbd5e1;
  font-weight: 500;
}

header span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 1.25rem;
  color: #cbd5e1;
}

header span i {
  color: #14b8a6;
}

header a {
  color: #cbd5e1;
  text-decoration: none;
}

header a:hover {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 767px) {
  header {
    text-align: center;
    padding: 0.625rem 0;
    overflow: hidden;
  }
  header .text-align-right {
    text-align: center;
    margin-top: 0.35rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
  header span {
    margin-left: 0;
    font-size: 0.75rem;
    word-break: break-all;
  }
}

/* Modern Sticky Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.06);
  padding: 0.5rem 0;
  transition: all var(--transition-normal);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.navbar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: auto;
  max-width: 100%;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(0.95rem, 3.6vw, 1.25rem);
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1.25;
  padding: 0.5rem 0;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
}

.navbar-brand i {
  color: var(--primary);
  font-size: 1.6rem;
  flex-shrink: 0;
}

.navbar-brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.navbar-brand:hover {
  color: var(--primary);
  text-decoration: none;
}

/* Mobile Hamburger Toggle */
.navbar-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.navbar-toggle .icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.navbar-toggle:focus-visible {
  outline: 2px solid var(--primary);
}

/* Navigation Links */
.navbar-collapse {
  display: flex;
  align-items: center;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-nav > li > a {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.navbar-nav > li > a:hover {
  color: var(--primary);
  background-color: var(--primary-light);
  text-decoration: none;
}

.navbar-nav > li.active > a {
  color: var(--primary);
  font-weight: 600;
  background-color: var(--primary-light);
}

/* CTA Button in Nav */
.navbar-nav > li.appointment-btn > a {
  background-color: var(--primary);
  color: #ffffff !important;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-left: 0.5rem;
  box-shadow: 0 2px 4px rgba(15, 118, 110, 0.2);
}

.navbar-nav > li.appointment-btn > a:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 4px 6px rgba(15, 118, 110, 0.3);
  transform: translateY(-1px);
}

/* Mobile Nav Drawer */
@media (max-width: 991px) {
  .navbar-header {
    width: 100%;
  }

  .navbar-brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .navbar-brand-logo {
    width: 32px;
    height: 32px;
  }
  
  .navbar-toggle {
    display: flex;
    flex-shrink: 0;
  }
  
  .navbar-collapse {
    display: none;
    width: 100%;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
  }
  
  .navbar-collapse.in,
  .navbar-collapse.show {
    display: block;
    animation: slideDown 0.25s ease-out;
  }
  
  .navbar-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }
  
  .navbar-nav > li > a {
    padding: 0.75rem 1rem;
    min-height: 44px;
    border-radius: var(--radius-sm);
  }
  
  .navbar-nav > li.appointment-btn > a {
    margin-left: 0;
    margin-top: 0.5rem;
    justify-content: center;
  }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Section Common Styling */
section {
  position: relative;
  padding: 4.5rem 0;
}

.section-title {
  margin-bottom: 2.75rem;
}

.section-title h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--text-main);
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 4px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

.section-title.text-center h2::after,
.section-title center h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-title p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 650px;
  margin-top: 0.5rem;
}

@media (max-width: 767px) {
  section {
    padding: 2.75rem 0;
  }
  .section-title {
    margin-bottom: 1.75rem;
  }
}

/* Hero / Slider Section */
#home.slider {
  padding: 0;
  background-color: #0f172a;
  color: #ffffff;
  overflow: hidden;
}

.owl-carousel .item {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.owl-carousel .item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.65) 60%, rgba(15, 23, 42, 0.4) 100%);
}

.owl-carousel .item-first {
  background-image: url('../images/slider1.jpg');
}
.owl-carousel .item-second {
  background-image: url('../images/slider2.jpg');
}
.owl-carousel .item-third {
  background-image: url('../images/slider3.jpg');
}

.owl-carousel .caption {
  position: relative;
  z-index: 2;
  padding: 3rem 0;
  width: 100%;
}

.owl-carousel .caption h3 {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 500;
  color: #2dd4bf;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.owl-carousel .caption h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 1.75rem;
  max-width: 750px;
}

.owl-carousel .section-btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background-color: var(--primary);
  color: #ffffff;
  border: 1px solid var(--primary);
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.4);
  transition: all var(--transition-fast);
}

.owl-carousel .section-btn:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.5);
}

.owl-carousel .btn-gray {
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}
.owl-carousel .btn-gray:hover {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: #ffffff;
}

.owl-carousel .btn-blue {
  background-color: #0284c7;
  border-color: #0284c7;
}
.owl-carousel .btn-blue:hover {
  background-color: #0369a1;
}

@media (max-width: 767px) {
  .owl-carousel .item {
    min-height: 380px;
  }
  .owl-carousel .caption {
    padding: 2rem 0;
  }
}

/* About Section */
#about {
  background-color: #ffffff;
}

#about .about-info h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.15rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

#about .about-info p {
  font-size: 1.025rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

figure.profile {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 2rem 0 0 0;
  padding: 1.25rem;
  background-color: var(--bg-surface-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

figure.profile img {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: var(--shadow-sm);
}

figure.profile figcaption h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  color: var(--text-main);
}

figure.profile figcaption p {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 600;
  margin: 0;
}

/* Team / Doctors Section */
#team {
  background-color: var(--bg-page);
}

.team-thumb {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.team-thumb:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.team-thumb img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background-color: var(--bg-surface-subtle);
}

.team-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.team-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.35rem 0;
  color: var(--text-main);
}

.team-info > p {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  background-color: var(--primary-light);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.team-contact-info {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  color: var(--text-subtle);
}

.team-contact-info p {
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.team-contact-info p i {
  color: var(--primary);
  width: 14px;
}

.team-info .social-icon {
  display: none;
}

/* Jadwal Praktek (Doctor Schedule Search) */
#news {
  background-color: #ffffff;
}

.news-thumb {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

#carikeyword table,
#cariKamar table,
form[name*="Cari"] table {
  margin-bottom: 1.5rem;
  width: 100%;
}

#carikeyword table tr.head,
#cariKamar table tr.head,
form[name*="Cari"] table tr.head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

#carikeyword table td,
#cariKamar table td,
form[name*="Cari"] table td {
  padding: 0;
  border: none;
  background: transparent;
}

#carikeyword label,
#cariKamar label,
form[name*="Cari"] label {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-main);
  margin-bottom: 0;
}

#carikeyword input[type="text"],
#cariKamar input[type="text"],
form[name*="Cari"] input[type="text"] {
  min-height: 44px;
}

@media (max-width: 767px) {
  .news-thumb {
    padding: 1.25rem;
  }
  #carikeyword table tr.head,
  #cariKamar table tr.head,
  form[name*="Cari"] table tr.head {
    flex-direction: column;
    align-items: stretch;
  }
  #carikeyword table td,
  #cariKamar table td,
  form[name*="Cari"] table td {
    width: 100% !important;
  }
  #carikeyword table td:nth-child(2),
  #cariKamar table td:nth-child(2),
  form[name*="Cari"] table td:nth-child(2) {
    display: none;
  }
}

/* Appointment / Booking & Login Form */
#appointment {
  background-color: var(--bg-page);
}

#appointment .about-info {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}

#appointment-form table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 8px 0;
  margin-bottom: 0.5rem;
}

#appointment-form table td {
  padding: 0;
  border: none;
  background: transparent;
}

#appointment h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

#appointment .form-control {
  margin-bottom: 0.875rem;
}

#appointment label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

#appointment button[type="submit"] {
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  min-height: 48px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(15, 118, 110, 0.25);
  transition: all var(--transition-fast);
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  width: 100%;
}

#appointment button[type="submit"]:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.35);
  transform: translateY(-1px);
}

#appointment img[src*="appointment-image"] {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 380px;
}

/* Captcha Styling */
img[src*="captcha.php"] {
  border-radius: var(--radius-sm);
  display: block;
}

/* Google Map */
#google-map {
  padding: 0;
}

#google-map iframe {
  display: block;
  border: 0;
  filter: grayscale(15%);
}

/* Modern Footer */
footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 1.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer .copyright-text p {
  margin: 0;
  font-size: 0.875rem;
  color: #94a3b8;
}

footer h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

footer h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

footer p {
  color: #94a3b8;
  font-size: 0.9375rem;
  line-height: 1.7;
}

footer .contact-info p {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  color: #cbd5e1;
}

footer .contact-info p i {
  color: #14b8a6;
  width: 16px;
}

footer .contact-info a {
  color: #cbd5e1;
}

footer .contact-info a:hover {
  color: #ffffff;
}

footer .opening-hours p {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

footer .opening-hours span {
  color: #2dd4bf;
  font-weight: 600;
}

footer .social-icon {
  display: flex;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0 0;
}

footer .social-icon a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  text-decoration: none;
  transition: all var(--transition-fast);
}

footer .social-icon a:hover {
  background-color: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

footer .border-top {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 3rem;
  padding-top: 1.75rem;
}

footer .copyright-text p {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
}

footer .copyright-text a {
  color: #94a3b8;
}

footer .footer-link center {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

footer .footer-link a {
  color: #cbd5e1;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
}

footer .footer-link a:hover {
  color: #2dd4bf;
}

.angle-up-btn a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background-color: var(--primary);
  color: #ffffff;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.angle-up-btn a:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

@media (max-width: 991px) {
  footer .footer-thumb {
    margin-bottom: 2rem;
  }
  footer .border-top > div {
    text-align: center !important;
    margin-bottom: 1rem;
  }
  footer .angle-up-btn {
    text-align: center;
  }
}

/* Numeric input spinner reset for age fields */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}
input[type=number] {
  -moz-appearance: textfield;
}
