* {
  margin: 0;
  padding: 0;
}
.dept-section {
  width: 100%;
}

/* Department block */
.dept-box {
  padding: 30px 70px 50px 70px;
}

.dept-box h4 {
  color: #1f3c88;

  font-family: Merriweather;
  font-weight: 700;
  font-style: Bold;
  font-size: 36px;
  leading-trim: NONE;
  line-height: 100%;
  letter-spacing: 1%;
}

.dept-box h4 span {
  color: #e63946;
}

.dept-box p {
  max-width: 900px;
  font-family: Poppins;
  font-weight: 400;
  font-style: Regular;
  font-size: 17px;
  leading-trim: NONE;
  line-height: 100%;
  letter-spacing: 1%;
  color: #1f3c88;

  margin: 15px 0 15px;
  line-height: 1.6;
}

/* Cards row */
.dept-cards-row {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
}

/* ✅ EACH CARD GETS IMAGE */
.dept-card {
  width: 370px;
  height: 208px;
  background: url("../images/Group\ 1006.png") no-repeat center / cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Card text */
.d-card {
  text-align: center;
  color: #fff;
}

.d-card h5 {
  font-weight: 600;

  font-family: Poppins;
  font-weight: 500;
  font-style: Medium;
  font-size: 20px;
  leading-trim: NONE;
  line-height: 100%;
  letter-spacing: 1%;
}

.d-card h6 {
  font-family: Poppins;
  font-weight: 500;
  font-style: Medium;
  font-size: 16px;
  leading-trim: NONE;
  line-height: 100%;
  letter-spacing: 1%;

  margin-top: 12px;
  color: #e63946;
}

.d-card p {
  font-family: Poppins;
  font-weight: 500;
  font-style: Medium;
  font-size: 16px;
  leading-trim: NONE;
  line-height: 100%;
  letter-spacing: 1%;

  margin-top: 12px;
  color: #e63946;
}

@media (min-width: 1600px) {
  .dept-cards-row {
    justify-content: center;
  }
}
@media (min-width: 1000px) and (max-width: 1299px) {
  .dept-filter-wrapper {
    max-width: 699px;
  }
}

@media (min-width: 1000px) and (max-width: 1399px) {
  .dept-box {
    padding: 40px 50px;
  }

  .dept-box h4 {
    font-size: 30px;
  }

  .dept-box  p {
    font-size: 14px;
    max-width: 750px;
    margin-bottom: 30px;
  }

  .dept-cards-row {
    gap: 35px;
  }

  .dept-card {
    width: 340px;
    height: 208px;
    background-size: cover;
  }

  .d-card h5 {
    font-size: 17px;
  }

  .d-card h6 {
    font-size: 14px;
  }

  .d-card p {
    font-size: 14px;
  }
}

@media (min-width: 768px) and (max-width: 1000px) {
  .dept-box  {
    padding: 40px 40px;
  }

  .dept-box  h4 {
    font-size: 26px;
  }

  .dept-box  p {
    font-size: 14px;
    max-width: 700px;
  }

  .dept-cards-row {
    gap: 30px;
  }

  .dept-card {
    width: 320px;
    height: 208px;
  }

  .d-card h5 {
    font-size: 17px;
  }

  .d-card h6 {
    font-size: 15px;
  }

  .d-card p {
    font-size: 15px;
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  .dept-box  {
    padding: 35px 25px;
  }

  .dept-box  h4 {
    font-size: 24px;
    text-align: center;
  }

  .dept-box  p {
    font-size: 14px;
    text-align: center;
    margin-bottom: 28px;
  }

  .dept-cards-row {
    gap: 25px;
  }

  .dept-card {
    width: 340px;
    height: 208px;
    background-size: cover;
  }

  .d-card h5 {
    font-size: 16px;
  }

  .d-card h6 {
    font-size: 14px;
  }

  .d-card p {
    font-size: 14px;
  }
}

@media (max-width: 575px) {
  .dept-box  {
    padding: 30px 16px;
  }

  .dept-box  h4 {
    font-size: 22px;
    line-height: 1.3;
    text-align: center;
  }

  .dept-box  p {
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 25px;
  }

  .dept-cards-row {
    flex-direction: column;
    gap: 20px;
  }

  .dept-card {
    width: 100%;
    max-width: 310px;
    height: 208px;
    background-size: cover;
  }

  .d-card h5 {
    font-size: 15px;
  }

  .d-card h6 {
    font-size: 13px;
  }

  .d-card p {
    font-size: 13px;
  }
}

/* buuttons  */
.dept-filter-wrapper {
  display: flex;
  flex-wrap: wrap;

  max-width: 900px;
  padding-left: 70px;
  gap:25px;
}

/* Default Button */
.dept-btn {
  padding: 8px 20px;
  border-radius: 30px;
  border: 1.5px solid #1f3c88;
  background: transparent;
  color: #1f3c88;
  font-family: Poppins;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Active Button (ALL) */
.dept-btn.active {
  background: #1f3c88;
  color: #fff;
}

/* Hover Effect */
.dept-btn:hover {
  background: #1f3c88;
  color: #fff;
}

@media (max-width: 1040px) {
  .dept-filter-wrapper {
    padding: 10px;
    margin-top: 0px;
  }
}
