/* =========================
   GLOBAL RESET & BASE STYLE
========================= */

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  line-height: 1.7;
  color: #222;
}


/* =========================
   HEADER SECTION
========================= */

header {
  background-color: #111;
  color: #ffffff;
  padding: 20px;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 28px;
  color: #ffffff;
}


/* =========================
   NAVIGATION BAR
========================= */

nav {
  background-color: #222;
  padding: 12px;
  text-align: center;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 12px;
  font-size: 14px;
  font-weight: 500;
}

nav a:hover {
  text-decoration: underline;
}


/* =========================
   MAIN CONTENT AREA
========================= */

main {
  max-width: 900px;
  margin: 30px auto;
  background-color: #ffffff;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}


/* =========================
   HEADINGS
========================= */

h1, h2, h3 {
  color: #111;
  margin-top: 25px;
}

/* IMPORTANT FIX: Prevent header headings from turning black */
header h1,
header h2,
header h3 {
  color: #ffffff;
}


/* =========================
   TABLE STYLING
========================= */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

table th,
table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

table th {
  background-color: #f2f2f2;
  font-weight: bold;
}

table tr:nth-child(even) {
  background-color: #f9f9f9;
}


/* =========================
   LISTS
========================= */

ul {
  padding-left: 20px;
}

ul li {
  margin-bottom: 8px;
}


/* =========================
   AUTHOR BOX
========================= */

.author-box {
  background-color: #f1f1f1;
  padding: 15px;
  margin-top: 30px;
  border-left: 4px solid #111;
}


/* =========================
   FAQ SECTION
========================= */

.faq {
  margin-top: 30px;
}

.faq h3 {
  margin-bottom: 5px;
}


/* =========================
   FOOTER
========================= */

footer {
  background-color: #111;
  color: #ffffff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-size: 14px;
}

.toc-box{
background:#f5f5f5;
padding:15px;
border:1px solid #ddd;
margin:20px 0;
}

.toc-box ul{
margin:10px 0 0;
padding-left:18px;
}

.toc-box a{
text-decoration:none;
color:#333;
font-size:14px;
}

.toc-box a:hover{
text-decoration:underline;
}