/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --navy: #0A2463;
  --orange: #E87C1E;
  --orange-dark: #d06e18;
  --orange-light: #F5A623;
  --green-cta: #2D6A4F;
  --peach-bg: #FDE8CE;
  --gray-card: #F0F0F0;
  --gray-icon: #E0E0E0;
  --gray-check: #E8EDF5;
  --text-body: #4B5563;
}

/* ── Base ───────────────────────────────────────────────────── */
body {
  font-family: 'Inter', sans-serif;
}

/* ── Navbar ─────────────────────────────────────────────────── */
.nav-link {
  color: #374151;
  font-size: .875rem;
  font-weight: 500;
  transition: color .2s;
}

.nav-link:hover {
  color: var(--orange);
}

.dropdown-btn {
  display: flex;
  align-items: center;
  gap: .25rem;
  color: #374151;
  font-size: .875rem;
  font-weight: 500;
  transition: color .2s;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.dropdown-btn:hover {
  color: var(--orange);
}

#mobile-menu {
  display: none;
}

#mobile-menu.open {
  display: block;
}

/* ── Hero overlays ──────────────────────────────────────────── */
/* index.html hero — darkens bottom */
.hero-overlay {
  background: linear-gradient(to bottom,
      rgba(15, 15, 30, 0.55) 0%,
      rgba(10, 10, 25, 0.72) 100%);
}

/* konsultasi / tentang-kami hero — darkens right side */
.hero-overlay-side {
  background: linear-gradient(to right,
      rgba(0, 0, 0, 0.72) 40%,
      rgba(0, 0, 0, 0.20) 100%);
}

/* generic dark overlay (tentang-kami hero, cta section) */
.dark-overlay {
  background: rgba(10, 15, 30, 0.68);
}

/* ── Background images ──────────────────────────────────────── */
.hero-bg {
  background-image: url('https://res.cloudinary.com/dzinpqdbs/image/upload/v1775809914/homepage_banner_engrqw.webp');
  background-size: cover;
  background-position: center;
}

.cta-bg {
  background-image: url('/public/images/cta_intens.webp');
  background-size: cover;
  background-position: center;
}

.cta-overlay {
  background: rgba(10, 15, 30, 0.68);
}

/* ── Logo ticker (index) ─────────────────────────────────────── */
@keyframes ticker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 28s linear infinite;
}

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

/* ── Training tabs (index) ───────────────────────────────────── */
.tab-btn {
  padding: .75rem 1.5rem;
  border-radius: .75rem;
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, color .2s;
  background: #E5E7EB;
  color: #6B7280;
  border: none;
}

.tab-btn.active {
  background: var(--peach-bg);
  color: #1F2937;
  font-weight: 600;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: grid;
}

/* ── Service cards (index) ───────────────────────────────────── */
.service-card {
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  position: relative;
}

.service-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  padding: 1rem 1.25rem;
}

/* ── Benefit cards ───────────────────────────────────────────── */
/* index variant (plain card) */
.benefit-card {
  background: var(--gray-card);
  border-radius: .875rem;
  padding: 1.5rem;
}

.benefit-icon {
  width: 44px;
  height: 44px;
  background: var(--gray-icon);
  border-radius: .625rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* konsultasi variant (flex column with gap) */
.benefit-card-col {
  background: var(--gray-card);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.icon-wrap {
  width: 44px;
  height: 44px;
  background: var(--gray-icon);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Team cards (index) ──────────────────────────────────────── */
.team-card {
  border-radius: 1rem;
  overflow: hidden;
  background: var(--peach-bg);
}

/* ── Testimonial marquee (index) ─────────────────────────────── */
.testi-track-wrap {
  overflow-x: clip;
  overflow-y: visible;
  width: 100%;
}

@keyframes marquee-right {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes marquee-left {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

.testi-row {
  display: flex;
  align-items: flex-start;
  width: max-content;
  gap: 1rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 10;
  transition: z-index 0s;
}

.testi-row:hover,
.testi-row:has(.expanded) {
  z-index: 30;
}

.testi-row-1 {
  animation: marquee-right 35s linear infinite;
}

.testi-row-2 {
  animation: marquee-left 35s linear infinite;
}

.testi-track-wrap:hover .testi-row-1,
.testi-track-wrap:hover .testi-row-2 {
  animation-play-state: paused;
}

.testi-card {
  width: 280px;
  height: 180px;
  flex-shrink: 0;
  position: relative;
  background: transparent;
}

.testi-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--peach-bg);
  border-radius: .875rem;
  padding: 1.25rem;
  overflow: hidden;
  transition: all 0.3s ease-out;
  z-index: 10;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Row 2 specific: Expand UPWARDS */
.testi-row-2 .testi-inner {
  top: auto;
  bottom: 0;
}

/* Overlay expansion state */
.testi-card:hover .testi-inner,
.testi-card.expanded .testi-inner {
  height: auto;
  min-height: 100%;
  z-index: 100;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  background: #fff;
  border-color: #ffe8d1;
  overflow: visible;
}

.testi-card:hover .line-clamp-3,
.testi-card.expanded .line-clamp-3 {
  -webkit-line-clamp: unset;
  line-clamp: unset;
}

/* ── FAQ accordion (index) ───────────────────────────────────── */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.faq-content.open {
  max-height: 400px;
}

.faq-icon {
  transition: transform .3s;
}

.faq-icon.rotated {
  transform: rotate(45deg);
}

/* ── Accordion (tentang-kami) ────────────────────────────────── */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.accordion-content.open {
  max-height: 500px;
}

.accordion-icon {
  transition: transform .3s ease;
}

.accordion-icon.rotated {
  transform: rotate(180deg);
}

/* ── Form (konsultasi) ───────────────────────────────────────── */
.form-input {
  width: 100%;
  border: 1px solid #D1D5DB;
  border-radius: .5rem;
  padding: .75rem 1rem;
  font-size: .875rem;
  color: #374151;
  transition: box-shadow .15s, border-color .15s;
  outline: none;
  font-family: inherit;
}

.form-input::placeholder {
  color: #9CA3AF;
}

.form-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(10, 36, 99, 0.15);
}

.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 500;
  color: #1F2937;
  margin-bottom: .375rem;
}

/* ── Checklist items ─────────────────────────────────────────── */
.check-item {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  font-size: .875rem;
  color: #4B5563;
}

.check-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--gray-check);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer-link {
  font-size: .875rem;
  color: #D1D5DB;
  transition: color .2s;
}

.footer-link:hover {
  color: #fff;
}

/* ── Utility animations ──────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp .6s ease both;
}

/* ── Training page ───────────────────────────────────────────── */
.training-hero-bg {
  background-image: url('/public/images/banner-training.webp');
  background-size: cover;
  background-position: center;
}

.artikel-hero-bg {
  background-image: url('/public/images/banner-artikel.webp');
  background-size: cover;
  background-position: center;
}

.video-hero-bg {
  background-image: url('/public/images/ondemand.webp');
  background-size: cover;
  background-position: center;
}

.galeri-hero-bg {
  background-image: url('/public/images/banner_galeri.webp');
  background-size: cover;
  background-position: center;
}

/* Search bar */
.search-input {
  width: 100%;
  border: 1px solid #D1D5DB;
  border-radius: .5rem;
  padding: .65rem 1rem .65rem 2.75rem;
  font-size: .875rem;
  color: #374151;
  outline: none;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}

.search-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(10, 36, 99, .12);
}

/* Training card */
.training-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}

.training-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, .10);
  transform: translateY(-2px);
}

.training-card-body {
  padding: 1.1rem 1.1rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Method badges */
.badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  padding: .2rem .55rem;
  border-radius: .35rem;
  border: 1px solid currentColor;
  line-height: 1.4;
}

.badge-onsite {
  color: var(--navy);
  background: rgba(10, 36, 99, .08);
  border-color: rgba(10, 36, 99, .2);
}

.badge-ondemand {
  color: var(--orange);
  background: rgba(232, 124, 30, .08);
  border-color: rgba(232, 124, 30, .25);
}

.badge-online {
  color: #059669;
  background: rgba(5, 150, 105, .08);
  border-color: rgba(5, 150, 105, .25);
}

.badge-offline {
  color: #6B7280;
  background: #F3F4F6;
  border-color: #D1D5DB;
}

/* Meta row (icon + text) */
.meta-row {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .78rem;
  color: #6B7280;
}

.meta-row svg {
  flex-shrink: 0;
  color: #9CA3AF;
}

/* Price */
.price-label {
  font-size: .7rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: .04em;
}

.price-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
}

/* Pagination */
.page-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: .5rem;
  font-size: .875rem;
  font-weight: 500;
  border: 1px solid #E5E7EB;
  color: #374151;
  background: #fff;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}

.page-btn:hover {
  background: var(--peach-bg);
  border-color: var(--orange);
  color: var(--navy);
}

.page-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.page-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

/* Social proof stats cards */
.stat-card {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: .875rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}

/* Training CTA — left-aligned text on dark photo */
.training-cta-bg {
  background-image: url('/public/images/cta-training.webp');
  background-size: cover;
  background-position: center;
}

.training-cta-overlay {
  background: linear-gradient(to right,
      rgba(10, 10, 25, 0.82) 45%,
      rgba(10, 10, 25, 0.30) 100%);
}

/* ── Utility ─────────────────────────────────────────────────── */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}