/* Compact resource cards on mobile */
@media (max-width: 575.98px) {
  .resources-section .resource-card {
    padding: 0.75rem;
  }

  .resources-section .resource-title {
    font-size: 0.95rem;
  }

  .resources-section .resource-list li {
    font-size: 0.9rem;
  }
}

/* Student Resources: make View All buttons white text and border */
.resources-section .resource-view-btn {
  color: #fff !important;
  border: 1px solid #fff !important;
}

.resources-section .resource-view-btn:hover {
  background-color: rgba(255, 193, 7, 0.12);
  color: #ffc107 !important;
  border-color: #ffc107 !important;
}

/* Compact pill buttons for program cards */
.program-card .btn.btn-pill {
  border-radius: 50rem;
}

.program-card .btn {
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
}

/* Fix program card images */
.program-card .card-img-top {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

/* Mobile optimizations for program cards */
@media (max-width: 767px) {
  .program-card .card-img-top {
    height: 160px;
  }
}

@media (max-width: 575.98px) {
  .program-card {
    margin-bottom: 1rem;
  }

  .program-card .card-img-top {
    height: 140px;
  }

  .program-card .btn {
    font-size: 0.7rem;
    padding: 0.35rem 0.5rem;
    white-space: nowrap;
  }

  .program-card .card-body {
    padding: 0.6rem;
  }

  .program-card h3.h5 {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .program-card p.text-muted {
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .program-card .d-flex.gap-2 {
    gap: 0.25rem !important;
  }
}

/* Edge blur for Empowering Futures banner (desktop only) */
@media (min-width: 768px) {
  .edge-blur-md {
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    border-radius: 1rem;
  }
}
