﻿.pfe-top-courses-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 14px;
  }

  @media (min-width: 768px) {
    .pfe-top-courses-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
    }
  }

  @media (min-width: 1200px) {
    .pfe-top-courses-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }

  .pfe-top-course-card {
    width: 100%;
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .pfe-top-course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.14);
  }

  .pfe-top-course-image {
    display: block;
  }

  .pfe-top-course-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
  }

  @media (min-width: 992px) {
    .pfe-top-course-image img {
      height: 230px;
    }
  }

  .pfe-top-course-category {
    display: inline-block;
    align-self: flex-start;
    width: fit-content;
    max-width: calc(100% - 32px);
    margin: 10px 16px 0;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
  }

  .pfe-top-course-category--posh {
    background: #ede9fe;
    color: #5b21b6;
  }

  .pfe-top-course-category--cms {
    background: #ccfbf1;
    color: #0f766e;
  }

  .pfe-top-course-category--global {
    background: #ffedd5;
    color: #c2410c;
  }

  .pfe-top-course-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 12px 16px 18px;
  }

  .pfe-top-course-body h3 {
    font-size: 1.08rem !important;
    font-weight: 700 !important;
    margin: 0 0 10px;
    color: #0f172a;
    line-height: 1.35;
  }

  .pfe-top-course-desc {
    margin: 0 0 14px;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.55;
    flex: 1;
  }

  .pfe-top-course-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: auto;
    border-radius: 8px;
    background: #e8f2f5;
    color: #002a38 !important;
    border: 1px solid rgba(0, 42, 56, 0.22);
    text-decoration: none !important;
    font-weight: 600;
    padding: 10px 14px;
    transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
  }

  .pfe-top-course-cta:hover,
  .pfe-top-course-cta:focus {
    background: #002a38;
    border-color: #002a38;
    color: #ffffff !important;
  }