.tomo-image {
  width: 100%;
  min-width: 100%;
  height: 100vh;
  min-height: 100vh;
}

.tomo-image__inner{
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 100%;
  height: 100vh;
  min-height: 100vh;
}

.tomo_img_img {
  width: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: start;
  align-items: center;
  flex-direction: column;
  height: 100vh;
  min-height: 100vh;
  color: white;
  gap: 10px;
}

.btn-link__normal-round-tomo {
  color: #fff;
  margin-bottom: 20px;
  background-color: transparent;
  display: inline-block;
  text-align: center;
  white-space: nowrap;
  border: 1px solid rgb(255, 255, 255);
  font-weight: 400;
  font-size: 17px;
  line-height: 24px;
  padding: 14px 32px;
  border-radius: 90px;
  text-decoration: none;
  font-family: 'Roboto', sans-serif;
  font-weight: bold;
}

.title-btn-cont {
  justify-content: space-between;
  height: 80%;
  }
.btn-link__normal-round-tomo:hover {
  background-color: #fff; /* White background on hover */
  color: #312e2f; /* Black text on hover */
  border-color: #fff; /* Optional: keep border same or change */
}
.UVD-logo-cont {
 width: 100%;
 display: flex;
 position: fixed;
 justify-content: center;
 z-index: 5; color: white;"
}

.subtext, .subtext2 {
text-align: left;
  font-size: 25px;
 font-family:Roboto;
  height: 200px;
}
.subtext {
 margin-left: 40%;
 margin-right: 10%;
}

.subtext2 {
 margin-left: 10%;
 margin-right: 40%;
}

@font-face {
    font-family: 'Industry';
    src: url("49fdec8ee8568aaf58534b3ede38e294.woff2") format("truetype"), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/
}

/* Mobile: max-width 768px */
@media screen and (max-width: 768px) {

  /* Stack blocks vertically */
  .tomo-image__inner > div[style*="flex-direction: row"] {
    flex-direction: column !important;
  }

  /* Subtext adjustments for mobile */
  .subtext, .subtext2 {
    margin-left: 10% !important;
    margin-right: 10% !important;
    text-align: center;
    height: auto;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 16px;
  }

  .UVD-logo-cont {
    position: relative;
    justify-content: center;
    z-index: 5; 
    color: white;
  }

  /* Full-width images */
  .tomo_img_img {
    width: 100% !important;
    height: auto;
    min-height: 50vh;
    margin: 0;
    padding: 0;
    gap: 0;
  }

  .tomo_img_img > div {
    padding: 10px 0;
  }

  /* Titles */
  .tomo_img_img h {
    font-size: 40px !important;
    text-align: center;
    margin: 10px 0;
  }

  /* Buttons */
  .btn-link__normal-round-tomo {
    padding: 12px 24px;
    font-size: 16px;
    margin: 10px auto;
    display: block;
  }

  .title-btn-cont {
    height: auto; /* flexible height for stacking */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 15px; /* space between title, button, subtext */
  }

  /* Center header logo */
  .tomo-image__inner > div:first-child {
    justify-content: center;
    margin-bottom: 15px;
  }
}

/* Tablet: 768px - 992px */
@media only screen and (max-width: 992px) and (min-width: 768px) {

  /* Stack blocks vertically */
  .tomo-image__inner > div[style*="flex-direction: row"] {
    flex-direction: column !important;
  }

  .subtext, .subtext2 {
    margin-left: 10% !important;
    margin-right: 10% !important;
    text-align: center;
    height: auto;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 18px;
  }

  .UVD-logo-cont {
    position: relative;
    justify-content: center;
    z-index: 5;
    color: white;
  }

  .tomo_img_img {
    width: 100% !important;
    height: auto;
    min-height: 65vh;
    margin: 0;
    padding: 0;
    gap: 0;
    background-size: 90%;
    background-position: center center;
    background-repeat: no-repeat;
  }

  /* Background colors for blocks */
  .tomo_img_img:nth-child(1) {
    background-color: #312e2f;
  }
  .tomo_img_img:nth-child(2) {
    background-color: #167dbc;
  }

  .tomo_img_img > div {
    padding: 20px 0;
  }

  .tomo_img_img h {
    font-size: 38px !important;
    text-align: center;
    margin: 10px 0;
  }

  .btn-link__normal-round-tomo {
    padding: 12px 24px;
    font-size: 16px;
    margin: 10px auto;
    display: block;
  }

  .title-btn-cont {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
  }

  .tomo_img_img div {
    text-align: center;
    font-size: 16px;
    margin: 0;
  }

  .tomo-image__inner > div:first-child {
    justify-content: center;
    margin-bottom: 15px;
  }
}



