:root {
  --color-primary: #14365c;
  --color-secondary: #7a001c;
  --color-light: #ffffff;
  --color-muted: #f5f5f7;
  --text-dark: #1f1f1f;
  --text-muted: #5a5a5a;
  --max-width: 1200px;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Sarabun", "Noto Sans Thai", sans-serif;
  background: var(--color-muted);
  color: var(--text-dark);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

header {
  background: var(--color-light);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-primary);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

nav a {
  font-weight: 600;
  color: var(--text-dark);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  transition: background 0.2s ease;
}

nav a:hover,
nav a:focus {
  background: rgba(20, 54, 92, 0.1);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
}

.hero {
  background: linear-gradient(135deg, rgba(20, 54, 92, 0.95), rgba(122, 0, 28, 0.9)),
    url("https://images.unsplash.com/photo-1503676260728-1c00da094a0b?auto=format&fit=crop&w=1600&q=80") center/cover;
  color: var(--color-light);
  text-align: center;
  padding: 5rem 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.hero p {
  max-width: 680px;
  margin: 0 auto 2rem auto;
  color: #eef3ff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: var(--color-secondary);
  color: var(--color-light);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(122, 0, 28, 0.25);
}

section {
  padding: 4rem 1.5rem;
  background: var(--color-light);
}

.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title span {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  color: var(--color-secondary);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.section-title h2 {
  margin: 0;
  font-size: 2rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-light);
  border: 1px solid rgba(20, 54, 92, 0.08);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 15px 35px rgba(20, 54, 92, 0.08);
}

.card h3 {
  margin-top: 0;
}

.card p {
  color: var(--text-muted);
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.activity {
  background: var(--color-muted);
  border-radius: 1rem;
  overflow: hidden;
}

.activity img {
  height: 180px;
  width: 100%;
  object-fit: cover;
}

.activity-content {
  padding: 1.5rem;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: rgba(20, 54, 92, 0.1);
  color: var(--color-primary);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.timeline {
  border-left: 3px solid rgba(20, 54, 92, 0.2);
  margin-left: 1.2rem;
  padding-left: 1.5rem;
}

.timeline-item {
  margin-bottom: 1.8rem;
  position: relative;
}

.timeline-item::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--color-secondary);
  border-radius: 50%;
  position: absolute;
  left: -1.8rem;
  top: 0.35rem;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.contact-card {
  background: var(--color-muted);
  border-radius: 1.5rem;
  padding: 2rem;
}

.map-placeholder {
  background: rgba(20, 54, 92, 0.08);
  border: 1px dashed rgba(20, 54, 92, 0.2);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
}

footer {
  background: var(--color-primary);
  color: var(--color-light);
  text-align: center;
  padding: 2rem 1rem;
}

footer p {
  margin: 0.2rem 0;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-light);
}

.highlight-banner {
  background: var(--color-secondary);
  color: var(--color-light);
  border-radius: 1.2rem;
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

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

.highlight-stat strong {
  font-size: 2.5rem;
  display: block;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.news-item {
  padding: 1.5rem;
  border: 1px solid rgba(20, 54, 92, 0.1);
  border-radius: 1rem;
  background: var(--color-light);
}

.news-item h3 {
  margin-top: 0;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input,
textarea,
select {
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(20, 54, 92, 0.2);
  font-family: inherit;
}

textarea {
  min-height: 120px;
}

@media (max-width: 768px) {
  nav ul {
    position: absolute;
    top: 64px;
    right: 1rem;
    background: var(--color-light);
    flex-direction: column;
    width: 200px;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 15px 30px rgba(20, 54, 92, 0.15);
    display: none;
  }

  nav ul.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
    color: var(--color-primary);
  }

  .hero {
    padding: 4rem 1rem;
  }
}
