/* ==========================================================
   Website moderno: carrossel, cursos, candidatura (cores vibrantes)
   ========================================================== */
:root {
    --sx-c1: #7b2ff7; --sx-c2: #f107a3; --sx-c3: #ff8a00; --sx-c4: #00b8a0; --sx-c5: #1e88ff;
    --sx-ink: #1d1b2f; --sx-muted: #66647a; --sx-line: #e7e5f2; --sx-bg: #f7f6fc;
}
.sx * { box-sizing: border-box; }
.sx { color: var(--sx-ink); }
.sx a:hover { text-decoration: none; }
.sx-section { padding: 70px 0; }
.sx-section.alt { background: var(--sx-bg); }
.sx-head { text-align: center; max-width: 720px; margin: 0 auto 38px; }
.sx-head .kicker { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--sx-c2); margin-bottom: 8px; }
.sx-head h2 { font-size: 34px; font-weight: 900; margin: 0 0 10px; color: var(--sx-ink); letter-spacing: -.5px; }
.sx-head h2 span { background: linear-gradient(90deg, var(--sx-c1), var(--sx-c2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sx-head p { color: var(--sx-muted); font-size: 16px; margin: 0; }

.sx-btn {
    display: inline-flex; align-items: center; gap: 9px; border: 0; border-radius: 14px; padding: 13px 22px;
    font-weight: 800; font-size: 15px; color: #fff !important; cursor: pointer; letter-spacing: 0;
    background: linear-gradient(120deg, var(--sx-c1), var(--sx-c2)); box-shadow: 0 10px 22px rgba(241, 7, 163, .28);
    transition: transform .12s, filter .15s, box-shadow .15s;
}
.sx-btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.sx-btn.orange { background: linear-gradient(120deg, var(--sx-c3), #ff4f6d); box-shadow: 0 10px 22px rgba(255, 79, 109, .3); }
.sx-btn.teal { background: linear-gradient(120deg, var(--sx-c4), var(--sx-c5)); box-shadow: 0 10px 22px rgba(30, 136, 255, .28); }
.sx-btn.ghost { background: rgba(255,255,255,.14); border: 1.5px solid rgba(255,255,255,.55); box-shadow: none; }
.sx-btn.ghost:hover { background: rgba(255,255,255,.24); }
.sx-btn.light { background: #fff; color: var(--sx-c1) !important; box-shadow: 0 8px 18px rgba(30,0,60,.18); }
.sx-btn.sm { padding: 9px 15px; font-size: 13.5px; border-radius: 11px; }
/* candidaturas desativadas: botão "Em breve" */
.sx-btn.soon { background: repeating-linear-gradient(135deg, #8a86a3 0 10px, #9b97b3 10px 20px); box-shadow: none; }
.sx-soon-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; margin: 0 0 12px; background: #fff4e5; border: 1px solid #ffd59a; color: #8a4b00; font-size: 14px; line-height: 1.5; text-align: left; }
.sx-soon-note i { margin-top: 3px; color: #ff8a00; }

/* ---------- carrossel ---------- */
.sx-hero { position: relative; height: clamp(440px, 74vh, 690px); overflow: hidden; background: #160b3a; color: #fff; }
.sx-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.sx-slide.active { opacity: 1; visibility: visible; }
.sx-slide .bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.08); transition: transform 7s ease-out; }
.sx-slide.active .bg { transform: scale(1); }
.sx-slide .bg.gradient { background: linear-gradient(120deg, #3a0ca3, var(--sx-c1) 35%, var(--sx-c2) 70%, var(--sx-c3)); }
.sx-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,6,50,.88) 0%, rgba(40,10,90,.55) 45%, rgba(0,0,0,.05) 100%), linear-gradient(0deg, rgba(10,4,30,.55), transparent 45%); }
.sx-slide .content { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; }
.sx-slide .content .container { width: 100%; }
.sx-slide .box { max-width: 640px; }
.sx-slide .kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); margin-bottom: 16px; }
.sx-slide h1 { font-size: clamp(30px, 5vw, 54px); line-height: 1.08; font-weight: 900; margin: 0 0 14px; color: #fff; letter-spacing: -1px; text-shadow: 0 4px 24px rgba(0,0,0,.25); }
.sx-slide p { font-size: clamp(15px, 1.6vw, 19px); line-height: 1.55; margin: 0 0 26px; color: rgba(255,255,255,.92); max-width: 560px; }
.sx-slide .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sx-slide.active .box > * { animation: sxUp .8s both; }
.sx-slide.active .box > *:nth-child(2) { animation-delay: .12s; }
.sx-slide.active .box > *:nth-child(3) { animation-delay: .24s; }
.sx-slide.active .box > *:nth-child(4) { animation-delay: .36s; }
@keyframes sxUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.sx-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 50px; height: 50px; border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.45); background: rgba(255,255,255,.12); color: #fff; font-size: 18px; cursor: pointer;
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); transition: background .15s;
}
.sx-arrow:hover, .sx-arrow:focus-visible { background: rgba(255,255,255,.28); outline: none; }
.sx-arrow.prev { left: 20px; } .sx-arrow.next { right: 20px; }
.sx-dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 92px; display: flex; justify-content: center; gap: 8px; }
.sx-dots button { width: 12px; height: 12px; border-radius: 99px; border: 0; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; transition: width .3s, background .3s; }
.sx-dots button.active { width: 34px; background: #fff; }
.sx-progress { position: absolute; left: 0; bottom: 0; height: 4px; z-index: 3; background: linear-gradient(90deg, var(--sx-c3), var(--sx-c2), var(--sx-c1)); width: 0; }

/* ---------- atalhos sob o carrossel ---------- */
.sx-quick { position: relative; z-index: 5; margin-top: -64px; }
.sx-quick .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sx-quick a {
    display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 18px; padding: 18px; color: var(--sx-ink);
    box-shadow: 0 16px 34px rgba(40, 10, 90, .14); transition: transform .15s, box-shadow .15s;
}
.sx-quick a:hover { transform: translateY(-4px); box-shadow: 0 22px 40px rgba(40, 10, 90, .2); }
.sx-quick .ic { flex: 0 0 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 21px; }
.sx-quick b { display: block; font-size: 16px; font-weight: 800; }
.sx-quick small { color: var(--sx-muted); font-size: 13px; }

/* ---------- cursos ---------- */
.sx-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.sx-course {
    --accent: var(--sx-c1); position: relative; background: #fff; border-radius: 22px; padding: 26px 22px 22px; display: flex; flex-direction: column;
    border: 1px solid var(--sx-line); box-shadow: 0 10px 26px rgba(30, 20, 60, .06); transition: transform .18s, box-shadow .18s, border-color .18s; overflow: hidden;
}
.sx-course::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--accent); }
.sx-course:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(30, 20, 60, .14); border-color: transparent; }
.sx-course .ic { width: 58px; height: 58px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 25px; color: #fff; background: var(--accent); box-shadow: 0 10px 20px rgba(0,0,0,.12); margin-bottom: 16px; }
.sx-course .img { margin: -26px -22px 16px; height: 150px; background-size: cover; background-position: center; }
.sx-course h3 { font-size: 19px; font-weight: 800; margin: 0 0 8px; line-height: 1.25; }
.sx-course h3 a { color: var(--sx-ink); }
.sx-course p { color: var(--sx-muted); font-size: 14.5px; line-height: 1.55; margin: 0 0 14px; flex: 1; }
.sx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.sx-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: #f2effc; color: #4b3b8f; }
.sx-chip.open { background: #e3f8f2; color: #0a7d63; }
.sx-chip.closed { background: #fdecef; color: #b0213f; }
.sx-chip.soon { background: #fff4e5; color: #b35f00; }
.sx-chip.fee { background: #fff1e0; color: #a35200; }
.sx-course .btns { display: flex; gap: 8px; flex-wrap: wrap; }
.sx-course .btns .sx-btn { flex: 1; justify-content: center; }
.sx-link { font-weight: 800; color: var(--accent, var(--sx-c1)) !important; display: inline-flex; align-items: center; gap: 6px; padding: 9px 4px; }

/* ---------- missão / visão / valores ---------- */
.sx-mvv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sx-mvv .card { background: #fff; border-radius: 22px; padding: 28px 24px; box-shadow: 0 10px 26px rgba(30, 20, 60, .07); border: 1px solid var(--sx-line); }
.sx-mvv .card .ic { width: 54px; height: 54px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; margin-bottom: 14px; }
.sx-mvv h3 { font-weight: 900; font-size: 20px; margin: 0 0 10px; }
.sx-mvv p { color: var(--sx-muted); margin: 0; line-height: 1.6; }
.sx-mvv ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 14px; }
.sx-mvv li { color: var(--sx-muted); margin-bottom: 6px; break-inside: avoid; }
.sx-mvv li::before { content: "✔"; color: var(--sx-c4); margin-right: 6px; font-weight: 900; }

/* ---------- como candidatar-se ---------- */
.sx-cta { background: linear-gradient(120deg, #3a0ca3, var(--sx-c1) 30%, var(--sx-c2) 70%, var(--sx-c3)); color: #fff; border-radius: 28px; padding: 46px 40px; position: relative; overflow: hidden; }
.sx-cta::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(255, 212, 0, .2); right: -120px; top: -150px; }
.sx-cta h2 { color: #fff; font-weight: 900; font-size: 32px; margin: 0 0 8px; position: relative; z-index: 1; }
.sx-cta > p { color: rgba(255,255,255,.9); font-size: 16px; margin: 0 0 26px; max-width: 640px; position: relative; z-index: 1; }
.sx-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; position: relative; z-index: 1; }
.sx-steps div { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); border-radius: 18px; padding: 18px; }
.sx-steps b { display: inline-flex; width: 36px; height: 36px; border-radius: 12px; background: #fff; color: var(--sx-c1); align-items: center; justify-content: center; font-size: 16px; margin-bottom: 10px; }
.sx-steps strong { display: block; font-size: 16px; margin-bottom: 4px; }
.sx-steps span { font-size: 13.5px; color: rgba(255,255,255,.88); }
.sx-cta .actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }

/* ---------- cabeçalho das páginas internas ---------- */
.sx-pagehead { background: linear-gradient(120deg, #3a0ca3, var(--sx-c1) 30%, var(--sx-c2) 70%, var(--sx-c3)); color: #fff; padding: 56px 0 72px; position: relative; overflow: hidden; }
.sx-pagehead::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: rgba(0, 184, 160, .25); left: -120px; bottom: -200px; }
.sx-pagehead .container { position: relative; z-index: 1; }
.sx-pagehead .crumbs { font-size: 13.5px; opacity: .9; margin-bottom: 12px; }
.sx-pagehead .crumbs a { color: #fff; text-decoration: underline; }
.sx-pagehead h1 { color: #fff; font-weight: 900; font-size: clamp(28px, 4.4vw, 44px); margin: 0 0 10px; letter-spacing: -.6px; }
.sx-pagehead p { color: rgba(255,255,255,.92); font-size: 17px; margin: 0; max-width: 720px; }
.sx-pagehead .ic { width: 66px; height: 66px; border-radius: 18px; background: rgba(255,255,255,.18); display: inline-flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 14px; }

/* ---------- detalhe do curso ---------- */
.sx-detail { display: grid; grid-template-columns: 1fr 340px; gap: 26px; margin-top: -44px; position: relative; z-index: 2; }
.sx-panel { background: #fff; border-radius: 22px; padding: 26px; box-shadow: 0 12px 30px rgba(30, 20, 60, .08); border: 1px solid var(--sx-line); margin-bottom: 22px; }
.sx-panel h2 { font-size: 21px; font-weight: 900; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.sx-panel h2 i { width: 36px; height: 36px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; }
.sx-panel .rich { font-size: 15.5px; line-height: 1.75; color: #34324a; }
.sx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.sx-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: #34324a; }
.sx-list li::before { content: "✓"; flex: 0 0 24px; height: 24px; border-radius: 8px; background: #efeafd; color: var(--sx-c1); font-weight: 900; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.sx-aside { position: sticky; top: 90px; align-self: start; }
.sx-aside .facts { display: grid; gap: 12px; margin: 4px 0 20px; }
.sx-aside .facts div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--sx-line); padding-bottom: 10px; font-size: 14.5px; }
.sx-aside .facts span { color: var(--sx-muted); }
.sx-aside .facts b { text-align: right; }
.sx-aside .fee { font-size: 30px; font-weight: 900; background: linear-gradient(90deg, var(--sx-c1), var(--sx-c2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sx-aside .sx-btn { width: 100%; justify-content: center; margin-bottom: 10px; }
.sx-others a { display: flex; align-items: center; gap: 10px; padding: 10px 6px; border-bottom: 1px solid #f0eef8; color: var(--sx-ink); font-weight: 600; }
.sx-others a:hover { color: var(--sx-c1); }
.sx-others i { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; }

/* ---------- estado da candidatura ---------- */
.sx-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 6px 0 4px; }
.sx-timeline div { text-align: center; font-size: 13px; font-weight: 700; color: var(--sx-muted); position: relative; }
.sx-timeline div b { display: flex; width: 44px; height: 44px; margin: 0 auto 8px; border-radius: 50%; align-items: center; justify-content: center; background: #efedf6; color: #9a97ad; font-size: 17px; }
.sx-timeline div.done b { background: linear-gradient(120deg, var(--sx-c4), var(--sx-c5)); color: #fff; }
.sx-timeline div.current b { background: linear-gradient(120deg, var(--sx-c1), var(--sx-c2)); color: #fff; box-shadow: 0 0 0 6px rgba(241, 7, 163, .15); }
.sx-timeline div.done, .sx-timeline div.current { color: var(--sx-ink); }
.sx-status { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: 14px; }
.sx-status.pending { background: #fff1e0; color: #a35200; }
.sx-status.submitted { background: #e8f0ff; color: #1d5bd8; }
.sx-status.confirmed, .sx-status.exempt { background: #e3f8f2; color: #0a7d63; }
.sx-status.rejected { background: #fdecef; color: #b0213f; }
.sx-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sx-pay .opt { border: 1.5px solid var(--sx-line); border-radius: 18px; padding: 20px; }
.sx-pay .opt h3 { margin: 0 0 8px; font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.sx-pay label { display: block; font-size: 13px; font-weight: 700; margin: 10px 0 5px; color: #3a3852; }
.sx-pay input, .sx-pay select { width: 100%; height: 46px; border-radius: 12px; border: 1.5px solid var(--sx-line); background: #faf9ff; padding: 0 12px; font-size: 15px; }
.sx-pay input:focus, .sx-pay select:focus { outline: none; border-color: var(--sx-c1); box-shadow: 0 0 0 4px rgba(123,47,247,.14); background: #fff; }
.sx-accounts { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.sx-accounts li { background: #f7f5ff; border-radius: 12px; padding: 10px 12px; display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.sx-ref { font-family: Consolas, monospace; font-weight: 800; font-size: 18px; letter-spacing: 1px; color: var(--sx-c1); }
.sx-copy { display: flex; gap: 8px; }
.sx-copy input { flex: 1; height: 42px; border-radius: 10px; border: 1.5px solid var(--sx-line); padding: 0 10px; font-size: 13px; background: #faf9ff; }

/* ---------- responsivo ---------- */
@media (max-width: 991px) {
    .sx-quick .grid { grid-template-columns: 1fr 1fr; }
    .sx-mvv { grid-template-columns: 1fr; }
    .sx-steps { grid-template-columns: 1fr 1fr; }
    .sx-detail { grid-template-columns: 1fr; margin-top: -30px; }
    .sx-aside { position: static; }
    .sx-pay { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
    .sx-section { padding: 48px 0; }
    .sx-head h2 { font-size: 26px; }
    .sx-arrow { display: none; }
    .sx-dots { bottom: 80px; }
    .sx-quick .grid { gap: 10px; }
    .sx-quick a { flex-direction: column; text-align: center; padding: 14px 10px; gap: 8px; }
    .sx-quick small { display: none; }
    .sx-cta { padding: 30px 20px; border-radius: 20px; }
    .sx-cta h2 { font-size: 24px; }
    .sx-steps { grid-template-columns: 1fr; }
    .sx-mvv ul { columns: 1; }
    .sx-timeline div { font-size: 11.5px; }
    .sx-timeline div b { width: 36px; height: 36px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .sx-slide, .sx-slide .bg { transition: none; }
    .sx-slide.active .box > * { animation: none; }
}
