:root {
  --primary-color: #5e2d8f;
  --primary-dark: #4a1f6b;
  --secondary-color: #f5f5f5;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --border-color: #e0e0e0;
  --white: #ffffff;
  --bg-light: #fafafa;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white);
}

.navbar {
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.navbar-brand {
  color: var(--primary-color) !important;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
}

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  transition: color 0.3s ease;
  margin-left: 1rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color) !important;
}

.hero-section {
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  margin-bottom: 3rem;
}

.hero-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.hero-overlay {
  position: relative;
  z-index: 1;
}

.hero-overlay h1 {
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-overlay .lead {
  font-size: 1.3rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(94, 45, 143, 0.3);
}

.btn-outline-light {
  color: var(--white);
  border-color: var(--white);
}

.btn-outline-light:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

.card {
  border-radius: 8px;
  transition: all 0.3s ease;
  border: none;
  background-color: var(--white);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1) !important;
}

.card-title {
  color: var(--primary-color);
  font-weight: 600;
}

.card-text {
  color: var(--text-light);
}

.border-left-primary {
  border-left: 4px solid var(--primary-color);
}

.border-left-secondary {
  border-left: 4px solid #3498db;
}

.border-left-danger {
  border-left: 4px solid #e74c3c;
}

.alert {
  border: none;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.alert-light {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.alert-heading {
  color: var(--primary-color);
  font-weight: 600;
}

img {
  border-radius: 8px;
  max-width: 100%;
  height: auto;
  display: block;
}

.form-group label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-control {
  border-color: var(--border-color);
  border-radius: 6px;
  padding: 0.75rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(94, 45, 143, 0.15);
}

.form-check-label {
  color: var(--text-dark);
  margin-left: 0.5rem;
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

footer {
  background-color: var(--text-dark);
  color: var(--white);
  margin-top: 5rem;
  padding: 3rem 0 1rem;
}

footer h5 {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 1rem;
}

footer a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--white);
  text-decoration: none;
}

.text-white-50 {
  color: rgba(255, 255, 255, 0.5) !important;
}

table {
  margin: 1.5rem 0;
  border-collapse: collapse;
}

table th {
  background-color: var(--bg-light);
  color: var(--text-dark);
  font-weight: 600;
  padding: 0.75rem;
  text-align: left;
  border-bottom: 2px solid var(--primary-color);
}

table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

table tbody tr:hover {
  background-color: var(--bg-light);
}

ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

.list-unstyled li {
  margin-bottom: 0.75rem;
}

.sticky-top {
  top: 0;
  z-index: 100;
}

main {
  min-height: calc(100vh - 200px);
}

@media (max-width: 768px) {
  .hero-section {
    height: 350px;
  }

  .hero-overlay h1 {
    font-size: 1.75rem;
  }

  .hero-overlay .lead {
    font-size: 1rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .nav-link {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .fixed-bottom {
    position: fixed !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
  }

  .fixed-bottom .container {
    flex-direction: column;
  }

  .fixed-bottom button {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    height: 250px;
  }

  .hero-overlay h1 {
    font-size: 1.5rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
    border-left: 3px solid var(--primary-color);
  }

  footer .row {
    text-align: center;
  }

  footer .col-md-4 {
    margin-bottom: 1.5rem;
  }

  .fixed-bottom .container {
    padding: 1rem 0.5rem;
  }

  .fixed-bottom p {
    font-size: 0.85rem;
  }
}
