/* === BLOG COMPONENT CSS === */
/* Alleen laden op single posts en blog pages */

/* Single post layout */
.single-post .layout-contents {
  padding: 20px 0;
}

.single-post .layout-contents h1 {
  color: var(--primary-blue);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.single-post .layout-contents .leading.wp-post-image {
  width: 100%;
  height: auto;
  margin-bottom: 25px;
  border-radius: var(--border-radius);
}

/* Post meta information */
.meta {
  background: var(--light-gray);
  padding: 15px 20px;
  margin: 25px 0 30px;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-blue);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
  color: #666;
}

.meta div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta div::before {
  font-family: FontAwesome;
  color: var(--primary-blue);
  font-size: 1rem;
}

.meta .cat::before { content: "\f07b"; }
.meta .author::before { content: "\f007"; }
.meta .date::before { content: "\f017"; }
.meta .search::before { content: "\f002"; }

/* Blog listing layout */
.layout-blog .posts,
.layout-contents .blog {
  list-style: none;
  padding: 0;
  margin: 0;
}

.layout-blog .posts li,
.layout-contents .blog li {
  background: var(--light-gray);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 25px;
  position: relative;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.layout-blog .posts li:hover,
.layout-contents .blog li:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

/* Blog post image */
.layout-blog .posts li img,
.layout-contents .blog li img {
  width: 100%;
  height: auto;
  margin-bottom: 15px;
  border-radius: var(--border-radius);
}

@media (min-width: 992px) {
  .layout-blog .posts li img,
  .layout-contents .blog li img {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 280px;
    height: 180px;
    object-fit: cover;
    margin-bottom: 0;
  }
  
  .layout-blog .posts li .wrapper,
  .layout-contents .blog li .contents {
    padding-left: 310px;
  }
}

/* Blog post content */
.layout-blog .posts li .wrapper,
.layout-contents .blog li .contents {
  min-height: 160px;
}

.layout-blog .posts li .titles-and-contents,
.layout-contents .blog li .contents {
  margin-bottom: 15px;
}

.layout-blog .posts li .title,
.layout-contents .blog li h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--secondary-blue);
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.layout-blog .posts li .title:hover,
.layout-contents .blog li h2:hover {
  color: var(--primary-blue);
}

/* Date and read more */
.layout-blog .posts li .date-and-more {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.layout-blog .posts li .date,
.layout-contents .blog li .date {
  color: #666;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.layout-blog .posts li .date::before,
.layout-contents .blog li .date::before {
  content: '\f017';
  font-family: FontAwesome;
  color: var(--primary-blue);
}

/* Read more button */
.layout-blog .posts li .button,
.layout-contents .blog li .more {
  background: var(--success-green);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.layout-blog .posts li .button:hover,
.layout-contents .blog li .more:hover {
  background: var(--primary-blue);
  transform: translateX(3px);
}

.layout-blog .posts li .button::after,
.layout-contents .blog li .more::after {
  content: '\f061';
  font-family: FontAwesome;
}

/* News layout specific */
.layout-news ul.cats {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.layout-news ul.cats li {
  position: relative;
  padding-left: 15px;
}

.layout-news ul.cats li::before {
  content: '\f111';
  font-family: FontAwesome;
  color: var(--primary-blue);
  position: absolute;
  left: 0;
}

.layout-news ul.cats li:first-child {
  padding-left: 0;
  font-weight: 700;
}

.layout-news ul.cats li:first-child::before {
  display: none;
}

/* News latest layout */
.layout-newslatest {
  text-align: center;
  padding: 50px 0;
  background: var(--white);
}

.layout-newslatest h2 {
  color: var(--primary-blue);
  text-transform: uppercase;
  font-size: 1.8rem;
  margin-bottom: 30px;
}

.layout-newslatest ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.layout-newslatest ul li {
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: var(--border-radius);
  padding: 15px;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.layout-newslatest ul li:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.layout-newslatest ul li img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 15px;
}

.layout-newslatest ul li .title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary-blue);
  margin-bottom: 10px;
  height: 60px;
  display: flex;
  align-items: center;
  text-align: center;
}

.layout-newslatest ul li .titles-and-contents {
  height: 180px;
  overflow: hidden;
  margin-bottom: 15px;
  text-align: left;
}

.layout-newslatest ul li .date-and-more {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

.layout-newslatest ul li .date-and-more div {
  color: #666;
  font-size: 0.85rem;
}

.layout-newslatest ul li .date-and-more div::before {
  content: '\f073';
  font-family: FontAwesome;
  margin-right: 5px;
  color: var(--primary-blue);
}

.layout-newslatest ul li .date-and-more a {
  color: var(--primary-blue);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.layout-newslatest ul li .date-and-more a::before {
  content: '\f061';
  font-family: FontAwesome;
  margin-right: 5px;
}

.layout-newslatest ul li .date-and-more a:hover {
  text-decoration: underline;
}

/* More link at bottom */
.layout-newslatest .text a {
  display: inline-block;
  color: var(--primary-blue);
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 30px;
  text-decoration: none;
  transition: var(--transition);
}

.layout-newslatest .text a::after {
  content: '\f105';
  font-family: FontAwesome;
  margin-left: 8px;
  transition: var(--transition);
}

.layout-newslatest .text a:hover {
  text-decoration: underline;
}

.layout-newslatest .text a:hover::after {
  transform: translateX(3px);
}

/* Share section */
.layout-share {
  text-align: center;
  padding: 40px 0;
  background: var(--light-gray);
  border-top: 1px solid var(--border-gray);
  border-bottom: 1px solid var(--border-gray);
}

.layout-share h3 {
  color: var(--primary-blue);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.layout-share ul.social-share {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.layout-share ul.social-share li {
  flex: 0 0 auto;
}

.layout-share ul.social-share li a {
  background: var(--primary-blue);
  color: var(--white);
  padding: 10px 15px;
  border: 2px solid var(--primary-blue);
  border-radius: var(--border-radius);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
}

.layout-share ul.social-share li a:hover {
  background: var(--white);
  color: var(--primary-blue);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .single-post .layout-contents h1 {
    font-size: 1.8rem;
  }
  
  .meta {
    flex-direction: column;
    gap: 10px;
  }
  
  .layout-newslatest ul {
    grid-template-columns: 1fr;
  }
  
  .layout-blog .posts li .date-and-more {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .layout-share ul.social-share {
    flex-direction: column;
    max-width: 200px;
    margin: 0 auto;
  }
}