/* ==========================================================================
   PORTAL DIGITAL DPMPTSP KABUPATEN OKI — UI/UX PRO MAX ENHANCEMENTS
   Tema: High-Key Luminous Daylight & Compact Balanced Bento (Proporsional & Rapi)
   ========================================================================== */

/* 0. INSTANT POSTER & FAST BACKGROUND RENDER */
.gateway-video-bg {
  background: #FFFFFF url('/portal/video/poster.jpg') no-repeat center center !important;
  background-size: cover !important;
}

/* 1. CRYSTAL-CLEAR ULTRA-TRANSPARENT OVERLAY (VIDEO BACKGROUND FULLY VISIBLE & VIBRANT) */
.gateway-video-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

/* 2. MASTHEAD HEADER (CLEAN WHITE FROSTED GLASS & CRISP CONTRAST) */
.gateway-masthead {
  padding: 12px 32px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
}

.brand-agency {
  color: #0F172A !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  text-shadow: none !important;
}

.brand-region {
  color: #059669 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}

.gateway-masthead .masthead-meta,
.gateway-masthead .masthead-meta *,
.masthead-clock, .masthead-weather, .masthead-date {
  color: #1E293B !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}

.gateway-masthead .masthead-meta [class*="sun"],
.gateway-masthead .masthead-meta [class*="weather"] {
  color: #F59E0B !important;
}

/* 3. HERO GLASS ISLAND (CRYSTAL-CLEAR CONTRAST & LEGIBILITY OVER VIDEO) */
.hero-title-group,
.hero-glass-island {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 580px !important;
  margin: 0 auto 16px !important;
  padding: 16px 24px 14px !important;
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(20px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(190%) !important;
  border-radius: 22px !important;
  border: 1.5px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(16, 185, 129, 0.06) !important;
}

@media (max-width: 640px) {
  .hero-title-group,
  .hero-glass-island {
    max-width: 100% !important;
    padding: 14px 16px 12px !important;
    margin-bottom: 14px !important;
  }
}

.hero-eyebrow {
  background: #FFFFFF !important;
  border: 1.5px solid rgba(16, 185, 129, 0.35) !important;
  padding: 4px 16px !important;
  border-radius: 9999px !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1) !important;
  margin-bottom: 8px !important;
}

.eyebrow-dot {
  background: #10B981 !important;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8) !important;
}

.hero-eyebrow span:last-child {
  color: #047857 !important;
  font-weight: 800 !important;
  font-size: 0.72rem !important;
  letter-spacing: 1px !important;
}

.hero-main-title {
  text-shadow: none !important;
  filter: none !important;
  margin: 0 !important;
  text-align: center !important;
}

.title-lead {
  color: #0F172A !important;
  letter-spacing: 2px !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  text-shadow: none !important;
  text-transform: uppercase !important;
}

.title-highlight {
  color: #047857 !important;
  font-weight: 900 !important;
  font-size: clamp(2rem, 3.4vw, 2.7rem) !important;
  letter-spacing: -0.5px !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #047857 !important;
  background: none !important;
  filter: none !important;
}

.hero-subtitle {
  color: #0F172A !important;
  font-weight: 800 !important;
  font-size: 1rem !important;
  text-shadow: none !important;
  margin-top: 2px !important;
  text-align: center !important;
}

.hero-tagline {
  color: #475569 !important;
  font-weight: 600 !important;
  font-size: 0.84rem !important;
  max-width: 500px !important;
  text-shadow: none !important;
  margin: 6px auto 0 !important;
  text-align: center !important;
}

/* 4. OPSI 3: SLEEK PILL SEARCH BAR (COMPACT & BALANCED) */
.gateway-search-wrap {
  width: 100% !important;
  max-width: 580px !important;
  margin: 0 auto 20px !important;
}

.editorial-search-form {
  background: #FFFFFF !important;
  border: 1.5px solid rgba(16, 185, 129, 0.35) !important;
  border-radius: 9999px !important;
  padding: 6px 8px 6px 18px !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07), 0 2px 6px rgba(16, 185, 129, 0.08) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.editorial-search-form.focused, .editorial-search-form:hover {
  background: #FFFFFF !important;
  border-color: #10B981 !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1), 0 0 18px rgba(16, 185, 129, 0.2) !important;
}

.search-glyph-box {
  color: #059669 !important;
  font-size: 0.95rem !important;
}

.editorial-search-input {
  color: #0F172A !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
}

.editorial-search-input::placeholder {
  color: #64748B !important;
  font-weight: 500 !important;
}

.editorial-search-action {
  background: linear-gradient(135deg, #059669 0%, #10B981 100%) !important;
  border: none !important;
  border-radius: 9999px !important;
  padding: 8px 18px !important;
  color: #FFFFFF !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.8px !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3) !important;
  cursor: pointer !important;
}

.editorial-search-action:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 14px rgba(16, 185, 129, 0.4) !important;
}

.editorial-search-line {
  display: none !important;
}

/* 5. OPSI 2: COMPACT PROPORTIONAL BENTO GRID (SNUG, NO AWKWARD WHITESPACE) */
.service-nav-strip {
  width: 100% !important;
  max-width: 860px !important;
  margin: 0 auto !important;
  padding: 0 12px !important;
}

.strip-container {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 10px 12px !important;
  width: 100% !important;
}

@media (max-width: 900px) {
  .strip-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}

@media (max-width: 480px) {
  .strip-container {
    grid-template-columns: 1fr !important;
  }
}

.strip-separator {
  display: none !important;
}

.strip-item {
  background: #FFFFFF !important;
  border: 1.5px solid rgba(226, 232, 240, 0.95) !important;
  border-radius: 12px !important;
  padding: 10px 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02) !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

.strip-item:hover, .strip-item:focus-visible {
  background: #FFFFFF !important;
  border-color: #10B981 !important;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.16), 0 0 12px rgba(16, 185, 129, 0.12) !important;
  transform: translateY(-2px) !important;
}

.strip-num {
  background: #D1FAE5 !important;
  color: #047857 !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  padding: 2px 6px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  letter-spacing: 0.5px !important;
  flex-shrink: 0 !important;
}

.strip-card-icon {
  font-size: 0.95rem !important;
  color: #059669 !important;
  flex-shrink: 0 !important;
  transition: transform 0.2s ease !important;
}

.strip-item:hover .strip-card-icon {
  color: #10B981 !important;
  transform: scale(1.15) !important;
}

.strip-title {
  color: #0F172A !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.3px !important;
  border-bottom: none !important;
  flex: 1 !important;
  text-align: left !important;
  white-space: nowrap !important;
}

.strip-hover-arrow {
  opacity: 0.7 !important;
  width: auto !important;
  transform: none !important;
  color: #10B981 !important;
  font-size: 0.85rem !important;
  font-weight: 800 !important;
  margin-left: auto !important;
  flex-shrink: 0 !important;
  transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease !important;
}

.strip-item:hover .strip-hover-arrow {
  opacity: 1 !important;
  color: #059669 !important;
  transform: translateX(3px) !important;
}

/* 6. OPSI 4: SINGLE-ROW HARMONIOUS ACTION BAR (EXACT 860PX SYMMETRY, ZERO CLUTTER) */
.wayfinding-gateway-marker {
  display: block !important;
  width: 100% !important;
  max-width: 860px !important;
  margin: 14px auto 0 !important;
  position: static !important;
  z-index: 30 !important;
  padding: 0 12px !important;
}

.wayfinding-link {
  background: #FFFFFF !important;
  border: 1.5px solid rgba(16, 185, 129, 0.4) !important;
  border-radius: 14px !important;
  padding: 10px 20px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  width: 100% !important;
}

.wayfinding-link:hover {
  background: #FFFFFF !important;
  border-color: #10B981 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.18), 0 0 16px rgba(16, 185, 129, 0.12) !important;
}

.wayfinding-text-stack {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  text-align: left !important;
  gap: 2px !important;
}

.wayfinding-main-title {
  color: #0F172A !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.2px !important;
  line-height: 1.25 !important;
  text-shadow: none !important;
  filter: none !important;
  text-transform: none !important;
}

.wayfinding-sub-title {
  color: #64748B !important;
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  text-shadow: none !important;
  filter: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.wayfinding-action-row {
  background: linear-gradient(135deg, #059669 0%, #10B981 100%) !important;
  border: none !important;
  padding: 8px 22px !important;
  border-radius: 9999px !important;
  margin-top: 0 !important;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3) !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

.wayfinding-link:hover .wayfinding-action-row {
  background: linear-gradient(135deg, #047857 0%, #059669 100%) !important;
  box-shadow: 0 5px 14px rgba(16, 185, 129, 0.4) !important;
}

.wayfinding-action-text {
  color: #FFFFFF !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
}

.wayfinding-arrow {
  color: #FFFFFF !important;
  font-weight: 800 !important;
  font-size: 0.88rem !important;
  display: inline-block !important;
}

.wayfinding-active-bar, .wayfinding-line-track {
  display: none !important;
}

@media (max-width: 640px) {
  .wayfinding-link {
    flex-direction: column !important;
    text-align: center !important;
    padding: 12px 14px !important;
    gap: 12px !important;
  }
  .wayfinding-text-stack {
    align-items: center !important;
    text-align: center !important;
  }
  .wayfinding-action-row {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* 7. TV NEWS TICKER (SMOOTH CONTINUOUS RIGHT-TO-LEFT RUNNING TEXT LIKE TV BROADCAST) */
.tv-news-ticker {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  background: #FFFFFF !important;
  border-top: 1.5px solid rgba(226, 232, 240, 0.95) !important;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08) !important;
  z-index: 100 !important;
  overflow: hidden !important;
  user-select: none !important;
}

.ticker-badge {
  background: linear-gradient(135deg, #059669 0%, #10B981 100%) !important;
  color: #FFFFFF !important;
  border-right: 1.5px solid rgba(226, 232, 240, 0.8) !important;
  font-weight: 800 !important;
  padding: 0 18px !important;
  height: 100% !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  z-index: 10 !important;
  flex-shrink: 0 !important;
  box-shadow: 4px 0 14px rgba(16, 185, 129, 0.25) !important;
}

.ticker-badge .ticker-pulse-dot {
  width: 8px !important;
  height: 8px !important;
  background-color: #FFFFFF !important;
  border-radius: 50% !important;
  display: inline-block !important;
  animation: tickerDotPulse 1.5s infinite ease-in-out !important;
  box-shadow: 0 0 8px #FFFFFF !important;
}

@keyframes tickerDotPulse {
  0%, 100% {
    transform: scale(0.85);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
}

.ticker-badge-text {
  font-size: 0.76rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.8px !important;
  white-space: nowrap !important;
  color: #FFFFFF !important;
}

.ticker-track-wrap {
  flex: 1 !important;
  overflow: hidden !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  position: relative !important;
}

.ticker-track {
  display: flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  width: max-content !important;
  will-change: transform !important;
  animation: tvRunningText 65s linear infinite !important;
}

.ticker-track-wrap:hover .ticker-track {
  animation-play-state: paused !important;
}

@keyframes tvRunningText {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Force continuous animation even on systems with prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: tvRunningText 65s linear infinite !important;
    animation-duration: 65s !important;
    animation-iteration-count: infinite !important;
  }
}

.ticker-item-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 0 24px !important;
  color: #0F172A !important;
  text-decoration: none !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px !important;
  transition: color 0.2s ease !important;
  cursor: pointer !important;
}

.ticker-item-link:hover {
  color: #059669 !important;
}

.ticker-item-link:hover .ticker-text {
  text-decoration: underline !important;
}

.ticker-dot {
  color: #10B981 !important;
  font-size: 0.75rem !important;
  flex-shrink: 0 !important;
}

.ticker-text {
  color: #0F172A !important;
  font-weight: 700 !important;
}
