/* Homepage Featured Blog topic controls only.
   The section's visual design remains in css/request-quote.css. */

.fqp-featured-blog-image figure img,
.fqp-featured-blog-content h2,
.fqp-featured-blog-content h2 + p {
    transition: opacity 180ms ease;
}

.fqp-featured-blog-image.is-changing figure img,
.fqp-featured-blog-content.is-changing h2,
.fqp-featured-blog-content.is-changing h2 + p {
    opacity: 0;
}

.fqp-featured-blog-controls:not([hidden]) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-top: 30px;
}

.fqp-featured-blog-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    background: transparent;
    color: #ffffff;
    font-size: 15px;
    cursor: pointer;
    transition:
        background-color 250ms ease,
        border-color 250ms ease,
        color 250ms ease;
}

.fqp-featured-blog-arrow:hover {
    border-color: #ffffff;
    background: #ffffff;
    color: #0b315b;
}

.fqp-featured-blog-dots {
    display: flex;
    align-items: center;
    gap: 2px;
}

/* 28px hit area around a smaller visible indicator. */
.fqp-featured-blog-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.fqp-featured-blog-dot::before {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.45);
    transition:
        width 250ms ease,
        background-color 250ms ease;
}

.fqp-featured-blog-dot:hover::before {
    background: rgba(255, 255, 255, 0.8);
}

.fqp-featured-blog-dot[aria-current="true"]::before {
    width: 22px;
    background: var(--accent-color);
}

.fqp-featured-blog-arrow:focus-visible,
.fqp-featured-blog-dot:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
    border-radius: 100px;
}

@media (max-width: 575px) {
    .fqp-featured-blog-controls:not([hidden]) {
        gap: 10px;
    }

    .fqp-featured-blog-dots {
        gap: 0;
    }
}

/* Keep both arrows beside all six indicators on narrow phones. */
@media (max-width: 353px) {
    .fqp-featured-blog-controls:not([hidden]) {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        gap: 4px;
    }

    .fqp-featured-blog-dots {
        min-width: 0;
        justify-content: space-between;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fqp-featured-blog-image figure img,
    .fqp-featured-blog-content h2,
    .fqp-featured-blog-content h2 + p,
    .fqp-featured-blog-arrow,
    .fqp-featured-blog-dot::before {
        transition: none;
    }
}
