* {
  /* font-family: Roboto, sans-serif !important; */
  font-family: Montserrat, sans-serif !important;
}
.maincontainer {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  grid-template-areas:
    "banner"
    "news"
    "services"
    "team"
    "diving"
    "divingsites"
    "partners"
    "footer";
}
.item-a {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
}
.item-b {
  grid-area: banner;
  padding-left: 10%;
  padding-right: 10%;
}
.item-c {
  grid-area: news;
}
.item-d {
  grid-area: services;
}
.item-e {
  grid-area: team;
}
.item-f {
  grid-area: diving;
}
.item-g {
  grid-area: divingsites;
}
.item-p{
  grid-area: partners;
}
.item-h {
  grid-area: footer;
}
h2,
h3 {
  line-height: 0.8;
}
.banner {
  position: relative;
  background-image: url("../images/banner.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 950px;
}
.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 2; /* Ensures it stays above the background */
  pointer-events: none;
  margin-left: -2px;
}

.bannercontent {
  display: block;
  max-width: 370px;
  min-height: 452px;
  padding: 30px;
  border: 1px black solid;
  border-top-left-radius: 100px;
  border-bottom-right-radius: 100px;
  background-color: white;
  opacity: 0.8;
  text-align: center;
  position: relative;
  z-index: 10;
  line-height: 1.2; /* Adjust as needed */
  margin-top: 150px;
}

.bannercontenttitle {
  color: #0d3b66;
  font-family: Montserrat, sans-serif;
  font-size: 3.75rem;
  margin-bottom: -40px;
  padding: 30px;
}
.bannercontentsubtitle {
  color: #0d3b66;
  font-family: Montserrat, sans-serif;
  font-size: 2.75rem;
}
.bannercontentlink {
  background-color: #0d3b66;
  color: white;
  font-family: Montserrat, sans-serif;
  font-size: 0.9375rem;
  text-decoration: none;
  padding: 10px;
  border-radius: 10px;
  opacity: 1;
}
.news {
  background-image: url("../../assets/images/news-background.png");
  background-size: cover;
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
  min-height: 400px;
  margin-top: -150px;
}

.newscontainer {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two equal parts */
  align-items: center; /* Align content vertically */
  gap: 20px; /* Space between sections */
  padding: 20px;
  text-align: center;
}

.newscontent {
  padding: 20px;
  border-radius: 10px;
  color: #0d3b66;
}
.newscontent h2 {
  text-transform: capitalize;
  line-height: 1.2;
  text-align: center;
  font-size: xx-large;
}
.newsimage {
  background-color: white;
  border-radius: 50%; /* Makes it circular */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* Ensures the image is clipped to the circle */
  width: 586px;
  height: 586px;
  background-image: url("images/g3a23e91…_1280.jpg");
  background-position: 50% 50%;
  border-width: 20px;
  border-color: white;
  border-style: solid;
  z-index: 10;
}
.newsimage img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image fills the circle */
}
.newscontentlink {
  border-color: white;
  border-width: 5px;
  background-color: #0d3b66;
  color: white;
  font-family: Montserrat, sans-serif;
  font-size: 0.9375rem;
  text-decoration: none;
  padding: 10px;
  border-radius: 10px;
  border-style: solid;
  text-transform: uppercase;
}

.services {
  background-color: #f5f5f5; /* Light background */
  padding: 5% 10%;
  text-align: center;
}

.servicescontainer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 20px; /* Space between services */
  max-width: 1200px;
  margin: 0 auto;
}

.service {
  background-color: white;
  border-radius: 10px;
  width: 350px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Soft shadow */
  transition: transform 0.3s ease-in-out;
}

.service:hover {
  transform: translateY(-5px); /* Subtle hover effect */
}

.service img {
  width: 100%;
  max-height: 200px; /* Keeps images uniform */
  object-fit: cover;
  border-radius: 10px;
}

.service h3 {
  margin-top: 15px;
  font-size: 1.2rem;
  color: #0d3b66;
}

.service p {
  font-size: 0.9rem;
  color: #555;
}

.team {
  background-color: #fff; /* Light gray for contrast */
  padding: 5% 10%;
  text-align: center;
  z-index: 1;
}

.team h2 {
  color: #0d3b66;
  font-size: 2.5rem;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.teamcontainer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.teammember {
  background-color: #0d3b66;
  border-radius: 15px;
  padding: 20px;
  width: 350px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}

.teammember:hover {
  transform: translateY(-5px);
}

.teammember img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 50%; /* Circular images */
  border: 5px solid #0d3b66;
}

.teammember h3 {
  margin-top: 15px;
  font-size: 1.2rem;
  color: #fff;
}

.teammember p {
  font-size: 1rem;
  color: #fff;
}

.diving {
  position: relative;
  background-image: url("../../assets/images/ischia_diving_diving_banner.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 950px;
  margin-top: -20px;
  display: flex;
}

.divingcontent {
  display: block;
  /*max-width: 370px;*/
  max-height: 50%;
  padding: 5% 5%;
  border-radius: 100px;
  background-color: #0d3b66;
  opacity: 0.8;
  align-items: center;
  text-align: left;
  position: relative;
  color: #fff;
  font-family: Montserrat, sans-serif;
  margin-top: 10%;
  margin-left: 10%;
  margin-right: 10%;
}
.divingcontenttitle {
  padding: 30px;
  text-align: center;
  display: block;
}
.divingcontentlink {
  color: yellow;
  font-family: Montserrat, sans-serif;
  font-size: 0.9375rem;
  text-decoration: none;
  padding: 10px;
  font-style: italic;
  text-align: right;
  display: block;
}
.divingsites {
  background-image: url("../images/ischia_diving_site_background.png");
  background-color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 1350px;
  /* padding: 20px; */
  text-align: center;
  color: white;
  position: relative;
    padding: 5% 10%;

}
.divingsites h2 {
  font-size: 40px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #0d3b66;
  text-align: auto;
  padding-bottom: 70px;
}
.divingcontainer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
.divingsite {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  width: 350px;
  box-shadow: 0px 5px 15px #0d3b66;
  transition: transform 0.3s ease-in-out;
  min-height: 200px;
}
.divingsite:hover {
  transform: translateY(-10px);
}
.divingsite img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  filter: brightness(0.8);
  transition: filter 0.3s ease-in-out;
}
.divingsite:hover img {
  filter: brightness(1);
}
.siteinfo {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  color: white;
  background: #0d3b66;
  padding: 15px;
  text-align: center;
  transition: background 0.3s ease-in-out;
}
.divingsite:hover .siteinfo {
  background: #0d3b60;
}
.siteinfo h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #fff;
}
.siteinfo p {
  margin-top: 5px;
  font-size: 1rem;
  color: #fff;
}
.partners {
  background-image: url("../../assets/images/partners-background.png");
  background-size: cover;
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
  min-height: 400px;
  margin-top: -75px;
  margin-bottom: -40px;
  padding: 5% 10%;
}
.partnerscontainer {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two equal parts */
  align-items: center; /* Align content vertically */
  gap: 20px; /* Space between sections */
  padding: 20px;
  text-align: center;
}

.partnerscontent {
  padding: 20px;
  border-radius: 10px;
  color: #0d3b66;
}
.partnerscontent h2 {
  text-transform: capitalize;
  line-height: 1.2;
  text-align: center;
  font-size: xx-large;
}
.partnersimage {
  background-color: white;
  border-radius: 50%; /* Makes it circular */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* Ensures the image is clipped to the circle */
  width: 586px;
  height: 586px;
  background-image: url("images/g3a23e91…_1280.jpg");
  background-position: 50% 50%;
  border-width: 20px;
  border-color: white;
  border-style: solid;
  z-index: 10;
}
.partnersimage img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the image fills the circle */
}
.partnerscontentlink {
  border-color: #0d3b60;
  border-width: 5px;
  background-color: white;
  color: #0d3b60;
  font-family: Montserrat, sans-serif;
  font-size: 0.9375rem;
  text-decoration: none;
  padding: 10px;
  border-radius: 10px;
  border-style: solid;
  text-transform: uppercase;
  margin-top: 30px;
}
.partnerslink{
  margin-top: 30px;
}
@media (max-width: 1200px) {
  .newsimage {
    width: 400px;
    height: 400px;
  }  
  .partnersimage{
     width: 400px;
    height: 400px;
  }
  .partnerscontainer{
    margin-top: 40px;
    margin-bottom: 70px;
  }
}
@media (max-width: 1000px) {
  .newsimage {
   display: none;
  }  
  .partnersimage{
    display: none;
  }
  .partnerscontainer{
    margin-top: 40px;
    margin-bottom: 70px;
  }
}
@media (max-width: 890px) {
  .banner {
    max-width: 100%;
    height: 500px;
    margin-bottom: 200px;
  }
  .bannercontent {
    max-width: 700px;
    min-height: 400px;
    border-width: 0px;
  }
  .newscontainer {
    grid-template-columns: repeat(1, 1fr); /* Two columns on tablets */
    text-align: center;
    max-height: 250px;
    max-width: 100%;
  }
  .news {
    padding: 10px;
  }
  .newscontent {
    padding: 15px;
  }

  .newsimage {
    display: none;
  }

  .newscontentlink {
    font-size: 0.85rem;
    padding: 8px;
  }

  .servicescontainer {
    grid-template-columns: repeat(2, 1fr); /* Two columns on tablets */
  }
  .teamcontainer {
    grid-template-columns: repeat(2, 1fr); /* Two columns on tablets */
  }
  
  .divingsites h2{
    font-size: 30px;
  }
  
.partnerscontainer {
  grid-template-columns: repeat(1, 1fr); /* Two columns on tablets */
  text-align: center;
  max-height: 250px;
  max-width: 100%;
  margin-top: 40px;
  margin-bottom: 100px;
}
.partners {
  padding: 10px;
}
.partnerscontent {
  padding: 15px;
}

.partnersimage {
  display: none;
}

.partnerscontentlink {
  font-size: 0.85rem;
  padding: 8px;
}
}

@media (max-width: 768px) {
  .banner {
    max-width: 100%;
    height: 500px;
    margin-bottom: 200px;
  }
  .bannercontent {
    max-width: 600px;
    min-height: 400px;
    border-width: 0px;
  }
  .newscontainer {
    grid-template-columns: 1fr; /* Switch to single-column */
    text-align: center;
    max-height: 250px;
    max-width: 100%;
  }
  .news {
    padding: 10px;

  }
  .newscontent {
    padding: 15px;
  }

  .newsimage {
    display: none;
  }

  .newscontentlink {
    font-size: 0.85rem;
    padding: 8px;
  }

  .services {
    grid-template-columns: repeat(2, 1fr); /* Two columns on tablets */
  }

  .team {
    grid-template-columns: repeat(2, 1fr); /* Two columns on tablets */
  }

  .divingcontainer {
    grid-template-columns: repeat(2, 1fr);
  }
  .divingsites {
    background-image: none;
  }
  .partnerscontainer {
    grid-template-columns: 1fr; /* Switch to single-column */
    text-align: center;
    max-height: 250px;
    max-width: 100%;
    margin-top: 40px;
    margin-bottom: 100px;
  }
  .partners {
    padding: 10px;
  }
  .partnerscontent {
    padding: 15px;
  }
  .partnerscontent img{
    max-width: 50%;
  }
  .partnerscontent h1{
    font-size: 1.8em;
  }
  .partnersimage {
    display: none;
  }
}

@media (max-width: 480px) {
  .banner {
    grid-template-columns: repeat(1, 1fr); /* Two columns on tablets */
    max-width: 100%;
    height: 400px;
    margin-bottom: 100px;
  }
  .bannercontent {
    max-width: 100%;
    border-width: 0px;
  }
  .newscontainer {
    grid-template-columns: repeat(1, 1fr); /* Two columns on tablets */
    max-width: 100%;
    height: auto;
    margin-top: 30px;
  }
  .newscontent h2 {
    font-size: 1.5rem;
  }
  .newsimage {
    display: none;
  }
  .newscontentlink {
    font-size: 0.8rem;
    padding: 6px;
  }

  .services {
    grid-template-columns: 1fr;
    max-width: 100%;
    grid-template-columns: repeat(1, 1fr); /* Two columns on tablets */
  }
  .team {
    grid-template-columns: repeat(1, 1fr); /* Two columns on tablets */
    max-width: 100%;
  }
  .divingcontainer {
    grid-template-columns: 1fr;
  }
  .partnerscontainer {
    grid-template-columns: repeat(1, 1fr); /* Two columns on tablets */
    max-width: 100%;
    height: auto;
    margin-top: 30px;
  }
  .partnerscontent h2 {
    font-size: 1.5rem;
  }
  .partnersimage {
    display: none;
  }
  .partnerscontentlink {
    font-size: 0.8rem;
    padding: 6px;
  }
}
