#panels {
  margin: 0;
  padding: 0;
}

#panels #panels-container {
  height: 100vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  padding: 0;
  overflow: hidden;
}

#panels #panels-container .panel {
  position: relative;
  width: 100%;
  min-width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  color: #333;
  text-align: left;
  background-color: transparent;
  margin: 0;
  padding: 0;
}

.slide-content {
  background-color: #4f7136;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
}

.slide-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
}

.slide-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  pointer-events: none;
  border-radius: 8px;
}

.slide-title {
  position: relative;
  z-index: 10;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  color: white;
  text-transform: uppercase;
  width: 90%;
  text-align: center;
}

.slide-description-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  width: 100%;
  padding: 0px;
}

.slide-description {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: white;
  width: 100%;
  text-align: center;
  max-width: 650px;
}

.slide-button {
  border: 0.5px solid white;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 5px 10px;
  width: 200px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.slide-button:hover {
  background-color: #85bb51;
  transform: translateY(-8px);
  transition: 0.4s;
}
.slide-button {
  transition: 0.3s;
}

.slide-button-text {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.33;
  color: white;
  letter-spacing: -0.5px;
}

.slide-button-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.scrollx-progress {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 256px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 9999px;
  overflow: hidden;
}

.scrollx-progress-bar {
  height: 100%;
  background: linear-gradient(to right, #06b6d4, #14b8a6);
  transform-origin: left;
  transition: transform 0.1s ease-out;
}

.slide-inner-description-container {
  padding: 0 5%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.slide-inner-image-container {
  position: absolute;
  right: 0;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 5%;
  max-width: 85%;
}

.scrollx-progress {
  position: absolute;
  bottom: 32px;
  left: 15%;
  width: 256px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 9999px;
  overflow: hidden;
}

.scrollx-progress-bar {
  height: 100%;
  background: linear-gradient(to right, #06b6d4, #14b8a6);
  transform-origin: left;
  transition: transform 0.1s ease-out;
}

@media (min-width: 1440px) and (max-width: 1599px) {
  .slide-description {
    max-width: 500px;
  }
  .slide-title {
    font-size: 45px !important;
  }
}

@media (min-width: 1366px) and (max-width: 1439px) {
  .slide-inner-description-container {
    max-width: 80%;
  }
  .slide-title {
    font-size: 42px !important;
  }
}

@media (min-width: 1280px) and (max-width: 1365px) {
  .slide-inner-description-container {
    max-width: 85%;
  }
  .slide-title {
    font-size: 40px !important;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .slide-inner-description-container {
    max-width: 480px;
  }
  .slide-title {
    font-size: 32px !important;
  }
}

/* Mobile - Vertical Layout (Image Top, Description Bottom) */
@media (max-width: 767px) {
  .slide-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 0px;
    padding: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
  }

  .slide-image-container {
    width: 100%;
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
  }

  .slide-description-container {
    width: 100%;
    height: 50%;
    gap: 16px;
    align-items: center;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
  }

  .slide-inner-description-container {
    max-width: 600px;
    padding: 0;
    align-items: center;
  }

  .slide-title {
    font-family: "DM Sans", Sans-serif;
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1em;
    letter-spacing: 0px;
    width: 100%;
    text-align: center;
  }

  .slide-description {
    font-family: "DM Sans", Sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5em;
    text-align: center;
  }

  .slide-button {
    padding: 5px 10px;
    border-radius: 30px;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    width: 200px;
    gap: 16px;
  }

  .slide-button p {
    margin-bottom: 0px !important;
  }

  .slide-button-text {
    font-family: "DM Sans", Sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.33em;
  }

  .slide-button-arrow {
    width: 18px;
    height: 18px;
  }

  .slide-button svg {
    width: 22px;
    height: 23px;
  }

  .slide-image {
    height: 100% !important;
  }

  .slide-inner-image-container {
    position: absolute;
    right: auto;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    max-width: 100%;
  }
}

@media (max-width: 639px) {
  .slide-inner-description-container {
    max-width: 400px;
  }
}

@media (max-width: 479px) {
  .slide-title {
    font-size: 28px;
    margin-left: -12px;
  }
  .slide-inner-description-container {
    max-width: 320px;
  }
}

/* Tablet - Vertical Layout (Image Top, Description Bottom) */
@media (min-width: 768px) and (max-width: 1023px) {
  .slide-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 0px;
    padding: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
  }

  .slide-image-container {
    width: 100%;
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
  }

  .slide-description-container {
    width: 100%;
    height: 50%;
    gap: 18px;
    align-items: center;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
  }

  .slide-inner-description-container {
    max-width: 700px;
    padding: 0;
    align-items: center;
  }

  .slide-title {
    font-family: "DM Sans", Sans-serif;
    font-size: 42px;
    font-weight: 700;
    text-transform: uppercase;
    width: 100%;
    text-align: center;
  }

  .slide-description {
    font-family: "DM Sans", Sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4em;
    text-align: center;
  }

  .slide-button {
    padding: 8px 21px 8px 21px;
    border-radius: 30px;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    width: 225px;
    gap: 14px;
  }

  .slide-button p {
    margin-bottom: 0px !important;
  }

  .slide-button-text {
    font-family: "DM Sans", Sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4em;
  }

  .slide-button-arrow {
    width: 20px;
    height: 21px;
  }

  .slide-image {
    border-radius: 8px;
  }

  .slide-inner-image-container {
    position: absolute;
    right: auto;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    max-width: 100%;
  }
}

/* Large Desktop - 50-50 split */
@media (min-width: 1024px) {
  .slide-content {
    display: grid !important;
    grid-template-columns: 50% 50% !important;
    grid-template-rows: 100%;
    gap: 0px;
    padding: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
  }

  .slide-image-container {
    grid-column: 1;
    height: 100%;
    width: 100%;
    max-width: 100%;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
  }

  .slide-description-container {
    grid-column: 2;
    width: 100%;
    max-width: 100%;
    height: 100%;
    gap: 18px;
    align-items: flex-start;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
  }

  .slide-title {
    font-family: "DM Sans", Sans-serif;
    font-size: 54px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -1px;
    width: 100%;
    text-align: right;
  }

  .slide-description {
    font-family: "DM Sans", Sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4em;
    text-align: left;
  }

  .slide-button {
    padding: 8px 21px 8px 21px;
    border-radius: 30px;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    width: 240px;
    gap: 15px;
  }

  .slide-button p {
    margin-bottom: 0px !important;
  }

  .slide-button-text {
    font-family: "DM Sans", Sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4em;
  }

  .slide-button-arrow {
    width: 20px;
    height: 21px;
  }

  .slide-button svg {
    width: 30px;
    height: 30px;
  }

  .slide-image {
    border-radius: 0;
  }
}

/* Image overlay and styling for both breakpoints */
@media (min-width: 768px) {
  .slide-image-container {
    position: relative;
    overflow: hidden;
  }
  .slide-image-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
  }

  .slide-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}