.text-block-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.text-block-container img {
  max-width: 100%;
  height: auto;
}

.text-block-image {
  margin: 0;
  padding: 10px;
}

.text-block-title {
  width: 100%;
  text-align: left;
  margin-bottom: 20px;
}

.text-block-title h2 {
  padding: 10px;
  margin: 20px 0 0 0;
  color: var(--gov-green-dark);
  font-family: 'Georgia', serif;
  border-bottom: 2px solid var(--gov-green-primary);
  padding-bottom: 8px;
}

.text-block-bottom {
  margin-top: 20px;
  width: 100%;
  font-size: 20px;
  text-align: left;
}

.text-block-bottom a {
  padding: 10px;
  margin: 20px 0 0 0;
}

.text-block-section {
  max-width: 600px;
  text-align: left;
  display: block;
  padding: 10px;
  font-size: 16px;
  line-height: 1.6;
}

.text-block {
  margin-bottom: 20px;
}

.text-block.text-block-footnote {
  font-size: 13px;
  font-style: italic;
  color: var(--gov-green-muted, #5a6b4f);
  margin-top: -10px;
}

.navigation-button {
  width: 100%;
  text-align: left;
  margin: 20px 0;
}

.navigation-button a {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--gov-green-primary);
  border: none;
  border-radius: 2px;
  text-decoration: none;
  color: white;
  font-size: 14px;
  font-family: 'Georgia', serif;
  white-space: nowrap;
  transition: background-color 0.15s;
}

.navigation-button a:hover {
  background-color: var(--gov-green-bright);
  color: white;
}

.navigation-button a:active {
  background-color: var(--gov-green-dark);
}

@media (max-width: 768px) {
  .navigation-button a {
    font-size: 13px;
    padding: 6px 12px;
    white-space: normal;
  }
}

/* ==================
   Acronym reference panel (floated)
   ================== */
.acronym-panel {
  float: right;
  width: 190px;
  background-color: var(--gov-green-dark);
  padding: 14px 14px 18px;
  margin: 0 0 15px 20px;
  font-family: 'Georgia', serif;
  font-size: 11.5px;
  line-height: 1.85;
  color: #c4e8c0;
  border: 1px solid var(--gov-green-forest);
  border-top: 3px solid var(--gov-yellow);
}

.acronym-panel-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gov-yellow);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gov-green-forest);
}

.acronym-panel .acronym-letter {
  font-weight: bold;
  color: var(--gov-yellow);
  font-size: 14px;
}

/* Section headers for program pages */
.gov-section-header {
  background-color: var(--gov-green-primary);
  color: white;
  font-family: 'Georgia', serif;
  font-size: 13px;
  font-weight: bold;
  padding: 6px 12px;
  letter-spacing: 0.5px;
  border-bottom: 3px solid var(--gov-yellow);
  margin-top: 25px;
  margin-bottom: 15px;
  text-transform: uppercase;
  clear: both;
}

.text-block-section .gov-section-header:first-child {
  margin-top: 0;
}

/* Gov info table */
.gov-info-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Georgia', serif;
  font-size: 14px;
  margin-bottom: 15px;
}

.gov-info-table th {
  padding: 5px 10px;
  border: 1px solid #ccc;
  background-color: #eef7ee;
  text-align: left;
  font-weight: bold;
}

.gov-info-table td {
  padding: 5px 10px;
  border: 1px solid #ccc;
  vertical-align: top;
}

.gov-info-table:not(.gov-info-table-plain) td:first-child {
  font-weight: bold;
  white-space: nowrap;
  width: 160px;
  background-color: #eef7ee;
}

/* Archive cards */
.archive-cards {
  display: flex;
  gap: 16px;
}

.archive-card {
  flex: 1;
  border: 1px solid #d4d4d4;
  border-left: 3px solid #8b5e8b;
  padding: 14px 16px;
  background-color: #fcfcfa;
}

.archive-card-title {
  font-family: 'Georgia', serif;
  font-size: 15px;
  font-weight: bold;
  color: var(--gov-green-dark);
}

.archive-card-meta {
  font-family: 'Georgia', serif;
  font-size: 13px;
  color: #666;
  margin-top: 3px;
}

.archive-cta {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 16px;
  background-color: transparent;
  color: var(--gov-green-primary);
  font-family: 'Georgia', serif;
  font-size: 12px;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 0.5px;
  border: 1.5px solid var(--gov-green-primary);
  transition: all 0.15s;
}

.archive-cta:hover {
  background-color: var(--gov-green-primary);
  color: white;
}

@media (max-width: 768px) {
  .text-block-container {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0 16px;
  }

  .text-block-container .d-flex-center {
    min-width: 0;
    width: 100%;
  }

  .text-block-section {
    max-width: 100%;
    box-sizing: border-box;
  }

  .gov-info-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .gov-info-table {
    font-size: 12px;
  }

  .gov-info-table td:first-child {
    width: auto;
  }

  .gov-info-table th {
    white-space: normal;
  }

  /* Stack key/value tables vertically on mobile (not row-header or scroll variants) */
  .gov-info-table:not(.gov-info-table-rows):not(.gov-info-table-scroll .gov-info-table) tr {
    display: flex;
    flex-direction: column;
  }

  .gov-info-table:not(.gov-info-table-rows):not(.gov-info-table-scroll .gov-info-table) td:first-child {
    white-space: normal;
    border-bottom: none;
    padding-bottom: 2px;
    font-size: 11px;
  }

  .gov-info-table:not(.gov-info-table-rows):not(.gov-info-table-scroll .gov-info-table) td:last-child {
    padding-top: 2px;
  }

  .archive-cards {
    flex-direction: column;
  }

  /* Stack plain tables inside scroll wrappers into cards on mobile */
  .gov-info-table-scroll .gov-info-table-plain tr:first-child {
    display: none;
  }

  .gov-info-table-scroll .gov-info-table-plain tr {
    display: block;
    margin-bottom: 12px;
    border: 1px solid #ccc;
  }

  .gov-info-table-scroll .gov-info-table-plain td {
    display: flex;
    border: none;
    border-bottom: 1px solid #eee;
    white-space: normal !important;
    word-break: break-all;
  }

  .gov-info-table-scroll .gov-info-table-plain td:last-child {
    border-bottom: none;
  }

  .gov-info-table-scroll .gov-info-table-plain td::before {
    content: attr(data-label);
    font-weight: bold;
    min-width: 90px;
    margin-right: 10px;
    flex-shrink: 0;
    font-size: 11px;
    color: #555;
  }

  /* Pricing table: allow text to wrap on mobile */
  .gov-info-table-scroll .gov-info-table td {
    white-space: normal !important;
    word-break: break-word;
  }

  .gov-info-table-scroll .gov-info-table {
    width: 100%;
  }

  .acronym-panel {
    float: none;
    width: auto;
    margin: 0 0 20px 0;
  }
  .acronym-columns {
    display: flex;
    gap: 20px;
  }
  .acronym-col {
    flex: 1;
  }
}

/* Gov notice / callout box */
.gov-notice {
  background-color: #fff8e1;
  border-left: 4px solid var(--gov-yellow);
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.6;
}

.gov-notice-label {
  display: inline-block;
  background-color: var(--gov-yellow);
  color: var(--gov-green-dark);
  font-family: 'Georgia', serif;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 2px 8px;
  margin-bottom: 8px;
}

.gov-notice-label--alert {
  background-color: orangered;
  color: #fff;
  animation: blink-alert 1s step-end infinite;
}

@keyframes blink-alert {
  50% { opacity: 0.15; }
}

/* Funky list – comic sans on a playful background */
.funky-list {
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  list-style: none;
  counter-reset: funky;
  border: 4px solid transparent;
  border-radius: 10px;
  background:
    linear-gradient(var(--gov-blue), var(--gov-blue)) padding-box,
    linear-gradient(135deg, #ffe066 0%, #ffb347 30%, #ff6f91 60%, #c471ed 80%, #78dcfa 100%) border-box;
  padding: 18px 20px;
  margin: 12px 0;
  color: #1a1a1a;
}

.funky-list li {
  display: flex;
  align-items: baseline;
  counter-increment: funky;
  margin-bottom: 8px;
}

.funky-list li:last-child {
  margin-bottom: 0;
}

.funky-list li::before {
  content: counter(funky);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  border: 2px solid #1a1a1a;
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  font-weight: bold;
  font-size: 0.85em;
  margin-right: 10px;
  flex-shrink: 0;
}

/* Shining text effect */
@keyframes shining {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.shining-text {
  background: linear-gradient(
    90deg,
    var(--gov-green-dark) 0%,
    var(--gov-green-dark) 40%,
    var(--gov-yellow) 50%,
    #ffff00 55%,
    var(--gov-yellow) 60%,
    var(--gov-green-dark) 70%,
    var(--gov-green-dark) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shining 4s linear infinite;
  font-weight: bold;
}

/* CTA registration button */
.cta-register {
  display: inline-block;
  padding: 16px 40px;
  background-color: var(--gov-yellow);
  color: var(--gov-green-dark);
  font-family: 'Georgia', serif;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border: 2px solid var(--gov-green-dark);
  letter-spacing: 1px;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.cta-register:hover {
  background-color: var(--gov-green-dark);
  color: var(--gov-yellow);
}

.cta-register:active {
  background-color: var(--gov-green-primary);
  color: white;
}

/* Sold-out sign (unclickable stamp) */
.cta-soldout {
  display: inline-block;
  padding: 16px 40px;
  color: darkred;
  font-family: 'Georgia', serif;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 3px;
  text-transform: uppercase;
  border: 4px double darkred;
  transform: rotate(-2deg);
  user-select: none;
  cursor: default;
}

.cta-soldout-lg {
  font-size: 34px;
  padding: 24px 70px;
  border-width: 6px;
  letter-spacing: 5px;
}

.cta-soldout-sub {
  font-size: 13px;
  font-weight: normal;
  letter-spacing: 1px;
  margin-top: 8px;
}

.cta-soldout-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  background: rgba(255, 255, 255, 0.75);
  pointer-events: none;
  z-index: 2;
}

/* Consent checkbox + gated ticket link */
.consent-checkbox {
  margin-top: 30px;
  padding: 15px;
  background-color: #eef7ee;
  border: 1px solid var(--gov-green-primary);
  font-size: 14px;
  line-height: 1.6;
}

.consent-checkbox input[type="checkbox"] {
  margin-right: 8px;
  vertical-align: top;
  margin-top: 4px;
}

.consent-checkbox label {
  cursor: pointer;
}

#final-ticket-link {
  margin-top: 20px;
}

#final-ticket-link a {
  display: block;
  text-align: center;
  opacity: 0.3;
  pointer-events: none;
  transition: opacity 0.3s;
}

#final-ticket-link a.enabled {
  opacity: 1;
  pointer-events: auto;
}
