/* ===== Industry Logistics Section ===== */
.industries-section {
  padding: 3rem 0;
}

@media (min-width: 640px) {
  .industries-section {
    padding: 4rem 0;
  }
}

@media (min-width: 768px) {
  .industries-section {
    padding: 5rem 0;
  }
}

.industries-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .industries-container {
    padding: 0 1.5rem;
  }
}

/* Header */
.industries-header {
  text-align: center;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.industries-header.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 640px) {
  .industries-header {
    margin-bottom: 3.5rem;
  }
}

.industries-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}

@media (min-width: 640px) {
  .industries-title {
    font-size: 1.875rem;
  }
}

@media (min-width: 768px) {
  .industries-title {
    font-size: 2.25rem;
  }
}

.industries-description {
  margin: 0.75rem auto 0;
  max-width: 48rem;
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.6;
}

@media (min-width: 640px) {
  .industries-description {
    margin-top: 1rem;
    font-size: 1rem;
  }
}

/* Grid */
.industries-grid {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .industries-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Card wrapper */
.industry-card-wrapper {
  width: 100%;
  max-width: 24rem;
  height: 100%;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.industry-card-wrapper.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Card */
.industry-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 2px solid #e2e8f0;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.industry-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Header */
.industry-card-header {
  position: relative;
  height: 11rem;
  overflow: hidden;
}

@media (min-width: 640px) {
  .industry-card-header {
    height: 13rem;
  }
}

@media (min-width: 768px) {
  .industry-card-header {
    height: 14rem;
  }
}

.industry-card-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  transition: transform 0.5s ease;
}

.industry-card:hover .industry-card-header::before {
  transform: scale(1.1);
}

/* Gradients */
.gradient-blue {
  background: linear-gradient(to bottom right, #f37021, #0891b2);
}
.gradient-pink {
  background: linear-gradient(to bottom right, #ec4899, #e11d48);
}
.gradient-amber {
  background: linear-gradient(to bottom right, #f59e0b, #ea580c);
}
.gradient-emerald {
  background: linear-gradient(to bottom right, #10b981, #15803d);
}

.industry-card-header-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.05);
  z-index: 1;
}

.industry-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
  transition: transform 0.3s ease;
}

.industry-card:hover .industry-icon {
  transform: scale(1.1);
}

@media (min-width: 640px) {
  .industry-icon {
    top: 1.5rem;
    right: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
  }
}

/* Number badge */
.industry-number {
  position: absolute;
  left: 50%;
  top: 9.5rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  transform: translateX(-50%);
  border-radius: 9999px;
  border: 4px solid #ffffff;
  background: #fff4ea;
  font-size: 1.125rem;
  font-weight: 900;
  color: #d95f17;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.industry-card:hover .industry-number {
  background: #f37021;
  color: #ffffff;
}

@media (min-width: 640px) {
  .industry-number {
    top: 11.5rem;
    width: 4rem;
    height: 4rem;
    font-size: 1.25rem;
  }
}

@media (min-width: 768px) {
  .industry-number {
    top: 12rem;
  }
}

/* Body */
.industry-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 2.5rem 1.25rem 1.25rem;
}

@media (min-width: 640px) {
  .industry-card-body {
    padding: 3rem 1.5rem 1.5rem;
  }
}

.industry-category {
  margin: 0;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #f37021;
}

@media (min-width: 640px) {
  .industry-category {
    font-size: 0.75rem;
  }
}

.industry-card-title {
  margin: 0.5rem 0 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.375;
  color: #0f172a;
}

@media (min-width: 640px) {
  .industry-card-title {
    font-size: 1.125rem;
  }
}

.industry-underline-wrap {
  display: flex;
  justify-content: center;
  margin-top: 0.75rem;
}

@media (min-width: 640px) {
  .industry-underline-wrap {
    margin-top: 1rem;
  }
}

.industry-underline {
  display: block;
  height: 0.25rem;
  width: 2.5rem;
  border-radius: 9999px;
  background: #f37021;
  transition: width 0.3s ease;
}

.industry-card:hover .industry-underline {
  width: 5rem;
}

.industry-card-desc {
  margin: 0.75rem 0 0;
  flex: 1;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.625;
  color: #475569;
}

@media (min-width: 640px) {
  .industry-card-desc {
    margin-top: 1rem;
  }
}

/* Note */
.industries-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  /* nền giống card, khác transparent section */
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 246, 236, 0.96) 100%
  );
  box-shadow: 0 4px 14px rgba(243, 112, 33, 0.1);
}

@media (min-width: 640px) {
  .industries-note {
    gap: 1rem;
    margin-top: 2.5rem;
    padding: 1.25rem;
  }
}

.industries-note-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
  background: #fff7ed;
  color: #f37021;
}

@media (min-width: 640px) {
  .industries-note-icon {
    width: 2.5rem;
    height: 2.5rem;
  }
}

.industries-note-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
}

.industries-note-desc {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  line-height: 1.625;
  color: #475569;
}