/* AMCO Talent Cards – talent-cards.css */

/* ── Section wrapper ──────────────────────────────────────── */
.r4d-talent-section {
    width: 100%;
    box-sizing: border-box;
}

/* ── Header ───────────────────────────────────────────────── */
.r4d-talent-header {
    text-align: center;
    margin-bottom: 48px;
}

.r4d-talent-header-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #4CAF50;
    margin-bottom: 10px;
}

.r4d-talent-header-title {
    font-size: 44px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.1;
    margin: 0;
}

/* ── Grid ─────────────────────────────────────────────────── */
.r4d-talent-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ── Card ─────────────────────────────────────────────────── */
.r4d-talent-card {
    position: relative;
    border-radius: 16px;
    min-height: 240px;
    padding: 28px;
    background-color: #ffffff;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: default;
    /* reset link defaults so <a> versions look identical to <div> */
    text-decoration: none;
    color: inherit;

    /* Smooth transition for all color changes */
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.r4d-talent-card:hover {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
    transform: translateY(-2px);
}

/* Card-as-link variant ──────────────────────────────────── */
.r4d-talent-card--link {
    cursor: pointer;
}
.r4d-talent-card--link:hover,
.r4d-talent-card--link:focus,
.r4d-talent-card--link:focus-visible,
.r4d-talent-card--link:active,
.r4d-talent-card--link:visited {
    text-decoration: none;
    color: inherit;
}
.r4d-talent-card--link:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

/* ── Background image layer (hidden by default) ───────────── */
.r4d-tc-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.40s ease;
    z-index: 0;
}

.r4d-tc-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Show background on hover */
.r4d-talent-card:hover .r4d-tc-bg-image {
    opacity: 1;
}

/* ── Content layer (sits above background) ────────────────── */
.r4d-tc-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: inherit;
}

/* ── Icon wrapper ─────────────────────────────────────────── */
.r4d-tc-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background-color: var(--r4d-tc-icon-bg, rgba(76,175,80,0.12));
    color: var(--r4d-tc-icon-color, #4CAF50);
    flex-shrink: 0;
    transition: background-color 0.35s ease, color 0.35s ease;
    align-self: flex-start;
}

.r4d-tc-icon-wrap i,
.r4d-tc-icon-wrap svg {
    font-size: 24px;
    width: 24px;
    height: 24px;
    transition: color 0.35s ease;
}

/* On hover: icon background becomes white/transparent, icon white */
.r4d-talent-card:hover .r4d-tc-icon-wrap {
    background-color: rgba(255, 255, 255, 0.20);
    color: #ffffff;
}

/* ── Text block ───────────────────────────────────────────── */
.r4d-tc-text {
    margin-top: auto;
    padding-top: 32px;
}

.r4d-tc-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    line-height: 1.2;
    transition: color 0.35s ease;
}

.r4d-tc-desc {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.55;
    margin: 0;
    transition: color 0.35s ease;
}

/* On hover: title and description turn white */
.r4d-talent-card:hover .r4d-tc-title {
    color: #ffffff;
}

.r4d-talent-card:hover .r4d-tc-desc {
    color: rgba(255, 255, 255, 0.85);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .r4d-talent-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .r4d-talent-header-title {
        font-size: 36px;
    }
}

@media (max-width: 600px) {
    .r4d-talent-grid {
        grid-template-columns: 1fr !important;
    }
    .r4d-talent-header-title {
        font-size: 28px;
    }
    .r4d-talent-header {
        margin-bottom: 28px;
    }
}

@media (max-width: 400px) {
    .r4d-talent-header-title { font-size: 24px; }
    .r4d-talent-card { border-radius: 14px; }
}
