/* MENU DA HOMEPAGE NO MOBILE */
.mobile-menu-homepage {
	display: none;
}

@media (max-width: 768px) {
	.mobile-menu-homepage {
		display: block;
	}
}

.overlay {
  height: 0%;
  width: 100%;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: rgb(6, 102, 116);
  background-color: rgba(6, 102, 116, 0.9);
  overflow-y: hidden;
  transition: 0.5s;
}

.overlay-content {
  position: relative;
  top: 25%;
  width: 100%;
  text-align: center;
  margin-top: 30px;
}

.overlay a {
  padding: 8px;
  text-decoration: none;
  font-size: 36px;
  color: #ffffff;
  display: block;
  transition: 0.3s;
}

.overlay a:hover, .overlay a:focus {
  color: #FBB31C;
}

.overlay .closebtn {
  position: absolute;
  top: 20px;
  left: 45px;
  font-size: 60px;
}

@media screen and (max-height: 450px) {
  .overlay {overflow-y: auto;}
  .overlay a {font-size: 20px}
  .overlay .closebtn {
  font-size: 40px;
  top: 15px;
  right: 35px;
  }
}

/* ======================================
   WRAPPER DO BLOCO DO SHORTCODE - COLUNAS
   ====================================== */
.mpc-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

/* CADA COLUNA */
.mpc-col {
    flex: 1 1 0;
    box-sizing: border-box;
    position: relative;
    cursor: pointer;
}

/* Container da imagem */
.mpc-col .mpc-thumb {
    position: relative;
    overflow: hidden;
}

/* Imagem destacada */
.mpc-col .mpc-thumb img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

/* Opacidade da imagem no hover */
.mpc-col:hover .mpc-thumb img {
    opacity: 0.2;
}

/* ======================================
   LISTA DE CHILD PAGES - OVERLAY
   ====================================== */
.mpc-child-list {
    list-style: none !important;
    padding: 16px !important;
    margin: 0 !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 102, 116, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    box-sizing: border-box;
}

/* Mostra a lista no hover */
.mpc-col:hover .mpc-child-list {
    opacity: 1;
    visibility: visible;
}

/* Cada item da lista */
.mpc-child-list li {
    list-style: none !important;
    margin-bottom: 8px !important;
    padding: 0 !important;
}

.mpc-child-list li:last-child {
    margin-bottom: 0 !important;
}

/* LINKS DAS CHILD PAGES */
.mpc-child-list li a {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    /* background: rgba(255, 255, 255, 0.15); */
	background: #ffffff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    /* color: #ffffff; */
	color: #066674;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    gap: 8px;
}

/* Ícone de seta antes do link */
.mpc-child-list li a::before {
    content: "→";
    font-size: 16px;
    font-weight: 600;
    /* color: #ffffff; */
	color: #066674;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

/* Hover nos links */
.mpc-child-list li a:hover {
    background: #ffffff;
    /* border-color: #ffffff; */
	border-color: #FBB31C;
    color: #066674;
    transform: translateX(3px);
}

.mpc-child-list li a:hover::before {
    color: #FBB31C;
    transform: translateX(4px);
}

/* ======================================
   RESPONSIVO - COLUNAS
   ====================================== */

@media (max-width: 768px) {
	
	.mpc-wrapper {
		display: none;
	}
	
	.mpc-thumb {
		display: none;
	}
	
    .mpc-parent-title {
        display: none;
    }
	
    .mpc-child-list {
		display: none;
    }
	
	.mpc-col {
		display: none;
	}
}

/* ======================================
   LISTA DE POSTS - WRAPPER
   ====================================== */
.mpc-posts-wrapper {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

/* Título da categoria */
.mpc-posts-title {
    font-size: 36px;
    font-weight: 700;
    color: #066674;
    margin: 0 0 40px 0;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.mpc-posts-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #066674, #FBB31C);
    border-radius: 2px;
}

/* Container da lista em grid */
.mpc-posts-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* ======================================
   CADA POST - CARD MODERNO
   ====================================== */
.mpc-post-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(6, 102, 116, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #E7F1F2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mpc-post-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(6, 102, 116, 0.15);
    border-color: #066674;
}

/* Header do post */
.mpc-post-header {
    padding: 24px 24px 16px;
    border-bottom: 2px solid #E7F1F2;
    background: linear-gradient(135deg, #f8fafb 0%, #ffffff 100%);
}

/* Data de publicação com badge */
.mpc-post-date {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #066674;
    background: #E7F1F2;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Título do post */
.mpc-post-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

.mpc-post-title a {
    color: #2a2a2a;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
}

.mpc-post-title a:hover {
    color: #066674;
}

/* Conteúdo do card */
.mpc-post-content {
    padding: 20px 24px 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Resumo do post */
.mpc-post-excerpt {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin: 0 0 20px 0;
}

/* Botão "Continue lendo" */
.mpc-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #066674;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 24px;
    background: #E7F1F2;
    border-radius: 8px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.mpc-read-more::after {
    content: '→';
    font-size: 18px;
    transition: transform 0.3s ease;
}

.mpc-read-more:hover {
    background: #066674;
    color: #ffffff;
    transform: translateX(4px);
}

.mpc-read-more:hover::after {
    transform: translateX(4px);
}

/* Separador - não usado no grid, mas mantido para fallback */
.mpc-post-separator {
    display: none;
}

/* ======================================
   RESPONSIVO - LISTA DE POSTS
   ====================================== */
@media (max-width: 1024px) {
    .mpc-posts-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
    }
    
    .mpc-posts-title {
        font-size: 32px;
        margin-bottom: 32px;
    }
}

@media (max-width: 768px) {
    .mpc-posts-wrapper {
        padding: 0 16px;
        margin-bottom: 40px;
    }
    
    .mpc-posts-title {
        font-size: 28px;
        margin-bottom: 28px;
    }
    
    .mpc-posts-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .mpc-post-header {
        padding: 20px 20px 14px;
    }
    
    .mpc-post-title {
        font-size: 20px;
    }
    
    .mpc-post-content {
        padding: 16px 20px 20px;
    }
    
    .mpc-post-excerpt {
        font-size: 15px;
        margin-bottom: 16px;
    }
    
    .mpc-read-more {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ======================================
   TÍTULO DA PÁGINA MÃE SOBRE A IMAGEM
   ====================================== */
.mpc-parent-title {
    position: absolute;
    bottom: 0; 
    left: 0;
    width: 100%;
    padding: 10px 15px;
    font-size: 35px;
    font-weight: 700;
    color: #ffffff;
	text-shadow: 1px 1px #000000;
    background: linear-gradient(
        to top, 
        rgba(6, 102, 116, 0.90),
		rgba(6, 102, 116, 0.70),
        rgba(6, 102, 116, 0.45),
		rgba(6, 102, 116, 0.00)
    );
    z-index: 3;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Fica levemente mais fraco ao abrir o menu hover */
.mpc-col:hover .mpc-parent-title {
    opacity: 0;
}
