/* ==========================================================================
   IT THINK ZONE PRIVATE LIMITED — OFFICIAL STANDARD BLOG ARTICLE THEME (v1.0)
   Unified AppBar & Footer, Crisp Editorial Reading Experience, TOC, Related,
   More Blogs & Office Locations Strip
   ========================================================================== */

:root {
  --itzba-orange: #eb670c;
  --itzba-orange-dark: #c95204;
  --itzba-orange-soft: rgba(235, 103, 12, 0.1);
  --itzba-ink: #0f172a;
  --itzba-ink-2: #1e293b;
  --itzba-body: #334155;
  --itzba-muted: #64748b;
  --itzba-bg: #ffffff;
  --itzba-soft: #f8fafc;
  --itzba-border: #e2e8f0;
  --itzba-shadow-sm: 0 6px 20px rgba(15, 23, 42, 0.05);
  --itzba-shadow-md: 0 18px 42px rgba(15, 23, 42, 0.09);
  --itzba-font: "Plus Jakarta Sans", "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.itzba-body {
  margin: 0;
  font-family: var(--itzba-font);
  color: var(--itzba-ink);
  background: var(--itzba-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.72;
}

.itzba-body a {
  text-decoration: none;
  color: inherit;
}

.itzba-body img {
  max-width: 100%;
  display: block;
}

.itzba-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   1. READING PROGRESS BAR
   ========================================================================== */
.itzba-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: transparent;
  z-index: 9999;
  pointer-events: none;
}

.itzba-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #eb670c 0%, #f97316 55%, #fb923c 100%);
  transition: width 0.08s linear;
}

/* ==========================================================================
   2. ARTICLE HERO HEADER
   ========================================================================== */
.itzba-hero {
  padding: 36px 0 34px;
  background:
    radial-gradient(circle at 12% 14%, rgba(235, 103, 12, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 88% 10%, rgba(37, 99, 235, 0.07) 0%, transparent 42%),
    linear-gradient(180deg, #fffaf5 0%, #ffffff 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.itzba-hero-inner {
  max-width: 920px;
  margin: 0 auto;
}

.itzba-topbar-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 20px;
}

.itzba-top-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--itzba-border-strong);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  font-size: 13px;
  font-weight: 700;
  color: var(--itzba-ink-2);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.itzba-top-back:hover {
  border-color: var(--itzba-orange);
  color: var(--itzba-orange);
  background: var(--itzba-orange-soft);
  transform: translateX(-2px);
}

.itzba-breadcrumb {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--itzba-muted);
  margin: 0;
}

.itzba-breadcrumb a {
  color: var(--itzba-muted);
  transition: color 0.2s ease;
}

.itzba-breadcrumb a:hover {
  color: var(--itzba-orange);
}

.itzba-breadcrumb .sep {
  color: #cbd5e1;
}

.itzba-breadcrumb .current {
  color: var(--itzba-orange);
  font-weight: 700;
  max-width: 340px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.itzba-hero-topmeta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.itzba-cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--itzba-orange-soft);
  color: var(--itzba-orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.itzba-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--itzba-muted);
}

.itzba-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4.1vw, 44px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.025em;
  color: var(--itzba-ink);
}

.itzba-excerpt {
  margin: 0 0 22px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--itzba-body);
}

.itzba-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--itzba-border);
}

.itzba-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.itzba-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
}

.itzba-author-info strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--itzba-ink);
  line-height: 1.25;
}

.itzba-author-info span {
  display: block;
  font-size: 12.5px;
  color: var(--itzba-muted);
}

.itzba-share-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.itzba-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--itzba-border);
  background: #ffffff;
  color: var(--itzba-ink-2);
  font-family: var(--itzba-font);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.itzba-share-btn:hover {
  border-color: rgba(235, 103, 12, 0.5);
  color: var(--itzba-orange);
  background: #fff7ed;
}

.itzba-tags-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.itzba-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--itzba-soft);
  border: 1px solid var(--itzba-border);
  color: var(--itzba-ink-2);
  font-size: 12px;
  font-weight: 700;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.itzba-tag:hover {
  border-color: rgba(235, 103, 12, 0.45);
  color: var(--itzba-orange);
}

/* ==========================================================================
   3. FEATURED HERO COVER IMAGE
   ========================================================================== */
.itzba-cover-section {
  padding: 28px 0 8px;
}

.itzba-cover-figure {
  margin: 0 auto;
  max-width: 960px;
}

.itzba-cover-frame {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--itzba-shadow-md);
  background: #0f172a;
  aspect-ratio: 16 / 9;
  max-height: 490px;
}

.itzba-cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.itzba-cover-caption {
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  color: var(--itzba-muted);
}

/* ==========================================================================
   4. TWO-COLUMN ARTICLE CONTENT + STICKY SIDEBAR
   ========================================================================== */
.itzba-content-section {
  padding: 36px 0 56px;
}

.itzba-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 42px;
  align-items: start;
}

.itzba-article-col {
  min-width: 0;
}

/* Editorial Prose Typography (Full support for Admin Rich Editor elements) */
.itzba-prose {
  font-size: 16.5px;
  line-height: 1.82;
  color: var(--itzba-body);
}

.itzba-prose > *:first-child {
  margin-top: 0;
}

.itzba-prose h2 {
  margin: 38px 0 14px;
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--itzba-ink);
  scroll-margin-top: 96px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f1f5f9;
}

.itzba-prose h3 {
  margin: 26px 0 10px;
  font-size: 19.5px;
  font-weight: 800;
  line-height: 1.32;
  color: var(--itzba-ink-2);
  scroll-margin-top: 96px;
}

.itzba-prose h4 {
  margin: 20px 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--itzba-ink-2);
}

.itzba-prose p {
  margin: 0 0 18px;
}

.itzba-prose strong,
.itzba-prose b {
  color: var(--itzba-ink);
  font-weight: 700;
}

.itzba-prose a {
  color: var(--itzba-orange);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: color 0.18s ease;
}

.itzba-prose a:hover {
  color: var(--itzba-orange-dark);
}

.itzba-prose ul,
.itzba-prose ol {
  margin: 0 0 22px;
  padding-left: 24px;
}

.itzba-prose li {
  margin-bottom: 9px;
}

.itzba-prose li::marker {
  color: var(--itzba-orange);
  font-weight: 700;
}

.itzba-prose blockquote {
  margin: 26px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--itzba-orange);
  border-radius: 0 16px 16px 0;
  background: #fff7ed;
  color: var(--itzba-ink-2);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
}

.itzba-prose blockquote p:last-child {
  margin-bottom: 0;
}

.itzba-prose .itz-callout {
  margin: 26px 0;
  padding: 20px 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #fff7ed 100%);
  border: 1px solid rgba(235, 103, 12, 0.25);
  color: var(--itzba-ink-2);
}

.itzba-prose figure {
  margin: 28px 0;
}

.itzba-prose figure img,
.itzba-prose img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--itzba-border);
  box-shadow: var(--itzba-shadow-sm);
}

.itzba-prose figcaption {
  margin-top: 8px;
  text-align: center;
  font-size: 13px;
  color: var(--itzba-muted);
}

.itzba-prose hr {
  border: none;
  border-top: 1px solid var(--itzba-border);
  margin: 30px 0;
}

.itzba-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14.5px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--itzba-border);
  display: block;
  overflow-x: auto;
}

.itzba-prose th,
.itzba-prose td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--itzba-border);
}

.itzba-prose th {
  background: #f8fafc;
  color: var(--itzba-ink);
  font-weight: 800;
}

.itzba-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  background: #f1f5f9;
  color: #0f172a;
  padding: 2px 6px;
  border-radius: 6px;
}

/* Inline Article Footer Box (Tags + Back to Blog) */
.itzba-article-end {
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid var(--itzba-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.itzba-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  background: var(--itzba-soft);
  border: 1px solid var(--itzba-border);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--itzba-ink);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.itzba-back-btn:hover {
  border-color: var(--itzba-orange);
  color: var(--itzba-orange);
}

/* Inline Consultation Banner inside Article Column */
.itzba-cta-inline {
  margin-top: 34px;
  padding: 30px 28px;
  border-radius: 22px;
  background: linear-gradient(135deg, #0b132b 0%, #162447 58%, #1e293b 100%);
  color: #ffffff;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.18);
}

.itzba-cta-inline h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
}

.itzba-cta-inline p {
  margin: 0 0 20px;
  font-size: 14.5px;
  line-height: 1.65;
  color: #cbd5e1;
}

.itzba-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.itzba-btn-orange {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #eb670c 0%, #f97316 100%);
  color: #ffffff !important;
  font-family: var(--itzba-font);
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(235, 103, 12, 0.3);
  transition: transform 0.2s ease;
}

.itzba-btn-orange:hover {
  transform: translateY(-2px);
}

.itzba-btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  background: #25d366;
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 800;
  transition: transform 0.2s ease;
}

.itzba-btn-wa:hover {
  transform: translateY(-2px);
}

.itzba-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 700;
}

/* ==========================================================================
   5. STICKY SIDEBAR (TOC + QUICK QUOTE + SERVICE)
   ========================================================================== */
.itzba-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.itzba-side-card {
  background: #ffffff;
  border: 1px solid var(--itzba-border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--itzba-shadow-sm);
}

.itzba-side-title {
  margin: 0 0 12px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--itzba-muted);
}

.itzba-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.itzba-toc-list a {
  display: block;
  padding: 6px 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--itzba-body);
  border-left: 2.5px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.itzba-toc-list a:hover,
.itzba-toc-list a.is-active {
  background: #fff7ed;
  color: var(--itzba-orange);
  border-left-color: var(--itzba-orange);
}

.itzba-side-cta {
  background: linear-gradient(155deg, #0b132b 0%, #162447 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.08);
}

.itzba-side-cta h4 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
}

.itzba-side-cta p {
  margin: 0 0 16px;
  font-size: 13.2px;
  line-height: 1.6;
  color: #cbd5e1;
}

.itzba-side-cta .itzba-btn-orange {
  width: 100%;
}

.itzba-side-service-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--itzba-soft);
  border: 1px solid var(--itzba-border);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--itzba-ink);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.itzba-side-service-link:hover {
  border-color: var(--itzba-orange);
  color: var(--itzba-orange);
}

/* ==========================================================================
   6. RELATED ARTICLES & MORE BLOGS SECTIONS
   ========================================================================== */
.itzba-related-section {
  padding: 56px 0;
  background: var(--itzba-soft);
  border-top: 1px solid var(--itzba-border);
}

.itzba-more-section {
  padding: 56px 0;
  background: #ffffff;
  border-top: 1px solid var(--itzba-border);
}

.itzba-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.itzba-sec-eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--itzba-orange);
  margin-bottom: 6px;
}

.itzba-sec-head h2 {
  margin: 0;
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--itzba-ink);
}

.itzba-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.itzba-rcard {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--itzba-shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.itzba-rcard:hover {
  transform: translateY(-5px);
  box-shadow: var(--itzba-shadow-md);
  border-color: rgba(235, 103, 12, 0.35);
}

.itzba-rcard-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}

.itzba-rcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.itzba-rcard:hover .itzba-rcard-media img {
  transform: scale(1.06);
}

.itzba-rcard-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--itzba-ink);
  font-size: 11px;
  font-weight: 800;
}

.itzba-rcard-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.itzba-rcard-meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--itzba-muted);
  margin-bottom: 8px;
}

.itzba-rcard h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--itzba-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.itzba-rcard:hover h3 {
  color: var(--itzba-orange);
}

.itzba-rcard p {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--itzba-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.itzba-rcard-more {
  font-size: 13px;
  font-weight: 800;
  color: var(--itzba-orange);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .itzba-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .itzba-sidebar {
    position: static;
  }
  .itzba-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .itzba-wrap {
    padding: 0 16px;
  }
  .itzba-hero {
    padding: 22px 0 24px;
  }
  .itzba-breadcrumb .current {
    max-width: 200px;
  }
  .itzba-excerpt {
    font-size: 15.5px;
  }
  .itzba-cover-frame {
    border-radius: 18px;
  }
  .itzba-prose {
    font-size: 15.5px;
  }
  .itzba-cards-grid {
    grid-template-columns: 1fr;
  }
  .itzba-cta-inline {
    padding: 24px 20px;
  }
  .itzba-cta-btns {
    flex-direction: column;
    align-items: stretch;
  }
}
