:root {
  --tvq-bg: #161b22;
  --tvq-panel: #21262d;
  --tvq-panel-raised: #30363d;
  --tvq-text: #f0f6fc;
  --tvq-muted: #8b949e;
  --tvq-primary: #e50914;
  --tvq-primary-strong: #c10710;
  --tvq-accent: #f5c518;
  --tvq-success: #238636;
  --tvq-danger: #da3633;
  --tvq-border: #30363d;
  --tvq-font-family: Georgia, 'Times New Roman', 'GFS Didot', serif;
}

/* Base font, background, and text colors */
html,
body {
  background-color: var(--tvq-bg) !important;
  color: var(--tvq-text) !important;
  font-family: var(--tvq-font-family) !important;
}

/* Site Title (Keep white and remove underline) */
.wp-block-site-title,
.wp-block-site-title a,
header h1,
h1.entry-title {
  color: #ffffff !important;
  text-decoration: none !important;
  font-family: var(--tvq-font-family) !important;
}

.wp-block-site-title a:hover {
  color: var(--tvq-accent) !important;
}

/* General Headings */
h1, h2, h3, h4, h5, h6,
.wp-block-post-title,
.wp-block-heading {
  color: #ffffff !important;
  font-family: var(--tvq-font-family) !important;
}

/* Footer Section Styling */
footer,
.wp-block-template-part footer,
.wp-site-blocks footer {
  background-color: var(--tvq-bg) !important;
  color: var(--tvq-muted) !important;
  font-family: var(--tvq-font-family) !important;
}

/* Footer Headings ("Privacy", "Social") */
footer h2,
footer h3,
footer h4,
footer strong,
footer .wp-block-heading {
  color: #ffffff !important;
  font-size: 1rem !important;
}

/* Footer Navigation Links */
footer a,
footer .wp-block-navigation a,
footer .wp-block-navigation-item__label {
  color: var(--tvq-muted) !important;
  text-decoration: none !important;
  transition: color 150ms ease;
}

footer a:hover,
footer .wp-block-navigation a:hover {
  color: var(--tvq-accent) !important;
  text-decoration: underline !important;
}

/* Inline content links (only inside article paragraphs) */
.entry-content p a {
  color: #58a6ff !important;
  text-decoration: underline;
}

.entry-content p a:hover {
  color: var(--tvq-accent) !important;
}

/* Main Quiz Hub Wrapper */
.tvq-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2.5rem);
  color: var(--tvq-text);
  font-family: var(--tvq-font-family);
  background: var(--tvq-bg);
  min-height: 100vh;
}

.tvq-wrap h1,
.tvq-wrap h2,
.tvq-wrap h3,
.tvq-wrap p {
  color: inherit;
  font-family: var(--tvq-font-family);
}

.tvq-header {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2d181c 0%, #21262d 65%, #1c2128 100%);
  border: 1px solid #4d2328;
  border-radius: 12px;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.tvq-header::after {
  content: '';
  position: absolute;
  right: -4rem;
  bottom: -5rem;
  width: 14rem;
  height: 14rem;
  border: 2px solid rgba(229, 9, 20, 0.25);
  border-radius: 50%;
  pointer-events: none;
}

.tvq-header h1 {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  color: #ffffff !important;
}

.tvq-header p {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0.75rem 0 0;
  color: #c9d1d9;
  font-size: 1.05rem;
}

.tvq-intro {
  background: var(--tvq-panel);
  border: 1px solid var(--tvq-border);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.tvq-intro h2 {
  margin: 0 0 0.8rem;
  font-size: 1.25rem;
  color: #ffffff;
}

.tvq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.tvq-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.tvq-steps div {
  background: #161b22;
  border-left: 3px solid var(--tvq-primary);
  border-radius: 6px;
  padding: 0.85rem;
}

.tvq-steps strong {
  color: #ffffff;
}

.tvq-steps p {
  margin: 0.35rem 0 0;
  color: var(--tvq-muted);
  line-height: 1.45;
}

.tvq-card {
  display: flex;
  flex-direction: column;
  background: var(--tvq-panel);
  border: 1px solid var(--tvq-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.tvq-card:hover {
  transform: translateY(-4px);
  border-color: #58a6ff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.tvq-thumb {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-bottom: 2px solid var(--tvq-border);
}

.tvq-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.15rem;
}

.tvq-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: #ffffff;
}

.tvq-card p {
  flex: 1;
  margin: 0 0 1.1rem;
  color: var(--tvq-muted);
  line-height: 1.5;
}

.tvq-start,
.tvq-next,
.tvq-option {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.tvq-start,
.tvq-next {
  display: inline-block;
  text-decoration: none;
  background: var(--tvq-primary);
  color: #ffffff;
  font-weight: 600;
}

.tvq-start:hover,
.tvq-next:hover {
  background: var(--tvq-primary-strong);
  transform: translateY(-1px);
}

.tvq-quiz {
  background: var(--tvq-panel);
  border: 1px solid var(--tvq-border);
  border-top: 3px solid var(--tvq-primary);
  border-radius: 10px;
  padding: clamp(1rem, 3vw, 1.75rem);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.tvq-quiz h2 {
  margin-top: 0;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  color: #ffffff;
}

.tvq-description {
  color: var(--tvq-muted) !important;
}

.tvq-progress {
  color: var(--tvq-accent);
  font-weight: 700;
  margin: 1.25rem 0 0.8rem;
}

.tvq-question {
  font-size: 1.25rem;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: #ffffff;
}

.tvq-options {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}

.tvq-option {
  text-align: left;
  background: var(--tvq-panel-raised);
  border-color: #3e4451;
  color: var(--tvq-text);
}

.tvq-option:hover:not(:disabled) {
  border-color: var(--tvq-accent);
  background: #383f4b;
}

.tvq-option:disabled {
  cursor: default;
  opacity: 0.9;
}

.tvq-option.is-correct {
  background: #143d26;
  border-color: var(--tvq-success);
  color: #7ee787;
}

.tvq-option.is-wrong {
  background: #441c1e;
  border-color: var(--tvq-danger);
  color: #ff7b72;
}

.tvq-feedback {
  margin-bottom: 1rem;
  border-left: 4px solid var(--tvq-accent);
  background: #282416;
  border-radius: 6px;
  padding: 0.9rem 1rem;
  color: #f0e6cc;
}

.tvq-feedback p {
  margin: 0;
}

.tvq-gif {
  display: block;
  width: min(100%, 320px);
  margin-top: 0.7rem;
  border-radius: 6px;
}

.tvq-result {
  border: 1px solid var(--tvq-success);
  border-radius: 6px;
  background: #13271d;
  padding: 1.25rem;
}

.tvq-result h3 {
  margin-top: 0;
  color: #7ee787;
}

.tvq-back-link a,
.wp-site-blocks .tvq-back-link a {
  color: var(--tvq-accent) !important;
  text-decoration: none !important;
  font-weight: 600;
  transition: color 150ms ease;
}

.tvq-back-link a:hover,
.wp-site-blocks .tvq-back-link a:hover {
  color: #ffffff !important;
  text-decoration: underline !important;
}

.tvq-ad {
  margin: 1.25rem 0;
  min-height: 110px;
  display: grid;
  place-items: center;
  border: 1px dashed #3e4451;
  border-radius: 8px;
  background: #161b22;
  color: var(--tvq-muted);
  padding: 0.4rem;
}

.tvq-start:focus-visible,
.tvq-next:focus-visible,
.tvq-option:focus-visible,
.tvq-back-link a:focus-visible {
  outline: 2px solid var(--tvq-accent);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .tvq-wrap {
    padding: 0.75rem;
  }

  .tvq-header {
    padding: 1.35rem 1rem;
  }

  .tvq-thumb {
    height: 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tvq-card,
  .tvq-start,
  .tvq-next,
  .tvq-option {
    transition: none;
  }
}

/* Legal & Compliance Pages */
.tvq-compliance-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  color: var(--tvq-text) !important;
  font-family: var(--tvq-font-family) !important;
}

.tvq-compliance-page h2 {
  font-size: 1.3rem !important;
  margin: 1.75rem 0 0.75rem !important;
  color: #ffffff !important;
  padding-left: 12px !important;
  border-left: 4px solid var(--tvq-primary) !important;
  font-weight: 600 !important;
}

.tvq-compliance-page p {
  line-height: 1.65 !important;
  margin: 0 0 1rem !important;
  color: var(--tvq-text) !important;
}

.tvq-compliance-page strong {
  color: #ffffff !important;
}

.tvq-compliance-page ul {
  margin: 0.75rem 0 1.25rem 1.5rem !important;
  padding: 0 !important;
}

.tvq-compliance-page li {
  margin: 0.4rem 0 !important;
  line-height: 1.6 !important;
}

/* Compliance Page Back Button */
.tvq-compliance-page .tvq-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background-color: var(--tvq-panel-raised);
  border: 1px solid var(--tvq-border);
  border-radius: 6px;
  color: var(--tvq-text) !important;
  text-decoration: none !important;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  transition: all 150ms ease;
}

.tvq-compliance-page .tvq-back-btn:hover {
  background-color: var(--tvq-primary);
  border-color: var(--tvq-primary);
  color: #ffffff !important;
  transform: translateX(-3px);
}