
        /* main grid – 12 cards, 3 columns */
        .practice-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            /* gap: 1.8rem; */
            gap: 0.1rem;
            margin: 1rem 0 2rem;
        }

        /* card styles – clickable, headings only when closed */
        .practice-card {
            background: rgba(255, 255, 255);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            /* border-radius: 1rem; */
            padding: 0.5rem;
            box-shadow: 0 14px 28px -12px rgba(25, 40, 80, 0.15);
            transition: all 0.25s ease;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            user-select: none;
            -webkit-tap-highlight-color: transparent;
        }

        .practice-card:hover {
            /* transform: translateY(-6px); */
            background: white;
            box-shadow: 0 24px 38px -14px #1e2f4f40;
            border-color: #ffffff;
        }

        /* active (expanded) card */
        .practice-card.active {
            background: white;
            border-color: #3f5bb5;
            box-shadow: 0 28px 40px -14px #1f3a7a70;
            padding-bottom: 1.8rem;
        }

        /* icon + title row (always visible) */
        .card-header-compact {
            display: flex;
            align-items: center;
            gap: 0.9rem;
            margin-bottom: 0.5rem;
            pointer-events: none;  /* click handled by card */
        }

        .practice-icon {
            width: 48px;
            height: 48px;
            background: #eef3fe;
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #2d4494;
            font-size: 1.7rem;
            transition: 0.2s;
            flex-shrink: 0;
            display: none;
        }

        .practice-card.active .practice-icon {
            background: #2d4494;
            color: white;
        }

        .card-header-compact h3 {
            font-weight: 600;
            line-height: 1.4;
            color: #1f2b47;
            margin: 0;
        }

        /* PREVIEW TEXT IS REMOVED – only headings visible when card is closed.
           This empty block ensures nothing else shows. */
        .preview-text {
            display: none;
        }

        /* full description (hidden by default, shown only in active) */
        .full-description {
            max-height: 0;
            opacity: 0;
            overflow: hidden;
            transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin 0.3s;
            font-size: 0.98rem;
            color: #1f2e4f;
            line-height: 1.6;
            background: #f8faff;
            padding: 0 1rem;
            border-radius: 18px;
            margin-top: 0;
            border: 1px solid transparent;
        }

        .practice-card.active .full-description {
            max-height: 280px;        /* enough for any description */
            opacity: 1;
            padding: 1rem 1rem;
            margin-top: 1.2rem;
            border-color: #dbe1f5;
            background: #f5f9ff;
        }

        /* learn more link – only visible inside expanded area */
        .practice-link {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            font-weight: 550;
            color: #2d4494;
            text-decoration: none;
            border-radius: 40px;
            background: rgba(45, 68, 148, 0.08);
            padding: 0.4rem 1rem 0.4rem 1.2rem;
            margin-top: 0.8rem;
            font-size: 0.95rem;
            border: 1px solid rgba(45, 68, 148, 0.2);
            transition: background 0.2s;
            pointer-events: auto;
        }

        .practice-link i {
            transition: transform 0.2s;
            font-size: 0.85rem;
        }

        .practice-link:hover {
            background: rgba(45, 68, 148, 0.15);
            border-color: #2d4494;
        }

        .practice-link:hover i {
            transform: translateX(4px);
        }

        /* expand/collapse indicator (plus icon) – visible on all cards */
        .expand-hint {
            display: flex;
            justify-content: flex-end;
            margin-top: 0.2rem;
            font-size: 1rem;
            color: #7589b9;
            pointer-events: none;
        }

        .expand-hint i {
            transition: transform 0.3s;
        }

        .practice-card.active .expand-hint i {
            transform: rotate(45deg);
            color: #2d4494;
        }

        /* no description preview, no stray text – only headings until click */
        .practice-card .full-description {
            display: block; /* but collapsed via max-height/opacity */
        }

    .practice-card:focus-visible {
        outline: 3px solid #2d4494;
        outline-offset: 2px;
    }
    .practice-link:focus-visible {
        outline: 2px solid #1b2f70;
    }

        /* responsive grid */
        @media (max-width: 1000px) {
            .practice-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

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