/* =========================================================
   KC DOWNLOADS — ALL STYLES
   ========================================================= */

:root {
  --navy: #0d2b6b;
  --blue: #2868ed;
  --amber: #f5b400;
  --red: #e53935;
  --ink: #1a1a1a;
  --muted: #6b7280;
  --line: #dde3f0;
  --panel: #ffffff;
  --panel-tint: #f6f8fd;
  --row-tint: #eef2fb;
  --row-tint-hover: #e3eaf9;
  --chip-bg: #eaf3ff;
}

/* ================= HERO ================= */
.download-hero {
  position: relative;
  width: 100%;
  overflow: visible;
  text-align: center;
  padding-top: clamp(90px, 9vw, 130px);
  padding-bottom: 0;
  background: linear-gradient(110deg, #061a59 0%, #082b82 28%, #124bc8 58%, #2868ed 100%);
  box-sizing: border-box;
}
.download-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: clamp(55px,6.5vw,95px) clamp(55px,6.5vw,95px);
}
.download-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: clamp(45px,4vw,55px);
  background: #ffffff;
  z-index: 1;
  pointer-events: none;
}
.download-hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  margin-bottom: clamp(40px,4.8vw,68px);
  box-sizing: border-box;
}
.download-hero-title {
  margin: 0;
  color: #fff;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 64px;
  line-height: 1.2;
  text-align: center;
  text-transform: capitalize;
}
.download-hero-image-wrapper {
  position: relative;
  z-index: 4;
  width: min(75%, 1080px);
  margin: 0 auto;
  border-radius: clamp(14px,1.5vw,22px);
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,.14);
  box-sizing: border-box;
}
.download-hero-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2.1/1;
  object-fit: cover;
  object-position: center;
  margin: 0;
  background: #c9c9c9;
}

/* ================= SECTION ================= */
.download-section {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 60px 20px 80px;
  background: #fff;
}
.download-section-heading {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -.3px;
}
.download-section-subtext {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 32px;
}

/* ================= TREE WRAPPER ================= */
.download-tree {
  background: var(--panel);
  border: 1px solid #eef1f7;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 10px 34px rgba(13,43,107,.07);
}
.download-tree-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.download-node {
  position: relative;
  list-style: none;
}

/* Tree guide lines */
.download-folder-body > .download-tree-list {
  position: relative;
  margin-left: 19px;
  padding-left: 20px;
  border-left: 1.5px dashed var(--line);
}
.download-folder-body > .download-tree-list > .download-node {
  position: relative;
}
.download-folder-body > .download-tree-list > .download-node::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -20px;
  width: 16px;
  height: 1.5px;
  background: var(--line);
  transform: translateY(-50%);
}
.download-folder-body > .download-tree-list > .download-node:last-child::after {
  content: "";
  position: absolute;
  top: 50%;
  bottom: 0;
  left: -21px;
  width: 3px;
  background: #ffffff;
}

/* ================= FOLDER ================= */
.download-folder {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 16px;
  background: var(--row-tint);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  line-height: 1.4;
  margin-bottom: 8px;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
  outline:none !important;
}
.download-folder:hover {
  background: var(--row-tint-hover);
  color:  var(--navy);

  transform: translateX(2px);
}
.download-folder:active {
  transform: translateX(2px) scale(.997);
}
.download-folder:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(40,104,237,.35);
}
.download-folder.active {
  background: linear-gradient(90deg, #e4ebfa 0%, #eef2fb 100%);
  box-shadow: inset 3px 0 0 var(--blue);
}
.download-folder-body .download-folder {
  background: var(--panel-tint);
  font-size: 14.5px;
  padding: 11px 14px;
}
.download-folder-body .download-folder:hover {
  background: #eef1f9;
}
.download-folder-body .download-folder.active {
  background: linear-gradient(90deg, #eaeff9 0%, #f4f6fb 100%);
}

.download-folder-chevron {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease, color .25s ease;
}
.download-folder-chevron svg {
  width: 100%;
  height: 100%;
  display: block;
}
.download-folder.active > .download-folder-chevron {
  transform: rotate(180deg);
  color: var(--blue);
}

.download-folder-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(245,180,0,.14);
  color: var(--amber);
  transition: background .18s ease, color .18s ease;
}
.download-folder-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}
.download-folder.active > .download-folder-icon {
  background: rgba(40,104,237,.14);
  color: var(--blue);
}

.download-folder-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ================= FOLDER BODY ================= */
.download-folder-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.4,0,.2,1);
  padding: 0 8px;
  margin-bottom: 4px;
}

/* ================= FILE ROW ================= */
.download-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 400;
  color: #3a3a3a;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.download-file:hover {
  background: #f5f7fc;
  color: var(--navy);
  transform: translateX(2px);
}
.download-file:focus-visible {
  outline: none;
  background: #f5f7fc;
  box-shadow: 0 0 0 3px rgba(40,104,237,.25);
}
.download-file.is-missing {
  cursor: default;
}
.download-file-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--chip-bg);
}
.download-file-icon svg {
  width: 22px;
  height: 27px;
  display: block;
  filter: drop-shadow(0 1px 1.5px rgba(13,43,107,.18));
}
.download-file-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}
.download-file-arrow {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: #9aa3b2;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
}
.download-file:hover .download-file-arrow {
  opacity: 1;
  transform: translateX(3px);
}
.download-file-arrow svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ================= EMPTY ================= */
.download-empty {
  padding: 14px;
  text-align: left;
  color: #9aa3b2;
  font-size: 14px;
}

/* ================= RESPONSIVE ================= */
@media (min-width: 1200px) {
  .download-hero { padding-top: 130px; }
  .download-hero-title { font-size: 64px; }
  .download-hero-content { margin-bottom: 68px; }
  .download-hero-image-wrapper { width: min(75.2%, 1080px); }
  .download-hero-image { aspect-ratio: 2.1/1; }
  .download-section { padding: 60px 20px 80px; }
  .download-tree { padding: 14px; border-radius: 18px; }
}
@media (max-width: 1199px) and (min-width: 769px) {
  .download-hero { padding-top: clamp(100px,9vw,120px); }
  .download-hero-title { font-size: clamp(52px,5.3vw,64px); }
  .download-hero-content { margin-bottom: clamp(42px,5vw,60px); }
  .download-hero-image-wrapper { width: calc(100% - 100px); max-width: 1080px; }
  .download-hero-image { aspect-ratio: 2.05/1; }
  .download-section { padding: 50px 20px 70px; }
  .download-tree { padding: 12px; border-radius: 16px; }
  .download-folder { font-size: 15.5px; padding: 13px 16px; gap: 12px; margin-bottom: 7px; }
  .download-file { font-size: 14.5px; padding: 8px 14px; gap: 12px; }
  .download-file-icon { width: 42px; height: 42px; }
}
@media (max-width: 768px) {
  .download-hero { padding-top: 90px; }
  .download-hero::before { background-size: 55px 55px; }
  .download-hero-content { padding: 0 16px; margin-bottom: 38px; }
  .download-hero-title { font-size: clamp(44px,8vw,58px); line-height: 1.2; }
  .download-hero-image-wrapper { width: calc(100% - 40px); border-radius: 16px; }
  .download-hero-image { aspect-ratio: 16/9; }
  .download-hero::after { height: 45px; }

  .download-section { padding: 40px 16px 60px; }
  .download-section-heading { font-size: 22px; }
  .download-tree { padding: 10px; border-radius: 14px; }
  .download-folder-body > .download-tree-list { margin-left: 15px; padding-left: 16px; }
  .download-folder-body > .download-tree-list > .download-node::before { left: -16px; width: 12px; }
  .download-folder-body > .download-tree-list > .download-node:last-child::after { left: -17.5px; }
  .download-folder { font-size: 15px; padding: 12px 14px; gap: 11px; margin-bottom: 6px; }
  .download-file { font-size: 14px; padding: 8px 12px; gap: 11px; }
  .download-file-icon { width: 40px; height: 40px; }
}
@media (max-width: 480px) {
  .download-hero { padding-top: 85px; }
  .download-hero-content { padding: 30px 14px; margin-bottom: 30px; }
  .download-hero-title { font-size: clamp(40px,11vw,48px); }
  .download-hero-image-wrapper { width: calc(100% - 32px); border-radius: 14px; }
  .download-hero-image { aspect-ratio: 16/10; }
  .download-hero::after { height: 40px; }

  .download-section { padding: 30px 12px 50px; }
  .download-section-heading { font-size: 20px; }
  .download-section-subtext { font-size: 13.5px; margin-bottom: 22px; }
  .download-tree { padding: 8px; border-radius: 12px; }
  .download-folder-body > .download-tree-list { margin-left: 12px; padding-left: 13px; }
  .download-folder-body > .download-tree-list > .download-node::before { left: -13px; width: 10px; }
  .download-folder-body > .download-tree-list > .download-node:last-child::after { left: -14.5px; }
  .download-folder { font-size: 14px; padding: 11px 12px; gap: 9px; }
  .download-file { font-size: 13.5px; padding: 7px 10px; gap: 10px; }
  .download-file-icon { width: 36px; height: 36px; }
}
@media (max-width: 360px) {
  .download-hero { padding-top: 80px; }
  .download-hero-content { margin-bottom: 26px; padding: 24px 12px; }
  .download-hero-title { font-size: 40px; }
  .download-hero-image-wrapper { width: calc(100% - 24px); border-radius: 12px; }
  .download-section { padding: 24px 10px 40px; }
  .download-tree { padding: 6px; border-radius: 10px; }
  .download-folder { font-size: 13px; padding: 10px; gap: 8px; margin-bottom: 5px; }
  .download-file { font-size: 12.5px; padding: 6px 8px; gap: 9px; }
  .download-file-icon { width: 34px; height: 34px; }
}