/* PinjolResmi.my.id - Custom Styling & E-E-A-T Mobile-First Financial Blog */
:root {
  --primary-navy: #0a192f;
  --secondary-navy: #172a45;
  --accent-blue: #0284c7;
  --accent-blue-hover: #0369a1;
  --accent-teal: #0d9488;
  --success-emerald: #059669;
  --warning-amber: #d97706;
  --danger-crimson: #dc2626;
  --bg-slate: #f8fafc;
  --card-bg: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.03);
}

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

html {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-slate);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 75px; /* Safe space for sticky mobile bottom ad */
}

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

.container, .container-fluid {
  max-width: 100%;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-navy);
  font-weight: 700;
  letter-spacing: -0.02em;
  word-break: break-word;
  overflow-wrap: break-word;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--accent-blue-hover);
}

/* High-Visibility Legal Disclaimer Bar */
.disclaimer-top-banner {
  background: #fef2f2;
  border-bottom: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.74rem;
  padding: 8px 12px;
  font-weight: 500;
  line-height: 1.45;
  word-break: break-word;
  overflow-wrap: break-word;
}
.disclaimer-top-banner a {
  color: #7f1d1d;
  font-weight: 700;
  text-decoration: underline;
  display: inline-block;
  margin-top: 2px;
}

/* Main Navbar */
.navbar-custom {
  background: var(--primary-navy);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  padding: 10px 0;
}
.navbar-custom .container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
}
.navbar-brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff !important;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  max-width: calc(100% - 60px);
}
.brand-name-wrap {
  display: inline-flex;
  align-items: center;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.navbar-brand-title span.badge-ojk {
  background: #0284c7;
  color: #fff;
  font-size: 0.6rem;
  padding: 2px 5px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  white-space: nowrap;
}
.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  padding: 6px 10px !important;
  border-radius: 6px;
  display: block;
}
@media (min-width: 992px) {
  .navbar-toggler {
    display: none !important;
  }
}
.nav-link-custom {
  color: #cbd5e1 !important;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 14px !important;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.nav-link-custom:hover, .nav-link-custom.active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #0a192f 0%, #1e3a8a 100%);
  color: #ffffff;
  padding: 36px 0 32px;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.15) 0%, transparent 60%);
  pointer-events: none;
}
.hero-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
  max-width: 100%;
  word-break: break-word;
}
.pulse-indicator {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 1.8s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.hero-title {
  color: #ffffff;
  font-size: clamp(1.4rem, 4.5vw, 2.35rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 14px;
  word-break: break-word;
  overflow-wrap: break-word;
}
.hero-lead {
  color: #cbd5e1;
  font-size: clamp(0.85rem, 2.8vw, 1.05rem);
  font-weight: 400;
  max-width: 680px;
  margin-bottom: 22px;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Quick Search Input inside Hero */
.search-ojk-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 650px;
}
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  padding-left: 8px;
}
.search-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}
.search-input-wrap input {
  border: none;
  outline: none;
  font-size: 0.9rem;
  color: var(--text-dark);
  width: 100%;
  min-width: 0;
}
.btn-search-main {
  background: var(--accent-blue);
  color: #ffffff;
  border: none;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-search-main:hover {
  background: var(--accent-blue-hover);
}

@media (max-width: 576px) {
  .search-ojk-box {
    flex-direction: column;
    padding: 10px;
    gap: 10px;
    border-radius: 10px;
  }
  .search-input-wrap {
    width: 100%;
    padding: 4px 6px;
    border-bottom: 1px solid #e2e8f0;
  }
  .btn-search-main {
    width: 100%;
    padding: 11px 16px;
    font-size: 0.9rem;
    white-space: normal;
  }
}

/* Quick Feature Cards */
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}
.feature-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.icon-blue { background: #e0f2fe; color: #0284c7; }
.icon-emerald { background: #d1fae5; color: #059669; }
.icon-amber { background: #fef3c7; color: #d97706; }
.icon-crimson { background: #fee2e2; color: #dc2626; }

/* Article Card Styles */
.article-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.article-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: #cbd5e1;
}
.article-thumb-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: #0f172a;
}
.article-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.article-card:hover .article-thumb-img {
  transform: scale(1.05);
}
.article-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.4px;
}
.article-body {
  padding: 18px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.article-meta {
  font-size: 0.74rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.article-title {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--text-dark);
}
.article-excerpt {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 14px;
  flex-grow: 1;
}

/* E-E-A-T Author Box */
.author-box-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}
.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-light);
  flex-shrink: 0;
}
.author-info h6 {
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-dark);
}
.author-info span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Google AdSense Placement Placeholders */
.ad-slot-wrapper {
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  margin: 16px 0;
  position: relative;
  max-width: 100%;
  overflow: hidden;
  word-break: break-word;
}
.ad-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 4px;
  display: block;
}
.ad-leaderboard {
  min-height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ad-in-article {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ad-sticky-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -3px 12px rgba(0,0,0,0.12);
  padding: 6px 12px;
  text-align: center;
  max-height: 70px;
}

/* Dedicated E-E-A-T Reviewer Box inside articles */
.eeat-verifier-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 16px;
  margin: 20px 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.eeat-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

/* Calculator Card */
.calculator-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow-md);
}
.calc-result-box {
  background: linear-gradient(135deg, #0a192f 0%, #1e3a8a 100%);
  color: #ffffff;
  border-radius: 12px;
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.calc-stat-value {
  font-size: 1.7rem;
  font-weight: 800;
  color: #38bdf8;
  line-height: 1.2;
}

/* Comparison Table */
.table-fintech {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  width: 100%;
}
.table-fintech th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 12px;
  border-bottom: 2px solid var(--border-light);
  white-space: nowrap;
}
.table-fintech td {
  padding: 12px;
  vertical-align: middle;
  font-size: 0.84rem;
  border-bottom: 1px solid var(--border-light);
}

/* Footer */
footer.main-footer {
  background: var(--primary-navy);
  color: #94a3b8;
  padding: 48px 0 24px;
  font-size: 0.84rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
footer.main-footer h5 {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
footer.main-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
footer.main-footer ul li {
  margin-bottom: 8px;
}
footer.main-footer ul li a {
  color: #cbd5e1;
  transition: color 0.2s;
}
footer.main-footer ul li a:hover {
  color: #38bdf8;
}
.footer-disclaimer-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 16px;
  margin: 28px 0 20px;
  font-size: 0.74rem;
  color: #94a3b8;
  line-height: 1.6;
  word-break: break-word;
}

/* Clean Media Queries for Mobile Responsiveness */
@media (max-width: 991px) {
  .navbar-nav {
    padding-top: 12px;
  }
  .nav-link-custom {
    padding: 10px 12px !important;
  }
  .navbar-collapse {
    background: #0d1b2a;
    border-radius: 8px;
    padding: 12px;
    margin-top: 10px;
  }
}

@media (max-width: 768px) {
  .calculator-card {
    padding: 16px;
  }
  .calc-stat-value {
    font-size: 1.45rem;
  }
  .hero-section {
    padding: 30px 0 26px;
  }
  .article-thumb-wrap {
    height: 160px;
  }
  .eeat-verifier-card {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .navbar-brand-title {
    font-size: 1.08rem;
  }
  .navbar-brand-title span.badge-ojk {
    font-size: 0.55rem;
    padding: 2px 4px;
  }
  .calc-result-box {
    padding: 16px;
  }
  .feature-card {
    padding: 16px;
  }
}
