/* ================================
   STUDY MATERIAL FILTER PAGE ONLY
================================ */

/* GRID – responsive */
.mp-study-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  font-family: "DM Sans", Arial, sans-serif; /* global font for cards */
}

@media (min-width: 768px) {
  .mp-study-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .mp-study-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .mp-study-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* FILTER FORM */
.mp-filter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
  font-family: "DM Sans", Arial, sans-serif;
}

.mp-filter-form select,
.mp-filter-form input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  height: 44px;
  box-sizing: border-box;
}

.mp-filter-form button {
  padding: 0 20px;
  height: 44px;
  background: #1e40af;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
}

@media (min-width: 768px) {
  .mp-filter-form {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr auto;
    gap: 12px;
    align-items: center;
  }
}

/* CARD STRUCTURE */
.mp-study-grid article {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* CONTENT AREA */
.mp-card-content {
  font-family: "DM Sans", Arial, sans-serif;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 6px;
}

.mp-card-content h3 {
  font-size: 18px;
  font-weight: 700;
}

.mp-card-content p {
  font-size: 14px;
  line-height: 1.6;
}

/* FLEX spacer jo bottom cluster ko push karega */
.mp-card-flex-spacer {
  flex-grow: 1;
}

/* Button wrapper – bas spacing ke liye */
.mp-card-btn-wrap {
  width: 100%;
  padding-top: 10px;
}


/* BUTTON */
.mp-card-btn {
  width: 100%;
  padding: 10px 16px;
  border-radius: 10px;
  background: #1d4ed8;
  color: #fff;
  display: inline-flex;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  font-family: "DM Sans", Arial, sans-serif;
  box-shadow: 0 6px 14px rgba(29,78,216,0.22);
  border: 1px solid rgba(0,0,0,0.06);
  transition: 0.25s ease;
}

/* HOVER – Yellow */
.mp-card-btn:hover {
  background: #facc15 !important;
  color: #1d4ed8 !important;
  box-shadow: 0 8px 22px rgba(250,204,21,0.3);
  transform: translateY(-2px);
}

/* MOBILE */
@media (max-width: 480px) {
  .mp-card-btn {
    padding: 10px;
    font-size: 13px;
  }
}

.mp-meta-pill {
  display: inline-flex;          /* ✅ content ke hisaab se width */
  align-items: center;
  gap: 6px;

  width: fit-content;           /* ✅ IMPORTANT: background auto shrink */
  max-width: 100%;

  padding: 4px 10px;            /* ✅ thoda breathing space */
  background: #f3f4f6;
  border: 0.5px solid #e5e7eb;
  border-radius: 8px;

  font-size: 12.5px;
  color: #374151;
}

.mp-meta-pill img {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}