/**
 * Highlight Section Styles
 * Modern responsive layout with image highlights
 */

/* --- Bố cục Section chính --- */
.highlight-section {
  padding-top: 2rem; /* py-16 */
  padding-bottom: 2rem; /* py-16 */
}

/* --- Bố cục Grid chính (Mobile-first) --- */
.highlight-section__container {
  display: grid;
  grid-template-columns: 1fr; /* Mặc định 1 cột */
  gap: 1rem; /* gap-12 */
  align-items: flex-start; /* items-start */
}

/* --- Nội dung chính (chữ) --- */
.highlight-section__content {
  align-items: center;
  background-color: #f4f4f4;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.75rem 1rem;
  text-align: center;
  height: 100%;
  order: 1;
}

.highlight-section__title {
  font-size: 1.5rem; /* text-3xl sm:text-4xl */
  font-weight: 700; /* font-bold */
  letter-spacing: -0.025em;
}

.highlight-section__description p {
  font-size: 1rem; /* text-lg */
  color: var(--tp-gray-500);
}

.highlight-section__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.8rem;
  border-radius: 40px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border: 1px solid var(--primary-color);
  white-space: nowrap;
  user-select: none;
}

.highlight-section__button:hover {
  background-color: var(--primary-color);
  color: white;
}

/* --- Thư viện ảnh --- */
.highlight-section__gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* grid-cols-2 */
  gap: 1rem; /* gap-4 */
}

/* --- Item hình ảnh --- */
.highlight-section__item {
  display: block;
  text-decoration: none;
}

/* --- Container cho image với overflow hidden --- */
.highlight-section__image-container {
  position: relative;
  border-radius: 5px; /* rounded-xl */
  overflow: hidden; /* Giới hạn zoom trong container này */
  background: #f5f5f5;
}

.highlight-section__image {
  width: 100%;
  aspect-ratio: 1 / 1; /* aspect-square */
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
  display: block;
}

/* Zoom effect chỉ trong image container */
.highlight-section__item:hover .highlight-section__image {
  transform: scale(1.05); /* group-hover:scale-105 */
}

/* Play icon for video */
.highlight-section__play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #333;
  pointer-events: none;
}

.highlight-section__play-icon::after {
  content: "▶";
  margin-left: 3px;
}

.highlight-section__caption-wrapper {
  font-size: 1rem;
  padding-top: 0.75rem; /* p-3 */
  text-align: center;
}

.highlight-section__caption {
  font-size: 0.875rem; /* text-base */
  font-weight: 500; /* font-medium */
  color: var(--text-primary); /* text-gray-800 */
  margin-bottom: 0px;
  letter-spacing: normal;
}
.highlight-section__gallery--left {
  order: 2;
}
.highlight-section__gallery--right {
  order: 3;
}

/* --- Bố cục cho Desktop (Responsive Ordering) --- */
@media (min-width: 1024px) {
  .highlight-section__container {
    grid-template-columns: repeat(3, 1fr); /* lg:grid-cols-3 */
  }

  /* Thay đổi thứ tự các cột trên desktop */
  .highlight-section__gallery--left {
    order: 1; /* lg:order-1 */
  }
  .highlight-section__content {
    order: 2; /* lg:order-2 */
  }
  .highlight-section__gallery--right {
    order: 3; /* lg:order-3 */
  }
}