/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/* === Table of Contents (wp-toc-box) === */
.wp-toc-box {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-top: 3px solid #3b82f6 !important;
  border-radius: 8px !important;
  margin: 24px 0 32px !important;
  max-width: 680px;
  font-size: 14px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.wp-toc-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 16px !important;
  background: #f1f5f9 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  user-select: none;
  cursor: default;
}
.wp-toc-header span {
  font-weight: 700 !important;
  font-size: 14px !important;
  color: #1e293b !important;
  letter-spacing: .01em;
}
.wp-toc-toggle {
  background: #fff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 20px !important;
  padding: 3px 12px !important;
  font-size: 12px !important;
  color: #3b82f6 !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all .15s;
  flex-shrink: 0;
  line-height: 1.5;
}
.wp-toc-toggle:hover {
  background: #eff6ff !important;
  border-color: #3b82f6 !important;
}

/* List items */
.wp-toc-list {
  margin: 0 !important;
  padding: 12px 16px 14px 34px !important;
  list-style: decimal !important;
  background: transparent !important;
  transition: max-height .25s ease, opacity .25s ease;
}
.wp-toc-box.toc-collapsed .wp-toc-list {
  display: none !important;
}
.wp-toc-list li {
  margin: 5px 0 !important;
  padding: 0 !important;
  line-height: 1.55 !important;
  background: none !important;
  list-style: inherit !important;
}
.wp-toc-list > li > a {
  color: #1d4ed8 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  font-size: 14px !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  display: inline !important;
}
.wp-toc-list > li > a:hover {
  color: #1e40af !important;
  text-decoration: underline !important;
  background: none !important;
}

/* Nested H3 list */
.wp-toc-list ol,
.wp-toc-list ul {
  margin: 4px 0 2px 8px !important;
  padding-left: 20px !important;
  list-style: lower-alpha !important;
  background: none !important;
}
.wp-toc-list ol li a,
.wp-toc-list ul li a {
  color: #475569 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  text-decoration: none !important;
  background: none !important;
  display: inline !important;
}
.wp-toc-list ol li a:hover,
.wp-toc-list ul li a:hover {
  color: #1d4ed8 !important;
  text-decoration: underline !important;
}

@media (max-width: 48em) {
  .wp-toc-box { max-width: 100% !important; }
}

/* === Featured Snippet / Top Summary === */
.featured-snippet {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  padding: 14px 18px;
  margin: 16px 0 20px;
  font-size: 15px;
  line-height: 1.65;
  color: #1e40af;
}
.featured-snippet p { margin: 0; color: inherit; }

/* === Callout Boxes === */
.wpaap-callout {
  border-radius: 8px;
  margin: 20px 0;
  overflow: hidden;
  border: 1px solid;
}
.wpaap-callout__title {
  font-weight: 700;
  font-size: 14px;
  padding: 10px 16px;
  line-height: 1.4;
}
.wpaap-callout__body {
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.75;
}
.wpaap-callout__body p { margin: 0 0 8px; }
.wpaap-callout__body p:last-child { margin-bottom: 0; }

/* Info — blue */
.wpaap-callout--info  { border-color: #93c5fd; background: #eff6ff; }
.wpaap-callout--info  .wpaap-callout__title { background: #dbeafe; color: #1d4ed8; }

/* Expert — purple */
.wpaap-callout--expert  { border-color: #c4b5fd; background: #f5f3ff; }
.wpaap-callout--expert  .wpaap-callout__title { background: #ede9fe; color: #6d28d9; }

/* Tip — amber */
.wpaap-callout--tip   { border-color: #fcd34d; background: #fffbeb; }
.wpaap-callout--tip   .wpaap-callout__title { background: #fef3c7; color: #92400e; }

/* Warning — red */
.wpaap-callout--warning { border-color: #fca5a5; background: #fef2f2; }
.wpaap-callout--warning .wpaap-callout__title { background: #fee2e2; color: #991b1b; }

/* === Checklist === */
.wpaap-checklist {
  list-style: none !important;
  padding: 14px 18px !important;
  margin: 16px 0 !important;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 8px;
}
.wpaap-checklist li {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  padding: 4px 0 !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  list-style: none !important;
  color: #1e293b !important;
  background: transparent !important;
}
.wpaap-checklist li::before { content: none !important; }
.wpaap-check-icon {
  color: #16a34a !important;
  font-weight: 700 !important;
  flex-shrink: 0 !important;
  margin-top: 1px !important;
  min-width: 16px;
}

/* === Checklist title === */
.wpaap-checklist-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #15803d !important;
  margin: 16px 0 2px !important;
  padding: 0 !important;
  border: none !important;
}

/* === FAQ Section === */
.wpaap-faq-section {
  margin: 24px 0;
}
.wpaap-faq-heading {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin: 0 0 14px !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid #3b82f6 !important;
}
.wpaap-faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}
.wpaap-faq-q {
  background: #f1f5f9;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 14px;
  color: #1e293b;
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  transition: background .15s;
}
.wpaap-faq-q:hover { background: #e8eef5; }
.wpaap-faq-item.wpaap-faq-open .wpaap-faq-q {
  border-bottom: 1px solid #e2e8f0;
}
.wpaap-faq-icon {
  flex-shrink: 0;
  font-size: 11px;
  color: #3b82f6;
  line-height: 1;
  transition: transform .2s;
}
.wpaap-faq-a {
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.7;
  color: #334155;
  background: #fff;
}
.wpaap-faq-a p { margin: 0 0 6px; }
.wpaap-faq-a p:last-child { margin-bottom: 0; }

/* === Internal Link === */
.wpaap-internal-link {
  display: block;
  padding: 10px 14px;
  background: #f0f9ff;
  border-left: 3px solid #38bdf8;
  border-radius: 0 6px 6px 0;
  margin: 14px 0;
  font-size: 14px;
  color: #0369a1;
}

/* === CTA Box === */
.wpaap-cta-box {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  border-radius: 10px;
  padding: 22px 28px;
  margin: 28px 0;
  color: #fff;
  font-size: 15px;
  line-height: 1.7;
  text-align: center;
}
.wpaap-cta-box p { margin: 0; color: #fff !important; }
.wpaap-cta-box a { color: #fbbf24 !important; font-weight: 700; text-decoration: underline; }
.wpaap-cta-box strong { color: #fbbf24 !important; }

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
.wp-toc-box { max-width: 100%; }

}