/* Hero section styles for homepage */
.hero-banner__title {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0;
  line-height: 1.1;
  color: white;
}

@media (max-width: 700px) {
  .hero-banner__title {
    font-size: 1.8rem;
  }
}

/* Mobile hero adjustments */
@media (max-width: 700px) {
  .hero {
    min-height: 300px;
  }
  
  .hero-banner {
    position: relative;
    width: 100%;
    background: #218649;
    color: #fff;
    padding: 15px 0;
  }
  
  .hero-banner__flex {
    /* flex-direction: column; */
    /* align-items: flex-start; */
    padding: 15px 0;
    /* min-height: unset; */
    display: block !important;
    text-align: center;
  }
  
  .hero-banner__left {
    font-size: 1.4rem;
    max-width: unset;
    min-width: unset;
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 1.2;
  }
  
  .hero-banner__right {
    font-size: 1rem;
    padding-left: 0;
    min-width: unset;
    line-height: 1.4;
  }
  
  .hero-banner .lgd-container {
    padding: 0 15px;
  }
}

/* Mobile hero image */
.hero-mobile-image,
.hero-cta-btn {
  display: none;
}

@media (max-width: 700px) {
  .hero-mobile-image,
  .hero-cta-btn {
    display: block;
  }
  
  .hero-mobile-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px auto;
    border: 3px solid rgba(255, 255, 255, 0.3);
  }
  
  .hero-cta-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s ease;
  }
  
  .hero-cta-btn:hover {
    background: white;
    color: #218649;
  }
}

/* About Us and other pages hero banner styles */
.top-banner-section {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-image-div {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-image: linear-gradient(135deg, #218649 0%, #1a6b3a 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.banner-image-div img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.banner-overlay-div {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(33, 134, 73, 0.8) 0%, rgba(33, 134, 73, 0.6) 100%);
  z-index: 2;
}

.banner-text-div {
  position: relative;
  z-index: 3;
  width: 100% !important; /* Full width to contain the row */
  max-width: 1200px !important; /* Same max-width as main content */
  margin: 0 auto !important; /* Center like main content */
  padding: 2rem 24px !important; /* Added top/bottom padding for breathing room */
}

/* Override lgd-container centering for banner text */
.banner-text-div.lgd-container {
  margin: 0 auto !important; /* Center like main content */
  max-width: 1200px !important;
}

/* Target the inner banner-text span directly */
.banner-text-div .banner-text {
  color: black;
  text-shadow: none; /* Remove text shadow since text is now black */
  width: 66.666667% !important; /* Two-thirds width on the text container */
  max-width: 800px !important;
  margin: 0 !important;
  padding: 1.5rem !important; /* Added padding around text content */
}

/* Override the govuk-grid-column-one-half class */
.banner-text-div .govuk-grid-column-one-half {
  width: 66.666667% !important;
  max-width: 800px !important;
  margin: 0 !important;
  padding: 1.5rem !important; /* Added padding for consistent spacing */
}

.banner-text .govuk-heading-l {
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  color: black;
  line-height: 1.1;
}

.banner-text .govuk-body-l {
  font-size: 1.25rem;
  line-height: 1.5;
  margin: 0;
  color: black;
  opacity: 0.9;
}

/* Responsive adjustments for hero banner */
@media (max-width: 1024px) {
  .top-banner-section {
    height: 350px;
  }
  
  .banner-text-div {
    width: 75%; /* Slightly wider on tablet */
  }
  
  .banner-text .govuk-heading-l {
    font-size: 2.5rem;
  }
  
  .banner-text .govuk-body-l {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .top-banner-section {
    height: 300px;
  }
  
  .banner-text-div {
    width: 90%; /* Wider on mobile for better readability */
    padding: 0 16px;
  }
  
  .banner-text .govuk-heading-l {
    font-size: 2rem;
    margin: 0 0 0.75rem 0;
  }
  
  .banner-text .govuk-body-l {
    font-size: 1rem;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  .top-banner-section {
    height: 250px;
  }
  
  .banner-text-div {
    width: 95%; /* Almost full width on small mobile */
  }
  
  .banner-text .govuk-heading-l {
    font-size: 1.75rem;
  }
  
  .banner-text .govuk-body-l {
    font-size: 0.95rem;
  }
} 