@property --border-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

/* BASE */
.uffizio-border-box {
    --border-angle: 0deg;

    padding: 30px;
    border-radius: 12px;

    /* ALWAYS 2px – never changes */
    border: 2px solid transparent;
    box-sizing: border-box;

    /* FAKE 1px border */
    background:
        linear-gradient(#020b17, #031224) padding-box,
        linear-gradient(#052d54, #052d54) border-box;

    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    height: 100%;
    color: #fff;
}

/* HOVER – animated 2px border */
.uffizio-border-box:hover {
    animation: border-rotate 3.5s linear infinite;

    background:
        linear-gradient(#010813, #010913) padding-box,
        conic-gradient(from var(--border-angle),
            hsl(216.73deg 81.91% 20.03%) 50%,
            #6fb8ff) border-box;

    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

@keyframes border-rotate {
    to {
        --border-angle: 360deg;
    }
}


.uffizio-border-box-icon {
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.uffizio-border-box-icon i {
    font-size: 40px;
    color: #00aaff;
}

.uffizio-border-box-icon svg {
    width: 40px;
    height: auto;
    fill: #00aaff;
}

.uffizio-border-box-icon img {
    width: 40px;
    height: auto;
}

.uffizio-border-box-title {
    font-family: var(--uffizio-font-heading) !important;
    font-size: 26px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--uffizio-text-white);
    margin-bottom: 15px;
    line-height: 1.2;
}

.uffizio-border-box-description {
    font-size: 16px;
    color: #e0e0e0;
    line-height: 1.6;
}

.uffizio-border-box a {
    text-decoration: none;
}