/* assets/style.css - Global Reset */

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden; /* Mencegah scroll horizontal yang tidak perlu */
}

/* Container Standar (Untuk Text Block, Galeri, dll) */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Pastikan Gambar Responsif */
img {
  max-width: 100%;
  height: auto;
}

/* --- GLOBAL MOBILE UTILITIES --- */

/* 1. Layout Grid -> Stack (1 Kolom di HP) */
.g-stack-md {
  display: grid;
}
@media (max-width: 900px) {
  .g-stack-md {
    grid-template-columns: 1fr !important;
  }
}

.g-stack-sm {
  display: grid;
}
@media (max-width: 768px) {
  .g-stack-sm {
    grid-template-columns: 1fr !important;
  }
}

/* 2. Responsive Padding Global */
.section-pad {
  padding: 80px 20px;
}
@media (max-width: 768px) {
  .section-pad {
    padding: 60px 20px !important;
  }
}

.section-pad-lg {
  padding: 100px 20px;
}
@media (max-width: 768px) {
  .section-pad-lg {
    padding: 60px 20px !important;
  }
}

/* 3. Typography & Alignment Helpers */
@media (max-width: 768px) {
  .text-center-sm {
    text-align: center !important;
  }
  .items-center-sm {
    align-items: center !important;
  }
  .justify-center-sm {
    justify-content: center !important;
  }
}

/* 4. Table Responsive (Untuk Panel Admin) */
.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
