/* "Background" timeline block, the redesigned Contact section,
   and the footer. */

/* ===== BACKGROUND TIMELINE ===== */
.timeline {
  position: relative;
  max-width: 640px;
  padding-left: 32px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--ink);
}

.timeline-item {
  position: relative;
  padding-bottom: 36px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 5px;
  width: 13px;
  height: 13px;
  background: var(--red);
  border: 3px solid var(--ink);
}

.timeline-year {
  display: inline-block;
  font-family: 'Archivo Black', sans-serif;
  font-size: 12px;
  background: var(--ink);
  color: var(--paper);
  padding: 4px 10px;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.timeline-title {
  font-size: 17px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.timeline-desc {
  font-size: 13px;
  opacity: 0.8;
  max-width: 56ch;
}

/* ===== CONTACT (redesigned) ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-primary {
  display: flex;
  flex-direction: column;
}

.big-link {
  font-size: clamp(18px, 2.6vw, 30px);
  text-decoration: none;
  border-bottom: 4px solid var(--red);
  display: inline-block;
  word-break: break-all;
  line-height: 1.2;
}

.contact-lede {
  font-size: 15px;
  max-width: 46ch;
  opacity: 0.85;
  margin-top: 20px;
}

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.meta-chip {
  border: 2px solid var(--ink);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.meta-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.6;
}

.meta-value {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* channel grid: hairline dividers via background-as-gap trick */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--ink);
  border: 3px solid var(--ink);
}

.channel-tile {
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 24px 20px;
  transition: background .2s ease, color .2s ease;
}

.channel-tile:hover {
  background: var(--ink);
  color: var(--paper);
}

.channel-tile svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.channel-tile .name {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.contact-block {
  max-width: 600px;
}

.contact-list {
  list-style: none;
  margin-top: 30px;
}

.contact-list li {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--ink);
  padding: 12px 0;
  font-size: 13px;
  text-transform: uppercase;
}

.contact-list li:last-child {
  border-bottom: 1px solid var(--ink);
}

footer {
  padding: 20px 48px;
  text-align: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.visitor-count {
  opacity: 0.55;
}

.visitor-count::before {
  content: " — ";
}

@media (max-width:480px) {
  .timeline {
    padding-left: 24px;
  }

  .timeline-item::before {
    left: -24px;
  }
}

/* ============================================
   CREDENTIALS — POLISHED CARD SYSTEM
   ============================================ */

.credentials {
  width: 100%;
  max-width: 100%;
  margin-top: 38px;
  padding: 0;
}

/* SECTION LABEL */
.credentials_title {
  display: flex;
  align-items: center;
  gap: 9px;

  margin: 0 0 14px;

  font-family: 'Archivo Black', sans-serif;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: 0.08em;

  opacity: 0.72;
}

.credentials_title::before {
  content: "";

  width: 8px;
  height: 8px;

  flex-shrink: 0;

  background: var(--red);
  border: 2px solid var(--ink);
}


/* ============================================
   CARD GRID
   ============================================ */

.credentials_list {
  list-style: none;

  display: grid;
  grid-template-columns: 1fr;

  gap: 11px;

  margin: 0;
  padding: 0;
}


/* ============================================
   BASE CARD
   ============================================ */

.credentials_list li {
  position: relative;

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

  align-items: center;

  gap: 15px;

  min-height: 76px;

  padding: 17px 18px;

  background: var(--paper);

  border: 2px solid var(--ink);

  box-shadow: 4px 4px 0 var(--ink);

  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.credentials_list li:hover {
  transform: translate(-2px, -2px);

  box-shadow: 6px 6px 0 var(--red);
}


/* ============================================
   ICON
   ============================================ */

.credentials_list i {
  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  font-size: 19px;
  line-height: 1;

  color: var(--red);

  border: none;
  background: transparent;
}


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

.credentials_text {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 4px;
}

.credentials_name {
  margin: 0;

  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;

  color: var(--ink);
}

.credentials_issuer {
  margin: 0;

  font-size: 9px;
  line-height: 1.3;

  text-transform: uppercase;
  letter-spacing: 0.07em;

  opacity: 0.55;
}


/* ============================================
   VIEW BUTTON
   ============================================ */

.credentials_link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  min-width: 72px;

  padding: 8px 11px;

  border: 2px solid var(--ink);

  background: transparent;

  color: var(--ink);

  font-size: 9px;
  line-height: 1;
  font-weight: 700;

  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;

  transition:
    background 0.16s ease,
    color 0.16s ease,
    transform 0.14s ease,
    box-shadow 0.14s ease;
}

.credentials_link:hover {
  background: var(--ink);
  color: var(--paper);

  transform: translate(-2px, -2px);

  box-shadow: 3px 3px 0 var(--red);
}

.credentials_link:active {
  transform: translate(0, 0);
  box-shadow: none;
}


/* ============================================
   FEATURED CERTIFICATION
   ============================================ */

.credentials:first-of-type .credentials_list li {
  min-height: 82px;

  padding: 18px 20px;

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

.credentials:first-of-type .credentials_list i {
  font-size: 23px;
}

.credentials:first-of-type .credentials_name {
  font-size: 14px;
  line-height: 1.35;
}


/* ============================================
   COURSES & TRAINING
   ============================================ */

.credentials+.credentials {
  margin-top: 38px;
}

.credentials+.credentials .credentials_list {
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 11px;
}


/* Course card */
.credentials+.credentials .credentials_list li {
  display: grid;

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

  grid-template-rows: auto auto;

  align-items: start;

  column-gap: 13px;
  row-gap: 0;

  min-height: 116px;

  padding: 17px 18px;
}


/* Course icon */
.credentials+.credentials .credentials_list i {
  grid-column: 1;
  grid-row: 1;

  margin-top: 1px;

  font-size: 18px;
}


/* Course text */
.credentials+.credentials .credentials_text {
  grid-column: 2;
  grid-row: 1;

  gap: 5px;
}

.credentials+.credentials .credentials_name {
  font-size: 12px;
  line-height: 1.4;
}

.credentials+.credentials .credentials_issuer {
  font-size: 9px;
}


/* Course button */
.credentials+.credentials .credentials_link {
  grid-column: 2;
  grid-row: 2;

  justify-self: start;

  margin-top: 14px;

  min-width: 68px;

  padding: 8px 10px;
}


/* ============================================
   TABLET
   ============================================ */

@media (max-width: 900px) {

  .credentials+.credentials .credentials_list {
    grid-template-columns: 1fr;
  }

  .credentials+.credentials .credentials_list li {
    grid-template-columns: auto minmax(0, 1fr) auto;

    grid-template-rows: auto;

    align-items: center;

    min-height: 78px;
  }

  .credentials+.credentials .credentials_list i {
    grid-column: 1;
    grid-row: 1;
  }

  .credentials+.credentials .credentials_text {
    grid-column: 2;
    grid-row: 1;
  }

  .credentials+.credentials .credentials_link {
    grid-column: 3;
    grid-row: 1;

    margin-top: 0;
  }
}


/* ============================================
   MOBILE
   ============================================ */

@media (max-width: 560px) {

  .credentials {
    margin-top: 30px;
  }

  .credentials_title {
    margin-bottom: 12px;
    font-size: 10px;
  }

  .credentials_list {
    gap: 9px;
  }

  .credentials_list li,
  .credentials:first-of-type .credentials_list li {
    grid-template-columns: auto minmax(0, 1fr);

    min-height: auto;

    padding: 15px;
  }

  .credentials_list i,
  .credentials:first-of-type .credentials_list i {
    font-size: 18px;
  }

  .credentials_name,
  .credentials:first-of-type .credentials_name {
    font-size: 11px;
  }

  .credentials_link {
    grid-column: 2;

    justify-self: start;

    margin-top: 8px;
  }

  .credentials:first-of-type .credentials_link {
    grid-column: 2;
    margin-top: 8px;
  }

  .credentials+.credentials .credentials_list li {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  .credentials+.credentials .credentials_list i {
    grid-column: 1;
    grid-row: 1;
  }

  .credentials+.credentials .credentials_text {
    grid-column: 2;
    grid-row: 1;
  }

  .credentials+.credentials .credentials_link {
    grid-column: 2;
    grid-row: 2;

    margin-top: 9px;
  }
}

/* ============================================
   FAQ + CONTACT FORM — two-column card layout
   below the primary email/meta block. Reuses the
   site's brutalist border/shadow/red-accent
   language throughout.
   ============================================ */
.contact-faq-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
  align-items: stretch;
}

.contact-faq,
.contact-form-card {
  border: 3px solid var(--ink);
  padding: 28px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}

.contact-form-card .contact-form {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-form-card .contact-form_msg {
  margin-top: auto;
}

.contact-faq_title,
.contact-form_title {
  font-family: 'Archivo Black', sans-serif;
  font-size: 22px;
  margin-top: 6px;
  margin-bottom: 6px;
}

.contact-faq_sub {
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 20px;
}

/* ---- FAQ accordion ---- */
.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-top: 1px solid var(--ink);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--ink);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  padding: 14px 0;
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--ink);
  text-align: left;
}

.faq-num {
  font-size: 11px;
  color: var(--red);
  font-weight: 700;
  flex-shrink: 0;
}

.faq-q-text {
  flex: 1;
  font-size: 13px;
  font-weight: 700;
}

.faq-caret {
  flex-shrink: 0;
  font-size: 16px;
  transition: transform .25s ease;
}

.faq-item[data-open="true"] .faq-caret {
  transform: rotate(180deg);
}

.faq-answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s cubic-bezier(.2, .8, .2, 1);
}

.faq-item[data-open="true"] .faq-answer-wrap {
  grid-template-rows: 1fr;
}

.faq-answer-wrap>.faq-answer-inner {
  overflow: hidden;
}

.faq-answer {
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.8;
  padding-bottom: 16px;
  max-width: 48ch;
}

/* ---- Contact form ---- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.6;
}

.form-field input,
.form-field textarea {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  padding: 10px 12px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: -2px;
}

.contact-form_submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid var(--ink);
  background: var(--caution);
  color: var(--ink);
  padding: 12px 20px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .15s ease, box-shadow .15s ease;
}

.contact-form_submit:hover:not(:disabled) {
  background: var(--red);
  color: var(--paper);
  border-color: var(--red);
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--ink);
}

.contact-form_submit:active:not(:disabled) {
  transform: translate(0, 0);
  box-shadow: none;
}

.contact-form_submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.submit-arrow {
  transition: transform .2s ease;
}

.contact-form_submit:hover:not(:disabled) .submit-arrow {
  transform: translateX(3px);
}

.contact-form_msg {
  font-size: 12px;
  min-height: 16px;
}

.contact-form_msg.is-success {
  color: #1FA24B;
}

.contact-form_msg.is-error {
  color: var(--red);
}

@media (max-width:900px) {
  .contact-faq-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width:480px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-faq,
  .contact-form-card {
    padding: 20px;
  }
}