:root {
  --dx-red: #c8102e;
  --dx-red-dark: #a00d25;
  --dx-dark: #1a1a1a;
  --dx-gray: #333333;
  --dx-light: #f4f4f4;
  --dx-border: #dddddd;
  --dx-white: #ffffff;
  --text: #222222;
  --text-muted: #555555;
  --max: 1200px;
  --font: Arial, Helvetica, "Segoe UI", sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--dx-white);
}

a {
  color: var(--dx-red);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 15px;
}

/* Header */
.site-header {
  background: var(--dx-white);
  border-bottom: 1px solid var(--dx-border);
  position: relative;
  z-index: 100;
}

.header-top {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 15px;
  min-height: 60px;
}

.logo {
  display: block;
  flex-shrink: 0;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo-img {
  display: block;
  height: 42px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  flex-shrink: 0;
}

.header-note {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.header-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--dx-dark);
}

.header-link:hover {
  color: var(--dx-red);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--dx-border);
  padding: 7px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--dx-dark);
}

/* Secondary Nav */
.secondary-nav {
  background: #f8f8f8;
  border-top: 1px solid var(--dx-border);
  border-bottom: 1px solid var(--dx-border);
}

.secondary-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.secondary-nav a {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dx-dark);
  text-decoration: none;
}

.secondary-nav a:hover {
  background: #eee;
  color: var(--dx-red);
  text-decoration: none;
}

/* Hero split: text left, 901x521 slideshow right */
.hero-split {
  background: linear-gradient(90deg, #f0f0f0 0%, #ffffff 50%);
  border-bottom: 1px solid var(--dx-border);
  padding: 28px 0;
}

.hero-split-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 901px;
  gap: 28px;
  align-items: center;
}

.hero-left {
  min-width: 0;
}

.hero-badge {
  display: inline-block;
  background: var(--dx-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.hero-left h1 {
  font-size: 26px;
  color: var(--dx-dark);
  margin-bottom: 10px;
  line-height: 1.25;
}

.hero-desc {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 15px;
  max-width: 340px;
}

.btn-red {
  display: inline-block;
  background: var(--dx-red);
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 3px;
  text-decoration: none !important;
}

.btn-red:hover {
  background: var(--dx-red-dark);
}

/* Slideshow 901 x 521 */
.hero-right {
  justify-self: end;
}

.slideshow {
  position: relative;
  width: 901px;
  height: 521px;
  overflow: hidden;
  background: #111;
  border: 1px solid var(--dx-border);
}

.slides-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.6s ease;
  will-change: transform;
}

.slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  display: block;
  text-decoration: none;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 16px;
  text-align: center;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 2px;
}

.slide-btn:hover {
  background: rgba(0, 0, 0, 0.75);
}

.slide-btn.prev {
  left: 10px;
}

.slide-btn.next {
  right: 10px;
}

.slide-dots {
  position: absolute;
  bottom: 52px;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.slide-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
}

.slide-dots button.active {
  background: #fff;
}

/* Quick Access */
.quick-access-block {
  background: var(--dx-white);
  border-bottom: 1px solid var(--dx-border);
  padding: 24px 0;
}

.quick-access-block .hero-panel {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--dx-border);
  padding: 18px 20px;
}

.hero-panel h2 {
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--dx-dark);
  border-bottom: 2px solid var(--dx-red);
  padding-bottom: 6px;
  display: inline-block;
}

.quick-list {
  list-style: none;
}

.quick-list li {
  border-bottom: 1px solid #eee;
}

.quick-list li:last-child {
  border-bottom: none;
}

.quick-list a {
  display: block;
  padding: 9px 0;
  font-weight: 600;
  color: var(--dx-dark);
  text-decoration: none;
}

.quick-list a:hover {
  color: var(--dx-red);
}

/* Resource Cards */
.exclusives {
  padding: 36px 0 40px;
  background: var(--dx-white);
}

.section-title {
  text-align: center;
  font-size: 24px;
  color: var(--dx-dark);
  margin-bottom: 24px;
  font-weight: 700;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--dx-red);
  margin: 8px auto 0;
}

.card-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.promo-card {
  border: 1px solid var(--dx-border);
  background: #fff;
  overflow: hidden;
}

.promo-card-header {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  letter-spacing: 0.3px;
}

.promo-card-header.red {
  background: var(--dx-red);
}

.promo-card-header.dark {
  background: var(--dx-dark);
}

.promo-card-body {
  padding: 14px 14px 16px;
}

.promo-card-body p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  min-height: 54px;
}

.promo-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--dx-red);
}

.promo-link:hover {
  text-decoration: underline;
}

/* Content Blocks */
.content-block {
  padding: 36px 0;
  border-top: 1px solid var(--dx-border);
}

.content-block.alt {
  background: var(--dx-light);
}

.section-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 22px;
  color: var(--text-muted);
  font-size: 14px;
}

/* SDR List */
.sdr-list-box {
  background: #fff;
  border: 1px solid var(--dx-border);
  max-width: 780px;
  margin: 0 auto 18px;
}

.sdr-list-box h3 {
  background: var(--dx-dark);
  color: #fff;
  font-size: 14px;
  padding: 10px 16px;
  margin: 0;
}

.sdr-list {
  list-style: none;
}

.sdr-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}

.sdr-list li:last-child {
  border-bottom: none;
}

.sdr-list a {
  font-weight: 700;
  font-size: 14px;
  color: var(--dx-red);
}

.sdr-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.embed-note {
  max-width: 780px;
  margin: 0 auto 18px;
  font-size: 13px;
  color: var(--text-muted);
  background: #fff;
  border: 1px solid var(--dx-border);
  padding: 12px 16px;
}

.more-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.btn-outline {
  display: inline-block;
  border: 2px solid var(--dx-red);
  color: var(--dx-red) !important;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 3px;
  text-decoration: none !important;
}

.btn-outline:hover {
  background: var(--dx-red);
  color: #fff !important;
}

/* Info Table */
.info-table {
  background: #fff;
  border: 1px solid var(--dx-border);
  max-width: 900px;
  margin: 0 auto;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid #eee;
}

.info-row:last-child {
  border-bottom: none;
}

.info-row:nth-child(even) {
  background: #fafafa;
}

.info-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.info-main strong {
  font-size: 14px;
  color: var(--dx-dark);
}

.info-main span {
  font-size: 13px;
  color: var(--text-muted);
}

.btn-small {
  display: inline-block;
  background: var(--dx-red);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 3px;
  text-decoration: none !important;
  white-space: nowrap;
}

.btn-small:hover {
  background: var(--dx-red-dark);
}

.btn-small.muted {
  background: #999;
  cursor: default;
  pointer-events: none;
}

/* Solar embed */
.solar-wrap {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.solar-img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  border: 0;
  vertical-align: middle;
}

/* About */
.about-wrap {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.about-text p {
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 14px;
}

.about-side {
  background: #fff;
  border: 1px solid var(--dx-border);
  padding: 16px 18px;
}

.about-side h3 {
  font-size: 15px;
  color: var(--dx-dark);
  margin-bottom: 10px;
  border-bottom: 2px solid var(--dx-red);
  padding-bottom: 6px;
  display: inline-block;
}

.about-side ul {
  list-style: none;
}

.about-side li {
  padding: 6px 0;
  border-bottom: 1px solid #eee;
  font-size: 13px;
  color: var(--text-muted);
}

.about-side li:last-child {
  border-bottom: none;
}

.about-side li::before {
  content: "> ";
  color: var(--dx-red);
  font-weight: bold;
}

/* Footer */
.site-footer {
  background: var(--dx-dark);
  color: #ccc;
  padding: 36px 0 0;
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 24px;
  padding-bottom: 28px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.footer-logo span {
  font-size: 12px;
  font-weight: 600;
  color: #aaa;
}

.footer-col h4 {
  color: #fff;
  font-size: 13px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 6px;
}

.footer-col a {
  color: #bbb;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: none;
}

.fine {
  font-size: 12px;
  color: #999;
  line-height: 1.45;
}

.footer-bottom {
  border-top: 1px solid #333;
  text-align: center;
  padding: 14px 0;
  font-size: 12px;
  color: #777;
}

/* Responsive */
@media (max-width: 1180px) {
  .hero-split-inner {
    grid-template-columns: minmax(220px, 1fr) minmax(0, 901px);
    gap: 20px;
  }

  .slideshow {
    width: 100%;
    max-width: 901px;
    height: auto;
    aspect-ratio: 901 / 521;
  }
}

@media (max-width: 960px) {
  .hero-split-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-right {
    justify-self: center;
    width: 100%;
    max-width: 901px;
  }

  .slideshow {
    width: 100%;
    height: auto;
    aspect-ratio: 901 / 521;
  }

  .card-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .header-note {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .secondary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 2px solid var(--dx-red);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  }

  .secondary-nav.open {
    display: block;
  }

  .secondary-nav ul {
    flex-direction: column;
  }

  .secondary-nav a {
    padding: 12px 18px;
    border-bottom: 1px solid #eee;
  }

  .card-row {
    grid-template-columns: 1fr;
  }

  .info-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-left h1 {
    font-size: 22px;
  }
}
