/* ============================================================
   REPORTS GALLERY — page-specific styles
   Hero reuses the .csg-hero pattern from the other galleries;
   filters + flip cards are Reports-only (rg- prefix).
   ============================================================ */

/* ── Hero (same pattern as News / Case Studies galleries) ──── */
.csg-hero {
  padding: 160px 0 60px;
  text-align: center;
  position: relative;
}
.csg-hero__title {
  font-family: var(--font-display, "Montserrat", sans-serif);
  font-weight: 800;
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 auto 20px;
  max-width: 800px;
  color: #fff;
}
.csg-hero__title em {
  font-style: normal;
  color: #B23AF0;
}
.csg-hero__sub {
  font-size: clamp(15px, 1.2vw, 19px);
  opacity: 0.65;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.5;
}

.rg-section {
  padding: 0 0 140px;
}

/* ── Filter bar ────────────────────────────────────────────── */
.rg-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 44px;
}
.rg-clear {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 6px;
  transition: color .2s;
}
.rg-clear:hover { color: #fff; }

.rg-select { position: relative; }
.rg-select__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.rg-select__btn:hover { border-color: #fff; }
.rg-select.has-value .rg-select__btn {
  border-color: var(--kc-fuchsia-400, #B23AF0);
  background: rgba(178,58,240,0.15);
}
.rg-select__btn svg { opacity: 0.7; transition: transform .2s; }
.rg-select.is-open .rg-select__btn svg { transform: rotate(180deg); }

.rg-select__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  background: #17102b;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 6px;
  z-index: 30;
  display: none;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,0.6);
}
.rg-select.is-open .rg-select__menu { display: block; }
.rg-select__option {
  display: block;
  width: 100%;
  text-align: left;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  background: none;
  border: none;
  border-radius: 8px;
  padding: 9px 12px;
  cursor: pointer;
  white-space: nowrap;
}
.rg-select__option:hover { background: rgba(255,255,255,0.08); color: #fff; }
.rg-select__option.is-selected {
  background: rgba(178,58,240,0.25);
  color: #fff;
}

.rg-search { margin-left: auto; }
.rg-search input {
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 999px;
  padding: 10px 18px;
  min-width: 200px;
  outline: none;
  transition: border-color .2s;
}
.rg-search input::placeholder { color: rgba(255,255,255,0.45); }
.rg-search input:focus { border-color: var(--kc-cyan-500, #4CCBFF); }

/* ── Grid ──────────────────────────────────────────────────── */
.rg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ── Flip card ─────────────────────────────────────────────── */
.rg-card { perspective: 1400px; min-height: 420px; }
.rg-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.4,.2,.2,1);
}
.rg-card.is-flipped .rg-card__inner { transform: rotateY(180deg); }

.rg-card__face {
  display: flex;
  flex-direction: column;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.rg-card__front { position: relative; height: 100%; }
.rg-card__back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  justify-content: flex-start;
}
.rg-card:hover .rg-card__face {
  border-color: rgba(178,58,240,0.45);
  box-shadow: 0 24px 60px -16px rgba(148,20,250,0.35);
}

.rg-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1a1a1a;
}
.rg-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.rg-card:hover .rg-card__thumb img { transform: scale(1.04); }

.rg-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 26px 26px;
}
.rg-card__title {
  font-family: var(--font-display, "Montserrat", sans-serif);
  font-weight: 700;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  color: #fff;
}
.rg-card__meta {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin: 0 0 12px;
}
.rg-card__format {
  align-self: flex-start;
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--kc-cyan-500, #4CCBFF);
  border: 1px solid rgba(76,203,255,0.35);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 16px;
}
.rg-card__desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.75);
  margin: 0 0 14px;
  overflow-y: auto;
}
.rg-card__tags {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin: 0 0 14px;
}
.rg-card__actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}
.rg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 13px;
  border-radius: 999px;
  padding: 10px 22px;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.rg-btn--primary {
  background: var(--kc-violet-600, #8812E3);
  color: #fff;
  border: 1px solid transparent;
}
.rg-btn--primary:hover { background: var(--kc-fuchsia-400, #B23AF0); }
.rg-btn--ghost {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.35);
}
.rg-btn--ghost:hover { color: #fff; border-color: #fff; }

/* ── Empty + Load more ─────────────────────────────────────── */
.rg-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  opacity: 0.55;
  font-size: 15px;
}
.rg-more {
  text-align: center;
  margin-top: 48px;
}
.rg-more__btn {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 999px;
  padding: 12px 34px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.rg-more__btn:hover { border-color: #fff; background: rgba(255,255,255,0.06); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .rg-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .rg-search { margin-left: 0; flex: 1 1 100%; }
  .rg-search input { width: 100%; }
}
@media (max-width: 560px) {
  .csg-hero { padding: 120px 0 44px; }
  .rg-grid { grid-template-columns: 1fr; gap: 16px; }
  .rg-section { padding-bottom: 80px; }
  .rg-card { min-height: 400px; }
}
