/* ===== BLOG CAMPUSQCM ===== */

.campus-blog {
  padding-top: 80px;
}

/* HERO */
.blog-hero {
  text-align: center;
  margin-bottom: 40px;
}

.blog-hero h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.blog-hero p {
  opacity: 0.85;
  max-width: 620px;
  margin: 0 auto 20px;
}

.blog-search input {
  width: 100%;
  max-width: 420px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--qcm-border);
  background: var(--qcm-card-bg);
  color: var(--qcm-text);
}

/* CATEGORIES */
.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
}

.cat-btn {
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  border: 1px solid var(--qcm-border);
  background: transparent;
  cursor: pointer;
}

.cat-btn.active {
  background: var(--qcm-accent);
  color: white;
}

/* GRID */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* CARD */
.blog-card {
  border-radius: 18px;
  overflow: hidden;
  background: var(--qcm-card-bg);
  border: 1px solid var(--qcm-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.blog-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.blog-thumb img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.blog-thumb-placeholder {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  background: rgba(148,163,184,0.15);
}

/* CONTENT */
.blog-content {
  padding: 16px;
}

.blog-content h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.blog-excerpt {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 12px;
}

.blog-meta {
  font-size: 12px;
  opacity: 0.7;
  display: flex;
  justify-content: space-between;
}

.blog-tags {
  margin-top: 10px;
}

.tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(99,102,241,0.12);
  color: var(--qcm-accent);
  margin-right: 6px;
}
/* =========================
   BLOG HERO BACKGROUND
========================= */

.blog-hero {
  position: relative;
  padding: 80px 24px 70px;
  text-align: center;
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 36px;
}

/* Image de fond */
.blog-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/blog-hero-bg.jpg");
  background-size: cover;
  background-position: center;
  filter: brightness(0.45);
  transform: scale(1.05);
  z-index: 0;
}

/* Overlay dégradé premium */
.blog-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top left,
    rgba(79,70,229,0.55),
    rgba(15,23,42,0.85)
  );
  z-index: 1;
}

/* Contenu au-dessus */
.blog-hero h1,
.blog-hero p,
.blog-search {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

/* Texte */
.blog-hero h1 {
  font-size: clamp(32px, 4vw, 42px);
  margin-bottom: 10px;
}

.blog-hero p {
  font-size: 15px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 20px;
}

/* Search */
.blog-search input {
  max-width: 420px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  outline: none;
}
