body {
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif; /* Updated font */
  margin: 0;
  padding: 0;
  background: linear-gradient(
    150deg,
    #ff7f50,
    generateRandomColor()
  ); /* Random color background */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  width: 350px;
  padding: 20px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.visiting {
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 545px;
  margin: 0 -19px;
  margin-top: -20px;
  padding: 10px;
  background: url("img/cardimg.png") no-repeat center center/cover;
}

.view {
  display: flex;
  width: fit-content;
  max-width: 77px;
  text-align: center;
  font-size: 14px;
  padding: 6px 12px;
  background: #3498db; /* Updated color for the button */
  color: white;
  border-radius: 25px;
  margin: 0 6px; /* Centering the button */
}

/* Image-slider */
.slider-container {
  position: relative;
}

.slider {
  display: flex;
  overflow-x: hidden;
}

.slider img {
  width: 100%; /* Make the image fill the container width */
  height: 300px; /* Set a fixed height for uniformity */
  object-fit: cover; /* Cover the container while maintaining aspect ratio */
}

.msg-details.logo {
  width: 170px; /* Set the width of the logo container */
  height: 150px; /* Set the height of the logo container */
  display: flex; /* Center the image */
  align-items: center; /* Center vertically */
  justify-content: center; /* Center horizontally */
}

.logo img {
  width: 50%; /* Make the image fill the width */
  height: auto; /* Maintain aspect ratio */
  max-height: 100%; /* Ensure it doesn't exceed the container height */
}

.prev,
.next {
  position: absolute;
  top: 50%;
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  cursor: pointer;
  padding: 10px;
  font-size: 18px;
  z-index: 1;
  color: #3498db; /* Match button color */
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* Contact-details */
.msg-details {
  display: inline;
  text-align: center;
  padding: 4px 14px;
}

.msg-details a {
  text-decoration: none;
  color: inherit;
}

.msg-details .con {
  background: #eac700; /* Updated button color */
  color: white;
  margin: 5px;
  border-radius: 20px;
  padding: 5px 11px;
  width: fit-content;
  font-size: 12px;
  margin: 10px 0px;
  display: inline-block;
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.1);
}

.icons {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 4px;
}

.icons i {
  margin-right: 8px;
  background: #3498db; /* Updated icon color */
  color: white;
  height: 17px;
  font-size: 15px;
  padding: 8px;
  border-radius: 100%;
  text-align: center;
  width: 16px;
}

.icons p {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: rgb(12, 11, 11); /* Dark text for readability */
}

h2 {
  text-align: center;
  color: #333; /* Dark text for headers */
}

p {
  margin-bottom: 10px;
  font-size: 16px;
  color: #666; /* Lighter gray for paragraph text */
}

a {
  color: #2ecc71; /* Updated link color */
  text-decoration: none;
}

h2 {
  margin: 10px 0;
}
p {
  text-align: justify;
  margin: 10px 0;
}

h3 {
  background-color: #3498db; /* Updated header color */
  text-align: left;
  padding: 8px;
  color: white;
}

.section {
  margin-top: 20px;
  border-top: 1px solid #e2e2e2;
  padding-top: 20px;
}

#courses {
  height: 80vh;
}

/* Batch-SECTION */
.batch {
  border: 1px solid #e2e2e2;
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 20px;
  width: 300px;
  margin-right: 20px;
  margin-left: 10px;
  display: flex;
  flex-direction: column;
  align-items: start;
}

.batch h1 {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #333; /* Dark color for titles */
  text-align: center;
}

.batch li {
  list-style-type: none;
  margin-bottom: 5px;
}

.batch li:first-child {
  font-weight: bold;
}

.batch .fees {
  color: #e74c3c; /* Red for fees */
  font-weight: bold;
}

.section .pdf a {
  background-color: #e99234; /* Updated button color */
  padding: 2%;
  color: white;
  font-weight: bold;
}

/* About-SECTION */
#About ul {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: start;
}

/* Sub-section */
#About,
#courses,
#gallery,
#payment,
#feedback,
#contact,
#enquiry {
  border: 2px solid transparent;
}

.section img {
  max-width: 100%;
  margin-bottom: 10px;
}

.btn {
  margin-bottom: 20px;
  padding: 5px 20px;
  background-color: #e99234; /* Updated button color */
  color: white;
  font-size: 15px;
  font-weight: bold;
  border-radius: 5px;
}


/* Footer */
footer {
  background-color: #f1c40f; /* Light coral footer */
  margin-top: 50px;
  padding: 10px;
  color: white;
  text-align: center;
  font-size: 15px;
}

/* Navbar-section */
.navbar {
  position: fixed;
  padding: 10px 0;
  bottom: 0;
  height: 8%;
  width: 100%;
  background-color: #867fee; /* Updated navbar color */
  color: white;
}

.navbar ul {
  list-style-type: none;
  padding: 10px;
  margin: 0;
  display: flex;
  justify-content: space-around;
}

.navbar li {
  font-size: 1rem;
  font-weight: bold;
  color: rgb(26, 24, 24);
}

.navbar ul i {
  font-size: 1.3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #1e1d1d;
}

/* Media Queries for Small Devices */
@media (max-width: 768px) {
  .card {
    width: 90%; /* Full width on small screens */
    padding: 15px;
  }

  .view {
    width: 100%; /* Full width button */
    margin: 0 auto; /* Centering */
  }

  .batch {
    width: 100%; /* Full width batch cards */
    margin-right: 0;
    margin-left: 0;
  }

  h2 {
    font-size: 1.5rem; /* Slightly larger for readability */
  }

  h1 {
    font-size: 1.5rem; /* Slightly larger for readability */
  }

  footer {
    font-size: 14px; /* Slightly smaller footer text */
  }

  /* Media Queries for Small Devices */
  @media (max-width: 768px) {
    .navbar {
      padding: 5px; /* Adjust padding for smaller screens */
      overflow-x: auto; /* Enable horizontal scrolling */
      white-space: nowrap; /* Prevent line breaks */
      scrollbar-width: thin; /* For Firefox (optional) */
    }

    .navbar::-webkit-scrollbar {
      height: 8px; /* Height of the scrollbar */
    }

    .navbar::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.7); /* Color of the scrollbar thumb */
      border-radius: 10px; /* Rounded edges */
    }

    .navbar ul {
      display: flex; /* Ensure flex display for horizontal alignment */
      flex-direction: row; /* Horizontal layout */
      justify-content: flex-start; /* Align items to the start */
      margin: 0; /* Reset margin */
      padding: 4px 46px; /* Reset padding */
    }

    .navbar li {
      padding: 10px; /* Adjust padding for better spacing */
      flex: 0 0 auto; /* Prevent items from shrinking */
      list-style: none; /* Remove default list styles */
    }

    .navbar ul i {
      font-size: 1.5rem; /* Adjust icon size if necessary */
    }
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 1.2rem; /* Smaller heading on extra small devices */
  }

  h1 {
    font-size: 1.2rem; /* Smaller heading on extra small devices */
  }

  .submit {
    width: 100%; /* Full width button on small screens */
  }
}

/* Enquiry Form Styling */
#enquiry {
  text-align: center;
  padding: 20px;
  max-width: 500px;
  margin: 0 auto;
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

#enquiry h3 {
  font-size: 24px;
  font-weight: 700;
  color: #333;
}

#enquiry form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#enquiry label {
  font-size: 16px;
  font-weight: 600;
  text-align: left;
}

#enquiry input,
#enquiry textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  font-family: "Poppins", sans-serif;
}

#enquiry textarea {
  height: 100px;
  resize: none;
}

.submit-btn {
  background: #ff9800;
  color: white;
  font-size: 18px;
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.submit-btn:hover {
  background: #e68900;
}

/* Message Styling */
#result {
  margin-top: 10px;
  font-weight: bold;
}
