html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

html {
  position: relative;
  min-height: 100%;
}

main {
  flex: 1;
  padding: 0;
}

/* Focus and Interaction States */
.btn:focus, 
.btn:active:focus, 
.btn-link.nav-link:focus, 
.form-control:focus, 
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Button Enhancements */
.btn {
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background-color: #258cfb;
  border-color: #258cfb;
}

.btn-primary:hover {
  background-color: #1878e2;
  border-color: #1878e2;
}

.btn-success {
  background-color: #28a745;
  border-color: #28a745;
}

.btn-success:hover {
  background-color: #218838;
  border-color: #218838;
}

/* Navigation */
.navbar {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  transition: color 0.2s ease;
}

.navbar-brand:hover {
  color: #0c3d20 !important;
}

.nav-link {
  transition: color 0.2s ease;
  margin: 0 0.25rem;
  font-weight: 500;
  color: #333 !important;
}

.nav-link:hover {
  color: #258cfb !important;
}

/* Form Controls */
.form-control {
  border: 1px solid #ddd;
  border-radius: 0.375rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: #258cfb;
  box-shadow: 0 0 0 0.2rem rgba(37, 140, 251, 0.1);
}

.form-check-input {
  border-color: #ddd;
  cursor: pointer;
}

.form-check-input:checked {
  background-color: #258cfb;
  border-color: #258cfb;
}

/* Footer */
footer {
  background-color: #f8f9fa;
  border-top: 1px solid #e9ecef;
  padding: 2rem 0;
  color: #666;
  margin-top: auto;
}

.footer-link {
  color: #0c3d20;
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
}

.footer-link:hover {
  color: #258cfb;
  text-decoration: underline;
}

/* Color Theme Classes */
.MidnightGreenbackground {
  background-color: #0c3d20;
  color: white;
  transition: background-color 0.2s ease;
}

.Gunmetalbackground {
  background-color: #161d27;
  color: white;
  transition: background-color 0.2s ease;
}

.ForestGreenbackground {
  color: white;
  background-color: #8e8609;
  transition: background-color 0.2s ease;
}

.Midnightcolor {
  color: #0c3d20;
  font-weight: 500;
}

.Gunmetalcolor {
  color: #161d27;
  font-weight: 500;
}

.ForestGreencolor {
  color: #8e8609;
  font-weight: 500;
}

.Lightbright {
  background-color: #f7f7f7;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: #0c3d20;
  margin-bottom: 1rem;
}

a {
  color: #258cfb;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #1878e2;
  text-decoration: underline;
}

/* Container and Spacing */
.container-lg {
  max-width: 1140px;
}

.container, 
.container-fluid,
.container-lg {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Responsive Improvements */
@media (max-width: 767px) {
  body {
    margin-bottom: 0;
  }
  
  .container, 
  .container-fluid,
  .container-lg {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  h1, h2 {
    font-size: 1.5rem;
  }

  .display-5 {
    font-size: 2rem;
  }
}

/* Utility Classes for Better Spacing */
.mb-custom {
  margin-bottom: 1.5rem;
}

.mt-custom {
  margin-top: 1.5rem;
}

.py-custom {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

/* Box Shadows for Depth */
.box-shadow {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.box-shadow-md {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Loading and Disabled States */
button:disabled,
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Print Styles */
@media print {
  body {
    margin: 0;
    background: white;
  }
  
  footer {
    display: none;
  }
}

/* Hero Section Gradient */
.bg-gradient-light {
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f2f5 100%);
}

/* Card Transition Effect */
.transition-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.transition-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12) !important;
}

/* Lorem Output Styling */
.lorem-output {
  background-color: #fff;
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  padding: 1.5rem;
  line-height: 1.8;
  max-height: 400px;
  overflow-y: auto;
}

.lorem-output p {
  margin-bottom: 1rem;
}

.lorem-output p:last-child {
  margin-bottom: 0;
}

.lorem-output strong {
  color: #0c3d20;
  font-weight: 600;
}

.lorem-output a {
  color: #258cfb;
  text-decoration: underline;
}

.lorem-output h3,
.lorem-output h4,
.lorem-output h5 {
  color: #0c3d20;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.lorem-output ul,
.lorem-output ol {
  margin-bottom: 1rem;
  margin-left: 2rem;
}

.lorem-output li {
  margin-bottom: 0.5rem;
}

/* Accordion Styling */
.accordion-button {
  background-color: transparent;
  color: #333;
  border: none;
  padding: 0.75rem 0;
  text-decoration: none;
}

.accordion-button:not(.collapsed) {
  background-color: transparent;
  color: #258cfb;
  box-shadow: none;
}

.accordion-button:focus {
  border-color: transparent;
  box-shadow: none;
  color: #258cfb;
}

.accordion-button:hover {
  color: #258cfb;
}

.accordion-body {
  padding: 1rem 0;
  border-top: none;
}

/* Badge Styling */
.badge {
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Breadcrumb */
.breadcrumb {
  background-color: transparent;
  padding: 0;
  margin: 0;
}

.breadcrumb-item.active {
  color: #666;
}

/* Read More Button */
.read-more-btn {
  display: inline-block;
  color: #258cfb;
  font-weight: 500;
  border: 1px solid #258cfb;
  padding: 0.5rem 1.5rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

.read-more-btn:hover {
  background-color: #258cfb;
  color: white;
  text-decoration: none;
}

/* Card Enhancements */
.card {
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  border-radius: 0.5rem 0.5rem 0 0;
}

.card-body {
  line-height: 1.7;
}

/* Badge Colors */
.badge-primary {
  background-color: #258cfb;
}

.badge-success {
  background-color: #28a745;
}

.badge-warning {
  background-color: #ffc107;
  color: #333;
}

/* Links */
kbd {
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  padding: 0.2rem 0.4rem;
  font-family: monospace;
  font-size: 0.85em;
}

/* Sticky Elements */
.sticky-top {
  position: sticky;
  top: 20px;
  z-index: 10;
}

/* Text Utilities */
.text-sm {
  font-size: 0.875rem;
}

.fw-semibold {
  font-weight: 600;
}

/* Gap Utilities */
.gap-3 {
  gap: 1rem;
}

.gap-4 {
  gap: 1.5rem;
}

/* Prose Content Styling */
.prose-content {
  line-height: 1.8;
}

.prose-legal p {
  margin-bottom: 1rem;
  color: #666;
}

.prose-legal ul,
.prose-legal ol {
  margin-bottom: 1rem;
}

.prose-legal li {
  margin-bottom: 0.5rem;
  color: #666;
}

/* Alert Styles */
.alert {
  border-radius: 0.375rem;
  border: none;
}

.alert-info {
  background-color: #e7f3ff;
  color: #004085;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
}

/* Spacing Adjustments */
.gap-4 > * {
  margin-right: 0;
}

.d-flex.gap-3 > * + * {
  margin-left: 1rem;
}

.d-flex.gap-4 > * + * {
  margin-left: 1.5rem;
}

/* Responsive Cards */
@media (max-width: 768px) {
  .transition-card:hover {
    transform: translateY(-2px);
  }

  .sticky-top {
    position: relative;
  }

  .card-body {
    padding: 1rem;
  }
}

/* Animation for smooth transitions */
* {
  transition-duration: 0.15s;
  transition-timing-function: ease-out;
  transition-property: color, background-color, border-color, box-shadow;
}

button, .btn, a, input, select, textarea {
  transition-duration: 0.2s;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}



