/* global styles */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* prevent horizontal overflow */
html,
body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

body {
  margin: 0;
  padding: 0;
}

/* ensure all sections span full width */
.homepage-custom {
  width: 100% !important;
  overflow-x: hidden !important;
}

.homepage-custom>section {
  width: 100% !important;
  max-width: 100vw !important;
  position: relative !important;
}

/* utility classes untuk semua halaman */

.container-custom {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  box-sizing: border-box;
}

.section-spacing {
  padding: var(--spacing-xl) 0;
  width: 100%;
  box-sizing: border-box;
}

.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: var(--spacing-sm);
}

.mb-2 {
  margin-bottom: var(--spacing-md);
}

.mb-3 {
  margin-bottom: var(--spacing-lg);
}

/* button styles - untuk override dan custom buttons */
.btn-primary {
  background: var(--primary-color);
  color: #ffffff;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #ffffff;
}

/* responsive - mobile first */

/* tablet */
@media (min-width: 768px) {
  .container-custom {
    padding: 0 var(--spacing-lg);
  }
}

/* desktop */
@media (min-width: 992px) {
  .section-spacing {
    padding: var(--spacing-xxl) 0;
  }
}

/* wide */
@media (min-width: 1200px) {}