/* ================= SUBJECTS OFFERED ================= */
.subjects-section {
  background: url("../../images/Rectangle\ 30.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  /* padding: 80px 70px; */
}

.subjects-wrapper {
  max-width: 1320px;
  margin: auto;
}

/* TITLE */
.subjects-title {
  font-family: "EB Garamond", serif;
  font-size: 36px;
  font-weight: 400;
  color: #252525;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 40px;
}

.subjects-title span {
  width: 28px;
  height: 4px;
  background: #ed1c24;
  border-radius: 2px;
}

/* GRID */
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

/* CARD */
.subject-card {
  position: relative;
  width: 100%;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(225, 27, 34, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  /* background: #fff; */
}

/* INNER GRADIENT BORDER (FIGMA STYLE) */
/* INNER BOTTOM GRADIENT BORDER */
.subject-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 39px; /* border height */
  border-radius: 0 0 8px 8px;
  pointer-events: none;

  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0.15),
    rgba(255, 255, 255, 0)
  );
}

.subject-card img {
  /* width: 100%; */
  /* height: 100%; */
  object-fit: cover;
  display: block;
}

/* OVERLAY */
.subject-overlay {
  position: absolute;
  inset: 0;
  /* background: rgba(255, 255, 255, 0.72); */
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding-left: 30px;
  gap: 10px;
}

.subject-overlay h4 {
  font-family: Outfit;
  font-weight: 500;
  font-style: Medium;
  font-size: 20px;

  letter-spacing: 1%;

  font-weight: 500;
  color: #252525;
  text-align: center;
  padding: 0 10px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1200px) {
  .subjects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .subjects-section {
    padding: 30px 35px;
  }
}

@media (max-width: 768px) {
  /* .subjects-wrapper {
             padding: 30px 35px;
         } */
  .subjects-title {
    font-size: 30px;
  }
  .subjects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  /* .subjects-section {
          padding: 60px 20px;
        } */

  .subjects-grid {
    grid-template-columns: 1fr;
  }

  .subjects-title {
    font-size: 30px;
  }
}
