/* Let the container adapt to viewport height minus header and footer */
.hero {
  height: calc(100vh - 80px - 48px); /* 80 = header, 60 = footer */
}

/* Maintain border radius and full overlay inside image area */
.hero-image-wrapper {
  position: relative;
  width: calc(100% - 6rem);
  height: 100%;
  border-radius: 25px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Button at the top left */
.top-btn {
  font-family: 'Calibri';
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  padding: 10px 15px;
  border-radius: 60px;
}

/* Button at the bottom right */
.bottom-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 2;
  padding: 0.5em 5em;
  border-radius: 30px;
}

/* Text block centered between top and bottom buttons */
.hero-text-block {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: white;
  text-align: center;
  max-width: 90%;
  width: 100%;
  padding: 0 3rem;
  box-sizing: border-box;
}

.hero-subtitle {
text-align: left;
  font-size: 72px;
  font-weight: 400;
  padding-bottom: 30px;
  font-family: "Oswald";
  margin-bottom: 1rem;
}

.hero-description {
  text-align: left;
  font-size: 20px;
  line-height: 1.7;
  font-family: "Oswald";
}

@media (min-width:375px) and (max-width: 768px) {
  .hero-image-wrapper {
    width: calc(100% - 4rem);
    border-radius: 10px;
  }
  
  .hero-image-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    padding: 0 2rem;
  }

  .hero-overlay {
    border-radius: 10px;
  }

  .top-btn {
    display: none;
  }

  .hero-text-block {
  position: absolute;
  overflow-y: auto;
  font-size: 16px;
  max-height: 70vh;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding-top: -50px;
  padding-left: 0px;
  padding-right: 0px;
  }
 
  .hero-subtitle {
    font-size: 26px;
    padding-bottom: 0px;
    margin-bottom: 1rem;
    text-align: left;
  }

  .hero-description {
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
  }

  .contact-btn {
    font-size: 16px;
    margin: 2rem auto 0;
    display: block;
    border-radius: 10px;
    margin-top: 0px;
  }
}

@media (min-width: 769px) and (max-width: 1280px){

  .btn {
    font-family: Calibri;
    flex: 1;
    font-size: 16px;
    padding: 10px 13px;
    font-weight: 300;
    border: 0;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    border-radius: 30px;
    align-items: center;
  }

  .hero-subtitle {
    font-size: 38px;
    margin-bottom: 0px;
    padding-bottom: 20px;
  }
 
  .hero-description {
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
  }

  .contact-btn {
    font-size: 16px;
    display: block;
  }
 
}