.tools-header .tools-nav .tools-nav-programs {
  --header-hover: #ededed;
  --header-accent: #303030;
  --header-line: #d4d4d4;
  color: #252525;
}

[data-theme="dark"] .tools-header .tools-nav .tools-nav-programs {
  --header-hover: #393939;
  --header-accent: #f1f1f1;
  --header-line: #505050;
  color: #f1f1f1;
}

body[data-page="programlar"] {
  background: #ededed;
}

[data-theme="dark"] body[data-page="programlar"] {
  background: #181818;
}

[data-page="programlar"] .tools-mobile-location .icon {
  color: inherit;
}

[data-page="programlar"] #connection-error {
  display: none;
}

.programs-catalog {
  --programs-surface: #fff;
  --programs-rail: #f5f5f5;
  --programs-border: #d4d4d4;
  --programs-text: #222;
  --programs-muted: #4f5d70;
  --programs-button: #282828;
  --programs-button-hover: #404040;
  --programs-button-text: #fff;
  margin-bottom: 28px;
  border: 1px solid var(--programs-border);
  border-radius: 5px;
  background: var(--programs-surface);
  color: var(--programs-text);
  font-size: 14px;
  line-height: 1.7;
}

[data-theme="dark"] .programs-catalog {
  --programs-surface: #242424;
  --programs-rail: #1c1c1c;
  --programs-border: #484848;
  --programs-text: #f4f4f4;
  --programs-muted: #bac4d6;
  --programs-button: #ebebeb;
  --programs-button-hover: #cfcfcf;
  --programs-button-text: #202020;
}

.programs-heading {
  padding: 24px clamp(16px, 3vw, 32px);
}

.programs-heading h1 {
  margin: 0 0 6px;
  color: inherit;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.3;
}

.programs-heading p {
  margin: 0;
  color: var(--programs-muted);
  font-size: 15px;
  line-height: 1.75;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(12px, 2vw, 20px);
  border-top: 1px solid var(--programs-border);
  border-radius: 0 0 4px 4px;
  background: var(--programs-rail);
}

.program-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--programs-border);
  border-radius: 5px;
  background: var(--programs-surface);
}

.program-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--programs-border);
  background: var(--programs-rail);
}

.program-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(14px, 2vw, 22px);
}

.program-card h2 {
  margin: 4px 0 8px;
  color: inherit;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.program-card p {
  margin: 0;
  color: var(--programs-muted);
  line-height: 1.75;
}

.program-category {
  font-weight: 600;
}

.program-actions {
  margin-top: auto;
  padding-top: 16px;
}

.program-actions p {
  border-top: 1px solid var(--programs-border);
  padding: 12px 0;
}

.program-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.program-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 5px;
  background: var(--programs-button);
  color: var(--programs-button-text);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.program-download:hover {
  background: var(--programs-button-hover);
  color: var(--programs-button-text);
}

.program-download-secondary {
  border: 1px solid var(--programs-border);
  background: var(--programs-surface);
  color: var(--programs-text);
}

.program-download-secondary:hover {
  background: var(--programs-rail);
  color: var(--programs-text);
}

.program-download:focus-visible {
  outline: 2px solid var(--programs-text);
  outline-offset: 3px;
}

@media (max-width: 820px) {
  .programs-grid { grid-template-columns: minmax(0, 1fr); }
  .programs-heading p { font-size: 14px; }
}
