/* ==========================================================================
   TACTO FX - BLOG STYLESHEET (CLEAN PRODUCTION CLASS NAMES & PASTED CONTENT OVERRIDES)
   ========================================================================== */

.blog-scope-container {
  background-color: #050505 !important;
  color: #E2E2E2 !important;
  font-family: "Inter", sans-serif !important;
}

.blog-exact-header {
  text-align: center !important;
  padding-top: 140px !important;
  padding-bottom: 30px !important;
  max-width: 900px !important;
  margin: 0 auto !important;
}

.blog-exact-title {
  font-family: "Inter Tight", sans-serif !important;
  font-size: 52px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1.15 !important;
  margin-bottom: 12px !important;
}

.blog-exact-subtitle {
  font-family: "Inter", sans-serif !important;
  font-size: 18px !important;
  color: #B7B7B7 !important;
  margin-bottom: 0 !important;
}

/* Category Filter Tabs Bar */
.blog-nav-categories {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 12px !important;
  margin-top: 35px !important;
  margin-bottom: 45px !important;
}

.blog-cat-btn {
  font-family: "Inter", sans-serif !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px 24px !important;
  border-radius: 30px !important;
  background: #121212 !important;
  border: 1px solid #505050 !important;
  color: #B7B7B7 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
}

.blog-cat-btn:hover {
  color: #ffffff !important;
  border-color: #E85D2B !important;
  text-decoration: none !important;
}

.blog-cat-btn.active {
  background: #E85D2B !important;
  background: linear-gradient(116deg, rgba(230, 79, 25, 1) 0%, rgba(65, 22, 7, 1) 18%, rgba(194, 66, 21, 1) 39%, rgba(230, 79, 25, 1) 56%, rgba(87, 30, 9, 1) 73%, rgb(17 5 1) 100%) !important;
  border-color: #E85D2B !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 15px rgba(232, 93, 43, 0.35) !important;
}

/* Exact Figma Blog Card Styling */
.blog-card-item {
  background: #12141a !important;
  background: linear-gradient(180deg, #151821 0%, #0e1016 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: row !important;
  height: 248px !important;
  text-decoration: none !important;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
  position: relative !important;
}

.blog-card-item:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(232, 93, 43, 0.45) !important;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.65) !important;
}

/* Left Image Box (248px Height Fill) */
.blog-card-img-box {
  width: 45% !important;
  height: 100% !important;
  position: relative !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  background: #181a22 !important;
}

.blog-card-img-thumb {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-top-left-radius: 15px !important;
  border-bottom-left-radius: 15px !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

/* Floating Category Pill Badge */
.blog-card-cat-badge {
  font-family: "Inter", sans-serif !important;
  position: absolute !important;
  top: 14px !important;
  left: 14px !important;
  z-index: 5 !important;
  display: inline-block !important;
  padding: 4px 14px !important;
  border-radius: 14px !important;
  background: #E85D2B !important;
  background: linear-gradient(135deg, #ff6a00 0%, #ee0979 100%) !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: capitalize !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

/* Right Content Info Area */
.blog-card-info {
  flex: 1 !important;
  padding: 20px 22px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  height: 100% !important;
}

.blog-card-date-text {
  font-family: "Inter", sans-serif !important;
  font-size: 13px !important;
  color: #B7B7B7 !important;
  font-weight: 400 !important;
  margin-bottom: 8px !important;
  display: block !important;
}

.blog-card-heading-title {
  font-family: "Inter Tight", sans-serif !important;
  color: #F0F7FB !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin-bottom: 8px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.blog-card-item:hover .blog-card-heading-title {
  color: #db4b18 !important;
}

.blog-card-excerpt-text {
  font-family: "Inter", sans-serif !important;
  color: #B7B7B7 !important;
  font-size: 13.5px !important;
  line-height: 1.5 !important;
  margin-bottom: 12px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.blog-card-action-link {
  font-family: "Inter", sans-serif !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
  text-underline-offset: 4px !important;
  transition: color 0.2s ease !important;
  margin-top: auto !important;
}

.blog-card-item:hover .blog-card-action-link {
  color: #db4b18 !important;
}

/* Custom Pagination Navigation */
.blog-pagination-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin-top: 45px !important;
  margin-bottom: 40px !important;
}

.blog-page-number {
  font-family: "Inter", sans-serif !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 36px !important;
  height: 36px !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
  background: #121212 !important;
  border: 1px solid #393939 !important;
  color: #B7B7B7 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.blog-page-number:hover {
  border-color: #E85D2B !important;
  color: #ffffff !important;
}

.blog-page-number.active {
  background: #E85D2B !important;
  background: linear-gradient(116deg, rgba(230, 79, 25, 1) 0%, rgba(65, 22, 7, 1) 18%, rgba(194, 66, 21, 1) 39%, rgba(230, 79, 25, 1) 56%, rgba(87, 30, 9, 1) 73%, rgb(17 5 1) 100%) !important;
  border-color: #E85D2B !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

.blog-page-arrow-link {
  font-family: "Inter", sans-serif !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #B7B7B7 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  padding: 0 10px !important;
  transition: color 0.2s ease !important;
}

.blog-page-arrow-link:hover {
  color: #ffffff !important;
  text-decoration: none !important;
}

/* Detail Page Layout */
.blog-detail-banner-header {
  text-align: center !important;
  padding-top: 15px !important;
  padding-bottom: 30px !important;
  max-width: 900px !important;
  margin: 0 auto !important;
}

.blog-detail-hero-banner {
  width: 100% !important;
  max-height: 500px !important;
  object-fit: cover !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5) !important;
  margin-bottom: 45px !important;
}

.blog-post-content {
  font-family: "Inter", sans-serif !important;
  color: #E2E2E2 !important;
  font-size: 16px !important;
  line-height: 1.8 !important;
}

/* ==========================================================================
   FORCE OVERRIDE FOR PASTED RICH TEXT FROM WORD / GOOGLE DOCS (NO INLINE BG/BLACK TEXT)
   ========================================================================== */
.blog-post-content * {
  background-color: transparent !important;
  background: transparent !important;
}

.blog-post-content p,
.blog-post-content span,
.blog-post-content li,
.blog-post-content div:not(.blog-post-highlight),
.blog-post-content td {
  color: #B7B7B7 !important;
}

.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4,
.blog-post-content h5,
.blog-post-content h6,
.blog-post-content strong,
.blog-post-content b {
  color: #F0F7FB !important;
}

.blog-post-content a {
  color: #E85D2B !important;
  text-decoration: underline !important;
}

.blog-post-content h2 {
  font-family: "Inter Tight", sans-serif !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  color: #F0F7FB !important;
  margin-top: 36px !important;
  margin-bottom: 16px !important;
  line-height: 1.35 !important;
}

.blog-post-content h3 {
  font-family: "Inter Tight", sans-serif !important;
  font-size: 21px !important;
  font-weight: 600 !important;
  color: #F0F7FB !important;
  margin-top: 28px !important;
  margin-bottom: 14px !important;
}

.blog-post-content p {
  margin-bottom: 18px !important;
  color: #B7B7B7 !important;
}

.blog-post-content ul, .blog-post-content ol {
  margin-bottom: 22px !important;
  padding-left: 24px !important;
  color: #B7B7B7 !important;
}

.blog-post-content li {
  margin-bottom: 10px !important;
}

.blog-post-content strong {
  color: #ffffff !important;
  font-weight: 600 !important;
}

.blog-post-highlight, .blog-post-highlight * {
  background-color: rgba(232, 93, 43, 0.06) !important;
  background: rgba(232, 93, 43, 0.06) !important;
  border-left: 4px solid #E85D2B !important;
  border-radius: 0 10px 10px 0 !important;
  padding: 18px 22px !important;
  margin: 28px 0 !important;
}

.blog-post-highlight p, .blog-post-highlight span {
  color: #E2E2E2 !important;
  margin-bottom: 0 !important;
}

@media (max-width: 991px) {
  .blog-card-item {
    flex-direction: column !important;
    height: auto !important;
  }
  .blog-card-img-box {
    width: 100% !important;
    height: 200px !important;
  }
  .blog-card-img-thumb {
    border-radius: 15px 15px 0 0 !important;
  }
  .blog-card-info {
    padding: 18px 16px !important;
  }
}
