/**
 * MyDigiBits — Industry pages styles (overview hub + detail templates).
 */

/* —— Industries Overview hub —— */
.mdb-industries-overview .mdb-industries-intro .mdb-section__header {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
}

.mdb-industries-intro__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
  margin-top: 2.25rem;
}

.mdb-industries-intro__card {
  background: #fff;
  border: 1px solid var(--mdb-border);
  border-radius: var(--mdb-radius);
  padding: 1.35rem 1.2rem;
  box-shadow: var(--mdb-shadow-sm);
}

.mdb-industries-intro__card-title {
  font-family: var(--mdb-font-display);
  font-size: 1rem;
  color: var(--mdb-primary);
  margin: 0 0 0.45rem;
}

.mdb-industries-intro__card-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--mdb-text-muted);
  line-height: 1.55;
}

/* Featured industry cards */
.mdb-industries-featured {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.35rem;
  align-items: stretch;
}

.mdb-industries-featured > .mdb-industry-card:nth-child(1) {
  grid-column: 1 / 3;
}

.mdb-industries-featured > .mdb-industry-card:nth-child(2) {
  grid-column: 3 / 5;
}

.mdb-industries-featured > .mdb-industry-card:nth-child(3) {
  grid-column: 5 / 7;
}

.mdb-industries-featured > .mdb-industry-card:nth-child(4) {
  grid-column: 2 / 4;
}

.mdb-industries-featured > .mdb-industry-card:nth-child(5) {
  grid-column: 4 / 6;
}

.mdb-industry-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--mdb-border);
  border-radius: calc(var(--mdb-radius) + 2px);
  padding: 1.5rem 1.35rem 1.35rem;
  box-shadow: var(--mdb-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.mdb-industry-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  border-color: rgba(37, 99, 235, 0.25);
}

.mdb-industry-card__head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.mdb-industry-card__head .mdb-card__icon {
  flex-shrink: 0;
  margin-bottom: 0;
}

.mdb-industry-card__title {
  font-family: var(--mdb-font-display);
  font-size: 1.2rem;
  line-height: 1.25;
  color: var(--mdb-primary);
  margin: 0.15rem 0 0;
}

.mdb-industry-card__summary {
  margin: 0 0 1rem;
  color: var(--mdb-text-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.mdb-industry-card__block {
  margin-bottom: 0.85rem;
}

.mdb-industry-card__label {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mdb-primary-mid);
}

.mdb-industry-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.mdb-industry-card__list li {
  position: relative;
  padding-left: 0.95rem;
  font-size: 0.88rem;
  color: var(--mdb-text-muted);
  line-height: 1.4;
}

.mdb-industry-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mdb-accent);
}

.mdb-industry-card__outcome {
  margin: 0;
  font-size: 0.9rem;
  color: var(--mdb-text);
  line-height: 1.5;
  font-weight: 500;
}

.mdb-industry-card__footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--mdb-border);
}

.mdb-industry-card__footer .mdb-btn {
  width: 100%;
  justify-content: center;
}

/* Challenges & opportunities split */
.mdb-industries-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.mdb-industries-split__list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.mdb-industries-split__list li {
  position: relative;
  padding: 0.9rem 1rem 0.9rem 2.5rem;
  background: #fff;
  border: 1px solid var(--mdb-border);
  border-radius: var(--mdb-radius-sm);
  box-shadow: var(--mdb-shadow-sm);
  font-size: 0.94rem;
  color: var(--mdb-text-muted);
  line-height: 1.5;
}

.mdb-industries-split__list li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mdb-accent);
}

.mdb-industries-split__panel {
  display: grid;
  gap: 0.85rem;
  padding: 1.35rem;
  border-radius: calc(var(--mdb-radius) + 2px);
  background: linear-gradient(155deg, rgba(30, 64, 175, 0.1), rgba(59, 130, 246, 0.06));
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.mdb-industries-split__metric {
  padding: 1rem 1.1rem;
  background: #fff;
  border-radius: var(--mdb-radius-sm);
  border: 1px solid var(--mdb-border);
}

.mdb-industries-split__metric strong {
  display: block;
  font-family: var(--mdb-font-display);
  color: var(--mdb-primary);
  margin-bottom: 0.25rem;
}

.mdb-industries-split__metric span {
  font-size: 0.9rem;
  color: var(--mdb-text-muted);
  line-height: 1.45;
}

/* Solution cards */
.mdb-industries-solutions .mdb-card--industry-solution {
  background: linear-gradient(180deg, #fff 0%, var(--mdb-light) 100%);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.mdb-industries-solutions .mdb-card--industry-solution:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
  border-color: rgba(37, 99, 235, 0.22);
}

/* Why + insights */
.mdb-industries-why .mdb-card--feature,
.mdb-industries-insights .mdb-card--insight {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.mdb-industries-why .mdb-card--feature:hover,
.mdb-industries-insights .mdb-card--insight:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
  border-color: rgba(37, 99, 235, 0.22);
}

.mdb-industries-insights .mdb-card--insight {
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

#industries-insights .mdb-section__footer {
  margin-top: 2rem;
  text-align: center;
}

/* Process timeline */
.mdb-industries-process {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mdb-industries-process__step {
  position: relative;
  background: #fff;
  border: 1px solid var(--mdb-border);
  border-radius: var(--mdb-radius);
  padding: 1.15rem 1rem;
  min-height: 100%;
  box-shadow: var(--mdb-shadow-sm);
}

.mdb-industries-process__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.65rem;
  border-radius: 999px;
  font-weight: 700;
  background: rgba(37, 99, 235, 0.1);
  color: var(--mdb-primary-mid);
}

.mdb-industries-process__label {
  display: block;
  font-weight: 600;
  color: var(--mdb-primary);
  font-size: 0.92rem;
  line-height: 1.35;
}

/* Leadership on overview */
.mdb-industries-overview .mdb-services-leadership {
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr;
  gap: 2.5rem;
  align-items: center;
}

.mdb-industries-overview .mdb-services-leadership__photo,
.mdb-industries-overview .mdb-services-leadership__placeholder {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--mdb-radius);
  object-fit: cover;
}

.mdb-industries-overview .mdb-services-leadership__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--mdb-primary), var(--mdb-accent));
  color: #fff;
  font-family: var(--mdb-font-display);
  font-size: 3.5rem;
  font-weight: 800;
}

.mdb-industries-overview .mdb-services-leadership__role {
  margin: 0 0 0.35rem;
  font-weight: 600;
  color: var(--mdb-accent);
}

.mdb-industries-overview .mdb-services-leadership__bio {
  color: var(--mdb-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 0.5rem;
}

.mdb-industries-overview .mdb-services-leadership__name {
  margin: 0 0 1rem;
  font-family: var(--mdb-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--mdb-primary);
}

.mdb-industries-overview .mdb-services-leadership__creds {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.mdb-industries-overview .mdb-services-leadership__creds li {
  position: relative;
  padding-left: 1.1rem;
  font-weight: 500;
}

.mdb-industries-overview .mdb-services-leadership__creds li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mdb-accent);
}

/* —— Dedicated industry landing pages —— */
.mdb-industry-breadcrumb {
  color: var(--mdb-accent);
  font-weight: 600;
  text-decoration: none;
}

.mdb-industry-breadcrumb:hover {
  text-decoration: underline;
}

.mdb-industry-challenges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.mdb-industry-challenge {
  background: #fff;
  border: 1px solid var(--mdb-border);
  border-radius: var(--mdb-radius);
  padding: 1.35rem 1.2rem;
  box-shadow: var(--mdb-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.mdb-industry-challenge:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
  border-color: rgba(37, 99, 235, 0.22);
}

.mdb-industry-challenge__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.14), rgba(59, 130, 246, 0.12));
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.mdb-industry-challenge__title {
  font-family: var(--mdb-font-display);
  font-size: 1.05rem;
  color: var(--mdb-primary);
  margin: 0 0 0.45rem;
}

.mdb-industry-challenge__text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--mdb-text-muted);
  line-height: 1.55;
}

.mdb-industry-solutions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.mdb-industry-solution {
  background: #fff;
  border: 1px solid var(--mdb-border);
  border-radius: var(--mdb-radius);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--mdb-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.mdb-industry-solution:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
  border-color: rgba(37, 99, 235, 0.22);
}

.mdb-industry-solution .mdb-card__icon {
  margin-bottom: 0.75rem;
}

.mdb-industry-solution__title {
  font-family: var(--mdb-font-display);
  font-size: 1.1rem;
  color: var(--mdb-primary);
  margin: 0 0 0.5rem;
}

.mdb-industry-solution__text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--mdb-text-muted);
  line-height: 1.55;
}

.mdb-industry-workflow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.35rem;
  padding: 1.5rem 1.25rem;
  background: linear-gradient(155deg, rgba(30, 64, 175, 0.08), rgba(59, 130, 246, 0.05));
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: calc(var(--mdb-radius) + 2px);
}

.mdb-industry-workflow__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-width: 7.5rem;
  text-align: center;
}

.mdb-industry-workflow__node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: #fff;
  border: 2px solid rgba(37, 99, 235, 0.35);
  color: var(--mdb-primary-mid);
  font-weight: 700;
  font-size: 0.9rem;
}

.mdb-industry-workflow__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mdb-primary);
  line-height: 1.3;
  max-width: 8.5rem;
}

.mdb-industry-workflow__connector {
  width: 1.75rem;
  height: 2px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.15), rgba(37, 99, 235, 0.55));
  border-radius: 999px;
  flex-shrink: 0;
}

.mdb-industry-detail .mdb-industry-automation .mdb-card--feature,
.mdb-industry-detail .mdb-industry-growth .mdb-card--feature,
.mdb-industry-detail .mdb-industry-why .mdb-card--feature,
.mdb-industry-detail .mdb-industry-insights .mdb-card--insight {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.mdb-industry-detail .mdb-industry-automation .mdb-card--feature:hover,
.mdb-industry-detail .mdb-industry-growth .mdb-card--feature:hover,
.mdb-industry-detail .mdb-industry-why .mdb-card--feature:hover,
.mdb-industry-detail .mdb-industry-insights .mdb-card--insight:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
  border-color: rgba(37, 99, 235, 0.22);
}

.mdb-industry-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.mdb-industry-benefit {
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid var(--mdb-border);
  border-radius: var(--mdb-radius-sm);
  box-shadow: var(--mdb-shadow-sm);
}

.mdb-industry-benefit__text {
  position: relative;
  display: block;
  padding-left: 1.1rem;
  font-weight: 600;
  color: var(--mdb-primary);
  font-size: 0.94rem;
  line-height: 1.45;
}

.mdb-industry-benefit__text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mdb-accent);
}

#industry-insights .mdb-section__footer {
  margin-top: 2rem;
  text-align: center;
}

.mdb-industry-detail .mdb-services-leadership {
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr;
  gap: 2.5rem;
  align-items: center;
}

.mdb-industry-detail .mdb-services-leadership__photo,
.mdb-industry-detail .mdb-services-leadership__placeholder {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--mdb-radius);
  object-fit: cover;
}

.mdb-industry-detail .mdb-services-leadership__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--mdb-primary), var(--mdb-accent));
  color: #fff;
  font-family: var(--mdb-font-display);
  font-size: 3.5rem;
  font-weight: 800;
}

.mdb-industry-detail .mdb-services-leadership__role {
  margin: 0 0 0.35rem;
  font-weight: 600;
  color: var(--mdb-accent);
}

.mdb-industry-detail .mdb-services-leadership__bio {
  color: var(--mdb-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 0.5rem;
}

.mdb-industry-detail .mdb-services-leadership__name {
  margin: 0 0 1rem;
  font-family: var(--mdb-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--mdb-primary);
}

.mdb-industry-detail .mdb-services-leadership__creds {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.mdb-industry-detail .mdb-services-leadership__creds li {
  position: relative;
  padding-left: 1.1rem;
  font-weight: 500;
}

.mdb-industry-detail .mdb-services-leadership__creds li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mdb-accent);
}

/* Responsive */
@media (max-width: 1160px) {
  .mdb-industries-intro__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mdb-industries-featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mdb-industries-featured > .mdb-industry-card:nth-child(n) {
    grid-column: auto;
  }

  .mdb-industries-process {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mdb-industry-challenges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .mdb-industries-split {
    grid-template-columns: 1fr;
  }

  .mdb-industries-overview .mdb-services-leadership {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }
}

@media (max-width: 900px) {
  .mdb-industries-process,
  #industry-process .mdb-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .mdb-industries-intro__grid {
    grid-template-columns: 1fr;
  }

  .mdb-industries-featured,
  .mdb-industries-process {
    grid-template-columns: 1fr;
  }

  .mdb-industry-challenges,
  .mdb-industry-solutions,
  .mdb-industry-benefits {
    grid-template-columns: 1fr;
  }

  .mdb-industry-workflow {
    flex-direction: column;
    align-items: stretch;
  }

  .mdb-industry-workflow__connector {
    width: 2px;
    height: 1.25rem;
    margin-inline: auto;
  }

  .mdb-industry-detail .mdb-services-leadership {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mdb-industry-card:hover,
  .mdb-industries-solutions .mdb-card--industry-solution:hover,
  .mdb-industries-why .mdb-card--feature:hover,
  .mdb-industries-insights .mdb-card--insight:hover,
  .mdb-industry-challenge:hover,
  .mdb-industry-solution:hover,
  .mdb-industry-detail .mdb-industry-automation .mdb-card--feature:hover,
  .mdb-industry-detail .mdb-industry-growth .mdb-card--feature:hover,
  .mdb-industry-detail .mdb-industry-why .mdb-card--feature:hover,
  .mdb-industry-detail .mdb-industry-insights .mdb-card--insight:hover {
    transform: none;
  }
}
