.ks-support-section {
  background: #f7f9fa;
  padding: 56px 0 88px;
}

.ks-support-wrap {
  max-width: 1280px;
  width: 94%;
  margin: 0 auto;
}

.ks-support-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid #dce5ea;
}

.ks-support-intro h2 {
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
  color: #0e2233;
  margin: 0 0 10px;
}

.ks-support-intro p {
  font-size: 15px;
  line-height: 1.7;
  color: #5b6c7a;
  max-width: 760px;
  margin: 0;
}

.ks-support-count {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: #e6f6f6;
  color: #007e7c;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.ks-support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ks-support-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #dce5ea;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(14, 34, 51, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ks-support-card:hover {
  transform: translateY(-3px);
  border-color: #00a3a1;
  box-shadow: 0 14px 32px rgba(0, 126, 124, 0.12);
}

.ks-support-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.ks-support-badge-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ks-support-pdf-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #00a3a1, #007e7c);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(0, 163, 161, 0.26);
}

.ks-support-category {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: #eef7f7;
  color: #007e7c;
  font-size: 13px;
  font-weight: 600;
}

.ks-support-meta {
  font-size: 13px;
  font-weight: 600;
  color: #6b7a85;
  white-space: nowrap;
}

.ks-support-card h3 {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
  color: #0e2233;
  margin: 0 0 10px;
}

.ks-support-desc {
  font-size: 14px;
  line-height: 1.75;
  color: #5b6c7a;
  margin: 0 0 16px;
  flex: 1 1 auto;
}

.ks-support-filename {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 22px;
  border-radius: 8px;
  background: #f4f6f7;
  color: #364959;
  font-size: 13px;
  font-family: Consolas, Monaco, monospace;
  word-break: break-all;
}

.ks-support-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid #eef2f4;
}

.ks-support-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.ks-support-btn--primary {
  background: #007e7c;
  color: #ffffff;
}

.ks-support-btn--primary:hover {
  background: #006664;
  color: #ffffff;
}

.ks-support-btn--secondary {
  background: #0e2233;
  color: #ffffff;
}

.ks-support-btn--secondary:hover {
  background: #1a3852;
  color: #ffffff;
}

.ks-support-btn--ghost {
  background: #ffffff;
  color: #0e2233;
  border-color: #cfdbe2;
}

.ks-support-btn--ghost:hover {
  border-color: #007e7c;
  color: #007e7c;
  background: #f4fafa;
}

.ks-support-btn:focus-visible,
.ks-pdf-close:focus-visible {
  outline: 2px solid #00a3a1;
  outline-offset: 2px;
}

/* Native PDF preview modal dialog */
.ks-pdf-dialog {
  width: min(1160px, 94vw);
  height: min(88vh, 900px);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 1px solid #cfdbe2;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 24px 64px rgba(14, 34, 51, 0.35);
  overflow: hidden;
}

.ks-pdf-dialog[open] {
  display: flex;
  flex-direction: column;
}

.ks-pdf-dialog:modal {
  overscroll-behavior: contain;
}

.ks-pdf-dialog::backdrop {
  background: rgba(14, 34, 51, 0.72);
  backdrop-filter: blur(4px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.ks-pdf-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  background: #0e2233;
  color: #ffffff;
  flex-shrink: 0;
}

.ks-pdf-dialog-title {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ks-pdf-dialog-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ks-pdf-tool-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  background: #007e7c;
  text-decoration: none;
  white-space: nowrap;
}

.ks-pdf-tool-link:hover {
  background: #00a3a1;
  color: #ffffff;
}

.ks-pdf-tool-link--outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.ks-pdf-tool-link--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
}

.ks-pdf-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.ks-pdf-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.ks-pdf-dialog-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  background: #eef2f5;
  min-height: 0;
}

.ks-pdf-frame {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

@media screen and (max-width: 960px) {
  .ks-support-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .ks-support-intro {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media screen and (max-width: 640px) {
  .ks-support-section {
    padding: 36px 0 64px;
  }
  .ks-support-card {
    padding: 20px;
  }
  .ks-pdf-dialog {
    width: 96vw;
    height: 90vh;
  }
  .ks-pdf-dialog-header {
    flex-wrap: wrap;
    padding: 12px 14px;
  }
  .ks-pdf-dialog-title {
    width: 100%;
    white-space: normal;
    font-size: 15px;
  }
  .ks-pdf-dialog-tools {
    width: 100%;
    justify-content: flex-end;
  }
}
