/* ============================================================
   RSUD dr. Adhyatma, MPH - Open Data Portal Theme
   CKAN 2.11.4 custom theme
   ============================================================ */

:root {
  --rsud-navy: #14143d;
  --rsud-red: #8a1414;
  --rsud-red-dark: #6e0f0f;
  --rsud-lightblue: #b7e6f5;
  --rsud-orange: #e08a1e;
}

/* ---------- Sticky footer (footer selalu di bawah, walau konten sedikit) ---------- */
html, body {
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.site-footer {
  margin-top: auto;
}

/* ---------- Navbar (FIXED di atas, bukan sticky biasa -> anti hilang di tengah scroll) ---------- */

/* Sembunyikan bar tipis login/register bawaan CKAN (tidak ada di desain
   custom kita). Login tetap bisa diakses lewat URL langsung /user/login. */
.account-masthead {
 position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1031;
  background: #0c0c28;
  font-size: 0.78rem;
  min-height: 34px !important;
}
.account-masthead a {
  color: rgba(255,255,255,0.75);
}
.masthead {
  background: var(--rsud-navy);
  position: fixed;
  top: 34px;
  left: 0;
  right: 0;
  z-index: 1030;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
/* Kompensasi tinggi header fixed, supaya konten di bawahnya tidak
   ketutupan. Sesuaikan angka ini kalau ternyata masih ada celah/nutupan
   (ukur tinggi asli navbar di browser -> DevTools -> ganti nilainya). */
body {
  padding-top: 76px;
}
@media (max-width: 991px) {
  body {
    padding-top: 64px;
  }
}

.masthead .navbar-nav .nav-link {
  position: relative;
  color: rgb(226 230 231) !important ;
  font-weight: 600;
  text-transform: capitalize;
  font-size: 0.85rem;
  padding: 10px 14px !important;
  border-radius: 6px;
  transition: color 0.15s ease, background-color 0.15s ease;
  letter-spacing: 1px;
}
.masthead .navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}
.masthead .navbar-nav .nav-link:hover,
.masthead .navbar-nav .nav-link:focus {
  color: rgb(64 235 229 / 40%) !important;
  background-color: rgba(255,255,255,0.10);
}
.masthead .navbar-nav .nav-link:hover::after,
.masthead .navbar-nav .nav-link:focus::after {
  transform: scaleX(1);
}
.masthead .navbar-nav .nav-link.active {
  color: #47ccf5 !important;
  background-color: rgba(224,138,30,0.15) !important;
}
.masthead .navbar-nav .nav-link.active::after {
  background: var(--rsud-orange);
  transform: scaleX(1);
}
.rsdatheme-logo img {
  max-height: 42px;
}
.toolbar{
  padding: 20px 0 !important;
}

.flash-messages .alert{
	margin-top: 25px !important;
}
/* ---------- Hero / Slider ---------- */
.rsdatheme-hero {
  position: relative;
  min-height: 380px;
  overflow: hidden;
}
@media (min-width: 992px) {
  .rsdatheme-hero {
    min-height: 560px;
  }
  .rsdatheme-hero-content {
    min-height: 560px;
  }
}
.rsdatheme-hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  z-index: 0;
}
.rsdatheme-hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}
.rsdatheme-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.55));
  z-index: 2;
}
.rsdatheme-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 40px 20px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.rsdatheme-hero-dots {
  position: absolute;
  z-index: 3;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.rsdatheme-hero-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.3);
  padding: 0;
  cursor: pointer;
}
.rsdatheme-hero-dots button.is-active {
  background: #fff;
}
.rsdatheme-hero-title {
  color: #ade70c;
  font-weight: 800;
  font-style: italic;
  text-shadow: 3px 0px 1px rgb(0 0 0);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.2rem;
}
.rsdatheme-hero-subtitle {
  color: #fff;
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 1px rgb(241 135 14);
}
.rsdatheme-hero-search {
  display: flex;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 30px;
  overflow: hidden;
  border: 2px solid #4a7ce7;
}
.rsdatheme-hero-search input {
  flex: 1;
  min-width: 0;
  border: none;
  padding: 12px 20px;
  outline: none;
}
.rsdatheme-hero-search button {
  border: none;
  background: #fff;
  color: var(--rsud-red);
  padding: 0 20px;
}
@media (max-width: 767px) {
  .rsdatheme-hero-search {
    max-width: 92vw;
  }
  .rsdatheme-hero-search input {
    padding: 10px 14px;
    font-size: 0.9rem;
  }
}

/* ---------- Kategori (batitk) ---------- */
.rsdatheme-categories {
  background-color: #0f227b;
  background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.04) 0, transparent 40%),
                     radial-gradient(circle at 80% 70%, rgba(255,255,255,0.04) 0, transparent 40%);
  padding: 50px 0 60px;
}
.rsdatheme-categories-title {
  text-align: center;
  color: #f5e642;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 40px;
  text-shadow: 2px 2px 1px rgb(255 255 255 / 31%);
}
.rsdatheme-icon-grid {
  justify-content: center;
  text-align: center;
}
.rsdatheme-icon-item {
  margin-bottom: 30px;
}
.rsdatheme-icon-item a {
  color: #fff;
  text-decoration: none;
  display: block;
}
.rsdatheme-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  border-radius: 0% 50%;
  background: rgba(255,255,255,0.12);
  margin-bottom: 10px;
  overflow: hidden;
}
.rsdatheme-icon img {
  width: 75%;
  height: 75%;
  object-fit: contain;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.rsdatheme-icon-item:hover .rsdatheme-icon {
  background: rgba(255,255,255,0.25);
}
.rsdatheme-icon-item:hover .rsdatheme-icon img {
  opacity: 0.25;
  transform: scale(1.08);
}
.rsdatheme-icon-label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- Stats bar ---------- */
.rsdatheme-stats {
  background: var(--rsud-lightblue);
  text-align: center;
  padding: 25px 0 35px;
}
.rsdatheme-stats-link {
  display: inline-block;
  text-decoration: none;
  padding: 6px 24px;
  border-radius: 12px;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.rsdatheme-stats-link:hover {
  background-color: rgba(255,255,255,0.35);
  transform: translateY(-2px);
}
.rsdatheme-stats-title {
  color: #6b2fb3;
  font-weight: 700;
  margin-bottom: 10px;
}
.rsdatheme-stats-number {
  color: #e7350a;
  font-size: 2.8rem;
  font-weight: 800;
  margin: 0;
  line-height: 1;
}
.rsdatheme-stats-label {
  color: var(--rsud-orange);
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

/* ---------- Dataset terbaru ---------- */
.rsdatheme-latest {
  padding: 50px 0;
  background: #fff;
}
.rsdatheme-latest-title {
  font-weight: 700;
  color: #4949cd;
  margin-bottom: 30px;
  text-align: center;
  border-bottom-style: dashed;
  font-size: 30px;
  
}
.rsdatheme-latest-item {
  margin-bottom: 24px;
}
.rsdatheme-latest-card {
  height: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 18px;
  transition: box-shadow 0.15s ease;
}
.rsdatheme-latest-card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
.rsdatheme-latest-card h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.rsdatheme-latest-card h4 a {
  color: var(--rsud-navy);
  text-decoration: none;
}
.rsdatheme-latest-desc {
  color: #555;
  font-size: 0.9rem;
}
.rsdatheme-latest-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #888;
  margin-top: 10px;
  flex-wrap: wrap;
  gap: 6px;
}
.rsdatheme-latest-more {
  text-align: center;
  margin-top: 10px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--rsud-navy) 0%, #0c0c28 100%);
  color: #cfd3e6;
  padding-top: 30px;
}
.rsdatheme-partners .row {
  flex-wrap: wrap;
}
.rsdatheme-partners .partner-logo {
  text-align: center;
  padding: 14px 10px;
}
.rsdatheme-partners .partner-logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 74px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 10px;
  padding: 10px 12px;
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.rsdatheme-partners .partner-logo a:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.06);
  transform: translateY(-2px);
}
.rsdatheme-partners .partner-logo img {
  max-height: 70px;
  max-width: 120%;
}

/* Mobile: paksa grid 4 kolom x 2 baris (8 logo), supaya tidak
   squish jadi terlalu kecil/hilang seperti kalau pakai flex-wrap biasa */
@media (max-width: 767px) {
  .rsdatheme-partners .row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  .rsdatheme-partners .partner-logo {
    padding: 6px;
  }
  .rsdatheme-partners .partner-logo a {
    height: 56px;
    padding: 6px 8px;
  }
  .rsdatheme-partners .partner-logo img {
    max-height: 60px;
  }
}
.rsdatheme-contact {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.85rem;
}
.rsdatheme-contact .contact-title {
  color: var(--rsud-orange);
  font-weight: 700;
  margin-bottom: 8px;
}
.rsdatheme-contact p {
  margin-bottom: 4px;
}
.rsdatheme-social {
  margin-top: 14px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.rsdatheme-social a {
  color: #cfd3e6;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.rsdatheme-social a:hover {
  color: var(--rsud-orange);
  border-color: var(--rsud-orange);
}
.rsdatheme-copyright {
  margin-top: 20px;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
}
/* Voice search button */
.rsdatheme-hero-search #rsdatheme-voice-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 10px;
  color: inherit;
}
.rsdatheme-hero-search #rsdatheme-voice-btn.listening i {
  color: red;
  animation: rsdatheme-pulse 1s infinite;
}
@keyframes rsdatheme-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.rsdatheme-hero-search #rsdatheme-clear-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 8px;
  color: #999;
}
.rsdatheme-hero-search #rsdatheme-clear-btn:hover {
  color: #555;
}
/* ---------- Scroll-to-top button + progress ring ---------- */
.rsdatheme-scrolltop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1040;
}
.rsdatheme-scrolltop.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.rsdatheme-scrolltop svg {
  position: absolute;
  top: 0;
  left: 0;
}
.rsdatheme-scrolltop-track {
  stroke: #e5e5e5;
}
.rsdatheme-scrolltop-progress {
  stroke: var(--rsud-red);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear;
}
.rsdatheme-scrolltop-arrow {
  position: relative;
  color: var(--rsud-navy);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

@media (max-width: 767px) {
  .rsdatheme-hero-title { font-size: 1.2rem; }
  .rsdatheme-hero-subtitle { font-size: 1.5rem; }
}
.site-footer a{
	text-decoration: none !important;
}
.footer-cp{
	background: #034f61 !important; 
	padding: 0px !important;
}
.stats-count{
	text-align: right !important;
	margin-top: 40px !important;
}
.text-blink {
                animation: blinker 1.5s linear infinite;
                color: red;
                font-family: sans-serif;
            }

            @keyframes blinker {
                50% {
                    opacity: 0;
                }
            }