/* =========================================================
   Top Review Tool — Homepage CSS (plugin)
   ========================================================= */

/* Hide Blocksy page title on this page */
body.trt-homepage-page .hero-section,
body.trt-homepage-page .page-title,
body.trt-homepage-page .ct-page-title,
body.trt-homepage-page .entry-header,
body:has(#trt-home) .hero-section,
body:has(#trt-home) .page-title,
body:has(#trt-home) .ct-page-title,
body:has(#trt-home) .entry-header {
  display: none !important;
}

/* Full-width content area (Blocksy) */
body.trt-homepage-page .ct-container-full,
body.trt-homepage-page article.page > .ct-container,
body.trt-homepage-page .entry-content,
body.trt-homepage-page .ct-container[data-vertical-spacing],
body:has(#trt-home) .ct-container-full,
body:has(#trt-home) article.page > .ct-container,
body:has(#trt-home) .entry-content,
body:has(#trt-home) .ct-container[data-vertical-spacing] {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.trt-homepage-page .entry-content,
body:has(#trt-home) .entry-content {
  margin: 0 !important;
}

#trt-home {
  --trt-primary: #3182CE;
  --trt-primary-hover: #2B6CB0;
  --trt-primary-light: #EBF8FF;
  --trt-primary-muted: #90CDF4;
  --trt-text: #1A202C;
  --trt-text-secondary: #4A5568;
  --trt-text-muted: #718096;
  --trt-bg: #FFFFFF;
  --trt-bg-subtle: #F7FAFC;
  --trt-border: #E2E8F0;
  --trt-radius: 14px;
  --trt-container: 1120px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--trt-text);
  line-height: 1.6;
  width: 100%;
  overflow: hidden;
}

#trt-home *,
#trt-home *::before,
#trt-home *::after {
  box-sizing: border-box;
}

#trt-home a {
  color: var(--trt-primary);
  text-decoration: none !important;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

#trt-home a:hover {
  color: var(--trt-primary-hover);
}

#trt-home .trt-container {
  max-width: var(--trt-container);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

#trt-home h1,
#trt-home h2,
#trt-home h3 {
  font-family: inherit;
  color: var(--trt-text);
  line-height: 1.25;
}

#trt-home p {
  margin: 0;
}

#trt-home button {
  font-family: inherit;
}

#trt-home .trt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  line-height: 1.2;
}

#trt-home .trt-btn-white {
  background: #fff !important;
  color: var(--trt-primary) !important;
}

#trt-home .trt-btn-white:hover {
  background: var(--trt-primary-light) !important;
  color: var(--trt-primary-hover) !important;
}

/* ---------- HERO ---------- */
#trt-home .trt-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(49, 130, 206, 0.22), transparent 60%),
    radial-gradient(ellipse 40% 35% at 85% 20%, rgba(99, 179, 237, 0.16), transparent 55%),
    linear-gradient(180deg, #DCEEFF 0%, #EEF6FF 42%, #FFFFFF 100%);
  padding: 72px 0 52px;
}

#trt-home .trt-hero-text {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 48px;
}

#trt-home .trt-hero h1,
#trt-home .trt-hero-title {
  font-size: clamp(2.15rem, 5vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin: 0 0 18px;
  color: #0B1F33;
  text-wrap: balance;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  #trt-home .trt-hero h1,
  #trt-home .trt-hero-title {
    background: linear-gradient(120deg, #0B1F33 0%, #1A365D 38%, #2B6CB0 72%, #3182CE 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

#trt-home .trt-hero-title::after {
  content: "";
  display: block;
  width: 76px;
  height: 4px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #2B6CB0, #63B3ED);
  box-shadow: 0 4px 14px rgba(49, 130, 206, 0.35);
}

#trt-home .trt-hero-sub {
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  color: #4A5568;
  font-weight: 500;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
}

#trt-home .trt-hero-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

#trt-home .trt-cat {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(26, 54, 93, 0.06);
  border: 1px solid #EDF2F7;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  overflow: hidden;
  margin: 0 !important;
  display: flex !important;
  align-items: stretch;
  min-height: 124px;
}

#trt-home .trt-cat:hover {
  box-shadow: 0 12px 30px rgba(49, 130, 206, 0.14);
  transform: translateY(-2px);
}

#trt-home .trt-cat-main {
  flex: 1 1 48%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 14px;
  border-right: 1px solid var(--trt-border);
  min-width: 0;
  background: #fff;
  color: var(--trt-text) !important;
  text-decoration: none !important;
}

#trt-home .trt-cat-main:hover {
  color: var(--trt-text) !important;
}

#trt-home .trt-cat-main:hover .trt-cat-title {
  color: var(--trt-primary-hover) !important;
}

#trt-home .trt-cat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#trt-home .trt-cat-icon svg {
  width: 40px;
  height: 40px;
  stroke: #2D3748;
}

#trt-home .trt-cat-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--trt-primary) !important;
  line-height: 1.3;
  text-align: center;
  transition: color 0.15s ease;
}

#trt-home .trt-cat-links {
  flex: 1 1 52%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 16px 18px;
  min-width: 0;
  background: #FAFBFC;
}

#trt-home .trt-cat-links a {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #4A5568 !important;
  white-space: nowrap;
  line-height: 1.3;
}

#trt-home .trt-cat-links a:hover {
  color: var(--trt-primary) !important;
}

#trt-home .trt-cat-links a span {
  color: var(--trt-primary);
  font-size: 1rem;
}

/* ---------- REVIEWS ---------- */
#trt-home .trt-section {
  padding: 72px 0;
}

#trt-home .trt-reviews {
  background: #F5F8FB;
}

#trt-home .trt-reviews-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

#trt-home .trt-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--trt-primary);
  margin-bottom: 10px;
}

#trt-home .trt-reviews-header h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

#trt-home .trt-reviews-header p {
  color: var(--trt-text-secondary);
  font-size: 1.05rem;
  max-width: 480px;
  line-height: 1.55;
}

#trt-home .trt-browse-all {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--trt-primary) !important;
  white-space: nowrap;
  margin-top: 6px;
}

#trt-home .trt-filter {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--trt-border);
  border-radius: 999px;
  padding: 6px;
  margin-bottom: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

#trt-home .trt-pill {
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none !important;
  background: transparent !important;
  color: var(--trt-text) !important;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.2;
  box-shadow: none !important;
}

#trt-home .trt-pill:hover {
  color: var(--trt-primary) !important;
}

#trt-home .trt-pill.active {
  background: var(--trt-primary) !important;
  color: #fff !important;
}

#trt-home .trt-pill.active:hover {
  background: var(--trt-primary-hover) !important;
  color: #fff !important;
}

#trt-home .trt-review-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* Must beat display:grid !important so Guides tab stays hidden */
#trt-home .trt-review-grid[hidden],
#trt-home .trt-review-grid.is-panel-hidden {
  display: none !important;
}

#trt-home .trt-review-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(26, 54, 93, 0.07);
  display: flex !important;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  margin: 0 !important;
  border: 1px solid #EDF2F7;
}

#trt-home .trt-review-card:hover {
  box-shadow: 0 14px 34px rgba(49, 130, 206, 0.16);
  transform: translateY(-3px);
}

#trt-home .trt-review-card.is-hidden {
  display: none !important;
}

#trt-home .trt-thumb {
  display: block !important;
  position: relative;
  height: 190px;
  overflow: hidden;
  background: #EDF2F7;
  text-decoration: none !important;
  color: #fff !important;
}

#trt-home .trt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  transition: transform 0.35s ease;
}

#trt-home .trt-review-card:hover .trt-thumb img {
  transform: scale(1.04);
}

#trt-home .trt-thumb:hover {
  color: #fff !important;
}

#trt-home .trt-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 190px;
  background: linear-gradient(135deg, #2a4365 0%, #3182CE 100%);
  font-weight: 700;
}

#trt-home .trt-thumb-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
}

#trt-home .trt-thumb-label {
  font-size: 1.1rem;
  font-weight: 700;
}

#trt-home .trt-review-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 16px;
}

#trt-home .trt-review-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  flex: 1;
  margin: 0 !important;
}

#trt-home .trt-review-card h3 a {
  color: var(--trt-text) !important;
}

#trt-home .trt-review-card h3 a:hover {
  color: var(--trt-primary) !important;
}

#trt-home .trt-read-more {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--trt-primary) !important;
}

/* ---------- METHODOLOGY ---------- */
#trt-home .trt-methodology .trt-section-header {
  text-align: center;
  margin-bottom: 40px;
}

#trt-home .trt-methodology .trt-section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

#trt-home .trt-methodology .trt-section-header p {
  color: var(--trt-text-secondary);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

#trt-home .trt-method-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

#trt-home .trt-method-card {
  background: #fff;
  border: 1px solid var(--trt-border);
  border-radius: var(--trt-radius);
  padding: 28px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  margin: 0 !important;
}

#trt-home .trt-method-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: #BEE3F8;
  line-height: 1;
  margin-bottom: 14px;
}

#trt-home .trt-method-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 10px;
}

#trt-home .trt-method-card p {
  font-size: 0.95rem;
  color: var(--trt-text-muted);
  line-height: 1.6;
}

#trt-home .trt-trust {
  display: flex;
  justify-content: center;
  gap: 56px;
  padding: 28px 32px;
  background: #fff;
  border-radius: var(--trt-radius);
  border: 1px solid var(--trt-border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  flex-wrap: wrap;
}

#trt-home .trt-trust-stat {
  text-align: center;
  min-width: 140px;
}

#trt-home .trt-trust-stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--trt-primary);
  line-height: 1.2;
}

#trt-home .trt-trust-stat span {
  font-size: 0.875rem;
  color: var(--trt-text-muted);
}

/* ---------- FAQ ---------- */
#trt-home .trt-faq {
  background: #F5F8FB;
}

#trt-home .trt-faq-inner {
  display: grid !important;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}

#trt-home .trt-faq-intro h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin: 0 0 12px;
}

#trt-home .trt-faq-intro p {
  color: var(--trt-text-secondary);
}

#trt-home .trt-faq-item {
  border-bottom: 1px solid var(--trt-border);
  padding: 18px 0;
}

#trt-home .trt-faq-item summary {
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--trt-text);
}

#trt-home .trt-faq-item summary::-webkit-details-marker {
  display: none;
}

#trt-home .trt-faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--trt-primary);
  font-weight: 400;
  margin-left: 16px;
}

#trt-home .trt-faq-item[open] summary::after {
  content: '−';
}

#trt-home .trt-faq-item p {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--trt-text-muted);
  line-height: 1.65;
  padding-right: 28px;
}

/* ---------- NEWSLETTER ---------- */
#trt-home .trt-newsletter {
  background: var(--trt-primary);
  padding: 56px 0;
}

#trt-home .trt-newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

#trt-home .trt-newsletter h2 {
  color: #fff !important;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 6px;
}

#trt-home .trt-newsletter p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
}

#trt-home .trt-newsletter-form {
  display: flex;
  gap: 8px;
  flex: 1;
  max-width: 440px;
  min-width: 260px;
}

#trt-home .trt-newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: none !important;
  border-radius: 10px;
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
  box-shadow: none !important;
  background: #fff !important;
  color: var(--trt-text) !important;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  #trt-home .trt-hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #trt-home .trt-review-grid,
  #trt-home .trt-method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #trt-home .trt-faq-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  #trt-home .trt-hero {
    padding: 52px 0 36px;
  }

  #trt-home .trt-hero-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #trt-home .trt-cat {
    min-height: auto;
  }

  #trt-home .trt-cat-main {
    padding: 16px;
  }

  #trt-home .trt-cat-links {
    padding: 12px 14px;
  }

  #trt-home .trt-cat-icon svg {
    width: 34px;
    height: 34px;
  }

  #trt-home .trt-cat-title {
    font-size: 0.9rem;
  }

  #trt-home .trt-section {
    padding: 52px 0;
  }

  #trt-home .trt-reviews-header {
    flex-direction: column;
  }

  #trt-home .trt-filter {
    width: 100%;
    border-radius: 16px;
  }

  #trt-home .trt-pill {
    flex: 1 1 auto;
    text-align: center;
    padding: 10px 12px;
    font-size: 0.8rem;
  }

  #trt-home .trt-thumb {
    height: 150px;
  }

  #trt-home .trt-review-grid,
  #trt-home .trt-method-grid {
    grid-template-columns: 1fr;
  }

  #trt-home .trt-trust {
    flex-direction: column;
    gap: 20px;
  }

  #trt-home .trt-newsletter-inner {
    flex-direction: column;
    text-align: center;
  }

  #trt-home .trt-newsletter-form {
    width: 100%;
    max-width: none;
    flex-direction: column;
  }
}
