/* Extracted from page-programs.php; preserve source block order. */

.ugp-programs-intro {
    max-width: 760px;
    margin: 0.8rem 0 0;
    color: #526274;
    font-size: 1.02rem;
    line-height: 1.65;
  }

.ugp-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
  }

  .ugp-card-link {
    min-width: 0;
    display: block;
    color: inherit;
    text-decoration: none;
  }

  .ugp-program-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid #dbe4ef;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .ugp-card-link:hover .ugp-program-card {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.1);
  }

  .ugp-program-thumb {
    position: relative;
    width: 100%;
    height: 250px;
    background-color: #f7f7f5;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    overflow: hidden;
  }


  .ugp-program-thumb-label {
    position: absolute;
    left: 1.1rem;
    bottom: 1.1rem;
    max-width: 70%;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: 0.035em;
    text-transform: uppercase;
  }

  .ugp-card-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 1.4rem;
  }

  .ugp-card-text {
    flex: 1 1 auto;
  }

  .ugp-program-meta {
    max-width: 100%;
    overflow-wrap: anywhere;
    display: inline-flex;
    align-self: flex-start;
    margin-top: 1rem;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: #eff5fb;
    color: #1d4f7a;
    font-size: 0.92rem;
    font-weight: 700;
  }

  @media (max-width: 1100px) {
    .ugp-grid-3 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (max-width: 700px) {
    .ugp-grid-3 {
      grid-template-columns: minmax(0, 1fr);
    }
  }
