/* Frontend grid for [nos_formations] */
.gf-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin: 0 0 40px;
}

.gf-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid #ebebeb;
}

.gf-card__link {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    color: inherit;
    text-decoration: none !important;
}

.gf-card .gf-card__link:link,
.gf-card .gf-card__link:visited,
.gf-card .gf-card__link:hover,
.gf-card .gf-card__link:focus,
.gf-card .gf-card__link:active,
.gf-card .gf-card__link *,
.gf-card .gf-card__title,
.gf-card .gf-card__excerpt {
    text-decoration: none !important;
}

.gf-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.13);
}

.gf-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.13);
}

.gf-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f0f4f8;
}

.gf-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gf-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #8294a9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gf-card__body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

.gf-card__title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.35;
    margin: 0;
}

.gf-card__excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    flex: 1;
}

.gf-no-formations {
    text-align: center;
    color: #666;
    padding: 40px 0;
    font-size: 16px;
}

.gf-pagination {
    display: flex;
    justify-content: center;
    margin: 24px 0 0;
}

.gf-pagination .page-numbers {
    list-style: none;
    display: flex;
    gap: 6px;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.gf-pagination .page-numbers li a,
.gf-pagination .page-numbers li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #0f3460;
    background: #f0f4f8;
    transition: background 0.2s, color 0.2s;
    border: 1px solid #dde3ec;
}

.gf-pagination .page-numbers li a:hover {
    background: #0f3460;
    color: #fff;
    border-color: #0f3460;
}

.gf-pagination .page-numbers li span.current {
    background: #0f3460;
    color: #fff;
    border-color: #0f3460;
}

.gf-pagination .page-numbers li span.dots {
    background: transparent;
    border-color: transparent;
    color: #9ca3af;
}

@media (max-width: 768px) {
    .gf-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.gf-shell {
    margin-top: 50px !important;
}
