/* ============================================================
   MAESTROKEY — HALAMAN PRODUK DETAIL + PORTFOLIO
   ============================================================ */

.mkp-wrap {
  --mkp-bg: #061224;
  --mkp-frame-1: #1a3a5c;
  --mkp-frame-2: #0f2843;
  --mkp-gold: #D4AF37;
  --mkp-gold-light: #f0c75e;
  --mkp-text: #e8edf5;
  --mkp-text-dim: #8899aa;

  min-height: 100vh;
  position: relative;
  background-color: var(--mkp-bg);
  background-image: url('/wp-content/themes/material-ai/assets/images/gambarlatarbelakang.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--mkp-text);
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  padding: 0 24px 60px;
  box-sizing: border-box;
}

.mkp-wrap::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(6, 18, 36, 0.82);
  pointer-events: none;
  z-index: 0;
}

.mkp-wrap > * {
  position: relative;
  z-index: 1;
}

/* HEADER LOGO */
.mkp-header {
  padding: 24px 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.mkp-logo {
  display: inline-block;
}
.mkp-logo img {
  height: 70px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
  transition: filter 0.3s ease;
}
.mkp-logo:hover img {
  filter: drop-shadow(0 0 16px rgba(212, 175, 55, 0.75));
}

/* BANNER TEXT */
.mkp-hero {
  text-align: center;
  padding: 20px 0 40px;
}
.mkp-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  color: #D4AF37;
  margin: 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.mkp-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, var(--mkp-gold), transparent);
  border-radius: 3px;
}
.mkp-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: var(--mkp-text-dim);
  text-align: center;
  margin: 12px 0 0;
  letter-spacing: 0.5px;
}

/* ============================================================
   FRAME GAMBAR (default, single)
   ============================================================ */
.mkp-frame-section {
  display: flex;
  justify-content: center;
  padding: 10px 0 40px;
}

.mkp-frame {
  position: relative;
  width: 100%;
  max-width: 720px;
  height: 450px;
  max-height: 80vh;
  background: linear-gradient(135deg, var(--mkp-frame-1), var(--mkp-frame-2));
  border: 2px solid var(--mkp-gold);
  border-radius: 16px;
  overflow-y: scroll !important;
  overflow-x: hidden !important;
  display: block !important;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(212, 175, 55, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #D4AF37 rgba(10, 26, 47, 0.6);
}
.mkp-frame::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.mkp-frame::-webkit-scrollbar-track {
  background: rgba(10, 26, 47, 0.6);
  border-radius: 0 16px 16px 0;
}
.mkp-frame::-webkit-scrollbar-thumb {
  background: #D4AF37;
  border-radius: 5px;
  border: 2px solid rgba(10, 26, 47, 0.6);
}
.mkp-frame::-webkit-scrollbar-thumb:hover {
  background: #f0c75e;
}
.mkp-frame-img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
  vertical-align: top;
}
.mkp-frame-img--secondary {
  margin: 0;
}
.mkp-frame-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  color: rgba(232, 237, 245, 0.55);
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
  padding: 20px;
}
.mkp-frame--empty {
  height: 450px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden !important;
}
.mkp-frame--empty .mkp-frame-fallback {
  display: flex;
}

/* ============================================================
   FRAME DUO — 2 KOLOM SIDE BY SIDE, 16:9
   ============================================================ */
.mkp-frame-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  align-items: start;
}

.mkp-frame-duo .mkp-frame {
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  max-height: 80vh !important;
  max-width: 100%;
  width: 100%;
  overflow-y: auto !important;
}

/* FRAME VIDEO — 16:9, full */
.mkp-frame--video {
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden !important;
  background: #000;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  max-height: none !important;
  padding: 0 !important;
  width: 100%;
}

.mkp-frame--video video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* ============================================================
   TOMBOL WA (bulat, icon)
   ============================================================ */
.mkp-cta {
  display: flex;
  justify-content: center;
  padding: 10px 0 0;
}
.mkp-btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 48px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--mkp-gold), var(--mkp-gold-light));
  color: #061224;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(212, 175, 55, 0.4);
  transition: all 0.25s ease;
}
.mkp-btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(212, 175, 55, 0.6);
}
.mkp-btn-wa--icon {
  padding: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
}
.mkp-btn-wa--icon svg {
  width: 30px;
  height: 30px;
  display: block;
}

/* ============================================================
   NAVIGASI BACK / NEXT
   ============================================================ */
.mkp-nav-buttons {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 24px 0 0;
  margin-top: 8px;
}
.mkp-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: var(--mkp-gold);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, gap 0.2s ease;
}
.mkp-nav-btn:hover {
  color: var(--mkp-gold-light);
  gap: 10px;
}
.mkp-nav-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ============================================================
   HALAMAN PORTFOLIO
   ============================================================ */
.mkp-portfolio-section {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 0 40px;
}
.mkp-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.mkp-portfolio-item {
  background: rgba(22, 45, 74, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 12px;
  overflow: hidden;
}
.mkp-portfolio-thumb {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  display: block;
  background: linear-gradient(135deg, #162d4a, #0d1f3c);
}
.mkp-portfolio-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mkp-portfolio-item figcaption {
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mkp-portfolio-item figcaption strong {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.mkp-portfolio-item figcaption span {
  color: var(--mkp-gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ============================================================
   VIDEO SECTION (portfolio page)
   ============================================================ */
.mkp-video-section {
  margin-top: 20px;
  padding: 0 20px;
}
.mkp-video-head {
  text-align: center;
  margin-bottom: 24px;
}
.mkp-video-title {
  font-size: 28px;
  color: #D4AF37;
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.mkp-video-sub {
  color: #8899aa;
  font-size: 14px;
}
.mkp-video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}
.mkp-video-item {
  margin: 0;
  background: #0d1f3c;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}
.mkp-video-item:hover {
  transform: translateY(-3px);
  border-color: #D4AF37;
}
.mkp-video-item video {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  background: #000;
}
.mkp-video-item figcaption {
  padding: 14px 16px;
  color: #e8edf5;
  font-size: 14px;
  text-align: center;
}
.mkp-video-item figcaption strong {
  color: #D4AF37;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ============================================================
   DESCRIPTION SECTION
   ============================================================ */
.mkp-desc-section {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  color: #e8edf5;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  line-height: 1.8;
}
.mkp-desc-h2 {
  color: #D4AF37;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 20px;
  letter-spacing: 0.5px;
}
.mkp-desc-h3 {
  color: #D4AF37;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  margin: 28px 0 14px;
  letter-spacing: 0.5px;
}
.mkp-desc-section p {
  margin: 0 0 14px;
  color: #e8edf5;
}
.mkp-desc-ul {
  padding-left: 24px;
  margin: 0 0 16px;
  list-style: disc;
}
.mkp-desc-ul li {
  margin-bottom: 8px;
  color: #e8edf5;
}
.mkp-desc-section a {
  color: #D4AF37;
  text-decoration: underline;
  transition: color 0.2s;
}
.mkp-desc-section a:hover {
  color: #f0c75e;
}
.mkp-desc-section strong {
  color: #fff;
  font-weight: 700;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .mkp-portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .mkp-frame-duo { grid-template-columns: 1fr; gap: 20px; }
  .mkp-frame-duo .mkp-frame {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
  }
  .mkp-frame--video {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
  }
}

@media (max-width: 768px) {
  .mkp-wrap { padding: 0 16px 40px; }
  .mkp-logo img { height: 52px; max-width: 170px; }
  .mkp-title { font-size: 1.6rem; }
  .mkp-frame { height: 400px; max-height: 70vh; border-radius: 12px; }
  .mkp-btn-wa { padding: 14px 32px; font-size: 13px; width: 100%; max-width: 320px; }
  .mkp-btn-wa--icon { width: 56px; height: 56px; max-width: none; }
  .mkp-btn-wa--icon svg { width: 26px; height: 26px; }
  .mkp-nav-buttons { gap: 24px; }
  .mkp-nav-btn { font-size: 12px; }
  .mkp-desc-h2 { font-size: 20px; }
  .mkp-desc-h3 { font-size: 17px; }
  .mkp-desc-section { font-size: 14px; margin: 30px auto; }
  .mkp-video-grid { gap: 20px; }
  .mkp-video-title { font-size: 22px; }
}

@media (max-width: 480px) {
  .mkp-frame { height: 350px; max-height: 65vh; }
  .mkp-nav-btn svg { width: 14px; height: 14px; }
  .mkp-nav-buttons { gap: 16px; }
  .mkp-portfolio-grid { grid-template-columns: 1fr; }
}