:root {
  --primary-color: #101828;
  --secondary-color: #f8f9fa;
  --accent-color: #ffc107;
  --text-color: #333;
  --border-color: #dee2e6;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
  padding: 2rem 0;
}

/* Container and Content Styles */
.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.page-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 3px solid #E9BD79 !important;
}

.page-header .display-4 {
  font-weight: 700;
  color: var(--primary-color);
}

.page-header .text-muted {
  font-weight: 400;
}

/* Content Section Styles */
.content-section {
  margin-bottom: 3rem;
  scroll-margin-top: 2rem;
}

.section-header {
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #E9BD79;
}

.section-header h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0;
}

.subsection {
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid #e9ecef;
}

.subsection h4 {
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Contact Info Styles */
.contact-info {
  background-color: var(--secondary-color);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border-left: 4px solid var(--primary-color);
  margin-top: 1rem;
}

.contact-item {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item i {
  color: var(--primary-color);
  width: 20px;
}

.contact-item a {
  color: var(--primary-color);
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* Back to Top Button */
.btn-floating {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: none;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-floating:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  background-color: #1e3d72;
  border-color: #1e3d72;
}

.btn-floating.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Typography Styles */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  text-align: justify;
}

ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
  text-align: justify;
}

/* Link Styles */
a {
  color: var(--primary-color);
  transition: color 0.3s ease;
}

a:hover {
  color: #1e3d72;
}

/* Footer Styles */
footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
}

/* Responsive Styles */
@media (max-width: 767.98px) {
  body {
    padding: 1rem 0;
  }

  .content-wrapper {
    padding: 0 1rem;
  }

  .page-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }

  .page-header .display-4 {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 1.25rem;
  }

  .subsection {
    padding-left: 0.5rem;
  }

  .contact-info {
    padding: 1rem;
  }

  .contact-item {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .contact-item i {
    margin-bottom: 0.25rem;
  }
}

@media (max-width: 575.98px) {
  .content-section {
    margin-bottom: 2rem;
  }

  .section-header {
    margin-bottom: 1rem;
  }

  .subsection {
    margin-bottom: 1rem;
  }

  .page-header .display-4 {
    font-size: 1.75rem;
  }
}

/* Print Styles */
@media print {
  .btn-floating {
    display: none !important;
  }

  .content-wrapper {
    max-width: none;
    padding: 0;
  }

  .content-section {
    page-break-inside: avoid;
    margin-bottom: 1.5rem;
  }

  .section-header {
    page-break-after: avoid;
  }

  .page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
  }

  body {
    padding: 0;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Icon styles */
.fas {
  color: var(--primary-color);
}

/* Enhanced readability */
.content-section p,
.content-section li {
  font-size: 1rem;
  line-height: 1.7;
}

/* Highlight important sections */
.subsection {
  background-color: rgba(44, 90, 160, 0.02);
  padding: 1rem;
  border-radius: 0.25rem;
  border-left: 3px solid var(--primary-color);
}
