.uta-hero-three {
  display: flex;
  width: 100%;
  height: calc(100vh - 140px);
  overflow: hidden;
}

.uta-hero-section {
  flex: 1;
  background-size: cover;
  background-position: center;
  transition: flex 0.35s ease;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.uta-hero-section:hover {
  flex: 5;
}

.uta-hero-section-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: stretch;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0.95);
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.4s ease 0.35s, transform 0.35s cubic-bezier(0.4,0,0.2,1) 0.35s;
  pointer-events: none;
  padding-top:30px;

}

.uta-hero-section:hover .uta-hero-section-content {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s;
  pointer-events: auto;
}

.uta-hero-section:not(:hover) .uta-hero-section-content {
  opacity: 0;
  transform: translateY(100%);
  transition-delay: 0s;
}

.uta-hero-section-button,
.uta-hero-section-text {
  background: none;
  color: white !important;
  padding: 1rem 1rem;
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  width: 100%;
  transform-origin: bottom;
  opacity: 0;
}

.uta-hero-section-button {
  font-weight: 700; 
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.uta-hero-section-text, .uta-hero-section-text p {
  font-size: 1.2rem;
  font-weight: normal;
  padding: 3rem;
  padding-top: 0.5rem;
  color:white;
}

.uta-hero-section-text-inner {
  opacity: 1;
  transform: none;
  transition: none;
}

.uta-hero-section:hover .uta-hero-section-button,
.uta-hero-section:hover .uta-hero-section-text {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.uta-hero-section:not(:hover) .uta-hero-section-button {
  opacity: 0;
  transform: translateY(0);
  transition-delay: 0s;
}
.uta-hero-section:not(:hover) .uta-hero-section-text {
  opacity: 0;
  transform: translateY(100%);
  transition-delay: 0s;
}

.uta-hero-button {
    display: inline-block; /* So it's only as wide as its content */
    margin: 0;
    padding: 0;
}

.uta-hero-button a {
    display: inline-block;
    cursor: pointer;
    color: black;
    background-color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4;
    padding: 6px 12px;
    border-radius: 6px; /* Slightly rounded corners */
    border: 1px solid #ccc;
    transition: background 0.3s ease;
}

.uta-hero-button a:hover {
    background-color: #f0f0f0;
}

@media (max-width: 768px) {
  /* Force container to full width and stack sections vertically */
  .uta-hero-three {
    flex-direction: column;
    width: 100vw;
    max-width: 100vw;
    height: auto !important;
  }

  /* Each section: stacked block with background image preserved */
  .uta-hero-section {
    flex: none !important;
    width: 100% !important;
    height: auto !important;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    display: flex !important;
    position: relative;
  }

  /* Show content without hover (static layout) */
  .uta-hero-section-content {
    position: relative;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    transition: none !important;
    background: rgba(0, 0, 0, 0.6); /* optional, readable dark overlay */
  }

  .uta-hero-section-button,
  .uta-hero-section-text {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Prevent clipping by Elementor containers */
  .elementor-widget-uta_hero_three_column {
    padding: 0 !important;
    margin: 0 !important;
  }

  .elementor-widget-uta_hero_three_column > .elementor-widget-container {
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }
}



