/* JidoLab Custom Overrides */

/* Logo — properly size the square JidoLab logo in navbar */
.navbar-brand > img {
  height: 45px !important;
  width: auto !important;
}

/* Logo in mobile sidebar menu */
.navbar-collapse > img {
  height: 45px !important;
  width: auto !important;
}

/* Footer logo */
footer .f-item.about .logo img,
footer .footer-logo img {
  max-height: 50px;
  width: auto;
}

/* Scrolled/sticky navbar — slightly smaller logo */
nav.navbar.validnavs.sticked .navbar-brand > img {
  height: 38px !important;
}

/* Process Section — add bottom padding so text isn't clipped by stats overlay */
.process-style-one-items {
  overflow: visible;
  padding-bottom: 200px !important;
}

.process-style-one-item p {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Ensure process cards don't get clipped on tablets */
@media (max-width: 1199px) and (min-width: 768px) {
  .process-style-one-items {
    padding: 80px 40px 200px 40px !important;
  }
  .process-style-one-item {
    padding: 0 25px;
  }
  .process-style-one-item h2 {
    font-size: 48px;
  }
}

/* Stack process cards on small tablets */
@media (max-width: 991px) {
  .process-style-one-items {
    padding-bottom: 160px !important;
  }
}

/* Fun Fact stats — prevent overflow on tablets */
@media (max-width: 1199px) and (min-width: 768px) {
  .funfact-style-one-items {
    padding: 50px 30px;
  }
  .funfact-style-one-item {
    padding: 0 25px;
  }
  .funfact-style-one-item .js-counter {
    font-size: 48px;
  }
  .funfact-style-one-item h4 {
    font-size: 16px;
    margin-top: 30px;
  }
  .funfact-style-one-item p {
    font-size: 14px;
  }
}

/* Fun Fact stats — stack on small tablets */
@media (max-width: 991px) and (min-width: 768px) {
  .funfact-style-one-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0 0 25px 0;
    margin-bottom: 25px;
  }
  .funfact-style-one-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }
}

/* Pain section — large illustration icons */
.pain-section .service-style-one-item img {
  height: 180px;
  width: auto;
  max-width: 90%;
  object-fit: contain;
  margin-bottom: 25px;
}

/* Grow Your Revenue section — large illustration icons */
.growth-section .feature-style-one .icon img {
  height: 160px;
  width: auto;
  max-width: 90%;
  object-fit: contain;
  margin-bottom: 25px;
}

/* Results section — large company logos */
.results-section .service-style-one-item img {
  height: 100px;
  width: auto;
  max-width: 80%;
  object-fit: contain;
  margin-bottom: 25px;
}

/* ═══════════════════════════════════════
   BLOG POST — Structured Block Components
   ═══════════════════════════════════════ */

/* Post hero image */
.blog-hero-image {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 30px;
}
.blog-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}
.blog-hero-image figcaption {
  background: #f8f9fa;
  padding: 10px 16px;
  font-size: 13px;
  color: #6c757d;
  font-style: italic;
}

/* Paragraph blocks */
.blog-paragraph {
  margin-bottom: 35px;
  line-height: 1.85;
  font-size: 16px;
  color: #444;
}
.blog-paragraph h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #0d0d2b;
}
.blog-paragraph p {
  margin-bottom: 0;
}

/* Content images */
.blog-content-image {
  margin: 35px 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.blog-content-image img {
  width: 100%;
  height: auto;
  display: block;
}
.blog-content-image figcaption {
  background: #f8f9fa;
  padding: 10px 16px;
  font-size: 13px;
  color: #6c757d;
  font-style: italic;
  text-align: center;
}

/* Element blocks — shared */
.blog-element {
  margin: 35px 0;
  border-radius: 10px;
}
.blog-element h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #0d0d2b;
}

/* Blockquote */
.blog-quote blockquote {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
  border-left: 4px solid #4a6cf7;
  padding: 30px 35px;
  border-radius: 0 10px 10px 0;
  position: relative;
  margin: 0;
}
.blog-quote .quote-icon {
  font-size: 28px;
  color: #4a6cf7;
  opacity: 0.35;
  position: absolute;
  top: 20px;
  left: 20px;
}
.blog-quote blockquote p {
  font-size: 18px;
  font-style: italic;
  line-height: 1.7;
  color: #333;
  margin: 0;
  padding-left: 25px;
}
.blog-quote cite {
  display: block;
  margin-top: 15px;
  font-size: 14px;
  color: #6c757d;
  font-style: normal;
  padding-left: 25px;
}

/* Highlight box */
.blog-highlight {
  background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
  border: 1px solid #ffc107;
  padding: 25px 30px;
  border-radius: 10px;
}
.blog-highlight p {
  font-size: 15px;
  line-height: 1.75;
  color: #555;
  margin: 0;
}
.blog-highlight .highlight-sub {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: #856404;
  font-weight: 600;
}

/* Bullet & numbered lists */
.blog-list {
  background: #f8f9fa;
  padding: 25px 30px 25px 30px;
  border-radius: 10px;
  border: 1px solid #e9ecef;
}
.blog-list ul,
.blog-list ol {
  margin: 0;
  padding-left: 20px;
}
.blog-list li {
  font-size: 15px;
  line-height: 1.75;
  color: #444;
  margin-bottom: 8px;
  padding-left: 5px;
}
.blog-list li:last-child {
  margin-bottom: 0;
}
.blog-list ul li::marker {
  color: #4a6cf7;
  font-size: 18px;
}
.blog-list-numbered ol li::marker {
  color: #4a6cf7;
  font-weight: 700;
}

/* Callout / tip */
.blog-callout {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border: 1px solid #66bb6a;
  padding: 25px 30px;
  border-radius: 10px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.blog-callout .callout-icon {
  font-size: 28px;
  color: #388e3c;
  flex-shrink: 0;
  margin-top: 2px;
}
.blog-callout .callout-body p {
  font-size: 15px;
  line-height: 1.75;
  color: #2e7d32;
  margin: 0;
}
.blog-callout .callout-sub {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: #388e3c;
  font-weight: 600;
}

/* Stats / key figures */
.blog-stats {
  background: linear-gradient(135deg, #0d0d2b 0%, #1a1a4e 100%);
  padding: 30px;
  border-radius: 10px;
  color: #fff;
}
.blog-stats h4 {
  color: #fff;
  margin-bottom: 20px;
}
.blog-stats .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}
.blog-stats .stat-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tags section */
.blog-tags {
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px solid #e9ecef;
}
.blog-tags span {
  font-weight: 600;
  color: #333;
  margin-right: 8px;
}
.blog-tags a {
  display: inline-block;
  background: #f0f0f0;
  color: #555;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  margin: 4px 4px 4px 0;
  transition: all 0.2s;
}
.blog-tags a:hover {
  background: #4a6cf7;
  color: #fff;
}

/* Blog listing cards */
.blog-style-one-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}
.blog-style-one-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
.blog-style-one-item .thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.blog-style-one-item .info {
  padding: 20px 25px 25px;
}
.blog-style-one-item .meta ul {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: flex;
  gap: 15px;
  font-size: 13px;
  color: #888;
}
.blog-style-one-item .meta ul li i {
  margin-right: 4px;
}
.blog-style-one-item .info h4 {
  font-size: 17px;
  line-height: 1.4;
  margin-bottom: 10px;
}
.blog-style-one-item .info h4 a {
  color: #0d0d2b;
}
.blog-style-one-item .info h4 a:hover {
  color: #4a6cf7;
}
.blog-style-one-item .info p {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}
.btn-read-more {
  font-size: 14px;
  font-weight: 600;
  color: #4a6cf7;
}
.btn-read-more i {
  margin-left: 4px;
  font-size: 12px;
  transition: margin-left 0.2s;
}
.btn-read-more:hover i {
  margin-left: 8px;
}

/* Post detail meta bar */
.post-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 15px 0;
  margin-bottom: 25px;
  border-bottom: 1px solid #e9ecef;
  font-size: 14px;
  color: #888;
}
.post-meta-bar i {
  margin-right: 5px;
  color: #4a6cf7;
}
.post-meta-bar a {
  color: #4a6cf7;
}

/* Responsive */
@media (max-width: 767px) {
  .blog-callout {
    flex-direction: column;
    gap: 10px;
  }
  .blog-quote blockquote {
    padding: 20px 20px;
  }
  .blog-quote blockquote p {
    font-size: 16px;
    padding-left: 0;
  }
  .blog-quote .quote-icon {
    position: static;
    margin-bottom: 10px;
  }
  .blog-stats .stats-grid {
    grid-template-columns: 1fr;
  }
}
