.escola-page-wrap {
    padding: 2rem 0 3rem;
}

.escola-page-wrap .container,
.escola-page-wrap.container {
    max-width: 1220px;
}

.escola-page-hero {
    background: linear-gradient(135deg, #0f2344 0%, #1b3a6b 50%, #1e73e8 100%);
    color: #fff;
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.2);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.escola-page-hero::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -70px;
    top: -80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .25) 0%, transparent 62%);
    pointer-events: none;
}

.escola-page-title {
    font-size: clamp(1.5rem, 2.3vw, 2.2rem);
    font-weight: 800;
    margin: 0;
}

.escola-page-subtitle {
    margin-top: .4rem;
    margin-bottom: 0;
    color: #eef5ff;
}

.escola-btn-back {
    background: linear-gradient(135deg, #1e73e8, #19b4cf);
    border: none;
    color: #fff !important;
    border-radius: 10px;
    font-weight: 700;
    padding: .65rem .9rem;
    box-shadow: 0 8px 18px rgba(18, 58, 114, .2);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.escola-btn-back:hover {
    color: #fff !important;
    background: linear-gradient(135deg, #1558b5, #14899d);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(18, 58, 114, .28);
}

.escola-search-panel {
    background: #fff;
    border: 1px solid #dce8fb;
    border-radius: 14px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, .06);
    backdrop-filter: blur(2px);
}

.escola-search-panel .form-control,
.escola-search-panel .form-select {
    border: 1px solid #d6e4f8;
    background: #f9fbff;
    border-radius: 10px;
}

.escola-news-card,
.escola-event-card {
    border: 1px solid #dce8fb;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
    transition: transform .2s ease, box-shadow .2s ease;
    overflow: hidden;
}

.escola-news-card:hover,
.escola-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .12);
}

.escola-news-img {
    width: 300px;
    height: 200px;
    overflow: hidden;
    background-color: #f0f0f0;
    border-radius: 10px;
}

.escola-news-img img {
    object-fit: cover;
}

.escola-news-card .card-body {
    padding: 1.4rem 1.5rem;
}

.escola-news-title,
.escola-event-title {
    color: #0b1324;
    font-weight: 800;
    letter-spacing: .1px;
}

.escola-link-primary {
    color: #1558b5;
    font-weight: 700;
    text-decoration: none;
}

.escola-link-primary:hover {
    color: #124b97;
    text-decoration: underline;
}

.escola-event-cta {
    background: linear-gradient(135deg, #1e73e8, #19b4cf);
    border: none;
    border-radius: 10px;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(18, 58, 114, .18);
}

.escola-event-cta:hover {
    background: linear-gradient(135deg, #1558b5, #14899d);
}

.escola-course-section {
    background: rgba(255, 255, 255, .7);
    border: 1px solid #d9e7ff;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

/* —— Catálogo de cursos (lista /Escola/Cursos/Index) —— */
.escola-cursos-page .escola-cursos-hero .escola-cursos-kicker {
    letter-spacing: .12em;
    color: #dbeafe;
}

.escola-cursos-shell {
    background: linear-gradient(180deg, rgba(255, 255, 255, .92) 0%, rgba(248, 251, 255, .95) 100%);
    border: 1px solid #d0e2fc;
    box-shadow: 0 14px 32px rgba(15, 35, 68, .08);
}

.escola-cursos-block__header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid #e3ebfa;
}

.escola-cursos-block__accent {
    width: 5px;
    min-height: 3.25rem;
    border-radius: 999px;
    flex-shrink: 0;
    margin-top: .2rem;
    background: linear-gradient(180deg, #1e73e8, #19b4cf);
}

.escola-cursos-block__accent--aberto {
    background: linear-gradient(180deg, #1e73e8 0%, #19b4cf 100%);
}

.escola-cursos-block__accent--breve {
    background: linear-gradient(180deg, #7c3aed, #1e73e8 100%);
}

.escola-cursos-block__accent--andamento {
    background: linear-gradient(180deg, #0f766e, #0ea5e9 100%);
}

.escola-cursos-block__accent--encerrado {
    background: linear-gradient(180deg, #64748b, #475569 100%);
}

.escola-cursos-block__accent--outros {
    background: linear-gradient(180deg, #94a3b8, #64748b 100%);
}

.escola-cursos-block__title {
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 800;
    color: #0b1324;
    margin: 0;
    letter-spacing: .02em;
}

.escola-cursos-block__lead {
    margin: .35rem 0 0;
    font-size: .95rem;
    color: #4b5a74;
    max-width: 52rem;
    line-height: 1.45;
}

.escola-curso-card {
    border: 1px solid #d7e6fc;
    border-radius: 16px;
    background: linear-gradient(165deg, #ffffff 0%, #f5f9ff 100%);
    box-shadow: 0 10px 26px rgba(15, 23, 42, .07);
    padding: 1.25rem 1.35rem;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    position: relative;
    overflow: hidden;
}

.escola-curso-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(90deg, #1e73e8, #19b4cf);
    opacity: .85;
}

.escola-curso-card--aberto::before {
    background: linear-gradient(90deg, #1e73e8, #19b4cf);
}

.escola-curso-card--breve::before {
    background: linear-gradient(90deg, #7c3aed, #38bdf8);
}

.escola-curso-card--andamento::before {
    background: linear-gradient(90deg, #0d9488, #0284c7);
}

.escola-curso-card--encerrado::before {
    background: linear-gradient(90deg, #64748b, #94a3b8);
    opacity: .7;
}

.escola-curso-card--outros::before {
    background: linear-gradient(90deg, #64748b, #cbd5e1);
    opacity: .75;
}

.escola-curso-card:hover {
    transform: translateY(-4px);
    border-color: #9dc2f5;
    box-shadow: 0 16px 36px rgba(15, 35, 68, .12);
}

.escola-curso-card--encerrado,
.escola-curso-card--andamento {
    background: linear-gradient(165deg, #f8fafc 0%, #f1f5f9 100%);
}

.escola-curso-card__head {
    position: relative;
    z-index: 1;
    padding-top: .35rem;
}

.escola-curso-badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #1558b5;
    background: rgba(30, 115, 232, .12);
    border: 1px solid rgba(30, 115, 232, .22);
    padding: .28rem .65rem;
    border-radius: 999px;
    margin-bottom: .65rem;
}

.escola-curso-card--encerrado .escola-curso-badge,
.escola-curso-card--andamento .escola-curso-badge {
    color: #475569;
    background: rgba(71, 85, 105, .12);
    border-color: rgba(71, 85, 105, .2);
}

.escola-curso-card__title {
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
}

.escola-curso-card__title-link {
    color: #0f2344;
    text-decoration: none;
    transition: color .15s ease;
}

.escola-curso-card__title-link:hover {
    color: #1e73e8;
}

.escola-curso-card__desc {
    position: relative;
    z-index: 1;
    font-size: .92rem;
    line-height: 1.55;
    color: #4b5a74;
    margin: .85rem 0 1rem;
    min-height: 2.8rem;
}

.escola-curso-meta {
    position: relative;
    z-index: 1;
    display: grid;
    gap: .5rem;
    padding: .85rem 0 0;
    border-top: 1px solid #e8eef8;
}

.escola-curso-meta__row {
    display: flex;
    gap: .55rem;
    align-items: flex-start;
    font-size: .86rem;
}

.escola-curso-meta__icon {
    flex-shrink: 0;
    width: 1.25rem;
    color: #1e73e8;
    text-align: center;
    line-height: 1.45;
}

.escola-curso-card--encerrado .escola-curso-meta__icon,
.escola-curso-card--andamento .escola-curso-meta__icon {
    color: #64748b;
}

.escola-curso-meta__body {
    display: flex;
    flex-wrap: wrap;
    gap: .2rem .45rem;
    align-items: baseline;
    min-width: 0;
    flex: 1;
}

.escola-curso-meta__label {
    font-weight: 700;
    color: #334155;
}

.escola-curso-meta__label::after {
    content: ":";
}

.escola-curso-meta__value {
    color: #475569;
    word-break: break-word;
    flex: 1;
    min-width: 120px;
}

.escola-curso-card__footer {
    position: relative;
    z-index: 1;
    padding-top: 1rem;
    margin-top: .25rem;
    border-top: 1px solid #e8eef8;
}

.escola-curso-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e73e8, #19b4cf);
    border: none;
    border-radius: 10px;
    color: #fff !important;
    font-weight: 700;
    font-size: .9rem;
    padding: .58rem 1rem;
    box-shadow: 0 8px 18px rgba(18, 58, 114, .18);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    text-decoration: none !important;
}

.escola-curso-cta:hover {
    color: #fff !important;
    background: linear-gradient(135deg, #1558b5, #14899d);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(18, 58, 114, .26);
}

.escola-curso-cta--outline {
    background: transparent !important;
    color: #1558b5 !important;
    border: 2px solid #8db8ef !important;
    box-shadow: none;
}

.escola-curso-cta--outline:hover {
    color: #0f2344 !important;
    background: rgba(30, 115, 232, .08) !important;
    border-color: #1e73e8 !important;
}

.escola-cursos-empty__icon {
    color: #1e73e8;
    opacity: .5;
}

.escola-cursos-empty__title {
    font-size: 1.15rem;
    color: #0b1324;
}

.escola-page-wrap .text-muted {
    color: #4b5a74 !important;
}

.escola-event-card .card-footer {
    border-top: 1px solid #e0e8f8;
    font-size: .92rem;
}

.escola-aluno-hero {
    margin-bottom: 1.4rem;
}

.escola-aluno-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid #d7e6fc;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.escola-aluno-link:hover {
    transform: translateY(-4px);
    border-color: #8db8ef;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .12);
}

.escola-aluno-link img {
    border-radius: 12px;
    padding: .2rem;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 6px 12px rgba(27, 58, 107, .12);
}

.escola-aluno-muted {
    color: #4b5a74;
}

@media (max-width: 767.98px) {
    .escola-news-img {
        width: 100%;
        height: 220px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .escola-btn-back,
    .escola-news-card,
    .escola-event-card,
    .escola-event-cta,
    .escola-curso-card,
    .escola-curso-cta {
        transition: none !important;
    }

    .escola-curso-card:hover {
        transform: none !important;
    }
}

/* —— Detalhe do curso (/Escola/Cursos/Details) —— */
.escola-curso-detalhe-hero .escola-cursos-kicker {
    letter-spacing: .12em;
    color: #dbeafe;
}

.escola-curso-detalhe-badge {
    display: inline-block;
    margin-top: .75rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fefce8;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .35);
    padding: .32rem .75rem;
    border-radius: 999px;
}

.escola-curso-detalhe-lead {
    font-size: 1.02rem;
    line-height: 1.65;
    color: #334155;
}

.escola-curso-detalhe-section-title {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    font-weight: 800;
    color: #0b1324;
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid #e8eef8;
}

.escola-curso-detalhe-dl {
    margin: 0;
}

.escola-curso-detalhe-dl > div {
    margin-bottom: 0;
}

.escola-curso-detalhe-dl dt {
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #64748b;
    margin-bottom: .2rem;
}

.escola-curso-detalhe-dl dd {
    margin: 0;
    font-size: .95rem;
    color: #0f172a;
    line-height: 1.45;
}

.escola-curso-detalhe-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
    margin-top: 2rem;
    border-radius: 14px;
    background: linear-gradient(120deg, rgba(30, 115, 232, .08) 0%, rgba(25, 180, 207, .1) 100%);
    border: 1px solid #c7dbf8;
}

.escola-curso-detalhe-cta-note {
    flex: 1;
    min-width: 200px;
    margin: 0;
    font-size: .9rem;
    color: #475569;
}

.escola-curso-cta--muted {
    background: #e2e8f0 !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    cursor: not-allowed;
    pointer-events: none;
}

.escola-curso-detalhe-meta-muted {
    font-size: .82rem;
    color: #64748b;
    margin-top: 1.5rem;
}
