:root {
  --mac-bg: #f5f7fb;
  --mac-surface: rgba(255, 255, 255, .82);
  --mac-surface-solid: #ffffff;
  --mac-line: rgba(193, 207, 222, .72);
  --mac-text: #1d1d1f;
  --mac-muted: #6e7681;
  --mac-blue: #0a84ff;
  --mac-blue-soft: rgba(10, 132, 255, .12);
  --mac-shadow: 0 18px 46px rgba(31, 45, 61, .08);
  --mac-shadow-soft: 0 10px 28px rgba(31, 45, 61, .06);
}

html,
body {
  background: var(--mac-bg) !important;
  color: var(--mac-text) !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 8%, rgba(10, 132, 255, .10), transparent 30%),
    radial-gradient(circle at 82% 14%, rgba(96, 165, 250, .10), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #f4f6fa 46%, #eef2f7 100%);
}

.fixed.top-0.left-0.right-0 {
  background: rgba(255, 255, 255, .78) !important;
  border-bottom: 1px solid rgba(220, 228, 238, .78) !important;
  box-shadow: 0 10px 32px rgba(31, 45, 61, .06) !important;
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}

.header-inner {
  padding-left: 18px !important;
  padding-right: 18px !important;
}

.nav-bar {
  border-top: 1px solid rgba(230, 236, 244, .8);
}

.nav-link {
  border: 1px solid transparent !important;
  color: #3f4a56 !important;
  background: transparent !important;
}

.nav-link:hover {
  border-color: rgba(10, 132, 255, .18) !important;
  background: rgba(10, 132, 255, .08) !important;
  color: var(--mac-blue) !important;
}

.bg-\[\#fafafa\] {
  background: transparent !important;
}

.section-header {
  border: 1px solid var(--mac-line) !important;
  background: var(--mac-surface) !important;
  box-shadow: var(--mac-shadow-soft) !important;
  backdrop-filter: blur(16px) saturate(1.16);
  -webkit-backdrop-filter: blur(16px) saturate(1.16);
}

.filter-btn {
  border-radius: 999px !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.88) inset, 0 8px 18px rgba(31,45,61,.05) !important;
}

.filter-btn:not(.ant-btn-primary) {
  background: rgba(255, 255, 255, .82) !important;
  border-color: rgba(210, 222, 235, .9) !important;
}

.filter-btn.ant-btn-primary,
.filter-btn\!bg-\[\#32C5FF\] {
  background: linear-gradient(180deg, #4fb2ff 0%, #0a84ff 100%) !important;
  border-color: #0a84ff !important;
  color: #fff !important;
}

.resource-card {
  border: 1px solid rgba(210, 226, 239, .9) !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,251,255,.96) 100%) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.95) inset, var(--mac-shadow-soft) !important;
  overflow: hidden !important;
}

.resource-card:hover {
  border-color: rgba(10, 132, 255, .45) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,1) inset, 0 20px 48px rgba(10,132,255,.13) !important;
}

.resource-card-img,
.resource-card .ant-image,
.resource-card .ant-image-img {
  background: linear-gradient(180deg, #f9fbfd 0%, #eef3f8 100%) !important;
}

.resource-card .bg-\[\#f5f5f5\],
.resource-card .rounded-xl.bg-\[\#f5f5f5\],
.detail-row {
  background: rgba(248, 250, 252, .78) !important;
}

.resource-card h2,
.pnp-soft-name {
  color: #111827 !important;
}

.download-channel-btn,
.pnp-soft-download,
.pnp-soft-modal-link {
  border-radius: 999px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f1f8ff 100%) !important;
  border-color: rgba(10, 132, 255, .38) !important;
  color: #087de8 !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.96) inset, 0 7px 18px rgba(10,132,255,.10) !important;
}

.download-channel-btn:hover,
.pnp-soft-download:hover,
.pnp-soft-modal-link:hover {
  background: linear-gradient(180deg, #ffffff 0%, #e7f4ff 100%) !important;
  border-color: rgba(10, 132, 255, .65) !important;
}

.ant-modal-content,
.pnp-soft-modal-card {
  border: 1px solid rgba(220, 228, 238, .92) !important;
  border-radius: 8px !important;
  background: rgba(255,255,255,.94) !important;
  box-shadow: 0 26px 76px rgba(15, 23, 42, .18) !important;
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

.ant-modal-header,
.ant-modal-footer {
  background: transparent !important;
}

.baseFooter {
  background: rgba(29, 29, 31, .92) !important;
  border-top: 1px solid rgba(255, 255, 255, .08) !important;
  color: rgba(255, 255, 255, .86) !important;
  box-shadow: 0 -16px 46px rgba(15, 23, 42, .12) !important;
}

.baseFooter img {
  border-radius: 8px !important;
  background: rgba(255,255,255,.08) !important;
  padding: 4px !important;
}

@media (max-width: 767px) {
  .fixed.top-0.left-0.right-0 {
    backdrop-filter: blur(14px) saturate(1.18);
    -webkit-backdrop-filter: blur(14px) saturate(1.18);
  }

  .section-header {
    margin-left: 12px !important;
    margin-right: 12px !important;
    padding: 18px !important;
  }

  .resource-card,
  .pnp-soft-card {
    margin-left: 12px !important;
    margin-right: 12px !important;
  }
}

/* Align the resource title/filter bar with the card grid below. */
.section-header {
  width: 100% !important;
  max-width: 1216px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 28px !important;
  padding-right: 28px !important;
}

@media (max-width: 767px) {
  .section-header {
    width: calc(100% - 24px) !important;
    margin-left: 12px !important;
    margin-right: 12px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* Match the PNP original software section with the resource section above. */
.pnp-soft-section {
  background: transparent !important;
  padding-top: 28px !important;
}

.pnp-soft-inner {
  width: 100% !important;
  max-width: 1216px !important;
}

.pnp-soft-title {
  width: 100% !important;
  min-height: 82px;
  margin: 0 auto 22px !important;
  padding: 20px 28px !important;
  border: 1px solid var(--mac-line) !important;
  border-radius: 8px !important;
  background: var(--mac-surface) !important;
  box-shadow: var(--mac-shadow-soft) !important;
  backdrop-filter: blur(16px) saturate(1.16);
  -webkit-backdrop-filter: blur(16px) saturate(1.16);
}

.pnp-soft-title h2 {
  margin-bottom: 6px !important;
  color: #1e3a5f !important;
  font-size: 24px !important;
  font-weight: 800 !important;
}

.pnp-soft-title p {
  color: #6e7681 !important;
  font-size: 14px !important;
}

.pnp-soft-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px !important;
}

.pnp-soft-card {
  width: 100% !important;
  margin: 0 !important;
}

@media (max-width: 1024px) {
  .pnp-soft-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  .pnp-soft-section {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .pnp-soft-title {
    width: 100% !important;
    min-height: 0;
    padding: 18px 16px !important;
  }

  .pnp-soft-grid {
    grid-template-columns: 1fr !important;
  }

  .pnp-soft-card {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}


.site-visitor-stat {
  width: min(1216px, calc(100% - 32px));
  margin: 16px auto 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 767px) {
  .site-visitor-stat {
    width: 100%;
    margin-top: 14px;
    font-size: 12px;
  }
}

/* Footer content should stay inside the same page width as the main content. */
.baseFooter {
  padding-left: 16px !important;
  padding-right: 16px !important;
  overflow: hidden !important;
}

.baseFooter > div {
  width: min(1216px, 100%) !important;
  max-width: 1216px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
}

.baseFooter > div > * {
  min-width: 0 !important;
}

.baseFooter .flex-end {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 18px !important;
  flex-shrink: 0 !important;
}

.baseFooter .ml-\[32px\] {
  margin-left: 0 !important;
  width: auto !important;
  max-width: 180px !important;
  color: rgba(255, 255, 255, .86) !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
  text-align: left !important;
}

.baseFooter img {
  width: 76px !important;
  height: 76px !important;
  flex-shrink: 0 !important;
}

.site-visitor-stat {
  width: min(1216px, 100%) !important;
}

@media (max-width: 767px) {
  .baseFooter > div {
    flex-direction: column !important;
    justify-content: center !important;
    gap: 14px !important;
    text-align: center !important;
  }

  .baseFooter .flex-end {
    flex-direction: column !important;
    justify-content: center !important;
    gap: 10px !important;
  }

  .baseFooter .ml-\[32px\] {
    max-width: none !important;
    text-align: center !important;
  }
}

/* Center the visitor statistic line in the footer. */
.site-visitor-stat {
  display: block !important;
  align-self: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

/* Force visitor statistic to be a centered full-width footer row. */
.baseFooter .site-visitor-stat {
  display: block !important;
  width: 100% !important;
  max-width: 1216px !important;
  flex: 0 0 100% !important;
  margin: 18px auto 0 !important;
  padding-top: 14px !important;
  border-top: 1px solid rgba(255, 255, 255, .12) !important;
  text-align: center !important;
  clear: both !important;
}

.baseFooter .site-visitor-stat::before,
.baseFooter .site-visitor-stat::after {
  content: "";
  display: table;
  clear: both;
}


.site-visitor-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 24px;
  margin: 0 5px;
  padding: 0 10px;
  border: 1px solid rgba(10, 132, 255, .45);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(222,241,255,.95) 100%);
  color: #0a66c2;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 1px 0 rgba(255,255,255,.95) inset, 0 8px 18px rgba(10,132,255,.18);
  vertical-align: middle;
}
