/* Programs page — filter & results card styles
   Author: Edwin M
   Date: 2026-06-03
*/

/* ── Filter bar grid layout ──────────────────────────────────────────────────
   HTML order: Faculty | Program Level | Type of Study
               Search  | Area of Interest | Delivery Method
               [Search button]
   Grid maps them automatically into 3 columns across 2 rows.
   Column ratio matches the screenshot: Faculty wide, Level + Type narrower.
*/
.searchresults .view-filters .form--inline {
  display: grid;
  grid-template-columns: 3fr 1.5fr 1.5fr;
  column-gap: 12px;
  align-items: end;
}

/* clearfix pseudo-elements must not become ghost grid items */
.searchresults .view-filters .form--inline::before,
.searchresults .view-filters .form--inline::after {
  display: none;
}

/* All selects and text inputs fill their column, with rounded borders */
.searchresults .view-filters .form-select,
.searchresults .view-filters .form-text {
  width: 100%;
  box-sizing: border-box;
  border-radius: 5px;
}

/* Search button row spans all 3 columns */
.searchresults .view-filters .form-actions {
  grid-column: 1 / -1;
  padding-bottom: 20px;
}

/* Search button — background-image: none cancels Seven theme's gradient overlay */
.searchresults .view-filters .form-actions .form-submit {
  background-color: #5c8727;
  background-image: none;
  color: #fff;
  border: 1px solid #5c8727;
  border-radius: 5px;
}

/* ── Results card ────────────────────────────────────────────────────────────*/
.searchresults .resultsdelivery {
  margin-top: 4px;
}

/* ── A-Z letter grouping ─────────────────────────────────────────────────────*/
.az-letter-header {
  font-size: 2rem;
  font-weight: 700;
  color: #002b5c;
  margin: 24px 0 12px;
  line-height: 1;
}

/* Two columns, each card gets a comfortable minimum so it never squishes */
.az-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
  align-items: start;
}

/* Cancel the global margin/border that the theme adds to every row after the
   first — inside the grid those rules push the second column card downward */
.az-grid .views-row + .views-row {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* Override the float-based layout so image sits left, text sits right
   inside the narrower grid column */
.az-grid .results {
  display: flex;
  align-items: stretch;
  gap: 16px;
  overflow: hidden;
}

.az-grid .resultsimage {
  float: none;
  flex: 0 0 190px;
  width: 190px;
}

.az-grid .resultsimage img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.az-grid .resultstext {
  float: none;
  width: auto;
  margin-left: 0;
  flex: 1;
  min-width: 0;
}

.az-item--hidden {
  display: none;
}

.az-show-more {
  display: block;
  margin: 14px 0 0 auto;
  background: none;
  color: #5c8727;
  border: none;
  border-bottom: 1px solid #5c8727;
  border-radius: 0;
  padding: 2px 0;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  text-decoration: none;
}

.az-show-more:hover {
  color: #3a5518;
  border-bottom-color: #3a5518;
}

.az-divider {
  border: none;
  border-top: 1px solid #ddd;
  margin: 24px 0 8px;
}

@media (max-width: 700px) {
  .az-grid {
    grid-template-columns: 1fr;
  }
}
