/**
 * Blocos dinâmicos da página de detalhe da graduação.
 * Depende das variáveis definidas em fef-course-detail.css.
 */

[data-fef-course-detail] .fef-detail__content-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

[data-fef-course-detail] .fef-detail__content-heading-main {
    min-width: 0;
}

[data-fef-course-detail] .fef-detail__content-heading-main .fef-detail__section-heading {
    margin-bottom: 10px;
}

[data-fef-course-detail] .fef-detail__content-heading-main .fef-detail__section-title {
    margin-bottom: 6px;
}

[data-fef-course-detail] .fef-detail__content-heading-main .fef-detail__section-intro {
    margin-bottom: 0;
}

[data-fef-course-detail] .fef-detail__content-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    color: var(--fef-detail-area-ink);
    background: var(--fef-detail-area-soft);
    border: 1px solid var(--fef-detail-area-border);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1.4;
    text-transform: uppercase;
}

[data-fef-course-detail] .fef-detail__content-badge--azul {
    color: #173f99;
    background: #edf3ff;
    border-color: #a9c2ff;
}

[data-fef-course-detail] .fef-detail__content-badge--coral {
    color: #851b1b;
    background: #fff0f0;
    border-color: #e5a0a0;
}

[data-fef-course-detail] .fef-detail__content-badge--verde {
    color: #006644;
    background: #e8f8f0;
    border-color: #9dddbd;
}

[data-fef-course-detail] .fef-detail__content-badge--laranja {
    color: #9a3900;
    background: #fff0e5;
    border-color: #f4a261;
}

[data-fef-course-detail] .fef-detail__content-badge--turquesa {
    color: #00675f;
    background: #e3faf7;
    border-color: #7bded3;
}

[data-fef-course-detail] .fef-detail__content-badge--cinza {
    color: #34495e;
    background: #edf2f6;
    border-color: #b6c3ce;
}

[data-fef-course-detail] .fef-detail__content-badge--neutro {
    color: var(--fef-detail-copy);
    background: var(--fef-detail-soft);
    border-color: var(--fef-detail-border);
}

html.dark-mode [data-fef-course-detail] .fef-detail__content-badge--azul {
    color: #a8c4ff;
    background: #29374e;
    border-color: #4569a8;
}

html.dark-mode [data-fef-course-detail] .fef-detail__content-badge--coral {
    color: #ffaaaa;
    background: #482d31;
    border-color: #a7434a;
}

html.dark-mode [data-fef-course-detail] .fef-detail__content-badge--verde {
    color: #7de0b8;
    background: #243f37;
    border-color: #397d62;
}

html.dark-mode [data-fef-course-detail] .fef-detail__content-badge--laranja {
    color: #ffb27e;
    background: #493126;
    border-color: #b75a24;
}

html.dark-mode [data-fef-course-detail] .fef-detail__content-badge--turquesa {
    color: #8de9df;
    background: #213d3d;
    border-color: #397f78;
}

html.dark-mode [data-fef-course-detail] .fef-detail__content-badge--cinza {
    color: #cad5df;
    background: #353d45;
    border-color: #5e6b78;
}

[data-fef-course-detail] .fef-detail__content-grid {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

[data-fef-course-detail] .fef-detail__content-grid--icons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

[data-fef-course-detail] .fef-detail__content-grid--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

[data-fef-course-detail] .fef-detail__content-grid--media {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

[data-fef-course-detail] .fef-detail__content-card {
    background: var(--fef-detail-soft);
    border: 2px solid var(--fef-detail-border);
    border-radius: 12px;
}

[data-fef-course-detail] .fef-detail__content-grid--icons .fef-detail__content-card {
    padding: 18px;
    border-color: var(--fef-detail-area-border);
    transition: border-color .18s ease;
}

[data-fef-course-detail] .fef-detail__content-grid--icons .fef-detail__content-card:hover {
    border-color: var(--fef-detail-primary);
}

[data-fef-course-detail] .fef-detail__content-grid--compact .fef-detail__content-card {
    padding: 16px;
    transition: border-color .18s ease;
}

[data-fef-course-detail] .fef-detail__content-grid--compact .fef-detail__content-card:hover {
    border-color: var(--fef-detail-area-border);
}

[data-fef-course-detail] .fef-detail__content-grid--media .fef-detail__content-card {
    overflow: hidden;
    border-width: 1px;
    border-radius: 14px;
}

[data-fef-course-detail] .fef-detail__content-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 10px;
    color: var(--fef-detail-area-ink);
    background: var(--fef-detail-area-soft);
    border-radius: 9px;
    font-size: 20px;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

[data-fef-course-detail] .fef-detail__content-grid--compact .fef-detail__content-card-icon {
    width: 38px;
    height: 38px;
    background: var(--fef-detail-surface);
    border: 1px solid var(--fef-detail-border);
}

[data-fef-course-detail] .fef-detail__content-grid--compact .fef-detail__content-card:hover .fef-detail__content-card-icon {
    color: #ffffff;
    background: var(--fef-detail-primary);
    border-color: var(--fef-detail-primary);
}

[data-fef-course-detail] .fef-detail__content-card-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 2 / 1;
    color: var(--fef-detail-area-ink);
    background: var(--fef-detail-area-soft);
}

[data-fef-course-detail] .fef-detail__content-card-media .material-symbols-outlined {
    font-size: 48px;
}

[data-fef-course-detail] .fef-detail__content-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

[data-fef-course-detail] .fef-detail__content-card-media-label {
    position: absolute;
    left: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
    padding: 4px 8px;
    overflow: hidden;
    color: #ffffff;
    background: rgba(15, 23, 42, .72);
    border-radius: 6px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .06em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

[data-fef-course-detail] .fef-detail__content-card-body {
    min-width: 0;
}

[data-fef-course-detail] .fef-detail__content-grid--media .fef-detail__content-card-body {
    padding: 16px;
}

[data-fef-course-detail] .fef-detail__content-card-title {
    margin: 0 0 5px;
    color: var(--fef-detail-ink);
    font-size: 15px;
    font-weight: 700;
}

[data-fef-course-detail] .fef-detail__content-card-copy {
    margin: 0;
    color: var(--fef-detail-muted);
    font-size: 12px;
    line-height: 1.6;
}

@media (max-width: 1023px) {
    [data-fef-course-detail] .fef-detail__content-grid--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    [data-fef-course-detail] .fef-detail__content-grid--media {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    [data-fef-course-detail] .fef-detail__content-heading {
        flex-direction: column;
    }

    [data-fef-course-detail] .fef-detail__content-grid--icons,
    [data-fef-course-detail] .fef-detail__content-grid--compact,
    [data-fef-course-detail] .fef-detail__content-grid--media {
        grid-template-columns: minmax(0, 1fr);
    }
}
