/* ===========================
   INDUSTRY REPORTS LISTING
   =========================== */

body {
  background: linear-gradient(
    135deg,
    rgba(24, 59, 102, 0.08) 0%,
    rgba(24, 59, 102, 0.05) 40%,
    rgba(243, 146, 0, 0.08) 100% 
  ) !important;
}
.cat-wrap{ padding:60px}
.intro{ margin-bottom: clamp(14px, 2.2vh, 22px); text-align: center; }
.intro h1{ margin: 0 0 6px; }

/* layout: sidebar + results */
.grid{
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
  align-items: start;

}
@media (max-width: 980px){
  .grid{ grid-template-columns: 1fr }
}

/* sidebar */
.card{
  border: 1px solid #e8edf3;
  background: #e6e5e5;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(24,59,102,.08);
}
.sidebar{ padding: 16px }
.side-title{ margin: 0 0 10px; font-size: 1.05rem; color: var(--brand) }

.cat-list{ display: grid; gap: 6px }
.cat-item{
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #000;
  text-decoration: none;
  border: 1px solid transparent;
}
.cat-item:hover{ background: #f6f9fc; border-color: #e8edf3 }
.cat-item.active{
  background: rgba(24,59,102,.06);
  border-color: rgba(24,59,102,.15);
  color: var(--brand);
  font-weight: 800;
}

/* results head */
.results-head{ margin-bottom: 10px }
.count{ font-weight: 700 }

/* report cards list */
.cards{ display: grid; gap: 14px }

/* ===========================
   NEW REPORT CARD LAYOUT
   =========================== */

/* Card frame */
.report.card{
  padding: 18px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  border-top: 2px solid #0f3b62 ;
}

/* Two-column row: LHS (link) + RHS (CTAs) */
.report-row{
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
}

/* LHS clickable block (title + meta) */
.report-row .lhs{
  flex: 1 1 auto;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  padding-right: 12px;
  text-align: justify;
}
.report-title{
  margin: 0 0 6px 0;
  font-size: 1.25rem;
  line-height: 1.25;
  color: #0f3b62;
}
.report-row .lhs:hover .report-title{ text-decoration: underline; }

/* Meta block */
.report-card-meta{
  list-style: none;
  margin: 0;
  padding: 0;
  color: #333;
  font-size: .95rem;
}
.report-card-meta li{ padding-top: 6px }
.report-card-meta .label{ font-weight: 600; margin-right: .25rem }
.report-card-meta .sep{ opacity: .5; margin: 0 .5rem }

/* RHS CTA stack */
.report-row .rhs{
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  flex: 0 0 240px;   /* width of right column */

}

/* Buttons */
.btn{
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
}

/* shared CTA sizing for this page */
.btn.btn--cta{
  /* padding: .625rem 1rem; */
  /* min-height: 44px; */
  /* line-height: 1; */
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  width: 100%;
  text-align: center;
}

/* theme variants */
.btn--accent{ background: #e67e22; color: #fff; border: 0; }
.btn--accent:hover{ filter: brightness(.95) }

.btn--outline{
  background: #fff; color: #0f3b62;
  border: 1px solid rgba(15,59,98,.25);
}
.btn--outline:hover{
  background: #0f3b62; color: #fff; border-color: #0f3b62;
}

/* simple link-style button used by "See More" */
.btn--link{
  background: transparent;
  color: var(--brand);
  border: 0;
  padding: 8px 10px;
}
.btn--link:hover{ text-decoration: underline }

/* Responsive: stack columns on small screens */
@media (max-width: 900px){
  .report-row{ flex-direction: column }
  .report-row .rhs{ width: 100%; align-items: stretch; flex: 0 0 auto }
}

/* ===========================
   Back to Top (category only)
   =========================== */
.btt{
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .6rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  color: #0f3b62;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease, box-shadow .2s ease;
  z-index: 1000;
}
.btt:hover{ box-shadow: 0 10px 28px rgba(0,0,0,.22) }
.btt:active{ transform: translateY(10px) scale(.98) }
.btt.show{ opacity: 1; visibility: visible; transform: translateY(0) }

.btt-ic{ width: 22px; height: 22px }
.btt-label{ font-weight: 600; font-size: .95rem }

@media (max-width: 768px){
  .btt{ right: 14px; bottom: 14px; padding: .55rem; border-radius: 14px }
  .btt-label{ display: none }
}

@media (prefers-reduced-motion: reduce){
  .btt{ transition: none }
  html:focus-within{ scroll-behavior: auto }
}


/* Sticky sidebar (desktop only) */
:root{
  --header-h: 64px;      /* header height on desktop; set 0px if header isn't fixed */
  --sidebar-gap: 16px;   /* spacing below header */
}

@media (min-width: 981px){
  .sidebar{
    position: sticky;
    top: calc(var(--header-h) + var(--sidebar-gap));
    align-self: start;       /* prevent stretching in the grid row */
    z-index: 2;              /* keep above card shadows */
    height: fit-content;     /* so it shrinks to content and can stick */
  }

  /* If the list is taller than the viewport, make the sidebar scroll internally */
  .sidebar .cat-list{
    max-height: calc(100vh - var(--header-h) - var(--sidebar-gap) - 48px); /* 48 ≈ title + padding */
    overflow: auto;
    padding-right: 4px;      /* room for scrollbar */
  }
}
 

/* Toggle bar inside sidebar for mobile view */
.side-toggle{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  width:100%; background:none; border:0; padding:0; margin:0 0 10px 0;
  color: var(--brand); font: inherit; font-weight: 800; cursor:pointer;
}
.side-toggle .chev{ width:22px; height:22px; transition: transform .2s ease }

/* Mobile: collapsed by default */
@media (max-width: 980px){
  /* collapse list */
  #catSidebar:not(.open) .cat-list{
    max-height: 0; overflow: hidden; padding-top: 0;
  }
  /* expanded state */
  #catSidebar.open .cat-list{
    max-height: 70vh; overflow:auto; padding-top: 6px;
  }
  /* rotate chevron when open */
  #catSidebar.open .side-toggle .chev{ transform: rotate(180deg) }

  /* keep the card padding consistent when collapsed/expanded */
  .sidebar{ padding:16px }
}

/* Desktop: always open, hide chevron if you prefer */
@media (min-width: 981px){
  #catSidebar{ /* sticky rules you added earlier still apply */ }
  .side-toggle .chev{ display:none; } /* optional */
}

/* Hide the categories sidebar on mobile & tablet */
@media (max-width: 1024px){
  .grid{ grid-template-columns: 1fr; } /* single column layout */
  #catSidebar.sidebar{ display: none !important; }
}

