
/* ===============================================================
   ETADEPA EAD — CSS base
   Serve apenas como base: o Elementor (ou o tema) manda no layout.
   =============================================================== */

.ead-scope {
	/* Herda a fonte, o tamanho e o alinhamento de quem chama (Elementor/tema).
	   Por isso os tamanhos internos sao em "em" e nunca em "px": se voce
	   mudar a fonte no Elementor, tudo dentro cresce junto. */
	font-size: inherit;
	text-align: inherit;
	--ead-bg: #ffffff;
	--ead-border: #dde1e7;
	--ead-muted: #5b6472;
	--ead-accent: #C9A227;
	--ead-navy: #1F3864;
	--ead-red: #E23D3D;
	--ead-green: #1f7a4d;
	--ead-radius: 10px;
}

/* Cartões, botões e campos: base minima para o HTML nunca ficar "cru". */
.ead-scope .ead-card {
	background: var(--ead-bg);
	border: 1px solid var(--ead-border);
	border-radius: var(--ead-radius);
	padding: 16px;
}

.ead-scope .ead-btn {
	display: inline-block;
	padding: 10px 18px;
	border: 0;
	border-radius: 8px;
	background: var(--ead-navy);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.ead-scope .ead-btn--primary {
	background: var(--ead-accent);
	color: #1F3864;
}

.ead-scope .ead-btn--block {
	display: block;
	width: 100%;
	text-align: center;
}

.ead-scope .ead-input,
.ead-scope input[type="text"],
.ead-scope input[type="email"],
.ead-scope input[type="password"],
.ead-scope input[type="url"],
.ead-scope input[type="number"],
.ead-scope select,
.ead-scope textarea {
	padding: 9px 11px;
	border: 1px solid var(--ead-border);
	border-radius: 8px;
	font-size: 1em;
}

/* Area administrativa (front) */
.ead-scope .ead-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 14px;
	margin: 16px 0 26px;
}

.ead-scope .ead-card--stat {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ead-scope .ead-card__label {
	font-size: .8em;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--ead-muted);
}

.ead-scope .ead-card__value {
	font-size: 1.75em;
	line-height: 1.1;
}

.ead-scope .ead-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--ead-border);
	border-radius: var(--ead-radius);
	background: var(--ead-bg);
}

.ead-scope .ead-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 1em;
}

.ead-scope .ead-table th,
.ead-scope .ead-table td {
	padding: 12px 14px;
	text-align: left;
	border-bottom: 1px solid var(--ead-border);
	vertical-align: top;
}

.ead-scope .ead-table th {
	font-size: .8em;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--ead-muted);
}

.ead-scope .ead-admin__search {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin: 12px 0 18px;
}

.ead-scope .ead-admin__search .ead-input {
	max-width: 320px;
}

.ead-scope .ead-admin__enroll {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
}

.ead-scope .ead-form__links {
	margin: 0;
	font-size: .93em;
}

.ead-scope .ead-form__links a {
	color: var(--ead-accent);
}

/* ---------------------------------------------------------------
   Pagina da lição: titulo, video e menu de lições
   (base visual — o Elementor pode sobrescrever)
   --------------------------------------------------------------- */

.ead-scope .ead-titulo__wrap {
	margin: 0 0 18px;
}

.ead-scope .ead-titulo__modulo {
	margin: 0 0 6px;
	font-size: .87em;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ead-accent);
}

.ead-scope .ead-titulo {
	margin: 0;
	line-height: 1.2;
}

/* Moldura 16:9 do video (YouTube/Vimeo). */
.ead-scope .ead-player__frame {
	position: relative;
	width: 100%;
	height: 0;
	padding-bottom: 56.25%;
	border-radius: var(--ead-radius);
	overflow: hidden;
	background: #000;
}

.ead-scope .ead-player__frame iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.ead-scope .ead-player--embed {
	margin: 0 0 18px;
	background: #14161a;
	padding: 18px;
	border-radius: 14px;
}

.ead-scope .ead-player--embed .ead-player__frame {
	border-radius: 10px;
}

.ead-scope .ead-player--embed .ead-player__hint {
	color: #9aa3b2;
	margin: 10px 0 0;
	font-size: .87em;
}

.ead-scope .ead-player--link {
	margin: 0 0 18px;
}

/* Menu de lições: cada item e um botão (o atual em destaque). */
.ead-scope .ead-trilha__lessons {
	list-style: none;
	margin: 0 0 8px;
	padding: 0;
}

.ead-scope .ead-trilha__lesson {
	margin: 0 0 8px;
}

.ead-scope .ead-trilha__lesson > a,
.ead-scope .ead-trilha__lesson > .ead-trilha__locked {
	display: block;
	padding: 13px 16px;
	border-radius: 12px;
	background: #1F3864;
	color: #fff;
	font-weight: 700;
	line-height: 1.35;
	text-decoration: none;
	transition: background .15s ease, transform .15s ease;
}

.ead-scope .ead-trilha__lesson > a:hover {
	background: #2A4A80;
	transform: translateY(-1px);
}

.ead-scope .ead-trilha__lesson > a::before {
	content: "\25B6";
	margin-right: 10px;
	font-size: .75em;
	vertical-align: 1px;
	color: #E23D3D;
}

.ead-scope .ead-trilha__lesson.is-current > a {
	background: #E23D3D;
}

.ead-scope .ead-trilha__lesson.is-current > a::before {
	content: "\25AA";
	color: #ffffff;
	font-size: 1em;
}

.ead-scope .ead-trilha__lesson.is-current > a:hover {
	background: #C53030;
}

.ead-scope .ead-trilha__lesson > .ead-trilha__locked {
	background: #3A3F4B;
	color: #C9CDD6;
	cursor: not-allowed;
}

.ead-scope .ead-trilha__lesson.is-done > .ead-trilha__check {
	color: #7DDCA0;
}

.ead-scope .ead-trilha__module {
	margin-bottom: 14px;
}

.ead-scope .ead-trilha__summary {
	cursor: pointer;
	font-weight: 700;
}

/* ---------------------------------------------------------------
 * Pagina do curso: menu de disciplinas (coluna da esquerda),
 * titulo do curso e botao "Sair".
 * O visual final e seu (Elementor); aqui e a base ETADEPA.
 * ------------------------------------------------------------- */

.ead-scope .ead-titulo-curso {
	margin: 0 0 14px;
	color: #A8D5E2;
	font-weight: 800;
	letter-spacing: .5px;
	line-height: 1.15;
}

.ead-scope .ead-menu-disciplinas {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ead-scope .ead-menu-disciplinas__item {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 18px;
	border-radius: 10px;
	background: #FDF3D8;
	color: #1F3864;
	text-decoration: none;
	box-shadow: 0 3px 0 rgba(0, 0, 0, .28);
	transition: transform .15s ease, background .15s ease;
}

.ead-scope .ead-menu-disciplinas__item:hover {
	transform: translateY(-1px);
	background: #FFF8E3;
}

.ead-scope .ead-menu-disciplinas__numero {
	font-weight: 800;
	font-size: 1em;
	letter-spacing: .4px;
	text-transform: uppercase;
}

.ead-scope .ead-menu-disciplinas__nome {
	font-size: .87em;
	line-height: 1.3;
	color: #3C4A5E;
}

.ead-scope .ead-menu-disciplinas__progresso {
	font-size: .73em;
	color: #6B7280;
}

.ead-scope .ead-menu-disciplinas__item.is-current {
	background: #1F3864;
	color: #fff;
}

.ead-scope .ead-menu-disciplinas__item.is-current .ead-menu-disciplinas__nome {
	color: #D6E2F2;
}

.ead-scope .ead-menu-disciplinas__item.is-current .ead-menu-disciplinas__progresso {
	color: #A8D5E2;
}

.ead-scope .ead-menu-disciplinas__item.is-done .ead-menu-disciplinas__progresso::after {
	content: " \2713";
	color: #2E8B57;
	font-weight: 700;
}

.ead-scope .ead-btn--sair {
	display: inline-block;
	padding: 12px 26px;
	font-size: 1em;
	border-radius: 10px;
	background: #FDF3D8;
	color: #1F3864;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 3px 0 rgba(0, 0, 0, .28);
}

.ead-scope .ead-btn--sair:hover {
	background: #FFF8E3;
}

/* Botao flutuante de salvar (aparece quando voce mexe em um campo). */
.ead-flutuante-salvar {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 99999;
	padding: 14px 22px;
	border: 0;
	border-radius: 30px;
	background: #E23D3D;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
	cursor: pointer;
}

.ead-flutuante-salvar:hover {
	background: #C53030;
}


/* ---------------------------------------------------------------
   Area de Membros: cartoes de curso, progresso, formularios,
   certificados e historico.

   Sem estas regras o HTML do aluno fica "cru" (o Elementor cuida
   do layout da pagina, nao do conteudo do shortcode).
   --------------------------------------------------------------- */

/* Pagina da licao (layout automatico): o botao da prova. */
.ead-scope .ead-licao__texto {
	margin: 0 0 18px;
}

.ead-scope .ead-licao__prova {
	margin: 0 0 18px;
}

/* Formulario: campos empilhados, um abaixo do outro. */
.ead-scope .ead-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0 0 18px;
}

.ead-scope .ead-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ead-scope .ead-field__label {
	font-size: .82em;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--ead-muted);
}

.ead-scope .ead-check {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: .93em;
	color: var(--ead-muted);
}

.ead-scope .ead-check input {
	width: auto;
}

/* Grade de cartoes de curso. */
.ead-scope .ead-grid {
	display: grid;
	grid-template-columns: repeat(var(--ead-columns, 3), minmax(0, 1fr));
	gap: 20px;
	margin: 0 0 26px;
}

.ead-scope .ead-course-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--ead-bg);
	border: 1px solid var(--ead-border);
	border-radius: var(--ead-radius);
	box-shadow: 0 2px 10px rgba(31, 56, 100, .08);
	transition: transform .15s ease, box-shadow .15s ease;
}

.ead-scope .ead-course-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(31, 56, 100, .14);
}

.ead-scope .ead-course-card__cover img {
	display: block;
	width: 100%;
	height: 150px;
	object-fit: cover;
}

.ead-scope .ead-course-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 18px;
}

.ead-scope .ead-course-card__title {
	margin: 0;
	font-size: 1.15em;
	line-height: 1.25;
	color: var(--ead-navy);
}

.ead-scope .ead-course-card__meta {
	margin: 0;
	font-size: .85em;
	color: var(--ead-muted);
}

.ead-scope .ead-course-card__cert {
	margin: 4px 0 0;
}

/* Barra de progresso. */
.ead-scope .ead-progress {
	height: 9px;
	overflow: hidden;
	background: #EAEDF2;
	border-radius: 999px;
}

.ead-scope .ead-progress__bar {
	height: 100%;
	background: linear-gradient(90deg, var(--ead-navy), var(--ead-accent));
	border-radius: 999px;
	transition: width .3s ease;
}

/* Avisos (sucesso, erro, atencao). */
.ead-scope .ead-notice {
	margin: 0 0 16px;
	padding: 14px 16px;
	border-radius: var(--ead-radius);
	border-left: 5px solid var(--ead-muted);
	background: #F4F6F9;
	color: var(--ead-navy);
}

.ead-scope .ead-notice p {
	margin: 0 0 6px;
}

.ead-scope .ead-notice p:last-child {
	margin: 0;
}

.ead-scope .ead-notice--success {
	border-left-color: var(--ead-green);
	background: #EAF6F0;
}

.ead-scope .ead-notice--error {
	border-left-color: var(--ead-red);
	background: #FDEDED;
}

.ead-scope .ead-notice--warning {
	border-left-color: var(--ead-accent);
	background: #FDF3D8;
}

.ead-scope .ead-notice--login {
	border-left-color: var(--ead-navy);
	background: #EDF2FA;
}

.ead-scope .ead-help {
	margin: 8px 0 0;
	font-size: .85em;
	color: var(--ead-muted);
}

/* Botoes: variantes. */
.ead-scope .ead-btn--ghost {
	background: transparent;
	color: var(--ead-navy);
	border: 1px solid var(--ead-navy);
}

.ead-scope .ead-btn--ghost:hover {
	background: var(--ead-navy);
	color: #fff;
}

.ead-scope .ead-btn--small {
	padding: 7px 14px;
	font-size: .85em;
	border-radius: 6px;
}

/* Lista de certificados. */
.ead-scope .ead-certificates {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ead-scope .ead-certificates__item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	background: var(--ead-bg);
	border: 1px solid var(--ead-border);
	border-radius: var(--ead-radius);
}

.ead-scope .ead-certificates__course {
	font-weight: 700;
	color: var(--ead-navy);
}

.ead-scope .ead-certificates__date,
.ead-scope .ead-certificates__code {
	font-size: .87em;
	color: var(--ead-muted);
}

.ead-scope .ead-certificates__verify {
	font-size: .87em;
	color: var(--ead-accent);
}

.ead-scope .ead-certificates__revoked {
	font-size: .82em;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--ead-red);
}

/* Historico escolar. */
.ead-scope .ead-historico {
	margin: 0 0 16px;
}

.ead-scope .ead-historico__text {
	margin: 0 0 10px;
	font-size: .9em;
	color: var(--ead-muted);
}

.ead-scope .ead-historico__msg {
	margin: 10px 0 0;
	font-size: .88em;
}

@media (max-width: 782px) {
	.ead-scope .ead-grid {
		grid-template-columns: 1fr;
	}
}

/* ---------------------------------------------------------------
   "Voltar ao painel": o link que aparece no rodape quando o
   Pastor entrou no site como aluno (botao "Entrar como este aluno").
   Fica no rodape de TODAS as paginas, entao as cores sao fixas
   (nao dependem do .ead-scope).
   --------------------------------------------------------------- */

.ead-voltar-painel {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 9999;
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: calc(100vw - 36px);
	padding: 10px 14px;
	background: #1F3864;
	border-radius: 10px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, .22);
}

.ead-voltar-painel__texto {
	color: #ffffff;
	font-size: 13px;
	line-height: 1.3;
}

.ead-voltar-painel .ead-btn {
	display: inline-block;
	padding: 7px 14px;
	border: 1px solid #ffffff;
	border-radius: 6px;
	background: #ffffff;
	color: #1F3864;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}

.ead-voltar-painel .ead-btn:hover {
	background: #C9A227;
	border-color: #C9A227;
	color: #1F3864;
}

@media (max-width: 782px) {
	.ead-voltar-painel {
		left: 12px;
		right: 12px;
		bottom: 12px;
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ---------------------------------------------------------------
   Modo "texto livre" (usado pelo widget do ETADEPA quando voce
   desliga as cores do tema): tudo herda cor, fonte e alinhamento
   que voce definiu no Elementor.
   --------------------------------------------------------------- */

.ead-scope.ead-texto-livre,
.ead-scope.ead-texto-livre * {
	color: inherit !important;
}

.ead-scope.ead-texto-livre .ead-trilha__lesson > a,
.ead-scope.ead-texto-livre .ead-trilha__lesson > .ead-trilha__locked {
	background: transparent;
	border: 1px solid currentColor;
}

.ead-scope.ead-texto-livre .ead-menu-disciplinas__item {
	background: transparent;
	box-shadow: none;
	border: 1px solid currentColor;
}
