/* Screen reader only class - completely hidden but accessible */

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ALL YOUR EXISTING STYLES REMAIN THE SAME */
.saahero .button {
  min-width: 320px;
}

.hero-wrapper {
  position: relative;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

a.button.outline {
  background: none;
  border: 1px solid white;
}

a.button.outline:hover {
  background: #06153d;
  border: 1px solid #06153d;
}

.hero-curve-svg {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 5;
  display: block;
}

.hero-curve-svg path {
  fill: white;
}

/* Gradient background container */
.gradient-bg {
  position: relative;
  overflow: hidden;
  min-height: 900px;
  clip-path: ellipse(100% 100% at 50% 0%);
  padding-bottom: 60px;
}

/* Background image */
.bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  opacity: 1;
  visibility: visible;
}

.bg-image.hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in;
}

/* Video background */
.video-background {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Gradient overlay */
.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* Page center wrapper */
.video-page-center {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

/* Hero section */
.saahero {
  max-width: 1340px !important;
  width: 100%;
  margin: 0 auto !important;
  padding: 0 20px;
  text-align: left;
  color: white;
  position: relative;
}

/* UPDATED: Left-aligned header container */
.centered-header-and-cta-container {
  width: 100%;
  margin: 0 0 30px 0;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.changing-words-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  font-size: 3.3em;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -1px;
  color: white;
  text-shadow: 0px 0px 9px #02263e6b;
  gap: 0.1em;
  text-transform: uppercase;
    font-family: Exo2;
}

img.SAA.logo {
  margin-top: 10px;
  width: 1000px;
}

.static-text {
  white-space: nowrap;
  letter-spacing: 1px;
  margin: 10px 0;
}

.saahero p {
  font-size: 21px;
}

.dynamic-text-and-after-text-container {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
}

.dynamic-text-container {
  position: relative;
  display: inline-block;
  min-width: 200px;
  height: 1.2em;
  overflow: visible;
}

.dynamic-text-h1 {
  position: absolute;
  left: 0;
  bottom: 0;
  transform: none;
  opacity: 0;
  white-space: nowrap;
  transition: opacity 1s ease-in-out;
  font-size: 2em;
  line-height: 0.5em;
  font-weight: inherit;
}

.dynamic-text-h1.show {
  opacity: 1;
}

/* Color classes */
.orange-thick { color: #f9a12f!important; }
.red-thick { color: #ef3f36!important; }
.teal-thick { color: #03808f!important; }
.orange-thin { color: #f9a12f!important; font-weight: 300!important; }
.red-thin { color: #ef3f36!important; font-weight: 300!important; }
.teal-thin { color: #03808f!important; font-weight: 300!important; }

@supports (-webkit-text-stroke: 2px #f9a12f) {
  .orange-outline {
    color: transparent;
    -webkit-text-stroke: 2px #f9a12f;
  }
}

@supports (-webkit-text-stroke: 2px #ef3f36) {
  .red-outline {
    color: transparent;
    -webkit-text-stroke: 2px #ef3f36;
  }
}

@supports (-webkit-text-stroke: 2px #03808f) {
  .teal-outline {
    color: transparent;
    -webkit-text-stroke: 2px #03808f;
  }
}

.copy {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: 0;
  margin-right: auto;
  opacity: 0.9;
}



.button-secondary {
  background: transparent;
  border: 2px solid white;
}

.button-secondary:hover {
  background: white;
  color: #0079c2;
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .video-page-center {
    height: 700px !important; /* override */
  }

  .gradient-bg {
    min-height: 700px !important; /* override min-height */
  }
  
  .gradient-overlay {
    background: linear-gradient(to right, #02263ec2 0%, rgb(3 127 142 / 11%) 100%);
  }
  
  .static-text {
    white-space: normal;
  }
  
  .gradient-bg {
    clip-path: ellipse(210% 100% at 50% 0%);
  }
  
  .video-page-center {
    padding: 150px 15px 0 15px;
    align-items: flex-start;
  }
  
  .saahero {
    margin-top: 0;
  }
  
  a.button.outline {
    margin-top: 10px;
  }
  
  img.SAA.logo {
    max-width: 30em;
  }
  
  .dynamic-text-h1 {
    font-size: 1em;
  }
  
  .saahero p {
    font-size: 16px;
  }
  
  .changing-words-header {
    font-size: 2.5em;
    letter-spacing: normal;
  }

  .video-background {
    display: none;
  }

  .bg-image {
    display: block;
    background-attachment: scroll;
  }

  .dynamic-text-container {
    min-width: 150px;
  }
}

/* Tablet adjustments */
@media (max-width: 866px) {
  .changing-words-header {
    font-size: 2.8em;
  }
}

@media (max-width: 600px) {
  .changing-words-header {
    font-size: 2em;
  }

  .saahero {
    padding: 0 15px;
  }
}

/* Animation for desktop */
@media (min-width: 768px) {
  .bg-image.delay {
    opacity: 0;
    animation: fadeInImage 2s ease-in forwards 2s;
  }
}

@keyframes fadeInImage {
  to {
    opacity: 1;
  }
}