/**
 * CodeAssists Ultra-Professional Modern SaaS Blog Stylesheet
 * @package Woostify_Child
 */

/* ==========================================================================
   PARENT THEME CONTAINER RESETS FOR BLOG PAGES
   ========================================================================== */
body.blog #content,
body.single-post #content,
body.archive #content,
body.category #content,
body.tag #content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  background-color: #f8fafc;
}

body.blog .woostify-container,
body.single-post .woostify-container,
body.archive .woostify-container,
body.category .woostify-container {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Global Blog CSS Variables */
:root {
  --ca-blog-primary: #ff7800;
  --ca-blog-primary-hover: #e06900;
  --ca-blog-primary-light: rgba(255, 120, 0, 0.08);
  --ca-blog-dark-bg: #0f172a;
  --ca-blog-card-bg: #ffffff;
  --ca-blog-text-main: #0f172a;
  --ca-blog-text-muted: #64748b;
  --ca-blog-border: #e2e8f0;
  --ca-blog-radius-lg: 16px;
  --ca-blog-radius-md: 12px;
  --ca-blog-radius-sm: 8px;
  --ca-blog-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --ca-blog-shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --ca-blog-shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.12), 0 10px 15px -8px rgba(15, 23, 42, 0.06);
  --ca-blog-font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Base resets */
.ca-blog-main-content {
  background-color: #f8fafc;
  padding-bottom: 80px;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.ca-blog-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   BLOG HERO HEADER SECTION (Light SaaS Aesthetic matching About Us)
   ========================================================================== */
.ca-blog-hero-section {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  padding: 24px 0 20px 0;
  overflow: hidden;
  border-bottom: 1px solid #e2e8f0;
}

.ca-blog-hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ca-blog-hero-bg-shapes .shape-1 {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
}

.ca-blog-hero-bg-shapes .shape-2 {
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255, 120, 0, 0.05) 0%, transparent 70%);
}

.ca-blog-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Breadcrumbs */
.ca-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.ca-hero-breadcrumb .bc-link {
  color: #64748b;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.ca-hero-breadcrumb .bc-link:hover {
  color: #ff7800;
}

.ca-hero-breadcrumb .bc-sep {
  color: #cbd5e1;
}

.ca-hero-breadcrumb .bc-current {
  color: #0f172a;
  font-weight: 700;
}

.ca-blog-sec-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 120, 0, 0.08);
  border: 1px solid rgba(255, 120, 0, 0.2);
  color: #ff7800;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ca-blog-hero-title {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  letter-spacing: -0.4px;
  margin: 0 0 8px;
}

.ca-blog-hero-title .ca-text-gradient {
  background: linear-gradient(135deg, #061539 0%, #ff7800 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ca-blog-hero-subtitle {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
  max-width: 580px;
}

/* Floating Pill Badges */
.ca-floating-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.f-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pill-orange { background: rgba(255, 120, 0, 0.08); color: #ff7800; border-color: rgba(255, 120, 0, 0.2); }
.pill-blue { background: rgba(37, 99, 235, 0.08); color: #2563eb; border-color: rgba(37, 99, 235, 0.2); }
.pill-green { background: rgba(16, 185, 129, 0.08); color: #10b981; border-color: rgba(16, 185, 129, 0.2); }
.pill-purple { background: rgba(139, 92, 246, 0.08); color: #8b5cf6; border-color: rgba(139, 92, 246, 0.2); }

/* Compact Hero IDE Card */
.ca-blog-hero-card {
  background: #061539;
  border: 1px solid #1e293b;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(6, 21, 57, 0.12);
}

.blog-card-header {
  background: #0f224a;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-dots {
  display: flex;
  gap: 5px;
}

.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.window-title {
  font-size: 11px;
  color: #94a3b8;
  font-family: monospace;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-badge {
  font-size: 10px;
  font-weight: 800;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-card-body {
  padding: 12px 14px;
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  line-height: 1.5;
  color: #f1f5f9;
  background: #061539;
}

.c-comment { color: #64748b; font-style: italic; }
.c-keyword { color: #ff7800; font-weight: bold; }
.c-func { color: #38bdf8; font-weight: bold; }
.c-str { color: #10b981; }

/* ==========================================================================
   METRICS BAR SECTION (Compact & Sleek)
   ========================================================================== */
.ca-blog-metrics-section {
  padding: 12px 0;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.ca-blog-metrics-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.metric-icon {
  font-size: 18px;
}

.metric-text {
  display: flex;
  align-items: center;
  gap: 6px;
}

.metric-num {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.metric-lbl {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}

.metric-divider {
  width: 1px;
  height: 24px;
  background: #e2e8f0;
}

/* ==========================================================================
   CATEGORY FILTER BAR (Compact & Sticky)
   ========================================================================== */
.ca-blog-filter-section {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 0;
  position: sticky;
  top: 60px;
  z-index: 40;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.ca-blog-category-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ca-blog-category-nav::-webkit-scrollbar {
  display: none;
}

.ca-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.2s ease;
  border: 1px solid #e2e8f0;
}

.ca-cat-pill:hover {
  background: #ffffff;
  color: #ff7800;
  border-color: #ff7800;
  box-shadow: 0 2px 8px rgba(255, 120, 0, 0.1);
}

.ca-cat-pill.active {
  background: #061539;
  color: #ffffff !important;
  border-color: #061539;
  box-shadow: 0 4px 12px rgba(6, 21, 57, 0.18);
}

.ca-pill-count {
  background: rgba(255, 120, 0, 0.15);
  color: #ff7800;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
}

.ca-cat-pill.active .ca-pill-count {
  background: #ff7800;
  color: #ffffff;
}

@media (max-width: 991px) {
  .ca-blog-hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ca-blog-hero-right {
    display: none;
  }

  .ca-blog-metrics-bar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .metric-divider {
    display: none;
  }
}

/* ==========================================================================
   FEATURED POST CARD
   ========================================================================== */
.ca-featured-post-section {
  padding: 50px 0 30px;
}

.ca-featured-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  background: #ffffff;
  border-radius: var(--ca-blog-radius-lg);
  overflow: hidden;
  border: 1px solid var(--ca-blog-border);
  box-shadow: var(--ca-blog-shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.ca-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ca-blog-shadow-lg);
  border-color: rgba(255, 120, 0, 0.4);
}

.ca-featured-media {
  position: relative;
  min-height: 380px;
  background: #0f172a;
  overflow: hidden;
}

.ca-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.ca-featured-card:hover .ca-featured-media img {
  transform: scale(1.04);
}

.ca-featured-content {
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ca-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ca-blog-primary-light);
  color: var(--ca-blog-primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 14px;
  width: fit-content;
}

.ca-featured-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ca-blog-text-main);
  margin: 0 0 14px;
  font-family: var(--ca-blog-font-sans);
}

.ca-featured-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ca-featured-title a:hover {
  color: var(--ca-blog-primary);
}

.ca-featured-excerpt {
  font-size: 15px;
  color: var(--ca-blog-text-muted);
  line-height: 1.65;
  margin: 0 0 24px;
}

.ca-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--ca-blog-border);
  font-size: 13px;
  color: var(--ca-blog-text-muted);
}

.ca-author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ca-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ca-blog-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
}

.ca-author-name {
  font-weight: 700;
  color: var(--ca-blog-text-main);
}

/* ==========================================================================
   BLOG GRID SECTION
   ========================================================================== */
.ca-blog-grid-section {
  padding: 30px 0 70px;
}

.ca-section-heading {
  font-size: 24px;
  font-weight: 800;
  color: var(--ca-blog-text-main);
  margin: 0 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--ca-blog-font-sans);
}

.ca-section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ca-blog-border);
  margin-left: 20px;
}

.ca-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 32px;
}

/* Blog Post Card */
.ca-blog-card {
  background: #ffffff;
  border-radius: var(--ca-blog-radius-md);
  border: 1px solid var(--ca-blog-border);
  overflow: hidden;
  box-shadow: var(--ca-blog-shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.ca-blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ca-blog-shadow-md);
  border-color: rgba(255, 120, 0, 0.4);
}

.ca-card-media {
  position: relative;
  height: 220px;
  background: #0f172a;
  overflow: hidden;
}

.ca-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.ca-blog-card:hover .ca-card-media img {
  transform: scale(1.06);
}

.ca-card-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ca-card-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ca-blog-text-main);
  margin: 0 0 12px;
  font-family: var(--ca-blog-font-sans);
}

.ca-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ca-card-title a:hover {
  color: var(--ca-blog-primary);
}

.ca-card-summary {
  font-size: 14px;
  color: var(--ca-blog-text-muted);
  line-height: 1.6;
  margin: 0 0 20px;
  flex: 1;
}

.ca-read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ca-blog-primary);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.ca-read-more-btn:hover {
  gap: 10px;
}

/* Pagination */
.ca-blog-pagination {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.ca-blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--ca-blog-border);
  color: var(--ca-blog-text-main);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.ca-blog-pagination .page-numbers:hover {
  border-color: var(--ca-blog-primary);
  color: var(--ca-blog-primary);
}

.ca-blog-pagination .page-numbers.current {
  background: var(--ca-blog-dark-bg);
  border-color: var(--ca-blog-dark-bg);
  color: #ffffff;
}

/* ==========================================================================
   SINGLE BLOG POST DETAIL STYLES
   ========================================================================== */
.ca-single-post-header {
  background: #ffffff;
  color: #0f172a;
  padding: 24px 0 20px;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
}

.ca-single-post-header .ca-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 14px;
}

.ca-single-post-header .ca-breadcrumbs a {
  color: #0f172a;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ca-single-post-header .ca-breadcrumbs a:hover {
  color: var(--ca-blog-primary);
}

.ca-single-badge-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.ca-card-badge-light {
  background: rgba(255, 120, 0, 0.08);
  color: #ff7800;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 120, 0, 0.18);
}

.ca-single-read-badge {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.ca-single-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  color: #0f172a;
  margin: 0 0 18px;
  letter-spacing: -0.4px;
  font-family: var(--ca-blog-font-sans);
}

.ca-single-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.ca-meta-author-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ca-author-avatar-sm {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #061539 0%, #1e293b 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(6, 21, 57, 0.18);
}

.ca-author-meta-text {
  display: flex;
  flex-direction: column;
}

.ca-author-name-title {
  font-weight: 700;
  font-size: 14px;
  color: #0f172a;
}

.ca-publish-date {
  font-size: 12px;
  color: #64748b;
}

.ca-single-share-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ca-share-label {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  margin-right: 4px;
}

.ca-share-btn {
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  background: #ffffff;
}

.ca-share-wa {
  color: #25D366;
  border-color: rgba(37, 211, 102, 0.3);
  background: rgba(37, 211, 102, 0.05);
}

.ca-share-wa:hover {
  background: #25D366;
  color: #ffffff;
}

.ca-share-li {
  color: #0A66C2;
  border-color: rgba(10, 102, 194, 0.3);
  background: rgba(10, 102, 194, 0.05);
}

.ca-share-li:hover {
  background: #0A66C2;
  color: #ffffff;
}

.ca-share-copy {
  color: #0f172a;
}

.ca-share-copy:hover {
  background: #0f172a;
  color: #ffffff;
}

/* Single Post Main Layout & 2-Column Grid */
.ca-single-wrapper {
  max-width: 1240px;
  margin: 32px auto 60px;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.ca-single-layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: start;
}

.ca-single-main-col {
  min-width: 0;
}

.ca-single-featured-banner {
  width: 100%;
  border-radius: var(--ca-blog-radius-lg);
  overflow: hidden;
  box-shadow: var(--ca-blog-shadow-md);
  margin-bottom: 28px;
  background: #0f172a;
  border: 1px solid #e2e8f0;
}

.ca-single-featured-banner img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.ca-article-card {
  background: #ffffff;
  border-radius: var(--ca-blog-radius-lg);
  padding: 42px;
  border: 1px solid var(--ca-blog-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

/* Sidebar Styling & Sticky Behavior */
.ca-single-sidebar-col {
  min-width: 0;
}

.ca-sidebar-sticky {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ca-sidebar-widget {
  background: #ffffff;
  border-radius: var(--ca-blog-radius-lg);
  padding: 24px;
  border: 1px solid var(--ca-blog-border);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
}

.ca-widget-cta {
  background: linear-gradient(145deg, #061539 0%, #0f2557 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 120, 0, 0.35);
  box-shadow: 0 10px 25px rgba(6, 21, 57, 0.2);
}

.ca-widget-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 120, 0, 0.2);
  color: #ff9d42;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.ca-widget-cta .ca-widget-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px;
  line-height: 1.3;
}

.ca-widget-cta .ca-widget-desc {
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 16px;
  line-height: 1.5;
}

.ca-widget-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.ca-widget-list li {
  font-size: 13px;
  color: #e2e8f0;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ca-widget-list li i {
  color: #ff7800;
  font-size: 12px;
}

.ca-widget-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ca-btn-sidebar-primary {
  background: #ff7800;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(255, 120, 0, 0.25);
}

.ca-btn-sidebar-primary:hover {
  background: #e06800;
  color: #ffffff;
}

.ca-btn-sidebar-wa {
  background: rgba(37, 211, 102, 0.15);
  color: #25D366;
  border: 1px solid rgba(37, 211, 102, 0.4);
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ca-btn-sidebar-wa:hover {
  background: #25D366;
  color: #ffffff;
}

.ca-widget-header {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ca-tech-stack-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ca-tech-stack-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  text-decoration: none;
  transition: all 0.2s ease;
}

.ca-tech-stack-item:hover {
  background: #ffffff;
  border-color: #ff7800;
  box-shadow: 0 2px 10px rgba(255, 120, 0, 0.08);
  transform: translateX(3px);
}

.ca-tech-name {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ca-tech-arrow {
  font-size: 10px;
  color: #94a3b8;
}

.ca-widget-hotline {
  background: #f8fafc;
  text-align: center;
  border: 1px solid #e2e8f0;
}

.ca-hotline-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 120, 0, 0.1);
  color: #ff7800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin: 0 auto 12px;
}

.ca-hotline-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}

.ca-hotline-text {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 14px;
  line-height: 1.4;
}

.ca-hotline-number {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: #ff7800;
  text-decoration: none;
  margin-bottom: 8px;
}

.ca-hotline-meta {
  display: block;
  font-size: 11px;
  color: #94a3b8;
}

.ca-article-content {
  font-size: 17px;
  line-height: 1.8;
  color: #334155;
  font-family: var(--ca-blog-font-sans);
}

.ca-article-content h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--ca-blog-dark-bg);
  margin: 42px 0 18px;
  padding-left: 16px;
  border-left: 4px solid var(--ca-blog-primary);
  line-height: 1.3;
}

.ca-article-content h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--ca-blog-dark-bg);
  margin: 34px 0 14px;
  line-height: 1.35;
}

.ca-article-content p {
  margin: 0 0 22px;
}

.ca-article-content ul, .ca-article-content ol {
  margin: 0 0 26px 22px;
  padding: 0;
}

.ca-article-content li {
  margin-bottom: 10px;
}

.ca-article-content blockquote {
  background: #f8fafc;
  border-left: 4px solid var(--ca-blog-primary);
  padding: 22px 28px;
  margin: 32px 0;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #0f172a;
  font-size: 18px;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  border-right: 1px solid #f1f5f9;
}

.ca-article-content pre {
  background: #0f172a;
  color: #f8fafc;
  padding: 26px;
  border-radius: 14px;
  overflow-x: auto;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 14px;
  margin: 30px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
}

.ca-article-content code {
  background: #f1f5f9;
  color: #0f172a;
  padding: 3px 8px;
  border-radius: 5px;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 14px;
}

.ca-article-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

/* Call to Action Banner inside Blog Article */
.ca-blog-cta-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 16px;
  padding: 36px;
  color: #ffffff;
  margin: 44px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid rgba(255, 120, 0, 0.35);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

.ca-cta-text h4 {
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px;
  font-family: var(--ca-blog-font-sans);
}

.ca-cta-text p {
  color: #94a3b8;
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

.ca-cta-btn {
  background: var(--ca-blog-primary);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(255, 120, 0, 0.3);
}

.ca-cta-btn:hover {
  background: var(--ca-blog-primary-hover);
  transform: translateY(-2px);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(255, 120, 0, 0.4);
}

/* Tags and Author Footer */
.ca-single-footer {
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid var(--ca-blog-border);
}

.ca-post-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.ca-tag-pill {
  background: #f1f5f9;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.ca-tag-pill:hover {
  background: var(--ca-blog-dark-bg);
  color: #ffffff;
}

.ca-author-box {
  display: flex;
  align-items: center;
  gap: 22px;
  background: #f8fafc;
  border-radius: 14px;
  padding: 28px;
  border: 1px solid var(--ca-blog-border);
}

.ca-author-avatar-lg {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--ca-blog-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255, 120, 0, 0.25);
}

.ca-author-details h5 {
  font-size: 18px;
  font-weight: 800;
  color: var(--ca-blog-dark-bg);
  margin: 0 0 6px;
  font-family: var(--ca-blog-font-sans);
}

.ca-author-details p {
  font-size: 14px;
  color: var(--ca-blog-text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Social Share Tools */
.ca-single-share-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.ca-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
  cursor: pointer;
}

.ca-share-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-1px);
}

.ca-share-wa {
  background: #25d366;
  border-color: #25d366;
  color: #ffffff;
}

.ca-share-wa:hover {
  background: #20ba5a;
  border-color: #20ba5a;
  color: #ffffff;
}

.ca-share-li {
  background: #0a66c2;
  border-color: #0a66c2;
  color: #ffffff;
}

.ca-share-li:hover {
  background: #08529c;
  border-color: #08529c;
  color: #ffffff;
}

/* CTA Box Buttons */
.ca-cta-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ca-cta-wa-btn {
  background: #25d366 !important;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3) !important;
}

.ca-cta-wa-btn:hover {
  background: #20ba5a !important;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4) !important;
}

/* Enhanced List Item Styling in Blog Content */
.ca-article-content ul {
  list-style: none !important;
  margin: 0 0 28px 0 !important;
  padding: 0 !important;
}

.ca-article-content ul li {
  position: relative !important;
  padding-left: 32px !important;
  margin-bottom: 14px !important;
  line-height: 1.7 !important;
}

.ca-article-content ul li::before {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--ca-blog-primary);
  font-size: 17px;
}

.ca-article-content strong {
  color: #0f172a;
  font-weight: 700;
}

/* Responsive Styles */
@media (max-width: 991px) {
  .ca-featured-card {
    grid-template-columns: 1fr;
  }
  .ca-featured-media {
    min-height: 260px;
  }
  .ca-blog-hero-title {
    font-size: 34px;
  }
  .ca-single-title {
    font-size: 30px;
  }
  .ca-article-card {
    padding: 32px;
  }
  .ca-blog-cta-box {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .ca-blog-grid {
    grid-template-columns: 1fr;
  }
  .ca-blog-hero {
    padding: 44px 0 54px;
  }
  .ca-blog-hero-title {
    font-size: 28px;
  }
  .ca-blog-search-form {
    flex-direction: column;
    border-radius: 18px;
    padding: 14px;
    gap: 12px;
  }
  .ca-blog-search-form button {
    width: 100%;
    justify-content: center;
  }
  .ca-blog-filter-section {
    top: 60px;
  }
  .ca-article-card {
    padding: 24px;
  }
  .ca-author-box {
    flex-direction: column;
    text-align: center;
  }
}
