:root {
  --primary-color: #1e3a8a;
  --accent-color: #1e40af;
  --background-color: #ffffff;
  --text-color: #333333;
  --card-bg: #f8f8f8;
  --fade-duration: 0.8s;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: var(--background-color);
  color: var(--text-color);
}

header {
  background: var(--primary-color);
  color: #fff;
  padding: 1rem;
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.logo {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 36px;
  width: 36px;
  border-radius: 50%;
}

#menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s;
}

nav ul li a:hover,
nav ul li a:focus {
  color: #ffe066;
  text-decoration: underline;
}

section {
  padding: 4rem 1rem;
  max-width: 900px;
  margin: 0 auto;
}

#Welcome {
  background: var(--accent-color);
  color: #fff;
  text-align: center;
  padding: 3rem 1rem;
}

#Welcome h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

#Welcome p {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.btn {
  display: inline-block;
  background: var(--text-color);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, background 0.3s;
}

.btn:hover {
  background: var(--primary-color);
  transform: scale(1.05);
}

.card-container {
  display: grid;
  gap: 2rem;
}

.event-card,
.archive-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--fade-duration) ease-out,
    transform var(--fade-duration) ease-out;
}

.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.event-card h3,
.archive-card h3 {
  margin-bottom: 0.5rem;
}

.event-card p,
.archive-card p {
  margin-bottom: 1rem;
}

.event-card form {
  margin-top: auto;
  text-align: right;
}

#stay-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 2rem auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--fade-duration) ease-out,
    transform var(--fade-duration) ease-out;
}

#stay-form input,
#stay-form textarea {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  width: 100%;
}

@media (min-width: 600px) {
  .card-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  header {
    position: relative;
  }

  #menu-toggle {
    display: block;
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    padding: 0.5rem;
  }

  nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    flex-direction: column;
    width: 100%;
    background: var(--primary-color);
    display: none;
  }

  nav.open ul {
    display: flex;
  }

  nav.open ul li a {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.1rem;
  }

  nav.open ul li:last-child a {
    border-bottom: none;
  }

  nav.open ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
  }
}
