﻿:root {
  --page-bg: #e7e9f5;
  --panel-bg: #eef0fa;
  --ink: #1c1e2b;
  --muted: #6b7080;
  --accent: #4a6cf7;
  --border: #dfe2f0;
}

* { box-sizing: border-box; }

.partners-card {
  max-width: 1340px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 520px 1fr;
  background: var(--panel-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(30, 34, 60, 0.08);
}

.partners-sidebar {
  padding: 46px 44px;
}

.partners-title {
  font-size: 2.1rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 34px;
}

.tab-list {
  display: flex;
  flex-direction: column;
}

.tab-item {
  position: relative;
  padding: 24px 22px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.tab-item:hover {
  background: rgba(255,255,255,0.5);
}

.tab-item.active {
  background: #ffffff;
  color: var(--ink);
  border-left-color: var(--accent);
}

.partners-content {
  display: flex;
  flex-direction: column;
  background: #f4f5fb;
  font-size:1px;
}

.partners-media {
  width: 100%;
  aspect-ratio: 16 / 9.2;
  background-size: cover;
  background-position: center;
  transition: background-image 0.3s ease;
}

.partners-links {
  background: #ffffff;
  padding: 32px 40px 44px;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
  row-gap: 22px;
  align-content: start;
}

.partners-links a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-item {
  font-size: 1rem;
  color: var(--ink);
}

.link-item .num {
  color: var(--muted);
  margin-right: 4px;
}

.partner-text {
  grid-column: 1 / -1;
  align-self: center;
  margin: 0;
  max-width: 680px;

  font-size: 1.1rem;
  line-height: 1.75;

  color: var(--ink);
}

/* ---------- Section spacing ----------
   Breathing room between the "Why Choose Digit Us?" card
   loaded into #about-us and the dark "Our Stories" banner
   (#about-stories) that follows on the about page. */

#about-us {
  padding: 0 0 clamp(48px, 7vw, 100px);
}

@media (max-width: 900px) {
  .partners-card { grid-template-columns: 1fr; }
  .partners-links { grid-template-columns: 1fr; }
}