.icon-detail-container {
  max-width: 1000px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.icon-heading {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #333;
}

.icon-description {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 750px;
}

.icon-flex {
  display: flex;
  align-items: flex-start;
  gap: 7rem;
}

.icon-preview {
  min-width: 160px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 12rem;
  margin-top: 2rem;
  margin-right: 1rem;
}

.icon-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.icon-actions {
  display: flex;
  flex-direction: column;
  gap: 28px;
  flex: 1;
  padding-top: 3rem;
}

.icon-size-group {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.icon-size-label {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  background-color: #f0f0f0;
  padding: 6px 12px;
  border-radius: 6px;
  min-width: 50px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.icon-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.download-btn,
.copy-btn {
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  border: 2px solid;
  transition: all 0.2s ease;
  width: 45%;
}

.download-btn {
  background-color: #095861;
  color: white;
  border-color: #095861;
}

.download-btn:hover {
  background-color: #095861;
  border-color: #095861;
}

.copy-btn {
  background-color: #fff;
  color: #333;
  border-color: #095861;
  cursor: pointer;
}

.copy-btn.clicked {
  color: #095861;
  border-color: #095861;
  /* font-size: 0.75rem; */
}

.copy-btn:hover {
  background-color: #dfebef;
}

.icons-grid {
  width: 90%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1%;
  justify-content: flex-start;
}

.icon-card {
  flex: 0 0 calc((100% - 7%) / 8);
  height: 9rem;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: background 0.2s ease, box-shadow 0.2s;
  padding: 8px;
  margin-bottom: 1%;
  text-decoration: none;
}

.icon-card:hover {
  background-color: #f0f8ff;
  border-color: #dfebef;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.icon-card img {
  width: 50px;
  height: 50px;
  margin-bottom: 6px;
  object-fit: contain;
}

.icon-card p {
  font-size: 0.75rem;
  line-height: 1rem;
  color: #333;
  margin: 0;
  padding-top: 0.4rem;
  width: 100%;
  font-weight: 600;
}

.related-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: gray;
  margin: 50px 0 1rem 4rem;
}

/* ✅ Small screens: 2x2 layout for buttons, 2 icons per row */
@media (max-width: 768px) {
  .icon-flex {
    flex-direction: column;
    gap: 2rem;
  }

  .icon-preview {
    width: 100%;
    height: auto;
    min-height: 160px;
    margin: 1rem auto;
  }

  .icon-preview img {
    max-height: 160px;
  }

  .icon-actions {
    padding: 0;
    width: 100%;
  }

  .icon-size-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
  }

  .icon-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }

  .download-btn,
  .copy-btn {
    width: 100%;
    justify-content: center;
  }

  .icon-heading {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
  }

  .related-title {
    font-size: 1rem;
    margin-left: 1.5rem;
  }

  .icon-card {
    flex: 0 0 48%;
    height: 8rem;
    margin-bottom: 3%;
  }

  .icon-card p {
    font-size: 0.7rem;
  }
}

