/* ══════════════════════════════════════════════════════════════════
   common.css  –  VitalBloom shared styles
   Covers: layout helpers, nav, cards, article prose, all Gutenberg
   block types, ad slots, TOC, author card, share buttons.
═══════════════════════════════════════════════════════════════ */

/* ── Base ──────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

/* ── Site-wide helpers ────────────────────────────────────────── */
.hero-bg {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #fff7ed 100%);
}

.card-hover {
  transition: transform .25s, box-shadow .25s;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .10);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #16a34a;
  transition: width .3s;
}

.nav-link:hover::after {
  width: 100%;
}

/* ── Ad slot placeholder ──────────────────────────────────────── */
.ad-slot {
  background: #f3f4f6;
  border: 1.5px dashed #d1d5db;
  border-radius: .875rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 6rem;
  color: #9ca3af;
  font-size: .75rem;
  font-weight: 500;
  text-align: center;
  gap: .25rem;
}

/* ── Share buttons ────────────────────────────────────────────── */
.share-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: opacity .2s, transform .15s;
  flex-shrink: 0;
}

.share-btn:hover {
  opacity: .85;
  transform: translateY(-1px);
}

/* ── Table of contents ────────────────────────────────────────── */
.toc-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 1rem;
  padding: 1.5rem;
}

.toc-title {
  font-size: .875rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: .875rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .375rem;
}

.toc-list a {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: .875rem;
  font-weight: 500;
  color: #15803d;
  text-decoration: none;
  padding: .375rem .5rem;
  border-radius: .5rem;
  transition: background .2s, color .2s;
}

.toc-list a:hover {
  background: #dcfce7;
  color: #14532d;
}

.toc-num {
  flex-shrink: 0;
  width: 1.375rem;
  height: 1.375rem;
  background: #dcfce7;
  color: #15803d;
  border-radius: .375rem;
  font-size: .7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Author card ──────────────────────────────────────────────── */
.author-card {
  background: linear-gradient(135deg, #f0fdf4, #f0fdf4 60%, #fff7ed);
  border: 1px solid #bbf7d0;
  border-radius: 1.5rem;
  padding: 1.75rem;
}

.author-social-btn {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: .75rem;
  font-weight: 600;
  color: #374151;
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: .375rem .875rem;
  border-radius: 9999px;
  transition: color .2s, border-color .2s;
  text-decoration: none;
}

.author-social-btn:hover {
  color: #16a34a;
  border-color: #86efac;
}

/* ════════════════════════════════════════════════════════════════
   PROSE ARTICLE  –  styles every HTML element that can come out
   of Gutenberg or any rich-text editor.
═══════════════════════════════════════════════════════════════ */
.prose-article {
  color: #374151;
  font-size: 1.0625rem;
  line-height: 1.85;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ── Paragraphs ── */
.prose-article p {
  margin-top: 0;
  margin-bottom: 1.35rem;
}

/* Lead / intro paragraph */
.prose-article .lead-paragraph {
  font-size: 1.175rem;
  font-weight: 500;
  color: #1f2937;
  border-left: 4px solid #16a34a;
  padding-left: 1.125rem;
  margin-bottom: 1.75rem;
}

/* ── Headings ── */
.prose-article h1,
.prose-article h2,
.prose-article h3,
.prose-article h4,
.prose-article h5,
.prose-article h6 {
  font-family: Merriweather, serif;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  scroll-margin-top: 5rem;
}

.prose-article h2 {
  font-size: 1.625rem;
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid #f3f4f6;
}

.prose-article h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: .75rem;
}

.prose-article h4 {
  font-size: 1.0625rem;
  margin-top: 1.5rem;
  margin-bottom: .5rem;
}

/* ── Inline ── */
.prose-article strong {
  color: #111827;
  font-weight: 600;
}

.prose-article em {
  font-style: italic;
  color: #4b5563;
}

.prose-article s {
  color: #9ca3af;
}

.prose-article mark {
  background: #fef08a;
  color: #111827;
  padding: 0 .2em;
  border-radius: .2em;
}

.prose-article code {
  font-family: 'Courier New', monospace;
  font-size: .875em;
  background: #f3f4f6;
  color: #16a34a;
  padding: .1em .4em;
  border-radius: .3em;
}

.prose-article abbr {
  text-decoration: underline dotted;
  cursor: help;
}

/* ── Links ── */
.prose-article a {
  color: #16a34a;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color .2s;
}

.prose-article a:hover {
  color: #14532d;
}

/* ── Lists ── */
.prose-article ul,
.prose-article ol {
  padding-left: 1.625rem;
  margin-bottom: 1.35rem;
}

.prose-article ul {
  list-style: disc;
}

.prose-article ol {
  list-style: decimal;
}

.prose-article li {
  margin-bottom: .6rem;
}

.prose-article li>ul,
.prose-article li>ol {
  margin-top: .5rem;
  margin-bottom: 0;
}

/* Checklist block */
.prose-article ul.list-checklist {
  list-style: none;
  padding-left: 0;
}

.prose-article ul.list-checklist li {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  padding: .5rem .75rem;
  background: #f9fafb;
  border-radius: .625rem;
  margin-bottom: .5rem;
}

.prose-article ul.list-checklist li::before {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: .15rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2316a34a'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23dcfce7'/%3E%3Cpath stroke='%2316a34a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none' d='M6 10l3 3 5-5'/%3E%3C/svg%3E");
  background-size: contain;
}

/* Warning list */
.prose-article ul.list-warning {
  list-style: none;
  padding-left: 0;
}

.prose-article ul.list-warning li {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  padding: .75rem 1rem;
  background: #fff5f5;
  border: 1px solid #fee2e2;
  border-radius: .75rem;
  margin-bottom: .5rem;
}

/* ── Blockquote (wp:quote) ── */
.prose-article blockquote.wp-block-quote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: #f9fafb;
  border-left: 4px solid #16a34a;
  border-radius: 0 .875rem .875rem 0;
}

.prose-article blockquote.wp-block-quote p {
  font-size: 1.125rem;
  font-style: italic;
  color: #1f2937;
  margin-bottom: .5rem;
}

.prose-article blockquote.wp-block-quote cite {
  display: block;
  font-size: .8125rem;
  color: #6b7280;
  font-style: normal;
  font-weight: 500;
}

/* ── Pullquote (wp:pullquote) ── */
.prose-article .wp-block-pullquote {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  background: #16a34a;
  border-radius: 1.25rem;
  text-align: center;
  border: none;
}

.prose-article .wp-block-pullquote blockquote p {
  font-size: 1.125rem;
  font-style: normal;
  font-weight: 600;
  color: #fff;
  margin-bottom: .625rem;
}

.prose-article .wp-block-pullquote blockquote cite {
  font-size: .8125rem;
  color: #bbf7d0;
  font-style: normal;
}

/* ── Images (wp:image) ── */
.prose-article .wp-block-image {
  margin: 2rem 0;
}

.prose-article .wp-block-image img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  display: block;
}

.prose-article .wp-block-image.alignwide {
  margin-left: -1.5rem;
  margin-right: -1.5rem;
}

.prose-article .wp-block-image figcaption {
  text-align: center;
  font-size: .8125rem;
  color: #6b7280;
  margin-top: .625rem;
  font-style: italic;
}

.prose-article .wp-block-image.alignleft {
  float: left;
  margin-right: 1.5rem;
  max-width: 40%;
}

.prose-article .wp-block-image.alignright {
  float: right;
  margin-left: 1.5rem;
  max-width: 40%;
}

/* ── Gallery (wp:gallery) ── */
.prose-article .wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .75rem;
  margin: 2rem 0;
  list-style: none;
  padding: 0;
}

.prose-article .wp-block-gallery figure {
  margin: 0;
}

.prose-article .wp-block-gallery img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: .75rem;
  display: block;
}

/* ── Video / Audio (wp:video, wp:audio) ── */
.prose-article .wp-block-video video,
.prose-article .wp-block-video iframe {
  width: 100%;
  border-radius: 1rem;
  aspect-ratio: 16/9;
  display: block;
  margin: 1.5rem 0;
}

.prose-article .wp-block-audio audio {
  width: 100%;
  margin: 1.5rem 0;
}

/* ── Embed (wp:embed) ── */
.prose-article .wp-block-embed {
  margin: 2rem 0;
}

.prose-article .wp-block-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 1rem;
}

.prose-article .wp-block-embed__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Tables (wp:table) ── */
.prose-article .wp-block-table {
  margin: 2rem 0;
  overflow-x: auto;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.prose-article .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

.prose-article .wp-block-table thead tr {
  background: #16a34a;
}

.prose-article .wp-block-table thead th {
  padding: .75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.prose-article .wp-block-table tbody td {
  padding: .7rem 1rem;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
}

.prose-article .wp-block-table.is-style-stripes tbody tr:nth-child(even) {
  background: #f9fafb;
}

.prose-article .wp-block-table tbody tr:hover {
  background: #f0fdf4;
}

.prose-article .wp-block-table figcaption {
  padding: .5rem 1rem .75rem;
  font-size: .8125rem;
  color: #6b7280;
  text-align: center;
  font-style: italic;
  border-top: 1px solid #f3f4f6;
}

/* ── Code block (wp:code) ── */
.prose-article .wp-block-code {
  margin: 1.75rem 0;
  border-radius: .875rem;
  overflow: hidden;
  background: #1e293b;
}

.prose-article .wp-block-code pre {
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  font-size: .875rem;
  line-height: 1.7;
  color: #e2e8f0;
  margin: 0;
}

/* ── Preformatted (wp:preformatted) ── */
.prose-article .wp-block-preformatted {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: .75rem;
  padding: 1.25rem;
  font-family: 'Courier New', monospace;
  font-size: .875rem;
  overflow-x: auto;
  margin: 1.75rem 0;
}

/* ── Separator (wp:separator) ── */
.prose-article .wp-block-separator,
.prose-article hr {
  border: none;
  height: 2px;
  background: linear-gradient(to right, transparent, #d1fae5, transparent);
  margin: 2.5rem 0;
}

/* ── Details / accordion (wp:details) ── */
.prose-article .wp-block-details {
  border: 1px solid #e5e7eb;
  border-radius: .875rem;
  overflow: hidden;
  margin: 1.75rem 0;
}

.prose-article .wp-block-details summary {
  cursor: pointer;
  background: #f9fafb;
  padding: .875rem 1.25rem;
  font-size: .9375rem;
  font-weight: 600;
  color: #374151;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .2s;
}

.prose-article .wp-block-details summary:hover {
  background: #f3f4f6;
}

.prose-article .wp-block-details summary::-webkit-details-marker {
  display: none;
}

.prose-article .wp-block-details summary::after {
  content: '﹀';
  font-size: .875rem;
  color: #9ca3af;
  transition: transform .25s;
}

.prose-article .wp-block-details[open] summary::after {
  transform: rotate(180deg);
}

.prose-article .wp-block-details>*:not(summary) {
  padding: 1rem 1.25rem;
}

.prose-article .wp-block-details ol,
.prose-article .wp-block-details ul {
  margin-bottom: 0;
}

/* ── Columns (wp:columns) ── */
.prose-article .wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1.75rem 0;
}

.prose-article .wp-block-column {
  flex: 1 1 200px;
}

/* ── Cover (wp:cover) ── */
.prose-article .wp-block-cover {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  margin: 2rem 0;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  background: #1f2937;
}

.prose-article .wp-block-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .4;
  border-radius: 0;
}

.prose-article .wp-block-cover .wp-block-cover__inner-container {
  position: relative;
  z-index: 1;
  color: #fff;
}

/* ── Button (wp:button) ── */
.prose-article .wp-block-button {
  margin: 1.5rem 0;
}

.prose-article .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  background: #16a34a;
  color: #fff;
  font-weight: 600;
  font-size: .9375rem;
  padding: .75rem 1.75rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: background .2s, transform .15s;
  border: none;
  cursor: pointer;
}

.prose-article .wp-block-button__link:hover {
  background: #15803d;
  color: #fff;
  transform: translateY(-1px);
}

.prose-article .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: #16a34a;
  border: 2px solid #16a34a;
}

.prose-article .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: #f0fdf4;
}

/* ── Callout / notice boxes ── */
.prose-article .wp-block-notice,
.prose-article .notice {
  margin: 1.75rem 0;
  padding: 1.125rem 1.375rem;
  border-radius: .875rem;
  border-left: 4px solid #16a34a;
  background: #f0fdf4;
  font-size: .9375rem;
}

.prose-article .notice-warning {
  border-left-color: #f59e0b;
  background: #fffbeb;
}

.prose-article .notice-danger {
  border-left-color: #ef4444;
  background: #fef2f2;
}

.prose-article .notice-info {
  border-left-color: #3b82f6;
  background: #eff6ff;
}

/* ── Horizontal scroll clearfix ── */
.prose-article::after {
  content: '';
  display: table;
  clear: both;
}

.fs-dot {
  width: .5rem;
  height: .5rem;
  border-radius: 9999px;
  background: #d1d5db;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width .3s, background .3s;
  flex-shrink: 0;
}

.fs-dot.active {
  width: 1.75rem;
  background: #16a34a;
}

#fs-progress {
  transition: width 50ms linear;
}

/////////////////////////////////////////////////////////////////

/* ==========================
   BLOG CONTENT STYLING
========================== */
 
.All-text {
    color: #535862;
    font-size: 1rem;
    line-height: 1.85 ;
    max-width: 1200px !important;
    margin: 0 auto !important;
}
 
/* Paragraph */
.All-text p {
    margin-bottom: 1.25rem;
    color: #535862;
    font-size: 1rem;
    line-height: 1.85;
}
 
/* Strong */
.All-text strong {
    color: #1A1A1A;
    font-weight: 700;
}
 
/* Links */
.All-text a {
    color: #F6961B;
    text-decoration: underline;
    text-underline-offset: 3px;
}
 
/* Images */
.All-text img {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-radius: 12px;
}
 
/* ==========================
   HEADINGS
========================== */
 
.All-text h1,
.All-text h2,
.All-text h3,
.All-text h4,
.All-text h5,
.All-text h6 {
    color: #1A1A1A;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 2rem;
    margin-bottom: 1rem;
    scroll-margin-top: 120px;
}
 
.All-text h1 {
    font-size: 3rem;
}
 
.All-text h2 {
    font-size: 2.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #E9EAEB;
}
 
.All-text h3 {
    font-size: 1.9rem;
}
 
.All-text h4 {
    font-size: 1.6rem;
}
 
.All-text h5 {
    font-size: 1.3rem;
}
 
.All-text h6 {
    font-size: 1.1rem;
}
 
/* Heading span color */
.All-text h1 span,
.All-text h2 span,
.All-text h3 span,
.All-text h4 span,
.All-text h5 span,
.All-text h6 span {
    color: #F6961B;
}
 
/* ==========================
   UNORDERED LIST
========================== */
 
.All-text ul {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    padding-left: 0;
    list-style: none;
}
 
.All-text ul li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.8rem;
    color: #535862;
    line-height: 1.8;
}
 
.All-text ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.42rem;
 
    width: 18px;
    height: 24px;
 
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='24' viewBox='0 0 18 24' fill='none'%3E%3Cpath d='M9.02997 15.9976L0 10.1005L1.92316 15.9976L0 21.8994L9.02997 15.9976Z' fill='%2316a34a'/%3E%3Cpath d='M8.02979 8L10.2535 15.9975L8.02979 23.9999L17.5106 15.9975L8.02979 8Z' fill='%2316a34a'/%3E%3C/svg%3E");
 
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}
 
/* ==========================
   ORDERED LIST
========================== */
 
.All-text ol {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    list-style: decimal;
}
 
.All-text ol li {
    margin-bottom: 0.8rem;
    padding-left: 0.4rem;
    color: #535862;
    line-height: 1.8;
}
 
.All-text ol li::marker {
    color: #F6961B;
    font-weight: 700;
}
 
/* ==========================
   NESTED LISTS
========================== */
 
.All-text ul ul,
.All-text ol ol,
.All-text ul ol,
.All-text ol ul {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}
 
/* ==========================
   BLOCKQUOTE
========================== */
 
.All-text blockquote {
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid #F6961B;
    background: #FBF4EB;
    color: #535862;
    font-style: italic;
}
 
/* ==========================
   TABLE
========================== */
 
.All-text table {
    width: 100%;
    min-width: 700px; /* mobile par scroll aayega */
    border-collapse: collapse;
    margin: 2rem 0;
}
 
.All-text table th,
.All-text table td {
    border: 1px solid #E9EAEB;
    padding: 0.85rem 1rem;
    text-align: left;
}
.All-text table th {
    background: #FBF4EB;
    color: #1A1A1A;
    font-weight: 700;
}
 
 