/* =========================================================
   City of Page – G.E.M. of the Month Widget  v1.1.0
   ========================================================= */

.cop-gem-wrap {
    background: #fff;
    border-radius: 14px;
    border-top: 4px solid #f0b429;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 2.5rem 2.5rem 2.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 2.25rem;
    font-family: "Montserrat", sans-serif;
    max-width: 100%;
}

/* ── Circular image + rotating dashed ring ──
   The wrap is larger than the image so the spinning dashed
   ::before ring has room to orbit outside the photo edge.
   ── */
.cop-gem-image-wrap {
    flex-shrink: 0;
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Spinning dashed ring */
.cop-gem-image-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px dashed #f0b429;
    animation: cop-gem-spin 22s linear infinite;
    /* Pause animation for users who prefer reduced motion */
}

@media (prefers-reduced-motion: reduce) {
    .cop-gem-image-wrap::before { animation: none; }
}

@keyframes cop-gem-spin {
    to { transform: rotate(360deg); }
}

.cop-gem-image-wrap img {
    width: 172px;
    height: 172px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    display: block;
    /* Thin white gap between photo edge and the dashed ring */
    border: 3px solid #fff;

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
    position: relative;
    z-index: 1; /* sit above the ring pseudo-element */
}

/* Placeholder shown when no image is set */
.cop-gem-image-placeholder {
    width: 172px;
    height: 172px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    position: relative;
    z-index: 1;
}

/* ── Content column ── */
.cop-gem-content {
    flex: 1;
    min-width: 0;
}

.cop-gem-title {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 0.25rem;
    line-height: 1.2;
}

.cop-gem-subtitle {
    font-size: 14px;
    font-style: italic;
    color: #64748b;
    margin: 0 0 0.9rem;
}

.cop-gem-divider {
    border: none;
    border-top: 1.5px solid #f0b429;
    margin: 0 0 0.9rem;
}

.cop-gem-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e3a5f;
    margin: 1.5rem 0 0.2rem;
}

.cop-gem-position {
    font-size: 14px;
    font-weight: 600;
    color: #d97706;
    margin: 0 0 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cop-gem-message {
    font-size: 14px;
    font-style: italic;
    color: #d97706;
    margin: 0;
    padding-top: 0.9rem;
    border-top: 1.5px solid #e2e8f0;
}

/* ── Responsive ── */
@media (max-width: 560px) {
    .cop-gem-wrap {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.75rem 1.5rem;
        gap: 1.5rem;
    }

    .cop-gem-image-wrap {
        width: 160px;
        height: 160px;
    }

    .cop-gem-image-wrap img,
    .cop-gem-image-placeholder {
        width: 136px;
        height: 136px;
    }
}
