:root {
  --primary: #004b8d;
  --primary-600: #006bb3;
  --accent: #f2b705;
  --muted: #6b7280;
  --bg: #004b8d;
  --text: #ffffff;
  --card-bg: #e9f2fb;
  --border: rgba(255, 255, 255, 0.15);
  --radius: 14px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial;
  line-height: 1.45;
  color: #0f1724;
}
a {
  color: inherit;
}

body {
  flex-direction: column;
}

main {
  flex: 1;
  min-height: 100vh !important;
}

/* Layout container */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header.site-header {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 60;
  box-shadow: 0 3px 10px rgba(2, 6, 23, 0.08);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand a {
  text-decoration: none;
}
.brand img {
  height: 50px;
  border-radius: 13px;
}
.brand .title {
  font-weight: 700;
  font-size: 1.05rem;
}

/* Nav */
nav.main-nav ul {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav.main-nav a {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

nav.main-nav a:hover {
  background: var(--accent);
  color: #004b8d;
}

/* ── Dropdown ── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dropdown-menu {
  display: none;
  visibility: hidden;
  transform: translateY(-20%);
  transition: transform 0.25s ease-in-out;
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  background: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 6px;
  list-style: none;
  margin: 0;
  min-width: 170px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  z-index: 100;
}

.dropdown-menu li a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

/* Same hover style as main nav */
.dropdown-menu li a:hover {
  background: var(--accent);
  color: #004b8d;
}

/* Show on hover */
.nav-dropdown:hover .dropdown-menu {
  display: block;
  visibility: visible;
  transform: translateY(0);
}

/* Hamburger */
.hamburger {
  display: none;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.4rem;
  padding: 8px;
  border-radius: 8px;
}

/* HERO / Slider */
.hero {
  position: relative;
  height: 560px;
  background: #e9f2fb;
  display: flex;
  align-items: center;
}
.hero .wrap {
  display: flex;
  gap: 36px;
  align-items: center;
}
.hero-left {
  flex: 1;
}
.hero-title {
  font-size: 2.15rem;
  font-weight: 800;
  margin: 0 0 12px;
}
.hero-lead {
  color: var(--muted);
  margin: 0 0 20px;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.cta:hover {
  background: var(--accent);
  color: #004b8d;
}

.muted-cta {
  background: transparent;
  border: 1px solid rgba(15, 23, 36, 0.08);
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 10px;
  transition: transform 0.3s ease-in-out;
}

.muted-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.hero-right {
  flex: 1.05;
  position: relative;
}
.slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  height: 420px;
}
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.slide.active {
  opacity: 1;
}
.slider .controls {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}
.dot.active {
  background: var(--accent);
}

/* Sections */
section {
  padding: 60px 0;
}
.section-title {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-bottom: 24px;
}
.section-title h2 {
  margin: 0;
  font-size: 1.4rem;
}
.lead {
  color: var(--muted);
}

/* ── Company Profile ── */

/* ── Profile blocks ── */
.prof-block {
  border-radius: 18px;
  margin-bottom: 28px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 75, 141, 0.07);
}

/* Faint tinted backgrounds per section */
.prof-block--video {
  background: #eef5fc;
} /* faint blue  */
.prof-block--tujuan {
  background: #fffbec;
} /* faint yellow */
.prof-block--prinsip {
  background: #f0f5f0;
} /* faint green-grey */

.prof-block-inner {
  padding: 36px 40px;
}

.prof-heading {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 22px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* ── Two-column layout inside Tujuan / Prinsip ── */
.prof-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

/* Reversed column order for Prinsip (text left, image right) */
.prof-two-col--reversed {
  direction: rtl; /* flip columns */
}
.prof-two-col--reversed > * {
  direction: ltr; /* restore text direction inside */
}

.prof-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.prof-img-wrap img {
  width: 100%;
  max-width: 420px;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.09);
}

.prof-text p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.96rem;
  text-align: justify;
  margin: 0;
}

/* ── Prinsip list ── */
.prof-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prof-list li {
  color: #374151;
  font-size: 0.92rem;
  line-height: 1.55;
}
.prof-list li strong {
  color: var(--primary);
}
.prof-list li::marker {
  color: var(--accent);
}

/* ── Video wrapper 16:9 ── */
.video-wrapper {
  position: relative;
  padding-bottom: 50%;
  height: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}
.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .prof-block-inner {
    padding: 24px 20px;
  }
  .prof-two-col {
    grid-template-columns: 1fr;
  }
  .prof-two-col--reversed {
    direction: ltr;
  }
}

/* ── Catalogue section ── */
.cat-lead {
  text-align: center;
  color: var(--muted);
  margin: -12px 0 32px;
  font-size: 0.97rem;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.cat-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 26px 28px;
  box-shadow: 0 6px 24px rgba(0, 75, 141, 0.08);
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: default;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease;
}

/* Hover — card fills with blue, text turns white/yellow */
.cat-card:hover {
  background: #004b8d;
  border-color: var(--accent);
  box-shadow: 0 12px 36px rgba(0, 75, 141, 0.28);
  transform: translateY(-5px);
}

.cat-icon {
  font-size: 2.4rem;
  line-height: 1;
}

.cat-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
  transition: color 0.25s ease;
}
.cat-title a {
  color: inherit;
  text-decoration: none;
}
.cat-card:hover .cat-title {
  color: var(--accent); /* yellow on hover */
}

.cat-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  transition: color 0.25s ease;
}
.cat-card:hover .cat-desc {
  color: rgba(255, 255, 255, 0.82);
}

.cat-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1; /* pushes CTA button to bottom */
}

.cat-list li {
  font-size: 0.88rem;
  color: #374151;
  transition: color 0.25s ease;
}
.cat-list li a {
  color: inherit;
  text-decoration: none;
  font-weight: bold;
}
.cat-card:hover .cat-list li {
  color: rgba(255, 255, 255, 0.88);
}

/* bullet dot turns yellow on hover */
.cat-card:hover .cat-list li::marker {
  color: var(--accent);
}

/* CTA link at card bottom */
.cat-cta {
  display: inline-block;
  margin-top: 6px;
  padding: 9px 18px;
  border-radius: 9px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--accent);
  color: #004b8d;
  align-self: flex-start;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.2s ease;
}
.cat-cta:hover {
  background: #fff;
  color: #004b8d;
  transform: translateX(3px);
}
/* When the card itself is hovered, button stays yellow */
.cat-card:hover .cat-cta {
  background: var(--accent);
  color: #004b8d;
}

/* Responsive */
@media (max-width: 1024px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .cat-grid {
    grid-template-columns: 1fr;
  }
}

/* Catalog-Jasa Sewa */
.cat-jasewa {
  padding: 50px 0;
  font-family: Arial, sans-serif;
}

/* GRID */
.grid-jasewa {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.grid-jasewa.ekspertis {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.ekspertis .card-jasewa {
  min-height: 300px;
}
.ekspertis .cj-img-container {
  width: 100%;
  height: 250px;
  margin: 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ekspertis .cj-img-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12%;
}

.grid-jasewa.pemeliharaan {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.pemeliharaan .card-jasewa {
  min-height: 300px;
}
.pemeliharaan .cj-img-container {
  width: 100%;
  height: 420px;
  margin: 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pemeliharaan .cj-img-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6%;
}

.grid-jasewa.rotating {
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: 28px;
}
.rotating .card-jasewa {
  min-height: 300px;
}
.rotating .cj-img-container {
  width: 100%;
  height: 300px;
  margin: 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rotating .cj-img-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10%;
}

.card-jasewa {
  background: #e9f2fb;
  border: 1.5px solid rgba(0, 75, 141, 0.15);
  border-radius: 12px;
  padding: 14px 10px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  position: relative;
}
.card-jasewa:hover {
  background: #004b8d;
  border-color: #f2b705;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 75, 141, 0.2);
}
.cj-num {
  font-size: 0.62rem;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: 0.06em;
}
.cj-img-container {
  width: 150px;
  height: 150px;
  margin: 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cj-img-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20%;
}
.cj-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: #2e294e;
  line-height: 1.3;
}
.card-jasewa:hover .cj-num,
.card-jasewa:hover .cj-name {
  color: #fff;
}

/* ── Modal ── */
.cj-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(46, 41, 78, 0.55);
  backdrop-filter: blur(4px);
  z-index: 999;
  align-items: center;
  justify-content: center;
}
.cj-overlay.open {
  display: flex;
}
.cj-modal {
  background: #fff;
  border-radius: 18px;
  width: min(520px, 92vw);
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px 28px 28px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  animation: cjPop 0.2s ease;
}
@keyframes cjPop {
  from {
    opacity: 0;
    transform: scale(0.93) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.cj-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: #f1e9da;
  border: 0;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #2e294e;
  transition: background 0.2s;
}
.cj-modal-close:hover {
  background: #f2b705;
}
.cj-modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.cj-modal-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-right: 15px;
}
.cj-modal-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #004b8d;
  margin: 0;
}
.cj-modal-desc {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 4px 0 0;
}
.cj-modal-num {
  font-size: 0.7rem;
  color: #6b7280;
  font-weight: 600;
}
.cj-spec-label,
.cj-spec2-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #004b8d;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #f2b705;
}
.cj-spec2-label {
  margin-top: 24px;
}
.cj-spec-list,
.cj-spec2-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cj-spec-list li,
.cj-spec2-list li {
  font-size: 0.84rem;
  color: #374151;
  line-height: 1.5;
  padding: 6px 10px;
  border-radius: 7px;
  background: #f7f4ef;
}
.cj-spec-list li strong,
.cj-spec2-list li strong {
  color: #004b8d;
}

.cj-spec-label2 {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #004b8d;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #f2b705;
}
.cj-spec-list2 {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cj-spec-list2 li {
  font-size: 0.84rem;
  color: #374151;
  line-height: 1.5;
  padding: 6px 10px;
  border-radius: 7px;
  background: #f7f4ef;
}
.cj-spec-list li strong {
  color: #004b8d;
}

/* Responsive */
@media (max-width: 1200px) {
  .grid-jasewa {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 800px) {
  .grid-jasewa {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 500px) {
  .grid-jasewa {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-jasewa.rotating {
      grid-template-columns: none;
      gap: 28px;
    }
}

/* Keunggulan Kami */
.pg-section {
  padding: 60px 0;
}
.pg-section--clients {
  background: #f5f8fc;
}
.pg-section--pkl {
  background: #ffffff;
}
.pg-section--gallery {
  background: #f5f8fc;
}
.pg-section-head {
  text-align: center;
  margin-bottom: 36px;
}
.pg-section-tag {
  display: inline-block;
  background: #f2b705;
  color: #003d75;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.pg-section-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #004b8d;
  margin: 0 0 8px;
}
.pg-section-sub {
  color: #6b7280;
  font-size: 0.93rem;
  margin: 0;
}

/* clients marquee */
.client-track-outer {
  overflow: hidden;
  position: relative;
  padding: 14px 0;
}
.client-track-outer::before,
.client-track-outer::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.client-track-outer::before {
  left: 0;
  background: linear-gradient(to right, #f5f8fc, transparent);
}
.client-track-outer::after {
  right: 0;
  background: linear-gradient(to left, #f5f8fc, transparent);
}
.client-track {
  display: flex;
  gap: 24px;
  align-items: center;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.client-track:hover {
  animation-play-state: paused;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.client-slide {
  flex-shrink: 0;
  width: 160px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 12px 16px;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.client-slide:hover {
  box-shadow: 0 6px 18px rgba(0, 75, 141, 0.12);
  transform: translateY(-2px);
}
.client-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(40%);
  opacity: 0.75;
  transition:
    filter 0.2s,
    opacity 0.2s;
}
.client-slide:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* PKL video grid */
.vid-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.vid-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 75, 141, 0.07);
  border: 1px solid #e8eef6;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.vid-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 75, 141, 0.14);
}
.vid-thumb {
  position: relative;
  padding-bottom: 56.25%;
  cursor: pointer;
  overflow: hidden;
  background: #001f40;
}
.vid-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.35s,
    opacity 0.25s;
}
.vid-card:hover .vid-thumb img {
  transform: scale(1.05);
  opacity: 0.85;
}
.vid-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: #fff;
  background: rgba(0, 75, 141, 0.35);
  transition: background 0.2s;
}
.vid-thumb:hover .vid-play {
  background: rgba(242, 183, 5, 0.8);
  color: #003d75;
}
.vid-info {
  padding: 16px 18px 18px;
}
.vid-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #004b8d;
  background: #eef5fc;
  padding: 2px 8px;
  border-radius: 10px;
}
.vid-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e3a5f;
  margin: 8px 0 5px;
}
.vid-desc {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* Video modal */
.vid-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.84);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.vid-overlay.open {
  display: flex;
}
.vid-modal {
  position: relative;
  width: min(860px, 94vw);
  background: #000;
  border-radius: 14px;
  overflow: hidden;
}
.vid-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(255, 255, 255, 0.15);
  border: 0;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}
.vid-modal-close:hover {
  background: #f2b705;
  color: #003d75;
}
.vid-modal-frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}
.vid-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Gallery grid */
.gal-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}
.gal-filter {
  padding: 7px 18px;
  border-radius: 20px;
  border: 1.5px solid #d0d5de;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.gal-filter:hover,
.gal-filter.active {
  background: #004b8d;
  color: #fff;
  border-color: #004b8d;
}
.gal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 10px;
}
.gal-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #e2e8f0;
}
.gal-item.gal-wide {
  grid-column: span 2;
}
.gal-item.gal-tall {
  grid-row: span 2;
}
.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.gal-item:hover img {
  transform: scale(1.07);
}
.gal-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 27, 60, 0.7) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 12px;
  opacity: 0;
  transition: opacity 0.25s;
}
.gal-item:hover .gal-overlay {
  opacity: 1;
}
.gal-overlay span {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
}
.gal-item.hidden {
  display: none;
}

/* Lightbox */
.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
  z-index: 1001;
  align-items: center;
  justify-content: center;
}
.lb-overlay.open {
  display: flex;
}
.lb-img-wrap {
  max-width: min(900px, 92vw);
  text-align: center;
}
.lb-img-wrap img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}
#lbCaption {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.83rem;
  margin-top: 10px;
}
.lb-close {
  position: fixed;
  top: 16px;
  right: 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-close:hover {
  background: #f2b705;
  color: #003d75;
}
.lb-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lb-arrow:hover {
  background: #f2b705;
  color: #003d75;
}
.lb-prev {
  left: 16px;
}
.lb-next {
  right: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
  .vid-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gal-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 720px) {
  .pg-section {
    padding: 40px 0;
  }
  .pg-section-title {
    font-size: 1.3rem;
  }
  .vid-grid {
    grid-template-columns: 1fr;
  }
  .gal-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }
  .gal-item.gal-wide {
    grid-column: span 1;
  }
  .gal-item.gal-tall {
    grid-row: span 1;
  }
  .client-slide {
    width: 130px;
    height: 65px;
  }
}
@media (max-width: 480px) {
  .gal-grid {
    grid-auto-rows: 130px;
  }
}

/* Services grid */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.services.grid {
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(11, 20, 39, 0.04);
  cursor: pointer;
  transition: all 0.3s ease;
}

.card h3 {
  margin: 0px 0 6px;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.384);
}

.card-header {
  font-weight: bold;
}

/* Factories / products */
.cards.grid {
  grid-template-columns: repeat(3, 1fr);
}

/* News */
.news-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.news-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.news-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 30px;
}
.contact form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.input,
textarea,
select {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #e6e9ef;
  font-size: 0.95rem;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 12px;
  border-radius: 10px;
  border: 0;
  font-weight: 700;
}
.wa-link a {
  transition:
    background 0.25s ease,
    color 0.25s ease;
}
.wa-link a:hover {
  background: var(--accent);
  color: #004b8d;
}

/* ═══ FOOTER ═══ */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  position: relative;
  margin-top: auto;
  overflow: hidden;
}

/* top glow line */
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 55%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* ── Main row ── */
.footer-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

/* ── Brand ── */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 25px;
  text-decoration: none;
  padding: 12px 18px;
}

.footer-logo {
  width: 18%;
  height: 18%;
  flex-shrink: 0;
}
.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 15px;
  margin-top: 5px;
  transition: transform 0.3s;
}
.footer-logo img {
  border-radius: 9px;
}
.footer-logo img:hover {
  transform: translateY(-2px);
}
.footer-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #fff;
}

/* Both lines same size */
.brand-name,
.brand-sub {
  font-family: 'DM Serif Display', serif;
  font-size: 0.95rem;
  color: var(--text);
  letter-spacing: 0.01em;
  line-height: 1.25;
}

/* ── Social icons ── */
.social-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
  position: relative;
  transition:
    color 0.25s,
    border-color 0.25s,
    background 0.25s,
    transform 0.25s;
}

/* tooltip */
.social-link::after {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.social-link:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.social-link:hover {
  color: #004b8d;
  border-color: var(--accent);
  background: var(--accent);
  transform: translateY(-3px);
}
.social-link svg {
  display: block;
}

/* ── PIM bottom strip ── */
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px 0 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.pim-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  white-space: nowrap;
  margin: 0 auto;
}

.pim-brand a {
  display: flex;
  align-items: center;
  gap: none;
  text-decoration: none;
}

.pim-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.3s;
}
.pim-brand img:hover {
  transform: translateY(-2px);
}

.pim-name {
  font-family: 'serif';
  font-size: 0.95rem;
  color: #ffffff;
  letter-spacing: 0.04em;
}

/* ── Copyright ── */
.copyright-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 0;
}
.copyright-text {
  font-size: 0.7rem;
  color: #aeb2bb;
  letter-spacing: 0.03em;
  line-height: 1.7;
  text-align: center;
}
.copyright-text a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.copyright-text a:hover {
  border-color: var(--accent);
}

/* ── Entrance animation ── */
.footer-inner > * {
  animation: fadeUp 0.55s ease both;
}
.footer-inner > *:nth-child(1) {
  animation-delay: 0.05s;
}
.footer-inner > *:nth-child(2) {
  animation-delay: 0.15s;
}
.footer-inner > *:nth-child(3) {
  animation-delay: 0.25s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .services.grid,
  .cards.grid,
  .news-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero {
    height: 520px;
  }
}

@media (max-width: 768px) {
  .wrap {
    padding: 0 16px;
  }
  nav.main-nav {
    display: none;
  }
  .hamburger {
    display: inline-flex;
  }
  header.site-header .wrap {
    align-items: center;
  }
  .hero {
    padding: 40px 0;
    height: auto;
  }
  .hero .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-right {
    width: 100%;
    order: 2;
  }
  .hero-left {
    order: 1;
  }
  .slider {
    height: 300px;
  }
  .services.grid,
  .cards.grid,
  .news-list {
    grid-template-columns: 1fr;
  }
  .contact {
    grid-template-columns: 1fr;
  }

  /* Footer responsive */
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px 20px 16px;
  }
  .footer-brand {
    justify-content: center;
  }
  .social-cluster {
    justify-content: center;
  }
  .copyright-block {
    text-align: center;
  }
  .footer-divider {
    flex-direction: column;
    padding: 0 20px 16px;
    gap: 10px;
  }
  .footer-divider-line {
    width: 100%;
    flex: none;
  }
  .pim-brand {
    justify-content: center;
  }
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(4px);
  display: none;
  z-index: 90;
  padding: 40px;
}
.mobile-nav.open {
  display: block;
}
.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.15rem;
}

/* utilities */
.muted {
  color: var(--muted);
}
.row {
  display: flex;
  gap: 18px;
}

.wa {
  vertical-align: middle;
  margin: 6px;
  margin-top: auto;
}

/* BASE ALERT */
.alert {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 15px;
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid transparent;
  position: relative;
}

/* SUCCESS */
.alert-success {
  background: #eaf7ee;
  border-color: #b7e4c7;
  color: #1b5e20;
}

/* ERROR */
.alert-error {
  background: #fdeaea;
  border-color: #f5c2c2;
  color: #8b0000;
}

/* ICON */
.alert::before {
  content: '✔';
  font-weight: bold;
  font-size: 16px;
  margin-top: 2px;
}

.alert-error::before {
  content: '⚠';
}

/* TEXT */
.alert p {
  margin: 0;
  line-height: 1.4;
}

/* CLOSE BUTTON (OPTIONAL) */
.alert-close {
  position: absolute;
  right: 10px;
  top: 8px;
  cursor: pointer;
  font-size: 16px;
  opacity: 0.6;
}

.alert-close:hover {
  opacity: 1;
}

 /* Style untuk link pembungkus artikel berita */
.news-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Wrapper Utama Pagination */
.pagination-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Styling Struktur default_full bawaan CodeIgniter 4 */
.pagination-wrapper ul.pagination {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.pagination-wrapper ul.pagination li {
    display: inline;
}

.pagination-wrapper ul.pagination li a,
.pagination-wrapper ul.pagination li span {
    display: block;
    padding: 12px 18px;
    color: #4a5568;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-right: 1px solid #e2e8f0;
    transition: all 0.2s ease-in-out;
}

/* Menghilangkan border kanan pada item terakhir */
.pagination-wrapper ul.pagination li:last-child a,
.pagination-wrapper ul.pagination li:last-child span {
    border-right: none;
}

/* Efek Hover untuk tombol yang bisa diklik */
.pagination-wrapper ul.pagination li a:hover {
    background-color: #f7fafc;
    color: #3182ce;
}

/* Halaman yang sedang Aktif (Active Page) */
.pagination-wrapper ul.pagination li.active a,
.pagination-wrapper ul.pagination li.active span {
    background-color: #3182ce;
    color: #ffffff;
    font-weight: 600;
    cursor: default;
}

/* Desain Responsif untuk Layar Handphone (Mobile) */
@media (max-width: 576px) {
    .row {
      display: block;
      gap: 0;
    }
    
    .grid {
          display: block;
          gap: 20px;
        }
    .grid .card{
        margin-bottom:12px;
    }
    .pagination-wrapper ul.pagination li a,
    .pagination-wrapper ul.pagination li span {
        padding: 10px 14px;
        font-size: 12px;
    }
}

  
