/* ==========================================================================
   Veltro Careers — card styles
   Self contained. Uses a scoped class so it will not clash with the theme.
   ========================================================================== */

.veltro-careers {
    --vc-gold: #c9a227;
    --vc-gold-deep: #b8941f;
    --vc-gold-soft: rgba(201, 162, 39, 0.1);
    --vc-gold-border: rgba(201, 162, 39, 0.28);
    --vc-ink: #1a1a1a;
    --vc-ink-soft: #4a4a4a;
    --vc-ink-faint: #6e6e6e;
    --vc-cream: #f3efe6;
    --vc-cream-2: #ece7da;
    --vc-white: #ffffff;

    display: grid;
    gap: 24px;
    font-family: inherit;
}

.veltro-careers.veltro-cols-1 { grid-template-columns: 1fr; }
.veltro-careers.veltro-cols-2 { grid-template-columns: repeat(2, 1fr); }
.veltro-careers.veltro-cols-3 { grid-template-columns: repeat(3, 1fr); }

.veltro-card {
    position: relative;
    background: linear-gradient(145deg, #ffffff 0%, #faf7f0 100%);
    border: 1px solid var(--vc-cream-2);
    border-radius: 6px;
    padding: 36px 36px 30px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    isolation: isolate;
}

/* animated gold border on hover */
.veltro-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 6px;
    padding: 1px;
    background: linear-gradient(135deg, var(--vc-gold), transparent 40%, transparent 60%, var(--vc-gold-deep));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
    pointer-events: none;
}

.veltro-card:hover::after { opacity: 1; }

/* radial glow */
.veltro-card::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -30%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.12) 0%, transparent 65%);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 0;
    pointer-events: none;
}

.veltro-card:hover::before { opacity: 1; }

.veltro-watermark {
    position: absolute;
    top: 10px;
    right: 24px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 96px;
    font-weight: 600;
    color: rgba(201, 162, 39, 0.07);
    line-height: 1;
    pointer-events: none;
    transition: all 0.5s ease;
    z-index: 0;
}

.veltro-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(40, 30, 0, 0.13);
}

.veltro-card:hover .veltro-watermark {
    color: rgba(201, 162, 39, 0.16);
    transform: scale(1.05);
}

.veltro-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.veltro-type {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--vc-gold-deep);
    padding: 6px 14px;
    background: var(--vc-gold-soft);
    border: 1px solid var(--vc-gold-border);
    border-radius: 30px;
}

.veltro-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 30px;
    font-weight: 600;
    color: var(--vc-ink);
    line-height: 1.12;
    margin: 0 0 16px;
    position: relative;
    z-index: 1;
}

.veltro-desc {
    font-size: 14px;
    color: var(--vc-ink-soft);
    line-height: 1.78;
    margin: 0 0 24px;
    position: relative;
    z-index: 1;
    flex: 1;
}

.veltro-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 26px;
    position: relative;
    z-index: 1;
}

.veltro-meta span {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--vc-ink-soft);
    background: var(--vc-white);
    border: 1px solid var(--vc-cream-2);
    padding: 8px 14px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.3s ease;
}

.veltro-card:hover .veltro-meta span { border-color: var(--vc-gold-border); }

.veltro-meta span svg {
    width: 13px;
    height: 13px;
    stroke: var(--vc-gold-deep);
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.veltro-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 22px;
    border-top: 1px solid var(--vc-cream-2);
    position: relative;
    z-index: 1;
}

.veltro-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.veltro-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.veltro-status.open { color: #2e7d32; }
.veltro-status.open::before {
    background: #2e7d32;
    box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.4);
    animation: veltro-pulse 2s infinite;
}

@keyframes veltro-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.4); }
    70%  { box-shadow: 0 0 0 6px rgba(46, 125, 50, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0); }
}

.veltro-status.closed { color: #9a9a9a; }
.veltro-status.closed::before { background: #9a9a9a; }

.veltro-apply {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--vc-gold-deep);
    text-decoration: none;
    white-space: nowrap;
    padding: 9px 18px;
    border: 1px solid var(--vc-gold-border);
    border-radius: 30px;
    transition: all 0.35s ease;
}

.veltro-apply:hover {
    background: var(--vc-gold);
    border-color: var(--vc-gold);
    color: #fff;
    gap: 13px;
    box-shadow: 0 8px 20px rgba(201, 162, 39, 0.3);
}

/* closed state */
.veltro-card.is-closed { opacity: 0.58; filter: saturate(0.7); }
.veltro-card.is-closed:hover { transform: none; box-shadow: none; }
.veltro-card.is-closed:hover::after,
.veltro-card.is-closed:hover::before { opacity: 0; }
.veltro-card.is-closed .veltro-apply {
    color: var(--vc-ink-faint);
    border-color: var(--vc-cream-2);
    cursor: not-allowed;
    pointer-events: none;
}

.veltro-empty {
    text-align: center;
    color: #777;
    padding: 40px;
    font-style: italic;
}

/* responsive */
@media (max-width: 900px) {
    .veltro-careers.veltro-cols-2,
    .veltro-careers.veltro-cols-3 { grid-template-columns: 1fr; }
}
