/* ==========================================================================
   Template: website_v3/templates/website_v3/sponsor_education.html
   URL:      /sponsor_education/
   Moved from the inline <style> block of this template on 2026-11-19.
   ========================================================================== */

    .student-card {
      position: relative;
      overflow: hidden;
      border-radius: 10px;
    }

    .student-card-link {
      display: block;
      color: inherit;
      text-decoration: none;
    }

    .student-card-link:hover {
      color: inherit;
      text-decoration: none;
    }

    .student-card .card-media {
      position: relative;
      overflow: hidden;
    }

    .student-card .card-media img {
      width: 100%;
      display: block;
    }

    .student-caption {
      display: none;
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      padding: 14px 12px 10px;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
    }

    .student-caption h5 {
      color: #fff;
      font-weight: 700;
      font-size: 15px;
      margin: 0 0 2px;
    }

    .student-caption .price {
      color: #ffd54a;
      font-weight: 600;
      font-size: 13px;
    }

    @media (min-width: 768px) {
      .student-panel {
        display: block;
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 14px;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.2) 70%, transparent);
      }

      .student-panel .student-name {
        color:  #ffd54a;
        font-weight: 700;
        font-size: 15px;
        margin: 0 0 2px;
      }

      .student-panel .student-class {
        color: #fff;
        font-weight: 700;
        font-size: 14px;
        margin: 0;
      }

      .student-panel .donate-btn {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0;
        margin-top: 0;
        border-radius: 999px;
        background: #296e0ed6;
        color: #fff;
        font-weight: 600;
        font-size: 13px;
        letter-spacing: 0.3px;
        border: none;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transform: translateY(6px);
        transition: max-height 0.25s ease, opacity 0.25s ease, transform 0.25s ease, margin-top 0.25s ease, padding 0.25s ease;
      }

      .student-card:hover .student-panel .donate-btn {
        max-height: 40px;
        opacity: 1;
        transform: translateY(0);
        margin-top: 10px;
        padding: 10px 0;
      }
    }

    @media (max-width: 767px) {
      .student-card {
        margin-bottom: 0;
      }

      .student-caption {
        display: block;
      }

      .student-panel {
        display: none;
      }
    }
