/* Blog Articale Design style sheet */
:root {
  --velmora-forest: var(--ast-global-color-1, var(--e-global-color-primary, currentColor));
  --velmora-gold: var(--ast-global-color-2, var(--e-global-color-accent, currentColor));
  --velmora-cream: var(--ast-global-color-5, var(--e-global-color-background, Canvas));
  --velmora-ink: var(--ast-global-color-3, var(--e-global-color-text, CanvasText));
  --velmora-muted: var(--ast-global-color-4, color-mix(in srgb, var(--velmora-ink) 70%, transparent));
  --velmora-border: color-mix(in srgb, var(--velmora-forest) 12%, transparent);
  --velmora-shadow: 0 18px 45px color-mix(in srgb, var(--velmora-forest) 10%, transparent);
  --velmora-card-bg: var(--ast-global-color-5, var(--e-global-color-background, Canvas));
  --velmora-font-body: var(--wp--preset--font-family--body, var(--e-global-typography-text-font-family, inherit));
  --velmora-font-heading: var(--wp--preset--font-family--heading, var(--e-global-typography-primary-font-family, inherit));
}

/* Base Body Modifications when custom template is active */
body.blog-articale-design-page {
  background-color: var(--velmora-cream);
  color: var(--velmora-ink);
  font-family: var(--velmora-font-body);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Hide standard theme elements we override */
body.blog-articale-design-page header.site-header#masthead,
body.blog-articale-design-page footer.site-footer#colophon,
body.blog-articale-design-page .ast-sticky-add-to-cart,
body.blog-articale-design-page .woocommerce-notices-wrapper {
  display: none !important;
}

/* Force block display and visible overflow on Astra containers to guarantee sticky sidebars work */
body.blog-articale-design-page #content,
body.blog-articale-design-page .site-content,
body.blog-articale-design-page .ast-container,
body.blog-articale-design-page .content-area,
body.blog-articale-design-page .site-main {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important; /* Essential: sticky items fail to stick if any parent has overflow: hidden */
}

/* Scroll Progress Bar */
.velmora-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 10000;
}

.velmora-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--velmora-forest), var(--velmora-gold));
  transition: width 0.1s ease-out;
}

/* Wide Container for 3-Column Layout */
.velmora-blog-container-wide {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
  overflow: visible;
}

/* Header Spacer to avoid fixed navigation menu overlap */
.velmora-blog-main-content {
  padding-top: 100px;
  padding-bottom: 80px;
  overflow: visible; /* Essential for sticky child columns */
}

/* Hero Section */
.velmora-blog-hero {
  text-align: center;
  padding: 40px 0 50px;
  max-width: 900px;
  margin: 0 auto;
}

.velmora-blog-categories {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.velmora-blog-categories a {
  background: color-mix(in srgb, var(--velmora-gold) 10%, white);
  color: var(--velmora-forest);
  border: 1px solid color-mix(in srgb, var(--velmora-gold) 24%, transparent);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 16px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.velmora-blog-categories a:hover {
  background: var(--velmora-forest);
  color: #fff;
  border-color: var(--velmora-forest);
  transform: translateY(-1px);
}

.velmora-blog-title {
  font-family: var(--velmora-font-heading);
  font-size: 2.3rem;
  line-height: 1.25;
  color: var(--velmora-forest);
  margin: 0 0 24px;
  font-weight: 700;
}

@media (min-width: 768px) {
  .velmora-blog-title {
    font-size: 3.2rem;
  }
}

.velmora-blog-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--velmora-muted);
  font-size: 14px;
}

.velmora-blog-meta-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--velmora-ink);
}

.velmora-blog-meta-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.velmora-blog-meta-dot {
  width: 4px;
  height: 4px;
  background-color: var(--velmora-gold);
  border-radius: 50%;
}

.velmora-blog-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 3-Column Grid Layout: LEFT Sidebar, CENTER Content, RIGHT Sidebar */
.velmora-blog-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: start;
  overflow: visible; /* Essential for sticky child columns */
}

@media (min-width: 1024px) {
  .velmora-blog-grid-3 {
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr) minmax(240px, 280px);
  }
}

/* Left & Right Sidebar Column Layout */
.velmora-blog-sidebar-left,
.velmora-blog-sidebar-right {
  display: flex;
  flex-direction: column;
  overflow: visible; /* Essential for sticky child columns */
  min-width: 0;
}

.velmora-sticky-sidebar-element {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

@media (min-width: 1024px) {
  .velmora-blog-sidebar-left,
  .velmora-blog-sidebar-right {
    align-self: start;
  }

  .velmora-sticky-sidebar-element {
    position: -webkit-sticky;
    position: sticky;
    top: 110px;
    z-index: 10;
  }
}

@media (max-width: 1023.98px) {
  .velmora-sticky-sidebar-element {
    position: static;
    overflow: visible;
  }
}

/* Post Content Styling (Center Column) */
.velmora-blog-post-content {
  background: var(--velmora-card-bg);
  border: 1px solid var(--velmora-border);
  box-shadow: var(--velmora-shadow);
  border-radius: 24px;
  padding: 30px 20px;
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
}

@media (min-width: 768px) {
  .velmora-blog-post-content {
    padding: 45px 35px;
  }
}

/* Featured Image */
.velmora-blog-featured-image {
  width: 100%;
  max-height: 450px;
  border-radius: 18px;
  object-fit: cover;
  margin-bottom: 40px;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--velmora-forest) 14%, transparent);
}

/* Typography elements in post body */
.velmora-blog-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--velmora-ink);
}

.velmora-blog-body p {
  margin: 0 0 24px;
}

.velmora-blog-body h2,
.velmora-blog-body h3,
.velmora-blog-body h4 {
  font-family: var(--velmora-font-heading);
  color: var(--velmora-forest);
  line-height: 1.3;
  margin: 40px 0 18px;
  font-weight: 700;
  scroll-margin-top: 120px;
}

.velmora-blog-body h2 {
  font-size: 26px;
  border-bottom: 1px solid var(--velmora-border);
  padding-bottom: 10px;
}

.velmora-blog-body h3 {
  font-size: 20px;
}

.velmora-blog-body h4 {
  font-size: 17px;
}

.velmora-blog-body a {
  color: var(--velmora-forest);
  text-decoration: underline;
  font-weight: 600;
  text-decoration-color: var(--velmora-gold);
  transition: all 0.2s ease;
}

.velmora-blog-body a:hover {
  color: var(--velmora-gold);
  text-decoration-color: var(--velmora-forest);
}

/* Callout / Warning Boxes */
.velmora-callout {
  border-left: 4px solid var(--velmora-gold);
  background: color-mix(in srgb, var(--velmora-gold) 10%, white);
  border-radius: 0 12px 12px 0;
  padding: 24px;
  margin: 35px 0;
  position: relative;
}

.velmora-callout.velmora-callout-forest {
  border-left-color: var(--velmora-forest);
  background: color-mix(in srgb, var(--velmora-forest) 7%, white);
}

.velmora-callout p:last-child {
  margin-bottom: 0;
}

.velmora-callout-title {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--velmora-forest);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.velmora-callout-title::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232d6016'><path d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}

/* Custom Unordered Lists with Leaf Bullets */
.velmora-blog-body ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 24px;
}

.velmora-blog-body ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}

.velmora-blog-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236a9739'><path d='M17.5 3C15 3 13 5 13 5s-2-2-4.5-2C5.5 3 2 6.5 2 11c0 5.5 7.5 10 10 10s10-4.5 10-10c0-4.5-3.5-8-4.5-8zm-5.5 15.7c-2.3-1.9-8-6.1-8-9.7 0-2.8 2.2-5 5-5 1.5 0 2.9.8 3.8 2.2.3.5.7.8 1.2.8s.9-.3 1.2-.8c.9-1.4 2.3-2.2 3.8-2.2 2.8 0 5 2.2 5 5 0 3.6-5.7 7.8-8 9.7z'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}

/* Custom Ordered Lists */
.velmora-blog-body ol {
  counter-reset: velmora-counter;
  list-style: none;
  padding-left: 0;
  margin-bottom: 24px;
}

.velmora-blog-body ol li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 16px;
  counter-increment: velmora-counter;
}

.velmora-blog-body ol li::before {
  content: counter(velmora-counter);
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  background-color: var(--velmora-forest);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Blockquotes */
.velmora-blog-body blockquote {
  margin: 35px 0;
  padding: 0 0 0 30px;
  border-left: 4px solid var(--velmora-forest);
  font-family: var(--velmora-font-heading);
  font-style: italic;
  font-size: 18px;
  color: var(--velmora-forest);
  line-height: 1.6;
}

/* Premium Tables */
.velmora-blog-body table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 35px 0;
  border: 1px solid var(--velmora-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px color-mix(in srgb, var(--velmora-forest) 6%, transparent);
}

.velmora-blog-body th, 
.velmora-blog-body td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--velmora-border);
  font-size: 14px;
}

.velmora-blog-body th {
  background-color: var(--velmora-forest);
  color: #fff;
  font-weight: 700;
  font-family: var(--velmora-font-heading);
  border-bottom: 0;
}

.velmora-blog-body tr:last-child td {
  border-bottom: 0;
}

.velmora-blog-body tr:nth-child(even) td {
  background-color: color-mix(in srgb, var(--velmora-forest) 4%, white);
}

.velmora-blog-body tr:hover td {
  background-color: color-mix(in srgb, var(--velmora-gold) 10%, white);
}

/* Author Bio Box */
.velmora-author-bio-box {
  margin-top: 50px;
  padding-top: 35px;
  border-top: 1px solid var(--velmora-border);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 600px) {
  .velmora-author-bio-box {
    flex-direction: row;
    align-items: flex-start;
  }
}

.velmora-author-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid #fff;
  box-shadow: 0 4px 15px color-mix(in srgb, var(--velmora-forest) 12%, transparent);
}

.velmora-author-details {
  flex-grow: 1;
}

.velmora-author-name {
  font-family: var(--velmora-font-heading);
  font-size: 19px;
  font-weight: 700;
  color: var(--velmora-forest);
  margin: 0 0 6px;
}

.velmora-author-role {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--velmora-gold);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.velmora-author-description {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--velmora-muted);
  margin-bottom: 14px;
}

.velmora-author-socials {
  display: flex;
  gap: 12px;
}

.velmora-author-socials a {
  color: var(--velmora-muted);
  font-size: 16px;
  transition: color 0.2s ease;
  text-decoration: none;
}

.velmora-author-socials a:hover {
  color: var(--velmora-forest);
}

/* Sidebar Form Widget (Left Sidebar) */
.velmora-sidebar-form-widget {
  background: var(--velmora-card-bg);
  border: 1px solid var(--velmora-border);
  box-shadow: var(--velmora-shadow);
  border-radius: 20px;
  padding: 24px;
}

.velmora-sidebar-widget-title {
  font-family: var(--velmora-font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--velmora-forest);
  margin: 0 0 18px;
  border-bottom: 2px solid var(--velmora-gold);
  padding-bottom: 10px;
}

/* Contact Form 7 Form Controls Styling */
.wpcf7-form p,
.velmora-fallback-quote-form .velmora-form-group {
  margin-bottom: 14px;
}

.wpcf7-form label,
.velmora-fallback-quote-form label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--velmora-forest);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea,
.velmora-fallback-quote-form input[type="text"],
.velmora-fallback-quote-form input[type="email"],
.velmora-fallback-quote-form textarea {
  width: 100%;
  padding: 9px 12px;
  box-sizing: border-box;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  font-family: var(--velmora-font-body);
  font-size: 13.5px;
  background-color: #fff;
  color: var(--velmora-ink);
  transition: all 0.2s ease;
  outline: none;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form textarea:focus,
.velmora-fallback-quote-form input[type="text"]:focus,
.velmora-fallback-quote-form input[type="email"]:focus,
.velmora-fallback-quote-form textarea:focus {
  border-color: var(--velmora-forest);
  background-color: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--velmora-gold) 18%, transparent);
}

.wpcf7-form input[type="submit"],
.velmora-form-submit-btn {
  width: 100%;
  min-height: 44px;
  padding: 10px 20px;
  box-sizing: border-box;
  background: linear-gradient(180deg, color-mix(in srgb, var(--velmora-gold) 78%, white), var(--velmora-forest));
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-family: var(--velmora-font-body);
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
  box-shadow: 0 10px 20px color-mix(in srgb, var(--velmora-forest) 18%, transparent);
  transition: all 0.2s ease;
}

.wpcf7-form input[type="submit"]:hover,
.velmora-form-submit-btn:hover {
  transform: translateY(-1px);
  background: var(--velmora-gold);
  box-shadow: 0 14px 26px color-mix(in srgb, var(--velmora-gold) 24%, transparent);
}

/* Category Hover Effects in Sidebar */
.velmora-sidebar-categories li:hover a {
  color: var(--velmora-forest);
}

.velmora-sidebar-categories li:hover .cat-name {
  transform: translateX(4px);
}

.velmora-sidebar-categories li:hover .cat-count {
  background-color: var(--velmora-gold);
  color: #fff;
}

/* Table of Contents Container */
.velmora-toc-widget {
  background: var(--velmora-card-bg);
  border: 1px solid var(--velmora-border);
  box-shadow: var(--velmora-shadow);
  border-radius: 20px;
  padding: 24px;
}

.velmora-toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.velmora-toc-title {
  font-family: var(--velmora-font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--velmora-forest);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.velmora-toc-title::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232d6016'><path d='M3 9h14V7H3v2zm0 4h14v-2H3v2zm0 4h14v-2H3v2zm16 0h2v-2h-2v2zm0-10v2h2V7h-2zm0 6h2v-2h-2v2z'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}

.velmora-toc-toggle-icon {
  font-size: 17px;
  font-weight: 700;
  color: var(--velmora-gold);
  transition: transform 0.3s ease;
}

.velmora-toc-widget.is-collapsed .velmora-toc-toggle-icon {
  transform: rotate(-90deg);
}

.velmora-toc-content {
  margin-top: 18px;
  max-height: none;
  overflow: visible;
  transition: opacity 0.3s ease;
  opacity: 1;
}

.velmora-toc-widget.is-collapsed .velmora-toc-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
}

.velmora-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.velmora-toc-item {
  margin-bottom: 8px;
}

.velmora-toc-item a {
  display: block;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--velmora-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
}

.velmora-toc-item.velmora-toc-h2 a {
  font-weight: 600;
  color: var(--velmora-ink);
}

.velmora-toc-item.velmora-toc-h3 a {
  padding-left: 24px;
  font-size: 12.5px;
}

.velmora-toc-item a:hover,
.velmora-toc-item.is-active a {
  color: var(--velmora-forest);
  background-color: color-mix(in srgb, var(--velmora-forest) 5%, white);
  border-left-color: var(--velmora-gold);
}

/* RIGHT Sidebar: Latest Posts Widget (minimum 5 posts) */
.velmora-latest-posts-section {
  background: var(--velmora-card-bg);
  border: 1px solid var(--velmora-border);
  box-shadow: var(--velmora-shadow);
  border-radius: 20px;
  padding: 24px;
  box-sizing: border-box;
}

.velmora-latest-posts-heading {
  font-family: var(--velmora-font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--velmora-forest);
  margin: 0 0 16px;
  border-bottom: 2px solid var(--velmora-gold);
  padding-bottom: 10px;
}

.velmora-latest-posts-list {
  display: flex;
  flex-direction: column;
}

.velmora-latest-post-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--velmora-border);
  transition: background-color 0.2s ease;
}

.velmora-latest-post-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.velmora-latest-post-row:first-child {
  padding-top: 0;
}

.velmora-latest-post-thumb-link {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px color-mix(in srgb, var(--velmora-forest) 8%, transparent);
}

.velmora-latest-post-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.velmora-latest-post-row:hover .velmora-latest-post-thumb {
  transform: scale(1.05);
}

.velmora-latest-post-info {
  flex-grow: 1;
  min-width: 0;
}

.velmora-latest-post-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
  font-size: 10px;
  font-weight: 600;
}

.velmora-latest-post-meta .latest-cat {
  color: var(--velmora-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.velmora-latest-post-meta .latest-dot {
  width: 3px;
  height: 3px;
  background-color: var(--velmora-muted);
  border-radius: 50%;
}

.velmora-latest-post-meta .latest-date {
  color: var(--velmora-muted);
}

.velmora-latest-post-row-title {
  font-family: var(--velmora-font-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.velmora-latest-post-row-title a {
  color: var(--velmora-forest);
  text-decoration: none;
  transition: color 0.2s ease;
}

.velmora-latest-post-row-title a:hover {
  color: var(--velmora-gold);
}
