/* Minimal fix for carousel visibility in landscape orientation */

/* Override the problematic negative margin in landscape mode */
@media (max-width: 926px) and (orientation: landscape) {
  body .body-content #home-hero .hero-content {
    margin-top: 0 !important;
    position: relative !important;
    padding-top: 1em !important;
  }
  
  body .body-content #home-hero .hero-image {
    height: auto !important;
    min-height: 400px !important;
  }
  
  /* Ensure carousel has proper spacing in landscape */
  body .body-content #home-hero .hero-content .feature-slider {
    margin: 1.5em auto !important;
  }
}

/* Mobile carousel fix - teal background must match image width */
@media (max-width: 767px) {
  /* Position arrows outside the slide content */
  body .body-content #home-hero .hero-content .feature-slider .slick-prev {
    left: calc(50% - 160px) !important; /* Position left arrow outside the 230px slide */
  }
  
  body .body-content #home-hero .hero-content .feature-slider .slick-next {
    right: calc(50% - 160px) !important; /* Position right arrow outside the 230px slide */
  }
  
  /* Remove teal background from all divs inside slide-cont */
  body .body-content #home-hero .hero-content .feature-slider .slide-cont div {
    background-color: transparent !important;
  }
  
  /* Center the slide content */
  body .body-content #home-hero .hero-content .feature-slider .slide-cont .slide-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    background-color: transparent !important;
  }
  
  /* img-cont must shrink to fit the image with teal border */
  body .body-content #home-hero .hero-content .feature-slider .slide-cont .slide-container a .img-cont {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 230px !important;
    border-left: none !important;
    border-right: none !important;
    border-top: 10px solid #007a8a !important;
    background-color: transparent !important;
  }
  
  /* Image width - fixed height for consistent slides */
  body .body-content #home-hero .hero-content .feature-slider .slide-cont .slide-container a .img-cont img {
    width: 100% !important;
    height: 160px !important;
    display: block !important;
    object-fit: cover !important;
  }
  
  /* imgOverlay - same width as image, white background */
  body .body-content #home-hero .hero-content .feature-slider .slide-cont .slide-container a .img-cont .imgOverlay {
    background-color: #fff !important;
    width: 100% !important;
    min-height: auto !important;
    padding: 0.75em 0.5em !important;
    border-bottom: 20px solid #007a8a !important;
  }
  
  /* Fix text inside overlay */
  body .body-content #home-hero .hero-content .feature-slider .slide-cont .slide-container a .img-cont .imgOverlay span:last-child {
    position: static !important;
    transform: none !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 0 !important;
    font-size: 0.85em !important;
    line-height: 1.4 !important;
    color: #000 !important;
  }
}

