/**
 * Career Challenges section – modern layout and cards.
 * Uses bordered-section for wrapper; this file styles inner content.
 */

.aptly-challenges-content {
    --challenges-accent: #08BBD2;
    --challenges-accent-soft: rgba(8, 187, 210, 0.12);
    --challenges-text: #1a1a1a;
    --challenges-text-muted: #52525b;
    --challenges-border: rgba(0, 0, 0, 0.08);
    --challenges-card-bg: #ffffff;
    --challenges-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    --challenges-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    --challenges-radius: 16px;
    --challenges-radius-sm: 10px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0.5rem 0;
    box-sizing: border-box;
}

.aptly-challenges-header {
    text-align: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.aptly-challenges-heading {
    font-size: clamp(1.5rem, 3.2vw + 0.5rem, 2.5rem);
    font-weight: 600;
    color: var(--challenges-text);
    margin: 0 0 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.aptly-challenges-intro {
    font-size: clamp(0.9375rem, 1.1vw + 0.8rem, 0.725rem);
    line-height: 1.65;
    color: var(--challenges-text-muted);
    margin: 0;
    font-weight: 400;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.aptly-challenges-cta {
    text-align: center;
    max-width: 640px;
}

.aptly-challenges-cta .aptly-career-cta-email {
    display: inline-flex;
    align-items: center;
    padding: 0.35em 0.75em;
    margin: 0 -0.35em;
    font-weight: 600;
    color: var(--challenges-accent);
    text-decoration: none;
    border-radius: var(--challenges-radius-sm);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.aptly-challenges-cta .aptly-career-cta-email:hover {
    color: #066f7d;
    background-color: var(--challenges-accent-soft);
}

.aptly-challenges-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
}

.aptly-challenge-card {
    position: relative;
    padding: 1.75rem 1.5rem;
    border: 1px solid var(--challenges-border);
    border-radius: var(--challenges-radius);
    background: var(--challenges-card-bg);
    box-shadow: var(--challenges-shadow);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
    overflow: hidden;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.aptly-challenge-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--challenges-accent), #0dd4e8);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.aptly-challenge-card:hover {
    border-color: transparent;
    box-shadow: var(--challenges-shadow-hover);
    transform: translateY(-4px);
}

.aptly-challenge-card:hover::before {
    opacity: 1;
}

.aptly-challenge-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.35em 0.75em;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--challenges-accent);
    background: var(--challenges-accent-soft);
    border-radius: 6px;
    margin: 0;
    text-transform: none;
    letter-spacing: 0.03em;
}

.aptly-challenge-title {
    font-size: clamp(1.0625rem, 1.15vw, 1.25rem);
    font-weight: 600;
    color: var(--challenges-text);
    margin: 0;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.aptly-challenge-desc {
    font-size: clamp(0.8125rem, 0.95vw + 0.7rem, 0.9375rem);
    line-height: 1.6;
    color: var(--challenges-text-muted);
    margin: 0;
    font-weight: 400;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .aptly-challenges-header {
        text-align: left;
    }

    .aptly-challenges-content {
        gap: 2rem;
    }

    .aptly-challenges-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .aptly-challenge-card {
        padding: 1.5rem 1.25rem;
    }
}
