/*
CTC Separate Stylesheet
Updated: 2025-07-22 20:52:16
*/
.post-single {
  max-width: 800px !important;
  margin: 60px auto !important;
  padding: 20px 0 !important;
  border-top: 2px solid #ccc !important;
  border-bottom: 2px solid #ccc !important;
}
.post-single__thumb { margin-bottom: 30px !important; }
.post-single__title { text-align: center !important; }
.post-single__meta { text-align: center !important; color: #666 !important; font-size: .9rem !important; margin-bottom: 30px !important; }
.post-single__content { line-height: 1.7 !important; font-size: 1rem !important; padding: 0 20px !important; }

.post-single__footer {
  text-align: center !important;
}
.btn.linkedin-share {
  display: inline-block;
	text-align: center !important;
}

.post-single__share {
  text-align: center;
  margin: 12px 0; 
}


.post-single__share .linkedin-share {
  display: inline-block;
}

.post-single__share .social-icon {
  display: inline-block;
  vertical-align: middle;
  width: 36px;    
  height: auto;
}

.post-single__share a + a {
  margin-left: 12px;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* ratio 16:9 */
  height: 0;
  overflow: hidden;
  margin: 20px 0;
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.linkedin-embed-container {
  position: relative;
  width: 100%;
  max-width: 600px;            
  margin: 20px auto;          
}

.linkedin-embed-container::before {
  content: "";
  display: block;
  padding-top: 105.16%;        /* 530 ÷ 504 × 100% */
}


.linkedin-embed-container iframe {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.category-filter {
  text-align: center;
  margin-bottom: 30px;
}
.category-filter a {
  display: inline-block;
  margin: 0 6px;
  padding: 6px 12px;
  background: #f2f2f2;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  transition: background .3s;
}
.category-filter a:hover {
  background: #ddd;
}
.category-filter a.active {
  background: #0068a3; /* couleur de marque */
  color: #fff;
}


/* ------------------------------------- */
/*   FILTRO DE CATEGORÍAS                */
/* ------------------------------------- */

/* 1) Contenedor general, centrado */
.et_pb_code .category-filter {
  text-align: center !important;
  margin-bottom: 30px !important;
}

/* 2) Botones base */
.et_pb_code .category-filter .cat-btn {
  display: inline-block !important;
  background-color: #0068a3 !important;
  color: #ffffff !important;
  padding: 8px 16px !important;
  margin: 4px !important;
  border-radius: 4px !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: background-color .2s ease !important;
}

/* 3) Hover */
.et_pb_code .category-filter .cat-btn:hover {
  background-color: #00547a !important;
}

/* 4) Estado activo */
.et_pb_code .category-filter .cat-btn.active {
  background-color: #004060 !important;
}

/* 5) Subcategorías con sangría y texto más pequeño */
.et_pb_code .category-filter .cat-btn.subcat {
  padding-left: 24px !important;
  font-size: 0.9em !important;
}

/* ------------------------------------- */
/*   GRID DE POSTS PARA EL FILTRO        */
/*   (opcional: si lo quieres controlar) */
/* ------------------------------------- */
#posts-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
#posts-container .post-item img {
  width: 100%;
  height: auto;
  display: block;
}
#posts-container .post-item__title {
  font-size: 1.2rem;
  margin: 10px 0;
}
#posts-container .post-item__excerpt {
  color: #555;
  line-height: 1.6;
}
