* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

button {
  cursor: pointer;
}

body {
  font-family: "Jost", sans-serif;
}

.main-header {
  height: 6rem;
  background-color: transparent;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 2rem;
  padding-right: 2rem;
  z-index: 100;
  position: fixed;
  border-bottom: 1px solid white;
}
body.scrolled .main-header {
  background-color: #0047a9 !important;
  border: none;
  height: 5rem;
}

.header-img {
  height: 1.5rem;
}

.header-ele {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.main-header a {
  color: white !important;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
}

.header-box-btn {
  width: fit-content;
  height: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 2rem;
  padding-right: 2rem;
  border: 1px solid white;
  background-color: transparent;
  border-radius: 5px;
  color: white;
  font-size: 15px;
  font-weight: 500;
}

.header-box-btn:hover {
  background-color: #0047a9;
  border: none;
}

/* Hamburger menu for small screens */
.hamburger-menu {
  display: none;
  font-size: 30px;
  cursor: pointer;
  color: white;
}

/* Mobile menu for small screens */
.mobile-menu {
  flex-direction: column;
  background-color: #0047a9;
  position: fixed;

  right: 0;
  top: 5rem;
  height: fit-content;
  overflow-y: auto;
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
  transform: translateX(100%);
  width: 70%;
}
body.scrolled .mobile-menu {
  top: 4rem;
}

.mobile-menu a {
  padding: 1rem;
  border-bottom: 1px solid #ddd;
  color: black;
  display: block;
}
.mobile-header {
  display: none;
}

@media (max-width: 1024px) {
  .header-img {
    height: 1.2rem;
  }
  .main-header a {
    font-size: 20px;
    font-weight: 500;
  }
  .header-box-btn {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 912px) {
  .header-img {
    height: 1rem;
  }
  .main-header a {
    font-size: 18px;
    font-weight: 500;
  }
}

/* Media query for medium screens */
@media (max-width: 820px) {
  .header-img {
    height: 1rem;
  }

  .mobile-menu {
    width: 50%;
  }
  .main-header a {
    font-size: 12px;
  }
  .header-ele {
    gap: 1rem;
  }
  .hamburger-menu {
    display: block;
  }
  .mobile-menu a {
    font-size: 18px;
    font-weight: 500;
    color: white;
    text-decoration: none;
  }
  .main-header {
    justify-content: space-between;
  }
  .header-box-btn-mobile {
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 1rem;
    height: 2.5rem;

    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    background-color: white;

    color: #0047a9;
    font-size: 15px;
    font-weight: 500;
  }
}

/* Media query for small screens */
@media (max-width: 768px) {
  .header-img {
    height: 1rem;
  }

  .main-header {
    display: none;
  }

  .main-header a {
    display: none;
  }

  .hamburger-menu {
    display: block;
  }

  .mobile-menu {
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    height: auto;
  }

  .mobile-menu a {
    font-size: 18px;
    font-weight: 500;
    color: white;
    text-decoration: none;
  }

  .mobile-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding-left: 1rem;
    padding-right: 1rem;
    align-items: center;
    background-color: transparent;
    position: fixed;
    z-index: 100;
    height: 5rem;
    border: 1px white solid;
  }
  body.scrolled .mobile-header {
    background-color: #0047a9 !important;
    border: none;
    height: 4rem;
  }
}

/* Open state */
.mobile-menu.open {
  transform: translateX(0);
}
/* banner */

.main-banner {
  width: 100%;
  height: 100%;
  position: relative;
  top: 0;
  left: 0;
}

/* The banner image */
.main-banner-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Centered content in the banner */
.banner-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #00000080;
  gap: 1rem;
  color: white;
}

/* Banner text styling */
.banner-content h1 {
  font-size: 2rem;
  font-weight: bold;
  text-transform:capitalize;
  letter-spacing: 2px;
  margin: 0;
}
.banner-content p {
  width: 65%;
  text-align: center;
  font-size: 18px;
  line-height: 25px;
}

@media (max-width: 1100px) {
  .banner-content h1 {
    font-size: 1.4rem;
  }
  .banner-content p {
    font-size: 14px;
    line-height: 20px;
  }
}

/* Adjust for smaller screens */
@media (max-width: 900px) {
  .banner-content h1 {
    font-size: 1.5rem;
  }
  .banner-content p {
    width: 80%;
    font-size: 15px;
    line-height: 22px;
  }
}

@media (max-width: 580px) {
  .main-banner {
    height: 30rem;
  }
  .banner-content {
    gap: 0.5rem;
  }
  .banner-content h1 {
    font-size: 1rem;
  }
  .banner-content p {
    width: 100%;
    font-size: 12px;
    line-height: 20px;
    padding: 0.5rem;
  }
}

.content-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 4rem;
}

@media (max-width: 1280px) {
  .content-container {
    padding: 2rem;
    gap: 2rem;
  }
}

@media (max-width: 960px) {
  .content-container {
    padding: 1rem;
  }
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  margin: auto;
  margin-top: 10%;

  width: 50%;
  padding: 4rem;

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  background-color: #0046a9af;
  border-radius: 5px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 25px;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

@media (max-width: 1280px) {
  .modal-content {
    width: 70%;
    margin-top: 4%;
  }
}

@media (max-width: 1024px) {
  .modal-content {
    width: 80%;
    margin-top: 1%;
  }
}

@media (max-width: 912px) {
  .modal-content {
    width: 80%;
    margin-top: 50%;
  }
}

@media (max-width: 768px) {
  .modal-content {
    width: 90%;
    margin-top: 50%;
  }
}
@media (max-width: 560px) {
  .modal-content {
    width: 95%;
    margin-top: 40%;
    padding: 1rem;
    padding-top: 4rem;
    padding-bottom: 3rem;
  }
  .enquiry-gap {
    gap: 2rem !important;
  }
}

.subbanner-container {
  position: relative;

  width: 100%;
  height: 100%;
  object-fit: cover;
  background-repeat: no-repeat;

  z-index: 1;
}

.subbanner-image {
  width: 100%;
  height: 100%;

  z-index: 1;
}

@media (max-width: 1600px) {
  .subbanner-container {
    height: 35rem;
  }
}

@media (max-width: 1400px) {
  .subbanner-container {
    height: 30rem;
  }
}
@media (max-width: 1300px) {
  .subbanner-container {
    height: 30rem;
  }
}

@media (max-width: 1024px) {
  .subbanner-container {
    height: 25rem;
  }
}

@media (max-width: 960px) {
  .subbanner-container {
    height: 23rem;
  }
}

@media (max-width: 600px) {
  .subbanner-container {
    height: 20rem;
    object-fit: cover;
  }
}

@media (max-width: 500px) {
  .subbanner-container {
    height: 15rem;
    object-fit: cover;
  }
}
