:root {
    /* Base colors */
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    --card-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* Themes */
.theme-blue {
    --primary-color: #172554;
    --brand-color: #396990;
}
.theme-purple {
    --primary-color: #4d1e60;
    --brand-color: #8E48A3;
}
.theme-aqua {
    --primary-color: #2a8282;
    --brand-color: #184e45;
}

/* Configurações Gerais */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-image: url("imgs/background.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #333;
}

.bg-custom-theme {
    background-color: var(--primary-color);
}

.transition-fast {
    transition: all 0.2s ease-in-out;
}

/* Título */
.title-section {
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}

/* Áreas invisíveis sobre o banner principal */
.header-click-link {
    display: block;
    position: absolute;
    z-index: 10;
}
.link-set {
    height: 5vw;
    width: 14vw;
    left: 21.5vw;
    top: 2.5vw;
}
.link-tjgo {
    height: 5vw;
    width: 17vw;
    left: 62vw;
    top: 2.2vw;
}

/* Wrapper principal do fundo */
.main-wrapper {
    /* background is now handled by the body element */
    display: flex;
    align-items: center;
}

/* ==========================================================================
   NOVO COMPONENTE: CARD ESTILO PÍLULA (Fidelidade Absoluta ao Print da Home)
   ========================================================================== */

/* Limita o espalhamento horizontal máximo da linha na Home */
.max-width-home {
    max-width: 1040px;
}

.card-pill {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    
    /* Cria a borda espessa usando a variável injetada no HTML */
    border: 10px solid var(--card-pill-color);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    
    /* Proporção ideal de pílula alta */
    padding: 6.5rem 1.5rem 2.5rem 1.5rem;
    height: 100%;
    min-height: 440px;
    
    text-decoration: none !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
}

.card-pill:hover {
    transform: translateY(-8px);
}

/* Emblema circular perfeitamente centralizado na linha de cima */
.pill-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    
    width: 180px;
    height: 180px;
    background: #ffffff;
    border: 14px solid var(--card-pill-color);
    border-radius: 50%;
    
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.pill-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Gráfico intermediário */
.pill-graph {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    width: 100%;
}

.pill-graph img {
    max-width: 220px;
    height: auto;
    object-fit: contain;
}

/* Container de textos inferiores */
.pill-titles {
    text-align: center;
    line-height: 1.25;
}

/* Cores internas herdam a cor da borda do card de forma inteligente */
.text-main-custom {
    color: var(--card-pill-color);
    font-size: 1.8rem;
    font-weight: 700;
}

.text-secondary-custom {
    color: var(--card-pill-color);
    font-size: 1.8rem;
    font-weight: 500;
    opacity: 0.9;
}

/* ==========================================================================
   COMPONENTES DE OUTRAS PÁGINAS (Mantidos para compatibilidade)
   ========================================================================== */
.card-item {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    padding: 1.25rem;
    height: 100%;
    min-height: 250px;
    text-decoration: none !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
}
.card-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}
.card-img-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    max-height: 160px;
    margin-bottom: 1rem;
    overflow: hidden;
}
.card-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}
.card-footer-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand-color);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}
.pill-col {
    margin: 3.25rem 0;
    max-width: 70%;
}

/* Responsividade do Rodapé */
.footer-section-side {
    width: 30%;
}
.footer-link {
    font-size: 0.95rem;
    font-weight: 500;
}
.footer-link:hover {
    text-decoration: underline !important;
}
.opacity-100-hover:hover {
    opacity: 1 !important;
}
.max-width-container {
    max-width: 960px;
}

@media (max-width: 767px) {
    .footer-section-side {
        width: 100%;
    }
    .card-item {
        min-height: auto;
    }
    .card-pill {
        margin-top: 3.5rem;
        min-height: 320px;
    }
}