.aflc-section {
    --aflc-primary: var(--af-primary, #67e8f9);
    --aflc-secondary: var(--af-secondary, #a78bfa);
    --aflc-green: var(--af-green, #6ee7b7);
    --aflc-surface: var(--af-surface, #0d1c2d);
    --aflc-surface-2: var(--af-surface-2, #11243a);
    --aflc-text: var(--af-text, #f4f9ff);
    --aflc-muted: var(--af-muted, #b2c1d0);
    --aflc-border: var(--af-border, #24405a);
    color: var(--aflc-text);
}

.aflc-section,
.aflc-section * {
    box-sizing: border-box;
}

.aflc-heading {
    max-width: 800px;
    margin: 0 0 30px;
}

.aflc-eyebrow {
    margin: 0 0 8px;
    color: var(--aflc-primary);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.aflc-heading h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.aflc-intro {
    max-width: 720px;
    margin: 12px 0 0;
    color: var(--aflc-muted);
    font-size: 1.04rem;
}

.aflc-grid {
    display: grid;
    grid-template-columns:
        repeat(var(--aflc-columns, 3), minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.aflc-item {
    min-width: 0;
    margin: 0;
}

.aflc-card {
    position: relative;
    min-height: 350px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 26px;
    border: 1px solid var(--aflc-border);
    border-radius: 20px;
    background: var(--aflc-surface);
    box-shadow: 0 10px 25px rgb(0 0 0 / 18%);
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.aflc-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background:
        linear-gradient(
            90deg,
            var(--aflc-primary),
            var(--aflc-secondary),
            var(--aflc-green)
        );
}

.aflc-card::after {
    content: "";
    position: absolute;
    top: -68px;
    right: -68px;
    width: 155px;
    height: 155px;
    border: 1px solid rgb(103 232 249 / 10%);
    border-radius: 50%;
    box-shadow:
        0 0 0 28px rgb(103 232 249 / 1.4%),
        0 0 0 56px rgb(167 139 250 / 1%);
    pointer-events: none;
}

.aflc-card:hover,
.aflc-card:focus-within {
    transform: translateY(-5px);
    border-color: var(--aflc-primary);
    box-shadow: 0 16px 34px rgb(0 0 0 / 26%);
}

.aflc-card-top,
.aflc-meta,
.aflc-card h3,
.aflc-description,
.aflc-link {
    position: relative;
    z-index: 1;
}

.aflc-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.aflc-icon {
    width: 54px;
    height: 54px;
    display: grid;
    flex: 0 0 54px;
    place-items: center;
    border: 1px solid var(--aflc-border);
    border-radius: 15px;
    background: var(--aflc-surface-2);
    color: var(--aflc-primary);
    font-size: 0.84rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.aflc-number {
    color: var(--aflc-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.aflc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 15px;
}

.aflc-meta span {
    padding: 4px 9px;
    border: 1px solid var(--aflc-border);
    border-radius: 999px;
    color: var(--aflc-muted);
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.35;
}

.aflc-card h3 {
    margin: 0 0 11px;
    color: #fff;
    font-size: clamp(1.23rem, 2vw, 1.5rem);
    line-height: 1.18;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.aflc-description {
    margin: 0 0 22px;
    color: var(--aflc-muted);
    font-size: 0.94rem;
    line-height: 1.62;
}

.aflc-link {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding: 10px 11px 10px 15px;
    border: 1px solid var(--aflc-border);
    border-radius: 12px;
    background: var(--aflc-surface-2);
    color: var(--aflc-text);
    font-size: 0.91rem;
    font-weight: 900;
    text-decoration: none;
    transition:
        background 150ms ease,
        border-color 150ms ease,
        color 150ms ease;
}

.aflc-link:visited {
    color: var(--aflc-text);
}

.aflc-link:hover,
.aflc-link:focus-visible {
    border-color: var(--aflc-primary);
    background: var(--aflc-primary);
    color: #07111f;
}

.aflc-link:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.aflc-arrow {
    width: 28px;
    height: 28px;
    display: grid;
    flex: 0 0 28px;
    place-items: center;
    border-radius: 8px;
    background: rgb(7 17 31 / 13%);
    color: inherit;
    font-size: 1rem;
    transition: transform 150ms ease;
}

.aflc-link:hover .aflc-arrow,
.aflc-link:focus-visible .aflc-arrow {
    transform: translateX(3px);
}

.aflc-empty {
    padding: 18px;
    border: 1px solid var(--aflc-border);
    border-radius: 12px;
    background: var(--aflc-surface);
    color: var(--aflc-muted);
}

@media (max-width: 960px) {
    .aflc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .aflc-card {
        min-height: 0;
        padding: 23px;
        border-radius: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aflc-card,
    .aflc-link,
    .aflc-arrow {
        transition: none;
    }
}