/* ==========================================================================
   PT. MANDIRI MAJU LOGISTIK (MML) - CLEAN ROYAL OCEAN ENTERPRISE STYLESHEET
   ========================================================================== */

:root {
  --mml-cobalt: #1B4B7A;
  --mml-ocean: #0F2F4F;
  --mml-royal: #2563EB;
  --mml-sky: #38BDF8;
  --mml-sky-soft: #E0F2FE;
  --mml-teal: #0D9488;
  --mml-gold: #F59E0B;
  --mml-ice: #F4F7FB;
  --mml-input-bg: #EEF4FB;
  --mml-slate-900: #0F2942;
  --mml-slate-600: #475569;
  --mml-slate-400: #94A3B8;
  --mml-border: rgba(27, 75, 122, 0.14);
  --mml-shadow: 0 12px 32px -8px rgba(15, 47, 79, 0.10);
  --mml-shadow-hover: 0 20px 44px -10px rgba(27, 75, 122, 0.18);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--mml-slate-600);
  background-color: var(--mml-ice);
  overflow-x: hidden;
  padding-top: 112px;
}

h1, h2, h3, h4, h5, h6, .brand-font {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  color: var(--mml-slate-900);
  letter-spacing: -0.02em;
}

/* Top Utility Bar + Floating Capsule Navbar */
.mml-header-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: transparent;
}

.mml-top-utility {
  background: var(--mml-ocean);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  padding: 6px 0;
}

.mml-top-utility a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s;
}

.mml-top-utility a:hover {
  color: var(--mml-sky);
}

.mml-capsule-nav {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--mml-border);
  box-shadow: 0 8px 24px rgba(15, 47, 79, 0.06);
  padding: 10px 0;
}

.mml-brand-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.mml-brand-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--mml-ocean);
  line-height: 1.1;
}

.mml-brand-name span {
  color: var(--mml-royal);
}

.mml-brand-tagline {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--mml-slate-400);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.mml-capsule-nav .nav-link {
  color: var(--mml-slate-600);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 15px !important;
  border-radius: 24px;
  transition: all 0.2s ease;
}

.mml-capsule-nav .nav-link:hover,
.mml-capsule-nav .nav-link.active {
  color: var(--mml-cobalt);
  background-color: var(--mml-sky-soft);
}

.btn-mml-primary {
  background: linear-gradient(135deg, var(--mml-cobalt), var(--mml-royal));
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 28px;
  padding: 10px 22px;
  box-shadow: 0 6px 18px rgba(27, 75, 122, 0.26);
  transition: all 0.25s ease;
}

.btn-mml-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(27, 75, 122, 0.36);
}

.btn-mml-outline {
  background: #fff;
  color: var(--mml-cobalt);
  font-weight: 700;
  border: 1.5px solid var(--mml-cobalt);
  border-radius: 28px;
  padding: 9px 22px;
  transition: all 0.25s ease;
}

.btn-mml-outline:hover {
  background: var(--mml-cobalt);
  color: #fff;
}

/* Split-Screen Hero */
.mml-split-hero {
  background: linear-gradient(160deg, #FFFFFF 0%, #EEF4FB 58%, #E0F2FE 100%);
  padding: 48px 0 68px;
  position: relative;
  overflow: hidden;
}

.mml-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(27, 75, 122, 0.1);
  color: var(--mml-cobalt);
  padding: 7px 16px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.mml-quick-track-box {
  background: #FFFFFF;
  border-radius: 22px;
  padding: 16px;
  border: 1px solid var(--mml-border);
  box-shadow: var(--mml-shadow);
}

.mml-quick-track-box .form-control {
  background: var(--mml-input-bg);
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--mml-slate-900);
}

.mml-quick-track-box .form-control:focus {
  background: #fff;
  border-color: var(--mml-cobalt);
  box-shadow: 0 0 0 3px rgba(27, 75, 122, 0.12);
}

.mml-hero-visual {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 48px -12px rgba(15, 47, 79, 0.22);
  border: 6px solid #fff;
}

.mml-hero-stat-pill {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(15, 47, 79, 0.88);
  backdrop-filter: blur(10px);
  color: #fff;
  border-radius: 18px;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Bento Grid Cards & Top-Accent Cards */
.mml-bento-card {
  background: #FFFFFF;
  border-radius: 22px;
  border: 1px solid var(--mml-border);
  box-shadow: var(--mml-shadow);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}

.mml-bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--mml-shadow-hover);
}

.mml-bento-strip {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--mml-cobalt), var(--mml-sky));
}

.mml-bento-strip.teal {
  background: linear-gradient(90deg, var(--mml-teal), #2DD4BF);
}

.mml-bento-strip.gold {
  background: linear-gradient(90deg, #D97706, var(--mml-gold));
}

.mml-icon-squircle {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: var(--mml-sky-soft);
  color: var(--mml-cobalt);
}

/* Page Sub-Header */
.mml-page-banner {
  background: linear-gradient(135deg, var(--mml-ocean) 0%, var(--mml-cobalt) 60%, var(--mml-royal) 100%);
  color: #fff;
  padding: 54px 0 48px;
  border-radius: 0 0 32px 32px;
  margin-bottom: 40px;
}

.mml-page-banner h1 {
  color: #fff;
}

/* Footer */
.mml-footer {
  background: var(--mml-ocean);
  color: rgba(255, 255, 255, 0.82);
  padding-top: 60px;
  border-top: 4px solid var(--mml-sky);
}

.mml-footer h5, .mml-footer h6 {
  color: #fff;
}

.mml-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.2s;
}

.mml-footer a:hover {
  color: var(--mml-sky);
}

/* Login Split Card */
.mml-login-wrapper {
  min-height: calc(100vh - 112px);
  display: flex;
  align-items: center;
  padding: 40px 0;
  background: linear-gradient(145deg, #EEF4FB 0%, #F4F7FB 50%, #E0F2FE 100%);
}

.mml-login-card {
  background: #fff;
  border-radius: 26px;
  border: 1px solid var(--mml-border);
  box-shadow: var(--mml-shadow);
  overflow: hidden;
}

.mml-login-side {
  background: linear-gradient(155deg, var(--mml-ocean), var(--mml-cobalt), var(--mml-royal));
  color: #fff;
  padding: 40px;
}

.mml-login-side h2, .mml-login-side h3 {
  color: #fff;
}

@media (max-width: 991.98px) {
  body {
    padding-top: 96px;
  }
}

/* Service Detail Images (Layanan Page) */
.service-img-wrapper {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--mml-shadow);
  border: 4px solid #fff;
  width: 100%;
}

.service-detail-img {
  width: 100% !important;
  height: 340px !important;
  object-fit: cover;
  display: block;
}

.service-img-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(15, 47, 79, 0.9);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.service-number-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--mml-royal);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

/* ==========================================================================
   Timeline Riwayat Kontainer (Check Container Public & Portal)
   ========================================================================== */
.portal-timeline {
  position: relative;
  padding-left: 36px;
}

.portal-timeline::before {
  content: '';
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 11px;
  width: 2px;
  background: #CBD5E1;
}

.timeline-item {
  position: relative;
  margin-bottom: 18px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -36px;
  top: 16px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid #1B4B7A;
  box-shadow: 0 0 0 4px rgba(27, 75, 122, 0.14);
  z-index: 2;
  transition: transform 0.2s ease;
}

.timeline-content {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 16px 20px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(15, 47, 79, 0.04);
}

.timeline-content:hover {
  border-color: #38BDF8;
  box-shadow: 0 8px 20px rgba(15, 47, 79, 0.08);
  transform: translateY(-2px);
}

.timeline-content .badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}
