/* Remove the decorative plus/svg pattern in the hero */
#hero .hero-bottom-svg {
  display: none !important;
}

/* ================================
   Credly iframe embed styling
   ================================ */

.credly-embed-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;     /* center badge + button */
  gap: 0.35rem;            /* spacing between badge and button */
  max-width: 420px;

  margin: 0 auto;          /* center block in page */
  text-align: center;
}

.credly-embed-wrapper iframe {
  width: 100%;
  border: 0;
  border-radius: 6px;
}

.credly-embed-wrapper .btn {
  margin: 0;               /* prevent bootstrap margins from adding space */
}

/* ================================
   Certifications spacing cleanup
   ================================ */

/* Tighten space below cert headings */
.page-content h2 {
  margin-bottom: 0.5rem;
}

/* Reduce space above the badge block */
.page-content h2 + .credly-embed-wrapper {
  margin-top: 0.5rem;
}

/* Tighten space below Verify button */
.credly-embed-wrapper {
  margin-bottom: 0.75rem;
}

/* ================================
   Certifications page intro centering
   ================================ */

/* ================================
   Certifications-only centering
   (anchors off your Credly profile link)
   ================================ */

/* Center the "View / Verify All on Credly" line */
.page-content p:has(a[href*="credly.com/users/"]) {
  text-align: center;
}

/* Make that link look like a button AND center it */
.page-content p:has(a[href*="credly.com/users/"]) a {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  border: 1px solid #0d6efd;
  color: #0d6efd;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.15s ease-in-out;
}

.page-content p:has(a[href*="credly.com/users/"]) a:hover {
  background-color: #0d6efd;
  color: #fff;
}

/* Center ONLY the paragraph immediately above the Credly button
   by centering the first paragraph on pages that contain that Credly users link */
.page-content:has(a[href*="credly.com/users/"]) > p:first-of-type {
  text-align: center;
}

/* Style "View / Verify All on Credly" as a button */
.page-content a[href*="credly.com/users"] {
  display: inline-block;
  margin: 0.75rem auto 0;
  padding: 0.55rem 1rem;

  border-radius: 6px;
  border: 1px solid #0d6efd;
  background-color: transparent;

  color: #0d6efd;
  font-weight: 500;
  text-decoration: none;

  transition: all 0.15s ease-in-out;
}

/* Hover effect */
.page-content a[href*="credly.com/users"]:hover {
  background-color: #0d6efd;
  color: #fff;
  text-decoration: none;
}
/* Center certification section titles */
.page-content h2 {
  text-align: center;
}


/* Reduce spacing around horizontal rules */
.page-content hr {
  margin: 1rem 0;
}


/* Force override for list indentation inside page content */
.page-content ul,
.page-content ol {
  padding-left: 1.0em !important;
  text-indent: 0 !important;
}

.page-content li {
  text-indent: 0 !important;
  padding-left: 0 !important;
}

/* Contact page layout */
.contact-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

/* Form layout */
.contact-form {
  display: grid;
  gap: 0.55rem;           /* tighter vertical spacing */
  margin-top: 0.75rem;
}

.contact-form label {
  display: grid;
  gap: 0.25rem;           /* label ? input spacing */
  font-weight: 600;
}

/* Inputs */
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.45rem 0.6rem; /* smaller input padding */
  border-radius: 0.45rem;
  border: 1px solid rgba(0,0,0,0.25);
  font-size: 0.95rem;
}

/* Textarea tweaks */
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* Button */
.contact-form button {
  margin-top: 0.4rem;
  padding: 0.55rem 0.9rem;
  border-radius: 0.45rem;
  border: 0;
  cursor: pointer;
  font-size: 0.95rem;
}

/* Notes / misc */
.contact-note {
  opacity: 0.85;
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
}

.hp-field {
  display: none;
}

.contact-form label {
  display: grid;
  gap: 0.15rem;
  font-weight: 600;
}

.contact-form label strong {
  margin-bottom: 0;
  line-height: 1.1;
  display: inline-block;
}

/* ===== TOC cleanup (override theme single.css) ===== */

/* each TOC item gets breathing room */
#single aside.toc .toc-content ul li,
#single aside.toc .toc-content ol li {
  margin: 0 0 0.85rem 0 !important;   /* spacing between items */
  line-height: 1.45 !important;
}

/* make the whole entry behave like a "row" so wrapped text looks neat */
#single aside.toc .toc-content ul li a,
#single aside.toc .toc-content ol li a {
  display: block !important;
  padding: 0.35rem 0.4rem !important;
  border-radius: 8px !important;
  white-space: normal !important;     /* allow wrapping cleanly */
}

/* subtle hover so entries are visually separated */
#single aside.toc .toc-content ul li a:hover,
#single aside.toc .toc-content ol li a:hover {
  background: rgba(255, 255, 255, 0.06) !important;
}

/* Default divider (works in light mode too) */
#single aside.toc .toc-content li {
  padding-bottom: 0.6rem;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

/* Dark mode divider */
html[data-theme="dark"] #single aside.toc .toc-content li,
body[data-theme="dark"] #single aside.toc .toc-content li,
.dark #single aside.toc .toc-content li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}


/* Remove divider from last item */
#single aside.toc .toc-content li:last-child {
  border-bottom: none;
}

/* Dark mode navbar search styling (Bootstrap override) */
.dark #search-desktop,
.dark #search-mobile {
  background-color: #1f2328 !important;
  color: #e6e6e6 !important;
  border: 1px solid #2f3338 !important;
}

/* Placeholder text */
.dark #search-desktop::placeholder,
.dark #search-mobile::placeholder {
  color: #9aa0a6 !important;
}

/* Focus state */
.dark #search-desktop:focus,
.dark #search-mobile:focus {
  background-color: #23272e !important;
  border-color: #3b82f6 !important; /* optional accent */
  outline: none !important;
  box-shadow: none !important;
}

/* Dark mode: make navbar search inputs subtle (override Bootstrap/theme) */
html.dark header#profileHeader input.form-control,
body.dark header#profileHeader input.form-control {
  background-color: rgba(255, 255, 255, 0.06) !important;
  color: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
}

html.dark header#profileHeader input.form-control::placeholder,
body.dark header#profileHeader input.form-control::placeholder {
  color: rgba(255, 255, 255, 0.55) !important;
  opacity: 1 !important;
}

html.dark header#profileHeader input.form-control:focus,
body.dark header#profileHeader input.form-control:focus {
  background-color: rgba(255, 255, 255, 0.09) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  outline: none !important;
  box-shadow: none !important;
}

.contact-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.contact-modal-content {
  background: #1e1e1e;
  color: #fff;
  padding: 24px 32px;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.contact-modal-content button {
  margin-top: 16px;
  padding: 8px 18px;
  border-radius: 6px;
  border: none;
  background: #3b82f6;
  color: white;
  cursor: pointer;
}

/* ===============================
   Home page CTA buttons
   Theme-aware (light + dark)
   =============================== */

/* Layout */
.home-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

/* Base styles = LIGHT MODE */
.home-cta a {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;

  background-color: #f9fafb;
  color: #111827;
  border: 1px solid #d1d5db;
}

/* Primary button emphasis (light mode) */
.home-cta a.primary {
  border-color: #6b7280;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Hover (light mode) */
.home-cta a:hover {
  background-color: #f3f4f6;
  border-color: #4b5563;
  transform: translateY(-1px);
}

/* ===============================
   DARK MODE overrides
   body gains class "dark"
   =============================== */

body.dark .home-cta a {
  background-color: #111827;
  color: #e5e7eb;
  border: 1px solid #374151;
}

body.dark .home-cta a.primary {
  border-color: #6b7280;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}

body.dark .home-cta a:hover {
  background-color: #1f2937;
  border-color: #9ca3af;
}

/* ===============================
   Mobile-friendly wrapping
   =============================== */

@media (max-width: 600px) {
  .home-cta {
    flex-wrap: wrap;
  }
}
