    /* Base styles for both desktop and mobile */
    /* Home slider positioned at top of page (behind navigation) */
    .home-slider {
      position: relative;
      margin-top: 110px;
      /* Pull up to start behind the fixed header */
      padding-top: 0;
      width: 100%;
      z-index: 1;
      /* Below the navigation */
    }

    .home-slider .slide .flex {
      width: 100%;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      background-color: var(--AzureDark);
      display: block;
      position: relative;
      z-index: 0;
    }

    .home-slider ul,
    .home-slider li {
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .home-slider h1 {
      font-size: var(--FontSize4XL);
    }

    .home-slider .slides {
      position: relative;
      width: 100%;
      overflow: hidden;
      /* Keep slides contained */
    }

    .home-slider .slide {
      opacity: 0;
      transition: opacity 1s ease-in-out;
      position: absolute;
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      isolation: isolate;
      /* Create stacking context for z-index */
    }

    .home-slider .slide.active {
      opacity: 1;
      position: relative;
      /* Make active slide participate in document flow */
    }

    .home-slider .slide video,
    .home-slider .slide .flex {
      display: block;
      position: relative;
      z-index: 1;
      width: 100%;
      height: auto;
    }

    .home-slider .slide::after {
      content: "";
      position: absolute;
      top: 0;
      right: 0;
      bottom: -1px;
      left: 0;
      /* Full background declaration with no-repeat for both layers */
      background:
        url('/media/structure/header-border-bottom.webp') no-repeat center bottom;
      /*linear-gradient(45deg, hsla(var(--Azure), 0.3), hsla(var(--Orange), 0.4), hsla(var(--AzureDark), 0.5)) no-repeat center center;*/
      background-size: 100% auto, cover;
      z-index: 10;
      pointer-events: none;
      /* Allow clicks to pass through to content below */
    }

    .home-slider .slideContent {
      box-sizing: border-box;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      z-index: 20;
      width: 80%;
      max-width: 1920px;
      overflow: hidden;
    }

    .home-slider .slideContent h1 {
      color: white;
      text-shadow: 0 0 10px hsla(0, 0%, 0%, 0.7);
    }

    .home-slider .slideContent h2 {
      color: white;
      text-shadow: 0 0 10px hsla(0, 0%, 0%, 0.7);
    }

    .home-slider .slideContent h3 {
      color: white;
      text-shadow: 0 0 10px hsla(0, 0%, 0%, 0.7);
    }

    .home-slider .slideContent p {
      color: white;
      text-shadow: 0 0 10px hsla(0, 0%, 0%, 0.7);
    }

    .home-slider .slideContent a {
      color: white;
      text-shadow: 0 0 10px hsla(0, 0%, 0%, 0.7);
      text-decoration: none;
    }

    /* Badge positioning */
    .home-slider .badge {
      position: absolute;
      z-index: 11;
      transition: all 0.3s ease;
    }

    /* Desktop styles */
    @media screen and (min-width: 769px) {
      .home-slider {
        margin-top: 110px;
      }

      .home-slider .slide .flex {
        height: 47.37vw;
        /* Match the height of the slider container */
        min-height: 400px;
        /* Provide a minimum height as fallback */
      }

      .home-slider .controls {

        height: 20vh;
        /* Height of the control area */
      }

      .home-slider .badge {
        right: 50px;
        bottom: 5vh;
        width: 150px;
      }
    }

    /* Mobile styles */
    @media screen and (max-width: 768px) {
      .home-slider {
        margin-top: 0;
        /* Remove negative margin on mobile */
      }

      .home-slider .slide {
        min-height: 100vw;
        /* Ensure minimum height for slides */
      }

      .home-slider .slide::after {
        bottom: -1px;
      }

      .home-slider .slide video {
        width: 100%;
        object-fit: cover;
      }

      .home-slider .slideContent {
        bottom: 15%;
        padding: 10px;
      }

      .home-slider .slideContent h1 {
        font-size: 1.5em;
      }

      .home-slider .slideContent a {
        font-size: 1em;
      }

      .home-slider .slideContent h2 {
        font-weight: 400;
        font-size: 1em;
      }

      .home-slider .badge {
        width: 100px;
        right: 50%;
        /* Center horizontally */
        bottom: -1vh;
        transform: translateX(50%);
        /* Center adjustment */
      }

      /* Fix background image display on mobile */
      .home-slider .slide .flex {
        width: 100%;
        min-height: 50vh;
        background-size: cover;
        background-position: 50% calc(100% - 1px);
      }
    }