/* assets/css/description.css - Description Section Styles */

.description-section {
  background-color: #f6f8fa;
  padding: 2rem 1.5rem;
  margin-top: 2rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border-radius: 1rem;
  transition: all 0.5s ease-in-out;
}

.bg-section {
  background-color: #f6f8fa;
}

/* Description Row */
.description-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  /* margin-top: 1.25rem; */
}

@media (min-width: 768px) {
  .description-row {
    flex-direction: row;
  }
}

/* Image Container */
.description-image-container {
  width: 100%;
  position: relative;
}

@media (min-width: 768px) {
  .description-image-container {
    width: 50%;
  }
}

/* Image Wrapper */
.description-image-wrapper {
  position: relative;
  width: 100%;
  min-height: 250px;
  aspect-ratio: 4 / 2.2;
  overflow: hidden;
  border-radius: 1.5rem;
}

@media (min-width: 768px) {
  .description-image-wrapper {
    min-height: 250px;
  }
}

/* Desktop/Mobile Image Toggle */
.desktop-image {
  display: none;
}

@media (min-width: 768px) {
  .desktop-image {
    display: block;
  }

  .mobile-image {
    display: none;
  }
}

@media (max-width: 767px) {
  .mobile-image {
    display: block;
  }
}

/* Image Styles */
.description-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.5rem;
  transition: transform 0.5s ease-in-out;
}

.description-image:hover {
  transform: scale(1.1);
}

/* Text Container */
.description-text-container {
  width: 100%;
  font-size: 12px;
  line-height: 1.75;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .description-text-container {
    width: 50%;
  }
}

@media (min-width: 1024px) {
  .description-text-container {
    font-size: 16px;
  }
}

.description-text-container p {
  margin: 0;
  text-align: justify;
}

/* Remaining Text Container (Expandable) */
.remaining-text-container {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
  font-size: 12px;
  line-height: 1.75;
}

@media (min-width: 768px) {
  .remaining-text-container {
    margin-top: 0.5rem;
  }
}

@media (min-width: 1024px) {
  .remaining-text-container {
    font-size: 16px;
  }
}

.remaining-text-container p {
  margin: 0.5rem 0;
  text-align: justify;
}

/* Toggle Button Container */
.toggle-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
  gap: 1.25rem;
}

/* Chevron Icons */
.chevron-icon {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

/* Show More Button */
.show-more-btn {
  padding: 0.875rem 3rem;
  border-radius: 1rem;
  color: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  border: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .show-more-btn {
    font-size: 16px;
  }
}

.show-more-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.show-more-btn:active {
  transform: scale(0.98);
}

/* Text toggle */
.show-more-text,
.show-less-text {
  display: inline;
}
