.vertical-box-ir {
  width: 300px;
  height: 400px;
  border-radius: 15px;
  background-image: url(../../images-fcs/irdept1.jpg);
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  margin: 20px auto;
  position: relative;
}

.vertical-box-gpp {
  width: 300px;
  height: 400px;
  border-radius: 15px;
  background-image: url(../../images-fcs/gppdept11.png);
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  margin: 20px auto;
  position: relative;
}

.vertical-box-lms {
  width: 300px;
  height: 400px;
  border-radius: 15px;
  background-image: url(../../images-fcs/lmsdept.webp);
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  margin: 20px auto;
  position: relative;
}

.vertical-box-pcs {
  width: 300px;
  height: 400px;
  border-radius: 15px;
  background-image: url(../../images-fcs/pcsdept.jpg);
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  margin: 20px auto;
  position: relative;
}

.vertical-box-ss {
  width: 300px;
  height: 400px;
  border-radius: 15px;
  background-image: url(../../images-fcs/ssdept.jpg);
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  margin: 20px auto;
  position: relative;
}

.vertical-box-eco {
  width: 300px;
  height: 400px;
  border-radius: 15px;
  background-image: url(../../images-fcs/ecodept.jpg);
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  margin: 20px auto;
  position: relative;
}

.inner-box {
  background-color: #458780;
  width: 200px;
  height: 60px;
  border-radius: 8px;
  color: white;
  text-align: center;
  line-height: 60px;
  font-weight: bold;
  font-family: 'Montserrat', sans-serif;
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 30px;
  transition: all 0.3s ease-in-out;
  text-decoration: none;
}

.inner-box:hover {
  background-color: #5da2a0;
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.text-below {
  position: absolute;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  color: #437371;
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}

.small-box-container {
  position: absolute;
  top: 220px;
  /* Adjusts the position below the paragraph */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  /* Allows boxes to break into new rows */
  justify-content: center;
  /* Center the boxes horizontally */
  gap: 30px;
  /* Adds spacing between boxes */
}

.small-box-container-lms {
  position: absolute;
  top: 220px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;   /* allows wrapping */
  justify-content: center;
  gap: 30px;
  
  width: 240px;  /* NEW → limits row to 3 boxes (60px * 3 + gaps) */
}

.small-box {
background-color: #458780;
width: 60px;
height: 60px;
border-radius: 8px;
color: white;
display: flex; /* Center the text horizontally and vertically */
align-items: center;
justify-content: center;
font-weight: bold;
font-size: 14px; /* Adjust font size to fit */
text-align: center;
text-overflow: ellipsis; /* Handle overflow gracefully */
overflow: hidden;
padding: 5px; /* Add padding to avoid text touching the edges */
font-family: 'Montserrat', sans-serif;
transition: all 0.3s ease-in-out;
text-decoration: none;
}


.small-box:hover {
  background-color: #5da2a0;
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}