.rewell-industry {
  position: relative;
  font-family: Figtree, sans-serif;
}

.rewell-industry-triangle {
  position: absolute;
  bottom: -2px;
  right: 0;
  width: clamp(12.5rem, 6.25rem + 25vw, 28.125rem);
  height: clamp(12.5rem, 6.25rem + 25vw, 28.125rem);
  clip-path: polygon(100% 100%, 0 100%, 100% 0);
  background-color: #ffffff;
  pointer-events: none;
  z-index: 1;
}

.rewell-industry.alignfull {
  background-color: transparent;
  padding: 0;
}

.rewell-industry.alignfull> :where(:not(.alignfull)) {
  padding-left: 0;
  padding-right: 0;
}

.industry-main-title {

  color: #000;
  font-size: clamp(24px, 1.5rem + 0.4rem, 28px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  padding: 30px 66px 30px;
  margin: 0;
}

.industry-tabs {
  display: flex;
  flex-direction: column;
}

.industry-item {
  width: 100%;
  transition: background-color 0.3s;
}

.industry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 30px 66px 30px;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.industry-trigger {
  position: relative;
}

.industry-header-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.industry-subtitle {
  display: none;
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  margin-top: 4px;
}

.industry-item.is-active .industry-subtitle {
  display: block;
}

.industry-title {
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  color: #ebeae6;
  transition: color 0.3s;
}

.industry-item.is-active .industry-title {
  color: #c9d2a0;
}

.industry-arrow {
  display: block;
  width: 12px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='22' viewBox='0 0 12 22'%3E%3Cpath d='M0 -0.000272751L11.2856 10.7471L0 21.4961Z' fill='%23C9D2A0'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  transform: rotate(90deg);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
}

.industry-item.is-active .industry-arrow {
  transform: rotate(-90deg);
}

.industry-panel-mobile {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s ease-in-out;
}

.panel-inner {
  background-color: #202224;
}

.panel-image-wrap {
  position: relative;
  width: 100%;
}

.panel-image-wrap::after,
.industry-desktop-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: RGBA(0, 0, 0, 0.07);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.54) 0%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

.panel-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.panel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px;
  color: #fff;
  pointer-events: none;
  z-index: 2;
}

.panel-overlay-text {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  max-width: 80%;
}

.industry-desktop-panel {
  pointer-events: none;
}

.industry-desktop-panel.opacity-100 {
  pointer-events: auto;
}





@media (max-width: 767px) {
  .industry-item {
    background-color: #5D5E5E;
    border-bottom: 1px solid #c9d2a0;
  }

  .industry-item:first-child {
    border-top: none;
  }

  .industry-item.is-active {
    background-color: #202224;
  }

  .industry-title {
    color: #ebeae6;
  }

  .industry-item.is-active .industry-title {
    color: #c9d2a0;
    font-size: 20px;
  }

  .industry-item.is-active .industry-subtitle {
    font-size: 17px;
    line-height: 21px;
    margin-top: 21px;
  }

  .panel-overlay-text {
    font-size: 14px;
  }
}

@media (min-width: 768px) {
  .industry-trigger {
    position: relative;
    background-color: rgba(32, 34, 36, 0.7);
    border-bottom: 1px solid #c9d2a0;
  }

  .industry-item:last-child .industry-trigger {
    border-bottom: none;
  }

  .industry-item.is-active .industry-trigger {
    background-color: rgba(32, 34, 36, 1);
  }

  .industry-item.is-active .industry-trigger::after {
    content: '';
    position: absolute;
    top: 0;
    right: -80px;
    width: 80px;
    height: 100%;
    background-color: #202224;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    pointer-events: none;
  }

  .industry-header {
    padding: 40px 30px 40px 100px;
  }

  .industry-arrow {
    display: none;
  }

  .industry-panel-mobile {
    display: none;
  }

  .industry-left {
    justify-content: space-between;
  }

  .industry-title {
    font-size: 32px;
  }

  .industry-main-title {
    font-size: 45px;
    padding: 80px 100px 40px;
  }
}


@media (min-width:768px) and (max-width:830px) {

  .industry-main-title {
    padding: 80px 80px 40px;
  }

  .industry-header {
    padding: 40px 30px 40px 80px;
  }
}


@media (min-width: 768px) and (max-width: 1024px) {
  .industry-main-title {
    font-size: 33px;
  }

  .industry-title {
    font-size: 24px;
  }

  .industry-subtitle {
    font-size: 18px;
    line-height: 22px;
    margin-top: 22px;
  }

  .panel-overlay-text {
    font-size: 16px;
  }


}

@media (min-width: 1025px) {
  .industry-subtitle {
    font-size: 20px;
    line-height: 25px;
    margin-top: 25px;
  }

  .industry-main-title {
    font-size: 38px;
    padding: 80px 120px 40px;
  }

  .industry-header {
    padding: 40px 30px 40px 120px;
  }
}

@media (min-width: 1225px) {
  .industry-main-title {
    font-size: 45px;
  }
}