/* Definição de cores */
:root {
    --partner-main-color: #F6CB39; /* Amarelo de Destaque */
    --partner-text-dark: #333333; /* Texto Principal Escuro */
    --partner-bg-light: #f7f7f7; /* Fundo Clean da Seção */
    --partner-bg-dark: #212121;  /* Fundo Escuro para Seções (Ex: Menu/Topo) */
}

/* --- TÍTULO DA PÁGINA --- */
.page-title-area {
    padding-top: 150px; 
    padding-bottom: 50px;
    background: var(--partner-bg-dark); 
    text-align: center;
}
.page-title {
    color: white;
    font-size: 2.8rem;
    font-weight: 700;
}

/* --- FILTRO (Submenu) --- */
.portfolio-filter {
    margin-bottom: 50px;
    background: var(--partner-bg-light); 
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.portfolio-filter .nav-tabs {
    border-bottom: none;
    justify-content: center;
    flex-wrap: wrap; 
}

.portfolio-filter .nav-link {
    font-weight: 600;
    margin: 5px 8px; 
    color: var(--partner-text-dark); 
    border: none;
    border-radius: 50px;
    padding: 8px 15px;
    transition: all 0.3s ease;
}

.portfolio-filter .nav-link:hover,
.portfolio-filter .nav-link.active {
    background-color: var(--partner-main-color); 
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* --- ITENS DE PORTFÓLIO (Galeria) --- */
.portfolio-content {
    position: relative;
    overflow: hidden; 
    margin-bottom: 30px;
    border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-content img {
    width: 100%;
    height: 300px; 
    object-fit: cover; 
    display: block;
    transition: transform 0.5s ease;
}

.portfolio-content:hover img {
    transform: scale(1.05);
}

/* Overlay com o Link/Ícone */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(33, 33, 33, 0.85); 
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s ease;
}

.portfolio-content:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-link i {
    font-size: 3rem;
    color: var(--partner-main-color); 
    border: 3px solid white;
    border-radius: 50%;
    padding: 15px;
    transition: all 0.3s ease;
}

.portfolio-link:hover i {
    background: var(--partner-main-color);
    color: var(--partner-bg-dark);
    border-color: var(--partner-main-color);
}

.item-text {
    color: white;
    margin-top: 10px;
    font-weight: 600;
}


/* --- ESTILO DO POP-UP MODAL (Magnific Popup) --- */
.portfolio-modal {
    background: white;
    padding: 30px;
    max-width: 90%; 
    margin: 40px auto;
    border-radius: 8px;
    position: relative;
}

.portfolio-modal h2 {
    color: var(--partner-text-dark);
}

.portfolio-modal hr {
    background-color: var(--partner-main-color);
    height: 2px;
    border: none;
    margin-top: 5px;
    margin-bottom: 20px;
    width: 50px;
    text-align: left;
}

.portfolio-modal p {
    color: #555;
    line-height: 1.6;
}

.portfolio-modal .full-image {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border: 1px solid #eee;
}

/* Ajuste do Botão Fechar para ser um X PRETO */
.portfolio-modal .mfp-close {
    width: 30px;
    height: 30px;
    line-height: 30px; 
    font-size: 1.5rem;
    padding: 0;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--partner-text-dark); /* CORRIGIDO PARA PRETO */
    opacity: 0.7;
    transition: opacity 0.2s ease;
    text-align: center;
}

.portfolio-modal .mfp-close:hover {
    opacity: 1;
    color: var(--partner-main-color); 
}

/* Força o ícone X (Usando LineIcons) */
.portfolio-modal .mfp-close:after {
    content: "\e08b"; /* Código Unicode para o ícone de fechar (lni-close) */
    font-family: 'LineIcons'; 
    font-style: normal;
    font-weight: normal;
    text-decoration: inherit;
    font-size: 1.5rem;
    display: block;
    text-indent: 0;
}
/* Esconde o texto original do botão */
.portfolio-modal .mfp-close {
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
}