/**
 * RD Investment – Main Additional CSS
 * Supplements style.css with extra utility styles
 * @package rd-investment
 */

/* ============================================
   FORM FEEDBACK
============================================ */
.form-feedback {
  display: none;
}

.form-group input.error,
.form-group textarea.error {
  border-color: #ef4444;
}

/* ============================================
   PROSE — long URLs / unbroken strings on small screens
   (prevents links from overflowing the viewport)
============================================ */
.page-content,
.entry-content,
.legal-doc {
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

.page-content a,
.entry-content a,
.legal-doc a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ============================================
   ACTIVE NAV LINK
============================================ */
.main-navigation ul li a.active {
  color: var(--accent) !important;
}

.main-navigation ul li a.active::after {
  transform: scaleX(1) !important;
}

/* ============================================
   HERO SECTION EXTRA POLISH
============================================ */
.hero-heading .highlight {
  display: block;
  margin-top: 0.06em;
  color: var(--accent);
  text-align: left;
}

/* ============================================
   STATS SECTION – CONTAINER OFFSET
============================================ */
.stats-section .container {
  position: relative;
  top: -70px;
  margin-bottom: -70px;
}

/* ============================================
   SERVICES SECTION HEADER UNDERLINE
============================================ */
.section-title em {
  font-style: normal;
  color: var(--accent);
}

/* ============================================
   CONTACT FORM SUBMIT BUTTON SVG ALIGN
============================================ */
.form-submit .btn svg {
  flex-shrink: 0;
}

/* ============================================
   HERO SECTION — compact layout ≤767px (image strip in theme CSS)
============================================ */
@media (max-width: 767px) {
  .hero-section {
    min-height: auto;
    padding-top: var(--header-height);
  }
}

/* ============================================
   SKIP LINK ACCESSIBILITY
============================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--accent);
  color: var(--white);
  padding: 10px 20px;
  z-index: 9999;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 0 0 8px 0;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
  color: var(--white);
}

/* ============================================
   WORDPRESS ALIGNMENT CLASSES
============================================ */
.alignleft  { float: left;  margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 0 auto 16px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.82rem; color: var(--text-muted); text-align: center; margin-top: 6px; }

/* ============================================
   GALLERY (WordPress default)
============================================ */
.gallery { display: grid; gap: 16px; }
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-item img { width: 100%; border-radius: var(--radius); }

/* ============================================
   BLOG PAGE STYLES (page.php / single.php)
============================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.post-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.post-card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card-body {
  padding: 24px;
}

.post-card-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.post-card-meta time { color: var(--accent); font-weight: 500; }

.post-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.post-card h3 a:hover { color: var(--accent); }

.post-card-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.post-card .read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  font-family: var(--font-heading);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post-card .read-more:hover { gap: 10px; }

/* Single post content styles */
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin: 2rem 0 1rem;
}

.entry-content p { margin-bottom: 1.2rem; line-height: 1.8; }

.entry-content ul,
.entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}

.entry-content ul li { list-style: disc; margin-bottom: 6px; }
.entry-content ol li { list-style: decimal; margin-bottom: 6px; }

.entry-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 16px 24px;
  background: var(--light-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-dark);
}

.entry-content img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.entry-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.entry-content th,
.entry-content td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
}

.entry-content th {
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-heading);
}

.entry-content tr:nth-child(even) td { background: var(--light-bg); }

/* ============================================
   404 PAGE
============================================ */
.error-404 {
  text-align: center;
  padding: 100px 24px;
}

.error-404 .error-code {
  font-size: 8rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--light-gray);
  line-height: 1;
  margin-bottom: 16px;
}

.error-404 h1 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.error-404 p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ============================================
   PAGINATION
============================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* ============================================
   BACK TO TOP TRANSITION
============================================ */
.scroll-top {
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

/* ============================================
   LEGAL PAGE TEMPLATES — Privacy Policy, Terms & Conditions
============================================ */
/*
 * Sticky TOC requires:
 * 1) html/body must NOT use overflow-x: hidden (see style.css reset) — breaks sticky in Chrome/Safari.
 * 2) Grid row must stretch the sidebar column to full row height — align-items:start made the aside
 *    only as tall as the TOC, so sticky had no room to “travel” while scrolling.
 */
html.is-legal-page-html,
html:has(body.is-legal-page),
body.is-legal-page {
  overflow-x: clip !important;
}

@supports not (overflow: clip) {
  html.is-legal-page-html,
  html:has(body.is-legal-page),
  body.is-legal-page {
    overflow-x: visible !important;
  }
}

.legal-page-banner {
  padding: calc(var(--header-height) + 36px) 0 40px;
  text-align: center;
  color: var(--white);
  background: linear-gradient(160deg, var(--primary) 0%, #0a2540 55%, #061a2e 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-page-banner .container {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.legal-page-banner__title {
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 700;
  color: var(--white);
  margin: 0;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.legal-page-banner__title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  margin: 20px auto 10px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

.legal-page-banner__lede {
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 35em;
  margin: 0 auto;
}

.legal-page-banner__lede p {
  margin: 0 0 0.75em;
}

.legal-page-banner__lede p:last-child {
  margin-bottom: 0;
}

.legal-page-banner__lede a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page-banner__lede a:hover {
  color: rgba(255, 255, 255, 0.92);
}

/* ============================================
   CHARTER / COMPLIANCE HERO (Investor Charter, Complaint Table, MITC, etc.)
============================================ */
.charter-hero {
  position: relative;
  background: linear-gradient(180deg, #f4f6f9 0%, #eef1f6 45%, #e8ecf2 100%);
  color: var(--text-dark);
  padding: calc(var(--header-height) + 32px) 0 36px;
  border-bottom: 1px solid var(--light-gray);
  overflow: hidden;
}

.charter-hero__inner {
  max-width: 1220px;
}

.charter-hero__top {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(250px, 32vw, 340px);
  padding-right: min(44vw, 460px);
}

.charter-hero__top::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: min(43vw, 430px);
  height: min(30vw, 350px);
  background-image: var(--charter-hero-feature-image);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right center;
  filter: drop-shadow(0 18px 36px rgba(0, 21, 41, 0.16));
  pointer-events: none;
}

/* Breadcrumb: own row, top-left of hero */
.charter-hero__crumbs {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0 0 10px;
  text-align: left;
}

.charter-hero__crumb {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.charter-hero__crumb:hover {
  color: var(--primary);
}

.charter-hero__crumb--home {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
}

/* Title + subtitle: left column, vertically centered vs. feature image */
.charter-hero__copy {
  position: relative;
  z-index: 1;
  text-align: left;
  min-width: 0;
  max-width: 38rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: auto;
  margin-bottom: auto;
}

.charter-hero__home-icon {
  display: block;
  flex-shrink: 0;
  color: var(--text-muted);
}

.charter-hero__crumb-home-text {
  font-weight: 500;
}

.charter-hero__crumb--current {
  color: var(--text-dark);
  font-weight: 600;
}

.charter-hero__crumb-sep {
  color: #94a3b8;
  font-weight: 500;
  user-select: none;
}

.charter-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
  width: 100%;
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0 0.35ch;
}

.charter-hero__title-primary {
  color: var(--primary);
}

.charter-hero__title-accent {
  color: var(--accent);
}

/* Short description directly under the split title */
.charter-hero__subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-body);
  width: 100%;
  max-width: 38rem;
  margin: 0.35rem 0 0;
  text-align: left;
}

.charter-hero__subtitle-line {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.charter-hero__subtitle p {
  margin: 0 0 0.5em;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-body);
}

.charter-hero__subtitle p:last-child {
  margin-bottom: 0;
}

/* Reference: white cards, navy #1a2b56, line icons left, bold + regular two lines */
.charter-hero__cards {
  --charter-card-navy: #1a2b56;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
  align-items: stretch;
}

.charter-hero__card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  min-height: 88px;
  padding: 18px 20px;
  background: var(--white);
  color: var(--charter-card-navy);
  border: 1px solid #dfe6ee;
  border-radius: 10px;
  box-shadow:
    0 1px 2px rgba(10, 22, 40, 0.04),
    0 4px 14px rgba(10, 22, 40, 0.06);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.charter-hero__card:hover {
  border-color: #d0dae5;
  box-shadow:
    0 1px 3px rgba(10, 22, 40, 0.06),
    0 8px 22px rgba(10, 22, 40, 0.08);
}

.charter-hero__card-icon {
  width: 50px;
  height: 50px;
  background: hsl(223deg 54% 22% / 10%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a2b56;
}
.charter-hero__card-svg {
  display: block;
  width: 40px;
  height: 40px;
}

.charter-hero__card-text {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.charter-hero__card-line {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 14px;
  line-height: 1.38;
  letter-spacing: -0.01em;
  color: var(--charter-card-navy);
}

.charter-hero__card-line--strong {
  font-weight: 700;
}

.charter-hero__card-line--muted {
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--charter-card-navy);
}

.charter-hero__card-link {
  color: inherit;
  font-weight: 400;
  text-decoration: none;
  border: 0;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.charter-hero__card-link:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 1023px) {
  .charter-hero__top {
    min-height: 0;
    padding-right: 0;
  }

  .charter-hero__top::after {
    display: none;
  }

  .charter-hero__crumbs {
    margin-bottom: 8px;
  }

  .charter-hero__copy {
    margin-top: 0;
    margin-bottom: 0;
    max-width: none;
    padding-top: 4px;
  }

  .charter-hero__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
  }

  .charter-hero__card {
    min-height: 0;
    padding: 16px 18px;
    gap: 14px;
  }

  .charter-hero__card-svg {
    width: 36px;
    height: 36px;
  }

  .charter-hero__card-icon {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 559px) {
  .charter-hero {
    padding: calc(var(--header-height) + 22px) 0 28px;
  }

  .charter-hero__cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .charter-hero__card {
    padding: 16px 18px;
    gap: 14px;
  }
}

.legal-page-body {
  background: linear-gradient(180deg, var(--light-bg) 0%, var(--white) 28%);
  overflow: visible;
}

.legal-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: stretch;
  overflow: visible;
}

.legal-page-layout--single {
  grid-template-columns: minmax(0, 1fr);
}

.legal-page-layout--single .legal-doc-shell {
  max-width: 980px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 992px) {
  .legal-page-layout {
    grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
    gap: 48px;
    align-items: stretch;
  }

  .legal-page-layout--single {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  /* Fill grid row height so inner .legal-toc can stick for full scroll of the policy column */
  .legal-sidebar {
    position: relative;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
}

.legal-sidebar.is-empty {
  display: none;
}

.legal-page-layout:has(.legal-sidebar.is-empty) {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 991px) {
  .legal-sidebar {
    display: none;
  }
}

.legal-toc {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 18px;
  box-shadow: var(--shadow-sm);
}

.legal-toc__title {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

.legal-toc__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 4px;
}

@media (min-width: 992px) {
  /* After base nav rules: sticky TOC card + scrollable link list */
  .legal-toc {
    position: -webkit-sticky;
    position: sticky;
    top: calc(var(--header-height) + 24px);
    max-height: calc(100vh - var(--header-height) - 48px);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
  }

  .legal-toc .legal-toc__title {
    flex-shrink: 0;
  }

  .legal-toc__nav {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.legal-toc__nav a {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-body);
  border-left: 3px solid transparent;
  transition: var(--transition);
}

.legal-toc__nav a:hover {
  background: rgba(20, 83, 45, 0.06);
  color: var(--primary);
  border-left-color: var(--accent);
}

.legal-doc-shell {
  min-width: 0;
}

.legal-doc {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-card);
  font-size: 1rem;
  line-height: 1.78;
  color: var(--text-body);
  min-width: 0;
  max-width: 100%;
}

.legal-doc > *:first-child {
  margin-top: 0;
}

.legal-doc > *:last-child {
  margin-bottom: 0;
}

.legal-doc h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.45rem);
  font-weight: 600;
  color: var(--primary);
  margin: 2.25rem 0 1rem;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(20, 83, 45, 0.2);
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.legal-doc h2:first-of-type {
  margin-top: 0;
}

.legal-doc h3 {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 1.75rem 0 0.65rem;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.legal-doc h4 {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 1.35rem 0 0.5rem;
}

.legal-doc p {
  margin: 0 0 1.1rem;
}

.legal-doc ul,
.legal-doc ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
}

.legal-doc ul li {
  list-style: disc;
  margin-bottom: 0.45rem;
}

.legal-doc ol li {
  list-style: decimal;
  margin-bottom: 0.45rem;
}

.legal-doc strong {
  color: var(--text-dark);
  font-weight: 600;
}

.legal-doc a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-doc a:hover {
  color: var(--primary);
}

.legal-doc blockquote {
  margin: 1.5rem 0;
  padding: 16px 20px;
  border-left: 4px solid var(--accent);
  background: var(--light-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.legal-doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.legal-doc th,
.legal-doc td {
  padding: 12px 14px;
  border: 1px solid var(--border);
  text-align: left;
}

.legal-doc th {
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
}

.legal-doc tr:nth-child(even) td {
  background: var(--light-bg);
}

.legal-page-links {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media print {
  .legal-sidebar,
  .site-header,
  .site-footer,
  .scroll-top {
    display: none !important;
  }

  .legal-page-body {
    background: #fff;
  }

  .legal-doc {
    border: none;
    box-shadow: none;
    padding: 0;
  }

  .legal-toc {
    position: static;
    max-height: none;
    display: block;
  }

  .legal-toc__nav {
    flex: none;
    max-height: none;
    overflow: visible;
  }

  .legal-page-banner {
    background: var(--primary);
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .legal-page-banner__lede {
    color: rgba(255, 255, 255, 0.9);
  }

  .charter-hero {
    background: #fff;
    border-bottom: 1px solid var(--border);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .charter-hero__title-primary,
  .charter-hero__title-accent,
  .charter-hero__card-line,
  .charter-hero__card-line--muted {
    color: var(--primary);
  }

  .charter-hero__card {
    box-shadow: none;
    border-color: var(--border);
  }

  .charter-hero__figure {
    max-height: 200px;
    filter: none;
  }
}

/* ============================================
   COMPLAINT TABLE PAGE TEMPLATE
============================================ */
.complaint-doc-shell {
  max-width: 1100px !important;
}

/* Flat article: no legal “card” chrome on Complaint Table page */
.complaint-page .legal-doc.complaint-doc {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.complaint-doc h2,
.complaint-doc h3,
.complaint-doc h4 {
  margin-top: 1.2rem;
}

div.complaint-table-wrap--spaced {
  margin-bottom: 40px;
}

.complaint-table-wrap {
  margin: 1rem 0 1.4rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}

.complaint-table-wrap table {
  width: 100%;
  min-width: 760px;
  margin: 0;
  border-collapse: collapse;
  border: none;
  font-size: 0.92rem;
}

.complaint-table-wrap th,
.complaint-table-wrap td {
  padding: 10px 12px;
  border: 1px solid rgba(0, 21, 41, 0.16);
  vertical-align: top;
}

.complaint-table-wrap th {
  background: linear-gradient(180deg, var(--secondary) 0%, var(--primary) 100%);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
}

.complaint-table-wrap table tr:first-child > th,
.complaint-table-wrap table tr:first-child > td {
  background: var(--primary) !important;
  color: var(--white) !important;
}
.complaint-table-wrap table tr:first-child > td >strong {
  color: var(--white) !important;
}

.complaint-table-wrap tr:nth-child(even) td {
  background: rgba(20, 83, 45, 0.06);
}

.complaint-table-wrap tr:nth-child(odd) td {
  background: var(--white);
}

.complaint-table-wrap tbody tr:hover td {
  background: rgba(20, 83, 45, 0.1);
}

.complaint-table-wrap td strong,
.complaint-table-wrap td b {
  color: var(--primary);
}

@media (max-width: 767px) {
  .complaint-table-wrap {
    border-radius: 10px;
  }

  .complaint-table-wrap table {
    min-width: 680px;
    font-size: 0.86rem;
  }
}
