/* ============================================================
   VESTIBULINHO LF — master.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

/* ============================================================
   VARIÁVEIS
   ============================================================ */
:root {
    /* Paleta principal */
    --primary-color:      #2c5aa0;
    --primary-dark:       #1e3a5f;
    --primary-light:      #3d74c7;

    /* Fundo e superfícies */
    --secondary-color:    #f8f9fa;
    --surface:            #ffffff;
    --surface-muted:      #f0f4fb;

    /* Acentos */
    --accent-color:       #28a745;
    --accent-dark:        #1e7e34;
    --accent-warm:        #e8a020;

    /* Cards / header */
    --card-link-bg:       #2c5aa0;
    --card-header-bg:     #2c5aa0;

    /* Textos */
    --text-dark:          #1a1a2e;
    --text-body:          #3d4a60;
    --text-muted:         #6c7a92;
    --text-warning:       #f5d02d;
    --text-gray:          #424242;
    --text-green:         #6da17d;
    --text-blue:          #2fa1e0;
    --text-title:         #1e3a5f;

    /* Espaçamento e raios */
    --radius-sm:          6px;
    --radius-md:          12px;
    --radius-lg:          20px;
    --radius-pill:        50px;

    /* Sombras */
    --shadow-sm:          0 2px 8px rgba(44, 90, 160, 0.08);
    --shadow-md:          0 6px 20px rgba(44, 90, 160, 0.14);
    --shadow-lg:          0 12px 40px rgba(44, 90, 160, 0.20);

    /* Transição padrão */
    --transition:         0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET / BASE
   ============================================================ */
html {
    scrollbar-gutter: stable;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: 'Sora', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-body);
    margin: 0 !important;
    padding: 0 !important;
    background-color: var(--secondary-color);
}

body.modal-open {
    overflow-y: scroll;
}

body.has-footer {
    display: flex;
    flex-direction: column;
}

body.has-footer .footer {
    margin-top: auto;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    background-color: var(--secondary-color) !important;
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(44, 90, 160, 0.08);
}

.navbar-brand {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary-color) !important;
    letter-spacing: -0.3px;
}

.navbar-nav .nav-link {
    color: var(--primary-color) !important;
    font-weight: 500;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition);
}

.navbar-nav .nav-link:hover {
    color: var(--surface) !important;
    background-color: var(--primary-color);
    font-weight: 500;
}

.navbar-scrolled {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.10) !important;
    background-color: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(44, 90, 160, 0.12) !important;
}

/* ============================================================
   VÍDEO DE FUNDO
   ============================================================ */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-background::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(0, 32, 96, 0.65),
        rgba(30, 58, 95, 0.65));
}

/* ============================================================
   CONTEÚDO PRINCIPAL
   ============================================================ */
.main-content {
    margin: 5rem 0 0 0 !important;
}

/* ============================================================
   HERO BANNER
   ============================================================ */
.hero-banner {
    position: relative;
    color: white;
    margin-top: -25px;
    padding: 5rem 0 4rem;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(0, 32, 96, 0.68), rgba(30, 58, 95, 0.68)),
        url("/assets/img/hero.webp") center / cover no-repeat;
}

.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.10)"/><circle cx="75" cy="75" r="1.5" fill="rgba(255,255,255,0.07)"/><circle cx="50" cy="10" r="0.8" fill="rgba(255,255,255,0.12)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.35;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Linha decorativa abaixo do título hero */
.hero-content h1,
.hero-content .display-4 {
    padding-bottom: 0.75rem;
    position: relative;
}

.hero-buttons {
    gap: 1rem;
}

.hero-banner .row {
    align-items: center;
}

.hero-banner .col-lg-4 {
    margin-top: 2rem;
}

/* ============================================================
   ACESSO RÁPIDO
   ============================================================ */
#quick-access {
    margin: 4rem 0
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: start;
    align-items: center;
    /* flex-wrap: wrap; */
}

.links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    word-wrap: break-word !important;
    /* justify-content: center; */
    padding: 7px;
    gap: 3px;
    width: 125px;
    height: 132px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    background-color: #fff;
    color: var(--primary-color);
    box-shadow: 0 .5rem 0.8rem rgba(0, 0, 0, .15);
    transition: all 0.3s ease;
}

.links a:hover {
    background-color: var(--card-link-bg);
}

.links a:hover i,
.links a:hover {
    color: #E6E6E6 !important;
}

.links i {
    margin-top: 0.5rem !important;
}

.hide-scrollbar {
    scrollbar-width: none;        /* Firefox */
    -ms-overflow-style: none;     /* IE / Edge antigo */
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;                /* Chrome, Safari, Edge */
}

/* ============================================================
   PERGUNTAS FREQUENTES
   ============================================================ */
#search {
    background-color: #ccccce !important;
}

/* Container do input group */
.input-group {
    transition: all 0.4s ease-in-out;
    width: 220px !important;
}

/* Estilização adicional para melhor aparÃªncia */
.input-group-text {
    background: linear-gradient(to right, #6a11cb, #2575fc);
    border: none;
    color: white;
}

.input-group:focus-within {
    width: 100% !important;
}

.form-control {
    border: none;
    background: #f8f9fa;
    padding-left: 5px;
}

.form-control:focus {
    background: white;
    box-shadow: none;
}

.accordion-button {
    display: flex;
    align-items: center;
    font-weight: 400;
}

/* ============================================================
   CURSOS
   ============================================================ */
.courses {
    margin-bottom: 6rem;
}

.course-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid rgba(44, 90, 160, 0.07);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(44, 90, 160, 0.18);
}

/* ============================================================
   BOTÕES
   ============================================================ */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.72rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
    transition: background var(--transition), border-color var(--transition),
                transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(44, 90, 160, 0.30);
}

.btn-primary-alt {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary-alt:hover {
    background-color: #0b5ed7;
    border-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(13, 110, 253, 0.28);
}

.btn-success {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    padding: 0.72rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    transition: background var(--transition), transform var(--transition),
                box-shadow var(--transition);
}

.btn-success:hover,
.btn-success:focus-visible {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(40, 167, 69, 0.30);
}

.btn-primary-alt,
.btn-info {
    padding: 0.72rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
}

/* ============================================================
   TÍTULOS DE SEÇÃO
   ============================================================ */
.section-title {
    font-family: 'Sora', sans-serif;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.6rem;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-light);
    border-radius: 3px;
}

.simple-title {
    font-family: 'Sora', sans-serif;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(44, 90, 160, 0.20);
    padding-bottom: 0.5rem;
}

/* ============================================================
   CARDS (Bootstrap override)
   ============================================================ */
.card {
    border: 1px solid rgba(44, 90, 160, 0.10);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background: var(--card-header-bg);
    color: var(--secondary-color);
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
    padding: 0.9rem 1.25rem;
}

/* ============================================================
   RODAPÉ
   ============================================================ */
.footer {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    padding: 2.5rem 0;
}

.mini-footer {
    margin-top: auto;
    padding: 1rem 0;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ============================================================
   CAIXAS DE DESTAQUE
   ============================================================ */
.highlight-box {
    background: linear-gradient(135deg, var(--accent-color), #20c997);
    color: white;
    padding: 1.75rem;
    border-radius: var(--radius-md);
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.25);
}

.highlight-box-alt {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 1.75rem;
    border-radius: var(--radius-md);
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.25);
}

/* ============================================================
   PROVAS ANTERIORES
   ============================================================ */

.pa-section {
    padding: 4rem 0 5rem;
    min-height: 60vh;
}

.pa-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1.5px solid rgba(0, 0, 0, 0.08);
}

.pa-header h2 {
    /* font-family: 'Playfair Display', serif; */
    font-size: 28px;
    font-weight: 600;
    color: #2c5aa0;
    margin: 0 0 4px;
}

.pa-header p {
    /* font-family: 'DM Sans', sans-serif; */
    font-size: 14px;
    color: #6b6b6b;
    margin: 0;
    font-weight: 300;
}

.pa-count-badge {
    /* font-family: 'DM Sans', sans-serif; */
    background: #f5f5f3;
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 6px 14px;
    font-size: 13px;
    color: #6b6b6b;
    white-space: nowrap;
}

.pa-count-badge strong {
    color: #1a1a1a;
    font-weight: 500;
}

.pa-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pa-item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    align-items: center;
    gap: 16px;
    background: #ffffff;
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    transition: border-color 0.15s, background 0.15s;
    /* font-family: 'DM Sans', sans-serif; */
}

.pa-item:hover {
    border-color: rgba(0, 0, 0, 0.2);
    background: #fafaf9;
}

.pa-item.recent {
    border: 2px solid #1D9E75;
}

.pa-year {
    /* font-family: 'Playfair Display', serif; */
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.1;
    text-align: center;
}

.pa-recent-tag {
    display: block;
    margin-top: 4px;
    /* font-family: 'DM Sans', sans-serif; */
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.04em;
    background: #E1F5EE;
    color: #0F6E56;
    border-radius: 99px;
    padding: 2px 8px;
    text-align: center;
}

.pa-info strong {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.pa-info span {
    font-size: 13px;
    color: #6b6b6b;
    font-weight: 300;
}

.pa-btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.pa-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    /* font-family: 'DM Sans', sans-serif; */
    color: #1a1a1a;
    background: #f5f5f3;
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.15s, background 0.15s;
    min-width: 110px;
    justify-content: center;
}

.pa-btn:hover {
    border-color: rgba(0, 0, 0, 0.25);
    background: #eeeee9;
    color: #1a1a1a;
    text-decoration: none;
}

.pa-btn.unavailable {
    color: #aaa;
    cursor: default;
    pointer-events: none;
    opacity: 0.55;
}

.pa-btn i {
    font-size: 14px;
}

.pa-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    /* font-family: 'DM Sans', sans-serif; */
    font-size: 11px;
    color: #aaa;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 0;
}

.pa-divider::before,
.pa-divider::after {
    content: '';
    flex: 1;
    height: 0.5px;
    background: rgba(0, 0, 0, 0.1);
}

.pa-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b6b6b;
    /* font-family: 'DM Sans', sans-serif; */
    font-size: 14px;
}

.pa-footer-note {
    margin-top: 1.5rem;
    /* font-family: 'DM Sans', sans-serif; */
    font-size: 12px;
    color: #aaa;
    text-align: right;
}

/* ============================================================
   CONTADOR REGRESSIVO
   ============================================================ */
.countdown-container {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.countdown-item {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.5rem 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: 0 4px 16px rgba(44, 90, 160, 0.28);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}

.countdown-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.18),
        transparent);
    transition: left 0.5s ease;
}

.countdown-item:hover::before {
    left: 100%;
}

.countdown-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 28px rgba(44, 90, 160, 0.38);
}

.countdown-number {
    font-family: 'Sora', sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.countdown-label {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.88;
}

.countdown-alert {
    background: linear-gradient(135deg, #dc3545, #c0392b);
    color: white;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    text-align: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.28);
}

.countdown-alert i {
    font-size: 1.4rem;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* ============================================================
   AUTENTICAÇÃO
   ============================================================ */
.auth {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 0;
}

.auth .card-header {
    background-color: var(--surface);
    color: var(--primary-color);
    border-bottom: 2px solid rgba(44, 90, 160, 0.12);
}

/* ============================================================
   TIPOGRAFIA
   ============================================================ */
.title {
    font-family: 'Sora', sans-serif;
    color: var(--primary-color);
    font-weight: 700;
}

.text-justify {
    text-align: justify;
}

.text-success-alt {
    color: #4dff4d;
}

.text-danger-alt {
    color: #ff0000;
}

/* ============================================================
   FORMULÁRIOS
   ============================================================ */
.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.form-control,
.form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(44, 90, 160, 0.20);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.15);
}

.form-group.col-md-12 small.text-muted {
    text-align: justify;
    display: inline-block;
    width: 100%;
}

.required::after {
    content: "*";
    color: #dc3545;
    margin-left: 4px;
}

.password-rules li {
    transition: all 0.2s ease;
}

/* ============================================================
   ANIMAÇÕES
   ============================================================ */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.85; transform: scale(1.03); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.urgent-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-fade-in-up {
    animation: fadeInUp 0.55s ease both;
}

/* ============================================================
   ESPAÇAMENTOS DE SEÇÃO
   ============================================================ */
.guidelines  { margin: 3rem 0 !important; }
.countdown   { margin: 5rem 0 3rem 0 !important; }
.faqs        { margin: 3rem 0 6rem 0 !important; }
.calls-wrapper { margin: 1rem 0 6rem 0 !important; }

/* ============================================================
   RESPONSIVIDADE
   ============================================================ */

/* Muito pequeno (< 576px) */
@media (max-width: 575.98px) {

    .pa-section {
        margin-top: -25px;
    }

    .pa-item {
        grid-template-columns: 56px 1fr;
        grid-template-rows: auto auto;
    }

    .pa-btn-group {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
    
    .countdown-number {
        font-size: 1.9rem;
    }
    .countdown-label {
        font-size: 0.75rem;
    }
}

/* Pequeno (< 768px) */
@media (max-width: 767.98px) {
    .hero-banner {
        padding: 4rem 0 2.5rem !important;
    }
    .hero-content {
        text-align: center;
    }
    .hero-content h1::after,
    .hero-content .display-4::after {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    .hero-banner .display-4 {
        font-size: 2.4rem;
    }
    .hero-banner .h3 {
        font-size: 1.4rem;
    }
    .hero-banner .lead {
        font-size: 0.97rem;
    }
    .highlight-box {
        margin-top: 2rem;
        margin-bottom: 0;
    }
    #quick-access {
        margin-top: 2rem
    }

    .links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem !important;
        justify-content: space-between;
        margin: 0 !important;
        padding: 0 !important;
    }

    .links a:link {
        width: 162px;
        height: 128px;
        margin-bottom:0.2rem !important;
    }

    .links i {
        margin-top: 1rem !important;
    }

    .guidelines h5,
    .simple-title {
        text-align: center;
    }
    .footer {
        text-align: center !important;
    }
}

/* Médio (768–991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-banner {
        padding: 3.5rem 0;
    }
    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
    }
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    .hero-buttons .btn {
        min-width: 200px;
    }
    .countdown-number {
        font-size: 2.1rem;
    }
    .countdown-item {
        padding: 1rem 0.5rem;
        margin-bottom: 1rem;
    }
    .countdown-container {
        padding: 1.75rem;
    }
}

/* Grande (≥ 992px) */
@media (min-width: 992px) {
    .hero-content {
        text-align: left;
    }
    .hero-buttons {
        justify-content: flex-start;
    }
    .hero-banner .col-lg-4 {
        margin-top: 0;
    }
}
