/* Stage A preview mockups — FAQ, Newsletter, Case Study detail.
   Scoped to these 3 pages only (loaded via @section('webpagestyles')).
   Does not modify innerPage.css or any other shared stylesheet. */

:root {
  --preview-brand: #AD181F;
  --preview-brand-dark: #120403;
}

/* Dark gradient hero — Case Study detail (left-aligned), FAQ / Newsletter (centered via .centered) */
.heroGradient {
  background: linear-gradient(120deg, var(--preview-brand-dark) 0%, var(--preview-brand) 100%);
  color: #fff;
  padding: 80px 0 60px;
  text-align: left;
}

.heroGradient.centered {
  text-align: center;
}

.heroGradient .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  font-size: 13px;
  color: #ff9d9d;
  margin-bottom: 14px;
}

.heroGradient h1 {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.heroGradient .subtitle {
  font-size: 18px;
  color: #e9d7d7;
}

.heroGradient.centered .subtitle {
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- FAQ accordion ---------- */
.faqSection {
  padding: 50px 0 80px;
}

.faqAccordion .accordion-item {
  border: 1px solid #ececec;
  border-radius: 10px;
  margin-bottom: 14px;
  overflow: hidden;
}

.faqAccordion .accordion-button {
  font-weight: 600;
  font-size: 16px;
  color: var(--preview-brand-dark);
  background: #fff;
}

.faqAccordion .accordion-button:not(.collapsed) {
  color: #fff;
  background: var(--preview-brand);
  box-shadow: none;
}

.faqAccordion .accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

.faqAccordion .accordion-button:focus {
  box-shadow: none;
  border-color: #ececec;
}

.faqAccordion .accordion-body {
  color: #5a5a5a;
  line-height: 1.7;
}

/* ---------- Newsletter listing + report cards ---------- */
.newsletterSection {
  padding: 50px 0 80px;
}

.newsletterGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.reportCard {
  border: 1px solid #ececec;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: transform .15s ease, box-shadow .15s ease;
  cursor: pointer;
}

.reportCard:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
}

.reportCard .reportThumb {
  height: 170px;
  overflow: hidden;
}

.reportCard .reportThumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reportCard .reportBody {
  padding: 18px;
}

.reportCard .reportDate {
  font-size: 12px;
  color: #9a9a9a;
  margin-bottom: 6px;
}

.reportCard h5 {
  font-size: 17px;
  font-weight: 700;
  color: var(--preview-brand-dark);
  margin-bottom: 8px;
}

.reportCard p {
  font-size: 14px;
  color: #6c6c6c;
  margin-bottom: 0;
}

/* Gate modal */
#newsletterGateModal .modal-content {
  border-radius: 14px;
  border: none;
}

#newsletterGateModal .modal-body {
  padding: 36px;
}

#newsletterGateModal h4 {
  font-weight: 700;
  color: var(--preview-brand-dark);
  margin-bottom: 8px;
}

#newsletterGateModal .form-label {
  font-weight: 600;
  font-size: 14px;
}

#newsletterGateModal .btn-gate-submit {
  background: var(--preview-brand);
  border-color: var(--preview-brand);
  color: #fff;
  font-weight: 600;
  padding: 10px 28px;
}

#newsletterGateModal .btn-gate-submit:hover {
  background: var(--preview-brand-dark);
  border-color: var(--preview-brand-dark);
}

/* ---------- Case study detail body ---------- */
.caseStudyBody {
  padding: 50px 0 80px;
}

.csSection {
  margin-bottom: 40px;
}

.csSection h3 {
  position: relative;
  font-size: 22px;
  font-weight: 700;
  color: var(--preview-brand-dark);
  margin-bottom: 16px;
  padding-left: 16px;
  border-left: 4px solid var(--preview-brand);
}

.csSection p {
  color: #4f4f4f;
  line-height: 1.75;
  white-space: pre-line;
}

.csChallengeList {
  list-style: none;
  padding: 0;
  margin: 0;
}

.csChallengeList li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 14px;
  color: #4f4f4f;
  line-height: 1.6;
}

.csChallengeList li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--preview-brand);
}

.csChallengeList li strong {
  display: block;
  color: var(--preview-brand-dark);
  margin-bottom: 2px;
}

.csSolutionImages {
  display: flex;
  gap: 18px;
  margin: 22px 0;
  flex-wrap: wrap;
}

.csSolutionImages figure {
  flex: 1 1 260px;
  margin: 0;
}

.csSolutionImages img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.csSolutionImages figcaption {
  font-size: 13px;
  color: #8a8a8a;
  margin-top: 8px;
  text-align: center;
}

.csQuote {
  background: #fdf2f2;
  border-left: 4px solid var(--preview-brand);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 30px;
}

.csQuote p {
  font-style: italic;
  font-weight: 600;
  color: var(--preview-brand-dark);
  font-size: 16px;
  margin-bottom: 12px;
}

.csQuote .quoteAttribution {
  font-size: 13px;
  color: #6c6c6c;
  font-style: normal;
}

/* Sidebar */
.csSidebar .csCard {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 18px;
}

.csSidebar .csCard h6 {
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--preview-brand);
  margin-bottom: 14px;
}

.csInfoRow {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #ececec;
  font-size: 14px;
}

.csInfoRow:last-child {
  border-bottom: none;
}

.csMapEmbed {
  margin-top: 12px;
  border-radius: 8px;
  overflow: hidden;
}

.csMapEmbed iframe {
  display: block;
}

.csInfoRow .label {
  color: #9a9a9a;
}

.csInfoRow .value {
  color: var(--preview-brand-dark);
  font-weight: 600;
  text-align: right;
}

.csListCard ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.csListCard ul li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  font-size: 14px;
  color: #4f4f4f;
}

.csCheck {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  background: var(--preview-brand);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  margin-top: 2px;
}

.csImpactList li .stat {
  font-weight: 700;
  color: var(--preview-brand-dark);
  margin-right: 4px;
}

.csContactCard .name {
  font-weight: 700;
  color: var(--preview-brand-dark);
  display: block;
  margin-bottom: 4px;
}

.csContactCard .title {
  font-size: 13px;
  color: #6c6c6c;
  display: block;
  margin-bottom: 6px;
  text-align: left;
}

.csContactCard .email {
  font-size: 13px;
  color: var(--preview-brand);
}

@media (max-width: 991px) {
  .caseStudyHero h1 { font-size: 28px; }
  .previewHero h1 { font-size: 28px; }
  .csSidebar { margin-top: 30px; }
}
