/* Container alignment grid */
.sidedept-badges-container .wp-block-columns {
    display: flex;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
}

/* Master Round Badge Architecture.
   overflow:hidden keeps every text node fully inside the circle (it may wrap
   inside, but never leaks past the rounded edge). */
.sidedept-circle-badge {
    border-radius: 50% !important;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    padding: clamp(22px, 2.6vw, 30px) !important;
    box-sizing: border-box !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
}

/* Individual Background Themes matching image spec */
.sidedept-circle-badge.is-blue {
    background: linear-gradient(135deg, #0073aa, #005177) !important;
}

.sidedept-circle-badge.is-green {
    background: linear-gradient(135deg, #00bfa5, #00796b) !important;
}

.sidedept-circle-badge.is-dark-gray {
    background: linear-gradient(135deg, #2d3748, #1a202c) !important;
}

/* Fine-tune internal typography metrics */
.sidedept-circle-badge .wp-block-image {
    margin-bottom: 10px !important;
}

.sidedept-circle-badge h3,
.sidedept-circle-badge p {
    color: #ffffff !important;
    margin: 4px 0 !important;
    /* Wrap only at word boundaries; never break a word mid-way */
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    max-width: 100% !important;
}

.sidedept-circle-badge h3 {
    font-size: clamp(0.68rem, 0.92vw, 1rem) !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
}

.sidedept-circle-badge p {
    font-size: clamp(0.66rem, 0.85vw, 0.8rem) !important;
    line-height: 1.3 !important;
    opacity: 0.85;
}

/* Chevron Spacer Styling */
.sidedept-chevron-spacer {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 2rem !important;
    font-weight: bold !important;
    text-align: center !important;
}

.sidedept-chevron-spacer p {
    color: inherit !important;
    font-size: inherit !important;
    line-height: 1 !important;
    margin: 0 !important;
}

/* Very small desktops / tablets: keep perfect circles but center them in a
   stacked column so the copy stays legible. Chevrons remain visible, rotated
   to point down between the stacked badges. */
@media (max-width: 900px) {
    .sidedept-badges-container .wp-block-columns {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        gap: 32px !important;
    }
    .sidedept-circle-badge {
        flex: 0 0 auto !important;
        width: min(420px, 100%) !important;
        max-width: 100% !important;
        aspect-ratio: 1 / 1 !important;
        border-radius: 50% !important;
        padding: clamp(24px, 5vw, 40px) !important;
    }
    .sidedept-chevron-spacer {
        flex: 0 0 auto !important;
        height: 40px !important;
        width: auto !important;
        font-size: 2.2rem !important;
    }
    .sidedept-chevron-spacer p {
        transform: rotate(90deg);
        display: block !important;
    }
}