/*-- -------------------------- -->
<---       Side By Side         -->
<--- -------------------------- -*/
/* Mobile */
@media only screen and (min-width: 0em) {
  #sidebyside {
    padding: 50px 0;
  }
  #sidebyside .container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    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 .content .button-solid {
    margin-top: 1.78571429em;
  }
  #sidebyside .image-box {
    display: block;
    position: relative;
    margin: auto;
    width: 38.1875em;
    height: 53.8125em;
    font-size: min(1.4vw, 1em);
  }
  #sidebyside .image-box:before {
    content: '';
    position: absolute;
    display: block;
    height: 100%;
    width: 100%;
    background: var(--primary);
    opacity: 1;
    top: 2.5em;
    left: -2.5em;
  }
  #sidebyside .image-box:after {
    content: '';
    position: absolute;
    display: block;
    height: 32.25em;
    width: 28.75em;
    background: url("/images/content-circles.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    top: -14.125em;
    right: -6.8125em;
    z-index: -1;
  }
  #sidebyside .image-box img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
}
/* Inbetween */
@media only screen and (min-width: 666px) {
  #sidebyside {
    padding: 6.25em 0;
  }
}
/* Small Desktop */
@media only screen and (min-width: 1300px) {
  #sidebyside {
    padding: 9.375em 0;
  }
  #sidebyside .container {
    max-width: 86.9375em;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
  #sidebyside .content {
    margin: 0;
    width: 60%;
  }
  #sidebyside .image-box {
    margin: 0;
    margin-right: 10.625em;
  }
}
/*-- -------------------------- -->
<---   Side By Side Reverse     -->
<--- -------------------------- -*/
/* Mobile */
@media only screen and (min-width: 0em) {
  #sidebyside-reverse {
    padding: 50px 0;
  }
  #sidebyside-reverse .container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
  #sidebyside-reverse .content {
    order: 2;
    margin: auto;
    margin-top: 4.6875em;
    max-width: 38.1875em;
  }
  #sidebyside-reverse .content h2 {
    font-size: 3em;
    margin-bottom: 0.875em;
  }
  #sidebyside-reverse .content p {
    margin-bottom: 1.11111111em;
  }
  #sidebyside-reverse .content ul {
    padding-left: 1.25em;
    margin-bottom: 1.25em;
  }
  #sidebyside-reverse .content ul li {
    list-style: none;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
  }
  #sidebyside-reverse .content ul li img {
    margin-right: 0.625em;
    margin-top: 0.22222222em;
  }
  #sidebyside-reverse .content .button-solid {
    margin-top: 1.78571429em;
  }
  #sidebyside-reverse .image-box {
    display: block;
    position: relative;
    margin: auto;
    width: 38.1875em;
    height: 53.8125em;
    font-size: min(1.4vw, 1em);
  }
  #sidebyside-reverse .image-box:before {
    content: '';
    position: absolute;
    display: block;
    height: 100%;
    width: 100%;
    background: var(--primary);
    opacity: 1;
    top: 2.5em;
    left: -2.5em;
  }
  #sidebyside-reverse .image-box:after {
    content: '';
    position: absolute;
    display: block;
    height: 32.25em;
    width: 28.75em;
    background: url("/images/content-circles.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    top: -14.125em;
    right: -6.8125em;
    z-index: -1;
  }
  #sidebyside-reverse .image-box img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
}
/* Inbetween */
@media only screen and (min-width: 666px) {
  #sidebyside-reverse {
    padding: 6.25em 0;
  }
}
/* Small Desktop */
@media only screen and (min-width: 1300px) {
  #sidebyside-reverse {
    padding: 9.375em 0;
  }
  #sidebyside-reverse .container {
    max-width: 86.9375em;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
  #sidebyside-reverse .content {
    margin: 0;
    width: 60%;
    order: 1;
  }
  #sidebyside-reverse .image-box {
    margin: 0;
    margin-left: 10.625em;
    order: 2;
  }
  #sidebyside-reverse .image-box:before {
    left: auto;
    right: -2.5em;
  }
  #sidebyside-reverse .image-box:after {
    right: auto;
    left: -6.8125em;
  }
}
/*-- -------------------------- -->
<---    Final Call To Action    -->
<--- -------------------------- -*/
/* Mobile */
@media only screen and (min-width: 0em) {
  #cta {
    position: relative;
    padding: 3.125em 0;
    background: url('/images/Lbackground.jpg') no-repeat center center;
    background-size: cover;
  }
  #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 {
    display: none;
  }
  #cta picture img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    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%;
    transform: translateX(-50%);
    z-index: -3;
  }
  #cta .container {
    width: 90.0625%;
    margin: auto;
  }
  #cta picture {
    width: 90.0625%;
    left: 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;
  }
}
#cta .title,
#cta p {
    color: #000; /* Change text color to black */
}

/* Change text color for buttons and add rounded corners */
.button-solid {
    color: #fff; /* Set text color to white */
    border-radius: 8px; /* Add rounded corners */
}

/* Update the sidebyside section styles */
@media only screen and (min-width: 1024px) {
    #sidebyside .container,
    #sidebyside-reverse .container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 4em;
        max-width: 1200px;
        margin: 0 auto;
        padding: 2em;
    }

    #sidebyside .content,
    #sidebyside-reverse .content {
        flex: 1;
        order: 1;
        margin: 0;
        max-width: 50%;
    }

    #sidebyside .image-box,
    #sidebyside-reverse .image-box {
        flex: 1;
        order: 2;
        margin: 0;
        max-width: 45%;
        height: auto;
        position: relative;
    }

    #sidebyside .image-box img,
    #sidebyside-reverse .image-box img {
        width: 100%;
        height: auto;
        position: relative;
        object-fit: cover;
        border-radius: 8px;
    }

    /* Remove the before/after decorative elements */
    #sidebyside .image-box:before,
    #sidebyside .image-box:after,
    #sidebyside-reverse .image-box:before,
    #sidebyside-reverse .image-box:after {
        display: none;
    }

    /* Reverse order for alternate sections */
    #sidebyside-reverse .container {
        flex-direction: row-reverse;
    }
}

/* Mobile styles remain unchanged */
@media only screen and (max-width: 1023px) {
    #sidebyside .container,
    #sidebyside-reverse .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 2em;
    }

    #sidebyside .content,
    #sidebyside-reverse .content {
        order: 2;
        width: 100%;
        margin-top: 2em;
    }

    #sidebyside .image-box,
    #sidebyside-reverse .image-box {
        width: 100%;
        max-width: 500px;
        height: auto;
        margin: 0;
    }
}

/* Specific styles for About page sidebyside section */
@media only screen and (min-width: 1024px) {
    /* Reset the default image box styles for about page */
    body.about #sidebyside .image-box {
        width: 40%;
        height: auto;
        position: relative;
        margin: 0;
    }

    body.about #sidebyside .image-box img {
        position: relative;
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 8px;
        top: auto;
        left: auto;
    }

    /* Remove decorative elements on about page */
    body.about #sidebyside .image-box:before,
    body.about #sidebyside .image-box:after {
        display: none;
    }

    /* Adjust content width for about page */
    body.about #sidebyside .content {
        width: 55%;
        margin: 0;
    }
}

/* Mobile styles for about page */
@media only screen and (max-width: 1023px) {
    body.about #sidebyside .image-box {
        width: 100%;
        max-width: 500px;
        height: auto;
        margin: 2em 0;
    }

    body.about #sidebyside .image-box img {
        position: relative;
        width: 100%;
        height: auto;
    }
}

/* Navigation link underline styles */
#navigation #navbar-menu ul li a {
    position: relative;
    color: #1a1a1a; /* Ensure text color is consistent */
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

#navigation #navbar-menu ul li a:before {
    content: '';
    position: absolute;
    display: block;
    height: 2px; /* Keep the underline thin */
    width: 0%;
    background: var(--primary); /* Use the purple accent color */
    bottom: -4px; /* Adjust spacing between text and underline */
    left: 0;
    transition: width 0.3s ease;
}

#navigation #navbar-menu ul li a:hover:before,
#navigation #navbar-menu ul li a.active:before {
    width: 100%; /* Expand underline on hover or active state */
}

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

    #navigation #navbar-menu ul li a:before {
        height: 2px; /* Ensure underline remains thin on mobile */
        bottom: -4px; /* Maintain consistent spacing */
    }
}

/* 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 */
    }
}

/* Reduce space between stacked sections */
#sidebyside,
#sidebyside-reverse {
  padding-top: 40px;   /* adjust to taste */
  padding-bottom: 40px;
  margin-bottom: 0;    /* kill any big gaps */
}

#sidebyside + #sidebyside-reverse {
  margin-top: -20px;   /* pulls them closer together */
}

