body.home-page .home-flashcards {
    padding: clamp(2rem, 4vw, 3.5rem) 0;
    background: #f4faf6;
}

.home-flashcards__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
}

.home-flashcards__heading h2 { margin: 0.35rem 0 0.5rem; }
.home-flashcards__heading p { margin: 0; color: #52675b; line-height: 1.6; }
.home-flashcards__start { flex-shrink: 0; gap: 0.75rem; }
.home-flashcards__meta { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 1.2rem 0; color: #52675b; font-size: 0.92rem; }
.home-flashcards__meta strong { color: #1c7147; }

.home-flashcards__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.home-flashcard-topic {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
    min-height: 106px;
    padding: 1rem;
    border: 1px solid #d5e6dc;
    border-radius: 16px;
    color: #243e2f;
    background: #fff;
    text-decoration: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.home-flashcard-topic:hover { border-color: #3a9161; box-shadow: 0 6px 20px rgba(25, 83, 48, 0.08); }
.home-flashcard-topic:focus-visible, .home-flashcards__all:focus-visible { outline: 3px solid #267b4b; outline-offset: 3px; }
.home-flashcard-topic__icon { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; background: #eef8f1; font-size: 1.7rem; }
.home-flashcard-topic__copy { flex: 1; min-width: 0; }
.home-flashcard-topic__copy strong { display: block; font-size: 1rem; line-height: 1.45; overflow-wrap: anywhere; }
.home-flashcard-topic__copy small { display: block; margin-top: 0.35rem; color: #687b6e; font-size: 0.82rem; }
.home-flashcard-topic__arrow { color: #267b4b; font-weight: 800; }
.home-flashcards__all { display: inline-flex; align-items: center; gap: 0.55rem; margin-top: 1.15rem; color: #1c7147; font-weight: 800; text-decoration: none; }
.home-flashcards__all:hover { text-decoration: underline; }
.home-flashcards__empty { margin: 1.25rem 0 0; color: #52675b; line-height: 1.6; }

@media (max-width: 980px) { .home-flashcards__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
    .home-flashcards__heading { flex-direction: column; align-items: flex-start; }
    .home-flashcards__grid { grid-template-columns: minmax(0, 1fr); }
    .home-flashcard-topic:nth-child(n + 3) { display: none; }
    .home-flashcards__start { width: 100%; justify-content: center; }
}
