/* Expandable Rows Widget Styles */
.amsha-expandable-rows {
  width: 100%;
  margin: 0 auto;
  --animation-duration: 400ms;
  --default-image-height: 104.6666259765625px;
  --expanded-image-height: 300px;
}

.amsha-rows-container {
  display: flex;
  width: 100%;
  gap: 24px;
  align-items: flex-start;
}

.amsha-rows-left {
  width: 681px;
  flex-shrink: 0;
}

.amsha-rows-right {
  width: 100%;
  flex-shrink: 1;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.amsha-row-item {
  position: relative;
  min-height: 150px !important;
  padding: 20px 0;
  display: flex;
  border-bottom: 1px solid #e0e0e0;
  cursor: pointer;
  transition:
    border-bottom-color var(--animation-duration, 400ms) ease,
    border-bottom-width var(--animation-duration, 400ms) ease;
}

.amsha-row-item.active {
  min-height: 200px !important;
}

.amsha-row-item:last-child {
  border-bottom: none;
}

.amsha-row-item.active {
  border-bottom: 1px solid #2e3791;
}

.amsha-row-link {
  display: flex;
  align-items: center;
  gap: 38px;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.amsha-row-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.amsha-row-icon i,
.amsha-row-icon svg {
  font-size: 32px;
  width: 32px;
  height: 32px;
  color: inherit;
}

.amsha-row-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.amsha-row-title {
  margin: 0;
  font-size: 32px;
  font-weight: 500;
  color: #231f20;
  line-height: 30px;
  transition: color var(--animation-duration, 400ms) ease;
}

.amsha-row-description {
  margin: 0;
  font-size: 16px;
  color: #231f20;
  line-height: 24px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition:
    opacity var(--animation-duration, 400ms) ease,
    max-height var(--animation-duration, 400ms) ease,
    margin-top var(--animation-duration, 400ms) ease;
}

.amsha-row-item.active .amsha-row-description {
  opacity: 1;
  max-height: 200px;
  margin-top: 8px;
}

.amsha-row-image-mb img {
  display: none;
}

.amsha-row-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.amsha-row-arrow img {
  object-fit: contain;
  transition: opacity var(--animation-duration, 400ms) ease;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.amsha-arrow-default {
  opacity: 0.1;
  width: 26px;
  height: 26px;
}

.amsha-arrow-active {
  opacity: 0;
  width: 36px;
  height: 36px;
}

.amsha-row-item.active .amsha-arrow-default {
  opacity: 0;
}

.amsha-row-item.active .amsha-arrow-active {
  opacity: 1;
}

/* Right Side Images */
.amsha-row-image {
  width: 100%;
  height: var(--default-image-height, 104.6666259765625px);
  overflow: hidden;
  transition: height var(--animation-duration, 400ms)
    cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border-radius: 8px;
  margin-bottom: 10px;
}

.amsha-row-image:last-child {
  margin-bottom: 0;
}

.amsha-row-image img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

.amsha-row-image.active {
  height: var(--expanded-image-height, 300px);
}

/* Hover Effects */
.amsha-row-item:hover {
  border-bottom-color: #2e3791;
}

.amsha-row-item:hover .amsha-row-title {
  color: #2e3791;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .amsha-rows-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .amsha-row-link {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
  }

  .amsha-row-arrow {
    position: absolute;
    top: 0;
    right: 0;
  }

  .amsha-row-title {
    font-size: 24px;
  }

  .amsha-row-description {
    font-size: 16px;
  }

  .amsha-row-image {
    position: relative;
  }

  .amsha-row-image:not(.active) {
    display: block;
    opacity: 0.3;
    height: var(--default-image-height, 104.6666259765625px);
  }
}

@media (max-width: 768px) {
  .amsha-rows-container {
    flex-direction: column;
  }

  .amsha-rows-left {
    width: 100% !important;
  }

  .amsha-rows-right {
    display: none;
    width: 100% !important;
  }

  .amsha-row-item {
    padding: 15px 0;
    min-height: 80px;
  }

  .amsha-row-link {
    gap: 24px;
  }

  .amsha-row-icon {
    width: 32px;
    height: 32px;
  }

  .amsha-row-icon i,
  .amsha-row-icon svg {
    font-size: 32px;
    width: 32px;
    height: auto;
  }

  .amsha-row-title {
    font-size: 20px;
  }

  .amsha-row-item.active .amsha-row-image-mb img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
  }

  .amsha-row-arrow {
    width: 22px;
    height: 22px;
  }

  .amsha-arrow-active {
    width: 30px;
    height: 30px;
  }
}
