@import url(fontawesome-all.min.css);
@import url("https://fonts.googleapis.com/css?family=Open+Sans:400,600,400italic,600italic|Roboto+Slab:400,700");
@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Indivisible Font */
@font-face {
  font-family: 'Indivisible';
  src: url('../webfonts/fonnts.com-Indivisible_SemiBold.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
}

/* ═══════════════════════════════════════════════════════════════
   RESET
═══════════════════════════════════════════════════════════════ */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var, b, u, i,
center, dl, dt, dd, ol, ul, li, fieldset, form,
label, legend, table, caption, tbody, tfoot, thead,
tr, th, td, article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup, menu,
nav, output, ruby, section, summary, time, mark,
audio, video {
  margin: 0; padding: 0; border: 0;
  font-size: 100%; font: inherit; vertical-align: baseline;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section { display: block; }
body           { line-height: 1; }
ol, ul         { list-style: none; }
blockquote, q  { quotes: none; }
blockquote:before, blockquote:after,
q:before, q:after { content: ''; content: none; }
table { border-collapse: collapse; border-spacing: 0; }
body { -webkit-text-size-adjust: none; }
mark { background-color: transparent; color: inherit; }
input::-moz-focus-inner { border: 0; padding: 0; }
input, select, textarea {
  -moz-appearance: none; -webkit-appearance: none;
  -ms-appearance: none; appearance: none;
}

/* ═══════════════════════════════════════════════════════════════
   BASIC / BOX MODEL
═══════════════════════════════════════════════════════════════ */
@-ms-viewport { width: device-width; }
body { -ms-overflow-style: scrollbar; }
@media screen and (max-width: 480px) { html, body { min-width: 320px; } }
html { box-sizing: border-box; scroll-behavior: smooth; }
*, *:before, *:after { box-sizing: inherit; }

/* ═══════════════════════════════════════════════════════════════
   BACKGROUND — easily customisable via CSS variables
═══════════════════════════════════════════════════════════════ */
:root {
  /* ── Side background ──────────────────────────────────────
     Change --bg-color  : RGB values of gutter colour
     Change --bg-opacity: 0 (transparent) → 1 (solid)
     Or swap background-color for background-image on html/body
  ─────────────────────────────────────────────────────────── */
  --bg-color:   255, 255, 255;   /* white  */
  --bg-opacity: 1;
}

html, body {
  background-color: rgba(var(--bg-color), var(--bg-opacity));
}

body.is-preload *, body.is-preload *:before, body.is-preload *:after,
body.is-resizing *, body.is-resizing *:before, body.is-resizing *:after {
  -moz-animation: none !important; -webkit-animation: none !important;
  -ms-animation: none !important; animation: none !important;
  -moz-transition: none !important; -webkit-transition: none !important;
  -ms-transition: none !important; transition: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════════════════════════ */
body, input, select, textarea {
  color: #7f888f;
  font-family: "Open Sans", sans-serif;
  font-size: 13pt;
  font-weight: 400;
  line-height: 1.65;
}
@media screen and (max-width: 1680px) { body, input, select, textarea { font-size: 11pt; } }
@media screen and (max-width: 1280px) { body, input, select, textarea { font-size: 10pt; } }
@media screen and (max-width:  360px) { body, input, select, textarea { font-size: 9pt; } }

a {
  transition: color 0.2s ease-in-out, border-bottom-color 0.2s ease-in-out;
  border-bottom: dotted 1px;
  color: #48acc6;
  text-decoration: none;
}
a:hover { border-bottom-color: #48acc6; color: #48acc6 !important; }
a:hover strong { color: inherit; }

strong, b { color: #3d4449; font-weight: 600; }
em, i      { font-style: italic; }
p          { margin: 0 0 2em 0; }

h1, h2, h3, h4, h5, h6 {
  color: #3d4449;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 1em 0;
}
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
  color: inherit; text-decoration: none; border-bottom: 0;
}

h1 { font-size: 4em;    margin: 0 0 0.5em 0; line-height: 1.3; font-weight: 700 !important; color: #051b27 !important; }
h2 { font-size: 1.75em; }
h3 { font-size: 1.25em; }
h4 { font-size: 1.1em;  }
h5 { font-size: 0.9em;  }
h6 { font-size: 0.7em;  }

@media screen and (max-width: 1680px) { h1 { font-size: 3.5em; } }
@media screen and (max-width:  980px) { h1 { font-size: 3.25em; } }
@media screen and (max-width:  736px) {
  h1 { font-size: 2.5em; line-height: 1.4; }
  h2 { font-size: 1.5em; }
}

sub { font-size: 0.8em; position: relative; top:  0.5em; }
sup { font-size: 0.8em; position: relative; top: -0.5em; }

blockquote {
  border-left: solid 3px rgba(210,215,217,0.75);
  font-style: italic;
  margin: 0 0 2em 0;
  padding: 0.5em 0 0.5em 2em;
}
code {
  background: rgba(230,235,237,0.25);
  border-radius: 0.375em;
  border: solid 1px rgba(210,215,217,0.75);
  font-family: "Courier New", monospace;
  font-size: 0.9em;
  margin: 0 0.25em;
  padding: 0.25em 0.65em;
}
pre {
  -webkit-overflow-scrolling: touch;
  font-family: "Courier New", monospace;
  font-size: 0.9em;
  margin: 0 0 2em 0;
}
pre code { display: block; line-height: 1.75; padding: 1em 1.5em; overflow-x: auto; }

hr { border: 0; border-bottom: solid 1px rgba(210,215,217,0.75); margin: 2em 0; }
hr.major { margin: 3em 0; }

.align-left   { text-align: left; }
.align-center { text-align: center; }
.align-right  { text-align: right; }

/* ═══════════════════════════════════════════════════════════════
   SECTION HEADERS (shared across all pages)
═══════════════════════════════════════════════════════════════ */
.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2em;
}
.section-header::before {
  content: '';
  width: 2rem;
  height: 2px;
  background: #48acc6;
  flex-shrink: 0;
}
.section-header h2 {
  margin: 0;
  font-size: 2em;
  line-height: 1.2;
  font-weight: 800;
  color: #48acc6;
}

/* ═══════════════════════════════════════════════════════════════
   MODERN CONTENT WRAPPER
═══════════════════════════════════════════════════════════════ */
.modern-content {
  max-width: 900px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════
   FORMS
═══════════════════════════════════════════════════════════════ */
form { margin: 0 0 2em 0; }
label { color: #3d4449; display: block; font-size: 0.9em; font-weight: 600; margin: 0 0 1em 0; }

input[type="text"], input[type="password"], input[type="email"],
input[type="tel"], input[type="search"], input[type="url"],
select, textarea {
  -moz-appearance: none; -webkit-appearance: none; -ms-appearance: none; appearance: none;
  background: #ffffff;
  border-radius: 0.375em;
  border: solid 1px rgba(210,215,217,0.75);
  color: inherit;
  display: block;
  outline: 0;
  padding: 0 1em;
  text-decoration: none;
  width: 100%;
}
input[type="text"]:invalid, input[type="password"]:invalid,
input[type="email"]:invalid, input[type="tel"]:invalid,
input[type="search"]:invalid, input[type="url"]:invalid,
select:invalid, textarea:invalid { box-shadow: none; }

input[type="text"]:focus, input[type="password"]:focus,
input[type="email"]:focus, input[type="tel"]:focus,
input[type="search"]:focus, input[type="url"]:focus,
select:focus, textarea:focus {
  border-color: #48acc6;
  box-shadow: 0 0 0 1px #48acc6;
}

select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' preserveAspectRatio='none' viewBox='0 0 40 40'%3E%3Cpath d='M9.4,12.3l10.4,10.4l10.4-10.4c0.2-0.2,0.5-0.4,0.9-0.4c0.3,0,0.6,0.1,0.9,0.4l3.3,3.3c0.2,0.2,0.4,0.5,0.4,0.9 c0,0.4-0.1,0.6-0.4,0.9L20.7,31.9c-0.2,0.2-0.5,0.4-0.9,0.4c-0.3,0-0.6-0.1-0.9-0.4L4.3,17.3c-0.2-0.2-0.4-0.5-0.4-0.9 c0-0.4,0.1-0.6,0.4-0.9l3.3-3.3c0.2-0.2,0.5-0.4,0.9-0.4S9.1,12.1,9.4,12.3z' fill='rgba(210, 215, 217, 0.75)' /%3E%3C/svg%3E");
  background-size: 1.25em;
  background-repeat: no-repeat;
  background-position: calc(100% - 1em) center;
  height: 2.75em;
  padding-right: 2.75em;
  text-overflow: ellipsis;
}
select option { color: #3d4449; background: #ffffff; }
select:focus::-ms-value { background-color: transparent; }
select::-ms-expand { display: none; }

input[type="text"], input[type="password"], input[type="email"],
input[type="tel"], input[type="search"], input[type="url"], select { height: 2.75em; }
textarea { padding: 0.75em 1em; }

input[type="checkbox"], input[type="radio"] {
  -moz-appearance: none; -webkit-appearance: none; -ms-appearance: none; appearance: none;
  display: block; float: left; margin-right: -2em;
  opacity: 0; width: 1em; z-index: -1;
}
input[type="checkbox"] + label, input[type="radio"] + label {
  text-decoration: none; color: #7f888f; cursor: pointer;
  display: inline-block; font-size: 1em; font-weight: 400;
  padding-left: 2.4em; padding-right: 0.75em; position: relative;
}
input[type="checkbox"] + label:before, input[type="radio"] + label:before {
  -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased;
  display: inline-block; font-style: normal; font-variant: normal;
  text-rendering: auto; line-height: 1; text-transform: none !important;
  font-family: 'Font Awesome 5 Free'; font-weight: 900;
  background: #ffffff; border-radius: 0.375em;
  border: solid 1px rgba(210,215,217,0.75); content: '';
  font-size: 0.8em; height: 2.0625em; left: 0; line-height: 2.0625em;
  position: absolute; text-align: center; top: 0; width: 2.0625em;
}
input[type="checkbox"]:checked + label:before,
input[type="radio"]:checked  + label:before {
  background: #3d4449; border-color: #3d4449; color: #ffffff; content: '\f00c';
}
input[type="checkbox"]:focus + label:before,
input[type="radio"]:focus    + label:before {
  border-color: #48acc6; box-shadow: 0 0 0 1px #48acc6;
}
input[type="checkbox"] + label:before { border-radius: 0.375em; }
input[type="radio"]    + label:before { border-radius: 100%; }

::-webkit-input-placeholder { color: #9fa3a6 !important; opacity: 1.0; }
:-moz-placeholder           { color: #9fa3a6 !important; opacity: 1.0; }
::-moz-placeholder          { color: #9fa3a6 !important; opacity: 1.0; }
:-ms-input-placeholder      { color: #9fa3a6 !important; opacity: 1.0; }

/* ═══════════════════════════════════════════════════════════════
   BUTTON (base)
═══════════════════════════════════════════════════════════════ */
input[type="submit"], input[type="reset"], input[type="button"],
button, .button {
  -moz-appearance: none; -webkit-appearance: none; -ms-appearance: none; appearance: none;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
  background-color: transparent;
  border-radius: 0.375em;
  border: 0;
  box-shadow: inset 0 0 0 2px #48acc6;
  color: #48acc6 !important;
  cursor: pointer;
  display: inline-block;
  font-family: "Indivisible", sans-serif;
  font-size: 0.8em;
  font-weight: 700;
  height: 3.5em;
  letter-spacing: 0.075em;
  line-height: 3.5em;
  padding: 0 2.25em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
input[type="submit"]:hover, input[type="reset"]:hover,
input[type="button"]:hover, button:hover, .button:hover {
  background-color: rgba(245,106,106,0.05);
}
input[type="submit"]:active, input[type="reset"]:active,
input[type="button"]:active, button:active, .button:active {
  background-color: rgba(245,106,106,0.15);
}
.button.primary {
  background-color: #48acc6; box-shadow: none; color: #ffffff !important;
}
.button.primary:hover, .button.primary:active { background-color: #48acc6; }
.button.disabled, .button:disabled,
button.disabled, button:disabled { pointer-events: none; opacity: 0.25; }

/* CTA buttons used across pages */
.primary-btn, .secondary-btn {
  display: inline-block;
  padding: 0.9em 1.6em;
  border-radius: 0.5em;
  font-size: 0.85em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: capitalize;
  text-decoration: none;
  transition: all 0.2s ease;
}
.primary-btn {
  background: #48acc6; color: #ffffff !important;
  border: 2px solid #48acc6; border-bottom: 2px solid #48acc6;
}
.primary-btn:hover { opacity: 0.88; transform: translateY(-2px); }

.secondary-btn {
  background: transparent; color: #48acc6 !important;
  border: 2px solid rgba(72,172,198,0.4); border-bottom: 2px solid rgba(72,172,198,0.4);
}
.secondary-btn:hover {
  background: rgba(72,172,198,0.08);
  border-color: #48acc6; border-bottom-color: #48acc6;
  transform: translateY(-2px);
}

/* Form action buttons */
.submit-btn {
  background: #48acc6;
  color: #ffffff !important;
  border: none; box-shadow: none;
  border-radius: 0.5em;
  font-weight: 700;
  padding: 0 2em;
  height: 3em; line-height: 3em;
  cursor: pointer;
  font-family: "Indivisible", sans-serif;
  font-size: 0.85em;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
  display: inline-block;
}
.submit-btn:hover { opacity: 0.88; background: #48acc6 !important; }

.reset-link {
  background: transparent; color: #aab0b7 !important;
  border: none; box-shadow: none;
  font-size: 0.85em; cursor: pointer;
  font-family: "Open Sans", sans-serif;
  padding: 0; height: auto; line-height: inherit;
  text-transform: none; letter-spacing: 0;
  text-decoration: underline; text-underline-offset: 2px;
}
.reset-link:hover { color: #7f888f !important; background: transparent !important; }

.form-actions { display: flex; align-items: center; gap: 1.5em; }

.form-success {
  display: none;
  background: rgba(72,172,198,0.08);
  border: 1.5px solid rgba(72,172,198,0.3);
  border-radius: 0.5em;
  padding: 1.25em 1.5em;
  color: #3d4449;
  align-items: center;
  gap: 0.75em;
}
.form-success.show { display: flex; }
.form-success i    { font-size: 1.5em; flex-shrink: 0; color: #48acc6; }
.form-success p    { margin: 0; color: #3d4449; }

/* ═══════════════════════════════════════════════════════════════
   FILTER PANEL (trials page + signup form)
═══════════════════════════════════════════════════════════════ */
.filter-panel {
  background: #f5f6f7;
  border: 1px solid rgba(72,172,198,0.2);
  border-radius: 0.5em 0.5em 0.75em 0.75em;
  padding: 2em 2.5em 2.5em;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06), 0 1px 4px rgba(72,172,198,0.08);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25em;
  align-items: start;
}
.filter-panel label {
  display: block;
  font-size: 0.7em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #051b27;
  margin-bottom: 0.5em;
}
.filter-panel select {
  background-color: #ffffff;
  border: 1.5px solid rgba(72,172,198,0.22);
  font-weight: 500;
  color: #3d4449;
}
.filter-panel select:focus {
  border-color: #48acc6;
  box-shadow: 0 0 0 3px rgba(72,172,198,0.12);
  background-color: #ffffff;
}
.filter-panel input[type="email"] {
  background-color: #ffffff;
  border: 1.5px solid rgba(72,172,198,0.22);
}

/* Signup panel overrides grid to flex column */
.signup-panel {
  display: flex !important;
  flex-direction: column;
  gap: 1.25em;
}

/* ═══════════════════════════════════════════════════════════════
   MULTISELECT TAG INPUT
═══════════════════════════════════════════════════════════════ */
.loc-opt {
  padding: 0.65em 1em;
  font-size: 0.95em;
  color: #3d4449;
  cursor: pointer;
  transition: background 0.12s ease;
  display: flex;
  align-items: center;
  gap: 0.6em;
}
.loc-opt:hover { background: rgba(72,172,198,0.07); }
.loc-opt.selected {
  background: rgba(72,172,198,0.1);
  font-weight: 600;
  color: #1a7a93;
}
.loc-opt.selected::before  { content: '✓'; font-size: 0.85em; color: #48acc6; font-weight: 700; }
.loc-opt:not(.selected)::before { content: ''; display: inline-block; width: 0.85em; }

.loc-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  background: rgba(72,172,198,0.12);
  color: #1a7a93;
  border: 1px solid rgba(72,172,198,0.3);
  border-radius: 0.3em;
  padding: 0.18em 0.5em 0.18em 0.6em;
  font-size: 0.82em;
  font-weight: 600;
  white-space: nowrap;
}
.loc-tag button {
  background: none; border: none; box-shadow: none;
  color: #48acc6; cursor: pointer;
  font-size: 1em; line-height: 1; padding: 0;
  height: auto; width: auto; min-width: unset;
  opacity: 0.7; transition: opacity 0.15s ease;
}
.loc-tag button:hover { opacity: 1; background: none !important; }

#multiselect-box:focus-within {
  border-color: #48acc6;
  box-shadow: 0 0 0 3px rgba(72,172,198,0.12);
}

/* ═══════════════════════════════════════════════════════════════
   TRIAL CARDS
═══════════════════════════════════════════════════════════════ */
.trial-list {
  display: flex;
  flex-direction: column;
  gap: 2em;
  width: 100%;
}

/* Carousel variant — cards sit inline */
.trial-carousel {
  display: flex;
  gap: 1.25em;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.5em;
  cursor: grab;
}
.trial-carousel::-webkit-scrollbar { display: none; }
.trial-carousel.dragging { cursor: grabbing; scroll-snap-type: none; }
.trial-carousel .trial-card {
  flex: 0 0 calc(50% - 0.625em);
  min-width: 280px;
  scroll-snap-align: start;
}
@media (max-width: 700px) {
  .trial-carousel .trial-card { flex: 0 0 85%; }
}

.trial-card {
  background: #ffffff;
  border: 1px solid rgba(210,215,217,0.6);
  border-radius: 1em;
  padding: 2em;
  display: flex;
  flex-direction: column;
  gap: 1.25em;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.trial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(72,172,198,0.2);
  border-color: rgba(72,172,198,0.3);
}
.trial-card-header {
  display: flex;
  align-items: center;
  gap: 1em;
  padding-bottom: 1em;
  border-bottom: 3px solid #ddd;
}
.trial-card-header h3 {
  margin: 0;
  font-size: 1.3em;
  color: #3d4449;
  font-weight: 600;
  line-height: 1.3;
}

/* Clinic logo */
.clinic-logo {
  width: 70px; height: 70px;
  min-width: 70px; min-height: 70px;
  border-radius: 50%;
  object-fit: cover; object-position: center;
  border: 2px solid rgba(72,172,198,0.2);
  background: #ffffff;
  flex-shrink: 0;
}

/* ── Clinic colour accents ─────────────────────────────────── */
/* Base logo rule must come FIRST so data-clinic rules override it */
.trial-card[data-clinic="4MCS"] .trial-card-header { border-bottom-color: #027f83; }
.trial-card[data-clinic="4MCS"] .clinic-logo       { border-color: #027f83; box-shadow: 0 0 0 3px rgba(2,127,131,0.1); }

.trial-card[data-clinic="Fortrea"] .trial-card-header { border-bottom-color: #0bc11a; }
.trial-card[data-clinic="Fortrea"] .clinic-logo       { border-color: #0bc11a; box-shadow: 0 0 0 3px rgba(11,193,26,0.1); }

.trial-card[data-clinic="Parexel"] .trial-card-header { border-bottom-color: #840b55; }
.trial-card[data-clinic="Parexel"] .clinic-logo       { border-color: #840b55; box-shadow: 0 0 0 3px rgba(132,11,85,0.1); }

.trial-card[data-clinic="Quotient Sciences"] .trial-card-header { border-bottom-color: #1792fc; }
.trial-card[data-clinic="Quotient Sciences"] .clinic-logo       { border-color: #1792fc; box-shadow: 0 0 0 3px rgba(23,146,252,0.1); }

.trial-card[data-clinic="Trials4Us"] .trial-card-header { border-bottom-color: #f16623; }
.trial-card[data-clinic="Trials4Us"] .clinic-logo       { border-color: #f16623; box-shadow: 0 0 0 3px rgba(241,102,35,0.1); }

.trial-card[data-clinic="MAC Clinical Research"] .trial-card-header { border-bottom-color: #122b47 !important; }
.trial-card[data-clinic="MAC Clinical Research"] .clinic-logo       { border-color: #122b47; box-shadow: 0 0 0 3px rgba(18,43,71,0.1) !important; }

.trial-card[data-clinic="Simbec Orion"] .trial-card-header { border-bottom-color: #92388b !important; }
.trial-card[data-clinic="Simbec Orion"] .clinic-logo       { border-color: #92388b; box-shadow: 0 0 0 3px rgba(146, 56, 139,0.1) !important; }

.trial-card[data-clinic="GSK"] .trial-card-header { border-bottom-color: #ec8a1b !important; }
.trial-card[data-clinic="GSK"] .clinic-logo       { border-color: #ec8a1b; box-shadow: 0 0 0 3px rgba(236,138,27,0.1) !important; }

.trial-card[data-clinic="Celerion"] .trial-card-header { border-bottom-color: #af015a !important; }
.trial-card[data-clinic="Celerion"] .clinic-logo       { border-color: #af015a !important; box-shadow: 0 0 0 3px rgba(175,1,91,0.1) !important; }

.trial-card[data-clinic="FluCamp"] .trial-card-header { border-bottom-color: #0ace9c !important; }
.trial-card[data-clinic="FluCamp"] .clinic-logo       { border-color: #0ace9c !important; box-shadow: 0 0 0 3px rgba(10,206,156,0.1) !important; }

.trial-card[data-clinic="Nucleus Network"] .trial-card-header { border-bottom-color: #002854 !important; }
.trial-card[data-clinic="Nucleus Network"] .clinic-logo       { border-color: #002854 !important; box-shadow: 0 0 0 3px rgba(10,206,156,0.1) !important; }


/* Trial meta pills */
.trial-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75em;
  font-size: 0.9em;
}
.trial-meta span {
  background: rgba(72,172,198,0.1);
  color: #3d4449;
  padding: 0.5em 0.85em;
  border-radius: 0.5em;
  font-weight: 500;
}

/* Trial card body text */
.trial-card p {
  margin: 0;
  color: #696f75;
  line-height: 1.6;
  font-size: 0.95em;
}

/* Trial card CTA link */
.trial-card a {
  display: inline-block;
  margin-top: auto;
  padding: 0.85em 1.75em;
  background: #48acc6;
  color: #fff;
  text-decoration: none;
  border-radius: 0.75em;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(72,172,198,0.2);
  border-bottom: none;
}
.trial-card a:hover {
  background: #3fa0b8;
  box-shadow: 0 4px 12px rgba(72,172,198,0.3);
  transform: translateY(-2px);
  color: #fff !important;
}

/* ═══════════════════════════════════════════════════════════════
   FAQ CARDS
═══════════════════════════════════════════════════════════════ */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-bottom: 3em;
}
.faq-card {
  background: #ffffff;
  border-radius: 0.75em;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.faq-card:hover, .faq-card.active {
  box-shadow: 0 4px 20px rgba(0,0,0,0.13);
  transform: translateY(-2px);
}
.faq-question {
  padding: 1.25em 1.5em;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
  user-select: none;
}
.faq-question-text {
  font-size: 1em;
  font-weight: 600;
  color: #3d4449;
  margin: 0;
}
.faq-icon {
  flex-shrink: 0;
  color: #48acc6;
  font-size: 1em;
  transition: transform 0.3s ease;
}
.faq-card.active .faq-icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer-content {
  padding: 0 1.5em 1.25em 1.5em;
  color: #616f89;
  line-height: 1.7;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 0.95em;
}
.faq-answer-content p { margin: 0.9em 0 0 0; }
.faq-answer-content p:last-child { margin-bottom: 0; }
.faq-answer-content a { color: #48acc6; border-bottom: none; }
.faq-answer-content strong { color: #616f89; }

.faq-category { margin-bottom: 3em; scroll-margin-top: 120px; }
.faq-category-title {
  font-size: 1.4em;
  color: #3d4449;
  margin: 0 0 1.25em 0;
  font-weight: 700;
  padding-left: 0.5em;
  border-left: 4px solid #48acc6;
}

/* FAQ sticky nav (FAQs page) */
.layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
}
.faq-nav {
  position: sticky;
  top: 100px;
  align-self: start;
  padding-left: 0;
}
.faq-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.faq-nav ul li { padding: 0; margin: 0; }
.faq-nav a {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95em;
  color: #3d4449;
  border-bottom: none !important;
  text-decoration: none;
  display: block;
  padding: 0.3em 0;
  transition: color 0.2s ease;
}
.faq-nav a:hover, .faq-nav a.active { color: #48acc6 !important; border-bottom: none !important; }
.faq-nav a.active { font-weight: 700; }

@media (max-width: 780px) {
  .layout { grid-template-columns: 1fr; }
  .faq-nav { position: static; }
}
@media (min-width: 780px) {
  .faq-category { padding-left: 0; } /* remove old vw padding */
}

/* ═══════════════════════════════════════════════════════════════
   HERO CARD (FAQs page banner)
═══════════════════════════════════════════════════════════════ */
.hero-card {
  position: relative;
  border-radius: 1.5em;
  padding: 3em 4em;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  border: 0;
  width: 100%;
  box-sizing: border-box;
  min-height: 30vh;
  overflow: hidden;
  background: rgba(72,173,198,0.09);
}
.hero-card::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("https://trialtrack.co.uk/images/TrialTrackLogo%20Square.png");
  background-size: cover; background-position: center; background-repeat: no-repeat;
  opacity: 0.05; z-index: 0;
}
.hero-card > * { position: relative; z-index: 1; }
@media screen and (max-width: 736px) { .hero-card { padding: 2em 1.75em; } }

/* ═══════════════════════════════════════════════════════════════
   WRAPPER + MAIN LAYOUT
═══════════════════════════════════════════════════════════════ */
#wrapper {
  display: flex;
  flex-direction: row-reverse;
  min-height: 100vh;
}

#main {
  flex-grow: 1;
  flex-shrink: 1;
  width: 100%;
  background: #ffffff; /* white content strip over coloured gutter */
}
#main > .inner {
  padding: 0 6em 0.1em 6em;
  margin: 0 auto;
  max-width: 140em;
  padding-top: 1em;
}
#main > .inner > section {
  padding: 0em 0 4em 0;
  border-top: none;
}
#main > .inner > section:first-of-type { border-top: 0 !important; }

@media screen and (max-width: 1680px) {
  #main > .inner { padding: 0 0em 0.1em 5em; padding-top: 0em; }
  #main > .inner > section { padding: 2em 0 3em 0; }
}
@media screen and (max-width: 1280px) {
  #main > .inner { padding: 0 4em 0.1em 4em; padding-top: 1em; }
  #main > .inner > section { padding: 4em 0 2em 0; }
}
@media screen and (max-width: 736px) {
  #main > .inner { padding: 0 2em 0.1em 2em; padding-top: 1em; }
  #main > .inner > section { padding: 3em 0 1em 0; }
}

/* ═══════════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════════ */
#header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.4em 0;
  border-bottom: solid 5px #48acc6;
  /* Extend teal line over coloured gutters via box-shadow */
  box-shadow:
    0 0px 0 0 #48acc6,
    -100vw 0px 0 0 #48acc6,
    100vw  0px 0 0 #48acc6;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
}

#header .site-logo {
  flex: none;
  text-align: center;
}

#header .site-logo img {
  height: 80px;
  width: auto;
  border: none;
  display: block;
}

@media screen and (max-width: 736px) {
  #header .site-logo img {
    height: 55px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════════════════ */
#sidebar {
  flex-grow: 0;
  flex-shrink: 0;
  transition: margin-left 0.5s ease, box-shadow 0.5s ease;
  background-color: #f5f6f7;
  font-size: 0.9em;
  position: relative;
  width: 26em;
}
#sidebar h2 { font-size: 1.38889em; }
#sidebar > .inner {
  padding: 2.22222em;
  position: relative;
  width: 26em;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
}
#sidebar > .inner > * {
  border-bottom: none;
  margin: 0 0 3.5em 0;
  padding: 0 0 3.5em 0;
}
#sidebar > .inner > * > :last-child { margin-bottom: 0; }
#sidebar > .inner > *:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
#sidebar #footer { margin-top: auto; }

#sidebar .toggle {
  text-decoration: none;
  transition: left 0.5s ease;
  -webkit-tap-highlight-color: rgba(255,255,255,0);
  border: 0;
  display: block;
  height: 7.5em;
  left: 26em;
  line-height: 7.5em;
  outline: 0;
  overflow: hidden;
  position: fixed !important;   /* sticky across ALL screen sizes */
  top: 0 !important;
  z-index: 10001 !important;
  text-align: center;
  text-indent: -15em;
  white-space: nowrap;
  width: 6em;
}
#sidebar .toggle:before {
  -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased;
  display: inline-block; font-style: normal; font-variant: normal;
  text-rendering: auto; line-height: 1; text-transform: none !important;
  font-family: 'Font Awesome 5 Free'; font-weight: 900;
  content: '\f0c9'; font-size: 2rem;
  height: inherit; left: 0; line-height: inherit;
  position: absolute; text-indent: 0; top: 0; width: inherit;
}
#sidebar.inactive { margin-left: -26em; }
#sidebar.inactive .toggle { left: 0 !important; }

@media screen and (max-width: 1680px) {
  #sidebar { width: 24em; }
  #sidebar > .inner { width: 24em; }
  #sidebar .toggle { height: 6.25em; left: 24em; line-height: 6.25em; text-indent: 5em; width: 5em; }
  #sidebar .toggle:before { font-size: 1.5rem; }
  #sidebar.inactive { margin-left: -24em; }
  #sidebar.inactive .toggle { left: 0 !important; }
}
@media screen and (min-width: 1281px) {

  #sidebar > .inner {

    top: 0 !important;

  }

}
@media screen and (max-width: 1280px) {
  #sidebar {
    box-shadow: 0 0 5em 0 rgba(0,0,0,0.175);
    height: 100%; left: 0; position: fixed; top: 0; z-index: 10000;
  }
  #sidebar.inactive { box-shadow: none; }
  #sidebar > .inner {
    -webkit-overflow-scrolling: touch;
    height: 100%; left: 0;
    overflow-x: hidden; overflow-y: auto;
    position: absolute; top: 0;
  }
  #sidebar > .inner:after { content: ''; display: block; height: 4em; width: 100%; }
  #sidebar .toggle { text-indent: 6em; width: 6em; }
  #sidebar .toggle:before { font-size: 1.5rem; margin-left: -0.4375em; }
  body.is-preload #sidebar { display: none; }
}
@media screen and (max-width: 736px) {
  #sidebar .toggle { text-indent: 7.25em; width: 7.25em; }
  #sidebar .toggle:before {
    color: #7f888f; margin-left: -0.0625em;
    margin-top: -0.25em; font-size: 1.1rem; z-index: 1;
  }
  #sidebar .toggle:after {
    background: rgba(222,225,226,0.75);
    border-radius: 0.375em; content: '';
    height: 3.5em; left: 1em; position: absolute; top: 1em; width: 5em;
  }
}

/* Sidebar logo */
#sidebar-logo {
  display: block;
  width: 30%;
  max-width: 120px;
  height: auto;
  border-bottom: none;
  padding-bottom: 0.5em;
}

/* Sidebar menu */
#menu ul {
  -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none;
  color: #3d4449;
  font-family: "Indivisible";
  font-weight: 400;
  letter-spacing: 0.075em;
  list-style: none;
  margin-bottom: 0;
  padding: 0;
  text-transform: none;
}
#menu ul a, #menu ul span {
  border-bottom: 0; color: inherit; cursor: pointer; display: block;
  font-size: 1.2em; padding: 1em 0.75em; line-height: 1.3;
  transition: background-color 0.2s ease, color 0.2s ease;
}
#menu ul a:hover, #menu ul span:hover { color: #48acc6; }

#menu ul li {
  border-radius: 8px;
  padding: 0 0.75em;
  transition: background-color 0.2s ease;
}
#menu ul li:hover { background: rgba(210,215,217,0.35); }

#menu > ul > li {
  border-top: none;
  margin: 0.5em 0 0 0;
  padding: 0.5em 0.75em 0.5em 0.75em;
}
#menu > ul > li:first-child { margin-top: 0; }

#menu > ul > li > ul {
  color: #9fa3a6;
  display: none;
  margin: 0.5em 0 1.5em 0;
  padding-left: 1em;
}
#menu > ul > li > ul a, #menu > ul > li > ul span { font-size: 1.1em; padding: 0.75em 0 0.75em 2.5em; }
#menu > ul > li > ul a:before { font-size: 1.2em; margin-left: -1.5em; margin-right: 8px; }
#menu > ul > li > ul > li { margin: 0.125em 0 0 0; padding: 0.125em 0 0 0; border-radius: 6px; }
#menu > ul > li > ul > li:hover { background: rgba(210,215,217,0.25); }

/* Opener arrows */
#menu ul a.opener, #menu ul span.opener {
  transition: color 0.2s ease-in-out;
  text-decoration: none; -webkit-tap-highlight-color: rgba(255,255,255,0); position: relative;
}
#menu ul a.opener:before, #menu ul span.opener:before {
  -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased;
  display: inline-block; font-style: normal; font-variant: normal;
  text-rendering: auto; line-height: 1; text-transform: none !important;
  font-family: "Font Awesome 6 Free"; font-weight: 900;
  transition: color 0.2s ease-in-out, transform 0.2s ease-in-out;
  color: #9fa3a6; content: '\f078'; position: absolute; right: 0;
}
#menu ul a.opener:hover:before, #menu ul span.opener:hover:before { color: #48acc6; }
#menu ul a.opener.active + ul, #menu ul span.opener.active + ul { display: block; }
#menu ul a.opener.active:before, #menu ul span.opener.active:before { transform: rotate(-180deg); }

/* Add space between icon and text */
#menu ul a[class*="fa-"]::before, #menu ul span[class*="fa-"]::before { margin-right: 0.5em; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
#footer .copyright { color: #9fa3a6; font-size: 0.9em; }
#footer .copyright a { color: inherit; }

.site-footer {
  margin-top: 4em;
  border-top: none !important;
  /* Extend teal line edge-to-edge over coloured gutters */
  box-shadow:
    0 -5px 0 0 #48acc6,
    -100vw -5px 0 0 #48acc6,
    100vw  -5px 0 0 #48acc6;
  background: #ffffff;
  padding: 3em 0 1em 0;
  width: 100%;
}
.site-footer .inner {
  max-width: 160em;
  margin: 0 auto;
  padding: 0 6em;
  display: flex;
  flex-direction: column;
}

.footer-navigation {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8em;
  margin-bottom: 3em;
  padding-bottom: 2em;
  border-bottom: 1px solid rgba(210,215,217,0.75);
}
.footer-column { min-width: 0; }
.footer-column-heading {
  font-size: 1.1em; color: #3d4449; font-weight: 700;
  margin: 0 0 1.25em 0; font-family: "Indivisible", sans-serif;
}
.footer-links-list { list-style: none; padding: 0; margin: 0; }
.footer-links-list li { margin-bottom: 0.85em; }
.footer-links-list a {
  font-size: 0.95em; color: #7f888f; text-decoration: none;
  border-bottom: none; transition: color 0.2s ease; display: inline-block;
}
.footer-links-list a:hover { color: #48acc6; }

.footer-bottom { display: flex; flex-direction: column; }
.footer-disclaimer {
  margin-top: 1em; font-size: 0.75em; line-height: 1.6;
  color: #7f888f; max-width: 90em;
}
.footer-disclaimer strong { font-weight: 600; color: #3d4449; }

/* Footer responsive */
@media screen and (max-width: 1680px) {
  .site-footer .inner { padding: 0 5em; max-width: 140em; }
  .footer-navigation { gap: 6em; }
}
@media screen and (max-width: 1280px) {
  .site-footer .inner { padding: 0 4em; max-width: 120em; }
  .footer-navigation { gap: 4em; }
}
@media screen and (max-width: 980px) {
  .footer-navigation { grid-template-columns: repeat(2, 1fr); gap: 3em 2em; }
}
@media screen and (max-width: 736px) {
  .site-footer .inner { padding: 0 2em; }
  .site-footer { padding: 2em 0 1em 0; }
  .footer-navigation {
    grid-template-columns: 1fr; gap: 1.5em;
    margin-bottom: 2em; padding-bottom: 1.5em;
  }
  .footer-disclaimer { text-align: center; }
}

/* ═══════════════════════════════════════════════════════════════
   IMAGE
═══════════════════════════════════════════════════════════════ */
.image { border-radius: 0.375em; border: 0; display: inline-block; position: relative; }
.image img { border-radius: 0.375em; display: block; }
.image.fit { display: block; margin: 0 0 2em 0; width: 100%; }
.image.fit img { width: 100%; }
a.image { overflow: hidden; }
a.image img { transition: transform 0.2s ease; }
a.image:hover img { transform: scale(1.075); }

/* ═══════════════════════════════════════════════════════════════
   LISTS
═══════════════════════════════════════════════════════════════ */
ol { list-style: decimal; margin: 0 0 2em 0; padding-left: 1.25em; }
ol li { padding-left: 0.25em; }
ul { list-style: disc; margin: 0 0 2em 0; padding-left: 1em; }
ul li { padding-left: 0.5em; }
ul.alt { list-style: none; padding-left: 0; }
ul.alt li { border-top: solid 1px rgba(210,215,217,0.75); padding: 0.5em 0; }
ul.alt li:first-child { border-top: 0; padding-top: 0; }

hr { border: 0; border-bottom: solid 1px rgba(210,215,217,0.75); margin: 2em 0; }

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION (homepage)
═══════════════════════════════════════════════════════════════ */
.hero { padding: 0em 0 2em 0; }
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3em;
}
.hero-text { flex: 1; max-width: 540px; }
.hero-subtext { font-size: 1.2em; color: #616f89; line-height: 1.65; margin: 1em 0; }
.hero-ctas { display: flex; gap: 1em; margin-top: 1.75em; flex-wrap: wrap; }
.hero-image { flex: 1; display: flex; justify-content: center; }
.hero-image img { max-width: 100%; height: auto; max-height: 620px; object-fit: contain; }

@media (max-width: 768px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-ctas { justify-content: center; }
  .hero-image { order: 1; }
}

/* ═══════════════════════════════════════════════════════════════
   SIGNUP LAYOUT (homepage + alerts page)
═══════════════════════════════════════════════════════════════ */
.signup-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3em;
  align-items: center;
}
.signup-image img {
  width: 100%;
  height: auto;
  border-radius: 0.75em;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
@media (max-width: 768px) {
  .signup-container { grid-template-columns: 1fr; }
  .signup-image { order: -1; }
}

/* ═══════════════════════════════════════════════════════════════
   STEPS GRID (homepage how-it-works)
═══════════════════════════════════════════════════════════════ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2em;
  margin-top: 1.5em;
  text-align: center;
}
.step-item img { width: 64px; height: 64px; margin-bottom: 1em; }
.step-item p { font-size: 1rem; line-height: 1.5; }
.steps-highlight strong { color: #48acc6; font-weight: 700; }
@media (max-width: 700px) { .steps-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════════
   MISC SHARED COMPONENTS
═══════════════════════════════════════════════════════════════ */
/* Box */
.box {
  border-radius: 0.375em; border: solid 1px rgba(210,215,217,0.75);
  margin-bottom: 2em; padding: 1.5em;
}

/* Icon */
.icon { text-decoration: none; border-bottom: none; position: relative; }
.icon:before {
  -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased;
  display: inline-block; font-style: normal; font-variant: normal;
  text-rendering: auto; line-height: 1; text-transform: none !important;
  font-family: 'Font Awesome 5 Free'; font-weight: 400;
}
.icon > .label { display: none; }
.icon:before { line-height: inherit; }
.icon.solid:before { font-weight: 900; }
.icon.brands:before { font-family: 'Font Awesome 5 Brands'; }


.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #3197A5; /* Primary brand teal */
  margin-top: 12px;
  margin-bottom: 4px;
}

.step-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1E293B; /* Dark slate header text */
  margin: 4px 0 8px 0;
  line-height: 1.3;
}

.step-item p {
  font-size: 0.925rem;
  color: #64748B; /* Soft slate body text */
  margin: 0;
  line-height: 1.5;
}

/* Container Layout */
.why-take-part-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start; /* Stacks naturally on mobile */
  padding: 3rem 0;
}

/* Desktop 2-Column Split */
@media (min-width: 768px) {
  .why-take-part-section {
    grid-template-columns: 1.2fr 1.5fr;
    gap: 4rem;
    align-items: center; /* Vertically centers left header with right column list */
  }
}

/* Left Column Heading Styling (Matches main h1 tags) */

.why-header p {
  font-size: 1.1rem;
  color: #64748B;
  line-height: 1.5;
  margin: 0;
}

/* Right Column Benefits List (Clean, borderless layout) */
.why-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem; /* Spacious gap between unboxed items */
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1.75rem;
  background: transparent; /* No white background box */
  padding: 0;               /* No inner padding */
  border: none;             /* No borders */
  border-radius: 0;         /* No curved corners */
  box-shadow: none;         /* No drop shadows */
}

/* Restored Image Sizing */
.benefit-icon img {
  width: 64px;              /* Larger icon display size */
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
}

.benefit-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #48acc6;
  margin: 0 0 0.35rem 0;
}

.benefit-content p {
  font-size: 1rem;
  color: #475569;
  margin: 0;
  line-height: 1.5;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: transparent;
  padding: 0;
  border: none;
}

.benefit-cross-svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: #48acc6;        /* TrialTrack Brand Teal */
  stroke-width: 4.5;       /* Adjust stroke thickness here (e.g., 4 to 5) */
  stroke-linecap: square; /* Clean square edge finish */
  flex-shrink: 0;
  margin-top: 6px;
}

/* =========================================================
   CONTAINER & TOPBAR
========================================================= */
.trial-card {
  background: #ffffff;
  border: 1px solid rgba(210,215,217,0.6);
  border-radius: 1em;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.trial-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(72,172,198,0.2);
  border-color: rgba(72,172,198,0.3);
}

.trial-card-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
  padding: 0.65em 1.5em;
  background: #f6f8f9;
  border-bottom: 1px solid rgba(210,215,217,0.6);
  color: #7f888f;
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.trial-status {
  color: #3d4449;
}

.trial-status::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.5em;
  border-radius: 50%;
  background: #48acc6;
}

.trial-added {
  color: #3d4449;
}

.trial-added::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.5em;
  border-radius: 50%;
  background: #48acc6;
}

/* =========================================================
   HEADER & PAYMENT
========================================================= */
.trial-card-header {
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 0em 1.5em 1.25em;
}

.trial-card-header > div:first-of-type {
  flex: 1;
  min-width: 0;
}

.trial-payment {
  flex-shrink: 0;
  text-align: right;
  padding-left: 1em;
}

.trial-payment-label {
  display: block;
  color: #8a9298;
  font-size: 0.65em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.15em;
}

.trial-payment-value {
  display: block;
  color: #48acc6;
  font-size: 1.45em;
  font-weight: 800;
  line-height: 1.1;
}

/* =========================================================
   CONTENT & GRID
========================================================= */
.trial-card-content {
  padding: 0em 1.5em 1.5em;
  display: flex;
  flex-direction: column;
  gap: 1.1em;
}

.trial-card-description {
  margin: 0;
  color: #696f75;
  line-height: 1.5;
  font-size: 0.88em;
}

/* =========================================================
   CTA BUTTON
========================================================= */
.trial-card a {
  display: inline-block;
  margin-top: auto;
  padding: 0.85em 1.5em;
  background: #48acc6;
  color: #ffffff;
  text-decoration: none;
  border-radius: 0.6em;
  font-weight: 700;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(72,172,198,0.2);
}

.trial-card a:hover {
  background: #3fa0b8;
  box-shadow: 0 4px 12px rgba(72,172,198,0.3);
  transform: translateY(-2px);
  color: #ffffff !important;
}

/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 600px) {
  .trial-card-header {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .trial-payment {
    text-align: left;
    padding-left: 0;
    width: 100%;
    margin-top: 0.5em;
  }

  .trial-payment-value {
    font-size: 1.25em;
  }
}

/* ================================================================
   TRIAL META
================================================================ */

/* Generic meta row */
.trial-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
}

/* Generic meta tag */
.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.45em 0.75em;
  background: #f1f5f7;
  border: 1px solid rgba(210, 215, 217, 0.5);
  border-radius: 0.5em;
  font-size: 0.85em;
}

/* Generic meta labels */
.meta-label {
  color: #616f89;
  font-weight: 600;
}

.meta-value {
  color: #616f89;
  font-weight: 450;
}


/* ================================================================
   GENERIC TRIAL CARD HEADER
================================================================ */

.trial-card-header {
  display: flex;
  align-items: center;
}


/* ================================================================
   TRIAL META PILLS
================================================================ */

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.45em 0.75em;
  background: #f1f5f7;
  border: 0;
  border-radius: 0.5em;
  font-size: 0.85em;
  max-width: 100%;
}

.meta-icon {
  width: 14px;
  height: 14px;
  color: #48acc6;
  flex-shrink: 0;
}


/* ================================================================
   TRIAL TOPBAR
================================================================ */

.trial-card-topbar {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  gap: 1em;

  padding: 0.65em 1.25em 0.65em 1.5em;

  background: #f6f8f9;

  border-bottom-right-radius: 0.6em;
  border-bottom: 1px solid rgba(210, 215, 217, 0.6);
  border-right: 1px solid rgba(210, 215, 217, 0.6);

  color: #7f888f;
  font-size: 0.75em;
  font-weight: 600;
  white-space: nowrap;
}


/* ================================================================
   INSTAGRAM LINK
================================================================ */

a.instagram-link {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px;
}

a.instagram-link svg {
  display: block;
  flex-shrink: 0;
}


/* ================================================================
   UNDERLINED HEADING
================================================================ */

.underlined-heading {
  text-decoration: underline;
  text-decoration-color: #48acc6;
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}


/* ================================================================
   HERO
================================================================ */

.hero {
  position: relative;
  z-index: 1;
  padding: 0 0 2em;
}

.hero-band {
  position: relative;
  overflow: hidden;
}

.hero-inner {
  position: relative;

  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);

  align-items: center;

  gap: 3em;

  min-height: 620px;
}


/* ================================================================
   HERO TEXT
================================================================ */

.hero-text {
  position: relative;
  z-index: 20;

  max-width: 540px;

  isolation: isolate;
}

/*
 * Soft feathered readability field.
 * Keeps moving cards readable behind the hero copy without
 * creating a visible rectangular glass panel.
 */
.hero-text::before {
  content: "";

  position: absolute;

  top: -7em;
  right: -9em;
  bottom: -7em;
  left: -8em;

  z-index: 0;
  pointer-events: none;

  background:
    radial-gradient(
      ellipse 65% 55% at 40% 48%,
      rgba(255, 255, 255, 0.78) 0%,
      rgba(255, 255, 255, 0.62) 32%,
      rgba(255, 255, 255, 0.35) 52%,
      rgba(255, 255, 255, 0.12) 70%,
      rgba(255, 255, 255, 0) 90%
    );

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  -webkit-mask-image:
    radial-gradient(
      ellipse 65% 55% at 40% 48%,
      black 0%,
      rgba(0, 0, 0, 0.9) 35%,
      rgba(0, 0, 0, 0.5) 58%,
      rgba(0, 0, 0, 0.15) 75%,
      transparent 92%
    );

  mask-image:
    radial-gradient(
      ellipse 65% 55% at 40% 48%,
      black 0%,
      rgba(0, 0, 0, 0.9) 35%,
      rgba(0, 0, 0, 0.5) 58%,
      rgba(0, 0, 0, 0.15) 75%,
      transparent 92%
    );
}

/* Actual hero content stays above the readability field */
.hero-text > * {
  position: relative;
  z-index: 1;
}

.hero-subtext {
  font-size: 1.2em;
  color: #616f89;
  line-height: 1.65;
  margin: 1em 0;
}


/* ================================================================
   HERO CTAs
================================================================ */

.hero-ctas {
  position: relative;
  z-index: 30;

  display: flex;
  flex-wrap: wrap;
  gap: 1em;

  margin-top: 1.75em;
}


/* ================================================================
   HERO STATS
================================================================ */

.hero-stats {
  position: relative;
  z-index: 20;
}


/* ================================================================
   HERO IMAGE / CARD AREA
================================================================ */

.hero-image {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-width: 0;
  min-height: 620px;

  z-index: 5;
}

/*
 * Kept because this protects against any old/remaining hero image
 * without affecting the card deck.
 */
.hero-image > img {
  max-width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: contain;
}


/* ================================================================
   HERO TRIAL CARD DECK
================================================================ */

#hero-deck {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  z-index: 1;

  overflow: visible;

  isolation: isolate;

  /*
   * The deck itself does not intercept clicks.
   * Individual cards restore pointer-events below.
   */
  pointer-events: none;

  user-select: none;
  -webkit-user-select: none;

  /*
   * Preserve normal vertical page scrolling on touch devices.
   */
  touch-action: pan-y;
}


/* ================================================================
   HERO TRIAL CARDS
================================================================ */

#hero-deck .trial-card {
  position: absolute;

  left: 50%;
  top: 50%;

  width: min(380px, 82%);

  margin: 0;

  /*
   * JavaScript controls transform every animation frame.
   * Do NOT add a CSS transform transition.
   */
  will-change: transform;

  transform-style: preserve-3d;

  cursor: grab;

  pointer-events: auto;

  user-select: none;
  -webkit-user-select: none;

  touch-action: pan-y;

  -webkit-tap-highlight-color: transparent;
}

#hero-deck .trial-card:active {
  cursor: grabbing;
}


/* ================================================================
   HERO CARD HEADER
================================================================ */

#hero-deck .trial-card-header {
  display: grid;

  grid-template-columns: auto minmax(0, 1fr);

  align-items: center;

  column-gap: 12px;
  row-gap: 8px;

  padding: 0 1.5em 1.25em;

  margin: 0;
}

/* Clinic logo */
#hero-deck .trial-card-header .clinic-logo {
  grid-column: 1;
  flex-shrink: 0;
}

/* Clinic name + trial ID */
#hero-deck .trial-card-header > div:nth-child(2) {
  grid-column: 2;
  min-width: 0;
}


/* ================================================================
   HERO CARD PAYMENT
================================================================ */

#hero-deck .trial-payment {
  grid-column: 1 / -1;

  width: auto;
  max-width: none;

  margin-top: 2px;
  padding-left: 0;

  text-align: left;
}

#hero-deck .trial-payment-value {
  display: block;

  line-height: 1.15;

  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}


/* ================================================================
   HERO CARD META
================================================================ */

#hero-deck .trial-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
}

#hero-deck .meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;

  padding: 0.45em 0.75em;

  background: #f1f5f7;
  border: 0;
  border-radius: 0.5em;

  font-size: 0.85em;

  max-width: 100%;
}

#hero-deck .meta-icon {
  width: 14px;
  height: 14px;

  flex-shrink: 0;

  color: #48acc6;
}

#hero-deck .meta-value {
  color: #616f89;
  font-weight: 450;
  min-width: 0;
}


/* ================================================================
   HERO CARD TOPBAR
================================================================ */

#hero-deck .trial-card-topbar {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;

  width: fit-content;
  max-width: 100%;

  gap: 1em;

  padding: 0.65em 1.25em 0.65em 1.5em;

  background: #f6f8f9;

  border-bottom-right-radius: 0.6em;
  border-bottom: 1px solid rgba(210, 215, 217, 0.6);
  border-right: 1px solid rgba(210, 215, 217, 0.6);

  color: #7f888f;

  font-size: 0.75em;
  font-weight: 600;

  white-space: nowrap;
}

/* ================================================================
   TABLET
   769px – 1100px
================================================================ */

@media screen and (max-width: 1100px) and (min-width: 769px) {

  .hero-inner {
    grid-template-columns:
      minmax(0, 0.95fr)
      minmax(360px, 1.05fr);

    gap: 2em;

    min-height: 560px;
  }

  .hero-image {
    min-height: 560px;
  }

  #hero-deck .trial-card {
    width: min(360px, 82%);
  }

  .hero-subtext {
    font-size: 1.1em;
  }
}


/* ================================================================
   MOBILE
   ≤ 768px
================================================================ */

@media screen and (max-width: 768px) {

  .hero {
    padding-bottom: 1.5em;
  }

  /* Stack hero text above card deck */
  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;

    gap: 0;

    min-height: auto;

    text-align: center;
  }


  /* ---------------- TEXT ---------------- */

  .hero-text {
    width: 100%;
    max-width: 620px;

    margin: 0 auto;

    padding: 0 1em;

    z-index: 20;
  }

  .hero-text::before {
    top: -3em;
    right: -3em;
    bottom: -3em;
    left: -3em;

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);

    background:
      radial-gradient(
        ellipse 80% 65% at 50% 50%,
        rgba(255, 255, 255, 0.72) 0%,
        rgba(255, 255, 255, 0.45) 45%,
        rgba(255, 255, 255, 0) 85%
      );

    -webkit-mask-image:
      radial-gradient(
        ellipse 80% 65% at 50% 50%,
        black 0%,
        rgba(0, 0, 0, 0.7) 45%,
        transparent 90%
      );

    mask-image:
      radial-gradient(
        ellipse 80% 65% at 50% 50%,
        black 0%,
        rgba(0, 0, 0, 0.7) 45%,
        transparent 90%
      );
  }

  .hero-subtext {
    font-size: 1.05em;
    line-height: 1.55;

    margin: 0.9em auto;

    max-width: 520px;
  }


  /* ---------------- BUTTONS ---------------- */

  .hero-ctas {
    justify-content: center;

    gap: 0.75em;

    margin-top: 1.4em;
  }

  .hero-ctas > * {
    min-height: 44px;
  }


  /* ---------------- CARD AREA ---------------- */

  .hero-image {
    width: 100%;

    min-height: 500px;
    height: 500px;

    margin-top: 0.5em;

    flex-shrink: 0;
  }

  #hero-deck {
    width: 100%;
    height: 500px;

    touch-action: pan-y;
  }

  #hero-deck .trial-card {
    width: min(340px, 84%);
    max-width: 340px;

    touch-action: pan-y;
  }


  /* ---------------- CARD INTERNALS ---------------- */

  #hero-deck .trial-card-topbar {
    font-size: 0.7em;

    padding:
      0.6em
      1em
      0.6em
      1.15em;

    gap: 0.75em;
  }

  #hero-deck .trial-card-header {
    column-gap: 10px;

    padding:
      0
      1.15em
      1em;
  }

  #hero-deck .trial-card-content {
    padding:
      0
      1.15em
      1.15em;
  }

  #hero-deck .trial-payment-value {
    font-size: 1.3em;
  }

  #hero-deck .meta-pill {
    font-size: 0.78em;

    padding:
      0.4em
      0.6em;
  }

  #hero-deck .meta-icon {
    width: 13px;
    height: 13px;
  }
}


/* ================================================================
   SMALL PHONES
   ≤ 480px
================================================================ */

@media screen and (max-width: 480px) {

  .hero {
    padding-bottom: 1em;
  }

  .hero-text {
    padding: 0 0.75em;
  }

  .hero-subtext {
    font-size: 1em;
    line-height: 1.5;
  }


  /* Full-width stacked CTAs */
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;

    width: min(100%, 360px);

    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas > * {
    width: 100%;
    justify-content: center;
  }


  /* Shorter card area */
  .hero-image {
    min-height: 440px;
    height: 440px;

    margin-top: 0.25em;
  }

  #hero-deck {
    height: 440px;
  }

  #hero-deck .trial-card {
    width: 88%;
    max-width: 330px;
  }


  /* Smaller card internals */
  #hero-deck .trial-card-header {
    column-gap: 8px;

    padding:
      0
      1em
      0.9em;
  }

  #hero-deck .trial-card-content {
    padding:
      0
      1em
      1em;
  }

  #hero-deck .trial-card-topbar {
    font-size: 0.67em;

    padding:
      0.55em
      0.9em
      0.55em
      1em;
  }

  #hero-deck .meta-pill {
    font-size: 0.74em;

    padding:
      0.35em
      0.55em;
  }

  #hero-deck .meta-icon {
    width: 12px;
    height: 12px;
  }
}


/* ================================================================
   VERY SMALL PHONES
   ≤ 380px
================================================================ */

@media screen and (max-width: 380px) {

  .hero-image {
    min-height: 400px;
    height: 400px;
  }

  #hero-deck {
    height: 400px;
  }

  #hero-deck .trial-card {
    width: 90%;
    max-width: 315px;
  }

  #hero-deck .trial-payment-value {
    font-size: 1.2em;
  }
}

/* Disable hover effects on hero cards */
#hero-deck .trial-card:hover {
  transform: inherit;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  border-color: rgba(210,215,217,0.6);
}

/* ═══════════════════════════════════════════════════════════════
   HEADER
   Full-width header inside #main, breaking out of .inner padding
═══════════════════════════════════════════════════════════════ */

#header {
  display: flex;
  justify-content: center;
  align-items: center;

  padding: 0.4em 0;

  border-bottom: solid 5px #48acc6;

  box-shadow:
    0 0 0 0 #48acc6,
    -100vw 0 0 0 #48acc6,
    100vw 0 0 0 #48acc6;

  position: sticky;
  top: 0;
  z-index: 1000;

  background: #ffffff;

  /*
   * .inner has 6em padding on BOTH sides.
   * Pull header out of both sides.
   */
  margin-left: -6em;
  margin-right: -6em;

  /*
   * Compensate for both negative margins.
   */
  width: calc(100% + 12em);

  box-sizing: border-box;
}

#header .site-logo {
  flex: none;
  text-align: center;
}

#header .site-logo img {
  height: 80px;
  width: auto;
  border: none;
  display: block;
}


/* ═══════════════════════════════════════════════════════════════
   ≤ 1680px
═══════════════════════════════════════════════════════════════ */

@media screen and (max-width: 1680px) {

  #header {
    margin-left: -5em;
    margin-right: 0;
    width: calc(100% + 5em);
  }

}


/* ═══════════════════════════════════════════════════════════════
   ≤ 1280px
═══════════════════════════════════════════════════════════════ */

@media screen and (max-width: 1280px) {

  #header {
    margin-left: -4em;
    margin-right: -4em;
    width: calc(100% + 8em);
  }

}


/* ═══════════════════════════════════════════════════════════════
   ≤ 736px
═══════════════════════════════════════════════════════════════ */

@media screen and (max-width: 736px) {

  #header {
    margin-left: -2em;
    margin-right: -2em;
    width: calc(100% + 4em);
  }

  #header .site-logo img {
    height: 55px;
  }

}

/* ═══════════════════════════════════════════════════════════════
   FULL-WIDTH FOOTER
   Extends footer to both viewport edges while remaining inside
   #main > .inner
═══════════════════════════════════════════════════════════════ */

.site-footer {
  width: 100vw !important;
  max-width: none !important;

  /* Cancel the horizontal positioning caused by #main > .inner */
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;

  /* Keep footer content itself properly contained */
  box-sizing: border-box;
}

#main > .inner {
  padding: 0 6em 0.1em 0;  /* left padding removed */
  padding-top: 1em;
}

@media screen and (max-width: 1680px) {
  #main > .inner { padding: 0 0em 0.1em 0; padding-top: 0em; }
}

@media screen and (max-width: 1280px) {
  #main > .inner { padding: 0 4em 0.1em 0; padding-top: 1em; }
}

@media screen and (max-width: 736px) {
  #main > .inner { padding: 0 2em 0.1em 0; padding-top: 1em; }
}

/* Restore left padding inside sections rather than on .inner */
#main > .inner > section {
  padding-left: 6em;
}

@media screen and (max-width: 1680px) {
  #main > .inner > section {
    padding-left: 5em;
  }
}

@media screen and (max-width: 1280px) {
  #main > .inner > section {
    padding-left: 4em;
  }
}

@media screen and (max-width: 736px) {
  #main > .inner > section {
    padding-left: 2em;
  }
}

#header {
  margin-left: 0;
  width: calc(100% + 6em); /* only compensate for right side */
}

@media screen and (max-width: 1680px) {
  #header {
    margin-left: 0;
    width: 100%; /* no right padding at this breakpoint either */
  }
}

@media screen and (max-width: 1280px) {
  #header {
    margin-left: 0;
    width: calc(100% + 4em);
  }
}

@media screen and (max-width: 736px) {
  #header {
    margin-left: 0;
    width: calc(100% + 2em);
  }
}

/* Remove right padding from .inner too */
#main > .inner {
  padding: 0 0 0.1em 0;
  padding-top: 0em;
}

@media screen and (max-width: 1680px) {
  #main > .inner { padding: 0 0 0.1em 0; padding-top: 0em; }
}

@media screen and (max-width: 1280px) {
  #main > .inner { padding: 0 0 0.1em 0; padding-top: 0em; }
}

@media screen and (max-width: 736px) {
  #main > .inner { padding: 0 0 0.1em 0; padding-top: 0em; }
}

#main > .inner > section {
  padding-left: 6em;
  padding-right: 6em;
}

@media screen and (max-width: 1680px) {
  #main > .inner > section {
    padding-left: 5em;
    padding-right: 0em;
  }
}

@media screen and (max-width: 1280px) {
  #main > .inner > section {
    padding-left: 4em;
    padding-right: 4em;
  }
}

@media screen and (max-width: 736px) {
  #main > .inner > section {
    padding-left: 2em;
    padding-right: 2em;
  }
}

#header {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}

@media screen and (max-width: 1680px) {
  #header {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }
}

@media screen and (max-width: 1280px) {
  #header {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }
}

@media screen and (max-width: 736px) {
  #header {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════
   SINGLE-PILE HERO DECK
   Below 650px, only one card pile exists, so the deck container
   should only be as tall as the card pile itself.
═══════════════════════════════════════════════════════════════ */

@media screen and (max-width: 649px) {

  .hero-deck {
    height: 320px !important;
    min-height: 0 !important;
  }

}

/* ============================================================
   SINGLE PILE HERO — 650px AND BELOW
   Reduce excess spacing without collapsing the hero structure
   ============================================================ */

@media screen and (max-width: 650px) {

  .hero-inner {
    height: auto !important;
    min-height: 300px !important;

    /* Keep normal hero spacing */
    gap: 1.5em !important;
  }

  .hero-image {
    height: auto !important;
    min-height: 300px !important;

    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .hero-deck {
    height: 300px !important;
    min-height: 300px !important;

    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

}

.trial-card-header {
    margin-left: 1.5em;
    margin-right: 1.5em;
}

.hero-deck .trial-card .trial-card-header {
    margin-left: 1.5em !important;
    margin-right: 1.5em !important;
}

/* ============================================================
   TRIAL LIST CARDS — RESPONSIVE PAYMENT WRAPPING
   Only applies above 600px
   ============================================================ */

@media screen and (min-width: 601px) {

    #trials-list .trial-card-header {
        display: flex;
        align-items: center;
        min-width: 0;
    }

    #trials-list .trial-card-header > div:nth-child(2) {
        min-width: 0;
        flex: 1 1 auto;
    }

    #trials-list .trial-card .trial-payment {
        min-width: 0;
        flex: 0 1 auto;
        margin-left: 1em;
        max-width: 40%;
    }

    #trials-list .trial-card .trial-payment-value {
        display: block;
        white-space: normal !important;
        overflow-wrap: break-word;
        word-break: normal;
        text-align: right;
        line-height: 1.25;
    }

}

@media (max-width: 736px) {
    #header .site-logo img {
        width: 250px !important;
        height: auto !important;
    }
}

