/* ==========================================================================
   Website publik — tambahan di atas style.css template
   File ini berisi semua yang TIDAK ada di template: logo dari CMS (terang/gelap),
   submenu navbar, dan komponen lain yang ditambahkan bertahap.
   style.css tidak diubah, agar mudah dibandingkan dengan template aslinya.
   ========================================================================== */

/* 1. Logo dari CMS ---------------------------------------------------------
   Setiap .brand berisi dua varian: .brand-on-light (logo biasa / teks)
   dan .brand-on-dark (logo mode gelap / teks). CSS memilih yang tampil. */
.brand-logo {
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}
.brand-text { line-height: 1; }

.brand .brand-on-light { display: inline-flex; align-items: center; }
.brand .brand-on-dark { display: none; }

[data-bs-theme="dark"] .brand .brand-on-light { display: none; }
[data-bs-theme="dark"] .brand .brand-on-dark { display: inline-flex; align-items: center; }

/* Footer selalu berlatar gelap, jadi selalu memakai varian gelap */
.brand.brand-always-dark .brand-on-light { display: none; }
.brand.brand-always-dark .brand-on-dark { display: inline-flex; align-items: center; }
.site-footer .brand-logo { height: 44px; }

/* 2. Submenu navbar -------------------------------------------------------- */
.site-nav .dropdown-toggle::after {
  border: 0;
  content: "\f107";                       /* ikon chevron-down Font Awesome */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: .7em;
  vertical-align: .1em;
  margin-left: .4rem;
  transition: transform var(--ad-speed) var(--ad-ease);
}
.site-nav .dropdown-toggle.show::after { transform: rotate(180deg); }

.site-nav .dropdown-menu {
  --bs-dropdown-bg: var(--ad-glass-strong);
  --bs-dropdown-border-color: var(--ad-line);
  --bs-dropdown-link-color: var(--ad-ink);
  --bs-dropdown-link-hover-color: var(--ad-primary);
  --bs-dropdown-link-hover-bg: rgba(var(--ad-primary-rgb), .08);
  --bs-dropdown-link-active-color: var(--ad-primary);
  --bs-dropdown-link-active-bg: rgba(var(--ad-primary-rgb), .12);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  border-radius: var(--ad-radius);
  box-shadow: var(--ad-glass-shadow);
  padding: .4rem;
  min-width: 13rem;
}
.site-nav .dropdown-item {
  border-radius: var(--ad-radius-sm);
  padding: .55rem .85rem;
  font-weight: 500;
}
[data-bs-theme="dark"] .site-nav .dropdown-menu {
  --bs-dropdown-link-hover-color: #48CAE4;
  --bs-dropdown-link-active-color: #48CAE4;
}

@media (min-width: 992px) {
  .site-nav .dropdown-menu { margin-top: .6rem !important; }
}

/* Mobile: submenu tampil menjorok di dalam menu yang terbuka, tanpa kotak melayang */
@media (max-width: 991.98px) {
  .site-nav .navbar-collapse {
    max-height: calc(100vh - var(--ad-nav-h));
    overflow-y: auto;
  }
  .site-nav .dropdown-menu {
    background: transparent;
    border: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    padding: 0 0 .4rem 1rem;
  }
}

/* 3. Footer ---------------------------------------------------------------- */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.footer-contact li {
  display: flex;
  gap: .65rem;
  margin-bottom: .6rem;
}
.footer-contact i {
  width: 1rem;
  margin-top: .3rem;
  color: var(--ad-sky);
  flex-shrink: 0;
}
.footer-contact a { color: inherit; }
.footer-contact a:hover { color: #fff; }

/* 4. Hero ------------------------------------------------------------------
   Template memakai panel "Release log" statis; diganti gambar dari CMS. */
.hero-visual {
  position: relative;
  max-width: 520px;
  margin-inline: auto;
}
.hero-visual::before {
  /* cahaya lembut di belakang gambar agar menyatu dengan latar hero */
  content: "";
  position: absolute;
  inset: 12% 8%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--ad-primary-rgb), .35), transparent 70%);
  filter: blur(40px);
}
.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: contain;
  filter: drop-shadow(0 24px 40px rgba(2, 62, 138, .25));
  animation: hero-float 7s ease-in-out infinite alternate;
}
[data-bs-theme="dark"] .hero-visual img { filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .5)); }

@keyframes hero-float { to { transform: translateY(-14px); } }

@media (prefers-reduced-motion: reduce) {
  .hero-visual img { animation: none; }
}

/* 5. Komponen section umum ------------------------------------------------- */
.empty-state {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.75rem;
  color: var(--ad-muted);
  max-width: 640px;
}
.empty-state i {
  font-size: 1.6rem;
  color: var(--ad-primary);
  flex-shrink: 0;
}
[data-bs-theme="dark"] .empty-state i { color: #48CAE4; }

/* 6. Tentang Kami ------------------------------------------------------------
   Template memakai <h2> di kartu; di beranda judul section sudah <h2>,
   jadi kartu memakai <h3> dengan ukuran yang sama. */
.vision-card h3 { font-size: 1.6rem; }
.vision-text { font-size: 1.15rem; }
.history-card { height: auto; }

/* 7. Karir ------------------------------------------------------------------- */
.career-card {
  position: relative;
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ad-ease), box-shadow .35s var(--ad-ease);
}
.career-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px -20px rgba(var(--ad-navy-rgb), .45); }
.career-card h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.career-card h3 a { color: var(--ad-ink); text-decoration: none; }
.career-card:hover h3 a { color: var(--ad-primary); }
[data-bs-theme="dark"] .career-card:hover h3 a { color: #48CAE4; }

.career-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 .9rem;
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1.1rem;
  color: var(--ad-muted);
  font-size: .925rem;
}
.career-meta i { margin-right: .4rem; color: var(--ad-primary); font-size: .85em; }
.career-summary { color: var(--ad-muted); font-size: .975rem; }

.career-foot {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--ad-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: .9rem;
}
.career-deadline { color: var(--ad-muted); display: inline-flex; align-items: center; gap: .45rem; }
.career-deadline.is-urgent { color: #c2410c; font-weight: 600; }
[data-bs-theme="dark"] .career-deadline.is-urgent { color: #fdba74; }
.career-foot .link-arrow { color: var(--ad-primary); }

/* 8. Kontak ------------------------------------------------------------------ */
#contact .map-embed { min-height: 360px; }
#contact .map-embed iframe { height: 100%; min-height: 360px; }

/* 9. Galeri ------------------------------------------------------------------
   Grid 4 kolom; foto pertama dibuat besar (2x2) sebagai sorotan. */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 160px;
  gap: .75rem;
}
@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 1rem; }
}
.gallery-tile {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: var(--ad-radius-lg);
  overflow: hidden;
  background: var(--ad-surface-2);
  cursor: zoom-in;
}
.gallery-tile:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ad-ease);
}
.gallery-tile:hover img,
.gallery-tile:focus-visible img { transform: scale(1.05); }
.gallery-tile:focus-visible { outline: 3px solid var(--ad-primary); outline-offset: 3px; }

.gallery-tile-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.5rem 1rem .9rem;
  text-align: left;
  color: #fff;
  background: linear-gradient(transparent, rgba(2, 20, 46, .85));
  display: flex;
  flex-direction: column;
  gap: .15rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s var(--ad-ease), transform .3s var(--ad-ease);
}
.gallery-tile:hover .gallery-tile-caption,
.gallery-tile:focus-visible .gallery-tile-caption { opacity: 1; transform: none; }
.gallery-tile:first-child .gallery-tile-caption { opacity: 1; transform: none; } /* foto sorotan selalu berketerangan */
.gallery-tile-caption strong { font-family: var(--ad-font-display); font-size: .95rem; line-height: 1.3; }
.gallery-tile-caption small { opacity: .8; font-size: .8rem; }

/* Layar sentuh tidak punya hover: keterangan selalu tampil */
@media (hover: none) {
  .gallery-tile-caption { opacity: 1; transform: none; }
}

/* Lightbox */
.lightbox .modal-content {
  background: transparent;
  border: 0;
  box-shadow: none;
  position: relative;
}
.lightbox .modal-dialog { max-width: min(1100px, 94vw); }
.lightbox-figure {
  border-radius: var(--ad-radius-lg);
  overflow: hidden;
  background: #010D20;
}
.lightbox-figure img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #010D20;
}
.lightbox-figure figcaption {
  padding: 1rem 1.25rem;
  color: #B8CBE0;
  font-size: .95rem;
}
.lightbox-figure figcaption strong { display: block; color: #fff; font-family: var(--ad-font-display); }
.lightbox-figure figcaption span { display: block; font-size: .85rem; margin-bottom: .35rem; }

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(1, 13, 32, .65);
  color: #fff;
  display: grid;
  place-items: center;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background-color .2s;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: var(--ad-primary); }
.lightbox-close { top: .75rem; right: .75rem; }
.lightbox-nav { top: 40%; }
.lightbox-nav.prev { left: .75rem; }
.lightbox-nav.next { right: .75rem; }
.lightbox-counter {
  position: absolute;
  top: 1.1rem;
  left: 1rem;
  font-size: .85rem;
  color: #fff;
  background: rgba(1, 13, 32, .65);
  padding: .2rem .65rem;
  border-radius: 999px;
}
.modal-backdrop.show { opacity: .85; }

/* 10. Tim ------------------------------------------------------------------- */
.team-card .photo { position: relative; background: var(--ad-surface-2); }
.team-initials {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--ad-font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--ad-primary);
  background: linear-gradient(145deg, var(--ad-surface-2), rgba(var(--ad-primary-rgb), .15));
}
[data-bs-theme="dark"] .team-initials { color: #48CAE4; }

.team-linkedin {
  position: absolute;
  right: .75rem;
  bottom: .75rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ad-glass-strong);
  color: var(--ad-primary);
  border: 1px solid var(--ad-glass-border);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  text-decoration: none;
  transition: transform .25s var(--ad-ease), background-color .2s, color .2s;
}
.team-linkedin:hover { background: var(--ad-primary); color: #fff; transform: translateY(-2px); }
.team-card .team-bio { margin-top: .5rem; font-size: .9rem; }

/* 11. Isi editor Trix (rich content) -----------------------------------------
   Dipakai Nilai, Alur Kerja, Cara Kerja Sama, dan nanti artikel/lowongan.
   Subjudul dari editor (<h2>) dikecilkan karena judul section juga <h2>. */
.rich-content { color: var(--ad-muted); }
.rich-content > :last-child { margin-bottom: 0; }
.rich-content p { margin-bottom: .85rem; }
.rich-content h2,
.rich-content h3 {
  font-size: 1.25rem;
  color: var(--ad-ink);
  margin: 1.5rem 0 .6rem;
}
.rich-content > h2:first-child,
.rich-content > h3:first-child { margin-top: 0; }
.rich-content ul,
.rich-content ol { padding-left: 1.2rem; margin-bottom: .85rem; }
.rich-content li + li { margin-top: .35rem; }
.rich-content strong { color: var(--ad-ink); }
.rich-content a { text-decoration: underline; text-underline-offset: 3px; }
.rich-content blockquote {
  border-left: 3px solid var(--ad-primary);
  padding-left: 1rem;
  margin: 1rem 0;
  font-style: italic;
}
.rich-content img { max-width: 100%; height: auto; border-radius: var(--ad-radius); }
.rich-content pre {
  background: var(--ad-surface-2);
  padding: 1rem;
  border-radius: var(--ad-radius-sm);
  overflow-x: auto;
}

/* Isi di dalam kartu timeline & kartu nilai */
.timeline-card .rich-content p,
.value-item .rich-content p { margin-bottom: .5rem; }
.value-item .rich-content { font-size: 1rem; }

/* 12. CTA ------------------------------------------------------------------- */
.cta-band .btn-light-solid { white-space: nowrap; }
.cta-link {
  color: rgba(255, 255, 255, .85);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  align-self: center;
}
.cta-link:hover { color: #fff; text-decoration: underline; }
@media (min-width: 992px) {
  .cta-link { align-self: flex-end; }
}

/* 13. Layanan ---------------------------------------------------------------- */
.service-row .icon-tile i.lni { font-size: 1.35rem; line-height: 1; }
.tech-strip {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid var(--ad-line);
}
.tech-strip-title {
  font-size: .95rem;
  font-weight: 600;
  color: var(--ad-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}
.stack-list img { width: 20px; height: 20px; object-fit: contain; }

/* 14. Produk ----------------------------------------------------------------- */
.product-card { position: relative; }
.product-card h3 a { color: var(--ad-ink); text-decoration: none; }
.product-card:hover h3 a { color: var(--ad-primary); }
[data-bs-theme="dark"] .product-card:hover h3 a { color: #48CAE4; }
.product-logo {
  width: 56px;
  height: 56px;
  border-radius: var(--ad-radius);
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--ad-line);
  padding: .4rem;
}
.product-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-summary { color: var(--ad-muted); font-size: .975rem; }
.product-foot {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--ad-line);
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.product-foot .link-arrow { color: var(--ad-primary); }

/* 15. Portfolio --------------------------------------------------------------- */
.work-caption h3 a { color: var(--ad-ink); text-decoration: none; }
.work-caption h3 a:hover { color: var(--ad-primary); }
.work-caption .work-meta { font-size: .9rem; font-weight: 600; color: var(--ad-primary); margin-bottom: .4rem; }
[data-bs-theme="dark"] .work-caption .work-meta { color: #48CAE4; }
.work-caption .link-arrow { font-size: .95rem; }
.work-slide-placeholder {
  aspect-ratio: 16 / 8;
  display: grid;
  place-items: center;
  font-size: clamp(3rem, 8vw, 5rem);
  color: rgba(255, 255, 255, .35);
  background:
    radial-gradient(circle at 80% 20%, rgba(144, 224, 239, .35), transparent 45%),
    linear-gradient(135deg, var(--ad-primary), var(--ad-navy));
}
@media (max-width: 991.98px) {
  .work-slide-placeholder { aspect-ratio: 4 / 3; }
}

/* 16. Halaman dalam (page hero) --------------------------------------------- */
.page-title { font-size: clamp(2rem, 4.5vw, 3.25rem); max-width: 22ch; }
.page-hero .hero-lead { max-width: 60ch; }

/* 17. Blog ------------------------------------------------------------------- */
.post-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  transition: transform .35s var(--ad-ease), box-shadow .35s var(--ad-ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px -20px rgba(var(--ad-navy-rgb), .45); }
.post-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ad-surface-2); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ad-ease); }
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  color: rgba(255, 255, 255, .45);
  background: linear-gradient(135deg, var(--ad-primary), var(--ad-navy));
}
.post-body { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; font-size: .875rem; color: var(--ad-muted); margin-bottom: .75rem; }
.post-meta .tag { text-decoration: none; }
.post-card h3 { font-size: 1.2rem; line-height: 1.35; margin-bottom: .5rem; }
.post-card h3 a { color: var(--ad-ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--ad-primary); }
.post-card p { color: var(--ad-muted); font-size: .95rem; }

.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.blog-categories { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--ad-line);
  background: var(--ad-glass-bg);
  color: var(--ad-ink);
  font-weight: 500;
  font-size: .925rem;
  text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip span { font-size: .78rem; color: var(--ad-muted); }
.chip:hover { border-color: var(--ad-primary); color: var(--ad-primary); }
.chip.active { background: var(--ad-primary); border-color: var(--ad-primary); color: #fff; }
.chip.active span { color: rgba(255, 255, 255, .8); }

.blog-search { position: relative; flex: 0 1 300px; }
.blog-search i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--ad-muted); }
.blog-search .form-control { padding-left: 2.6rem; border-radius: 999px; }

/* Paginasi bertema template */
.pagination-wrap { margin-top: 3rem; display: flex; justify-content: center; }
.pagination {
  --bs-pagination-color: var(--ad-ink);
  --bs-pagination-bg: var(--ad-glass-bg);
  --bs-pagination-border-color: var(--ad-line);
  --bs-pagination-hover-color: var(--ad-primary);
  --bs-pagination-hover-bg: var(--ad-glass-strong);
  --bs-pagination-hover-border-color: var(--ad-primary);
  --bs-pagination-focus-box-shadow: 0 0 0 3px rgba(var(--ad-primary-rgb), .25);
  --bs-pagination-active-bg: var(--ad-primary);
  --bs-pagination-active-border-color: var(--ad-primary);
  --bs-pagination-disabled-bg: transparent;
  --bs-pagination-disabled-color: var(--ad-muted);
  --bs-pagination-disabled-border-color: var(--ad-line);
  gap: .35rem;
  flex-wrap: wrap;
}
.pagination .page-link { border-radius: 999px !important; min-width: 42px; text-align: center; }
/* Teks "Showing x to y" bawaan paginasi Bootstrap 5 Laravel */
.pagination-wrap nav > div:first-child p { color: var(--ad-muted); font-size: .9rem; }

/* Detail artikel */
.article-meta {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem 1.4rem;
  color: var(--ad-muted);
  font-size: .95rem;
}
.article-meta i { margin-right: .4rem; color: var(--ad-primary); }
.article-meta .tag { text-decoration: none; }

.article-wrap { max-width: 760px; margin-inline: auto; }
.article-cover {
  margin: 0 0 2.5rem;
  border-radius: var(--ad-radius-xl);
  overflow: hidden;
  box-shadow: var(--ad-glass-shadow);
}
.article-cover img { width: 100%; height: auto; display: block; }

/* Di halaman artikel, judul halaman adalah <h1>, jadi <h2> dari editor tampil normal */
.article-content { font-size: 1.075rem; line-height: 1.8; color: var(--ad-ink); }
.article-content p { margin-bottom: 1.25rem; }
.article-content h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; }
.article-content img { margin: 1rem 0; box-shadow: var(--ad-glass-shadow); }
.article-content figure { margin: 1.5rem 0; }
.article-content figcaption { font-size: .875rem; color: var(--ad-muted); text-align: center; margin-top: .5rem; }

.article-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ad-line);
  font-weight: 600;
}
.article-share .social-links a,
.article-share .social-links button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--ad-line);
  background: var(--ad-glass-bg);
  color: var(--ad-ink);
  text-decoration: none;
  transition: background-color .2s, color .2s, transform .2s var(--ad-ease);
}
.article-share .social-links a:hover,
.article-share .social-links button:hover { background: var(--ad-primary); border-color: var(--ad-primary); color: #fff; transform: translateY(-2px); }
.copy-status { font-size: .875rem; font-weight: 500; color: var(--ad-primary); }
.link-back { margin-top: 2rem; }
.link-back:hover i { transform: translateX(-4px); }

/* 18. Halaman 404 ------------------------------------------------------------ */
.error-page { min-height: 80vh; display: flex; align-items: center; }
.error-code {
  font-family: var(--ad-font-display);
  font-weight: 800;
  font-size: clamp(6rem, 20vw, 11rem);
  line-height: 1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--ad-sky), var(--ad-primary), var(--ad-logo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 19. Halaman detail (karir, portfolio, produk) ------------------------------ */
.detail-heading { font-size: 1.45rem; margin-bottom: 1rem; }
.detail-aside { padding: 1.75rem; position: sticky; top: calc(var(--ad-nav-h) + 1.5rem); }
.detail-aside-title { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.detail-list { margin: 0 0 1.5rem; }
.detail-list > div { padding: .75rem 0; border-bottom: 1px solid var(--ad-line); }
.detail-list > div:first-child { padding-top: 0; }
.detail-list dt { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ad-muted); }
.detail-list dd { margin: .2rem 0 0; font-weight: 600; color: var(--ad-ink); }
.detail-list .tag { text-decoration: none; font-weight: 500; }

.alert-closed {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .6rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid #c2410c;
}
.alert-closed i { color: #c2410c; }
[data-bs-theme="dark"] .alert-closed { border-left-color: #fdba74; }
[data-bs-theme="dark"] .alert-closed i { color: #fdba74; }

/* 20. Galeri: kelompok + kartu balik ---------------------------------------- */
.gallery-group { scroll-margin-top: calc(var(--ad-nav-h) + 1rem); }
.gallery-group + .gallery-group { margin-top: clamp(3rem, 6vw, 4.5rem); }
.gallery-group-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem 1.5rem;
  padding-bottom: .9rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--ad-line);
}
.gallery-group-head h2 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); margin: 0; }
.gallery-group-head p { margin: 0; display: flex; gap: 1.25rem; color: var(--ad-muted); font-size: .925rem; }
.gallery-group-head i { margin-right: .4rem; color: var(--ad-primary); }

.flip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}
@media (min-width: 768px) { .flip-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 1200px) { .flip-grid { grid-template-columns: repeat(4, 1fr); } }

.flip-card { aspect-ratio: 1 / 1; perspective: 1200px; }
.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .7s var(--ad-ease);
}
.flip-card.is-flipped .flip-inner { transform: rotateY(180deg); }

.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  border-radius: var(--ad-radius-lg);
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.flip-front {
  padding: 0;
  border: 0;
  background: var(--ad-surface-2);
  cursor: pointer;
}
.flip-front img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ad-ease); }
.flip-front:hover img { transform: scale(1.05); }
.flip-front:focus-visible { outline: 3px solid var(--ad-primary); outline-offset: 3px; }
.flip-hint {
  position: absolute;
  right: .6rem;
  bottom: .6rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .85rem;
  color: #fff;
  background: rgba(1, 13, 32, .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: .85;
}

.flip-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  padding: 1.1rem;
  color: #E3F4FB;
  background:
    radial-gradient(circle at 85% 10%, rgba(144, 224, 239, .25), transparent 50%),
    linear-gradient(150deg, var(--ad-primary), var(--ad-navy));
}
.flip-back-body { flex-grow: 1; overflow-y: auto; display: flex; flex-direction: column; gap: .35rem; }
.flip-back strong { font-family: var(--ad-font-display); font-size: 1rem; line-height: 1.3; color: #fff; }
.flip-back small { font-size: .8rem; opacity: .8; }
.flip-back small i { margin-right: .35rem; }
.flip-back p { font-size: .875rem; margin: .35rem 0 0; line-height: 1.55; }
.flip-back-actions { display: flex; gap: .5rem; padding-top: .75rem; }
.flip-back-actions .btn-primary { flex-grow: 1; background: #fff; border-color: #fff; color: var(--ad-navy); }
.flip-back-actions .btn-glass { color: #fff; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .12); }

@media (prefers-reduced-motion: reduce) {
  .flip-inner { transition: none; }
}

/* 21. Portfolio: kartu & carousel detail -------------------------------------- */
.portfolio-meta { font-size: .9rem; font-weight: 600; color: var(--ad-primary) !important; margin-bottom: .5rem; }
[data-bs-theme="dark"] .portfolio-meta { color: #48CAE4 !important; }

.portfolio-carousel { position: relative; margin-bottom: 1.5rem; }
.portfolio-slide {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--ad-radius-xl);
  overflow: hidden;
  background: #010D20;
  cursor: zoom-in;
  box-shadow: var(--ad-glass-shadow);
}
.portfolio-slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; display: block; }
.portfolio-slide-caption { text-align: center; color: var(--ad-muted); font-size: .9rem; margin: .75rem 0 0; }
.portfolio-nav { position: absolute; top: calc(50% - 60px); z-index: 3; }
.portfolio-nav.prev { left: 1rem; }
.portfolio-nav.next { right: 1rem; }

/* Thumbnail memakai class .carousel-indicators agar status aktif diurus Bootstrap */
.carousel-indicators.portfolio-thumbs {
  position: static;
  margin: 1rem 0 0;
  padding: 0;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.carousel-indicators.portfolio-thumbs [data-bs-target] {
  width: 76px;
  height: 50px;
  margin: 0;
  padding: 0;
  text-indent: 0;
  border: 2px solid transparent;
  border-radius: var(--ad-radius-sm);
  overflow: hidden;
  opacity: .55;
  background: var(--ad-surface-2);
  transition: opacity .2s, border-color .2s;
}
.carousel-indicators.portfolio-thumbs [data-bs-target] img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-indicators.portfolio-thumbs .active { opacity: 1; border-color: var(--ad-primary); }

/* 22. Produk & Layanan -------------------------------------------------------- */
.page-jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.step-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ad-primary);
  margin-bottom: .75rem;
}
[data-bs-theme="dark"] .step-label { color: #48CAE4; }
.step-divider { padding-top: clamp(3rem, 6vw, 5rem); margin-bottom: calc(-1 * clamp(3rem, 6vw, 5rem) + 1rem); }

.service-card {
  height: 100%;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  transition: transform .35s var(--ad-ease), box-shadow .35s var(--ad-ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px -20px rgba(var(--ad-navy-rgb), .45); }
.service-card .icon-tile { margin-bottom: .5rem; }
.service-card .icon-tile i.lni { font-size: 1.35rem; line-height: 1; }
.service-card h3 { font-size: 1.25rem; margin: 0; }
.service-card p { color: var(--ad-muted); margin: 0 0 .75rem; }

#layanan, #produk, #contact { scroll-margin-top: var(--ad-nav-h); }
.detail-aside .product-logo { display: grid; }
