/*
Theme Name: RSNU Medicare
Theme URI: https://rsnahdlatululamababat.com/
Author: Antigravity AI Team
Author URI: https://rsnahdlatululamababat.com/
Description: Tema WordPress Resmi RSNU Babat (Rumah Sakit Nahdlatul Ulama Babat). Terinspirasi dari desain modern Medicare RSMB (rsmb.co.id) dengan skema warna hijau khas, tipografi Montserrat/Roboto, fitur jadwal dokter interaktif, integrasi SIMRS Khanza, dan siap pakai via cPanel.
Version: 1.0.0
Text Domain: rsnu-medicare
Domain Path: /languages/
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: medical, hospital, medicare, healthcare, responsive-layout, custom-menu, featured-images, custom-logo, translation-ready
*/

:root {
  --primary-color: #00994a;
  --primary-dark: #004d25;
  --primary-light: #e6f5ed;
  --secondary-color: #279386;
  --secondary-dark: #17574f;
  --secondary-light: #eef8f7;
  --accent-color: #00994a;
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --bg-light: #f9fafb;
  --bg-card: #ffffff;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --font-condensed: 'Roboto Condensed', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

.bg-light {
  background-color: var(--bg-light);
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

/* Section Title Styling (RSMB Style) */
.section-title {
  margin-bottom: 50px;
  position: relative;
}

.section-title .badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.section-title h2 {
  font-size: 2.25rem;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.section-title h2 span {
  color: var(--primary-color);
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
}

.section-title .title-dash {
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  margin: 15px auto 0;
  border-radius: 2px;
  position: relative;
}

.section-title .title-dash::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 4px;
  background: var(--secondary-color);
  right: -16px;
  top: 0;
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-transform: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 153, 74, 0.35);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(0, 77, 37, 0.45);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(39, 147, 134, 0.35);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color) !important;
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* TOP BAR (RSMB Theme Header) */
.top-bar, .top-header {
  background-color: var(--primary-dark);
  color: #ffffff;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar .container, .top-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-info, .top-header-contact {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.top-info-item, .top-header-contact a, .top-header-contact span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
}

.top-info-item i, .top-header-contact i {
  color: #5cf296;
}

.top-socials, .top-header-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-socials a, .top-header-social a {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.top-socials a:hover, .top-header-social a:hover {
  background: var(--primary-color);
  color: #ffffff;
}

/* MAIN HEADER & NAVBAR */
.site-header, .main-navbar {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: var(--transition);
}

.nav-container, .navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  gap: 15px;
}

.logo, .brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.logo-text, .brand-logo .logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.1;
}

.logo-text span, .brand-logo .logo-text span {
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item, .nav-list > li {
  position: relative;
  list-style: none;
}

.nav-link, .nav-list > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: var(--font-heading);
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.nav-link:hover, 
.nav-list > li > a:hover,
.nav-item.active > .nav-link, 
.nav-item.current-menu-item > .nav-link,
.nav-list > li.current-menu-item > a {
  color: var(--primary-color);
  background-color: var(--primary-light);
}

.has-dropdown > .nav-link, .menu-item-has-children > a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown-icon {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

/* Dropdown Sub-menu */
.dropdown-menu, .nav-list .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  border-radius: var(--radius-md);
  border-top: 3px solid var(--primary-color);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 1000;
  list-style: none;
  margin: 0;
}

.has-dropdown:hover .dropdown-menu,
.nav-list .menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a, .nav-list .sub-menu li a {
  display: block;
  padding: 9px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.dropdown-menu li:last-child a, .nav-list .sub-menu li:last-child a {
  border-bottom: none;
}

.dropdown-menu li a:hover, .nav-list .sub-menu li a:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
  padding-left: 22px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.35rem;
  color: var(--primary-dark);
  cursor: pointer;
  padding: 6px;
}

/* HERO SECTION (Medicare RSMB Style) */
.hero {
  position: relative;
  background: linear-gradient(135deg, #00361a 0%, #006631 50%, #00994a 100%);
  color: #ffffff;
  padding: 100px 0 140px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  opacity: 0.15;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  font-family: var(--font-condensed);
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.2);
}

.hero-content h1 {
  font-size: 3rem;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-content h1 span {
  color: #5cf296;
}

.hero-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 35px;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-card-preview {
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-md);
  padding: 30px;
  color: var(--text-dark);
  box-shadow: var(--shadow-lg);
}

.hero-card-preview h3 {
  font-size: 1.35rem;
  color: var(--primary-dark);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-card-preview h3 i {
  color: var(--primary-color);
}

/* ACTION CARDS SECTION (Overlap Hero) */
.action-cards-wrapper {
  margin-top: -60px;
  position: relative;
  z-index: 100 !important;
  pointer-events: auto !important;
}

.action-card-clickable {
  text-decoration: none !important;
  color: inherit !important;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.action-card-clickable:hover {
  text-decoration: none !important;
}

.action-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.action-card {
  background: #ffffff;
  padding: 30px 25px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  border-bottom: 4px solid var(--primary-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  cursor: pointer;
}

.action-card-clickable:hover .action-card {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  border-bottom-color: var(--secondary-color);
}

.action-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

.action-card-clickable:hover .action-card-icon {
  background: var(--primary-color);
  color: #ffffff;
}

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

.action-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.action-card-link {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.action-card-clickable:hover .action-card-link {
  color: var(--secondary-color);
  gap: 10px;
}
  font-size: 0.875rem;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ABOUT SECTION */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.about-badge {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background: var(--primary-dark);
  color: #ffffff;
  padding: 20px 25px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.about-badge .number {
  font-size: 2.25rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: #5cf296;
  line-height: 1;
}

.about-badge .text {
  font-size: 0.85rem;
  font-family: var(--font-condensed);
  text-transform: uppercase;
}

.about-features {
  margin: 25px 0 35px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.about-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

.about-feature-item i {
  color: var(--primary-color);
  font-size: 1.1rem;
}

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

.service-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

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

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

.service-card-body {
  padding: 25px;
}

.service-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.service-card-body p {
  color: var(--text-muted);
  font-size: 0.925rem;
  margin-bottom: 20px;
}

/* TIMETABLE / JADWAL DOKTER (RSMB Medicare Style) */
.timetable-wrapper {
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 30px;
}

.timetable-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
}

.timetable-filter-btn {
  padding: 10px 20px;
  background: var(--bg-light);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.timetable-filter-btn:hover, .timetable-filter-btn.active {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

.doctor-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.doctor-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  gap: 18px;
  align-items: center;
  transition: var(--transition);
}

.doctor-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.doctor-avatar {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.doctor-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.doctor-info h4 {
  font-size: 1.05rem;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.doctor-spec {
  font-size: 0.85rem;
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 8px;
}

.doctor-schedule {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-light);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* PROMO & NEWS CARDS */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.news-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

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

.news-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-condensed);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.news-card-body {
  padding: 25px;
}

.news-date {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.news-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

.news-card-body h3 a {
  color: var(--text-dark);
}

.news-card-body h3 a:hover {
  color: var(--primary-color);
}

.news-card-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

/* FOOTER STYLING (RSMB Dark Theme) */
.site-footer {
  background-color: #0b1912;
  color: rgba(255,255,255,0.8);
  padding-top: 70px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 45px;
  width: auto;
}

.footer-logo span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: #ffffff;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.footer-contact-item i {
  color: var(--primary-color);
  margin-top: 4px;
}

.copyright-bar {
  padding: 25px 0;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 1024px) {
  .hero-grid, .about-grid {
    grid-template-columns: 1fr;
  }
  .action-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
@media (max-width: 1024px) {
  .hero-grid, .about-grid {
    grid-template-columns: 1fr;
  }
  .action-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid, .doctor-cards-grid, .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-link, .nav-list > li > a {
    padding: 6px 10px;
    font-size: 0.85rem;
  }
}

@media (max-width: 992px) {
  .top-bar, .top-header { display: none; }
  .mobile-toggle { display: block !important; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    flex-direction: column;
    padding: 15px 20px;
    display: none;
    z-index: 1000;
  }
  .nav-menu.is-active { display: flex; }
  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 5px;
  }
  .nav-item, .nav-list > li { width: 100%; }
  .nav-link, .nav-list > li > a { 
    width: 100%; 
    padding: 10px 15px;
    font-size: 0.95rem;
  }
  .dropdown-menu, .nav-list .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    padding-left: 15px;
    display: none;
    background: #f8faf9;
    margin-top: 5px;
    border-radius: var(--radius-sm);
  }
  .has-dropdown:hover .dropdown-menu,
  .nav-list .menu-item-has-children:hover > .sub-menu,
  .has-dropdown.is-open .dropdown-menu { display: block; }
  .hero-content h1 { font-size: 2.2rem; }
  .action-cards-grid, .services-grid, .doctor-cards-grid, .news-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
}
