:root {
  --primary-color: #910400;
  --secondary-color-white: #ffffff;
  --secondary-color-grey: #f4f4f4;
  --secondary-color-gold: #d4af37;
  --text-dark: #333333;
  --text-light: #666666;
  --font-base: 'Noto Sans Devanagari', sans-serif;
  --transition-speed: 0.3s;
}

body {
  font-family: var(--font-base);
  background-color: var(--secondary-color-grey);
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.6;
}

body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}
body.dark-mode .bg-white {
  background-color: #1e1e1e !important;
  color: #e0e0e0 !important;
}
body.dark-mode .text-dark {
  color: #e0e0e0 !important;
}

body.high-contrast {
  background-color: #000000;
  color: #ffffff;
}

a {
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}

/* Accessibility */
.sr-only:not(:focus):not(:active) {
  clip: rect(0 0 0 0); 
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap; 
  width: 1px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  z-index: 9999;
}

.skip-link:focus {
  top: 0;
}

/* Utilities */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.text-gold { color: var(--secondary-color-gold) !important; }
.bg-gold { background-color: var(--secondary-color-gold) !important; }

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
  color: var(--primary-color);
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color-gold);
}

.dark-mode .section-title {
  color: var(--secondary-color-gold);
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--secondary-color-white);
}

.btn-primary:hover {
  background-color: #7a0300;
  border-color: #7a0300;
}

.btn-gold {
  background-color: var(--secondary-color-gold);
  border-color: var(--secondary-color-gold);
  color: var(--text-dark);
}

.btn-gold:hover {
  background-color: #b5952f;
  border-color: #b5952f;
}

/* Back to Top */
#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  z-index: 1000;
  cursor: pointer;
}
#back-to-top:hover {
  background: var(--secondary-color-gold);
}
