@import 'main.css';

:root {
  --margin-input-image: calc(8.18vw + 129.31px) !important;
}

@media (min-width: 0px) and (max-width: 992px) {
  .hover-box-xs-container {
    gap: 0 12px;
  }

  .hover-box-xs {
    overflow: hidden;
    position: relative;
  }

  .hover-box-xs .image-wrapper {
    position: relative;
    z-index: 2;
  }

  .hover-box-xs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--hover-box-transition-duration) ease, filter var(--hover-box-transition-duration) ease;
  }

  .hover-box-xs .text-content {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--hover-box-text-background);
    color: var(--hover-box-text-color);
    box-sizing: border-box;
    transition: bottom 0.3s ease;
    font-family: var(--hover-box-text-font-family);
    font-size: var(--hover-box-text-font-size);
    font-weight: var(--hover-box-text-font-weight);
    text-align: left;
  }

  .hover-box-xs .text-content h3 {
    font-size: 19px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    color: #e7e7e7;
    line-height: 1.2;
    margin: 0.5em 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .hover-box-xs .slide-bar {
    position: absolute;
    bottom: 0;
    height: 2px;
    background: var(--hover-box-slide-color);
    width: 0;
    left: 0;
    transition: width 0.3s ease;
  }

  .hover-box-xs .footer-content {
    height: var(--hover-box-bottom-height);
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 1;
    bottom: 0;
    font-family: var(--hover-box-text-font-family);
    font-size: var(--hover-box-text-font-size);
    font-weight: var(--hover-box-text-font-weight);
  }

  .hover-box-xs .footer-content h3 {
    font-family: var(--bs-body-font-family);
  }

  .hover-box-xs:hover img {
    transform: scale(var(--hover-box-scale-factor));
    filter: blur(var(--hover-box-blur-amount));
  }

  .hover-box-xs:hover .text-content {
    bottom: 0;
    z-index: 3;
  }

  .hover-box-xs:hover .slide-bar {
    width: 100%;
    z-index: 3;
  }

  .row-image-xs {
    display: flex;
    height: calc(-14.83vw + 324.3px) !important;
    width: calc(100% - 50px);
    background: #ffffffd9;
    border-radius: 5px;
    padding: 0px 0px;
    box-shadow: 0px 0px 1px 0px #6bddff;
    justify-content: flex-start !important;
    position: relative;
    margin-left: 24px;
    margin-right: 4px;
  }

  .row-image-xs .image-wrapper {
    overflow: hidden;
    min-width: 120px;
    border-radius: 5px;
    position: absolute;
    min-height: 131px;
    height: 56%;
    left: -20px;
    box-shadow: 0 0 3px 0px darkgrey;
  }

  .row-image-xs .image-wrapper img {
    height: inherit;
    position: relative;
    aspect-ratio: 1/1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 5px 0 0 5px;
    min-height: var(--margin-input-image);
  }

  .row-image-xs h3,
  .row-image-xs p {
    margin-bottom: 0;
    color: #717171;
    font-weight: 300;
  }

  .row-image-xs .text-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    gap: 5px !important;
    padding: 33px 13px !important;
    margin-left: calc(var(--margin-input-image) - 17px);
  }

  .row-image-xs .text-content .heading {
    text-align: right;
    color: black;
    font-weight: 400;
    padding-bottom: 12px;
    padding-right: 14px;
    font-size: calc(0.82vw + 15.93px) !important;
  }


  .row-image-xs .footer-content {
    display: none;
  }

  section .row-image-xs:nth-child(2n) {
    margin-right: 24px;
  }

  section .row-image-xs:nth-child(2n) .text-content {
    margin-left: 5px;
    margin-right: var(--margin-input-image);
    text-align: right;
  }

  section .row-image-xs:nth-child(2n) .text-content .heading {
    padding-right: unset;
    padding-left: 14px;
    text-align: left;
  }

  section .row-image-xs:nth-child(2n) .image-wrapper {
    order: 2;
    left: unset;
    right: -20px;
  }

}

@media (min-width: 993px) and (max-width: 99999px) {
  .hover-box-lg-container {
    gap: 0 40px;
  }

  .hover-box-lg {
    overflow: hidden;
    position: relative;
    padding-bottom: 5px !important;
    border-radius: 4px;
  }

  .hover-box-lg .image-wrapper {
    position: relative;
    z-index: 2;
    overflow: hidden;
  }

  .hover-box-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--hover-box-transition-duration) ease, filter var(--hover-box-transition-duration) ease;
    border-radius: 4px;
  }

  .hover-box-lg .text-content {
    z-index: 3;
    position: absolute;
    bottom: -100.5%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--hover-box-text-background);
    color: var(--hover-box-text-color);
    box-sizing: border-box;
    transition: bottom 0.3s ease;
    font-family: var(--hover-box-text-font-family);
    font-size: var(--hover-box-text-font-size);
    font-weight: var(--hover-box-text-font-weight);
    text-align: left;
    padding: 10px;
  }

  .hover-box-lg .text-content h3 {
    font-size: 19px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    color: #e7e7e7;
    line-height: 1.2;
    margin: 0.5em 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: none;
  }

  .hover-box-lg .slide-bar {
    position: absolute;
    bottom: 0;
    height: 2px;
    background: var(--hover-box-slide-color);
    width: 0;
    left: 0;
    transition: width 0.3s ease;
  }

  .hover-box-lg .footer-content {
    height: var(--hover-box-bottom-height);
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 1;
    bottom: 0;
    font-family: var(--hover-box-text-font-family);
    font-size: var(--hover-box-text-font-size);
    font-weight: var(--hover-box-text-font-weight);
  }

  .hover-box-lg .footer-content h3 {
    font-family: var(--bs-body-font-family);
  }

  .hover-box-lg:hover img {
    transform: scale(var(--hover-box-scale-factor));
    filter: blur(var(--hover-box-blur-amount));
  }

  .hover-box-lg:hover .text-content {
    bottom: 0;
    z-index: 3;
  }

  .hover-box-lg:hover .slide-bar {
    width: 100%;
    z-index: 3;
  }

  .row-image-lg {
    display: flex;
    height: calc(-14.83vw + 324.3px) !important;
  }

  .row-image-lg .image-wrapper {
    padding: 5px;
    height: 100%;
    min-width: calc(35.19vw + 28.04px) !important;
    overflow: hidden;
    text-align: center;
    border-radius: 9px;
  }

  .row-image-lg .image-wrapper img {
    height: 100%;
    position: relative;
    left: -50%;
    aspect-ratio: 1;
  }

  .row-image-lg h3,
  .row-image-lg p {
    margin-bottom: 0;
  }

  .row-image-lg .text-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    gap: calc(1.18vw + 7.26px) !important;
  }

  .row-image-lg .footer-content {
    display: none;
  }

  section .row-image-lg:nth-child(2n) .image-wrapper {
    order: 2;
  }
}

/* Hide paragraph elements beyond the second inside .text-content on small screens */
@media (max-width: 576px) {

  /* apply specifically within feature blocks to avoid side effects */
  .feature .text-content p:nth-of-type(n+3) {
    display: none !important;
  }
}

/* Hero Section Styles */
.hero-badge-text {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 20px;
  font-weight: 400;
  text-shadow: var(--hero-text-shadow);
}

.hero-subtitle {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 25px;
  font-weight: 400;
  text-shadow: var(--hero-text-shadow);
}

.btn-hero-calc {
  background: #122d41c7;
  border: #39a4ca 1px solid;
  box-shadow: 0 0 6px 1px #39a4ca96;
  text-shadow: var(--hero-text-shadow);
  transition: all 0.3s ease;
  color: #fff;
}

.btn-hero-calc:hover,
.btn-hero-calc:focus,
.btn-hero-calc:active {
  background: #1f4a6b;
  border-color: #5abcdf;
  box-shadow: 0 0 12px 2px #39a4ca;
  color: #fff;
}

.btn-hero-more {
  background: #2f1241c7;
  border: #6f39ca 1px solid;
  box-shadow: 0 0 6px 1px #9239ca96;
  text-shadow: var(--hero-text-shadow);
  transition: all 0.3s ease;
  color: #fff;
}

.btn-hero-more:hover,
.btn-hero-more:focus,
.btn-hero-more:active {
  background: #4a1f66;
  border-color: #8a4fd1;
  box-shadow: 0 0 12px 2px #9239ca;
  color: #fff;
}

.hero-container {
  display: flex;
  flex-direction: column;
  gap: 10vh;
}