/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.8),
      rgba(255, 255, 255, 0.8)
    ),
    url("../images/hero.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.page-wrapper {
  background-color: rgba(255, 255, 255, 0.3);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.heading-container {
  position: relative;
  text-align: center;
  padding: 2rem 0;
}

.heading-container h2 {
  position: relative;
  z-index: 2;
  color: #0077be;
  font-size: 2.5rem;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.7);
}

.heading-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  max-height: 100%;
  opacity: 0.3;
  z-index: 1;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #0077be;
  color: white;
  padding: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Header styles */
header {
  background-color: #ffffff;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo styles */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  max-height: 50px;
  width: auto;
}

/* Navigation styles */
nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin-left: 1.5rem;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover,
nav a[aria-current="page"] {
  color: #0077be;
}

/* Main content styles */
main {
  flex: 1;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

h1,
h2,
h3 {
  margin-bottom: 1rem;
  color: #0077be;
}

h1 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

h2 {
  font-size: 2rem;
  text-align: center;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

/* Hero section */
.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../images/hero.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 4rem 2rem;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.hero h1 {
  color: #ffffff;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Improved grid layout */
.exhibit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
  justify-content: center;
}

/* Center last row items */
.exhibit-grid::after {
  content: "";
  flex: auto;
}

/* Enhanced card styling */
.exhibit-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease-in-out;
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

.exhibit-card:hover {
  transform: translateY(-5px);
}

.exhibit-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.exhibit-card-content {
  padding: 1.5rem;
  text-align: center;
}

.exhibit-card h2,
.exhibit-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #333;
  font-size: 1.5rem;
}

.exhibit-card p {
  color: #666;
  line-height: 1.6;
  margin: 0 auto 1rem; /* Added bottom margin */
  max-width: 90%;
}

/* Remove bottom margin from the last paragraph to avoid extra space at the bottom of the card */
.exhibit-card p:last-child {
  margin-bottom: 0;
}

/* Visit info */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.info-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-button {
  display: block; /* Change from inline-block to block to enable centering */
  background-color: #0077be;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  width: fit-content; /* Keeps the button width to fit the content */
  margin: 0 auto; /* Centers the button */
}

.cta-button:hover {
  background-color: #005fa3;
}

/* Footer styles */
footer {
  background-color: #333;
  color: #fff;
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

footer nav ul {
  justify-content: center;
}

footer nav a {
  color: #fff;
}

/* Responsive design */
@media (max-width: 768px) {
  body {
    background-attachment: scroll; /* Change to scroll for better performance on mobile */
    background-position: top center; /* Adjust positioning for mobile */
  }

  header {
    padding: 1rem 0;
  }

  .header-content {
    flex-direction: column;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
  }

  nav ul li {
    margin: 0.5rem 0;
  }

  .hero {
    padding: 3rem 1rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  footer nav ul {
    margin-bottom: 1rem;
  }

  .logo {
    flex-direction: column;
    align-items: center;
  }

  .logo-text {
    margin-left: 0;
    margin-top: 0.5rem;
    text-align: center;
  }
}

/* Contact Form Styles */
.contact-form.info-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 2rem auto;
}

.contact-form h2 {
  color: #0077be;
  text-align: center;
  margin-bottom: 1.5rem;
}

.contact-form form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #0077be;
  box-shadow: 0 0 0 2px rgba(0, 119, 190, 0.2);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form button {
  margin-top: 1rem;
  align-self: center;
}

/* Terms and Conditions Styles */
.terms-and-conditions {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.terms-and-conditions h1 {
  color: #0077be;
  text-align: center;
  margin-bottom: 2rem;
}

.terms-and-conditions .content {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.terms-and-conditions h2 {
  color: #0077be;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.terms-and-conditions p,
.terms-and-conditions ul {
  margin-bottom: 1rem;
}

.terms-and-conditions ul {
  list-style-type: disc;
  padding-left: 2rem;
}

.terms-and-conditions a {
  color: #0077be;
  text-decoration: underline;
}

.terms-and-conditions a:hover {
  text-decoration: none;
}

.explore-together {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  text-align: center;
}

.image-container {
  position: relative;
  width: 100%;
  height: 400px;
}

.background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content {
  position: relative;
  padding: 2rem;
  color: #333;
  background-color: rgba(255, 255, 255, 0.5);
}

.content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #0077be;
}

.content p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

#scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #0077be;
  color: white;
  text-decoration: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#scroll-to-top:hover {
  background-color: #005c91;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .terms-and-conditions {
    padding: 1rem;
  }

  .terms-and-conditions .content {
    padding: 1.5rem;
  }

  header {
    padding: 1rem;
  }

  .heading-container h2 {
    font-size: 2rem;
  }

  .header-content {
    flex-direction: column;
    align-items: center;
  }

  nav {
    margin-top: 1rem;
    width: 100%;
  }

  nav ul {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    padding: 0;
  }

  nav ul li {
    margin: 0;
  }

  nav a {
    display: block;
    padding: 0.5rem 0.25rem;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .hero {
    padding: 3rem 1rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  footer nav ul {
    margin-bottom: 1rem;
  }

  .logo {
    flex-direction: column;
    align-items: center;
  }

  .logo-text {
    margin-left: 0;
    margin-top: 0.5rem;
    text-align: center;
  }

  .donation-form {
    padding: 1.5rem;
  }
  .contact-form.info-card {
    padding: 1.5rem;
  }

  .image-container {
    height: 300px;
  }

  .content {
    padding: 1rem;
  }

  .content h2 {
    font-size: 2rem;
  }

  #scroll-to-top {
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}
