/* ============================================
   Global Styles and Reset
   ============================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

/* ============================================
   Body and Typography
   ============================================ */

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
  margin-top: 30px;
  margin-bottom: 30px;
  margin-left: 50px;
  margin-right: 200px;
  padding: 20px;
}

/* ============================================
   Headings
   ============================================ */

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 1.5rem 0 1rem 0;
  color: #1a1a1a;
  line-height: 1.2;
  border-bottom: 3px solid #007bff;
  padding-bottom: 0.5rem;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem 0;
  color: #333;
  line-height: 1.3;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem 0;
  color: #555;
  line-height: 1.3;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem 0;
  color: #666;
}

h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.75rem 0 0.4rem 0;
  color: #777;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0.75rem 0 0.4rem 0;
  color: #888;
}

/* ============================================
   Paragraphs and Text Elements
   ============================================ */

p {
  margin: 1rem 0;
  line-height: 1.6;
}

b, strong {
  font-weight: 700;
  color: #1a1a1a;
}

i, em {
  font-style: italic;
  color: #666;
}

/* ============================================
   Links
   ============================================ */

a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover {
  color: #0056b3;
  text-decoration: underline;
}

a:active {
  color: #003d82;
}

a:visited {
  color: #551a8b;
}

/* ============================================
   Lists
   ============================================ */

ul, ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

li {
  margin: 0.5rem 0;
  line-height: 1.6;
}

/* ============================================
   Line Breaks and Dividers
   ============================================ */

br {
  margin: 0.5rem 0;
}

hr {
  margin: 2rem 0;
  border: none;
  border-top: 2px solid #ddd;
}

/* ============================================
   Code and Pre-formatted Text
   ============================================ */

code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  background-color: #f4f4f4;
  color: #d73a49;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  margin: 0 0.2rem;
}

pre {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  background-color: #f4f4f4;
  color: #333;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 5px;
  overflow-x: auto;
  border-left: 4px solid #007bff;
}

pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
  margin: 0;
}

/* ============================================
   Blockquotes
   ============================================ */

blockquote {
  margin: 1.5rem 0;
  padding: 1rem;
  border-left: 4px solid #007bff;
  background-color: #f0f7ff;
  color: #555;
  font-style: italic;
}

/* ============================================
   Images
   ============================================ */

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
  border-radius: 5px;
}

/* ============================================
   Tables
   ============================================ */

table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  background-color: white;
}

thead {
  background-color: #f0f0f0;
}

th {
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #ddd;
  color: #333;
}

td {
  padding: 0.75rem;
  border-bottom: 1px solid #ddd;
  color: #666;
}

tr:hover {
  background-color: #f9f9f9;
}

/* ============================================
   Forms
   ============================================ */

form {
  margin: 1.5rem 0;
}

label {
  display: block;
  margin: 0.5rem 0 0.25rem 0;
  font-weight: 500;
  color: #333;
}

input, textarea, select {
  width: 100%;
  padding: 0.75rem;
  margin: 0.5rem 0 1rem 0;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: white;
  color: #333;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

button {
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background-color: #007bff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

button:active {
  background-color: #003d82;
  transform: translateY(0);
}

/* ============================================
@media (max-width: 768px) {
  body {
    margin-top: 15px;
    margin-bottom: 15px;
    margin-left: 15px;
    margin-right: 15px;
    padding: 15px;
  }ody {
    margin: 15px;
    padding: 15px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  input, textarea, select {
    width: 100%;
@media (max-width: 480px) {
  body {
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 10px;
    margin-right: 10px;
    padding: 10px;
    font-size: 0.95rem;
  } margin: 10px;
    padding: 10px;
    font-size: 0.95rem;
  }

  h1 {
    font-size: 1.75rem;
    border-bottom: 2px solid #007bff;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.1rem;
  }
}

/* ============================================
   Utility Classes
   ============================================ */

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-muted {
  color: #999;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
