/*
Theme Name: custom
Author: WP88
Version: 1.5 NO GAP FINAL
*/

/* ===== RESET TOTAL - HAPUS SEMUA MARGIN/PADDING ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  height: 100%;
}

body {
  margin: 0 !important;
  padding: 56px 0 0 0 !important;
  background: #1e1e1e !important;
  color: #fff !important;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* ===== HEADER FIXED - ULTRA AGGRESSIVE ===== */
.topbar,
header.topbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 56px !important;
  z-index: 9999999 !important;
  
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  
  margin: 0 !important;
  padding: 10px 12px !important;
  background: #111 !important;
  border-bottom: 1px solid #2a2a2a !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5) !important;
}

/* WordPress Admin Bar Support */
body.admin-bar {
  padding-top: 88px !important;
}

body.admin-bar .topbar {
  top: 32px !important;
}

@media (max-width: 782px) {
  body.admin-bar {
    padding-top: 102px !important;
  }
  
  body.admin-bar .topbar {
    top: 46px !important;
  }
}

/* Brand/Logo */
.brand {
  display: block !important;
  line-height: 1 !important;
  position: relative;
  z-index: 2;
}

.brand img {
  height: 30px !important;
  width: auto !important;
  display: block !important;
  max-height: 40px !important;
}

/* Hamburger Menu */
.hamburger {
  position: absolute !important;
  left: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: transparent !important;
  border: 0 !important;
  color: #fff !important;
  font-size: 24px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  padding: 5px 10px !important;
  z-index: 3;
}

/* ===== FEATURED IMAGE - NO GAP ===== */
.banner-wrap {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  overflow: hidden !important;
  background: #000 !important;
}

.banner,
.banner-wrap img,
.wp-post-image {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: cover !important;
  margin: 0 !important;
  padding: 0 !important;
}

img[class*="attachment"],
img[class*="wp-post-image"] {
  display: block !important;
  width: 100% !important;
  height: auto !important;
}

/* ===== Service GIF ===== */
.service-banner {
  text-align: center;
  margin: 12px auto 10px;
  width: 90%;
  max-width: 1100px;
  display: block;
}

.service-banner img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

/* ===== CTA Buttons ===== */
.cta-wrap {
  width: 90%;
  max-width: 1100px;
  margin: 10px auto 14px;
  display: flex;
  gap: 10px;
}

.cta-wrap .btn {
  width: 50%;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .5px;
  border: 1px solid #555;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-primary {
  background: #d1b169;
  color: #000;
}

.btn-secondary {
  background: #2a2a2a;
  color: #fff;
}

.cta-wrap .btn:hover {
  opacity: .92;
  transform: translateY(-2px);
}

/* ===== Info Table - FULL RESPONSIVE - 50:50 ===== */
.info-table {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto 18px;
  background: #2a2a2a;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #555;
}

table.info {
  width: 100% !important;
  border-collapse: collapse;
  table-layout: fixed !important;
  display: table !important;
}

table.info td {
  padding: 10px;
  border: 1px solid #444;
  color: #fff;
  vertical-align: top;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

table.info td:first-child {
  width: 50%;
  font-weight: 700;
}

table.info td:last-child {
  width: 50%;
}

table.info a {
  color: #ffd983;
  text-decoration: none;
  word-break: break-all;
}

table.info a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  table.info td {
    padding: 8px;
    font-size: 13px;
  }
  
  table.info td:first-child {
    width: 50%;
  }
  
  table.info td:last-child {
    width: 50%;
  }
}

/* ===== Menu Grid ===== */
.menu-grid {
  width: 90%;
  max-width: 1100px;
  margin: 18px auto 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.menu-item {
  background: #2a2a2a;
  border: 1px solid #555;
  border-radius: 10px;
  width: calc(50% - 6px);
  padding: 14px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.menu-item:hover {
  background: #333;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(209, 177, 105, 0.3);
}

.menu-item img {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
}

@media (min-width: 768px) {
  .menu-item {
    width: calc(33.333% - 8px);
  }
}

/* ===== Title ===== */
.page-title,
.entry-title,
.wp-block-post-title {
  text-align: center;
  font-size: 20px;
  margin: 18px auto 14px;
  color: #d1b169;
  width: 90%;
  max-width: 1100px;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .page-title,
  .entry-title,
  .wp-block-post-title {
    font-size: 24px;
  }
}

/* ===== Content ===== */
.content-wrapper {
  width: 90%;
  max-width: 1100px;
  margin: 14px auto 30px;
  word-wrap: break-word;
  line-height: 1.7;
}

.content-wrapper img,
.content-wrapper iframe,
.content-wrapper video {
  max-width: 100%;
  height: auto;
}

.content-wrapper a {
  color: #ffd983;
  text-decoration: none;
}

.content-wrapper a:hover {
  text-decoration: underline;
}

.content-wrapper table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  display: table;
  margin: 15px 0;
}

.content-wrapper td,
.content-wrapper th {
  border: 1px solid #444;
  padding: 8px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 600px) {
  .content-wrapper table {
    font-size: 13px;
  }
  
  .content-wrapper td,
  .content-wrapper th {
    padding: 6px;
  }
}

.content-wrapper h2 {
  color: #d1b169;
  font-size: 20px;
  margin: 25px 0 12px;
}

.content-wrapper h3 {
  color: #d1b169;
  font-size: 18px;
  margin: 20px 0 10px;
}

.content-wrapper p {
  margin: 12px 0;
}

.content-wrapper ul,
.content-wrapper ol {
  margin: 12px 0;
  padding-left: 25px;
}

/* ===== Footer ===== */
.site-footer {
  margin-top: 25px;
  padding: 18px 0;
  background: #0f0f0f;
  border-top: 1px solid #2a2a2a;
}

.footer-inner {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  color: #ddd;
  font-size: 13px;
}

.footer-block {
  margin-bottom: 14px;
}

.footer-block h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #fff;
}

.footer-block ul {
  margin: 0;
  padding-left: 18px;
}

.footer-copy {
  margin-top: 12px;
  text-align: center;
  color: #aaa;
  font-size: 12px;
}

/* ===== WordPress Overrides ===== */
#wpadminbar {
  position: fixed !important;
  top: 0 !important;
}

.site,
#page,
.site-content {
  margin: 0 !important;
  padding: 0 !important;
}

/* ===== MOBILE SIDEBAR MENU - TEPAT DI BAWAH HEADER ===== */
.sidebar-overlay {
  position: fixed;
  top: 56px; /* Mulai dari bawah header */
  left: 0;
  width: 100%;
  height: calc(100% - 56px); /* Tinggi total dikurangi tinggi header */
  background: rgba(0, 0, 0, 0.85);
  z-index: 999998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Atur untuk admin bar WordPress */
body.admin-bar .sidebar-overlay {
  top: 88px;
  height: calc(100% - 88px);
}

@media (max-width: 782px) {
  body.admin-bar .sidebar-overlay {
    top: 102px;
    height: calc(100% - 102px);
  }
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-sidebar {
  position: fixed;
  top: 56px; /* Mulai dari bawah header */
  left: -280px;
  width: 280px;
  height: calc(100% - 56px); /* Tinggi penuh dikurangi header */
  background: #2a2a2a;
  z-index: 999999; /* Lebih tinggi dari overlay */
  transition: left 0.3s ease;
  overflow-y: auto;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.9);
  padding-top: 0;
}

/* Atur untuk admin bar WordPress */
body.admin-bar .mobile-sidebar {
  top: 88px;
  height: calc(100% - 88px);
}

@media (max-width: 782px) {
  body.admin-bar .mobile-sidebar {
    top: 102px;
    height: calc(100% - 102px);
  }
}

.mobile-sidebar.active {
  left: 0;
}

.sidebar-header {
  display: none;
}

.sidebar-nav {
  padding: 0;
  margin: 0;
}

.sidebar-menu,
.sidebar-menu ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.sidebar-menu > li {
  border-bottom: 1px solid #ffc700 !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  display: block !important;
}

.sidebar-menu > li:first-child {
  border-top: 1px solid #ffc700 !important;
}

.sidebar-menu li a {
  display: flex !important;
  align-items: center !important;
  padding: 16px 25px !important;
  color: #ffc700 !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  transition: all 0.2s ease !important;
  gap: 15px !important;
  width: 100% !important;
}

.sidebar-menu li a:before {
  content: '💬';
  font-size: 20px;
  min-width: 24px;
  display: inline-block;
  text-align: center;
}

.sidebar-menu li:nth-child(1) a:before {
  content: '💬';
}

.sidebar-menu li:nth-child(2) a:before {
  content: '👤';
}

.sidebar-menu li:nth-child(3) a:before {
  content: '💰';
}

.sidebar-menu li:nth-child(4) a:before {
  content: '💸';
}

.sidebar-menu li:nth-child(5) a:before {
  content: '📥';
}

.sidebar-menu li:nth-child(6) a:before {
  content: '🎁';
}

.sidebar-menu li a:hover {
  background: rgba(255, 199, 0, 0.1) !important;
}

.sidebar-menu li.current-menu-item > a,
.sidebar-menu li.current_page_item > a {
  background: rgba(255, 199, 0, 0.15) !important;
}

.sidebar-menu .sub-menu {
  background: #1f1f1f !important;
}

.sidebar-menu .sub-menu li {
  border-bottom: 1px solid #444 !important;
}

.sidebar-menu .sub-menu li a {
  padding-left: 60px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #ccc !important;
}

.sidebar-menu .sub-menu li a:before {
  content: '—';
  font-size: 14px;
  color: #ffc700;
}

/* ===== Utility Classes ===== */
.text-center {
  text-align: center;
}

.mt-10 {
  margin-top: 10px;
}

.mb-10 {
  margin-bottom: 10px;
}

/* ===== Ensure No Gaps ===== */
body::before {
  content: '';
  display: block;
  height: 56px;
  width: 100%;
}