:root {
  --primary-color: #198754; /* สีหลัก */
  --secondary-color: #ffc107; /* สีรอง */
  --header-height: 180px; /* Default header height for desktop */
}

body {
  height: 100vh; /* Fixed height to prevent window scrollbar */
  background: linear-gradient(
    135deg,
    #0f5132 0%,
    var(--primary-color) 50%,
    #20c997 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Noto Sans Thai", sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  overflow: hidden; /* Hide window scrollbar */
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
body,
* {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

/* Background Pattern */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 25% 25%,
      rgba(255, 255, 255, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(255, 193, 7, 0.05) 0%,
      transparent 50%
    );
  z-index: -1;
  pointer-events: none;
  background-attachment: fixed; /* Keep pattern fixed while scrolling */
}

* {
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  :root {
    --header-height: 140px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 120px;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 100px;
  }
}
