:root {
  --red: #a31717;
  --dark-red: #7e1111;
  --gray: #555;
  --light: #fafafa;
}

/* === GENERAL === */
body {
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
  background: var(--light);
  color: #222;
  line-height: 1.6;
}
h1 {
  color: #7e1111;
}

/* === NEWS BAR === */
.news-bar {
  background: #f9f9f9;
  border-top: 3px solid var(--red);
  border-bottom: 1px solid #ddd;
  padding: 10px;
  text-align: center;
  font-size: 15px;
}
.news-bar a {
  color: var(--red);
  text-decoration: underline;
}

/* ===== PURPOSE SECTION ===== */
.purpose {
  background: #fff;
  text-align: center;
  padding: 60px 10%;
  border-bottom: 3px solid #a31717;
}

.purpose p {
  font-size: 18px;
  color: #444;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.7;
}

.purpose h2 {
  color: var(--red);
  text-align: center;
  font-size: 32px;
  margin-bottom: 20px;
  position: relative;
  animation: pulseColor 1.4s infinite alternate;
}

.purpose h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--dark-red);
  border-radius: 2px;
}

@keyframes pulseColor {
  0% { color: var(--red); }
  100% { color: var(--dark-red); }
}

.purpose h2:hover {
  color: var(--dark-red);
}

/* === TABLE STYLE === */
.purpose-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-radius: 10px;
  overflow: hidden;
}

.purpose-table th {
  background-color: #a31717;
  color: white;
  font-size: 18px;
  padding: 14px;
  text-transform: uppercase;
}

.purpose-table td {
  padding: 16px;
  background-color: #fff7f7;
  border-bottom: 1px solid #eee;
  color: #333;
  font-size: 17px;
  text-align: left;
}

.purpose-table tr:hover td {
  background-color: #ffeaea;
}

/* === WHAT TO VISIT === */
.visit {
  padding: 50px 10%;
  background: #fff;
  text-align: center;
}
.visit h2 {
  color: var(--red);
  margin-bottom: 25px;
}
.visit-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}
.card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  padding-bottom: 10px;
}
.card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.card h3 {
  color: var(--red);
  margin: 12px 0 6px;
}
.card p {
  padding: 0 15px 15px;
  color: var(--gray);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

/* === AUTUMN EXPERIENCE === */
.autumn {
  background: #fff8f8;
  padding: 60px 10%;
}
.autumn-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 25px;
}
.autumn-content img {
  width: 45%;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
.autumn-text {
  flex: 1;
}
.autumn-text h2 {
  color: var(--red);
  margin-bottom: 10px;
}
.autumn-text a {
  display: inline-block;
  margin-top: 10px;
  background-color: var(--red);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s;
}
.autumn-text a:hover {
  background: var(--dark-red);
}

/* === EVENTS SECTION === */
.events {
  padding: 60px 10%;
  background: #fff;
  text-align: center;
}
.events h2 {
  color: var(--red);
  margin-bottom: 25px;
}
.event-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}
.event-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  transition: 0.3s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.event-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.event-card h3 {
  color: var(--red);
  margin: 10px 0 5px;
}
.event-card p {
  color: var(--gray);
  padding: 0 12px 15px;
}
.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

/* === DATE PICKER === */
.dates {
  background: #f5f5f5;
  padding: 60px 10%;
  text-align: center;
}
.dates h2 {
  color: var(--red);
  margin-bottom: 20px;
}
.dates form {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.dates input[type="date"] {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font: inherit;
}
.dates button {
  background: var(--red);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}
.dates button:hover {
  background: var(--dark-red);
}

/* === VIDEO SECTION === */
.video {
  background: #fff;
  padding: 60px 10%;
  text-align: center;
}
.video h2 {
  color: var(--red);
  margin-bottom: 20px;
}
.video iframe {
  width: 80%;
  max-width: 700px;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .autumn-content {
    flex-direction: column;
  }
  .autumn-content img {
    width: 100%;
  }
  .dates form {
    flex-direction: column;
  }
  .video iframe {
    width: 100%;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }
  .visit {
    padding: 30px;
  }
  .events {
    padding: 40px 20px;
  }
  .autumn {
    padding: 40px 20px;
  }
}

@media (max-width: 768px) {
  .purpose-table th, .purpose-table td {
    display: block;
    text-align: center;
  }
  .purpose-table tr {
    margin-bottom: 15px;
    display: block;
    border-radius: 10px;
  }
}
