/*-- -------------------------- -->
<---       Side By Side         -->
<--- -------------------------- -*/

/* Mobile (default stacked layout) */
@media only screen and (min-width: 0em) {
  #sidebyside {
    padding: 50px 0;
  }
  #sidebyside .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  #sidebyside .content {
    order: 2;
    margin: auto;
    margin-top: 4.6875em;
    max-width: 38.1875em;
  }
  #sidebyside .content h2 {
    font-size: 3em;
    margin-bottom: 0.875em;
  }
  #sidebyside .content p {
    margin-bottom: 1.11111111em;
  }
  #sidebyside .content ul {
    padding-left: 1.25em;
    margin-bottom: 1.25em;
  }
  #sidebyside .content ul li {
    list-style: none;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
  }
  #sidebyside .content ul li img {
    margin-right: 0.625em;
    margin-top: 0.22222222em;
  }
  #sidebyside .image-box {
    display: block;
    position: relative;
    margin: auto;
    width: 90%;
    max-width: 400px;
    height: auto;
  }
  #sidebyside .image-box img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
  }
}

/* Tablet & up (side-by-side) */
@media only screen and (min-width: 768px) {
  #sidebyside {
    padding: 6em 0;
  }
  #sidebyside .container {
    max-width: 86.9375em;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4em;
  }
  #sidebyside.reverse .container {
    flex-direction: row-reverse;
  }
  #sidebyside .content {
    margin: 0;
    width: 60%;
    order: 1;
  }
  #sidebyside .image-box {
    margin: 0;
    width: 35%;
    height: auto;
    order: 2;
    display: block;
  }
}

/*-- -------------------------- -->
<---    Final Call To Action    -->
<--- -------------------------- -*/
/* Mobile */
@media only screen and (min-width: 0em) {
  #cta {
    position: relative;
    padding: 3.125em 0;
  }
  #cta:before {
    content: '';
    position: absolute;
    display: block;
    height: 100%;
    width: 100%;
    background: #000;
    opacity: .7;
    top: 0;
    left: 0;
    z-index: -1;
  }
  #cta .container {
    text-align: center;
  }
  #cta picture {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: -2;
  }
  #cta picture img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    -o-object-fit: cover;
       object-fit: cover;
  }
  #cta .title {
    font-weight: 900;
    font-size: min(9vw, 3em);
    line-height: 1.20833333;
    color: #fff;
    position: relative;
    margin-bottom: 0.75em;
    text-align: center;
  }
  #cta p {
    color: #fff;
    text-align: center;
    opacity: 1;
    margin: auto;
    margin-bottom: 2em;
    width: 96%;
    max-width: 33.22222222em;
  }
}
/* Small Desktop */
@media only screen and (min-width: 64em) {
  #cta {
    padding: 10.5em 0;
  }
}
/* Large Desktop */
@media only screen and (min-width: 1300px) {
  #cta {
    position: relative;
    margin-top: 6.25em;
  }
  #cta:before {
    display: none;
  }
  #cta:after {
    content: '';
    position: absolute;
    display: block;
    height: 69.25em;
    width: 125em;
    background: url("../images/cta-squares.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    bottom: 0;
    left: 50%;
    -webkit-transform: translateX(-50%);
            transform: translateX(-50%);
    z-index: -3;
  }
  #cta .container {
    width: 90.0625%;
    margin: auto;
  }
  #cta picture {
    width: 90.0625%;
    left: 50%;
    -webkit-transform: translateX(-50%);
            transform: translateX(-50%);
  }
  #cta picture:before {
    content: '';
    position: absolute;
    display: block;
    height: 100%;
    width: 100%;
    background: #000;
    opacity: .7;
    top: 0;
    left: 0;
    z-index: 1;
  }
}
/* Dark Mode */
@media only screen and (min-width: 0em) {
  body.dark-mode #cta:after {
    display: none;
  }
}
.image-box {
    width: 100%;       /* fill the container width */
    height: auto;      /* keep aspect ratio */
    max-width: 800px;  /* optional: limit max width */
    border-radius: 10px; /* optional styling */
}

/* Make video/image fill more space in side-by-side sections */
#sidebyside .image-box {
    width: 60% !important;   /* increase from 35% to 60% on desktop */
    max-width: none !important; /* remove old max-width */
    height: auto;
}

/* Optional: on mobile, allow it to use more width */
@media only screen and (max-width: 767px) {
    #sidebyside .image-box {
        width: 95% !important;
        max-width: none !important;
    }
}

/* Ensure video fits nicely */
.image-box video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}
/* Desktop: side-by-side layout */
@media only screen and (min-width: 768px) {
    #sidebyside .container {
        flex-direction: row;
        align-items: flex-start;
    }

    /* Our Solutions video on the right */
    #sidebyside .video-box {
        width: 60%;   /* bigger video */
    }

    #sidebyside .video-box video {
        width: 100%;
        height: auto;
        border-radius: 10px;
    }

    /* Text width adjusted accordingly */
    #sidebyside .content {
        width: 40%;
    }

    /* Benefits section (image left, text right) */
    #sidebyside .container.reverse .image-box {
        width: 40%;
    }
    #sidebyside .container.reverse .content {
        width: 55%;
    }

   #sidebyside .image-box img {
        width: 100%;
        height: auto;
        border-radius: 10px;
    }
}

/* Mobile: make video-box fill width nicely */
@media only screen and (max-width: 767px) {
    #sidebyside .video-box {
        width: 95%;
        max-width: none;
        margin: auto;
    }

    #sidebyside .video-box video {
        width: 100%;
        height: auto;
        border-radius: 10px;
        display: block;
    }
}

/* Navbar links consistent across all pages */
#navigation #navbar-menu ul li a {
    font-size: 1em; /* desktop size */
    font-weight: bold;
    text-transform: uppercase;
}

@media only screen and (max-width: 1023px) {
    #navigation #navbar-menu ul li a {
        font-size: 0.9em; /* mobile size */
    }
}


