* {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

/* to make the footer stick to the bottom on a empty page body is set to flex and 100vh */
body {
  display: flex;
  flex-direction: column;

  min-height: 100vh;
}

.header {
  min-height: 100vh;
  width: 100%;
  background-image: linear-gradient(rgba(4, 9, 30, 0.8), rgba(4, 9, 30, 0.3)),
    url(images/banner.jpg);
  background-position: center;
  background-size: cover;
  position: relative;
  /* margin-bottom: 5rem; */
}

h2 {
  font-size: 32px;
  font-weight: 600;
}

.logo-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.logo {
  width: 30px;
}

.hero {
  color: white;
  margin: auto;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  width: 90%;
  min-height: 80vh;
}

.hero-text img {
  margin-bottom: 30px;
}

.hero-text h1 {
  font-weight: 600;
  font-size: 64px;
}

@media (max-width: 700px) {
  .hero-text h1 {
    font-size: 32px;
  }
}

/* Scrolling Banner */
.banner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30;
  overflow: hidden;
  position: relative;
  background-color: lightgreen;
}
.scrolling-text {
  white-space: nowrap;
  display: inline-block;
  animation: scroll 20s linear infinite;
}
@keyframes scroll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* HSLC RESULT SECTION */
.result-section {
  padding-top: 15px;
  padding-bottom: 15px;
  width: 100%;
  min-height: 20vh; /* 20% of the viewport */
  background: linear-gradient(
    to right,
    #1e90ff,
    #87cefa
  ); /* Gradient background */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  box-sizing: border-box;
}

.result-section h1 {
  margin-bottom: 20px;
  font-size: 2rem;
}

.button-container {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap; /*Ensures responsiveness*/
}

.button-container a {
  text-decoration: none;
}

.button {
  background-color: blue;
  color: white;
  border: none;
  border-radius: 10px; /* Rounded corners */
  padding: 10px 20px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease; /* Smooth hover effect */
  text-align: center;
}

.button:hover {
  background-color: white;
  color: blue;
  /* border: 1px solid blue; Blue border on hover */
  transition: background-color 0.5s;
}

/* HSLC RESULT SECTION ENDS */

/* Principals Message Section */
.message-container {
  background-color: #eeeeee;
  padding: 1rem;
  /* margin-bottom: 5rem; */
}

.message-box {
  margin: 5rem auto;
  text-align: center;
  width: 80%;

  display: flex;
  gap: 1rem;

  align-items: center;
  justify-content: center;
}

.item {
  flex: 1;
}

.message-img img {
  /* overflow: hidden; */
  width: 90%;
}

.message-text p {
  text-align: justify;
  width: 90%;
  margin: auto;
}

hr {
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, black, transparent);
  border: none;
}

@media (max-width: 850px) {
  .message-box {
    flex-direction: column;
  }

  .message-img img {
    width: 100%;
  }

  .message-text p {
    width: 100%;
  }
}

/* facilities section */

.facilities {
  margin: 5rem auto;
  text-align: center;
  width: 80%;
}

.facilities p {
  color: #777;
}

.facilities h4 {
  color: #555555;
}

.facility-cards {
  display: flex;
  justify-content: center;
  gap: 3rem;
}
@media (max-width: 750px) {
  .facility-cards {
    flex-direction: column;
    align-items: center;
  }
}

/* faculties section */
.faculty-container {
  background-color: #eeeeee;
  padding: 1rem;
}

.faculty {
  margin: 3rem auto 5rem;
  text-align: center;
  width: 80%;
}

.faculty .card-title {
  color: #555555;
}

.faculty .card-text {
  font-size: 14px;
  color: #777;
}

.faculty-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
}
/* @media (max-width: 750px) {
  .faculty-cards {
    flex-direction: column;
    align-items: center;
  }
} */

.faculty-btn {
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.faculty-btn-body {
  display: flex;
  justify-content: center;
  align-items: center;
}

.faculty-btn a {
  text-decoration: none;
  color: black;
}

.faculty-btn:hover {
  color: white;
  font-weight: 500;
  border: 1px solid #ffffff;
  background: #5a639c;
  transition: 0.5s;
}
.faculty-btn a:hover {
  color: white;
  transition: 0.5s;
}

/* Gallery Section */
.gallery-container {
  padding: 1rem;
  text-align: center;
}

.gallery {
  margin: 0 auto 5rem auto;
  text-align: center;
  width: 80%;
}

/* Contact us section with google map */
.contact-container {
  background-color: #eeeeee;
  padding: 5rem;
}

.contact-us {
  margin: auto;
  width: 80%;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 3rem;
}

.contact-left {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 20px;
}

.label {
  padding-left: 20px;
  padding-bottom: 5px;
  font-size: 14px;
}

.contact-input {
  width: 400px;
  height: 50px;
  border: none;
  outline: none;
  padding: 25px;
  color: #666;
  border-radius: 50px;
}

.contact-left textarea {
  height: 140px;
  padding-top: 15px;
  border-radius: 20px;
}

.contact-input:focus {
  border: 2px solid black;
}

.google-maps {
  width: 100%;
}

@media (max-width: 800px) {
  .contact-us {
    flex-direction: column;
  }

  .contact-input {
    width: 200px;
  }

  .google-maps {
    width: 100%;
    display: none;
  }
}

.google-maps-mobile-section {
  background-color: #eeeeee;
}

.google-maps-mobile {
  /* padding-bottom: 5rem; */
  background-color: #d0ddd0;
}

@media (min-width: 801px) {
  .google-maps-mobile {
    display: none;
  }
}

/* POPUP Section */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-container {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.popup-close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #777;
  transition: color 0.2s;
}

.popup-close-btn:hover {
  color: #333;
}

.popup-heading {
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
}

.popup-image {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
  border-radius: 4px;
}

.popup-text {
  margin-bottom: 0;
  color: #555;
  line-height: 1.5;
}
/* POPUP Section Ends */

/* Footer Section */
/* Footer */

/* to make the footer stick to the bottom footer margin-top is set to auto */
.footer {
  margin-top: auto;
}

.footer-container {
  width: auto;
  margin: auto;
  padding-bottom: 30px;
  text-align: center;
  padding-top: 50px;
  background: #28231d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  /* overflow: auto; */
}

.social {
  display: flex;
  gap: 1rem;
}

.footer-container a {
  text-decoration: none;
}

/* GALLERY PAGE */
/* Gallery header */
.gallery-header {
  color: white;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: #727d73;
  height: 12rem;
  margin-bottom: 3rem;
}

.gallery-header h2 {
  font-size: 64px;
}

.gallery img {
  aspect-ratio: 2/1;
  object-fit: cover;
}

@media (max-width: 750px) {
  .gallery img {
    aspect-ratio: 4/3;
  }
}

/* FACULTY PAGE */
.principal-container {
  margin: 5rem auto 0;
  width: 80%;
  text-align: center;
}

.principal-container img {
  width: 400px;
}

@media (max-width: 750px) {
  .principal-container img {
    width: 100%;
  }
}

/* NOTIFICATION PAGE */
