.section-box {
  background: linear-gradient(180deg, #ffffff 0%, #f4f7ff 100%);
  border: 1px solid #dce2ff;
  border-radius: 14px;
  box-shadow: 0 5px 12px rgba(31, 44, 92, 0.08);
  padding: 40px;
  margin: 40px auto;
  text-align: center;
  max-width: 1000px;
}

.section-heading {
  font-size: 26px;
  font-weight: 700;
  color: #1f2c5c;
  margin-bottom: 25px;
}

/* Main container wrapping both handler boxes */
.main-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 35px;
  margin-top: 20px;
}

/* Each handler category box */
.category-box {
  flex: 1 1 45%;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
  border: 1px solid #e1e6ff;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  padding: 28px;
  transition: all 0.25s ease;
}

.category-box h4 {
  font-weight: 600;
  color: #1f2c5c;
  text-align: center;
  margin-bottom: 20px;
  font-size: 18px;
}

/* Tiles container inside each handler box */
.tools-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

/* Individual handler tiles */
.tool-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 80px;
  text-decoration: none;
  background: linear-gradient(145deg, #f9fbff, #eef3ff);
  border-radius: 10px;
  border: 1px solid #dbe3ff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
}

.tool-card:hover {
  transform: translateY(-3px);
  border-color: #9ab6ff;
  box-shadow: 0 5px 12px rgba(120, 140, 255, 0.2);
}

.tool-card span {
  font-size: 14px;
  font-weight: 600;
  color: #1f2c5c;
  text-align: center;
  line-height: 1.3;
  padding: 0 8px;
}

/* Responsive view */
@media (max-width: 768px) {
  .category-box {
    flex: 1 1 100%;
  }
  .tool-card {
    width: 150px;
    height: 75px;
  }
}

/* Compact layout for Extension Handlers section */
.section-box {
  padding: 30px 35px;
}

.main-container {
  gap: 20px;
}

.category-box {
  padding: 18px 20px;
  border-radius: 10px;
}

.category-box h4 {
  margin-bottom: 12px;
  font-size: 16px;
}

.tools-container {
  gap: 10px;
}

.tool-card {
  width: 140px;
  height: 90px;
  padding: 8px;
  font-size: 13px;
}

.tool-card span {
  font-size: 13px;
  line-height: 1.3;
}

/* Make the section visually tighter on mobile too */
@media (max-width: 700px) {
  .section-box {
    padding: 25px;
  }
  .tool-card {
    width: 120px;
    height: 80px;
  }
}
