/*  youtube responsive */
.iframe-container{
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; 
  height: 0;
}
.iframe-container iframe{
  position: absolute;
  top:0;
  left: 0;
  width: 100%;
  height: 100%;
}


.d-inline-flex {border-radius: 30px} 


.lqd-lp-style-22 .lqd-lp-meta {
    display: none !important ; }

/*  autores e datas a branco no estilo11 de blog */
.lqd-lp-author h3 {
    color: #ffffff;}


/*  autores e datas removed da HP 

.lqd-lp-style-6 .lqd-lp-meta {
    display: none !important ; }*/

/*  DATAS NAO MOSTRAR
.lqd-lp-date {
	display: none !important ; }

.lqd-lp-style-6 .lqd-lp-date {
    display: none !important ; }*/


/*  DATAS NAO MOSTRAR*/
.lqd-lp-date {
	display: none !important ; }

/*  DOTS NAO MOSTRAR*/
.lqd-lp-meta-dot-between .entry-terms:not(:last-child):after,.lqd-lp-meta-dot-between .lqd-lp-author:not(:last-child):after,.lqd-lp-meta-dot-between .lqd-lp-cat:not(:last-child):after,.lqd-lp-meta-dot-between .lqd-lp-date:not(:last-child):after {
    content: "";
    display: none; }
	
	
	
	/*  DENTRO ARTIGOS RELACIONADOS*/
.lqd-lp-style-20 .lqd-lp-cat a {
	padding-top: 0.1em;
    padding-right: 0.65em;
    padding-bottom: 0.1em;
    padding-left: 0.65em;;
 border-radius: 20px;}

	/*   remove autor 6*/
	.lqd-lp-style-6-alt .lqd-lp-author {
	display: none !important ; }


	/*   citações radius e remove meta 12*/
.lqd-lp-style-12 .lqd-lp-meta {
	display: none !important ; }

.lqd-lp-style-12 {
    border-radius: 20px}

	/*  HP hottoast tag*/
.lqd-lp-style-4 .lqd-lp-cat a {
	background-color:#292929;
		padding: 6px 12px;
    text-transform: uppercase;
	color:#FFFFFF;
 border-radius: 20px;
}

.lqd-lp-style-6 {
    border-radius: 20px}



.youtube-video {
  aspect-ratio: 16 / 9;
  width: 100%;}

/*  HP tags */

.lqd-lp-style-6 .lqd-lp-cat a {
	background-color:#292929;
		padding: 6px 12px;
    text-transform: uppercase;
	color:#FFFFFF;
 border-radius: 20px;
}



/*  Article tags */

.lqd-blog-post-style-6 .cat-links a {
	background-color:#292929;
		padding: 6px 12px;
    text-transform: uppercase;
	color:#FFFFFF;
	font-weight:700;
 border-radius: 20px;
}


/*  Article tagS below */

.tags-links a {
	background-color:#292929;
    text-transform: uppercase;
	font-weight:700;
	font-size: 8pt;
	color:#FFFFFF;
}


.lqd-lp-title a{
    text-transform: none;
}

.overlay-img-link {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0; left: 0;
  z-index: 10;
  object-fit: fill;
  max-width: none;
  max-height: none;
  pointer-events: auto;
}

.overlay-link {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

/* CARDS ARCHIVE */

.archive .lqd-lp-column {
    padding-left: 10px !important;
    padding-right: 10px !important;
}
.archive .lqd-lp-row {
    margin-left: -10px !important;
    margin-right: -10px !important;
}

/* 1. O Cartão Base */
.archive .lqd-lp {
    background-color: #ffffff !important;
    border-radius: 20px !important;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    height: 100%;
    display: flex;
    flex-direction: column;
		position: relative !important;
    z-index: 1;
}

/* 2. Imagem */
.archive .lqd-lp-img {
    margin-bottom: 0 !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
}
.archive .lqd-lp-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* 3. Título */
.archive .lqd-lp-header {
    padding: 0px 30px 0px 30px !important;
}

/* 4. Excerto */
.archive .lqd-lp-excerpt {
    padding: 0 30px 0px 30px !important; 
    flex-grow: 1;
}
.archive .lqd-lp-excerpt p,
.archive .lqd-lp-excerpt {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #000 !important;
}

/* 5. Esconder a área da imagem se o post não tiver imagem (ex: Citações) */
.archive .lqd-lp:not(.has-post-thumbnail) .lqd-lp-img {
    display: none !important;
}

/* Opcional: Centrar o texto verticalmente nestes cards sem imagem para ficarem mais elegantes */
.archive .lqd-lp:not(.has-post-thumbnail) {
    justify-content: center;
}

/* ==========================================================
   EFEITO MASONRY (Exclusivo para a categoria Citações)
   ========================================================== */

/* 1. Mudar o comportamento da linha de Flexbox para Colunas */
.category-citacoes .lqd-lp-row {
    display: block !important;
    column-count: 3; /* Divide em 3 colunas */
    column-gap: 20px; /* Espaço entre as colunas */
}

/* 2. Configurar a coluna para não "partir" cartões a meio */
.category-citacoes .lqd-lp-column {
    display: inline-block !important; /* Essencial para o Masonry CSS */
    width: 100% !important;
    margin-bottom: 20px !important; /* Espaço por baixo de cada cartão */
    padding: 0 !important; /* Removemos o padding antigo para usar o column-gap */
}

/* 3. Permitir que cada cartão tenha apenas a altura do seu texto */
.category-citacoes .lqd-lp {
    height: auto !important; 
}

/* 4. Tornar o Masonry Responsivo (Tablets e Telemóveis) */
@media (max-width: 992px) {
    .category-citacoes .lqd-lp-row {
        column-count: 2; /* 2 colunas em tablets */
    }
}

@media (max-width: 768px) {
    .category-citacoes .lqd-lp-row {
        column-count: 1; /* 1 coluna em telemóveis */
    }
    
    /* Adiciona o espaço lateral para os cards respirarem em mobile */
    .category-citacoes .lqd-lp-column {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* ==========================================================
   CORREÇÃO GLOBAL DE RESPONSIVIDADE (TABLETS E MOBILE)
   ========================================================== */

@media (max-width: 992px) {
    /* 1. Anular as margens negativas que empurram os cartões para fora do ecrã */
    body .lqd-lp-row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100vw !important; /* Impede a linha de ser maior que o ecrã */
    }

    /* 2. Garantir que as colunas respeitam os limites e têm espaço de respiração */
    body .lqd-lp-column {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 3. Garantir que o cartão e o seu conteúdo nunca ultrapassam a coluna */
    body .lqd-lp,
    body .lqd-lp-img,
    body .lqd-lp-header,
    body .lqd-lp-excerpt {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* 4. Ajustar o tamanho do texto para não ficar gigante no tablet/mobile */
    body .lqd-lp-title {
        font-size: 20px !important; /* Ajusta se achares muito pequeno/grande */
        line-height: 1.3 !important;
    }
}

