/* Professional Documentation Theme with Header + Logo + Accent Color #A5002D */

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fafafa;
  margin: 0;
  padding: 0;
}

/* Header with Logo */
header {
  background: #2c3e50; /* ✅ Header background (you can change to #A5002D if you want) */
  color: white;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

header .logo img {
  max-height: 40px;
  max-width: 120px;
  object-fit: contain;
  object-position: center;
  border-radius: 4px;
  padding: 2px;
}

header .logo span {
  font-size: 1.4em;
  font-weight: 600;
  letter-spacing: 0.5px;
}

header nav {
  display: flex;
  gap: 20px;
}

header nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background 0.2s;
}

header nav a:hover {
  background: rgba(255,255,255,0.1);
}

/* Main Content Container */
.container {
  max-width: 800px;
  margin: 80px auto 40px;
  padding: 30px;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-radius: 8px;
  position: relative;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: #2c3e50;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  border-bottom: 2px solid #A5002D; /* ✅ Accent color here */
  padding-bottom: 5px;
}

h1 {
  font-size: 2.2em;
  margin-top: 0;
}

h2 {
  font-size: 1.8em;
}

h3 {
  font-size: 1.4em;
}

/* Paragraphs */
p {
  margin-bottom: 1em;
}

/* Links */
a {
  color: #A5002D; /* ✅ Accent color for links */
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: #800020; /* ✅ Slightly darker on hover */
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin: 15px 0;
}

/* Code Blocks */
pre {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 16px;
  overflow-x: auto;
  margin: 1.5em 0;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95em;
  line-height: 1.4;
}

code {
  background: #f0f0f0;
  padding: 2px 4px;
  border-radius: 3px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95em;
}

/* Blockquotes */
blockquote {
  background: #f9f9f9;
  border-left: 4px solid #A5002D; /* ✅ Accent color for blockquotes */
  margin: 1.5em 0;
  padding: 0.5em 1em;
  font-style: italic;
  color: #555;
}

/* Lists */
ul, ol {
  padding-left: 1.5em;
  margin: 1em 0;
}

li {
  margin: 0.3em 0;
}

/* Tables */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5em 0;
  border: 1px solid #ddd;
}

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

th {
  background: #f2f2f2;
  font-weight: bold;
  border-bottom: 2px solid #A5002D; /* ✅ Accent color for table headers */
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    margin: 80px 20px 40px;
    padding: 20px;
  }

  h1 {
    font-size: 1.8em;
  }

  h2 {
    font-size: 1.5em;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  header nav {
    width: 100%;
    justify-content: space-around;
  }

  header .logo img {
    max-height: 30px;
    max-width: 100px;
  }
}
