.cme-topics {
  padding: 40px 0 55px;
}

.cme-topics__inner {
  max-width: 90%;
  margin: 0 auto;
}

.cme-topics__heading {
  margin: 0 0 28px !important;
  font-size: clamp(22px, 2.4vw, 38px);
  font-weight: 900;
  line-height: 1.15;
  color: #000;
}

.cme-topics__sub_heading span.purple {
  color: #52287E !important;
}

.cme-topics__grid {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.cme-topics__item {
  text-align: center;
  display:flex;
  flex-direction: column;
  justify-content:center;
}

.cme-topics__icon {
  width: 78px;
  height: 78px;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px;
}

.cme-topics__title {
  font-size: 15px;
  line-height: 1.2;
  font-weight: 900;
  color: #000;
}



.cme-topics__item {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding: 24px 18px;
  border-radius: 14px;
  background: transparent;

  transition:
    transform .25s ease,
    box-shadow .25s ease,
    background-color .25s ease;
}

/* Make linked tiles feel clickable */
.cme-topics__item--link {
  text-decoration: none;
}

/* Hover + focus (keyboard accessible) */
.cme-topics__item:hover,
.cme-topics__item:focus-visible {
  transform: translateY(-4px);
  background: #ffffff;
  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Icon micro animation */
.cme-topics__item:hover .cme-topics__icon,
.cme-topics__item:focus-visible .cme-topics__icon {
  transform: scale(1.06);
}

.cme-topics__icon {
  width: 78px;
  height: 78px;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px;

  transition: transform .25s ease;
}


@media (max-width: 1200px) {
  .cme-topics__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 18px;
  }
}

@media (max-width: 990px) {
  .cme-topics__grid {
      flex-wrap: wrap;
      justify-content: center;
      gap: 40px;
    }


}

@media (max-width: 768px) {
  .cme-topics {
    padding: 28px 0 40px;
  }

  .cme-topics__inner {
    max-width: 92%;
  }

  /* Switch to grid */
  .cme-topics__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  /* Remove the flex width restriction */
  .cme-topics__item--link {
    max-width: 100%;
  }

  .cme-topics__icon {
    width: 64px;
    height: 64px;
  }

  .cme-topics__title {
    font-size: 14px !important;
  }
  

}

/* == Overrides from Additional CSS == */
@media (max-width: 1200px) {
  .cme-topics__grid { display: grid !important; }
}
