/*
 Theme Name:   Heatmedia Child
 Description:  Heatmedia Child Theme
 Author:       Heatmedia B.V.
 Author URI:   https://heatmedia.nl
 Template:     bootscore
 Version:      1.0
 Requires at least: 5.0
 Tested up to: 6.6
 Requires PHP: 7.4
 Text Domain:  bootscore
*/

@import url('https://fonts.googleapis.com/css2?family=Carattere&family=Cinzel+Decorative:wght@700;900&family=Marck+Script&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

/* Globaal lettertype en tekstgrootte */
body {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 15px !important;
  line-height: 1.6;
  color: #333;
}

/* ===== HEADER ===== */
header.site-header {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  padding: 0;
  position: relative;
  z-index: 1000;
}

.header-logo { display: flex; align-items: center; }
.header-logo .site-title { font-family: 'Cinzel Decorative', serif; font-size: 32px; font-weight: 700; color: #F2E6EE; letter-spacing: 2px; }
.header-logo i { color: #F2E6EE; font-size: 28px; margin-left: 8px; animation: spaFloat 2.5s ease-in-out infinite; }

@keyframes spaFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

.header-text-widget { margin-left: 15px; }
.header-text-widget .header-text {
  font-family: 'Cinzel Decorative', serif;
  font-size: 24px;
  font-weight: 700;
  color: #F2E6EE;
  letter-spacing: 1px;
}

/* ===== DESKTOP MENU ===== */
.header-categories ul.header-menu {
  display: flex; gap: 2rem; list-style: none; padding: 0; margin: 0;
}
.header-categories ul.header-menu li a {
  font-size: 18px; font-weight: 600; color: #F2E6EE;
  text-decoration: none; position: relative; padding-bottom: 3px;
  transition: color 0.3s ease;
}
.header-categories ul.header-menu li a:hover { color: #fff; }
.header-categories ul.header-menu li a::after {
  content: ""; position: absolute; width: 0; height: 2px; bottom: 0; left: 0;
  background-color: #F2E6EE; transition: width 0.3s ease;
}
.header-categories ul.header-menu li a:hover::after { width: 100%; }

/* ===== DESKTOP SEARCH ===== */
.search-wrapper { display: flex; align-items: center; gap: 0.5rem; }
.search-wrapper .search-form { display: flex; align-items: center; margin: 0; }
.search-wrapper .search-form input[type="search"] {
  flex: 1; min-width: 150px; padding: 5px 10px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1); color: #fff;
}
.search-wrapper .search-form input[type="search"]::placeholder { color: rgba(255,255,255,0.7); }
.search-wrapper .search-form.d-none { display: none !important; }
.search-wrapper button { background: none; border: none; font-size: 20px; cursor: pointer; transition: color 0.3s; }

/* ===== MOBILE MENU ===== */
.navbar-toggler { background: transparent; border: none; color: #F2E6EE; font-size: 28px; cursor: pointer; }
.mobile-collapse { background: linear-gradient(to right, #cc4c65, #a68fe1); padding: 15px 20px; }
.mobile-header-menu { display: flex; flex-direction: column; gap: 10px; list-style: none; padding: 0; margin: 0; }
.mobile-header-menu li a {
  font-size: 15px; font-weight: 600; color: #F2E6EE; text-decoration: none; padding: 8px 15px;
  border-bottom: 1px solid rgba(255,255,255,0.3); transition: all 0.3s ease; display: block;
}
.mobile-header-menu li a:hover { color: #fff; background-color: rgba(255, 255, 255, 0.1); border-bottom-color: #fff; border-radius: 4px; }

/* ===== MOBILE SEARCH ===== */
.mobile-search form { display: flex; align-items: center; background: rgba(255,255,255,0.1); border-radius: 6px; padding: 5px 10px; }
.mobile-search input[type="search"] { flex: 1; border: none; background: transparent; color: #fff; font-size: 16px; padding: 5px; }
.mobile-search input[type="search"]::placeholder { color: rgba(255,255,255,0.7); }
.mobile-search button { background: none; border: none; color: #F2E6EE; font-size: 20px; cursor: pointer; transition: color 0.3s; }
.mobile-search button:hover { color: #fff; }

/* ===== FOOTER ===== */
.site-footer { background: linear-gradient(180deg, #cc4c65, #931e6c); color: #fff; text-align: center; position: relative; z-index: 1000; }
.site-info, .site-info * { font-size: 14px; }
.bootscore-footer-top { font-family: "Marck Script", cursive; font-size: 25px; }
.site-info.border-top { border-top: 2px solid rgba(255, 255, 255, 0.2) !important; }
.footer-widgets { padding: 40px 0; text-align: left; }
.widget-title { font-weight: 700; color: #fff; font-size: 24px; margin-bottom: 15px; }
.site-footer a { color: #fff; text-decoration: none; transition: color 0.3s ease, transform 0.2s ease; }
.site-footer a:hover { color: #ffae00; transform: scale(1.05); }
.footer-widgets .card { background-color: rgba(255,255,255,0.05); border: none; border-radius: 8px; overflow: hidden; transition: transform 0.3s ease, background-color 0.3s ease; }
.footer-widgets .card:hover { transform: translateY(-4px); background-color: rgba(255,255,255,0.12); }
.footer-widgets .card-img-top { width: 100%; height: auto; object-fit: cover; border-radius: 6px 6px 0 0; }
.footer-widgets .card-body { padding: 10px; }
.footer-widgets .card-title { font-size: 16px; font-weight: 700; color: #fff; }
.footer-widgets .card-text { font-size: 14px; color: rgba(255,255,255,0.8); margin: 0; }
.footer-menu .nav { display: flex; flex-direction: column; gap: 8px; }
.footer-menu .nav li a { font-size: 16px; font-weight: 600; color: #F2E6EE; text-decoration: none; padding: 4px 0; transition: color 0.3s ease; }
.footer-menu .nav li a:hover { color: #fbca61; }
.site-info { border-top: 2px solid rgba(255,255,255,0.2); margin-top: 30px; padding-top: 15px; font-size: 16px; color: #eee; letter-spacing: 1px; text-transform: uppercase; }

/* ===== TO TOP BUTTON ===== */
.top-button { border-radius: 8px; padding: 10px 15px; transition: all 0.3s ease; z-index: 1000; }
.top-button:hover { transform: scale(1.1); }

/* Footer Icon */
.footer-icon { font-size: 55px; color: #F2E6EE; animation: pulseIcon 1.5s infinite; }
@keyframes pulseIcon { 0%,100% { transform: scale(1); } 50% { transform: scale(1.2); } }

/* Basis grid cards */
.featured-grid .post-card {
  border: none;
  border-radius: 8px;
  overflow: hidden
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-grid .post-card a {
  text-decoration: none !important;
}

.featured-grid .post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.25);
}

/* Afbeeldingen zelfde maat */
.featured-grid .card-img {
  width: 100%;
  height: 280px; /* vaste hoogte voor uniform grid */
  object-fit: cover;
  display: block;
}

/* Overlay met titel en button */
.featured-grid .card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0));
}

/* Titel */
.featured-grid .card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* Lees verder knop */
.featured-grid .card-overlay .btn {
  align-self: flex-start;
  font-size: 0.8rem;
  background-color: #cc4c65;
  padding: 2px 10px;
  color:#fff !important;
  margin-top: 5px;
}

.featured-grid .card-overlay .btn:hover {
  align-self: flex-start;
  font-size: 0.8rem;
  background-color: #c10033; 
   padding: 2px 10px;
  color:#fff !important;
}

/* Responsive */
@media (max-width: 992px) {
  .featured-grid .card-img { height: 220px; }
}

@media (max-width: 576px) {
  .featured-grid .card-img { height: 180px; }
  .featured-grid .card-title { font-size: 1rem; }
}

/* ===== BLOG GRID ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.blog-grid .card {
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow: hidden;
  border: none !important;
  height: 100%;
}
.blog-grid .card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.blog-grid .card-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.blog-grid .read-more-btn {
  display: inline-block;
  text-align: center;
  padding: 10px;
  background-color: #cc4c65;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background 0.3s ease;
  margin-top: 10px;
}
.blog-grid .read-more-btn:hover { background-color: #c10033; }

/* Algemene layout */
.article-card {
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease;
}
.article-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.article-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-body {
  padding: 15px;
}

.article-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
}
.article-title a {
  color: #000;
  text-decoration: none;
}
.article-title a:hover {
  text-decoration: underline;
}

.article-meta {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 10px;
}

.article-excerpt {
  font-size: 0.95rem;
  color: #444;
}

/* Sectie titels */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  border-bottom: 2px solid #f15a24; /* oranje streep */
  display: inline-block;
  padding-bottom: 5px;
}

/* Knoppen */
.btn-more {
  background: #fbca61;
  color: #fff;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.btn-more:hover {
  background: #d94a1d;
  color: #fff;
}

/* ===== SINGLE POST ===== */
.post-wrapper {
  display: grid;
  grid-template-columns: 1fr 450px; /* Desktop: content links, sidebar rechts */
  gap: 20px;
  align-items: start;
}

.post-content {
  text-align: left;
}

.post-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Featured / post images in single post */
.post-image img {
  width: 100%;         /* vult de container volledig */
  height: 350px !important;       /* vaste hoogte voor uniformiteit */
  object-fit: cover;   /* snijdt bij indien nodig, verhoudingen blijven */
  display: block;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.new-posts-section {
  margin-top: 0;
}

.new-posts-section .new-posts-title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 10px;
}

.new-posts-section .recent-post-block {
  border: 1px solid #aaa;
  padding: 10px 15px;
  margin-bottom: 10px;
  border-radius: 5px;
  transition: background 0.3s ease;
  background-color: #fff;
}

.new-posts-section .recent-post-block:hover {
  background-color: #fcf7ff;
}

.new-posts-section .recent-post-block a {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  display: block;
}

.post-title {
  padding-top: 10px;
  font-size: 2rem;
  font-weight: 700;
  text-align: left;
  margin-bottom: 20px;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 20px;
  padding-bottom: 10px;
  border-top: 1px solid #ddd;
}

.post-navigation a {
  color: var(--secondary-accent-color);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-navigation a:hover {
  color: gray;
}

/* ===== SHOW / HIDE FOR DESKTOP / MOBILE ===== */
.desktop-only { display: block; }
.mobile-only { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .post-wrapper { grid-template-columns: 1fr; }
  .post-right { display: none; } /* Verberg rechterkant op mobiel */
  .desktop-only { display: none !important; } /* Alles wat alleen op desktop mag */
  .mobile-only { display: block !important; } /* Alles wat alleen op mobiel mag */
  
  /* Mobiele layout: afbeelding boven content en nieuwe berichten onder content */
  .post-image.mobile-only { margin-bottom: 1.5rem; }
  .new-posts-section.mobile-only { margin-top: 2rem; }
}

/* Header compacter maken op mobiel */
@media (max-width: 576px) {
  header.site-header {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  header.site-header .site-title {
    font-size: 1.25rem; /* kleiner lettertype */
    margin: 0;          /* geen extra ruimte erboven/onder */
    line-height: 1.2;   /* compacter */
  }
 
    .post-title { 
    font-size: 1.5rem; 
    }
}

/* ===== FOOTER / HEADER RESPONSIVE ===== */
@media (max-width: 992px) {
  .header-categories.d-none.d-lg-flex { display: none !important; }
  .footer-widgets { padding: 30px 15px; }
  .footer-menu .nav li a { font-size: 15px; }
  .footer-icon-container { justify-content: center !important; margin-top: 20px; }
}

@media (max-width: 576px) {
  .footer-widgets .card-title { font-size: 14px; }
  .footer-widgets .card-text { font-size: 12px; }
}

.container, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl {
  max-width: 1320px;
  padding: 0 10px;
}