/**
 * Icon Text Grid Component Styles
 * Grid layout with icons and text labels
 */

/* Section */
.icon-text-section {
  padding: 20px 0;
}

/* Grid Container */
.icon-text-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
}

/* Grid Item */
.icon-text-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  background: #185CB733;background: #185CB733;
  opacity: 0.9;

  border-right: 1px solid #eee;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s ease;
}

/* Alternating gradient - odd items (1, 3, 5, 7) gradient from top */
.icon-text-item:nth-child(odd) {
  background: linear-gradient(
    to bottom,
    rgba(255, 182, 193, 0.12),
    rgba(255, 255, 255, 0)
  );
}

/* Alternating gradient - even items (2, 4, 6, 8) gradient from bottom */
.icon-text-item:nth-child(even) {
  background: linear-gradient(
    to top,
    rgba(255, 182, 193, 0.12),
    rgba(255, 255, 255, 0)
  );
}

/* Remove right border from last column */
.icon-text-item:nth-child(4n) {
  border-right: none;
}

/* Remove bottom border from last row */
.icon-text-item:nth-last-child(-n + 4) {
  border-bottom: none;
}

/* Hover effect */
.icon-text-item:hover {
  background-color: white;
}

/* Icon Wrapper */
.icon-text-icon-wrapper {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  overflow: hidden;
}

/* Icon */
.icon-text-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

/* Label */
.icon-text-label {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0;
  line-height: 1.4;
}

/* ========================================
   Responsive Styles
   ======================================== */

/* Desktop - 1200px and below */
@media (max-width: 1200px) {
  .icon-text-item {
    padding: 35px 15px;
  }

  .icon-text-icon-wrapper {
    width: 90px;
    height: 90px;
  }

  .icon-text-icon {
    width: 55px;
    height: 55px;
  }

  .icon-text-label {
    font-size: 1.1rem;
  }
}

/* Tablet - 992px and below */
@media (max-width: 992px) {
  .icon-text-section {
    padding: 20px 0;
  }

  .icon-text-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .icon-text-item {
    padding: 30px 15px;
  }

  .icon-text-icon-wrapper {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
  }

  .icon-text-icon {
    width: 50px;
    height: 50px;
  }

  .icon-text-label {
    font-size: 1.3rem;
  }
}

/* Mobile Landscape - 768px and below */
@media (max-width: 768px) {
  .icon-text-section {
    padding: 20px 0;
  }

  .icon-text-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Adjust borders for 2 columns */
  .icon-text-item:nth-child(4n) {
    border-right: 1px solid #eee;
  }

  .icon-text-item:nth-child(2n) {
    border-right: none;
  }

  .icon-text-item:nth-last-child(-n + 4) {
    border-bottom: 1px solid #eee;
  }

  .icon-text-item:nth-last-child(-n + 2) {
    border-bottom: none;
  }

  .icon-text-item {
    padding: 30px 20px;
  }

  .icon-text-icon-wrapper {
    width: 85px;
    height: 85px;
  }

  .icon-text-icon {
    width: 50px;
    height: 50px;
  }
}

/* Mobile Portrait - 576px and below */
@media (max-width: 576px) {
  .icon-text-section {
    padding: 10px 0;
  }

  .icon-text-grid {
    grid-template-columns: repeat(2, 1fr);
    border-radius: 8px;
  }

  .icon-text-item {
    padding: 25px 15px;
  }

  .icon-text-icon-wrapper {
    width: 70px;
    height: 70px;
    margin-bottom: 12px;
  }

  .icon-text-icon {
    width: 42px;
    height: 42px;
  }

  .icon-text-label {
    font-size: 0.85rem;
  }
}

/* Small Mobile - 480px and below */
@media (max-width: 480px) {
  .icon-text-item {
    padding: 10px 10px;
  }

  .icon-text-icon-wrapper {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
  }

  .icon-text-icon {
    width: 36px;
    height: 36px;
  }

  .icon-text-label {
    font-size: 0.8rem;
  }
}
