html[data-theme="dark"] {
  --error-bg: #212124;
  --error-text: #478CD1;
  --error-subtext: #97979C;
   --error-text-small:#32649A;
  --error-btn-bg: #242426;
  --error-btn-text: #F5F5F5;
  --error-btn-border: #4D4D53;
  --error-icon-bg: #111e30;
}

html[data-theme="light"] {
  --error-bg: #ffffff;
  --error-text: #3475B5; 
  --error-text-small:#77A3CD;
  --error-subtext: #606060; 
  --error-btn-bg: #FBFBFB;
  --error-btn-text: #2B2B2B;
  --error-btn-border: #D1D1D6;
}

/* Error Section */
.error-section {
  background: var(--error-bg);
  color: var(--error-text);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 814px;
  padding: 100px 20px;
}

.error-wrapper {
  max-width: 1440px; 
  margin: 0 auto;
}

.error-icon {
  height: auto;
  margin-bottom: 32px;
  padding: 16px;
}

.error-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--error-text);
}

.error-subtitle {
  font-size: 6rem;
  font-weight: 600;
  color: var(--error-text);
  margin-bottom: 8px;
}

.error-text {
  color: var(--error-subtext);
  font-size: 1rem;
  margin-bottom: 32px;
  line-height: 1.6;
}

.btn-error-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--error-btn-bg);
  color: var(--error-btn-text);
  border: 1px solid var(--error-btn-border);
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-error-home:hover {
  border-color: var(--error-btn-border);
  background: var(--error-btn-border);
  color: var(--error-text);
}

/* === Responsive tweaks === */
@media (max-width: 991px) {
  .error-section {
    padding: 120px 32px;
  }
}
@media (max-width: 576px) {
  .error-section {
    padding: 80px 20px;
  }
  .error-title {
    font-size: 1.5rem;
  }
  .error-subtitle {
    font-size: 3rem;
  }
}
