/* Subpage shared styles – 7R Network */

/* Page hero (compact for subpages) */
.page-hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: flex-end;
  padding: 7rem 0 3rem;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 102, 255, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(0, 194, 255, 0.06) 0%, transparent 50%),
    var(--color-bg);
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 3;
  max-width: 780px;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.page-hero-lead {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--color-accent);
}

.breadcrumbs a:hover {
  color: var(--color-text);
}

.breadcrumbs .current {
  color: var(--color-text-muted);
}

.breadcrumbs-sep {
  color: var(--color-border);
}

/* Page content sections */
.page-section {
  padding: 4rem 0;
}

.page-section-dark {
  background: var(--color-bg-alt);
}

.page-section-alt {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

/* Content cards */
.content-card {
  background: linear-gradient(180deg, var(--color-bg-card) 0%, var(--color-bg-alt) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  color: var(--color-text);
}

.content-card h2 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.content-card h3 {
  font-size: 1.1rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--color-text);
}

.content-card p {
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.content-card ul {
  margin-left: 1.25rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.content-card ul li {
  margin-bottom: 0.4rem;
}

/* Feature grid (3-col) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: linear-gradient(180deg, var(--color-bg-card) 0%, var(--color-bg-alt) 100%);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  color: var(--color-text);
  text-align: center;
}

.feature-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--color-text);
}

.feature-card p {
  color: lightslategray;
  /*background: var(--color-text);*/
  display: inline-block;
  /*padding: 8px;
  border-radius: 8px;*/
  font-size: 14px;
  line-height: 1.6;
  font-weight: 400;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  /*width: 56px;
  height: 56px;*/
  margin: 0 auto 10px auto;
  border-radius: 14px;
}

.feature-icon img {
  width: 250px;
  height: 250px;
  object-fit: contain;
  display: block;
}

.feature-icon i {
  font-size: 1.15rem;
}

/* Page media */
.page-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 16 / 9;
  background: #000;
  margin: 1.5rem 0;
}

.page-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-media-wide {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 21 / 9;
  background: #000;
  margin: 1.5rem 0;
}

.page-media-wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(180deg, var(--color-bg-card) 0%, var(--color-bg-alt) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  color: var(--color-text);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* CTA box */
.cta-box {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.12), rgba(0, 194, 255, 0.06));
  border: 1px solid rgba(0, 102, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  margin-top: 2rem;
}

.cta-box h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.cta-box p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

/* Process steps */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.process-step {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.process-step .step-num {
  margin: 0 auto 0.75rem;
}

.process-step h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.process-step p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Comparison table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.compare-table th,
.compare-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.compare-table th {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
}

.compare-table tr:nth-child(even) {
  background: rgba(255,255,255,0.02);
}

.compare-table td {
  color: var(--color-text-muted);
}

.compare-table .check {
  color: #22c55e;
  font-weight: 700;
}

.compare-table .cross {
  color: #ef4444;
}

/* Two column with image */
.img-text-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.img-text-grid .page-media {
  margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .feature-grid,
  .stats-bar,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .img-text-grid {
    grid-template-columns: 1fr;
  }

  .img-text-grid .page-media {
    order: -1;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 768px) {
  .page-hero {
    min-height: 35vh;
    padding: 6rem 0 2rem;
  }

  .page-hero h1 {
    font-size: 1.7rem;
  }

  .feature-grid,
  .stats-bar,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .content-card {
    padding: 1.5rem;
  }

  .cta-box {
    padding: 1.75rem;
  }

  .compare-table {
    font-size: 0.85rem;
  }

  .compare-table th,
  .compare-table td {
    padding: 0.75rem;
  }
}
