.hfcql-wrap {
    --hfcql-stagger: 55px;
    --hfcql-hover-scale: 1.04;
    --hfcql-speed: 250ms;
    --hfcql-ring-width: 14px;
    --hfcql-ring-colour: #AFC3EF;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.hfcql-grid {
    display: grid !important;
    width: 100%;
    max-width: 100%;
    align-items: center;
    justify-items: center;
    padding-block: var(--hfcql-stagger);
    overflow: visible;
}

/* Every repeater item remains available on every breakpoint. */
.hfcql-item {
    width: 100%;
    min-width: 0;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    justify-content: center;
    overflow: visible;
}

.hfcql-positioner {
    width: 100%;
    min-width: 0;
    display: flex !important;
    justify-content: center;
    overflow: visible;
}

.hfcql-item:nth-child(odd) .hfcql-positioner {
    transform: translateY(var(--hfcql-stagger));
}

.hfcql-item:nth-child(even) .hfcql-positioner {
    transform: translateY(calc(-1 * var(--hfcql-stagger)));
}

.hfcql-circle {
    aspect-ratio: 1 / 1;
    max-width: 100%;
    flex: 0 1 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none !important;
    position: relative;
    overflow: visible;
    transition:
        transform var(--hfcql-speed) ease,
        background-color var(--hfcql-speed) ease,
        box-shadow var(--hfcql-speed) ease;
    transform: scale(1);
    isolation: isolate;
    box-sizing: border-box;
    container-type: inline-size;
}

/* Outline appears only on hover/focus. */
.hfcql-circle::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 var(--hfcql-ring-width) var(--hfcql-ring-colour);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--hfcql-speed) ease;
    z-index: 4;
}

.hfcql-circle:hover,
.hfcql-circle:focus-visible {
    transform: scale(var(--hfcql-hover-scale));
    text-decoration: none !important;
}

.hfcql-circle:hover::after,
.hfcql-circle:focus-visible::after {
    opacity: 1;
}

.hfcql-circle:focus-visible {
    outline: none;
}

/* Background photograph stays centred and fills the circle. */
.hfcql-background,
.hfcql-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
}

.hfcql-background {
    z-index: -2;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.hfcql-overlay {
    z-index: -1;
}

/* The entire text/icon stack is always centred horizontally and vertically. */
.hfcql-content {
    position: absolute;
    z-index: 2;
    inset: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    line-height: 1.08;
    padding: inherit;
}

.hfcql-title,
.hfcql-subtitle {
    display: block;
    width: auto;
    max-width: 100%;
    margin-inline: auto;
    text-align: center;
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
    transform-origin: center center;
}

/* Sensible fluid fallbacks; JS then reduces the text further when required. */
.hfcql-title {
    font-weight: 700;
    font-size: clamp(13px, 10cqw, 28px);
}

.hfcql-subtitle {
    font-weight: 600;
    font-size: clamp(10px, 6.5cqw, 17px);
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    margin: 0;
    transform: translateY(5px);
    transition:
        opacity var(--hfcql-speed) ease,
        transform var(--hfcql-speed) ease,
        max-height var(--hfcql-speed) ease,
        visibility 0s linear var(--hfcql-speed);
}

/* "Find Out More" is revealed on every circle on hover/focus. */
.hfcql-circle:hover .hfcql-subtitle,
.hfcql-circle:focus-visible .hfcql-subtitle {
    opacity: 1;
    visibility: visible;
    max-height: 3em;
    transform: translateY(0);
    transition:
        opacity var(--hfcql-speed) ease,
        transform var(--hfcql-speed) ease,
        max-height var(--hfcql-speed) ease,
        visibility 0s;
}

.hfcql-graphic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.hfcql-graphic svg,
.hfcql-graphic i {
    display: block;
}

.hfcql-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.elementor-widget-hfc-quick-links .hfcql-circle,
.elementor-widget-hfc-quick-links .hfcql-circle * {
    box-sizing: border-box;
}

.elementor-widget-hfc-quick-links .hfcql-circle p,
.elementor-widget-hfc-quick-links .hfcql-circle img {
    margin: 0;
}

@media (max-width: 1024px) {
    .hfcql-wrap,
    .hfcql-grid,
    .hfcql-item,
    .hfcql-positioner {
        overflow: visible;
    }
}

@media (max-width: 767px) {
    .hfcql-item {
        display: flex !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hfcql-circle,
    .hfcql-circle::after,
    .hfcql-subtitle {
        transition: none;
    }
}
