/* Base Reset & Typography */
:root {
  --primary-color: #002855; /* Deep Navy - "กรมท่า" */
  --secondary-color: #004e92; /* Lighter Blue */
  --bg-color: #f8f9fa; /* Light Gray Background */
  --text-color: #333;
  --header-height: 70px;
  --container-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Prompt', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

/* Header Styles */
.main-header {
  background-color: var(--primary-color);
  color: white;
  height: var(--header-height);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: white;
}

.brand-logo {
  height: 40px; /* Adjust as needed */
  width: auto;
  border-radius: 4px; /* Slight rounding if needed */
  background: white; /* Optional: adds contrast for transparent png/svg */
  padding: 2px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.brand-subtitle {
  font-size: 0.8rem;
  opacity: 0.8;
  font-weight: 300;
}

/* Navigation (Keep it minimal) */
.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav-menu a:hover, .nav-menu a.active {
  color: white;
}

/* Main Content Wrapper */
.main-content {
  max-width: var(--container-width);
  margin: 40px auto;
  padding: 0 20px;
  min-height: calc(100vh - var(--header-height) - 100px); /* rough calc for footer */
}

/* Utilities */
.card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    height: auto;
    padding: 15px;
  }
  
  .main-header {
    height: auto;
  }

  .brand {
    margin-bottom: 10px;
  }

  .nav-menu ul {
    gap: 15px;
    font-size: 0.9rem;
  }
}
