/* ==========================================================================
   Eloigica: estilos próprios do site (carregado depois do template).
   Ajuste a identidade visual pelas variáveis abaixo, não por style="" nas views.
   ========================================================================== */

:root {
    --brand: #2B94CD;
    --brand-dark: #1f6f9c;
    --brand-soft: #f1f7fb;
    --success: #1e7a46;
    --success-soft: #e8f7ee;
    --danger: #a3262f;
    --danger-soft: #fbe9ea;
    --warning: #8a5300;
    --warning-soft: #fff4e5;
    --text: #1f2937;
    --muted: #6b7280;
    --surface: #ffffff;
    --radius: 12px;
    --radius-sm: 6px;
    --shadow: 0 4px 12px rgba(0, 0, 0, .12);
    --focus: 0 0 0 3px rgba(43, 148, 205, .45);
}

/* --- Foco visível para navegação por teclado ---------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: none;
    box-shadow: var(--focus);
    border-radius: var(--radius-sm);
}

/* --- Mensagens de sessão (layouts/web/flash.blade.php) ------------------- */
.site-flash-stack {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: min(600px, calc(100% - 32px));
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.site-flash {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    line-height: 1.5;
    box-shadow: var(--shadow);
}

.site-flash--error { background: var(--danger-soft); color: var(--danger); border: 1px solid #f5c6cb; }
.site-flash--success { background: var(--success-soft); color: var(--success); border: 1px solid #c3e6cb; }

.site-flash__close {
    background: transparent;
    border: 0;
    color: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

/* --- Botão de pagamento / CTA primário ----------------------------------- */
.btn-brand {
    display: inline-block;
    background: var(--brand);
    color: #fff;
    border: 0;
    border-radius: var(--radius-sm);
    padding: 10px 22px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease;
}

.btn-brand:hover,
.btn-brand:focus { background: var(--brand-dark); color: #fff; text-decoration: none; }

/* --- Abas Pix / Cartão do checkout --------------------------------------- */
.pay-tab {
    flex: 1;
    background: #e5e5e5;
    color: #333;
    border: 0;
    border-radius: var(--radius-sm);
    padding: 8px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    cursor: pointer;
}

.pay-tab[aria-selected="true"] { background: var(--brand); color: #fff; }

/* --- Busca e filtros da listagem de cursos ------------------------------- */
.course-filters {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}

.course-filters .form-control,
.course-filters select { height: 44px; }

/* Slides 2+ usam h2 (um h1 por página) com a mesma aparência do primeiro */
.slider-cont h2.h1 {
    font-size: 60px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #fff;
    padding-bottom: 25px;
}
@media (max-width: 767px) { .slider-cont h1, .slider-cont h2.h1 { font-size: 32px; } }

.opacity-50 { opacity: .5; transition: opacity .15s ease; }

/* Títulos de página como h1 mantendo o tamanho visual do template */
.page-banner-cont h1 { color: #fff; font-size: 40px; font-weight: 700; margin-bottom: 0; }
@media (max-width: 767px) { .page-banner-cont h1 { font-size: 28px; } }

/* Card de curso: o h3 do template (28px) é grande demais para o card */
.course-card__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
}
.course-card__title a { color: var(--text); }
.course-card__title a:hover { color: var(--brand); text-decoration: none; }
.course-card__img { aspect-ratio: 16 / 9; object-fit: cover; background: #e5e7eb; }

.course-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}

/* --- Progresso do aluno -------------------------------------------------- */
.course-progress {
    height: 6px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.course-progress > span {
    display: block;
    height: 100%;
    background: var(--brand);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Conteúdo do banner acima do overlay escuro (::before, z-index 1).
   Sem isso o card de preço do topo da página do curso ficava coberto e o
   botão "Quero me matricular" não recebia o clique. */
#page-banner > .container { position: relative; z-index: 2; }

/* Links da barra superior: azul do link padrão sobre o azul-escuro ficava ilegível */
.header-top .header-contact a { color: #fff; font-weight: 600; }
.header-top .header-contact a:hover { color: #ffc600; text-decoration: none; }
