/* =============================================================
   dlabs-custom.css
   Custom overrides for dlabs branding
   ============================================================= */

/* ------------------------------------------------------------
   Logo sizing — acuan: black-logo.svg asli = 170×40px
   dlabs PNG ratio ≈ 3.26:1 (912×280px)
   ------------------------------------------------------------ */

/* 0. Remove gaps caused by topbar stubs — main.css reserves space for a header-top-section
      we don't use. Reset header AND breadcrumb margins to 0. */
.header-1,
.header-1.header-2,
.header-1.header-2.dark-mods {
  margin-top: 0 !important;
}
/* breadcrumb-wrapper has margin-top: 50px in main.css (designed for topbar offset) */
.breadcrumb-wrapper {
  margin-top: 0 !important;
}

/* 1. Navbar / Header utama
      height: 40px → width otomatis ≈ 130px (setara logo asli) */
.header-left .logo a img {
  height: 40px;
  width: auto;
  display: block;
}

/* 2. Offcanvas sidebar (mobile)
      sedikit lebih lebar karena ruang panel lebih luas */
.offcanvas__logo a img {
  max-width: 150px;
  height: auto;
  display: block;
}

/* 3. Search popup overlay
      container .search_logo sudah dibatasi max-width: 200px di main.css,
      cukup pastikan img mengikutinya */
.search_logo a img {
  width: 100%;
  height: auto;
  display: block;
}

/* 4. Footer logo
      sedikit lebih kecil agar proporsional di kolom widget footer */
.footer-logo img {
  max-width: 150px;
  height: auto;
  display: block;
}

/* 5. News card image — prevent flex from squishing the portrait image */
/* At desktop (>1399px), object-fit is not set in main.css; add it here  */
@media (min-width: 1400px) {
  .news-card-items-5 .news-image {
    flex: 0 0 auto;          /* don't shrink — let intrinsic aspect ratio dictate width */
    min-width: 230px;
  }
  .news-card-items-5 .news-image img {
    object-fit: cover;
  }
}

/* 6. Header language switcher (desktop + mobile) */

/* Desktop — inside header-right */
.header-lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: 16px;
}
.header-lang-switcher .lang-btn,
.offcanvas__lang-switcher .lang-btn {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  line-height: 1;
  color: inherit;
}
.header-lang-switcher .lang-btn:hover,
.offcanvas__lang-switcher .lang-btn:hover {
  color: var(--theme);
}
.header-lang-switcher .lang-btn.active,
.offcanvas__lang-switcher .lang-btn.active {
  color: var(--theme);
  background: rgba(0, 160, 220, 0.10);
}
.header-lang-switcher .lang-divider,
.offcanvas__lang-switcher .lang-divider {
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
  font-weight: 400;
  user-select: none;
}

/* Inner pages have lighter header — darken divider */
.header-1:not(.header-2) .header-lang-switcher .lang-divider {
  color: rgba(0, 0, 0, 0.25);
}

/* Mobile offcanvas */
.offcanvas__lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.offcanvas__lang-switcher .lang-btn {
  color: #1a1a2e;
}

/* 7. Footer legal + language switcher alignment */
.footer-bottom-wrapper .footer-bottom-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
@media (max-width: 767px) {
  .footer-bottom-wrapper .footer-bottom-right {
    align-items: center;
  }
}
.footer-bottom-wrapper .footer-list li {
  color: rgba(255, 255, 255, 0.87);
}
.footer-bottom-wrapper .lang-switcher-inline .lang-link {
  color: rgba(255, 255, 255, 0.87);
  text-decoration: none;
}
.footer-bottom-wrapper .lang-switcher-inline .lang-link:hover {
  color: var(--theme);
}
.footer-bottom-wrapper .lang-switcher-inline .lang-link.active {
  color: var(--theme);
}

/* 8. Pricing — fix sub margin (main.css uses -12px for short prices like "$29",
      but dlabs prices are longer e.g. "Rp 399rb" so sub ends up overlapping) */
.pricing-box-items .pricing-header h3 sub {
  margin-left: 4px;
}

/* 9. Pricing — prevent price from wrapping to 2 lines & align buttons across cards */
/* Prevent "Rp" and "399rb" from breaking onto separate lines */
.pricing-box-items .pricing-header h3 {
  white-space: nowrap;
}
/* Make card a flex column so the CTA button can be pushed to a consistent position */
.pricing-box-items {
  display: flex;
  flex-direction: column;
}
.pricing-box-items .pricing-header {
  flex: 1 1 auto;
}
.pricing-box-items .theme-btn {
  margin-top: auto;
  flex-shrink: 0;
}
.pricing-box-items .pricing-list {
  flex-shrink: 0;
}

/* 9. Pricing — popular card highlight & badge */
.pricing-box-popular {
  border-top: 4px solid var(--theme);
  position: relative;
}
.pricing-popular-label {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--theme);
  color: var(--white);
  padding: 4px 20px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
  z-index: 10;
}

/* Pricing comparison table header */
.pricing-comparison-table thead th {
  background-color: var(--theme);
  color: var(--white);
  font-weight: 600;
  padding: 14px 16px;
}
.pricing-comparison-table tbody td {
  padding: 12px 16px;
}

/* Pricing cards inside service detail — 2-col layout */
.pricing-cards-in-detail {
  margin-top: 40px;
  margin-bottom: 40px;
}
