.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: var(--space-32);
  align-items: center;
}

.hero-content {
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
  margin-top: var(--space-24);
}

.hero-meta {
  margin-top: var(--space-24);
}

.hero-figure {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.section-header--with-media {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: var(--space-24);
  align-items: center;
}

.section-header-media {
  max-width: 420px;
  justify-self: flex-end;
}

.how-grid .how-card {
  height: 100%;
}

.bookmaker-list {
  list-style: disc;
  padding-left: 1.2rem;
  color: var(--color-text-muted);
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.quote-grid {
  align-items: stretch;
  gap: var(--space-32);
}

.quote-form-card {
  align-self: stretch;
}

.quote-form .form-row {
  margin-bottom: var(--space-16);
}

.form-row-inline {
  display: flex;
  align-items: flex-start;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-8);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.form-checkbox input[type="checkbox"] {
  margin-top: 0.15rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.testimonial-meta {
  margin-top: var(--space-16);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.faq-item {
  padding: 0;
}

.faq-toggle {
  width: 100%;
  padding: var(--space-16) var(--space-20);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: var(--font-size-md);
}

.faq-question {
  text-align: left;
}

.faq-toggle-indicator {
  font-size: var(--font-size-xl);
  color: var(--color-text-muted);
}

.faq-answer {
  padding: 0 var(--space-20) var(--space-16);
  border-top: 1px solid var(--color-border-subtle);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.blog-card {
  height: 100%;
}

@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-header--with-media {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-header-media {
    justify-self: flex-start;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding-top: var(--space-48);
    padding-bottom: var(--space-40);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .quote-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Top Bonus Table Styles */
.section--dark {
  background-color: #0f172a;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.table-container {
  margin-top: var(--space-32);
  overflow-x: auto;
  border-radius: var(--radius-lg);
  background-color: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.top-bonus-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.top-bonus-table thead {
  background-color: #334155;
  border-bottom: 2px solid rgba(148, 163, 184, 0.3);
}

.top-bonus-table th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 600;
  color: #f1f5f9;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.top-bonus-table tbody tr {
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  transition: background-color 0.2s ease;
}

.top-bonus-table tbody tr:hover {
  background-color: rgba(51, 65, 85, 0.5);
}

.top-bonus-table tbody tr:last-child {
  border-bottom: none;
}

.top-bonus-table td {
  padding: 1.25rem 1.5rem;
  color: #e2e8f0;
  vertical-align: middle;
}

.top-bonus-table td:first-child {
  width: 180px;
}

.top-bonus-table td:nth-child(2) {
  width: auto;
  min-width: 280px;
}

.top-bonus-table td:nth-child(3) {
  width: 140px;
  text-align: center;
}

.top-bonus-table td:last-child {
  width: 160px;
  text-align: center;
}

.top-bonus-table td a {
  display: inline-block;
}

.top-bonus-table td img {
  max-width: 140px;
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.2s ease;
}

.top-bonus-table td a:hover img {
  opacity: 0.85;
}

.rating-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.rating-pill__score {
  font-weight: 700;
  color: #fff;
  font-size: 0.9375rem;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Responsive adjustments for table */
@media (max-width: 968px) {
  .table-container {
    border-radius: 0;
    margin-left: calc(-1 * var(--space-20));
    margin-right: calc(-1 * var(--space-20));
    border-left: none;
    border-right: none;
  }

  .top-bonus-table {
    font-size: 0.875rem;
  }

  .top-bonus-table th,
  .top-bonus-table td {
    padding: 1rem;
  }

  .top-bonus-table td:first-child {
    width: 140px;
  }

  .top-bonus-table td img {
    max-width: 110px;
  }
}

@media (max-width: 768px) {
  .top-bonus-table th,
  .top-bonus-table td {
    padding: 0.875rem;
    font-size: 0.8125rem;
  }

  .top-bonus-table td:first-child {
    width: 120px;
  }

  .top-bonus-table td:nth-child(2) {
    min-width: 220px;
  }

  .top-bonus-table td img {
    max-width: 100px;
  }

  .rating-pill {
    padding: 0.375rem 0.75rem;
  }

  .rating-pill__score {
    font-size: 0.875rem;
  }

  .btn-lg {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }
}
