/* ══ MANIFESTATIONS SECTION ══ */
.manifests-section {
  padding: 100px 0 80px;
  position: relative;
  background: var(--bg);
  overflow: hidden;
}

/* Same calligraphy background as diversite */

.manifests-section::before {
  content: '';
  position: absolute;
  inset: 0;
  /*background: url('../images/section_services.png') center / cover no-repeat;*/
  background: url('../images/diversite.png') center / cover no-repeat;
  /*opacity: 1;*/
  opacity: 0.9;
  mix-blend-mode: normal;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.4s ease;
  }

.dark .manifests-section::before {
  opacity: 0;
}

.manifests-inner {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* 3-column grid */
.manifests-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 16px;
}

/* Hover — subtle lift */
.manifests-grid .div-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201,168,76,0.7);
  box-shadow:
    0 6px 0px rgba(152,15,30,0.4),
    0 8px 20px rgba(152,15,30,0.35),
    0 0 15px rgba(152,15,30,0.3);
}

/* Hidden cards beyond first 6 */
.manifests-grid .div-card:nth-child(n+7) {
  display: none;
}
.manifests-grid.expanded .div-card:nth-child(n+7) {
  display: flex;
}

/* Top border accent */
.manifests-section {
  border-top: 1px solid rgba(201,168,76,0.15);
}

/* Responsive */
@media (max-width: 1100px) {
  .manifests-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .manifests-grid {
    grid-template-columns: 1fr;
  }
}

/* ══ CARD — full bleed, no white background ══ */
.manifests-grid .div-card {
  aspect-ratio: unset;
  width: 100%;
  min-width: 0;
  height: 180px;              /* ← card height — adjust freely */
  display: flex;
  flex-direction: row;
  align-items: stretch;
  border-radius: 14px;
  overflow: hidden;
  background: transparent;   /* no plain bg — image fills the card */
  border: 1.5px solid var(--border);
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
  transition: all 0.3s ease;
  position: relative;
}

/* ══ RIGHT SIDE — image (takes remaining space) ══ */
.manifests-grid .div-card-img {
  position: relative;
  inset: unset;
  flex: 1;                    /* fills the right portion */
  min-width: 0;
  /* width / height controlled by flex + card height */
  order: 2;                   /* RIGHT */
  background-size: cover;
  background-position: center;
}

/* Soft left-fade where image meets the text panel */
.manifests-grid .div-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.35) 0%, transparent 40%);
  pointer-events: none;
}

/* ══ LEFT SIDE — blurred dark text panel ══ */
.manifests-grid .div-card-body {
  position: relative;
  inset: unset;
  width: 52%;                 /* ← left panel width — adjust freely */
  flex-shrink: 0;
  order: 1;                   /* LEFT */
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  z-index: 2;
  overflow: hidden;

  /* Blurred dark overlay — mirrors the old layout aesthetic */
  background: rgba(10, 8, 5, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  /* Subtle inner right border separating panel from image */
  border-right: 1px solid rgba(201,168,76,0.18);
}

/* Badge — sits inside the body panel, top-left */
.manifests-grid .div-card-cat {
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: 9px;
  padding: 3px 9px;
  z-index: 3;
}

/* Date */
.manifests-grid .div-card-date {
  font-size: 11.5px;
  color: var(--gold);
  margin-bottom: 0;
  margin-top: 22px;           /* push below badge */
  font-weight: 500;
}

/* Title */
.manifests-grid .div-card-body h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;                /* always white — we're on a dark panel */
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  margin-bottom: 2px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Description */
.manifests-grid .div-card-body p {
  font-size: 12px;
  color: rgba(255,255,255,0.72);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Tab styles ── */
.manifests-section .div-tab {
  border: 1.5px solid #980F1E;
  color: black;
  background: rgba(201,168,76,0.06);
  font-weight: 600;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow:
    0 6px 0px rgba(152,15,30,0.4),
    0 8px 20px rgba(152,15,30,0.35),
    0 0 15px rgba(152,15,30,0.3);
}
.manifests-section .div-tab:hover {
  background: rgba(201,168,76,0.15);
  border-color: #980F1E;
  color: black;
  transform: translateY(-3px) scale(1.04);
  box-shadow:
    0 6px 0px rgba(152,15,30,0.4),
    0 8px 20px rgba(152,15,30,0.35),
    0 0 15px rgba(152,15,30,0.3);
}
.manifests-section .div-tab.active {
  background: #980F1E;
  border-color: 2px solid #7B0F18;
  color: white;
  font-weight: 700;
  transform: translateY(-2px);
  box-shadow:
    0 6px 0px rgba(152,15,30,0.4),
    0 8px 20px rgba(152,15,30,0.35),
    0 0 15px rgba(152,15,30,0.3);
}
