* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
  color: #2c3e50;
  background-image: url('image7-21.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
  /* Remove or significantly reduce padding-top as header is no longer fixed */
  padding-top: 0; /* Or a small value if needed for top spacing */
  overflow-x: hidden;
}

.header-container {
  background-color: #8EC5FC;
  background-image: linear-gradient(62deg, #8EC5FC 0%, #E0C3FC 100%);
  border-radius: 0 0 10px 10px;
  padding: 10px 0;
  /* REMOVE fixed positioning */
  /* position: fixed; */
  /* top: 0; */
  /* left: 0; */
  /* right: 0; */
  /* z-index: 1000; */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center; /* Center the nav element inside */
  margin: 0 auto; /* Center the header container block */
  width: 100%; /* Allow width to adjust or set max-width */
  max-width: 1200px; /* Optional: Limit header width to container max-width */
}

nav {
  max-width: 1200px; /* Keep max-width for nav */
  margin: 0 auto; /* Center the nav block */
  display: flex;
  justify-content: center; /* Center flex items (nav links) */
  gap: 3rem;
  padding: 0;
}

nav a {
  color: rgb(14, 1, 1);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  position: relative;
}

nav a:hover {
  background-color: rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
  border-radius: 10px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

/* Classes for Centering Headings and Content */
.centered-heading,
.section-heading {
  text-align: center;
}

/* Additional styling for specific centered headings */
.hero-section .centered-heading h1 {
    font-size: 20px;
    background-color: #8EC5FC;
    background-image: linear-gradient(62deg, #8EC5FC 0%, #E0C3FC 100%);
    display: inline-block;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.details-section .centered-heading h2 {
  background-color: #8EC5FC;
  background-image: linear-gradient(62deg, #8EC5FC 0%, #E0C3FC 100%);
  display: inline-block;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 1.5rem;
  color: #2c3e50;
}

.hero-section,
.services-section,
.register-section,
.details-section {
  position: relative;
  z-index: 1;
  padding: 2.5rem;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-section {
  padding: 4rem 2rem;
}

.hero-section h1 {
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
  font-weight: 700;
}

.hero-section p {
  font-size: 1.2rem;
  color: #34495e;
  max-width: 800px;
  margin: 0 auto 30px auto;
  text-align: center;
}

.services-section {
  transition: transform 0.3s ease;
}

.services-section:hover {
  transform: translateY(-5px);
}

.services-section .section-heading h2 {
    background-color: #8EC5FC;
    background-image: linear-gradient(62deg, #8EC5FC 0%, #E0C3FC 100%);
    width: 280px;
    border-radius: 10px;
    display: inline-block;
    padding: 10px;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 2rem;
}


.services-section ul {
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.services-section li {
  margin: 0.5rem auto;
  margin-bottom: 1rem;
  color: #34495e;
  padding: 0.8rem 1.5rem;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  padding-left: 2.5rem;
  width: 250px;
}

.services-section li::before {
  content: '\2022';
  position: absolute;
  left: 1rem;
  color: #2c3e50;
  font-size: 1.2rem;
}

.services-section li:hover {
  background-color: rgba(255, 255, 255, 0.8);
  transform: translateX(10px);
}

.register-section .section-heading h2 {
    background-color: #8EC5FC;
    background-image: linear-gradient(62deg, #8EC5FC 0%, #E0C3FC 100%);
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    display: inline-block;
    width: 350px;
    border-radius: 10px;
    padding: 10px;
}


form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

input, textarea {
  padding: 1rem;
  border: 1px solid rgba(221, 221, 221, 0.8);
  border-radius: 8px;
  font-size: 1rem;
  background-color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: rgba(80, 154, 165, 0.5);
  box-shadow: 0 0 10px rgba(80, 154, 165, 0.2);
  transform: translateY(-2px);
}

button {
  background-color: #8EC5FC;
  background-image: linear-gradient(62deg, #8EC5FC 0%, #E0C3FC 100%);
  color: white;
  padding: 1.2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

button:hover {
  background-color: rgba(80, 154, 165, 0.95);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.details-section {
  /* Default styles defined above */
}

.details-section .section-heading h2 {
    /* Styles defined in .details-section .centered-heading h2 */
}

.location {
  margin-top: 2rem;
  text-align: center;
}

.location h3 {
  color: #2c3e50;
  font-size: 1.5rem;
  padding: 10px;
  background-color: #8EC5FC;
  background-image: linear-gradient(62deg, #8EC5FC 0%, #E0C3FC 100%);
  width: 180px;
  border-radius: 10px;
  margin: 1rem auto 1rem auto;
  display: inline-block;
}


.location img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin-top: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

#map-link img {
    height: 50px;
    width: 50px;
    object-fit: cover;
    margin: 1rem auto;
    display: block;
}


.location img:hover {
  transform: scale(1.02);
}

/* Combine and refine Media Queries */

@media screen and (max-width: 1200px) {
  .header-container {
    width: 100%; /* Allow header to take full width up to 1200px */
    border-radius: 0 0 10px 10px;
  }

  .container {
    width: 95%;
    padding: 1rem;
  }
}

@media screen and (max-width: 768px) {
  body {
    padding-top: 0; /* No extra padding needed */
  }

  .header-container {
    padding: 5px 0;
    width: 100%; /* Ensure full width on small screens */
    border-radius: 0; /* Remove border-radius on small screens if preferred */
  }

  nav {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1rem;
    align-items: center;
  }

  nav a {
    width: 100%;
    text-align: center;
    padding: 0.8rem;
  }

  .hero-section,
  .services-section,
  .register-section,
  .details-section {
    padding: 1.5rem;
    margin: 1rem auto;
  }

  .hero-section {
      padding: 2rem 1rem;
      margin-top: 1rem;
  }

  .hero-section .centered-heading h1 {
    font-size: 1.8rem;
    padding: 8px 1rem;
    width: auto;
    display: inline-block;
  }

  .hero-section p {
    font-size: 1rem;
    padding: 0;
    text-align: center;
  }

  .services-section .section-heading h2 {
    width: auto;
    max-width: 280px;
    font-size: 1.5rem;
    margin: 0 auto 1rem auto;
    padding: 8px;
  }

  .services-section ul {
    padding: 0;
  }

  .services-section li {
    width: 100%;
    max-width: 250px;
    margin: 0.5rem auto;
    padding: 0.8rem 1rem;
    text-align: center;
    padding-left: 1rem;
  }
  .services-section li::before {
      left: 0.5rem;
      content: '\2022 ';
  }

  .register-section .section-heading h2,
  .location h3 {
    width: auto;
    max-width: 200px;
    font-size: 1.5rem;
    margin: 1rem auto;
    padding: 8px;
  }

  form {
      max-width: 95%;
      padding: 0 1rem;
  }

}

@media screen and (max-width: 480px) {
  body {
    padding-top: 0; /* No extra padding needed */
  }

  .header-container {
    padding: 3px 0;
     border-radius: 0; /* Ensure no radius on small screens */
  }
  nav a {
    font-size: 0.9rem;
    padding: 0.5rem;
  }

   .hero-section,
  .services-section,
  .register-section,
  .details-section {
    padding: 1rem;
    margin: 0.5rem auto;
  }

    .hero-section {
        padding: 1.5rem 0.5rem;
        margin-top: 0.5rem;
    }

  .hero-section .centered-heading h1 {
    font-size: 1.5rem;
    padding: 5px 0.5rem;
  }

  .hero-section p {
    font-size: 0.9rem;
  }

  .services-section .section-heading h2 {
    font-size: 1.3rem;
    padding: 6px;
  }

  .services-section li {
    font-size: 0.9rem;
    padding: 0.5rem;
    padding-left: 0.8rem;
  }

    .services-section li::before {
        left: 0.3rem;
    }

  .register-section .section-heading h2,
  .location h3 {
    font-size: 1.2rem;
    padding: 6px;
  }

    form {
        padding: 0 0.5rem;
    }

    input, textarea, button {
        font-size: 0.9rem;
        padding: 0.8rem;
    }

    button {
        padding: 1rem;
    }
}

/* Add smooth transitions for responsive changes */
.header-container,
nav a,
.hero-section,
.services-section,
.register-section,
.details-section,
.services-section li,
.services-section h2,
.register-section h2,
.location h3 {
  transition: all 0.3s ease;
}
