@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@500;600;700;800&display=swap');

/* Variáveis de Cores e Estilos (Design System Profile: Modern & Trustworthy) */
:root {
    --primary: #FD6600; /* Laranja solicitado */
    --primary-hover: #e05a00;
    --primary-light: rgba(253, 102, 0, 0.08);
    --primary-light-solid: #fff3eb;
    --secondary: #62ADE7; /* Azul CMJ */
    --secondary-hover: #3e96d8;
    --secondary-light: rgba(98, 173, 231, 0.14);
    
    --text-main: #111827; /* Preto suave / Cinza bem escuro para legibilidade */
    --text-muted: #4b5563; /* Cinza médio para textos secundários */
    
    --bg-main: #ffffff; /* Fundo branco */
    --bg-alt: #f8fafc;  /* Fundo muito claro alternativo */
    --border: #e5e7eb;
    
    --success: #25D366; /* Verde WhatsApp */
    
    --font-main: 'Manrope', sans-serif; /* Texto principal */
    --font-heading: 'Sora', sans-serif; /* Títulos */
    
    --max-width: 1280px;
    --nav-height: 80px;
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

[hidden] {
    display: none !important;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease-in-out;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Tipografia Comum */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-main);
    letter-spacing: -0.018em;
}

.highlight {
    color: var(--primary);
}

/* Componentes de Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.5rem;
    padding: 0.72rem 1.05rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Animação suave e fluida */
    border: none;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(253, 102, 0, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(253, 102, 0, 0.35);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
    box-shadow: 0 4px 14px rgba(98, 173, 231, 0.25);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(62, 150, 216, 0.35);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--text-main);
    background-color: var(--bg-alt);
    transform: translateY(-2px);
}

.btn-outline i {
    color: var(--success);
    font-size: 1.2rem;
}

.btn-large {
    padding: 1rem 1.75rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.45rem 0.65rem;
    font-size: 0.88rem;
    border-radius: 0.55rem;
}

/* Navegação / Header */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    height: var(--nav-height);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-link {
    text-decoration: none;
}

.logo-placeholder {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.site-logo-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 0.65rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.logo-wordmark {
    font-family: var(--font-heading);
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 0.01em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
}

/* Efeito de hover nos links comuns */
.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:not(.btn):hover,
.nav-links a.active {
    color: var(--text-main);
}

.admin-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.36rem 0.68rem;
    border-radius: 999px;
    border: 1px solid rgba(98, 173, 231, 0.45);
    background: rgba(98, 173, 231, 0.1);
    color: #0f5f97 !important;
    font-weight: 700 !important;
}

.admin-nav-link::after {
    display: none !important;
}

.admin-nav-link i {
    font-size: 0.78rem;
}

.admin-nav-link span {
    font-size: 0.82rem;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    background: rgba(98, 173, 231, 0.2);
    border-color: rgba(98, 173, 231, 0.72);
    color: #0b4e7e !important;
}

/* Botão do header */
.nav-btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.95rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

.hero {
    min-height: 85vh; 
    padding-top: var(--nav-height); 
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden; /* Garantir que backgrounds absolutos não saem da secção */
}

/* Container do Background Animation da section Hero */
.hero-bg-anim-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.hero-bg-anim-main img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    will-change: opacity;
}

.hero-bg-anim-main img.active {
    opacity: 1;
}

/* Overlay Geral para garantir legibilidade dos textos com um efeito não tão branco e meio "fosco" / "blur" */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: -1;
}

/* Container do Background Animation Canto Direito */
.hero-bg-anim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-bg-anim img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    will-change: opacity; /* Otimização para o browser para animação constante */
}

.hero-bg-anim img.active {
    opacity: 1;
}

.hero-container {
    display: grid;
    /* Texto à esquerda e animação com mais espaço à direita */
    grid-template-columns: 1fr 1.1fr;
    gap: 2.25rem;
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Conteúdo da Esquerda */
.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary-light-solid);
    color: var(--primary);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    width: max-content;
    box-shadow: 0 4px 10px rgba(253, 102, 0, 0.05);
}

.trust-badge i {
    font-size: 1rem;
}

.headline {
    /* Tipografia forte e responsiva */
    font-size: clamp(2.5rem, 4vw, 3.8rem);
    letter-spacing: -0.025em;
    color: var(--text-main);
}

.subheadline {
    font-size: 1.125rem;
    color: var(--text-muted);
    /* Largura restrita pedida no prompt */
    max-width: 520px; 
    line-height: 1.7;
}

/* Lista de benefícios / Destaques */
.benefits {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 0.5rem 0;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background-color: var(--primary-light-solid);
    color: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
}

.benefit-icon i {
    font-size: 0.8rem;
}

.benefit-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.benefit-text strong {
    font-size: 1.05rem;
    color: var(--text-main);
}

.benefit-text span {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Grupo de Call to Actions */
.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.microcopy {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.microcopy i {
    color: var(--text-main);
}

.inscrever-section {
    padding: 4.5rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-top: 1px solid var(--border);
}

.inscrever-header {
    max-width: 760px;
    margin: 0 auto 2rem auto;
    text-align: center;
}

.inscrever-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 0.75rem;
}

.inscrever-header p {
    color: var(--text-muted);
}

.about-section-head {
    max-width: 760px;
    margin: 0 auto 1.1rem auto;
    text-align: center;
}

.about-section-head h2 {
    position: relative;
    display: inline-block;
    font-size: clamp(1.45rem, 2.7vw, 2.05rem);
    margin-bottom: 0.55rem;
    padding-bottom: 0.35rem;
}

.about-section-head h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 70px;
    height: 4px;
    border-radius: 999px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
}

.about-section-head p {
    color: var(--text-muted);
}

.about-home-link {
    margin: 0.9rem auto 1.35rem auto;
    display: flex;
    justify-content: center;
}

.about-home-link .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.inscricao-form {
    max-width: 880px;
    margin: 0 auto;
    background:
        linear-gradient(180deg, rgba(98, 173, 231, 0.08) 0%, rgba(253, 102, 0, 0.06) 20%, #ffffff 20.5%),
        #ffffff;
    border: 1px solid rgba(98, 173, 231, 0.35);
    border-radius: 1.1rem;
    padding: 1.35rem;
    box-shadow: 0 20px 35px rgba(17, 24, 39, 0.09);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.form-field label {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: var(--text-main);
}

.form-field input,
.form-field select {
    height: 48px;
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 0.6rem;
    padding: 0 0.85rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--text-main);
    background-color: #ffffff;
}

.form-field input[type="file"] {
    height: auto;
    padding: 0.65rem;
}

.form-field textarea {
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 0.6rem;
    padding: 0.6rem 0.8rem;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--text-main);
    background-color: #fff;
    resize: vertical;
    min-height: 96px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px var(--secondary-light);
}

.form-submit-btn {
    margin-top: 1.4rem;
    width: 100%;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
    box-shadow: 0 12px 24px rgba(62, 150, 216, 0.28);
}

.form-channel-row {
    margin-top: 0.95rem;
}

.form-channel-check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    background: rgba(98, 173, 231, 0.08);
    border: 1px solid rgba(98, 173, 231, 0.3);
    border-radius: 0.65rem;
    padding: 0.58rem 0.72rem;
    cursor: pointer;
}

.form-channel-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.form-submit-btn:hover {
    background: linear-gradient(90deg, var(--secondary-hover) 0%, var(--primary-hover) 100%);
    box-shadow: 0 14px 26px rgba(62, 150, 216, 0.32);
}

.form-submit-btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}

.inscricao-helper {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    background: rgba(98, 173, 231, 0.1);
    border: 1px solid rgba(98, 173, 231, 0.32);
    border-radius: 0.7rem;
    padding: 0.75rem 0.85rem;
    margin-bottom: 1rem;
}

.inscricao-helper i {
    color: #0f5f97;
    margin-top: 0.14rem;
}

.contact-main {
    padding-top: var(--nav-height);
    min-height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.section-block {
    padding: 2.5rem 0;
}

.contact-overview {
    padding-top: 3.5rem;
}

.contact-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.contact-meta-card {
    position: relative;
    background:
        radial-gradient(circle at 0 0, rgba(98, 173, 231, 0.14), transparent 55%),
        linear-gradient(145deg, #ffffff 0%, #fff8f2 100%);
    border: 1px solid rgba(98, 173, 231, 0.35);
    border-radius: 1rem;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    box-shadow: 0 15px 32px rgba(17, 24, 39, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-meta-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 38px rgba(17, 24, 39, 0.12);
    border-color: rgba(98, 173, 231, 0.72);
}

.contact-card-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: rgba(98, 173, 231, 0.2);
    color: #0f5f97;
    margin-bottom: 0.15rem;
    font-size: 1.1rem;
}

.contact-meta-card a {
    color: var(--text-main);
    font-weight: 700;
    width: fit-content;
}

.contact-meta-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.contact-meta-card--whatsapp {
    background:
        radial-gradient(circle at 0 0, rgba(37, 211, 102, 0.15), transparent 48%),
        linear-gradient(145deg, #ffffff 0%, #f6fff9 100%);
    border-color: rgba(37, 211, 102, 0.38);
}

.contact-meta-card--whatsapp .contact-card-icon {
    background: rgba(37, 211, 102, 0.16);
    color: #128c7e;
}

.contact-meta-btn {
    margin-top: 0.5rem;
    width: 100%;
    font-size: 0.92rem;
    padding: 0.72rem 0.9rem;
}

.meta-label {
    display: inline-block;
    width: fit-content;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-light-solid);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
}

.highlight-card {
    background: linear-gradient(150deg, #fff6ef 0%, #ffffff 70%);
}

.highlight-card strong {
    font-size: 1.8rem;
    line-height: 1.1;
}

.section-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-bottom: 1rem;
    text-align: center;
}

.offers-page-main {
    background:
        radial-gradient(circle at 8% 12%, rgba(98, 173, 231, 0.14), transparent 32%),
        radial-gradient(circle at 88% 18%, rgba(253, 102, 0, 0.12), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.offers-hero {
    padding-top: 2.4rem;
}

.offers-kicker {
    width: fit-content;
    align-self: center;
    text-align: center;
    margin-bottom: 0.38rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #62ade7 0%, #0f5f97 100%);
    color: #ffffff !important;
    font-size: 0.92rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.35rem 0.82rem;
    box-shadow: 0 10px 20px rgba(15, 95, 151, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.35);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

.offers-feature {
    border: 1px solid var(--border);
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
    display: grid;
    grid-template-columns: minmax(0, 44%) minmax(0, 56%);
    gap: 1.2rem;
    padding: 1.2rem;
    align-items: stretch;
}

.offers-feature-media {
    border-radius: 1.06rem;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(145deg, rgba(98, 173, 231, 0.35), rgba(253, 102, 0, 0.3));
    padding: 0.35rem;
    min-height: 280px;
    max-height: none;
    height: 100%;
    display: flex;
}

.offers-feature-media img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: 82% center;
    transform: scale(1.01);
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.offers-feature-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.72rem;
    text-align: center;
}

.offers-feature-content h1 {
    margin-top: 0.48rem;
    margin-bottom: 0.35rem;
    font-size: clamp(1.45rem, 2.05vw, 1.9rem);
    line-height: 1.08;
    color: #fd6600;
    letter-spacing: 0.01em;
    text-wrap: balance;
    white-space: nowrap;
}

.offers-feature-content > p {
    color: var(--text-muted);
    font-size: 1.04rem;
    line-height: 1.55;
    max-width: 56ch;
}

.offers-highlight {
    margin-top: 0.45rem;
    border: 1px solid rgba(98, 173, 231, 0.32);
    border-radius: 1rem;
    padding: 0.9rem;
    background: linear-gradient(140deg, rgba(98, 173, 231, 0.14), rgba(253, 102, 0, 0.11));
}

.offers-highlight-badge {
    display: inline-flex;
    border-radius: 999px;
    background: linear-gradient(90deg, #62ade7 0%, #0f5f97 100%);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0.24rem 0.62rem;
    letter-spacing: 0.03em;
    border: 1px solid rgba(255, 255, 255, 0.28);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

.offers-highlight h2 {
    margin-top: 0.4rem;
    margin-bottom: 0.2rem;
    font-size: clamp(1.45rem, 2.3vw, 2rem);
    color: #c2410c;
    line-height: 1.18;
}

.offers-highlight p {
    color: #9a3412;
    font-weight: 700;
    font-size: 0.96rem;
}

.offers-actions {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
}

.offers-section {
    margin-top: 1.05rem;
    border: 1px solid var(--border);
    border-radius: 1.2rem;
    background: #fff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
    padding: 1.1rem;
}

.offers-section-archive {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.offers-section-publish {
    background: linear-gradient(160deg, rgba(98, 173, 231, 0.09), rgba(253, 102, 0, 0.08));
}

.offers-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 0.85rem;
    text-align: center;
    flex-direction: column;
}

.offers-section-head h2 {
    font-size: clamp(1.2rem, 1.8vw, 1.45rem);
}

.offers-section-head p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.offers-gallery-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    align-items: start;
}

.offers-gallery-card {
    height: 100%;
}

.offers-gallery-card .branch-showcase-card__head {
    justify-content: center;
    text-align: center;
}

.offers-gallery-card .branch-showcase-card__head h3 {
    text-align: center;
}

.offers-gallery-card .branch-showcase-desc {
    text-align: center;
}

.offers-gallery-card .branch-showcase-list strong {
    color: var(--text-main);
    font-weight: 700;
}

.offers-gallery-open-btn {
    width: min(100%, 260px);
    margin: 0 auto;
}

.offers-gallery-card .branch-showcase-actions {
    justify-content: center;
    grid-template-columns: minmax(0, 1fr);
}

.branch-gallery-thumbs.offers-gallery-preview {
    margin-top: 0;
    min-height: 0;
    align-content: start;
    padding: 0.6rem;
    border: 1px solid rgba(98, 173, 231, 0.32);
    border-radius: 0.95rem;
    background:
        radial-gradient(circle at 100% 0, rgba(98, 173, 231, 0.15), rgba(98, 173, 231, 0) 52%),
        linear-gradient(140deg, #ffffff 0%, #fff8f2 100%);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.branch-gallery-thumbs.offers-gallery-preview.offers-gallery-preview--single {
    grid-template-columns: minmax(0, 1fr);
}

.branch-gallery-thumbs.offers-gallery-preview.offers-gallery-preview--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.branch-gallery-thumbs.offers-gallery-preview.offers-gallery-preview--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.offers-gallery-preview .empty-state {
    grid-column: 1 / -1;
    text-align: center;
}

.branch-gallery-thumbs.offers-gallery-preview .branch-gallery-thumb img {
    height: 108px;
}

.offers-carousel {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    gap: 0.55rem;
    align-items: center;
}

.offers-carousel-nav {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: #0f5f97;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.1);
}

.offers-carousel-nav:hover {
    border-color: var(--secondary);
}

.offers-carousel-track {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 0.2rem;
}

.offers-carousel-track::-webkit-scrollbar {
    height: 8px;
}

.offers-carousel-track::-webkit-scrollbar-thumb {
    background: rgba(98, 173, 231, 0.42);
    border-radius: 999px;
}

.offers-carousel-item {
    scroll-snap-align: start;
    flex: 0 0 min(290px, 82vw);
    border: 1px solid var(--border);
    border-radius: 0.95rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.09);
}

.offers-carousel-item img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    object-position: center;
}

.offers-carousel-caption {
    padding: 0.62rem 0.68rem 0.7rem;
    display: grid;
    gap: 0.2rem;
}

.offers-carousel-caption strong {
    font-size: 0.9rem;
    line-height: 1.3;
}

.offers-carousel-caption small {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.offers-publish-divider {
    border: 0;
    border-top: 1px dashed rgba(15, 23, 42, 0.2);
    margin: 1rem 0;
}

.offers-publish-form {
    margin-top: 0.5rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.offers-publish-full {
    grid-column: 1 / -1;
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.branch-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 16px 35px rgba(17, 24, 39, 0.08);
}

.branch-card h4 {
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
    text-align: center;
}

.branch-card p {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: var(--text-muted);
    margin-bottom: 0.55rem;
}

.branch-card p i {
    color: var(--primary);
    margin-top: 0.15rem;
}

.branch-highlight {
    color: var(--text-main) !important;
    font-weight: 600;
    background: var(--primary-light-solid);
    border-radius: 0.65rem;
    padding: 0.55rem 0.65rem;
    margin-top: 0.85rem;
}

.branch-cta {
    margin-top: 1rem;
    width: 100%;
}

.contact-main .inscrever-section {
    padding-top: 3rem;
    border-top: none;
    background: transparent;
}

#formulario-inscricao {
    scroll-margin-top: calc(var(--nav-height) + 1rem);
}

#contactos-gerais {
    scroll-margin-top: calc(var(--nav-height) + 1rem);
}

.page-main {
    padding-top: var(--nav-height);
    min-height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.page-hero {
    padding: 4rem 0;
}

.page-card {
    max-width: 980px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(17, 24, 39, 0.08);
}

.page-card h1 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin: 0 auto 1rem auto;
    text-align: center;
    position: relative;
    display: block;
    width: fit-content;
    padding-bottom: 0.35rem;
}

.page-card h1::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -0.1rem;
    width: 70px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
}

.page-card > p {
    color: var(--text-muted);
    margin-bottom: 1.6rem;
}

.page-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.page-tile {
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    padding: 1rem;
    background: #fff;
}

.page-tile h3 {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.page-tile p {
    color: var(--text-muted);
}

.branches-showcase {
    margin-top: 1.45rem;
    padding-top: 1.1rem;
    border-top: 1px dashed rgba(15, 23, 42, 0.14);
}

.branches-showcase-head {
    margin: 0 auto 0.9rem auto;
    max-width: 700px;
    text-align: center;
}

.branches-showcase-head h2 {
    font-size: clamp(1.35rem, 2.3vw, 1.85rem);
}

.branches-showcase-head p {
    margin-top: 0.35rem;
    color: var(--text-muted);
}

.about-values-grid {
    margin-top: 0.25rem;
}

.about-value-card {
    position: relative;
    border: 1px solid rgba(98, 173, 231, 0.28);
    background:
        radial-gradient(circle at 0 0, rgba(98, 173, 231, 0.12), transparent 48%),
        linear-gradient(140deg, #ffffff 0%, #fff8f2 100%);
    box-shadow: 0 16px 30px rgba(17, 24, 39, 0.07);
    overflow: hidden;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.about-value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
}

.about-value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 38px rgba(17, 24, 39, 0.13);
    border-color: rgba(98, 173, 231, 0.65);
}

.about-value-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(98, 173, 231, 0.16);
    color: #0f5f97;
    margin-bottom: 0.55rem;
    font-size: 1.05rem;
}

.about-value-list {
    list-style: none;
    display: grid;
    gap: 0.42rem;
    margin-top: 0.3rem;
}

.about-value-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    color: var(--text-main);
    font-size: 0.92rem;
}

.about-value-list li::before {
    content: '✓';
    color: var(--secondary);
    font-weight: 800;
    margin-top: 0.02rem;
}

.branch-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.branch-showcase-card {
    position: relative;
    border: 1px solid rgba(98, 173, 231, 0.28);
    border-radius: 1rem;
    padding: 1rem;
    background:
        radial-gradient(circle at 100% 0, rgba(98, 173, 231, 0.16), rgba(98, 173, 231, 0) 55%),
        linear-gradient(135deg, #ffffff 0%, #fff8f2 100%);
    box-shadow: 0 16px 32px rgba(17, 24, 39, 0.08);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.branch-showcase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    border-radius: 1rem 1rem 0 0;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
}

.branch-showcase-card:hover,
.branch-showcase-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 20px 38px rgba(17, 24, 39, 0.16);
    border-color: rgba(98, 173, 231, 0.65);
    outline: none;
}

.branch-showcase-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.branch-showcase-card__head h3 {
    font-size: 1.06rem;
}

.branch-chip {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 999px;
    background: rgba(98, 173, 231, 0.16);
    color: #0f5f97;
    padding: 0.22rem 0.58rem;
    font-weight: 700;
}

.branch-showcase-desc {
    margin-top: 0.45rem;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.branch-showcase-list {
    margin-top: 0.7rem;
    list-style: none;
    display: grid;
    gap: 0.4rem;
}

.branch-showcase-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    color: var(--text-main);
    font-size: 0.88rem;
}

.branch-showcase-list li i {
    width: 18px;
    margin-top: 0.12rem;
    color: var(--primary);
}

.branch-showcase-actions {
    margin-top: 0.8rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.branch-showcase-actions .btn {
    width: 100%;
}

.branch-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.branch-gallery-modal[hidden] {
    display: none;
}

.branch-gallery-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(3px);
}

.branch-gallery-modal__dialog {
    position: relative;
    width: min(980px, 100%);
    max-height: 88vh;
    overflow: auto;
    border-radius: 1rem;
    border: 1px solid rgba(98, 173, 231, 0.35);
    background:
        linear-gradient(180deg, rgba(98, 173, 231, 0.12) 0%, rgba(253, 102, 0, 0.09) 28%, #ffffff 28.5%),
        #ffffff;
    box-shadow: 0 28px 55px rgba(15, 23, 42, 0.34);
    padding: 1.1rem;
}

.branch-gallery-modal__close {
    position: absolute;
    top: 0.35rem;
    right: 0.5rem;
    border: none;
    background: transparent;
    font-size: 1.7rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
}

.branch-gallery-modal__close:hover {
    color: var(--text-main);
}

.branch-gallery-modal__dialog h3 {
    font-size: 1.25rem;
    margin-top: 0.15rem;
}

.branch-gallery-modal__dialog > p {
    margin-top: 0.3rem;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}

.branch-gallery-viewer {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.7rem;
}

.branch-gallery-nav-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-main);
    cursor: pointer;
}

.branch-gallery-nav-btn:hover:not(:disabled) {
    border-color: var(--secondary);
    color: #0f5f97;
}

.branch-gallery-nav-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.branch-gallery-focus {
    border: 1px solid var(--border);
    border-radius: 0.95rem;
    overflow: hidden;
    background: #fff;
}

.branch-gallery-focus img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

.branch-gallery-focus figcaption {
    padding: 0.55rem 0.7rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.branch-gallery-counter {
    margin-top: 0.65rem;
    font-size: 0.87rem;
    color: var(--text-muted);
    text-align: center;
    font-weight: 700;
}

.branch-gallery-thumbs {
    margin-top: 0.6rem;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.45rem;
}

.branch-gallery-thumb {
    border: 1px solid var(--border);
    border-radius: 0.55rem;
    padding: 0;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
}

.branch-gallery-thumb img {
    width: 100%;
    height: 72px;
    object-fit: cover;
    display: block;
}

.branch-gallery-thumb.is-active {
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(98, 173, 231, 0.24);
}

.branch-gallery-upload {
    margin-top: 0.9rem;
    border: 1px solid rgba(98, 173, 231, 0.35);
    border-radius: 0.8rem;
    background: rgba(98, 173, 231, 0.07);
    padding: 0.8rem;
}

.branch-gallery-upload h4 {
    font-size: 0.97rem;
    margin-bottom: 0.55rem;
}

.branch-gallery-upload-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.6rem;
    align-items: end;
}

.branch-gallery-upload-form .btn {
    height: 42px;
}

.branch-gallery-readonly {
    margin-top: 0.8rem;
    font-size: 0.86rem;
    color: var(--text-muted);
    border: 1px dashed var(--border);
    background: #f8fafc;
    border-radius: 0.7rem;
    padding: 0.55rem 0.65rem;
}

.courses-page-card {
    max-width: 1140px;
}

.course-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.course-category-card {
    position: relative;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
    perspective: 1200px;
    min-height: 460px;
    transition: transform 0.24s ease;
}

.course-category-card:not(.is-flipped):hover {
    transform: translateY(-4px);
}

.course-card-inner {
    position: relative;
    width: 100%;
    min-height: inherit;
    height: 100%;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transition: transform 0.68s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.course-category-card.is-flipped .course-card-inner {
    transform: rotateY(180deg);
}

.course-card-face {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(98, 173, 231, 0.32);
    border-radius: 1rem;
    background:
        radial-gradient(circle at 100% 0, rgba(98, 173, 231, 0.18), transparent 56%),
        linear-gradient(145deg, #ffffff 0%, #fff8f2 100%);
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.08);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    padding: 1.05rem 0.95rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.34rem;
    overflow: hidden;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transform: translateZ(0);
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.course-card-face::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
}

.course-card-face > * {
    position: relative;
    z-index: 1;
}

.course-card-front {
    z-index: 2;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.course-card-back {
    transform: rotateY(180deg);
    background:
        radial-gradient(circle at 0 100%, rgba(253, 102, 0, 0.16), transparent 56%),
        linear-gradient(145deg, #ffffff 0%, #eef8ff 100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
}

.course-category-card.is-flipped .course-card-front {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.course-category-card.is-flipped .course-card-back {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.course-category-card.active .course-card-face {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-light), 0 20px 38px rgba(17, 24, 39, 0.14);
}

.course-card-back-copy {
    margin-top: 0.15rem;
    margin-bottom: 0.45rem;
    font-size: 0.88rem;
    color: #1f2937;
    font-weight: 600;
}

.course-card-back .course-detail-list {
    margin-top: 0.15rem;
    margin-bottom: 0.65rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding-right: 0.15rem;
    gap: 0.42rem;
}

.course-card-back .course-detail-list li {
    font-size: 0.83rem;
    line-height: 1.42;
    padding: 0.46rem 0.56rem;
}

.course-card-back-btn {
    width: fit-content;
    border: 1px solid #0f5f97;
    border-radius: 999px;
    background: #0f5f97;
    color: #fff;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.78rem;
    padding: 0.32rem 0.74rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
    z-index: 1;
}

.course-card-back-btn:hover {
    border-color: #0c4a74;
    background: #0c4a74;
    color: #fff;
}

.course-category-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.5rem;
}

.course-category-icon {
    width: 42px;
    height: 42px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(98, 173, 231, 0.18);
    color: #0f5f97;
    font-size: 1.08rem;
}

.course-category-badge {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 999px;
    background: rgba(253, 102, 0, 0.12);
    color: #a63f00;
    padding: 0.2rem 0.58rem;
    font-weight: 700;
}

.course-category-features {
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
    list-style: none;
    display: grid;
    gap: 0.28rem;
}

.course-category-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.42rem;
    color: var(--text-main);
    font-size: 0.84rem;
}

.course-category-features li::before {
    content: '✓';
    color: var(--secondary);
    font-weight: 800;
    margin-top: 0.03rem;
}

.category-select-btn {
    margin-top: auto;
    width: 100%;
    min-height: 42px;
    padding: 0.58rem 0.75rem;
    font-size: 0.9rem;
    line-height: 1.25;
    white-space: normal;
}

.category-choose-btn {
    margin-top: auto;
    width: 100%;
    min-height: 42px;
    padding: 0.58rem 0.75rem;
    font-size: 0.88rem;
    line-height: 1.25;
    white-space: normal;
}

.course-detail-card {
    margin-top: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #ffffff 0%, #fff7f1 100%);
    transform-origin: center center;
    backface-visibility: hidden;
}

.course-category-grid .course-detail-card {
    grid-column: 1 / -1;
    margin-top: 0.45rem;
}

.about-contact-card {
    background: linear-gradient(145deg, rgba(98, 173, 231, 0.11) 0%, rgba(253, 102, 0, 0.05) 26%, #ffffff 26.5%);
    border: 1px solid rgba(98, 173, 231, 0.34);
}

.about-enroll-card {
    background: linear-gradient(145deg, rgba(253, 102, 0, 0.09) 0%, rgba(98, 173, 231, 0.06) 28%, #ffffff 28.5%);
    border: 1px solid rgba(253, 102, 0, 0.28);
}

.course-detail-card h2 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    text-align: center;
}

.course-detail-list {
    list-style: none;
    display: grid;
    gap: 0.6rem;
}

.course-detail-list li {
    padding: 0.55rem 0.7rem;
    border-radius: 0.6rem;
    background: #ffffff;
    border: 1px solid var(--border);
    font-size: 0.92rem;
}

.course-detail-card.is-flipping {
    animation: courseDetailFlip 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes courseDetailFlip {
    0% {
        opacity: 0.35;
        transform: perspective(900px) rotateY(-18deg) scale(0.97);
    }
    55% {
        opacity: 1;
        transform: perspective(900px) rotateY(9deg) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: perspective(900px) rotateY(0deg) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .course-detail-card.is-flipping {
        animation: none;
    }
}

.course-flow-grid {
    margin-top: 1.25rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.course-enroll-card {
    margin-top: 1.25rem;
    border: 1px solid rgba(98, 173, 231, 0.34);
    background:
        linear-gradient(160deg, rgba(98, 173, 231, 0.1) 0%, rgba(253, 102, 0, 0.05) 26%, #ffffff 26.5%),
        #ffffff;
    box-shadow: 0 16px 34px rgba(17, 24, 39, 0.08);
}

.student-area-card {
    margin-top: 1.25rem;
}

.student-login-page-card > p {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 1.02rem;
}

.student-login-page-card h1 {
    font-size: clamp(1.9rem, 2.6vw, 2.55rem);
}

.flow-card.student-auth-card {
    position: relative;
    overflow: hidden;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(98, 173, 231, 0.38);
    background:
        radial-gradient(1200px 520px at -10% -35%, rgba(98, 173, 231, 0.22) 0%, rgba(98, 173, 231, 0) 60%),
        radial-gradient(1000px 520px at 110% -10%, rgba(253, 102, 0, 0.18) 0%, rgba(253, 102, 0, 0) 62%),
        linear-gradient(180deg, rgba(98, 173, 231, 0.10) 0%, rgba(253, 102, 0, 0.06) 18%, #ffffff 18.5%),
        #ffffff;
    box-shadow: 0 18px 38px rgba(17, 24, 39, 0.08);
}

.flow-card.student-auth-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(98, 173, 231, 0.08) 0%, rgba(253, 102, 0, 0.06) 100%);
    opacity: 0.26;
    pointer-events: none;
}

.flow-card.student-auth-card > * {
    position: relative;
}

.student-auth-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 1.45rem;
}

.student-auth-title i {
    color: var(--secondary);
    background: rgba(98, 173, 231, 0.12);
    border: 1px solid rgba(98, 173, 231, 0.26);
    border-radius: 0.8rem;
    padding: 0.5rem 0.6rem;
}

.flow-card.student-auth-card .panel-hint {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(98, 173, 231, 0.25);
    font-size: 0.95rem;
}

.flow-card.student-auth-card .student-login-actions {
    margin-top: 0.15rem;
}

.flow-card.student-auth-card .student-login-actions .btn {
    border-radius: 0.85rem;
    padding: 0.82rem 1.05rem;
    font-size: 1.02rem;
}

.flow-card.student-auth-card .form-field label {
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
}

.flow-card.student-auth-card .form-field input {
    height: 52px;
    border-color: rgba(98, 173, 231, 0.24);
}

.flow-card {
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: #fff;
    padding: 1.2rem;
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.06);
}

.flow-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.flow-card > p {
    color: var(--text-muted);
    margin-bottom: 0.95rem;
}

.course-enroll-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.2rem;
}

.course-enroll-copy {
    margin-bottom: 1rem !important;
}

.course-enroll-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    background: rgba(98, 173, 231, 0.16);
    color: #0f5f97;
    padding: 0.28rem 0.68rem;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.course-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.course-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.course-form .form-field label {
    font-weight: 700;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.course-form .form-field input,
.course-form .form-field select {
    height: 46px;
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 0.6rem;
    padding: 0 0.8rem;
    background: #fff;
}

.course-form .form-field input:focus,
.course-form .form-field select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px var(--secondary-light);
}

.course-form-field-full {
    grid-column: 1 / -1;
}

.course-form .form-field input[type="file"] {
    height: auto;
    padding: 0.65rem;
    width: 100%;
    max-width: 100%;
}

.admin-enrollment-item .form-field input[type="file"] {
    height: auto;
    padding: 0.5rem;
}

.course-action-btn {
    width: 100%;
    margin-top: 0.25rem;
}

.course-enroll-card .course-action-btn.btn-primary {
    background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
    box-shadow: 0 10px 22px rgba(62, 150, 216, 0.27);
}

.course-enroll-card .course-action-btn.btn-primary:hover {
    background: linear-gradient(90deg, var(--secondary-hover) 0%, var(--primary-hover) 100%);
}

.form-note {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(98, 173, 231, 0.08);
    border: 1px solid rgba(98, 173, 231, 0.24);
    border-radius: 0.68rem;
    padding: 0.58rem 0.68rem;
}

.form-note i {
    color: var(--primary);
}

.inline-feedback {
    min-height: 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.inline-feedback[data-state="success"] {
    color: #166534;
}

.inline-feedback[data-state="error"] {
    color: #991b1b;
}

.student-panel {
    margin-top: 1rem;
    border-top: 1px dashed var(--border);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.student-panel p {
    color: var(--text-muted);
}

.student-panel p strong {
    color: var(--text-main);
}

.student-category-dashboard {
    margin-top: 0.6rem;
    border: 1px solid rgba(98, 173, 231, 0.32);
    border-radius: 1rem;
    background: linear-gradient(145deg, rgba(98, 173, 231, 0.10) 0%, rgba(253, 102, 0, 0.06) 100%);
    padding: 0.8rem;
}

.student-portal-grid {
    margin-top: 0.75rem;
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.student-portal-aside {
    position: sticky;
    top: calc(var(--nav-height) + 1rem);
    align-self: start;
}

.student-portal-aside .student-category-dashboard {
    margin-top: 0;
}

.student-portal-aside .student-dash-grid {
    grid-template-columns: 1fr;
}

.student-portal-body {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-width: 0;
}

@media (max-width: 920px) {
    .student-portal-grid {
        grid-template-columns: 1fr;
    }

    .student-portal-aside {
        position: static;
    }

    .student-portal-aside .student-dash-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.student-dash-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.student-dash-head h4 {
    margin: 0;
    font-size: 1.05rem;
}

.student-dash-head p {
    margin-top: 0.2rem !important;
    color: var(--text-muted);
    max-width: 56ch;
}

.student-dash-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.student-dash-grid {
    margin-top: 0.75rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.student-dash-card {
    border: 1px solid rgba(15, 95, 151, 0.18);
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.85);
    padding: 0.7rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
    text-align: left;
}

.student-dash-card:hover {
    transform: translateY(-1px);
    border-color: rgba(15, 95, 151, 0.32);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.10);
}

.student-dash-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 0.9rem;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(98, 173, 231, 0.22), rgba(253, 102, 0, 0.12));
    color: #0f5f97;
    flex-shrink: 0;
}

.student-dash-card__body {
    display: grid;
    gap: 0.1rem;
    flex: 1;
}

.student-dash-card__body strong {
    color: var(--text-main);
    font-size: 0.95rem;
}

.student-dash-card__body span {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.student-dash-card__arrow {
    color: var(--text-muted);
}

.student-section {
    scroll-margin-top: 92px;
}

.student-upload-form {
    border: 1px solid rgba(15, 95, 151, 0.16);
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.92);
    padding: 0.85rem;
}

.student-login-form {
    margin-top: 0.4rem;
}

.student-login-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.student-loading-box {
    margin-top: 0.7rem;
    display: grid;
    gap: 0.55rem;
}

.student-aux-btn {
    border-style: dashed;
}

.student-recovery-form {
    margin-top: 0.8rem;
    border: 1px solid rgba(98, 173, 231, 0.32);
    border-radius: 0.85rem;
    background: rgba(98, 173, 231, 0.06);
    padding: 0.85rem;
}

.student-recovery-form h4 {
    font-size: 1rem;
    margin-bottom: 0.45rem;
}

.student-profile-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border: 1px solid rgba(98, 173, 231, 0.3);
    border-radius: 0.85rem;
    background: linear-gradient(145deg, rgba(98, 173, 231, 0.12) 0%, rgba(253, 102, 0, 0.06) 100%);
    padding: 0.72rem;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
}

.student-profile-info {
    flex: 1;
    min-width: 180px;
}

.student-profile-head__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.student-profile-head__actions .btn {
    white-space: nowrap;
}

.student-photo-form {
    margin-top: 0.6rem;
    border-top: 1px dashed var(--border);
    padding-top: 0.75rem;
}

.student-photo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.student-photo-actions input[type="file"] {
    flex: 1 1 240px;
    max-width: 100%;
}

@media (max-width: 520px) {
    .page-hero {
        padding: 2.75rem 0;
    }

    .page-card {
        padding: 1.25rem;
        border-radius: 1.05rem;
    }

    .flow-card {
        padding: 1rem;
    }

    .course-form-grid,
    .form-grid {
        gap: 0.75rem;
    }

    .course-form .form-field label,
    .form-field label {
        font-size: 0.82rem;
    }

    .course-form .form-field input,
    .course-form .form-field select,
    .form-field input,
    .form-field select {
        height: 44px;
        padding: 0 0.75rem;
        font-size: 0.98rem;
    }

    .course-form .form-field input[type="file"],
    .form-field input[type="file"] {
        padding: 0.45rem 0.55rem;
        font-size: 0.92rem;
    }

    .course-form .form-field input[type="file"]::file-selector-button,
    .form-field input[type="file"]::file-selector-button,
    .course-form .form-field input[type="file"]::-webkit-file-upload-button,
    .form-field input[type="file"]::-webkit-file-upload-button {
        padding: 0.45rem 0.6rem;
        margin-right: 0.55rem;
        border-radius: 0.6rem;
        border: 1px solid rgba(98, 173, 231, 0.28);
        background: rgba(98, 173, 231, 0.12);
        color: #0f5f97;
        font-weight: 700;
        cursor: pointer;
    }

    .student-login-page-card > p {
        font-size: 0.98rem;
    }

    .student-auth-title {
        font-size: 1.26rem;
    }

    .flow-card.student-auth-card {
        padding: 1.05rem;
    }

    .flow-card.student-auth-card .student-login-actions .btn {
        font-size: 0.98rem;
    }

    .student-profile-head__actions {
        width: 100%;
        justify-content: flex-end;
    }

    .student-portal-aside .student-dash-grid {
        grid-template-columns: 1fr;
    }

    .student-photo-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .student-photo-actions input[type="file"] {
        flex: 0 1 auto;
        width: 100%;
    }

    .student-photo-actions .btn {
        width: 100%;
    }

    .student-payment-line {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .student-payment-line .btn {
        justify-self: start;
    }
}

.student-profile-head h4 {
    font-size: 1.05rem;
    margin: 0;
}

.student-profile-photo {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(98, 173, 231, 0.6);
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.student-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-profile-photo span {
    color: #0f5f97;
    font-size: 1.45rem;
}

.student-extra-section {
    margin-top: 0.55rem;
    border-top: 1px dashed var(--border);
    padding-top: 0.75rem;
}

.student-extra-section h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.student-online-title-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.95rem;
    background: linear-gradient(135deg, rgba(253, 102, 0, 0.96), rgba(253, 102, 0, 0.72));
    color: #ffffff;
    box-shadow: 0 16px 34px rgba(253, 102, 0, 0.22);
    margin-bottom: 0.55rem;
}

.student-online-title-card h4 {
    margin: 0;
    font-size: 1.08rem;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.student-online-title-card i {
    opacity: 0.95;
}

.student-complaint-item {
    align-items: flex-start;
}

.student-complaint-item > div p {
    margin-top: 0.2rem;
}

.student-quiz-form {
    margin-top: 0.45rem;
}

.student-quiz-question {
    border: 1px solid var(--border);
    border-radius: 0.7rem;
    background: #fff;
    padding: 0.62rem;
}

.student-quiz-question legend {
    font-weight: 700;
    color: var(--text-main);
    padding: 0 0.2rem;
}

.student-quiz-question label {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin-top: 0.35rem;
    color: var(--text-main);
}

.student-doc-list {
    margin-top: 0.55rem;
    display: grid;
    gap: 0.5rem;
}

.student-doc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid var(--border);
    border-radius: 0.65rem;
    background: #fff;
    padding: 0.55rem 0.65rem;
}

.student-collapsible {
    margin-top: 0.65rem;
    border: 1px solid rgba(15, 95, 151, 0.18);
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 0.7rem;
}

.student-collapsible summary {
    list-style: none;
    cursor: pointer;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.student-collapsible summary::-webkit-details-marker {
    display: none;
}

.student-collapsible[open] summary {
    margin-bottom: 0.55rem;
}

.student-payment-accounts {
    margin-top: 0.65rem;
    display: grid;
    gap: 0.65rem;
}

.student-payment-card {
    border: 1px solid rgba(15, 95, 151, 0.16);
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.92);
    padding: 0.75rem 0.85rem;
    display: grid;
    gap: 0.6rem;
}

.student-payment-card__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.student-payment-card__head strong {
    font-size: 0.98rem;
    letter-spacing: -0.01em;
}

.student-payment-card__body p {
    margin-top: 0.25rem !important;
}

.student-payment-line {
    margin-top: 0.55rem;
    padding-top: 0.55rem;
    border-top: 1px dashed var(--border);
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.6rem;
}

.student-payment-line__label {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text-muted);
}

.student-payment-line code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.86rem;
    padding: 0.35rem 0.5rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(15, 95, 151, 0.14);
    background: rgba(98, 173, 231, 0.10);
    word-break: break-word;
}

.student-payment-line .btn {
    white-space: nowrap;
}

.student-payment-line.is-empty code {
    border-style: dashed;
    background: rgba(15, 95, 151, 0.06);
    color: rgba(15, 23, 42, 0.72);
}

.student-payment-line .btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.student-payments-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.student-payments-head h4 {
    margin: 0;
}

.lms-shell {
    margin-top: 0.75rem;
    border: 1px solid rgba(15, 95, 151, 0.16);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.92);
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    overflow: hidden;
}

.lms-nav {
    border-right: 1px solid rgba(15, 95, 151, 0.12);
    padding: 0.85rem;
    background: linear-gradient(180deg, rgba(98, 173, 231, 0.08) 0%, rgba(253, 102, 0, 0.04) 100%);
}

.lms-nav-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.lms-nav-head strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-main);
}

.lms-progress {
    display: grid;
    gap: 0.35rem;
    min-width: 92px;
    text-align: right;
}

.lms-progress-text {
    font-size: 0.82rem;
    font-weight: 800;
    color: #0f5f97;
}

.lms-progressbar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(15, 95, 151, 0.18);
    background: rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

.lms-progressbar__fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(15, 95, 151, 0.95) 0%, rgba(98, 173, 231, 0.95) 60%, rgba(253, 102, 0, 0.92) 100%);
}

.lms-module-list {
    display: grid;
    gap: 0.55rem;
}

.lms-module-btn {
    border: 1px solid rgba(15, 95, 151, 0.16);
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.88);
    padding: 0.7rem 0.75rem;
    text-align: left;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
    display: grid;
    gap: 0.35rem;
}

.lms-module-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(15, 95, 151, 0.32);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.lms-module-btn.is-active {
    border-color: rgba(15, 95, 151, 0.42);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.10);
}

.lms-module-btn__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
}

.lms-module-badge {
    font-size: 0.75rem;
    font-weight: 800;
    color: #0f5f97;
    background: rgba(98, 173, 231, 0.14);
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 95, 151, 0.12);
    white-space: nowrap;
}

.lms-module-meter {
    height: 7px;
    border-radius: 999px;
    background: rgba(15, 95, 151, 0.08);
    overflow: hidden;
    border: 1px solid rgba(15, 95, 151, 0.10);
}

.lms-module-meter__fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(15, 95, 151, 0.92), rgba(253, 102, 0, 0.85));
}

.lms-module-btn p {
    margin: 0.15rem 0 0 !important;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.lms-content {
    padding: 0.95rem 1rem;
    min-width: 0;
}

.lms-content-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.lms-content-head h5 {
    margin: 0;
    font-size: 1.05rem;
}

.lms-content-badges {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.lms-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text-main);
    background: rgba(253, 102, 0, 0.10);
    border: 1px solid rgba(253, 102, 0, 0.22);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.lms-lesson-pills {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.lms-lesson-pill {
    border: 1px solid rgba(15, 95, 151, 0.14);
    background: rgba(248, 250, 252, 0.8);
    border-radius: 999px;
    padding: 0.35rem 0.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--text-main);
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.lms-lesson-pill i {
    color: rgba(15, 95, 151, 0.85);
}

.lms-lesson-pill.is-done i {
    color: #166534;
}

.lms-lesson-pill.is-active {
    border-color: rgba(15, 95, 151, 0.36);
    background: rgba(98, 173, 231, 0.12);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.lms-lesson-pill:hover {
    transform: translateY(-1px);
    border-color: rgba(15, 95, 151, 0.26);
}

.lms-lesson-card {
    margin-top: 0.85rem;
    border: 1px solid rgba(15, 95, 151, 0.14);
    border-radius: 1rem;
    background: #fff;
    padding: 0.85rem;
    display: grid;
    gap: 0.65rem;
}

.lms-lesson-card__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.lms-lesson-card__head strong {
    font-size: 0.98rem;
}

.lms-lesson-points {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--text-main);
}

.lms-lesson-points li {
    margin-top: 0.35rem;
}

.lms-media-placeholder {
    border: 1px dashed rgba(15, 95, 151, 0.26);
    border-radius: 0.95rem;
    background: linear-gradient(135deg, rgba(98, 173, 231, 0.10), rgba(253, 102, 0, 0.06));
    padding: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.lms-media-placeholder i {
    color: #0f5f97;
    margin-top: 0.15rem;
}

.lms-media-placeholder strong {
    display: block;
    color: var(--text-main);
}

.lms-media-placeholder p {
    margin-top: 0.2rem !important;
    color: var(--text-muted);
}

.lms-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.lms-actions__spacer {
    flex: 1;
    min-width: 10px;
}

@media (max-width: 920px) {
    .lms-shell {
        grid-template-columns: 1fr;
    }

    .lms-nav {
        border-right: none;
        border-bottom: 1px solid rgba(15, 95, 151, 0.12);
    }

    .lms-progress {
        text-align: left;
    }
}

.status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.status-pendente {
    background: #fff7ed;
    color: #9a3412;
}

.status-aprovado {
    background: #ecfdf3;
    color: #166534;
}

.status-rejeitado {
    background: #fef2f2;
    color: #991b1b;
}

.status-anulado {
    background: #f1f5f9;
    color: #334155;
}

.doc-status-completo {
    background: #ecfdf3;
    color: #166534;
}

.doc-status-falta {
    background: #fef2f2;
    color: #991b1b;
}

.doc-status-pendente {
    background: #fff7ed;
    color: #9a3412;
}

.exam-status-apto {
    background: #ecfdf3;
    color: #166534;
}

.exam-status-reprovado {
    background: #fef2f2;
    color: #991b1b;
}

.exam-status-pendente {
    background: #e0f2fe;
    color: #0c4a6e;
}

.panel-hint {
    font-size: 0.9rem;
    color: var(--text-main) !important;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 0.7rem;
    padding: 0.6rem 0.75rem;
}

.admin-card {
    margin-top: 1rem;
}

.admin-sync-status {
    margin-top: 0.5rem;
    border: 1px dashed var(--border);
    border-radius: 0.68rem;
    background: var(--bg-alt);
    padding: 0.58rem 0.72rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.admin-sync-status::before {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #94a3b8;
    flex-shrink: 0;
}

.admin-sync-status[data-state="loading"] {
    color: #0c4a6e;
    border-color: rgba(12, 74, 110, 0.28);
    background: #f0f9ff;
}

.admin-sync-status[data-state="loading"]::before {
    background: #0ea5e9;
    animation: admin-sync-pulse 1s ease-in-out infinite;
}

.admin-sync-status[data-state="ready"] {
    color: #166534;
    border-color: rgba(22, 101, 52, 0.28);
    background: #ecfdf3;
}

.admin-sync-status[data-state="ready"]::before {
    background: #16a34a;
    animation: none;
}

.admin-sync-status[data-state="error"] {
    color: #991b1b;
    border-color: rgba(153, 27, 27, 0.32);
    background: #fef2f2;
}

.admin-sync-status[data-state="error"]::before {
    background: #dc2626;
    animation: none;
}

@keyframes admin-sync-pulse {
    0% { opacity: 0.45; transform: scale(0.92); }
    50% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.45; transform: scale(0.92); }
}

.admin-card.is-busy {
    cursor: progress;
}

.admin-card.is-busy .btn,
.admin-card.is-busy input,
.admin-card.is-busy select,
.admin-card.is-busy textarea,
.admin-card.is-busy summary,
.admin-card.is-busy [role="button"] {
    pointer-events: none;
    opacity: 0.72;
}

.admin-login-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.admin-login-form .course-action-btn {
    grid-column: 1 / -1;
}

.admin-login-form .inline-feedback {
    grid-column: 1 / -1;
}

.admin-header-row {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
}

.admin-enrollment-list {
    margin-top: 0.8rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

.admin-enrollment-item {
    border: 1px solid var(--border);
    border-radius: 0.8rem;
    padding: 0.9rem;
    background: #fff;
}

.admin-enrollment-card {
    padding: 0;
    overflow: hidden;
}

.admin-enrollment-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.78rem;
    background: linear-gradient(120deg, rgba(98, 173, 231, 0.09), rgba(253, 102, 0, 0.06));
}

.admin-enrollment-summary::-webkit-details-marker {
    display: none;
}

.admin-enrollment-summary-side {
    display: grid;
    justify-items: end;
    gap: 0.2rem;
}

.admin-enrollment-body {
    padding: 0.78rem;
    border-top: 1px solid var(--border);
    display: grid;
    gap: 0.68rem;
}

.admin-enrollment-item p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.admin-enrollment-item p strong {
    color: var(--text-main);
}

.admin-enrollment-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
}

.admin-actions {
    margin-top: 0.7rem;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.admin-actions .btn {
    flex: 1;
    min-width: 100px;
}

.admin-doc-grid {
    margin-top: 0.7rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.admin-doc-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    border: 1px solid var(--border);
    border-radius: 0.6rem;
    padding: 0.55rem;
    background: #fff;
}

.admin-doc-item span {
    font-size: 0.83rem;
    color: var(--text-main);
    font-weight: 600;
}

.admin-doc-file-link {
    display: inline-flex;
    align-items: center;
    margin-left: 0.4rem;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

.admin-doc-file-link:hover {
    text-decoration: underline;
}

.admin-doc-item select {
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    height: 38px;
    padding: 0 0.45rem;
    font-family: var(--font-main);
}

.admin-doc-item select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.admin-upload-hint {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.student-comment-preview {
    background: var(--bg-alt);
    border: 1px dashed var(--border);
    border-radius: 0.65rem;
    padding: 0.55rem 0.65rem;
}

.admin-extra-grid {
    margin-top: 0.75rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.admin-extra-card {
    border: 1px solid var(--border);
    border-radius: 0.7rem;
    padding: 0.6rem;
    background: #fff;
    display: grid;
    gap: 0.3rem;
}

.admin-extra-card p {
    margin-top: 0 !important;
}

.admin-complaint-row {
    margin-top: 0.45rem;
}

.admin-complaint-row p {
    margin-top: 0.18rem !important;
}

.admin-student-photo-row {
    margin-top: 0.45rem;
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.admin-student-photo-preview,
.admin-student-photo-placeholder {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(98, 173, 231, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #0f5f97;
    flex-shrink: 0;
}

.admin-student-photo-preview {
    object-fit: cover;
}

.admin-student-photo-actions {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    align-items: center;
}

.admin-student-photo-actions input[type="file"] {
    max-width: 220px;
}

.student-comment-form {
    margin-top: 0.5rem;
}

.internal-access-note {
    margin-top: 1rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    text-align: right;
}

.internal-access-note a {
    color: var(--text-main);
    font-weight: 600;
}

.empty-state {
    color: var(--text-muted);
    font-weight: 500;
    background: var(--bg-alt);
    border: 1px dashed var(--border);
    border-radius: 0.7rem;
    padding: 0.75rem;
}

.admin-page-card {
    max-width: 1180px;
}

.admin-overview-grid {
    margin-top: 1.2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.8rem;
}

.admin-overview-card {
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    padding: 0.9rem;
    background: linear-gradient(145deg, #ffffff 0%, #fff6ef 100%);
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.05);
}

.admin-overview-card span {
    font-size: 0.82rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    font-weight: 700;
}

.admin-overview-card strong {
    display: block;
    margin-top: 0.3rem;
    font-size: 1.65rem;
    line-height: 1.1;
}

.admin-toolbar {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.8rem;
    border-top: 1px dashed var(--border);
    padding-top: 1rem;
}

.admin-create-card {
    margin-top: 1rem;
    background: linear-gradient(145deg, rgba(98, 173, 231, 0.08) 0%, rgba(253, 102, 0, 0.06) 100%);
}

.admin-create-card h4 {
    margin-bottom: 0.65rem;
    font-size: 1.04rem;
}

.admin-create-form {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.7rem;
}

.admin-create-form .btn {
    grid-column: 1 / -1;
}

.admin-toolbar-group {
    flex: 1;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 0.75rem;
}

.admin-toolbar-actions {
    display: flex;
    align-items: flex-end;
}

.admin-pending-quick-btn {
    min-height: 42px;
    border-color: rgba(220, 38, 38, 0.35);
    color: #991b1b;
    font-weight: 800;
}

.admin-pending-quick-btn.has-pending {
    background: #fef2f2;
}

.admin-pending-quick-btn .admin-tab-badge {
    margin-left: 0.2rem;
}

.admin-result-info {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.admin-meta-line {
    margin-top: 0.1rem !important;
    font-size: 0.82rem !important;
}

.admin-contact-grid {
    margin-top: 0.45rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 0.8rem;
}

.admin-contact-grid p {
    margin-top: 0 !important;
}

.admin-result-grid {
    margin-top: 0.7rem;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 0.6rem;
}

.admin-session-row {
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px dashed var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.admin-role-tag {
    margin-top: 0.2rem;
    color: #0c4a6e;
    font-weight: 700;
    font-size: 0.88rem;
}

.admin-module-tabs {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.admin-module-btn {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.86rem;
    cursor: pointer;
    color: var(--text-main);
}

.admin-tab-badge {
    min-width: 1.2rem;
    height: 1.2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.25rem;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    background: #dc2626;
}

.admin-tab-badge-action {
    cursor: pointer;
}

.admin-module-btn:hover {
    border-color: var(--secondary);
    color: #0f5f97;
}

.admin-module-btn.active {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
}

.admin-module-panel {
    margin-top: 1rem;
}

.admin-module-panel h4 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

.admin-module-subnav {
    margin-bottom: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.45rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background: linear-gradient(120deg, rgba(98, 173, 231, 0.08), rgba(253, 102, 0, 0.06));
}

.admin-module-subnav-btn {
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.88);
    border-radius: 999px;
    padding: 0.4rem 0.82rem;
    font-family: var(--font-main);
    font-size: 0.83rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.admin-module-subnav-btn:hover {
    border-color: var(--secondary);
    transform: translateY(-1px);
}

.admin-module-subnav-btn.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.15);
}

.admin-module-subnav-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

#module-rh > .admin-module-subnav {
    flex-wrap: nowrap;
    overflow-x: auto;
}

.admin-filter-panel {
    margin-top: 0.35rem;
    margin-bottom: 0.75rem;
    padding: 0.7rem;
    border: 1px solid var(--border);
    border-radius: 0.78rem;
    background: linear-gradient(145deg, rgba(98, 173, 231, 0.08), rgba(253, 102, 0, 0.05));
}

.admin-subtitle {
    margin-top: 1rem;
    margin-bottom: 0.55rem;
    font-size: 1rem;
}

.admin-dashboard-grid {
    margin-top: 0.9rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.admin-dashboard-link {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-dashboard-link:hover {
    transform: translateY(-2px);
    border-color: rgba(98, 173, 231, 0.45);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.admin-dashboard-link:focus-visible {
    outline: 3px solid rgba(98, 173, 231, 0.35);
    outline-offset: 2px;
}

.admin-dashboard-pending {
    margin-top: 0.45rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid rgba(153, 27, 27, 0.22);
    border-radius: 999px;
    padding: 0.22rem 0.58rem;
    cursor: pointer;
}

.admin-collapsible {
    margin-top: 0.65rem;
    border: 1px solid var(--border);
    border-radius: 0.72rem;
    background: #fff;
    overflow: hidden;
}

.admin-collapsible > summary {
    list-style: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
    background: linear-gradient(90deg, rgba(98, 173, 231, 0.07), rgba(253, 102, 0, 0.05));
    padding: 0.55rem 0.72rem;
    border-bottom: 1px dashed var(--border);
}

.admin-collapsible > summary::-webkit-details-marker {
    display: none;
}

.admin-collapsible[open] > summary {
    color: #0f5f97;
}

.admin-collapsible-body {
    padding: 0.65rem 0.72rem 0.75rem;
    display: grid;
    gap: 0.62rem;
}

.admin-pending-modal {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.admin-pending-modal[hidden] {
    display: none !important;
}

.admin-pending-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
}

.admin-pending-modal__dialog {
    position: relative;
    width: min(760px, 100%);
    max-height: 88vh;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 0.95rem;
    background: #fff;
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.25);
    padding: 1rem;
}

.admin-pending-modal__dialog h4 {
    font-size: 1.08rem;
    margin-bottom: 0.35rem;
}

.admin-pending-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin: 0.4rem 0 0.7rem 0;
}

.admin-pending-modal__close {
    position: absolute;
    top: 0.35rem;
    right: 0.5rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
}

.admin-simple-list {
    margin-top: 0.8rem;
    display: grid;
    gap: 0.65rem;
}

.admin-secretaria-ops {
    margin-top: 1rem;
    border-top: 1px dashed var(--border);
    padding-top: 0.9rem;
}

.admin-secretaria-ops-board {
    margin-top: 0.85rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.sec-op-card {
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    background: linear-gradient(150deg, rgba(98, 173, 231, 0.08) 0%, rgba(253, 102, 0, 0.05) 30%, #ffffff 30.5%);
    padding: 0.75rem;
    display: grid;
    gap: 0.5rem;
}

.sec-op-card h6 {
    font-size: 0.98rem;
    margin: 0;
}

.sec-op-card > p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.sec-op-form .course-form-grid {
    gap: 0.5rem;
}

.sec-op-form textarea {
    min-height: 76px;
}

.sec-op-list {
    margin-top: 0.35rem;
    display: grid;
    gap: 0.45rem;
}

.sec-op-item {
    padding: 0.6rem;
}

.sec-op-item .admin-mini-actions select,
.sec-op-item .admin-mini-actions input {
    border: 1px solid var(--border);
    border-radius: 0.55rem;
    height: 36px;
    padding: 0 0.5rem;
    font-family: var(--font-main);
    font-size: 0.84rem;
}

.admin-mini-card {
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background: #fff;
    padding: 0.7rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.7rem;
}

.admin-mini-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.15rem;
}

.admin-mini-actions {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.rh-employee-card {
    display: block;
    padding: 0;
    overflow: hidden;
}

.rh-employee-summary {
    list-style: none;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    cursor: pointer;
    background: linear-gradient(120deg, rgba(98, 173, 231, 0.09), rgba(253, 102, 0, 0.07));
}

.rh-employee-summary::-webkit-details-marker {
    display: none;
}

.rh-employee-summary-main {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.rh-employee-summary-main p {
    margin-top: 0.12rem !important;
}

.rh-employee-summary-side {
    display: grid;
    gap: 0.2rem;
    justify-items: end;
}

.rh-summary-hint {
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 600;
}

.rh-employee-card[open] .rh-summary-hint {
    color: #0f5f97;
}

.rh-employee-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(98, 173, 231, 0.55);
    flex-shrink: 0;
}

.rh-employee-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #0f5f97;
}

.rh-employee-body {
    padding: 0.75rem;
    display: grid;
    gap: 0.7rem;
    border-top: 1px solid var(--border);
}

.rh-area-card {
    display: block;
    padding: 0;
    overflow: hidden;
}

.rh-area-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.74rem;
    background: linear-gradient(120deg, rgba(98, 173, 231, 0.1), rgba(253, 102, 0, 0.06));
}

.rh-area-summary::-webkit-details-marker {
    display: none;
}

.rh-area-summary p {
    margin-top: 0.14rem !important;
}

.rh-area-summary-side {
    display: grid;
    gap: 0.2rem;
    justify-items: end;
}

.rh-section-collapsible {
    margin-top: 0.35rem;
}

.rh-section-collapsible > summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
}

.rh-section-collapsible > summary::after {
    content: 'Abrir';
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

.rh-section-collapsible[open] > summary::after {
    content: 'Fechar';
    color: #0f5f97;
}

.rh-extra-grid {
    margin-top: 0;
}

.admin-finance-summary {
    margin-top: 0.8rem;
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.admin-finance-dashboard {
    margin-top: 0.8rem;
    display: grid;
    gap: 0.8rem;
}

.admin-finance-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.65rem;
}

.admin-finance-kpi-card {
    border: 1px solid rgba(98, 173, 231, 0.35);
    border-radius: 0.8rem;
    padding: 0.7rem;
    background: linear-gradient(145deg, rgba(98, 173, 231, 0.1), rgba(253, 102, 0, 0.08));
    display: grid;
    gap: 0.25rem;
}

.admin-finance-kpi-card span {
    font-size: 0.83rem;
    color: var(--text-muted);
    font-weight: 700;
}

.admin-finance-kpi-card strong {
    font-size: 1.02rem;
    color: #0f5f97;
}

.admin-finance-chart {
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    padding: 0.75rem;
    background: #fff;
}

.admin-finance-chart-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.admin-finance-chart-toolbar h5 {
    font-size: 1rem;
}

.admin-finance-chart-toolbar .form-field {
    min-width: 180px;
}

.admin-finance-chart-list {
    margin-top: 0.65rem;
    display: grid;
    gap: 0.55rem;
}

.admin-finance-chart-row {
    border: 1px solid var(--border);
    border-radius: 0.68rem;
    padding: 0.5rem 0.58rem;
    background: #fff;
}

.admin-finance-chart-row-head {
    display: flex;
    justify-content: space-between;
    gap: 0.65rem;
    align-items: baseline;
    font-size: 0.84rem;
}

.admin-finance-chart-row-head span {
    color: var(--text-muted);
    font-weight: 600;
}

.admin-finance-chart-track {
    margin-top: 0.34rem;
    position: relative;
    height: 10px;
    border-radius: 999px;
    background: #eef2f7;
    overflow: hidden;
}

.admin-finance-chart-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 999px;
}

.admin-finance-chart-bar--revenue {
    background: linear-gradient(90deg, #62ade7 0%, #0f5f97 100%);
    opacity: 0.95;
}

.admin-finance-chart-bar--expense {
    background: linear-gradient(90deg, #fd6600 0%, #c2410c 100%);
    opacity: 0.75;
}

.admin-finance-chart-row-values {
    margin-top: 0.35rem;
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    font-size: 0.79rem;
    color: var(--text-muted);
}

.admin-finance-propinas,
.admin-finance-accounts,
.admin-finance-cashflow {
    margin-top: 0.8rem;
}

.admin-finance-propina-card {
    align-items: center;
}

.admin-finance-account-card {
    display: block;
}

.admin-finance-account-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.admin-finance-account-grid {
    margin-top: 0.6rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.admin-finance-account-grid .form-field {
    margin: 0;
}

@media (max-width: 760px) {
    .admin-finance-account-grid {
        grid-template-columns: 1fr;
    }
}

.admin-finance-payment-card {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 0.9rem;
    align-items: start;
}

.admin-finance-payment-card .admin-mini-actions {
    align-items: stretch;
}

.admin-finance-payment-card select,
.admin-finance-payment-card input {
    width: 100%;
}

.admin-finance-payment-card .btn {
    width: 100%;
}

.admin-finance-payment-card p {
    margin-top: 0.25rem !important;
}

.admin-finance-payment-card .status-chip {
    justify-self: end;
}

.admin-finance-payment-card .admin-upload-hint {
    margin: 0;
}

.admin-finance-payment-card a.admin-doc-file-link {
    margin-left: 0;
}

.admin-finance-payment-card a.admin-doc-file-link:hover {
    text-decoration: underline;
}

.admin-finance-entry-card {
    display: block;
    padding: 0;
    overflow: hidden;
}

@media (max-width: 760px) {
    .admin-finance-payment-card {
        grid-template-columns: 1fr;
    }

    .admin-finance-payment-card .status-chip {
        justify-self: start;
    }
}

.admin-finance-entry-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem;
    background: linear-gradient(120deg, rgba(98, 173, 231, 0.09), rgba(253, 102, 0, 0.06));
}

.admin-finance-entry-summary::-webkit-details-marker {
    display: none;
}

.admin-finance-entry-summary p {
    margin-top: 0.15rem !important;
}

.admin-finance-entry-side {
    display: grid;
    justify-items: end;
    gap: 0.2rem;
}

.admin-finance-cash-list {
    margin-top: 0.35rem;
    display: grid;
    gap: 0.45rem;
}

.admin-finance-cash-row {
    border: 1px solid var(--border);
    border-radius: 0.68rem;
    padding: 0.58rem 0.62rem;
    background: linear-gradient(140deg, rgba(98, 173, 231, 0.08), rgba(253, 102, 0, 0.05));
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 0.45rem;
    align-items: center;
    font-size: 0.84rem;
}

.admin-finance-chip {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
    color: var(--text-main);
    background: #fff;
}

.admin-portal-card {
    margin-top: 1rem;
}

.admin-portal-status {
    margin-top: 0.55rem;
}

.admin-portal-actions {
    margin-top: 0.85rem;
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

body.modal-open {
    overflow: hidden;
}

.student-login-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    z-index: 1400;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.student-login-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.student-login-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}

.student-login-modal__dialog {
    position: relative;
    width: min(430px, 100%);
    border: 1px solid var(--border);
    border-radius: 1rem;
    background:
        linear-gradient(180deg, rgba(98, 173, 231, 0.09) 0%, rgba(253, 102, 0, 0.05) 34%, #ffffff 35%),
        #fff;
    padding: 1.2rem;
    box-shadow: 0 24px 42px rgba(15, 23, 42, 0.24);
    transform: translateY(8px) scale(0.98);
    transition: transform 0.2s ease;
    overflow: hidden;
}

.student-login-modal__dialog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
}

.student-login-modal.is-open .student-login-modal__dialog {
    transform: translateY(0) scale(1);
}

.student-login-modal__close {
    position: absolute;
    top: 0.42rem;
    right: 0.5rem;
    border: none;
    background: transparent;
    font-size: 1.45rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
}

.student-login-modal__close:hover {
    color: var(--text-main);
}

.student-login-modal__dialog h2 {
    font-size: 1.2rem;
    text-align: center;
    margin-top: 0.35rem;
    letter-spacing: 0.01em;
}

.student-login-modal__dialog > p {
    margin-top: 0.4rem;
    margin-bottom: 0.8rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.93rem;
}

.student-login-modal__form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.student-login-modal__form label {
    font-size: 0.93rem;
    font-weight: 600;
}

.student-login-modal__form input {
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 0.6rem;
    padding: 0 0.75rem;
    font-family: var(--font-main);
    font-size: 0.97rem;
    background: #ffffff;
}

.student-login-modal__form input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px var(--secondary-light);
}

.student-login-modal__form .btn-primary {
    background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
    box-shadow: 0 8px 18px rgba(98, 173, 231, 0.28);
}

.student-login-modal__form .btn-primary:hover {
    background: linear-gradient(90deg, var(--secondary-hover) 0%, var(--primary-hover) 100%);
    box-shadow: 0 10px 22px rgba(62, 150, 216, 0.3);
}

.student-login-modal__actions {
    margin-top: 0.35rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    width: 100%;
}

.student-login-modal__actions .btn {
    width: 100%;
    justify-content: center;
    min-width: 0;
    white-space: nowrap;
}

@media (max-width: 520px) {
    .student-login-modal__actions {
        grid-template-columns: 1fr;
    }
}

.student-login-modal .inline-feedback[data-state="success"] {
    color: #0f7dc9;
}

/* 
 * Lado Direito / Placeholder de Animação
 * Este bloco tem espaço amplo e posiciona a imagem 
 */
.hero-visual {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

.visual-placeholder {
    width: 100%;
    max-width: none;
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    /* Formato horizontal para ocupar largura */
    aspect-ratio: 16/9;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.hero-brand-mark {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    z-index: 12;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.7rem;
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(98, 173, 231, 0.42);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.hero-brand-mark__icon {
    width: 34px;
    height: 34px;
    border-radius: 0.6rem;
    background: linear-gradient(135deg, #62ade7 0%, #fd6600 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.hero-brand-mark__text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.08;
}

.hero-brand-mark__text strong {
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    color: #0f172a;
}

.hero-brand-mark__text small {
    font-size: 0.72rem;
    color: #334155;
    font-weight: 600;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.visual-placeholder:hover .hero-image {
    transform: scale(1.03); /* Efeito suave na imagem */
}

/* Badge flutuante (Exemplo de elemento dinâmico/persuasivo extra) */
.visual-badge {
    position: absolute;
    bottom: -1rem;
    left: -2rem;
    background: white;
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10;
    /* Animação suave para atrair visão */
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

.visual-badge-icon {
    width: 48px;
    height: 48px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(253, 102, 0, 0.3);
}

.visual-badge-text {
    display: flex;
    flex-direction: column;
}

.visual-badge-text .bold {
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-main);
}

.visual-badge-text span:last-child {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

/* 
 * RESPONSIVIDADE
 */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .hero-container {
        /* Muda para empilhado num tablet */
        grid-template-columns: 1fr;
        gap: 4rem;
        padding-top: 3rem;
        padding-bottom: 5rem;
    }
    
    .hero {
        min-height: auto;
    }

    .hero-content {
        align-items: center;
        text-align: center;
    }

    .subheadline {
        max-width: 600px;
    }

    .benefits {
        align-items: flex-start;
        text-align: left;
        max-width: 500px;
    }

    .visual-placeholder {
        aspect-ratio: 16/10;
        max-width: 90%;
        margin: 0 auto;
    }

    .visual-badge {
        bottom: -1rem;
        left: 1rem; /* Ajustado para não sair da tela */
    }

    .hero-brand-mark {
        top: 0.65rem;
        right: 0.65rem;
    }

    .offers-feature {
        grid-template-columns: 1fr;
    }

    .offers-feature-media,
    .offers-feature-media img {
        min-height: 250px;
        max-height: 360px;
    }

    .offers-feature-content h1 {
        font-size: clamp(1.1rem, 3.1vw, 1.55rem);
        white-space: nowrap;
    }

    .offers-gallery-layout {
        grid-template-columns: 1fr;
    }

    .offers-section-head {
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .contact-meta-grid,
    .branches-grid,
    .page-grid,
    .course-category-grid,
    .course-form-grid,
    .course-flow-grid,
    .admin-extra-grid,
    .admin-enrollment-list,
    .admin-login-form,
    .admin-doc-grid,
    .admin-overview-grid,
    .admin-contact-grid,
    .admin-result-grid,
    .admin-create-form,
    .admin-dashboard-grid,
    .admin-secretaria-ops-board {
        grid-template-columns: 1fr;
    }

    .admin-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-module-subnav-btn {
        flex: 1 1 calc(50% - 0.45rem);
        text-align: center;
    }

    .admin-toolbar-group {
        grid-template-columns: 1fr;
    }

    .admin-toolbar-actions {
        align-items: stretch;
    }

    .admin-pending-quick-btn {
        width: 100%;
    }

    .admin-mini-card {
        flex-direction: column;
    }

    .admin-finance-cash-row {
        grid-template-columns: 1fr;
    }

    .admin-finance-chart-row-head,
    .admin-finance-chart-row-values {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-finance-entry-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-finance-entry-side {
        justify-items: start;
    }

    .rh-employee-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .rh-area-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-enrollment-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .rh-employee-summary-side {
        justify-items: start;
    }

    .rh-area-summary-side {
        justify-items: start;
    }

    .admin-enrollment-summary-side {
        justify-items: start;
    }

    .branch-showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .branch-gallery-thumbs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .branch-gallery-focus img {
        height: 320px;
    }

    .branch-gallery-upload-form {
        grid-template-columns: 1fr;
    }

    .course-enroll-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .student-login-actions {
        grid-template-columns: 1fr;
    }

    .admin-student-photo-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-pending-modal__dialog {
        width: min(96vw, 760px);
        padding: 0.85rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        gap: 1.5rem;
        border-top: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero-overlay {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.74);
    }

    .student-dash-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1.5rem;
    }

    .hero-container {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
            "visual"
            "content";
        gap: 1.1rem;
        padding-top: 1.2rem;
        padding-bottom: 2rem;
    }

    .hero-visual {
        grid-area: visual;
        width: 100%;
        justify-content: center;
    }

    .hero-content {
        grid-area: content;
    }
    
    /* Configuração Mobile Menu */
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        gap: 1.5rem;
        border-top: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .headline {
        font-size: 2.25rem;
    }

    .offers-hero {
        padding-top: 2rem;
    }

    .offers-feature {
        padding: 0.95rem;
    }

    .offers-feature-media,
    .offers-feature-media img {
        min-height: 220px;
        max-height: 300px;
    }

    .offers-feature-content h1 {
        font-size: clamp(1rem, 4.4vw, 1.32rem);
        white-space: nowrap;
    }

    .offers-feature-content > p {
        font-size: 0.97rem;
    }

    .offers-actions {
        flex-direction: column;
    }

    .offers-publish-form {
        grid-template-columns: 1fr;
    }

    .branch-gallery-thumbs.offers-gallery-preview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-height: 0;
    }

    .branch-gallery-thumbs.offers-gallery-preview.offers-gallery-preview--single {
        grid-template-columns: minmax(0, 1fr);
    }

    .site-logo-img {
        width: 48px;
        height: 48px;
    }

    .logo-wordmark {
        font-size: 0.96rem;
    }
    
    .cta-group {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
    }
    
    .btn-large {
        width: 100%;
    }

    .branch-showcase-grid {
        grid-template-columns: 1fr;
    }

    .branch-showcase-actions {
        grid-template-columns: 1fr;
    }

    .branch-gallery-modal__dialog {
        padding: 0.85rem;
    }

    .branch-gallery-viewer {
        grid-template-columns: 1fr;
    }

    .branch-gallery-nav-btn {
        width: 100%;
        border-radius: 0.65rem;
        height: 38px;
    }

    .branch-gallery-focus img {
        height: 220px;
    }

    .branch-gallery-thumbs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .branch-gallery-thumb img {
        height: 64px;
    }

    .visual-placeholder {
        width: min(100%, 420px);
        max-width: 100%;
        aspect-ratio: 4/5;
        margin: 0 auto;
    }
    
    .visual-badge {
        padding: 1rem;
        gap: 0.75rem;
    }

    .hero-brand-mark {
        padding: 0.4rem 0.52rem;
    }

    .hero-brand-mark__text small {
        font-size: 0.66rem;
    }
    
    .visual-badge-text .bold {
        font-size: 1.25rem;
    }
}
