/* ==========================================================
   ThinkOnline.IN — Redesigned blog.css to match GoSquared
   ========================================================== */

/* ── Reading Progress Bar ─────────────────────────── */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: var(--read-pct, 0%);
  z-index: 99999;
  background: #01101B;
  transform-origin: left;
  transition: width 0.08s linear;
  pointer-events: none;
}

/* ── GoSquared Blog Theme Base Styles ─────────────────────────── */
:root {
  --gosquared-dark: #01101B;
  --gosquared-gray: #5a6890;
  --gosquared-light-gray: #f4f6f8;
  --gosquared-border: #e1e6eb;
  --gosquared-success: #00d084;
  --gosquared-marketing: #ff6900;
  --gosquared-design: #9b51e0;
}

/* ── Splash / Welcoming Title ── */
.blog-splash {
  text-align: center;
  padding: 60px 24px 30px 24px;
  background: #fff;
}
.blog-splash-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--gosquared-dark);
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: -1.2px;
}
.blog-splash-sub {
  font-size: 1.25rem;
  color: var(--gosquared-gray);
  margin-bottom: 24px;
}

/* Category Menu Bar (GoSquared style) */
.blog-cat-menu {
  border-bottom: 1px solid var(--gosquared-border);
  padding-bottom: 15px;
  margin-bottom: 40px;
}
.blog-cat-menu ul {
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.blog-cat-menu a {
  color: var(--gosquared-gray);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 12px;
  border-radius: 50px;
  transition: all 0.2s ease;
}
.blog-cat-menu a:hover, .blog-cat-menu li.active a {
  color: var(--gosquared-dark);
  background: var(--gosquared-light-gray);
}

/* ── Main Container ── */
.blog-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px 80px 24px;
}

/* ── Splash Featured Grid (GoSquared layout) ── */
.featured-layout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  margin-bottom: 60px;
}

/* Left Featured Card */
.c-feature-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  color: #fff;
  text-decoration: none;
  border: 1px solid var(--gosquared-border);
}
.c-feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(1, 16, 27, 0.8) 0%, rgba(1, 16, 27, 0.2) 60%, transparent 100%);
  z-index: 1;
}
.c-feature-card-content {
  position: relative;
  z-index: 2;
  padding: 40px;
  width: 100%;
}
.c-badge-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: #fff;
  letter-spacing: 0.5px;
}
.c-feature-card-title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 16px 0;
  letter-spacing: -0.8px;
}

/* Right side list items */
.right-list-items {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.c-list-item {
  border-bottom: 1px solid var(--gosquared-border);
  padding-bottom: 24px;
}
.c-list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.c-list-item-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gosquared-marketing);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.c-list-item-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 10px 0;
  line-height: 1.3;
}
.c-list-item-title a {
  color: var(--gosquared-dark);
  text-decoration: none;
}
.c-list-item-title a:hover {
  color: #0077c5;
}
.c-list-item-excerpt {
  font-size: 0.92rem;
  color: var(--gosquared-gray);
  line-height: 1.5;
  margin-bottom: 14px;
}
.c-list-item-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--gosquared-gray);
}

/* ── Grid List Layout (Below Featured Cards) ── */
.gosquared-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

/* Standard blog card */
.g-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.g-card-img-wrap {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 16px;
  border: 1px solid var(--gosquared-border);
}
.g-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.g-card:hover .g-card-img {
  transform: scale(1.03);
}
.g-card-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gosquared-marketing);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.g-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gosquared-dark);
  margin: 0 0 10px 0;
  line-height: 1.3;
}
.g-card:hover .g-card-title {
  color: #0077c5;
}
.g-card-link-arrow {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gosquared-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

/* ── Individual Blog Post Design (GoSquared Style) ── */
.gosquared-post {
  background: #fff;
}
.gosquared-post-hero {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.gosquared-post-img-wrap {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 8;
  margin-bottom: 40px;
  border: 1px solid var(--gosquared-border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.gosquared-post-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Title Header block */
.gosquared-post-header {
  text-align: center;
  padding: 60px 24px 30px 24px;
}
.g-post-date-read {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gosquared-gray);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.g-post-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: var(--gosquared-dark);
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin: 0 auto 20px auto;
  max-width: 900px;
}
.g-post-author-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.g-post-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--gosquared-light-gray);
}
.g-post-avatar img {
  width: 100%;
  height: 100%;
}
.g-post-author-info {
  font-size: 0.9rem;
  color: var(--gosquared-gray);
}
.g-post-author-name {
  font-weight: 700;
  color: var(--gosquared-dark);
}

/* Post content column - centered and narrow for maximum readability */
.gosquared-post-body {
  max-width: 720px;
  margin: 0 auto 60px auto;
  padding: 0 24px;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--gosquared-dark);
}
.gosquared-post-body p {
  margin-bottom: 24px;
}
.gosquared-post-body h2 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 40px 0 16px 0;
  color: var(--gosquared-dark);
}
.gosquared-post-body h3 {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 32px 0 12px 0;
  color: var(--gosquared-dark);
}
.gosquared-post-body ul, .gosquared-post-body ol {
  margin-bottom: 24px;
  padding-left: 24px;
}
.gosquared-post-body li {
  margin-bottom: 8px;
}
.gosquared-post-body blockquote {
  border-left: 4px solid var(--gosquared-dark);
  padding: 8px 0 8px 24px;
  margin: 30px 0;
  font-style: italic;
  color: var(--gosquared-gray);
  font-size: 1.25rem;
}

/* Table of Contents & FAQs Custom Styles */
.toc-box {
  background: var(--gosquared-light-gray);
  border: 1px solid var(--gosquared-border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
}
.toc-header {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}
.toc-title {
  font-weight: 700;
  color: var(--gosquared-dark);
}
.toc-toggle {
  color: #0077c5;
  font-weight: 600;
}
.toc-list {
  list-style: none;
  padding: 12px 0 0 0;
  margin: 0;
}
.toc-list li {
  margin-bottom: 8px;
}
.toc-list a {
  color: var(--gosquared-gray);
  text-decoration: none;
}
.toc-list a:hover {
  color: var(--gosquared-dark);
}

.faq-accordion-section {
  border-top: 1px solid var(--gosquared-border);
  padding-top: 40px;
  margin-top: 40px;
}
.faq-accordion-item {
  border-bottom: 1px solid var(--gosquared-border);
}
.faq-accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gosquared-dark);
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}
.faq-accordion-body {
  padding-bottom: 20px;
  color: var(--gosquared-gray);
  display: none;
}

/* Micro CTA Box styling */
.micro-cta-box {
  background: var(--gosquared-light-gray);
  border-radius: 16px;
  padding: 30px;
  border: 1px solid var(--gosquared-border);
  margin: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.micro-cta-box h4 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
}
.micro-cta-box p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gosquared-gray);
}
.btn--pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 50px;
  background: var(--gosquared-dark);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn--pill:hover {
  opacity: 0.9;
}

/* Load More Button Styles */
.load-more-wrapper {
  text-align: center;
  margin-top: 40px;
}
.btn-load-more {
  background: #fff;
  border: 1px solid var(--gosquared-border);
  padding: 14px 28px;
  font-weight: 700;
  color: var(--gosquared-dark);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-load-more:hover {
  background: var(--gosquared-light-gray);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .featured-layout-grid {
    grid-template-columns: 1fr;
  }
  .gosquared-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .gosquared-grid {
    grid-template-columns: 1fr;
  }
}
