@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
}

h2,h3{
  color: #004aad;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: #f7f7f7;
  display: grid;
  /* grid-template-rows: repeat(6, min(200px, 1fr)); */
  grid-template-rows: repeat(6, 1fr);
  grid-template-columns: 1fr 1fr 1fr;
  height: 100vh;
  background-color: #fff;
  /* Add a light background color for the body */
}

/*.home{
    background-color: #013e90;
    padding: 0.2em 0.5em;}*/

/* BANNERS */

.banners {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #007ea7;
  grid-column: span 3;
  grid-row: 3 / 4;

  position: relative;
  background-color: black;
  overflow: hidden;
  height: 400px;
  box-shadow: 0px 5px 5px rgba(128, 128, 128, 0.5);
}

.banners img {
  height: auto;
  width: 100%;
  object-fit: cover;
  opacity: 0.4;
}

/* https://live.staticflickr.com/5555/30478809261_ed9fe99b72_b.jpg */

.banners section {
  position: absolute;
  width: 100%;
  display: flex;
}

.employerBanner,
.employeeBanner {
  /* background-color: #007ea7; */
  height: 150px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
}

.employeeIcon,
.employerIcon {
  font-size: 22px;
  display: flex;
  color: white;
  background-color: #004aad;
  padding: 0.75em 1em;
  border: 0.1em solid white;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s ease-in;
  text-transform: uppercase;
}

.employeeIcon:hover,
.employerIcon:hover {
  color: #ffde59;
  border-color: #ffde59;
}

/* Additional styling for the 'Who we Are?' section */
.companyInfo {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
  text-align: center;
  background-color: #ffffff;
  /* Add a white background */
  color: black;
  /* Darken the text color for better readability */
  grid-column: span 3;
  grid-row: 4 / 5;
}

.companyInfo .description {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  justify-content: center;
  max-width: 50%;
}

.companyInfo p {
  margin: 20px 0;
  line-height: 1.4;
  text-align: left;
}

.companyInfo h3 {
  font-weight: 500;
  margin-bottom: 1em;
}

.companyInfo .content {
  display: flex;
  justify-content: space-around;
  gap: 3em;
}

.companyInfo .content img {
  border-radius: 10px;
  /* height: 100%;
    width: 100%; */
  height: auto;
  max-width: 100%;
}

/* SECTORS */

.sectorsTitle {
  display: flex;
  justify-content: center;
  grid-column: span 3;
  grid-row: 5 / 6;
  margin-bottom: 1em;
  font-weight: bold;
}

.sectors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  grid-column: span 3;
  grid-row: 6 / 7;
  text-align: center;
  margin-bottom: 1em;
}

.catering,
.housekeeping,
.industrial,
.labourers,
.receptionist {
  width: calc(33.33% - 20px);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0.5em;
  color: #000;
  font-weight: bold;
  border-radius: 10px;
  align-items: center;
  margin-bottom: 40px;
}

.catering1,
.housekeeping1,
.industrial1,
.labourers1,
.receptionist1 {
  /*background-color: #e0e0e0;*/
  background-color: #ffde59;
  padding: 1em;
  border-radius: 10px;
  /*width: calc(80% - 2em);*/
  width: 310px;
  margin: 0em 1em;
  transition: 1s ease;
}

.catering2,
.housekeeping2,
.industrial2,
.labourers2,
.receptionist2 {
  width: 310px;
  margin: 0px 10px;
  display: none;
  top: 100%;
  right: 200px;
  flex: 1;
  /*background-color: #e0e0e0;*/
  background-color: #ffde59;
  padding: 1em;
  border-radius: 0px 0px 10px 10px;
  justify-content: center;
  z-index: 1;
}

.catering:hover .catering2,
.housekeeping:hover .housekeeping2,
.industrial:hover .industrial2,
.labourers:hover .labourers2,
.receptionist:hover .receptionist2,
.catering1:hover + .catering2,
.housekeeping1:hover + .housekeeping2,
.industrial1:hover + .industrial2,
.labourers1:hover + .labourers2,
.receptionist1:hover + .receptionist2 {
  display: flex;
  transform: translateY(-20%);
}

.learnMoreIcon {
  font-size: 1rem;
  display: flex;
  color: white;
  background-color: #004aad;
  padding: 0.25em 1em;
  border: 0.1em solid white;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s ease-in;
  text-transform: uppercase;
}

.learnMoreIcon:hover {
  color: #ffde59;
  border-color: #ffde59;
}

.sectors {
  scroll-margin-top: 100px;
}

/* MEDIA QUERY */
@media only screen and (max-width: 953px) {
  .companyInfo .content .description {
    max-width: 100%;
  }

  .banners {
    height: auto;
    min-height: 200px; /* Adjust as needed */
  }

  .banners img {
    height: 100%;
    width: auto;
  }

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

  .companyInfo .content img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .sectorsTitle {
    align-items: center;
  }

  .catering,
  .housekeeping,
  .industrial,
  .labourers,
  .receptionist {
    width: 100%;
  }

  /* div {
        display: flex;
        flex-direction: column;
    } */
}
