.ig-wrapper {
  width: 100%;
  max-width: 1400px;
  margin: 80px auto;
  padding: 0;
  padding-bottom: 60px;
  font-family: inherit;
}

/* --- THE GRID --- */
.ig-grid {
  display: grid;
  gap: var(--ig-gap);
  width: 100%;
}

.ig-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ig-cols-4 { grid-template-columns: repeat(4, 1fr); }
.ig-cols-5 { grid-template-columns: repeat(5, 1fr); }

/* --- THE ITEM --- */
.ig-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ig-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.3s ease;
}

.ig-link:hover {
  transform: translateY(-5px); /* Nice little hover pop if it's a link */
}

/* --- THE ICON BOX --- */
.ig-icon-box {
  width: 110px;
  height: 110px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  flex-shrink: 0;
}

/* Image Icon Styling */
.ig-icon-box img {
  max-width: 45px;
  max-height: 45px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Font Awesome Icon Styling */
.ig-icon-box i {
  font-size: 40px; /* Adjust this if you want the font-icons bigger/smaller */
  display: block;
  line-height: 1;
}

/* --- THE TEXT --- */
.ig-title {
  color: var(--ig-text) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  max-width: 90%; /* Prevents text from stretching too wide */
}

/* --- RESPONSIVE BREAKPOINTS --- */

/* Tablets */
@media (max-width: 1100px) {
  .ig-grid {
    grid-template-columns: repeat(3, 1fr); /* Forces 3 columns on tablets */
  }
}

/* Mobile */
@media (max-width: 768px) {
  .ig-wrapper {
    margin: 40px auto;
    padding: 0 0px !important; /* Let parent row handle edge padding */
  }
  .ig-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on phones */
    gap: 30px 15px; /* Slightly tighter gaps */
  }
  .ig-icon-box {
    width: 90px;
    height: 90px;
    border-radius: 16px;
    margin-bottom: 15px;
  }
  .ig-icon-box img {
    max-width: 35px;
    max-height: 35px;
  }
  .ig-title {
    font-size: 14px !important;
  }
}

/* Extra Small Phones */
@media (max-width: 480px) {
  .ig-grid {
    grid-template-columns: 1fr; /* Stacks to 1 column on tiny screens */
  }
}