/* Background color for the data sources section */
.bg-light-gray {
    background-color: #f8f8f8;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

.bg-colorBlue {
    background-color: #1E3A8A;
}

.use-case-description {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.use-case-item.active .use-case-description {
    max-height: 500px; /* Set to a high value to ensure full expansion */
    opacity: 1;
}

.arrow-icon {
    transition: transform 0.5s ease-in-out;
}

.use-case-item.active .arrow-icon {
    transform: rotate(90deg);
}

#sensors ul {
    margin-top: 1rem;
}

#sensors li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

#sensors li h5 {
    margin-bottom: 0.25rem;
}

#sensors img {
    margin-right: 0.5rem;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.orange-gradient-1 {
  background: radial-gradient(50% 50% at 50% 50%, #ff9831 0%, #fe330a 100%);
  filter: blur(55px);
}

.orange-gradient-2 {
  background: radial-gradient(50% 50% at 50% 50%, #fe330a 0%, #ff9831 100%);
  filter: blur(55px);
}

.blue-gradient-1 {
  background: radial-gradient(50% 50% at 50% 50%, #68CCD0 0%, #5FBACD 100%);
  filter: blur(55px);
}

/* Modal container hidden by default */
#modal-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Modal content box */
#modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 800px; /* Adjust as needed */
    height: 80vh; /* Adjust as needed */
    display: flex;
    flex-direction: column;
    justify-content: center;
	position: relative; /* Ensure positioning context for the close button */
}

/* Typeform embed container */
#typeform-embed {
    flex: 1;
    height: 100%; /* Ensures the embed takes the full height of the modal content */
}

/* Close button */
.close {
    position: absolute;
    top: 10px; /* Adjust distance from the top */
    right: 10px; /* Adjust distance from the right */
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 20px;
    padding: 100px 0;
}

.footer-grid > div {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-grid ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-grid a {
    transition: all 0.3s ease-linear;
}

.footer-grid a:hover {
    color: var(--colorBlue);
}

.blue-gradient-2 {
  background: radial-gradient(50% 50% at 50% 50%, #5FBACD 0%, #68CCD0 100%);
  filter: blur(55px);
}

/* Custom CSS for accordion */
.accordion-item .accordion-header {
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.accordion-header {
  column-gap: 20px;
}

.accordion-header h5 {
  flex: 1;
}

.accordion-header .accordion-icon {
  transition: all 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(-45deg);
}

.accordion-item.active .accordion-icon.is-blue {
  background-color: #321ca4;
}

.accordion-icon.is-blue {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #eaedf0;
}

.accordion-icon.is-blue img:last-child {
  position: absolute;
  opacity: 0;
}

.accordion-item.active .accordion-icon.is-blue img:last-child {
  opacity: 1;
}

.accordion-icon.is-chevron {
  position: relative;
  width: 30px;
  height: 30px;
}

.accordion-icon.is-chevron img:first-child {
  opacity: 1;
}

.accordion-icon.is-chevron img:last-child {
  opacity: 0;
}

.accordion-header .accordion-icon.is-chevron {
  transform: rotate(0deg);
}

.accordion-item.active .accordion-icon.is-chevron img:first-child {
  opacity: 0;
}

.accordion-item.active .accordion-icon.is-chevron img:last-child {
  opacity: 1;
}

.accordion-icon.is-outline-green {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.accordion-icon-plus {
  position: relative;
}

.accordion-icon-plus::before,
.accordion-icon-plus::after {
  position: absolute;
  content: "";
  background: #fff;
  transition: all 0.5s ease;
  width: 20px;
  height: 1px;
  top: 0px;
  left: -10px;
}

.accordion-icon-plus::after {
  transform: rotate(90deg);
}

.accordion-item.active .accordion-icon.is-outline-green {
  border-color: #39ff14;
  transform: rotate(0);
}

.accordion-item.active .accordion-icon.is-outline-green .accordion-icon-plus::before {
  background: #39ff14;
}

.accordion-item.active .accordion-icon.is-outline-green .accordion-icon-plus::after {
  transform: rotate(0deg);
  opacity: 0;
}

.accordion-content {
  height: 0px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}

.accordion-item.active .accordion-content {
  height: auto;
  transition: all 0.5s ease;
  opacity: 1;
  transform: translateY(0px);
  margin-top: 15px;

}

.accordion-item.is-2:has(.active),
.accordion-item.is-3:has(.active) {
  border: none;
  box-shadow: 0px 4px 60px 0px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
}

.footer-text-slider {
  animation: horizontal-slide-from-right-to-left 10s linear infinite normal forwards;
}

.horizontal-slide-from-right-to-left {
  animation: horizontal-slide-from-right-to-left linear 10s infinite;
}

.horizontal-slide-from-left-to-right {
  animation: horizontal-slide-from-left-to-right linear 10s infinite;
}

@keyframes horizontal-slide-from-right-to-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes horizontal-slide-from-left-to-right {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

.sticky-menu.nav-hidden {
  animation: fadeInDown 0.9s 1;
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translate3d(0, -100%, 0);
  }

  100% {
    opacity: 1;
    transform: translateZ(0);
  }
}

/* News Section Styles */
.news-slider { width: 100%; }
.news-slider .swiper-slide { 
    display: flex;
    height: auto !important;
}
.news-slider .news-card { 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
    transition: all 0.3s ease-in-out;
    position: relative;
    z-index: 1;
    background: white;
    margin: 5px;
    border-radius: 10px;
    box-shadow: 0 4px 80px rgba(0,0,0,0.08);
    cursor: pointer;
}
.news-slider .news-card:hover {
    transform: translateY(-5px);
}
.news-slider .news-card img { 
    flex-shrink: 0;
    transition: all 0.3s ease-in-out;
}
.news-card-text { 
    flex: 1 1 auto; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    display: -webkit-box; 
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
    transition: all 0.3s ease-in-out;
    line-height: 1.5;
    max-height: 4.5em;
}
.news-card.expanded { 
    transform: translateY(-5px);
    z-index: 1001;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.news-card.expanded .news-card-text { 
    -webkit-line-clamp: unset;
    max-height: none;
}

/* Remove backdrop styles as we don't need them */
.card-backdrop {
    display: none;
}

/* Updated arrow button styles */
.news-slider-prev,
.news-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: #1a1a1a !important; /* Darker background for buttons */
    transition: background-color 0.3s ease;
}

.news-slider-prev:hover,
.news-slider-next:hover {
    background-color: #333333 !important; /* Even darker on hover */
}

.news-slider-prev { left: 1rem; }
.news-slider-next { right: 1rem; }

/* Add styles to maintain consistent height */
.swiper-wrapper {
    align-items: stretch;
}
.swiper-slide {
    height: auto !important;
}

/* Use case styles */
.use-case-item {
    transition: transform 0.3s ease-in-out;
}

.use-case-item:hover {
    transform: translateY(-5px);
}

/* Remove background from news section */
#news-section {
    background-color: white !important;
}

/* What Makes Us Different Section Styles */
#what-makes-us-different {
    background-color: #f3f4f6;
}

#what-makes-us-different article {
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

#what-makes-us-different article:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-4px);
}

/* Data Sources Section Styles */
#data-sources {
    background-color: #f3f4f6;
}

#data-sources article {
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 100%;
}

#data-sources article:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-4px);
}

/* Add border to image containers in data sources section */
#data-sources article .mb-5 {
    border: 1px solid #000;
    border-radius: 8px;
    overflow: hidden;
}

/* Add border to Fluviq device image to make it visually square and consistent */
.fluviq-device-img {
    background-color: #f8f8f8;
    border: 1px solid #000 !important;
    position: relative;
    overflow: hidden;
    height: 180px;
    width: 100%;
}

.fluviq-device-img img {
    object-fit: cover !important;
    width: 100%;
    height: 100%;
}