/* EDocGen docs theme - aligned with www.edocgen.com examples pages (#00d999) */

:root {
  --eg-green: #00d999;
  --eg-green-dark: #00b87f;
  --eg-text: #838282;
  --eg-heading: #2f2f2f;
  --eg-nav: #636363;
  --eg-line: #e7e7e7;
  --eg-bg: #fff;
  --eg-muted-bg: #f9f9f9;
  --eg-code-bg: #1e1e1e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  color: var(--eg-text);
  background: var(--eg-bg);
  line-height: 1.7;
  font-size: 15px;
}

a { color: var(--eg-green); text-decoration: none; }
a:hover { color: var(--eg-green-dark); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-family: Raleway, "Open Sans", sans-serif;
  color: var(--eg-heading);
  font-weight: 700;
  line-height: 1.35;
}

/* Navbar */
#menu-area { position: relative; z-index: 100; }
.main-navbar {
  background: #fff;
  border: none;
  border-bottom: 1px solid var(--eg-line);
  box-shadow: 0 2px 4px 0 #f3f3f3;
  margin-bottom: 0;
  border-radius: 0;
  min-height: 70px;
}
.main-navbar .container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.navbar-brand-logo img {
  height: 72px;
  width: auto;
  display: block;
}
.main-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
.main-nav li { margin: 0; }
.main-nav a {
  color: var(--eg-nav);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.main-nav a:hover { color: var(--eg-green); text-decoration: none; }
.main-nav .contact-email {
  color: var(--eg-nav);
  font-size: 13px;
  text-transform: none;
}
.main-nav .book-demo {
  color: green !important;
  font-weight: 700;
}

/* Blog banner */
#blog-banner {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: center;
  background: #1a1a1a;
}
#blog-banner .banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.blog-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 3.5rem 0;
  background: rgba(0, 0, 0, 0.35);
}
.blog-banner-area h1 {
  color: #fff !important;
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.35rem);
  margin: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Content */
#blog {
  padding: 2.5rem 0 3rem;
  background: #fff;
}
.blog-details-content {
  max-width: 920px;
  margin: 0 auto;
}
.blog-details-content h2 {
  color: var(--eg-heading);
  font-size: 1.55rem;
  margin: 2.25rem 0 0.85rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--eg-green);
  display: inline-block;
  width: auto;
  max-width: 100%;
}
.blog-details-content h2:first-child { margin-top: 0; }
.blog-details-content h3 {
  color: var(--eg-heading);
  font-size: 1.2rem;
  margin: 1.6rem 0 0.55rem;
}
.blog-details-content h4 {
  color: var(--eg-heading);
  font-size: 1.05rem;
  margin: 1.25rem 0 0.45rem;
}
.blog-details-content p,
.blog-details-content li {
  color: var(--eg-text);
}
.blog-details-content ul,
.blog-details-content ol {
  padding-left: 1.35rem;
}
.blog-details-content li + li { margin-top: 0.35rem; }
.muted { color: #9a9a9a; }

/* Feature cards */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}
.feature {
  background: var(--eg-muted-bg);
  border: 1px solid var(--eg-line);
  border-bottom: 4px solid var(--eg-green);
  padding: 1.1rem 1.2rem;
}
.feature .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--eg-green);
  margin-bottom: 0.4rem;
  font-family: Raleway, sans-serif;
}
.feature h3 {
  margin: 0 0 0.4rem !important;
  font-size: 1rem !important;
  border: none !important;
}
.feature p {
  margin: 0;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.feature p code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Steps */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0 !important;
  margin: 1rem 0;
}
.steps > li {
  position: relative;
  padding: 0.85rem 0 0.85rem 3rem;
  border-top: 1px solid var(--eg-line);
}
.steps > li:last-child { border-bottom: 1px solid var(--eg-line); }
.steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.9rem;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--eg-green);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  font-family: Raleway, sans-serif;
}

/* Panels / callouts */
.panel {
  background: var(--eg-muted-bg);
  border: 1px solid var(--eg-line);
  border-left: 4px solid var(--eg-green);
  padding: 1rem 1.2rem;
  margin: 1.1rem 0;
}
.callout {
  background: #fff8e8;
  border: 1px solid #e6c35c;
  border-left: 4px solid #e6c35c;
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
}
.info {
  background: #eefbf6;
  border: 1px solid #b7e8d4;
  border-left: 4px solid var(--eg-green);
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
}
.success {
  background: #eaf8f2;
  border: 1px solid #9fd5be;
  border-left: 4px solid var(--eg-green);
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
}

/* Buttons */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.btn {
  display: inline-block;
  padding: 0.65rem 1.2rem;
  font-family: Raleway, sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none !important;
  border: 2px solid var(--eg-green);
  transition: background 0.2s, color 0.2s;
}
.btn-primary {
  background: var(--eg-green);
  color: #fff !important;
}
.btn-primary:hover {
  background: var(--eg-green-dark);
  border-color: var(--eg-green-dark);
  color: #fff !important;
}
.btn-secondary {
  background: #fff;
  color: var(--eg-green) !important;
}
.btn-secondary:hover {
  background: var(--eg-green);
  color: #fff !important;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--eg-line);
  vertical-align: top;
}
th {
  background: var(--eg-muted-bg);
  color: var(--eg-heading);
  font-family: Raleway, sans-serif;
}

/* Code */
code {
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 0.9em;
  background: #f0f0f0;
  color: #333;
  padding: 0.1em 0.35em;
  border-radius: 3px;
}
pre {
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  background: var(--eg-code-bg);
  color: #e8eef5;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.55;
  border-left: 4px solid var(--eg-green);
}
pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

/* Image placeholders */
.image-placeholder {
  margin: 1.25rem 0 0.5rem;
  border: none; /* Removes the dashed line completely */
  background: transparent; /* Removes the striped grey background */
  padding: 0;
  display: block;
}

.image-placeholder img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px; /* Optional: adds a subtle rounded corner to the image */
}

/* Make image span 100% width of the box */
.image-placeholder img {
  width: 100%;
  height: auto;
  display: block;
}

/* Caption styled to sit outside under the box */
.figure-caption {
  display: block;
  text-align: center;
  margin-top: 0.5rem;
  font-weight: 500;
  color: #888;
  font-size: 0.85rem;
  font-family: "Open Sans", sans-serif;
}

/* TOC */
.toc {
  background: var(--eg-muted-bg);
  border: 1px solid var(--eg-line);
  border-left: 4px solid var(--eg-green);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0 1.75rem;
}
.toc strong {
  color: var(--eg-heading);
  font-family: Raleway, sans-serif;
}
.toc ol { margin: 0.4rem 0 0; }

.field-list dt {
  font-weight: 700;
  color: var(--eg-heading);
  margin-top: 0.85rem;
  font-family: Raleway, sans-serif;
}
.field-list dd {
  margin: 0.25rem 0 0;
  color: var(--eg-text);
}

/* Popular posts strip */
#from-blog {
  background: var(--eg-muted-bg);
  padding: 2.5rem 0;
  border-top: 1px solid var(--eg-line);
}
#from-blog .tittle {
  color: var(--eg-heading);
  font-size: 1.5rem;
  margin: 0 0 1.25rem;
}
#from-blog .tittle span { color: var(--eg-green); }
.from-blog-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.from-blog-links a {
  display: block;
  background: #fff;
  border: 1px solid var(--eg-line);
  padding: 1rem;
  color: var(--eg-heading);
  font-family: Raleway, sans-serif;
  font-weight: 700;
  text-decoration: none;
}
.from-blog-links a:hover {
  color: var(--eg-green);
  border-color: var(--eg-green);
  text-decoration: none;
}
.from-blog-links span {
  display: block;
  margin-top: 0.35rem;
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--eg-text);
}

/* Footer */
#footer { background: #2a2a2a; color: #bbb; }
.footer-top {
  padding: 1.75rem 0;
  border-bottom: 1px solid #3a3a3a;
}
.footer-social {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-social a { color: #ccc; }
.footer-social a:hover { color: var(--eg-green); }
.footer-bottom {
  padding: 1rem 0 1.35rem;
  text-align: center;
  font-size: 0.9rem;
}
.footer-bottom a { color: var(--eg-green); }
.footer-bottom p { margin: 0.35rem 0; color: #aaa; }
.footer-doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  margin-top: 0.75rem;
}

@media (max-width: 767px) {
  .navbar-brand-logo img { height: 56px; }
  .blog-overlay { padding: 2.25rem 0; }
  #blog { padding: 1.5rem 0 2rem; }
}
