/* ==========================================================================
   Solution Page Component Styles (.solution-page)
   Methodology: BEM (Block Element Modifier)
   Clean, Responsive, Modular & Highly Reusable
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero Banner (.solution-hero)
   -------------------------------------------------------------------------- */
.solution-hero {
  position: relative;
  height: 680px;
  background-color: #0d1b36;
  padding: 80px 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.solution-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.solution-hero__bg picture {
  display: block;
  width: 100%;
  height: 100%;
}

.solution-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.solution-hero__container {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.solution-hero__breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.solution-hero__breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.solution-hero__breadcrumb-link:hover {
  color: #ffffff;
}

.solution-hero__breadcrumb-sep {
  color: rgba(255, 255, 255, 0.4);
}

.solution-hero__breadcrumb-current {
  color: #ffffff;
}

.solution-hero__content {
  max-width: 860px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.solution-hero__tagline {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.solution-hero__title {
  font-family: var(--font-primary);
  font-size: clamp(28px, 3.8vw, 56px);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.18;
  margin: 0;
  letter-spacing: -0.01em;
}

.solution-hero__desc {
  font-family: var(--font-primary);
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
  max-width: 720px;
  margin: 0;
}

.solution-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.solution-hero__btn {
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.solution-hero__btn--light {
  background-color: #ffffff;
  color: var(--color-primary, #1a56db);
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.solution-hero__btn--light:hover {
  background-color: #f0f5ff;
  color: var(--color-primary-hover, #083d7c);
  border-color: var(--color-primary, #1a56db);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* --------------------------------------------------------------------------
   2. Industry Applications Section (.solution-apps)
   Layout: 3 rows x 2 cards with alternating image/content alignment
   -------------------------------------------------------------------------- */
.solution-apps {
  width: 100%;
  background-color: #f8fafb;
  padding: 80px 0;
}

.solution-apps__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 100%;
  gap: 0 !important;
}

.solution-apps__card {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  gap: 0 !important;
}

/* Gentle & smooth reveal animation for Solution Apps */
.solution-apps [data-reveal="fade-up"],
.solution-apps__card[data-reveal="fade-up"] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
  backface-visibility: hidden;
}

.solution-apps [data-reveal="fade-up"].is-revealed,
.solution-apps__card[data-reveal="fade-up"].is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.solution-apps__card--reverse {
  flex-direction: row-reverse;
}

.solution-apps__content {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  justify-content: center;
  padding: 50px 30px;
  background-color: #fff;
}

/* Hàng 1 & Hàng 3: Text căn phải */
.solution-apps__content--right,
.solution-apps__card--row-1 .solution-apps__content,
.solution-apps__card--row-3 .solution-apps__content,
.solution-apps__card:nth-child(1) .solution-apps__content,
.solution-apps__card:nth-child(2) .solution-apps__content,
.solution-apps__card:nth-child(5) .solution-apps__content,
.solution-apps__card:nth-child(6) .solution-apps__content {
  text-align: right;
  align-items: flex-end;
}

.solution-apps__content--right .solution-apps__card-title,
.solution-apps__content--right .solution-apps__card-desc,
.solution-apps__card--row-1 .solution-apps__card-title,
.solution-apps__card--row-1 .solution-apps__card-desc,
.solution-apps__card--row-3 .solution-apps__card-title,
.solution-apps__card--row-3 .solution-apps__card-desc {
  text-align: right;
}

/* Hàng 2: Text căn trái */
.solution-apps__content--left,
.solution-apps__card--row-2 .solution-apps__content,
.solution-apps__card:nth-child(3) .solution-apps__content,
.solution-apps__card:nth-child(4) .solution-apps__content {
  text-align: left;
  align-items: flex-start;
}

.solution-apps__content--left .solution-apps__card-title,
.solution-apps__content--left .solution-apps__card-desc,
.solution-apps__card--row-2 .solution-apps__card-title,
.solution-apps__card--row-2 .solution-apps__card-desc {
  text-align: left;
}

.solution-apps__card-title {
  font-family: var(--font-primary);
  font-size: clamp(18px, 1.35vw, 22px);
  font-weight: 700;
  color: #0d1b36;
  line-height: 1.35;
  margin: 0;
  transition: color 0.25s ease;
}

.solution-apps__card-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.solution-apps__card:hover .solution-apps__card-title,
.solution-apps__card-link:hover {
  color: var(--color-primary, #1a56db);
}

.solution-apps__card-subtitle {
  font-weight: 600;
  font-size: 0.9em;
  color: #4b5563;
  margin-left: 4px;
}

.solution-apps__card-desc {
  font-family: var(--font-primary);
  font-size: 14.5px;
  font-weight: 400;
  color: #4b5563;
  line-height: 1.65;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.solution-apps__media {
  flex: 1 1 50%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: block;
  position: relative;
  border-radius: 0 !important;
}

.solution-apps__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0 !important;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.solution-apps__card:hover .solution-apps__img {
  transform: scale(1.05);
}

/* Responsive adjustments for .solution-apps */
@media (max-width: 1024px) {
  .solution-apps__grid {
    gap: 36px 28px;
  }
  .solution-apps__card {
    gap: 20px;
  }
  .solution-apps__card-title {
    font-size: 18px;
  }
  .solution-apps__card-desc {
    font-size: 14px;
  }
}

@media (max-width: 860px) {
  .solution-apps__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .solution-apps__content {
    flex: 1 1 55%;
  }
  .solution-apps__media {
    flex: 1 1 45%;
    max-height: 260px;
  }
}

@media (max-width: 576px) {
  .solution-apps {
    padding: 50px 0;
    overflow: hidden;
    max-width: 100vw;
  }
  .solution-apps__grid {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .solution-apps__card,
  .solution-apps__card--reverse {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .solution-apps__media {
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
    aspect-ratio: 16 / 10;
    max-height: 220px;
  }
  .solution-apps__content,
  .solution-apps__content--right,
  .solution-apps__content--left {
    width: 100%;
    max-width: 100%;
    padding: 24px 16px;
    text-align: left;
    align-items: flex-start;
    box-sizing: border-box;
  }
  .solution-apps__content--right .solution-apps__card-title,
  .solution-apps__content--right .solution-apps__card-desc {
    text-align: left;
  }
}

/* --------------------------------------------------------------------------
   3. PolyViet Approach Section (.solution-approach)
   -------------------------------------------------------------------------- */
.solution-approach {
  width: 100%;
  background-color: #ffffff;
}

.solution-approach__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
}

.solution-approach__card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.solution-approach__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(13, 27, 54, 0.08);
  border-color: var(--color-primary, #1a56db);
  transition: all 0.3s;
}

.solution-approach__card:hover .solution-approach__icon-box svg path {
  stroke: #fff;
}

.solution-approach__icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background-color: #ebf2ff;
  color: var(--color-primary, #1a56db);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    color 0.3s ease;
}

.solution-approach__card:hover .solution-approach__icon-box {
  transform: scale(1.1);
  background-color: var(--color-primary, #1a56db);
  color: #ffffff;
}

.solution-approach__card-title {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 700;
  color: #0d1b36;
  line-height: 1.35;
  margin: 0;
}

.solution-approach__card-desc {
  font-family: var(--font-primary);
  font-weight: 500;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.solution-approach__card-footer {
  padding-top: 14px;
  border-top: 1px dashed #e5e7eb;
}

.solution-approach__card-badge {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary, #1a56db);
  line-height: 1.4;
  display: inline-block;
}

/* --------------------------------------------------------------------------
   4. Resin Selection Section (.solution-materials)
   -------------------------------------------------------------------------- */
.solution-materials {
  width: 100%;
}

.solution-materials__table-wrap {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(13, 27, 54, 0.04);
  margin-bottom: 32px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.solution-table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
  text-align: left;
}

.solution-table__head {
  background-color: #0d1b36;
}

.solution-table__th {
  padding: 20px 24px;
  color: #ffffff;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border: none;
  white-space: nowrap;
}

.solution-table__th--req {
  width: 25%;
}

.solution-table__th--crit {
  width: 35%;
}

.solution-table__th--grade {
  width: 18%;
}

.solution-table__th--app {
  width: 22%;
}

.solution-table__row {
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.2s ease;
}

.solution-table__row:last-child {
  border-bottom: none;
}

.solution-table__row:hover {
  background-color: #f8fafc;
}

.solution-table__td {
  padding: 22px 24px;
  font-family: var(--font-primary);
  vertical-align: middle;
}

.solution-table__cell-title strong {
  font-weight: 600;
  color: #0d1b36;
}

.solution-table__cell-criteria {
  color: #64748b;
  font-weight: 500;
  line-height: 1.5;
}

.solution-table__cell-resins {
  white-space: nowrap;
}

.solution-table__badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background-color: #ebf2ff;
  color: var(--color-primary, #1a56db);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 14px;
  border-radius: 6px;
}

.solution-table__cell-apps {
  color: #374151;
  font-weight: 500;
  line-height: 1.5;
}

.solution-materials__callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.solution-materials__callout-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.solution-materials__callout-title {
  font-size: 18px;
  font-weight: 700;
  color: #0d1b36;
  margin: 0;
}

.solution-materials__callout-desc {
  font-weight: 500;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

.solution-materials__callout-action {
  white-space: nowrap;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   5. Haitian Machinery Section (.solution-machinery)
   -------------------------------------------------------------------------- */
.solution-machinery {
  width: 100%;
  background-color: #ffffff;
}

.solution-machinery__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}

.solution-machinery__media {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.solution-machinery__img-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(13, 27, 54, 0.08);
  background-color: #f1f5f9;
  aspect-ratio: 16 / 10;
}

.solution-machinery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.solution-machinery__media:hover .solution-machinery__img {
  transform: scale(1.04);
}

.solution-machinery__caption {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  margin: 0;
}

.solution-machinery__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.solution-machinery__content .section-header {
  margin-bottom: 0;
}

.solution-machinery__checklist {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.solution-machinery__check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.solution-machinery__check-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background-color: #ebf2ff;
  color: var(--color-primary, #1a56db);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.solution-machinery__check-text {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 500;
  color: #475569;
  line-height: 1.6;
}

.solution-machinery__action {
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   6. Technical Consulting Section (.solution-consulting)
   -------------------------------------------------------------------------- */
.solution-consulting {
  width: 100%;
}

.solution-consulting__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.solution-consulting__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.solution-consulting__content .section-header {
  margin-bottom: 0;
}

.solution-consulting__checklist {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.solution-consulting__check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.solution-consulting__check-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background-color: #ebf2ff;
  color: var(--color-primary, #1a56db);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.solution-consulting__check-text {
  font-family: var(--font-primary);
  font-weight: 500;
  color: #475569;
  line-height: 1.6;
}

.solution-consulting__tip-box {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.solution-consulting__tip-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.solution-consulting__tip-title {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 700;
  color: #0d1b36;
  margin: 0;
}

.solution-consulting__tip-desc {
  font-family: var(--font-primary);
  font-weight: 500;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

.solution-consulting__media {
  display: flex;
  flex-direction: column;
}

.solution-consulting__img-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(13, 27, 54, 0.08);
  background-color: #f1f5f9;
  aspect-ratio: 16 / 10;
}

.solution-consulting__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.solution-consulting__media:hover .solution-consulting__img {
  transform: scale(1.04);
}

/* --------------------------------------------------------------------------
   7. FAQ Accordion Section (.solution-faq)
   -------------------------------------------------------------------------- */
.solution-faq {
  width: 100%;
  background-color: #ffffff;
}

.solution-faq__grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 64px;
  align-items: flex-start;
}

.solution-faq__intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.solution-faq__intro .section-header {
  margin-bottom: 0;
}

.solution-faq__note {
  font-family: var(--font-primary);
  font-weight: 500;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

.solution-faq__action {
  margin-top: 4px;
}

.solution-faq__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.solution-faq__item {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.solution-faq__item.is-active {
  background-color: #f8fafd;
  border-color: #cddeff;
  box-shadow: 0 6px 20px rgba(26, 86, 219, 0.06);
}

.solution-faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: none;
  font: inherit;
}

.solution-faq__question-text {
  font-family: var(--font-primary);
  font-weight: 600;
  color: #0d1b36;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.solution-faq__item.is-active .solution-faq__question-text {
  color: var(--color-primary, #1a56db);
}

.solution-faq__icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background-color: #ebf2ff;
  color: var(--color-primary, #1a56db);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

.solution-faq__item.is-active .solution-faq__icon {
  background-color: var(--color-primary, #1a56db);
  color: #ffffff;
}

.solution-faq__answer {
  padding: 0 24px 22px 24px;
  font-family: var(--font-primary);
  font-weight: 500;
  color: #374151;
  line-height: 1.65;
  display: none;
}

.solution-faq__answer p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   7. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .solution-approach__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .solution-machinery__grid,
  .solution-consulting__grid {
    gap: 40px;
  }

  .solution-faq__grid {
    grid-template-columns: 360px 1fr;
    gap: 40px;
  }
}

@media (max-width: 992px) {
  .solution-machinery__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .solution-consulting__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .solution-consulting__media {
    order: 2;
  }

  .solution-consulting__content {
    order: 1;
  }

  .solution-faq__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .solution-hero {
    min-height: auto;
    padding: 60px 0;
  }

  .solution-materials__callout {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .solution-materials__callout-action {
    width: 100%;
  }

  .solution-materials__callout-action .btn {
    width: 100%;
  }

  .solution-faq__question {
    padding: 18px 20px;
  }

  .solution-faq__answer {
    padding: 0 20px 18px 20px;
  }
}

@media (max-width: 640px) {
  .solution-approach__grid {
    grid-template-columns: 1fr;
  }

  .solution-hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .solution-hero__btn {
    width: 100%;
    justify-content: center;
  }

  .solution-table__th,
  .solution-table__td {
    padding: 16px 18px;
  }
}
