/* ==========================================================================
   PREMIUM BLOG HUB & ARTICLE STYLES
   ========================================================================== */

/* ─── BLOG HUB LISTING PAGE ─── */
/* ─── BLOG HUB LISTING PAGE ─── */
.blog-hero {
  padding: 130px 20px 60px;
  text-align: center;
  position: relative;
  background-color: var(--white);
  background-image: radial-gradient(circle at top, rgba(30, 58, 138, 0.05) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 1px solid rgba(30, 58, 138, 0.05);
}

.blog-hero .badge {
  margin: 0 auto 24px;
}

.blog-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin-bottom: 20px;
  color: var(--p2);
  font-weight: 700;
}

.blog-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--p) 0%, var(--ac) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blog-hero p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 850px;
  margin: 0 auto 30px;
  color: var(--muted);
  line-height: 1.6;
}

/* Search & Filter Controls */
.search-filter-section {
  padding: 0 0 40px 0;
  width: 100%;
}

.search-filter-container {
  width: 100%;
  box-sizing: border-box;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 100px;
  box-shadow: 0 10px 30px rgba(30, 58, 138, 0.05);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.search-bar-wrap {
  position: relative;
  width: 350px;
  max-width: 100%;
  flex-shrink: 0;
}

.search-bar-wrap input {
  width: 100%;
  padding: 12px 20px 12px 48px;
  border-radius: 100px;
  border: 1px solid transparent;
  background: rgba(30, 58, 138, 0.03);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--p2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-bar-wrap input:focus {
  outline: none;
  background: var(--white);
  border-color: rgba(30, 58, 138, 0.1);
  box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.06);
}

.search-bar-wrap svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--p);
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.search-bar-wrap input:focus + svg {
  opacity: 0.9;
}

.filter-chips {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.filter-chips::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  padding: 6px 14px;
  border-radius: 100px;
  background: transparent;
  border: 1px solid transparent;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-chip:hover {
  background: rgba(30, 58, 138, 0.04);
  color: var(--p);
}

.filter-chip.active {
  background: rgba(30, 58, 138, 0.08);
  color: var(--p);
  border-color: rgba(30, 58, 138, 0.12);
}

/* Grid layout */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 32px;
  width: 100%;
}

.blog-card {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.3s;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.015);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(30, 58, 138, 0.06);
  border-color: rgba(30, 58, 138, 0.12);
}

.bc-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.bc-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.bc-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--p);
  background: rgba(30, 58, 138, 0.06);
  padding: 4px 8px;
  border-radius: 8px;
}

.bc-read {
  font-size: 0.78rem;
  opacity: 0.6;
  color: var(--muted);
}

.blog-card h3 {
  font-size: 1.25rem;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--p2);
  font-weight: 700;
  transition: color 0.3s ease;
}

.blog-card:hover h3 {
  color: var(--p);
}

.blog-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.bc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--p2);
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: auto;
  font-size: 0.9rem;
}

.bc-link span {
  position: relative;
}

.bc-link span::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--p);
  transition: width 0.3s ease;
}

.blog-card:hover .bc-link span::after {
  width: 100%;
}

.blog-card:hover .bc-link {
  color: var(--p);
}

.bc-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.blog-card:hover .bc-link svg {
  transform: translateX(4px);
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  display: none;
}

.no-results svg {
  width: 48px;
  height: 48px;
  color: rgba(0, 0, 0, 0.15);
  margin-bottom: 15px;
}

.no-results h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}


/* ─── INNER ARTICLE PAGES ─── */
.blog-inner-hero {
  padding: 180px 20px 60px;
  position: relative;
  background: radial-gradient(circle at top, rgba(30, 58, 138, 0.08) 0%, transparent 60%);
  text-align: center;
}

.blog-inner-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 16px auto;
  max-width: 850px;
  color: var(--p2);
  font-weight: 800;
}

.blog-meta-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--muted);
}

.blog-meta-wrap strong {
  color: var(--p);
}

.blog-content-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px 60px;
  display: grid;
  grid-template-columns: 260px 1fr 320px;
  gap: 48px;
}

@media (max-width: 1200px) {
  .blog-content-layout {
    grid-template-columns: 260px 1fr;
    gap: 32px;
  }
  .blog-contact-sidebar {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1024px) {
  .blog-content-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ─── BLOG HUB LAYOUT ─── */
.blog-hub-layout {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px 80px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
}

@media (max-width: 1200px) {
  .blog-hub-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .search-filter-container {
    flex-direction: column;
    border-radius: 24px;
    padding: 20px;
  }
  .search-bar-wrap {
    width: 100%;
  }
  .filter-chips {
    justify-content: flex-start;
    width: 100%;
    padding-bottom: 8px;
  }
}

.blog-main-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ─── STICKY CONTACT CARD ─── */
.blog-contact-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

@media (max-width: 1024px) {
  .blog-contact-sidebar {
    position: static;
    margin-top: 30px;
  }
}

.sticky-contact-card {
  background: linear-gradient(135deg, var(--p) 0%, #2563EB 100%);
  border-radius: 18px;
  padding: 36px 28px;
  color: #fff;
  text-align: center;
  box-shadow: 0 8px 32px rgba(30, 58, 138, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sticky-contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(30, 58, 138, 0.25);
}

.sticky-contact-card .sc-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sticky-contact-card .sc-icon svg {
  width: 28px;
  height: 28px;
  stroke: #fff;
}

.sticky-contact-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.sticky-contact-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 22px;
}

.btn-sc {
  display: inline-block;
  background: #fff;
  color: var(--p, #1E3A8A);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 32px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-sc:hover {
  background: var(--g, #FACC15);
  color: var(--p2, #0F172A);
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(250, 204, 21, 0.35);
}

/* Sticky Sidebar Table of Contents */
.toc-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

@media (max-width: 1024px) {
  .toc-sidebar {
    position: static;
  }
}

.toc-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(30, 58, 138, 0.02);
}

.toc-card h4 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--p);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.toc-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.25s ease;
  display: block;
  line-height: 1.4;
}

.toc-link:hover {
  color: var(--ac);
  transform: translateX(3px);
}

/* Blog Body Typography & Text Styles */
.blog-body-text {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.75;
  min-width: 0;
}

.blog-body-text img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.blog-body-text h2 {
  font-size: 1.6rem;
  margin: 36px 0 16px;
  color: var(--p2);
  scroll-margin-top: 110px;
  font-weight: 700;
}

.blog-body-text h3 {
  font-size: 1.3rem;
  margin: 28px 0 12px;
  color: var(--p2);
  scroll-margin-top: 110px;
  font-weight: 700;
}

.blog-body-text p {
  margin-bottom: 20px;
  opacity: 0.9;
}

.blog-body-text ul, .blog-body-text ol {
  margin: 0 0 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-body-text li strong {
  color: var(--p);
}

.blog-body-text blockquote {
  border-left: 4px solid var(--ac);
  padding: 8px 18px;
  margin: 24px 0;
  background: rgba(220, 38, 38, 0.02);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--p2);
}

/* Comparison Table Styles */
.blog-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 15px rgba(0,0,0,0.01);
}

.blog-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.blog-table th {
  background: var(--p);
  color: var(--white);
  padding: 12px 16px;
  font-weight: 600;
}

.blog-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  opacity: 0.9;
}

.blog-table tr:last-child td {
  border-bottom: none;
}

/* Internal Banner */
.internal-promo-banner {
  background: radial-gradient(circle at top right, rgba(30, 58, 138, 0.04) 0%, transparent 60%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin: 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

@media (max-width: 600px) {
  .internal-promo-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.internal-promo-text h4 {
  font-size: 1.1rem;
  color: var(--p);
  margin-bottom: 4px;
  font-weight: 700;
}

.internal-promo-text p {
  margin-bottom: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.internal-promo-banner .btn-p {
  padding: 10px 20px;
  font-size: 0.88rem;
  border-radius: 100px;
  flex-shrink: 0;
}

/* Solutions Grid at the bottom of posts */
.solutions-section {
  padding: 48px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.solutions-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.solution-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(30, 58, 138, 0.04);
  border-color: var(--p);
}

.solution-card h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--p2);
  font-weight: 700;
}

.solution-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.solution-link {
  color: var(--p);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.solution-link svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s;
}

.solution-card:hover .solution-link svg {
  transform: translateX(3px);
}

/* Accordion FAQ styles */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 20px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  background: var(--white);
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item:hover {
  border-color: var(--p);
}

.faq-q {
  padding: 14px 20px;
  font-weight: 700;
  color: var(--p2);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  user-select: none;
}

.faq-q svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s;
  color: var(--p);
}

.faq-item.open .faq-q svg {
  transform: rotate(180deg);
}

.faq-a {
  display: none;
  padding: 0 20px 14px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.88rem;
}

.faq-item.open .faq-a {
  display: block;
}

/* Contact Form Section */
.blog-contact-section {
  padding: 60px 20px;
  background: radial-gradient(circle at center, rgba(30, 58, 138, 0.03) 0%, transparent 70%);
}

.blog-contact-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 15px 30px rgba(30, 58, 138, 0.02);
}

@media (max-width: 600px) {
  .blog-contact-card {
    padding: 20px;
  }
}

.blog-contact-header {
  text-align: center;
  margin-bottom: 24px;
}

.blog-contact-header h3 {
  font-size: 1.45rem;
  color: var(--p2);
  margin-bottom: 8px;
  font-weight: 700;
}

.blog-contact-header p {
  color: var(--muted);
  font-size: 0.88rem;
}

/* ==========================================================================
   INTERACTIVE UPGRADES (ScrollSpy, Progress Bar, Share, Toasts)
   ========================================================================== */

/* ScrollSpy Table of Contents Active Link Highlight */
.toc-link.active {
  color: var(--ac) !important;
  font-weight: 700 !important;
  transform: translateX(4px);
  border-left: 2px solid var(--ac);
  padding-left: 6px;
}

/* Viewport Reading Progress Bar */
.reading-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 10000;
  pointer-events: none;
}

.reading-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--p) 0%, var(--ac) 100%);
  transition: width 0.08s ease-out;
}

/* Share Card Styling */
.share-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(30, 58, 138, 0.02);
}

.share-card h4 {
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--p);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.share-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  align-items: center;
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--p2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.share-btn svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(30, 58, 138, 0.08);
}

.share-btn:hover svg {
  transform: scale(1.1);
}

.share-btn.twitter:hover {
  background: #000;
  color: var(--white);
  border-color: #000;
}

.share-btn.linkedin:hover {
  background: #0077b5;
  color: var(--white);
  border-color: #0077b5;
}

.share-btn.whatsapp:hover {
  background: #25d366;
  color: var(--white);
  border-color: #25d366;
}

.share-btn.copy:hover {
  background: var(--p);
  color: var(--white);
  border-color: var(--p);
}

/* Toast Clipboard Notification */
#shareToast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100000;
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#shareToast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Badge tag overrides inside solutions grid */
.solution-card .bc-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--p);
  background: rgba(30, 58, 138, 0.06);
  padding: 4px 8px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 8px;
}

