@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');
.blog-wrapper {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  max-width: 100vw;

  background: linear-gradient(rgba(15, 15, 15, 0.85), rgba(15, 15, 15, 0.85)),
              url('/wp-content/plugins/custom-blogs/assets/oldman.jpg') center/cover no-repeat;
  background-attachment: fixed;

  min-height: 100vh;
  padding: 60px 20px;
  box-sizing: border-box;
}


.cbc-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 🔒 Always max 4 cards */
  gap: 20px;
  padding: 20px;
  background-color: #0f0f0f;
  font-family: 'Inter', sans-serif;
  border-radius: 10px;
  align-items: start;
  justify-items: center;
  max-width: 1600px;
  margin: 0 auto;
}

.cbc-card {
  background-color: #1b1b1b;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: 'Inter', sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  max-width: 340px; /* 👈 controls max card width */
margin: 0 auto; /* ✅ this keeps the card centered when alone */
}

.cbc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.cbc-card a {
  display: block;
  color: inherit;
  text-decoration: none;
  text-align: center;
  padding: 15px;
}

.cbc-image {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background-color: transparent;
  padding: 10px;
}

.cbc-title {
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #fcb900 !important;
  text-align: center;
  line-height: 1.4;
  margin-top: 10px;
  word-break: break-word;
  hyphens: auto;
  padding: 0 8px;
  max-height: 3.5em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.cbc-excerpt {
  font-size: 13px;
  color: #ddd;
  margin: 6px 10px 4px;
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  text-align: left;
}


.cbc-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px 12px;
  margin-top: auto;
}

.cbc-date {
  font-size: 13px;
  color: #bbb;
  font-family: 'Inter', sans-serif;
}

.cbc-read-more {
  display: inline-block;
  font-size: 14px;
  color: #fcb900;
  text-decoration: none;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  position: relative;
  transition: color 0.3s ease;
}

.cbc-read-more::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background-color: #fcb900;
  transition: width 0.3s ease;
}

.cbc-read-more:hover {
  color: #ffcc33;
}

.cbc-read-more:hover::after {
  width: 100%;
}


.cbc-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 2rem;
}
.cbc-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #333, transparent);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 4px 10px 2px;
  border: none;
}


.post-container {
  max-width: 1500px !important;
  margin: 10px auto !important;
  background-color: #1C1C1C !important;
  padding: 40px 30px !important;
  border-radius: 10px !important;
  border: 1px solid transparent !important;
  transition: border-color 0.3s ease !important;
  font-family: 'Inter', sans-serif !important;
  color: #ffffff !important;
}

.post-container:hover {
  border-color: #FCB900 !important;
}
.post-featured-image {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: 500px;                    /* 🔥 Fixed like blog card */
  margin: 0 auto 30px;
  overflow: hidden;
  border-radius: 8px;
  background-color: #1C1C1C !important;
  padding: 0 !important;                /* Optional: breathing room */
  box-sizing: border-box;
}

.post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;             /* ✅ Show full image */
  object-position: center center;
  display: block;
  border-radius: 8px;
  background-color: transparent;
  filter: brightness(0.65);
}

.terms-header {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  position: relative !important;
  margin-top: 3px !important;
  margin-bottom: 0px !important;
  text-align: center !important;
}

.terms-header h1 {
  font-family: 'Inter', sans-serif !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  width: 100% !important;
  color: #ffffff !important; /* all white */
  margin: 0 !important;
}
.post-meta-info {
  font-size: 14px !important;
  color: #bbb !important;
  text-align: center !important;
  margin-top: 16px !important;         /* 🟡 more space below title */
  margin-bottom: 24px !important;      /* 🟡 more space before divider */
  font-family: 'Inter', sans-serif !important;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;                           /* ✅ more spacing between items */
}

.dot-separator {
  opacity: 0.4;
}

.meta-divider {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, #444, transparent);
  margin: 0 auto 40px;
  max-width: 1100px; /* 🟢 wider than before */
}



.post-content {
  line-height: 1.8 !important;
  font-size: 16px !important;
  font-family: 'Inter', sans-serif !important;
  color: #ffffff !important;
  max-width: 1500px !important;
  margin: 0 auto;
  padding: 30px 20px;
}

.post-content img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 8px !important;
  margin: 20px 0 !important;
}

.post-content h2 {
  color: #FCB900 !important;
  font-size: 20px !important;
  margin-top: 40px !important;
  margin-bottom: 10px !important;
  font-weight: 600 !important;
  font-family: 'Inter', sans-serif !important;
}

.post-content p,
.post-content li {
  font-size: 16px !important;
  margin-bottom: 16px !important;
  color: #ffffff !important;
  font-family: 'Inter', sans-serif !important;
  line-height: 1.8 !important;
}

.post-content ul {
  padding-left: 20px !important;
}

.post-content a {
  color: #FCB900 !important;
  text-decoration: underline !important;
  font-weight: 500;
}

.post-content p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.post-content p strong {
  font-weight: 600;
}

@media (max-width: 768px) {
  /* ✅ Container */
  .post-container {
    padding: 20px 15px !important;
  }

  /* ✅ Featured Image */
  .post-featured-image {
    height: 180px !important;
    padding: 0 15px !important;
    max-width: 100% !important;
    margin: 0 0 20px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background-color: transparent !important;
  }

  .post-featured-image img {
    width: 100% !important;
    height: 180px !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
    border-radius: 8px !important;
    margin: 0 auto !important;
    background-color: transparent !important;
  }

  /* ✅ Title */
  .terms-header h1 {
    font-size: 12px !important;
    text-align: left !important;
    padding: 0 15px !important;
    margin-bottom: 10px !important;
  }

  /* ✅ Post Meta Info */
  .post-meta-info {
    font-size: 11px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 6px !important;
    padding: 0 15px !important;
  }

  .post-meta-info .dot-separator {
    display: none !important;
  }

  .meta-divider {
    margin: 12px 15px 30px !important;
    max-width: 100% !important;
  }

  /* ✅ Content */
  .post-content {
    font-size: 10px !important;
    padding: 0 15px !important;
  }

  .post-content h2 {
    font-size: 14px !important;
    margin-top: 25px !important;
    margin-bottom: 8px !important;
  }

  .post-content p,
  .post-content li {
    font-size: 12px !important;
    line-height: 1.7 !important;
  }

  .post-content ul {
    padding-left: 18px !important;
  }
}
/* iPad Pro: 3 cards */
@media (max-width: 1199px) {
  .cbc-wrapper {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* iPad: 2 cards */
@media (max-width: 991px) {
  .cbc-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: 1 card */
@media (max-width: 640px) {
  .cbc-wrapper {
    grid-template-columns: 1fr;
  }
}