/*
Theme Name: Hestia Child – RockGlobal Trading
Template: hestia
Version: 1.0
Author: RockGlobal Trading
*/

:root {
  --rg-bg: #0b1a2b;
  --rg-surface: #122640;
  --rg-accent: #1f3a5f;
  --rg-highlight: #c6a85b;
  --rg-text: #d9e1ea;
  --rg-muted: #a8b4c2;
  --rg-border: #24374f;
  --rg-link-hover: #d8bd78;
  --rg-max-width: 1200px;
}

body {
  background-color: var(--rg-bg);
  color: #e7ecf3;
  font-size: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  letter-spacing: 0.005em;
}

p {
  margin-bottom: 1.1em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #f1f4f8;
  letter-spacing: 0.01em;
  line-height: 1.25;
  margin-bottom: 0.6em;
}

h1 {
  font-size: 42px;
  line-height: 1.2;
}

h2 {
  font-size: 32px;
  margin-top: 2rem;
}

h3 {
  font-size: 24px;
}

.container,
.container-fluid,
.hestia-container,
.main-raised,
.blog-post .container,
.page-content-wrap {
  max-width: var(--rg-max-width);
}

a {
  color: var(--rg-highlight);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--rg-link-hover);
  text-decoration: underline;
}

.btn,
button,
input[type="button"],
input[type="submit"],
.wp-block-button__link {
  background-color: var(--rg-accent);
  border: 1px solid var(--rg-border);
  color: #f7f9fb;
  border-radius: 2px;
  padding: 0.65rem 1.25rem;
  font-weight: 600;
  text-transform: none;
  box-shadow: none;
}

.btn:hover,
.btn:focus,
button:hover,
button:focus,
input[type="button"]:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
  background-color: #284a76;
  color: #ffffff;
}

.rg-disclosure-bar {
  background: #0f2136;
  border-bottom: 1px solid var(--rg-border);
  color: var(--rg-muted);
  font-size: 0.78rem;
  line-height: 1.4;
  padding: 0.5rem 0;
  text-align: center;
}

.rg-disclosure-bar .container {
  max-width: var(--rg-max-width);
}

.card,
.hestia-blog-post,
.woocommerce ul.products li.product,
.wp-block-group.is-style-card {
  background: var(--rg-surface);
  border: 1px solid var(--rg-border);
  border-radius: 4px;
  box-shadow: none;
}

.site-footer,
.rg-site-footer {
  background: #091525;
  border-top: 1px solid var(--rg-border);
  color: var(--rg-text);
  font-size: 0.93rem;
  padding: 3rem 0 1.75rem;
}

.site-footer p,
.site-footer li {
  font-size: 16px;
  line-height: 1.6;
}

.navbar .navbar-nav > li > a,
.navbar .navbar-nav li a,
.hestia-nav-bar .navbar-nav > li > a {
  font-size: 16px;
}

.rg-footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rg-footer-col h3 {
  color: #f0f4f9;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.rg-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rg-footer-col li {
  margin-bottom: 0.45rem;
}

.rg-footer-compliance {
  border-top: 1px solid var(--rg-border);
  color: var(--rg-muted);
  font-size: 0.84rem;
  margin-top: 1.75rem;
  padding-top: 1.15rem;
}

@media (max-width: 991px) {
  .rg-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    font-size: 17px;
  }

  .rg-footer-grid {
    grid-template-columns: 1fr;
  }

  .rg-disclosure-bar {
    font-size: 0.74rem;
    padding: 0.45rem 0;
  }
}

/* Tools CPT layout */
.rg-section-space {
  margin-bottom: 2rem;
}

.rg-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.rg-tool-card {
  background: linear-gradient(145deg, rgba(18, 38, 64, 0.92), rgba(13, 30, 50, 0.95));
  border: 1px solid rgba(198, 168, 91, 0.18);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease, box-shadow 220ms ease, border-color 200ms ease;
}

.rg-tool-card,
.rg-tool-card p {
  font-size: 16px;
}

.rg-tool-card:hover,
.rg-tool-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(198, 168, 91, 0.45);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.24);
}

.rg-tool-card__thumbnail img,
.rg-tool-card__thumbnail-placeholder {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: linear-gradient(130deg, #102238, #153458);
}

.rg-tool-card__meta {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.7rem;
}

.rg-tool-card__label {
  font-size: 0.67rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rg-muted);
}

.rg-tool-card__category {
  border: 1px solid rgba(198, 168, 91, 0.22);
  border-radius: 999px;
  font-size: 0.67rem;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  text-transform: uppercase;
}

.rg-tool-card__content {
  padding: 1rem;
}

.rg-tool-card__title {
  font-size: 1.1rem;
  margin: 0 0 0.6rem;
}

.rg-tool-card__excerpt {
  color: var(--rg-muted);
  font-size: 16px;
  margin: 0 0 0.75rem;
}

.rg-tool-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.rg-tool-badge {
  border: 1px solid rgba(198, 168, 91, 0.3);
  background: rgba(11, 26, 43, 0.75);
  color: #d6deea;
  border-radius: 2px;
  padding: 0.2rem 0.5rem;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rg-tool-card__button {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
}

.rg-compliance-notice {
  background: #0f2136;
  border: 1px solid var(--rg-border);
  padding: 1rem;
}

@media (max-width: 991px) {
  .rg-platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rg-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .rg-platform-grid,
  .rg-tool-preview-grid,
  .rg-tool-grid {
    grid-template-columns: 1fr;
  }
}

/* Core page templates */
.rg-page-template {
  padding: 2rem 0 3rem;
}

.rg-hero {
  background: linear-gradient(145deg, rgba(12, 31, 50, 0.94), rgba(9, 23, 38, 0.98));
  border: 1px solid rgba(198, 168, 91, 0.22);
  border-radius: 18px;
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
}

.rg-hero::before,
.rg-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.rg-hero::before {
  inset: -40% -15% auto;
  height: 75%;
  background: repeating-linear-gradient(
    100deg,
    rgba(198, 168, 91, 0.06) 0,
    rgba(198, 168, 91, 0.06) 1px,
    transparent 1px,
    transparent 14px
  );
  animation: rg-chart-pan 14s linear infinite;
}

.rg-hero::after {
  inset: auto -5% -30% auto;
  width: 56%;
  height: 52%;
  background: radial-gradient(circle, rgba(198, 168, 91, 0.2), transparent 64%);
}

.rg-hero > * {
  position: relative;
  z-index: 1;
}

.rg-hero h1 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  max-width: 15ch;
}

.rg-glass-panel {
  background: linear-gradient(140deg, rgba(28, 52, 82, 0.44), rgba(14, 30, 47, 0.66));
  border: 1px solid rgba(198, 168, 91, 0.23);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 14px 30px rgba(2, 10, 17, 0.34);
  backdrop-filter: blur(8px);
}

.rg-platform-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rg-platform-card {
  padding: 1.1rem;
}

.rg-platform-logo {
  align-items: center;
  background: rgba(11, 26, 43, 0.9);
  border: 1px solid rgba(198, 168, 91, 0.28);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 700;
  height: 34px;
  justify-content: center;
  letter-spacing: 0.08em;
  margin-bottom: 0.55rem;
  min-width: 34px;
  padding: 0 0.7rem;
}

.rg-tool-preview-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rg-tool-preview {
  padding: 1rem;
}

.rg-tool-preview__image {
  aspect-ratio: 16/9;
  background: linear-gradient(140deg, rgba(18, 38, 64, 0.9), rgba(14, 31, 52, 0.5));
  border: 1px dashed rgba(198, 168, 91, 0.42);
  border-radius: 12px;
  margin-bottom: 0.8rem;
}

.rg-hero__actions,
.rg-cta-strip__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.rg-tier-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rg-tier-card {
  background: var(--rg-surface);
  border: 1px solid var(--rg-border);
  padding: 1rem;
}

.rg-tier-price {
  color: var(--rg-highlight);
  font-weight: 600;
}

.rg-tier-table {
  border-collapse: collapse;
  width: 100%;
}

.rg-tier-table th,
.rg-tier-table td {
  border: 1px solid var(--rg-border);
  padding: 0.7rem;
  text-align: left;
}

.rg-tier-table thead th {
  background: #102238;
}

.rg-faq-list {
  display: grid;
  gap: 0.75rem;
}

.rg-faq-item {
  border: 1px solid var(--rg-border);
  background: #0f2136;
  padding: 0.75rem;
}

.rg-faq-question {
  cursor: pointer;
  font-weight: 600;
}

.rg-cta-strip {
  border: 1px solid rgba(198, 168, 91, 0.35);
  background: radial-gradient(circle at 80% 10%, rgba(198, 168, 91, 0.18), transparent 35%), linear-gradient(135deg, rgba(31, 58, 95, 0.86), rgba(12, 31, 50, 0.95));
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 0 24px rgba(198, 168, 91, 0.16);
  animation: rg-cta-glow 6s ease-in-out infinite;
}

.rg-legal-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rg-legal-card {
  border: 1px solid var(--rg-border);
  background: var(--rg-surface);
  color: var(--rg-text);
  padding: 0.9rem;
}

.rg-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.rg-form input[type="text"],
.rg-form input[type="email"],
.rg-form input[type="url"],
.rg-form textarea {
  width: 100%;
  background: #0f2136;
  border: 1px solid var(--rg-border);
  color: var(--rg-text);
  padding: 0.6rem;
}

.rg-honeypot {
  position: absolute;
  left: -9999px;
}

.rg-form-message {
  border: 1px solid var(--rg-border);
  padding: 0.75rem;
}

.rg-form-message--success {
  border-color: #2f7a3b;
}

.rg-form-message--error {
  border-color: #aa3b3b;
}

@media (max-width: 767px) {
  .rg-tier-grid,
  .rg-legal-grid {
    grid-template-columns: 1fr;
  }
}

/* Blog system */
.rg-blog-single {
  padding: 2rem 0 3rem;
}

.rg-blog-article {
  max-width: 920px;
  margin: 0 auto;
}

.rg-blog-article__header {
  border-bottom: 1px solid var(--rg-border);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.rg-blog-article__category,
.rg-blog-article__meta {
  color: var(--rg-muted);
  font-size: 0.9rem;
  margin: 0.2rem 0;
}

.rg-blog-article__intro {
  color: var(--rg-muted);
  margin-bottom: 1rem;
}

.rg-post-toc {
  background: rgba(12, 30, 49, 0.85);
  border: 1px solid rgba(198, 168, 91, 0.25);
  border-radius: 12px;
  margin: 1rem 0 1.25rem;
  padding: 1rem;
}

.rg-post-toc__title {
  font-size: 1rem;
  margin: 0 0 0.6rem;
}

.rg-post-toc__list {
  margin: 0;
  padding-left: 1.2rem;
}

.rg-blog-recommended-next {
  background: #0f2136;
  border: 1px solid var(--rg-border);
  border-left: 3px solid var(--rg-highlight);
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
}

.rg-blog-recommended-next h2 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.rg-blog-recommended-next p {
  margin: 0 0 0.5rem;
}

.rg-blog-recommended-next ul {
  margin: 0;
  padding-left: 1.2rem;
}

.rg-blog-cta-strip {
  margin-top: 1.5rem;
  background: #0f2136;
  border: 1px solid var(--rg-border);
  padding: 1rem 1.1rem;
}

.rg-blog-cta-strip__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.7rem;
}

.rg-post-related {
  margin-top: 1.5rem;
}

.rg-post-related__grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rg-post-related__card {
  background: var(--rg-surface);
  border: 1px solid var(--rg-border);
  padding: 0.9rem;
}

.rg-post-related__meta {
  color: var(--rg-muted);
  font-size: 0.84rem;
  margin: 0;
}

.rg-post-faq {
  margin-top: 1.5rem;
}

@media (max-width: 767px) {
  .rg-post-related__grid {
    grid-template-columns: 1fr;
  }
}


.entry-content blockquote {
  margin: 1.35rem 0;
  border-left: 3px solid var(--rg-highlight);
  background: rgba(15, 33, 54, 0.8);
  padding: 1rem 1.2rem;
}

.entry-content pre,
.entry-content code {
  background: rgba(8, 19, 32, 0.95);
  border: 1px solid rgba(198, 168, 91, 0.2);
  border-radius: 8px;
}

.entry-content pre {
  overflow-x: auto;
  padding: 0.95rem;
}

.entry-content code {
  padding: 0.12rem 0.35rem;
}

.entry-content pre code {
  border: 0;
  padding: 0;
}

.rg-tool-hero {
  border-radius: 16px;
  border: 1px solid rgba(198, 168, 91, 0.28);
  background: linear-gradient(140deg, rgba(17, 37, 61, 0.9), rgba(11, 25, 41, 0.96));
  padding: 1.4rem;
}

.rg-install-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: rg-steps;
}

.rg-install-steps li {
  background: rgba(15, 33, 54, 0.8);
  border: 1px solid var(--rg-border);
  border-radius: 10px;
  counter-increment: rg-steps;
  margin-bottom: 0.7rem;
  padding: 0.75rem 0.85rem 0.75rem 2.7rem;
  position: relative;
}

.rg-install-steps li::before {
  content: counter(rg-steps);
  position: absolute;
  left: 0.8rem;
  top: 0.68rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--rg-highlight);
  color: #0b1a2b;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.rg-download-panel {
  padding: 1.2rem;
}

/* Membership UX */
.rg-member-nav {
  background: #0d1f33;
  border-bottom: 1px solid var(--rg-border);
  font-size: 0.82rem;
}

.rg-member-nav__list {
  list-style: none;
  margin: 0;
  padding: 0.45rem 0;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.rg-member-nav__list a {
  color: var(--rg-muted);
  font-weight: 500;
}

.rg-member-nav__list a:hover,
.rg-member-nav__list a:focus {
  color: #eef3fa;
  text-decoration: none;
}

.rg-member-gate,
.rg-tool-access {
  background: #0f2136;
  border: 1px solid var(--rg-border);
  padding: 1rem 1.1rem;
}

.rg-member-content {
  border-left: 2px solid var(--rg-highlight);
  padding-left: 0.95rem;
}

.rg-button--member,
.rg-download-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-right: 0.55rem;
  margin-bottom: 0.55rem;
}

.rg-download-type {
  border: 1px solid var(--rg-border);
  background: #102238;
  border-radius: 2px;
  color: var(--rg-muted);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  padding: 0.1rem 0.36rem;
}

.rg-tool-access__downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.rg-member-page__links ul {
  margin: 0;
  padding-left: 1.1rem;
}

@media (max-width: 768px) {
  .rg-member-nav__list {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.7rem;
  }
}

/* White-label enquiry form */
.rg-whitelabel-form {
  display: grid;
  gap: 0.85rem;
  max-width: 760px;
}

.rg-whitelabel-form p {
  margin: 0;
}

.rg-whitelabel-form .rg-form-consent label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 500;
}

.rg-form-message {
  background: #0f2136;
  margin: 0 0 1rem;
}

.rg-form-message--success {
  color: #b8e8c0;
}

.rg-form-message--error {
  color: #f0bcbc;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 12px;
  z-index: 10000;
  background: #ffffff;
  color: #0b1a2b;
  padding: 0.5rem 0.75rem;
  border-radius: 3px;
  font-weight: 600;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 10px;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--rg-highlight);
  outline-offset: 2px;
}

/* Primary navigation */
.rg-site-header {
  background: #0b1a2b;
  border-bottom: 1px solid var(--rg-border);
  position: relative;
  z-index: 50;
}

.rg-site-header__inner {
  align-items: center;
  display: flex;
  gap: 1.25rem;
  justify-content: space-between;
  min-height: 74px;
}

.rg-site-branding .custom-logo-link,
.rg-site-branding .custom-logo {
  display: block;
  max-height: 40px;
  width: auto;
}

.rg-site-title {
  color: #f1f4f8;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.rg-primary-menu,
.rg-primary-menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rg-primary-menu {
  align-items: center;
  display: flex;
  gap: 0.2rem;
}

.rg-primary-menu > .menu-item > a,
.rg-submenu-toggle {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #d9e1ea;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.8rem 0.85rem;
  text-decoration: none;
}

.rg-primary-menu > .menu-item.current-menu-item > a,
.rg-primary-menu > .menu-item.current-menu-ancestor > a,
.rg-primary-menu > .menu-item > a:hover,
.rg-primary-menu > .menu-item > a:focus,
.rg-submenu-toggle:hover,
.rg-submenu-toggle:focus {
  border-bottom-color: var(--rg-highlight);
  color: #fff;
  text-decoration: none;
}

.rg-primary-menu .menu-item-has-children,
.rg-primary-menu .rg-has-submenu {
  position: relative;
}

.rg-primary-menu .sub-menu {
  background: #0f2136;
  border: 1px solid var(--rg-border);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  display: none;
  left: 0;
  min-width: 220px;
  padding: 0.4rem 0;
  position: absolute;
  top: calc(100% + 2px);
}

.rg-primary-menu .menu-item-has-children:focus-within > .sub-menu,
.rg-primary-menu .menu-item-has-children:hover > .sub-menu,
.rg-primary-menu .rg-has-submenu:focus-within > .sub-menu,
.rg-primary-menu .rg-has-submenu:hover > .sub-menu,
.rg-primary-menu .submenu-open > .sub-menu {
  display: block;
}

.rg-primary-menu .sub-menu a {
  color: var(--rg-text);
  display: block;
  padding: 0.52rem 0.85rem;
}

.rg-primary-menu .sub-menu a:hover,
.rg-primary-menu .sub-menu a:focus {
  background: rgba(198, 168, 91, 0.12);
  color: #fff;
  text-decoration: none;
}

.rg-mobile-nav-toggle {
  display: none;
}

.rg-primary-menu a:focus,
.rg-submenu-toggle:focus,
.rg-mobile-nav-toggle:focus {
  outline: 2px solid var(--rg-highlight);
  outline-offset: 2px;
}

@media (max-width: 991px) {
  .rg-disclosure-bar {
    position: relative;
    z-index: 55;
  }

  .rg-mobile-nav-toggle {
    align-items: center;
    background: transparent;
    border: 1px solid var(--rg-border);
    border-radius: 2px;
    color: var(--rg-text);
    display: inline-flex;
    height: 38px;
    justify-content: center;
    margin-left: auto;
    width: 46px;
  }

  .rg-mobile-nav-toggle__icon,
  .rg-mobile-nav-toggle__icon::before,
  .rg-mobile-nav-toggle__icon::after {
    background: currentColor;
    content: "";
    display: block;
    height: 2px;
    position: absolute;
    transition: transform 0.2s ease;
    width: 18px;
  }

  .rg-mobile-nav-toggle__icon {
    position: relative;
  }

  .rg-mobile-nav-toggle__icon::before {
    transform: translateY(-6px);
  }

  .rg-mobile-nav-toggle__icon::after {
    transform: translateY(6px);
  }

  .rg-nav-primary {
    background: #0f2136;
    border: 1px solid var(--rg-border);
    display: none;
    left: 0;
    margin-top: 0.5rem;
    position: absolute;
    right: 0;
    top: 100%;
  }

  .rg-nav-primary.is-open {
    display: block;
  }

  .rg-primary-menu {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem;
  }

  .rg-primary-menu > .menu-item > a,
  .rg-submenu-toggle {
    justify-content: space-between;
    padding: 0.8rem;
    width: 100%;
  }

  .rg-primary-menu .sub-menu {
    border: 0;
    box-shadow: none;
    display: none;
    margin: 0;
    min-width: auto;
    padding: 0.2rem 0 0.4rem 0.8rem;
    position: static;
  }

  .rg-primary-menu .submenu-open > .sub-menu {
    display: block;
  }
}

/* Tool SEO/internal-link helper components */
.rg-related-tools,
.rg-context-links {
  background: #0f2136;
  border: 1px solid var(--rg-border);
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
}

.rg-related-tools__list {
  display: grid;
  gap: 0.55rem;
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
}

.rg-context-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.rg-context-links__item {
  border-bottom: 1px solid transparent;
  color: var(--rg-highlight);
  font-weight: 600;
  text-decoration: none;
}

.rg-context-links__item:hover,
.rg-context-links__item:focus {
  border-bottom-color: var(--rg-link-hover);
  color: var(--rg-link-hover);
}

.rg-admin-badge {
  border: 1px solid var(--rg-border);
  border-radius: 2px;
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  min-width: 1.5rem;
  padding: 0.3rem 0.4rem;
  text-align: center;
}

.rg-admin-badge--ok {
  background: #194b2d;
  color: #d6f0de;
}

.rg-admin-badge--warn {
  background: #5e4420;
  color: #ffe9b4;
}

@keyframes rg-chart-pan {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-7%);
  }
}

@keyframes rg-cta-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(198, 168, 91, 0.12);
  }

  50% {
    box-shadow: 0 0 32px rgba(198, 168, 91, 0.24);
  }
}

/* Tool preview modal helpers */
body.rg-modal-open {
  overflow: hidden;
}

/* Tool update system */
.rg-tool-badge--updated {
	background: linear-gradient(135deg, #c6a85b, #f0d18a);
	color: #0b1a2b;
	font-weight: 700;
}

.rg-tool-changelog,
.rg-member-updates__card {
	border: 1px solid rgba(198, 168, 91, 0.25);
	border-radius: 14px;
	padding: 1.25rem;
	background: rgba(11, 26, 43, 0.65);
}

.rg-tool-changelog__list,
.rg-member-updates__card ul {
	margin: 0.75rem 0 0;
	padding-left: 1.2rem;
}

.rg-member-updates__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1rem;
}

.rg-member-updates__card h3 {
	margin-top: 0;
}

/* Premium SaaS overrides now live in assets/css/premium-ui.css */

.rg-tool-card__preview-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: #0b1a2b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -16px 34px rgba(2, 8, 22, 0.5);
}

.rg-tool-card__preview-svg {
  width: 100%;
  aspect-ratio: 3 / 2;
}

.rg-tool-card__preview-svg svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Make headings black inside white content sections */
.rg-page-template .rg-section-space:not(.rg-hero):not(.rg-compliance-notice) h1,
.rg-page-template .rg-section-space:not(.rg-hero):not(.rg-compliance-notice) h2,
.rg-page-template .rg-section-space:not(.rg-hero):not(.rg-compliance-notice) h3,
.rg-page-template .rg-section-space:not(.rg-hero):not(.rg-compliance-notice) h4,
.rg-page-template .rg-section-space:not(.rg-hero):not(.rg-compliance-notice) h5,
.rg-page-template .rg-section-space:not(.rg-hero):not(.rg-compliance-notice) h6 {
  color: #111111 !important;
}

/* Keep hero centred and full width */
.rg-page-template .rg-hero {
  max-width: 100%;
  margin: 0 0 2rem;
}

/* Links inside white content areas */
.rg-page-template .rg-section-space:not(.rg-hero):not(.rg-compliance-notice) a {
  color: #1f3a5f;
}

.rg-page-template .rg-section-space:not(.rg-hero):not(.rg-compliance-notice) a:hover {
  color: #284a76;
}

/* Compliance box can stay dark or be switched white */
.rg-page-template .rg-compliance-notice {
  max-width: 900px;
  margin: 0 auto 2rem;
}

/* Mobile */
@media (max-width: 767px) {
  .rg-page-template .rg-section-space:not(.rg-hero):not(.rg-compliance-notice) {
    padding: 28px 20px;
    border-radius: 8px;
  }
}

.rg-front-premium .rg-feature-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.rg-front-premium .rg-premium-section {
  margin-bottom: 2.5rem;
}

.rg-front-premium .rg-premium-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

@media (max-width: 991px) {
  .rg-front-premium .rg-feature-panel-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== FIX DEFAULT HESTIA PAGES ===== */

.page .main-raised,
.single-page .main-raised {
  margin: 0 auto;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.page .section,
.page .blog-post,
.page .container {
  position: relative;
  z-index: 1;
}

/* Page title / hero area */
.page-header.header-small,
.page-header.header-filter {
  min-height: 260px;
  display: flex;
  align-items: center;
}

.page-header .title,
.page-header h1 {
  color: #ffffff !important;
  text-align: center;
}

/* Main page content card */
.page .entry-content,
.single-page .entry-content {
  max-width: 900px;
  margin: -80px auto 60px;
  background: #ffffff;
  padding: 48px 40px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
  position: relative;
  z-index: 5;
}

/* Text colours inside normal pages */
.page .entry-content,
.page .entry-content p,
.page .entry-content li,
.page .entry-content span,
.page .entry-content strong,
.page .entry-content em,
.single-page .entry-content,
.single-page .entry-content p,
.single-page .entry-content li,
.single-page .entry-content span,
.single-page .entry-content strong,
.single-page .entry-content em {
  color: #111111 !important;
}

/* Headings inside normal pages */
.page .entry-content h1,
.page .entry-content h2,
.page .entry-content h3,
.page .entry-content h4,
.page .entry-content h5,
.page .entry-content h6,
.single-page .entry-content h1,
.single-page .entry-content h2,
.single-page .entry-content h3,
.single-page .entry-content h4,
.single-page .entry-content h5,
.single-page .entry-content h6 {
  color: #111111 !important;
}

/* Links inside white content */
.page .entry-content a,
.single-page .entry-content a {
  color: #1f3a5f !important;
}

.page .entry-content a:hover,
.single-page .entry-content a:hover {
  color: #284a76 !important;
}

/* Lists spacing */
.page .entry-content ul,
.page .entry-content ol,
.single-page .entry-content ul,
.single-page .entry-content ol {
  padding-left: 1.4rem;
}

/* Mobile */
@media (max-width: 767px) {
  .page .entry-content,
  .single-page .entry-content {
    margin: -50px 16px 40px;
    padding: 28px 20px;
    border-radius: 8px;
  }

  .page-header.header-small,
  .page-header.header-filter {
    min-height: 220px;
  }
}
/* ===== SUBSCRIPTION PAGE FIX ===== */

.rg-page-template .rg-hero {
  background: #ffffff !important;
  border: 1px solid rgba(198, 168, 91, 0.22) !important;
  border-radius: 18px !important;
  padding: 2.2rem !important;
  position: relative !important;
  overflow: hidden !important;
}

.rg-page-template .rg-hero::before,
.rg-page-template .rg-hero::after {
  display: none !important;
}

.rg-page-template .rg-hero h1,
.rg-page-template .rg-hero p {
  color: #111111 !important;
}

.rg-page-template .rg-section-space:not(.rg-hero):not(.rg-compliance-notice) {
  max-width: 900px !important;
  margin: 0 auto 2rem !important;
  background: #ffffff !important;
  padding: 48px 40px !important;
  border-radius: 12px !important;
  box-sizing: border-box !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

.rg-page-template .rg-section-space:not(.rg-hero):not(.rg-compliance-notice),
.rg-page-template .rg-section-space:not(.rg-hero):not(.rg-compliance-notice) p,
.rg-page-template .rg-section-space:not(.rg-hero):not(.rg-compliance-notice) li,
.rg-page-template .rg-section-space:not(.rg-hero):not(.rg-compliance-notice) span,
.rg-page-template .rg-section-space:not(.rg-hero):not(.rg-compliance-notice) strong,
.rg-page-template .rg-section-space:not(.rg-hero):not(.rg-compliance-notice) em {
  color: #111111 !important;
}

.rg-page-template .rg-section-space:not(.rg-hero):not(.rg-compliance-notice) h1,
.rg-page-template .rg-section-space:not(.rg-hero):not(.rg-compliance-notice) h2,
.rg-page-template .rg-section-space:not(.rg-hero):not(.rg-compliance-notice) h3,
.rg-page-template .rg-section-space:not(.rg-hero):not(.rg-compliance-notice) h4,
.rg-page-template .rg-section-space:not(.rg-hero):not(.rg-compliance-notice) h5,
.rg-page-template .rg-section-space:not(.rg-hero):not(.rg-compliance-notice) h6 {
  color: #111111 !important;
}

.rg-page-template .rg-section-space:not(.rg-hero):not(.rg-compliance-notice) a {
  color: #1f3a5f !important;
}

.rg-page-template .rg-section-space:not(.rg-hero):not(.rg-compliance-notice) a:hover {
  color: #284a76 !important;
}

.rg-page-template .btn,
.rg-page-template button,
.rg-page-template input[type="button"],
.rg-page-template input[type="submit"],
.rg-page-template .wp-block-button__link,
.rg-page-template a.btn {
  background: #1f3a5f !important;
  color: #ffffff !important;
  border: 1px solid #1f3a5f !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.rg-page-template .btn:hover,
.rg-page-template button:hover,
.rg-page-template input[type="button"]:hover,
.rg-page-template input[type="submit"]:hover,
.rg-page-template .wp-block-button__link:hover,
.rg-page-template a.btn:hover {
  background: #284a76 !important;
  color: #ffffff !important;
  border-color: #284a76 !important;
}

.rg-page-template ul,
.rg-page-template ol {
  padding-left: 1.4rem !important;
}

@media (max-width: 767px) {
  .rg-page-template .rg-section-space:not(.rg-hero):not(.rg-compliance-notice) {
    padding: 28px 20px !important;
    border-radius: 8px !important;
  }
}

/* Force visible text on subscription page buttons */
.rg-page-template a.btn,
.rg-page-template .btn,
.rg-page-template button,
.rg-page-template input[type="button"],
.rg-page-template input[type="submit"],
.rg-page-template .wp-block-button__link {
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  text-indent: 0 !important;
  text-shadow: none !important;
}

.rg-page-template a.btn *,
.rg-page-template .btn *,
.rg-page-template button *,
.rg-page-template input[type="button"] *,
.rg-page-template input[type="submit"] *,
.rg-page-template .wp-block-button__link * {
  color: #ffffff !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.rg-inclusion-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.rg-inclusion-card {
  background: #ffffff;
  border: 1px solid rgba(198, 168, 91, 0.18);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.rg-inclusion-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #111111 !important;
}

.rg-inclusion-card p {
  margin: 0;
  color: #111111 !important;
}

@media (max-width: 991px) {
  .rg-inclusion-grid {
    grid-template-columns: 1fr;
  }
}