:root {
  --bps-main: #012b69;
  --bps-support: #0070b8; /* Darkened from #0393dd for WCAG AA text contrast */
  --bps-support-light: #7dd3fc; /* New light blue for dark backgrounds */
  --bps-main-light: #0d4a9f;
  --bg-secondary: #fcfcfc;
  --text-main: #334155;
  --text-muted: #64748B;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-secondary);
  color: var(--text-main);
  line-height: 1.6;
}

/* Typography Enhancements */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: var(--bps-main);
}

/* Dynamic Navbar */
.navbar {
  transition: all 0.3s ease-in-out;
  padding: 1.5rem 0;
  background-color: transparent;
}

.navbar.scrolled {
  background-color: var(--bps-main) !important;
  backdrop-filter: none;
  /* Removed blur since we want solid color */
  padding: 0.8rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.brand-logo {
  height: 40px;
  /* tetap kecil agar navbar aman */
  transform: scale(1.4);
  /* membesarkan tampilan */
  transform-origin: left center;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: #e2e8f0 !important;
  margin: 0 0.5rem;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: white !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--bps-support);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

/* 🔥 Background layer */
.hero-bg {
  position: absolute;
  inset: 0;

  background: linear-gradient(135deg,
      rgba(1, 43, 105, 0.8) 0%,
      rgba(13, 74, 159, 0.8) 100%),
    url('../img/herobg.png');

  background-size: cover;
  background-position: center;

  z-index: -1;
  transform: translateY(0);
  will-change: transform;
}

/* Page Header */
.page-header {
  position: relative;
  padding-top: 150px;
  padding-bottom: 80px;
}

/* Decorative Blobs for Hero */
.hero-blob-1,
.hero-blob-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.6;
}

.hero-blob-1 {
  width: 400px;
  height: 400px;
  background: rgba(3, 147, 221, 0.2);
  /* Support color rgb */
  top: -100px;
  right: -100px;
}

.hero-blob-2 {
  width: 500px;
  height: 500px;
  background: rgba(1, 42, 105, 0.15);
  /* Main color rgb */
  bottom: -150px;
  left: -150px;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 2.7rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: white;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #e2e8f0;
  margin-bottom: 2rem;
  max-width: 600px;
}

/* Buttons */
.btn-primary-custom {
  background-color: var(--bps-support);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px 0 rgba(0, 112, 184, 0.39);
}

.btn-primary-custom:hover {
  background-color: #005a96;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 112, 184, 0.4);
}

.btn-outline-custom {
  background-color: transparent;
  color: var(--bps-main);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  border: 2px solid var(--bps-main);
  transition: all 0.3s ease;
}

.btn-outline-custom:hover {
  background-color: var(--bps-main);
  color: white;
  transform: translateY(-2px);
}

.hero-section .btn-outline-custom {
  color: white;
  border-color: white;
}

.hero-section .btn-outline-custom:hover {
  background-color: white;
  color: var(--bps-main);
}

/* Features/Info Cards */
.info-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  border: none;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

.info-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(1, 42, 105, 0.1);
  color: var(--bps-main);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Blog Cards */
.blog-card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  background: white;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  background-color: #f1f5f9;
}

.blog-date {
  font-size: 0.85rem;
  color: var(--bps-support);
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

/* Footer CTA Section */
.footer-cta {
  background: white;
  margin: 3rem auto -2.5rem auto; /* Turunkan CTA, overlap sedikit ke footer (-2.5rem) */
  padding: 2rem 1.5rem;
  border-radius: 16px;
  max-width: 750px;
  width: 90%;
  position: relative;
  z-index: 10;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08); /* Shadow halus/kalem */
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.footer-cta h2 {
  color: var(--bps-main);
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-size: 1.5rem; /* Ukuran lebih kecil/kalem */
}

.footer-cta p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 0.95rem; /* Menyusutkan teks p */
}

.btn-cta-primary {
  display: inline-block;
  background-color: var(--bps-support);
  color: white;
  padding: 0.7rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem; /* Tombol tidak terlalu besar */
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 112, 184, 0.2);
}

.btn-cta-primary:hover {
  background-color: #005a96;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 112, 184, 0.3);
}

/* Footer layout */
.footer {
  background-color: var(--bps-main);
  color: white;
  padding: 5rem 0 2rem 0; /* Accommodate slight overlap */
}

.footer-content {
  display: flex;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

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

.footer-col p {
  color: #cbd5e1;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}

.footer-col ul a:hover,
.footer-col .maps-link:hover {
  color: var(--bps-support-light);
  transform: translateX(5px);
}

.footer-social a {
  color: white;
  opacity: 0.75;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-social a:hover {
  opacity: 1;
  color: var(--bps-support-light);
  transform: translateY(-3px);
}

.maps-link {
  color: var(--bps-support-light) !important;
  font-weight: 600;
  margin-top: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.9rem;
}

/* Media Queries */
@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--bps-main);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
    position: absolute;
    top: 100%;
    width: 95%;
    left: 2.5%;
  }
}