* {
  margin: 0;
  padding: 0;
}
.all-departments-section {
  background: url("../../images/Rectangle\ 30.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.all-departments-container {
  max-width: 1320px;
  margin: 0 auto;
}
.dept-section {
  width: 100%;
}

/* Department block */
.dept-box {
  padding: 30px 0px 50px 0px;
}

/* .dept-box h4 {
  color: #252525;

  font-family: EB Garamond;
  font-weight: 400;
  font-style: Regular;
  font-size: 36px;
  leading-trim: NONE;
  line-height: 100%;
  letter-spacing: 1%;
} */

.dept-box h4 {
  font-family: "EB Garamond";
  font-weight: 400;
  font-style: normal;
  font-size: 36px;
  letter-spacing: 1%;
  color: #252525;

  display: flex;
  flex-direction: column; /* stack line + text */
  align-items: flex-start;
  gap: 2px;

  margin-bottom: 35px;
  position: relative;
}

/* small line above */
.dept-box h4::before {
  content: "";
  width: 32px; /* very small line */
  height: 4px;
  background: #e11b22; /* change color if needed */
  border-radius: 2px;
}

.dept-filter-wrapper {

}

.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: flex-start;
  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: space-between;
}

/* 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: 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: 133px;
    background-size: cover;
  }

  .d-card h5 {
    font-size: 15px;
  }

  .d-card h6 {
    font-size: 13px;
  }

  .d-card p {
    font-size: 13px;
  }
}



/* buuttons  */
.dept-filter-section{
   /* background: url("../../images/Rectangle\ 30.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover; */

    background: url("../../images/Rectangle\ 555.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;


}
.dept-filter-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 73px;
  /* max-width: 900px; */
  /* padding-left: 70px; */
  max-width: 1320px;
  margin: 0 auto;
}

/* Default Button */
.dept-btn {
  padding: 8px 20px;
  border-radius: 30px;
  border: 1.5px solid #ed1c24;

  background: transparent;
  color: #ed1c24;

  font-family: Outfit;
  font-weight: 400;
  font-style: Regular;
  font-size: 16px;
  leading-trim: NONE;
  line-height: 100%;
  letter-spacing: 1%;

  cursor: pointer;
  transition: all 0.3s ease;
}

/* Active Button (ALL) */
.dept-btn.active {
  background: #ed1c24;

  color: #fff;
}

/* Hover Effect */
.dept-btn:hover {
  background: #ed1c24;

  color: #fff;
}

@media (max-width: 1040px) {
  .dept-filter-wrapper {
    padding: 10px;
    margin-top: 0px;
  }
  .all-departments-section {
    padding: 30px 35px;
  }
}
