/* Portfolio enhancements — Muhammad Asher Mehmood */

/* ===================== Global typography (all pages) ===================== */
body.spybody {
  font-family: var(--font-primary);
}

body.spybody .title,
body.spybody .section-head .title,
body.spybody .product-hero-content .title,
body.spybody .blog-page-hero .title,
body.spybody .blog-article-title,
body.spybody .blog-card-enhanced .blog-title,
body.spybody .blog-coming-soon h2,
body.spybody .product-feature-card h4,
body.spybody .product-vision-item h4,
body.spybody .blog-sidebar-card h4,
body.spybody .blog-topics-section h3 {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--color-heading);
}

body.spybody p,
body.spybody .description,
body.spybody .card-para,
body.spybody .disc,
body.spybody li,
body.spybody .product-feature-card p,
body.spybody .product-vision-item p,
body.spybody .blog-card-enhanced .card-para,
body.spybody .blog-coming-soon > p,
body.spybody .blog-sidebar-card p,
body.spybody .blog-related-list span,
body.spybody .tech-stack-list span,
body.spybody .product-screen-card figcaption {
  font-family: var(--font-secondary);
}

body.spybody .subtitle,
body.spybody .section-sub-title .subtitle,
body.spybody .product-badge,
body.spybody .tmp-btn,
body.spybody .btn-text,
body.spybody .blog-category-btn,
body.spybody .blog-search-bar input {
  font-family: var(--font-secondary);
}

body.spybody .section-head .description,
body.spybody .product-section .description,
body.spybody .product-hero-content .description,
body.spybody .blog-page-hero .description,
body.spybody .page-hero .description,
body.spybody .product-vision-copy {
  font-family: var(--font-secondary);
  color: var(--color-gray);
  line-height: 1.65;
}

.hero-role-tags {
  display: block;
  margin: 8px auto 0;
  font-size: clamp(14px, 2.5vw, 18px);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gray);
  text-align: center;
}

/* h1 hero — same visual as original top-intro */
.banner-main-demo-inner-content h1.top-intro {
  display: block;
  font-size: 36px;
  font-weight: 500;
  margin: 0;
}

@media only screen and (max-width: 767px) {
  .banner-main-demo-inner-content h1.top-intro {
    font-size: 24px;
  }
}

/* About section — balanced columns */
.about-section-balanced .about-thumbnail-large-style-two .tmp-light,
.about-section-balanced .about-thumbnail-large-style-two::before,
.about-section-balanced .about-thumbnail-large-style-two::after {
  display: none !important;
}

.about-section-balanced .about-us-left-content-wrap {
  height: 100%;
}

.about-section-balanced .about-thumbnail-large-style-two {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
}

.about-section-balanced .about-thumbnail-large-style-two img {
  width: 100%;
  flex: 1;
  min-height: 380px;
  max-height: 620px;
  object-fit: cover;
  object-position: center 8%;
  border-radius: 10px;
}

.about-section-balanced .about-right-compact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 20px 0;
}

.about-section-balanced .about-right-compact .title {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  margin-bottom: 16px;
}

.about-section-balanced .about-right-compact .description {
  margin-bottom: 0;
  line-height: 1.7;
}

.about-compact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.about-compact-tags li {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--color-gray-2);
  color: var(--color-heading);
}

@media only screen and (max-width: 991px) {
  .about-section-balanced .about-thumbnail-large-style-two img {
    min-height: 320px;
  }

  .about-section-balanced .about-right-compact {
    padding: 32px 0 0;
  }
}

@media only screen and (max-width: 575px) {
  .about-section-balanced .about-thumbnail-large-style-two img {
    min-height: 280px;
  }
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
}

.hero-intro-text {
  display: block;
  max-width: 720px;
  margin: 24px auto 0;
  text-align: center;
  color: var(--color-gray);
  font-size: 18px;
  line-height: 1.7;
}

.hero-flagship-note {
  margin-top: 20px;
  font-size: 15px;
  color: var(--color-gray);
}

.hero-flagship-note a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.hero-flagship-note a:hover {
  text-decoration: underline;
}

/* Hero & about — personal photos */
.banner-main-demo-inner-content .main-demo {
  display: block;
  width: 100%;
  max-width: 480px;
  max-height: 600px;
  margin: 24px auto 0;
  object-fit: cover;
  object-position: center 12%;
}

@media only screen and (max-width: 767px) {
  .banner-main-demo-inner-content .main-demo {
    max-width: 320px;
    max-height: 420px;
    margin-top: 16px;
  }
}

.portfolio-card-meta {
  margin-top: 12px;
}

.portfolio-card-meta p {
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-gray);
}

.portfolio-card-meta strong {
  color: var(--color-heading);
}

.modal-project-detail h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  margin-bottom: 8px;
  margin-top: 20px;
}

.modal-project-detail h4:first-child {
  margin-top: 0;
}

.modal-project-detail p {
  color: var(--color-gray);
  line-height: 1.7;
  margin-bottom: 0;
}

.modal-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.modal-tech-tags span {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  background: var(--color-gray-2);
  color: var(--color-heading);
}

/* Portfolio section intro — clean, centered */
.portfolio-section-lead {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
  color: var(--color-gray);
}

/* Portfolio project modal — wider, fixed center, no background scroll */
html.portfolio-modal-open,
body.portfolio-modal-open {
  overflow: hidden !important;
  height: 100%;
}

body.portfolio-modal-open {
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}

#exampleModalCenter.modal {
  overflow: hidden !important;
  padding-right: 0 !important;
}

#exampleModalCenter .portfolio-project-modal {
  max-width: 960px !important;
  width: calc(100% - 2rem);
  margin: 0 auto;
  display: flex;
  align-items: center;
  min-height: calc(100% - 2rem);
}

.portfolio-project-modal .modal-content {
  height: auto;
  max-height: min(88vh, 860px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
}

.portfolio-project-modal .portfolio-modal-body {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1 1 auto;
  padding: 0 28px 28px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.portfolio-modal-image-wrap {
  width: 100%;
  height: clamp(260px, 44vh, 400px);
  margin-bottom: 24px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-gray-2);
  flex-shrink: 0;
}

.portfolio-project-modal .modal-header {
  flex-shrink: 0;
  min-height: 48px;
}

.portfolio-modal-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.portfolio-modal-content {
  padding-bottom: 8px;
}

.portfolio-project-modal .modal-project-detail h3 {
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.3;
  margin-bottom: 4px;
}

.portfolio-project-modal .modal-project-detail p {
  font-size: 15px;
  line-height: 1.65;
}

@media only screen and (max-width: 575px) {
  .portfolio-project-modal .modal-content {
    max-height: 92vh;
  }

  .portfolio-project-modal .portfolio-modal-body {
    padding: 0 16px 20px;
  }

  .portfolio-modal-image-wrap {
    height: clamp(200px, 36vh, 280px);
    margin-bottom: 20px;
  }
}

.page-hero {
  padding: 160px 0 80px;
  text-align: center;
}

/* ===================== Blog page ===================== */
.blog-page-main {
  overflow-x: hidden;
}

.blog-page-hero {
  padding: 140px 0 48px;
  text-align: center;
}

.blog-page-hero .title {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.2;
  margin-bottom: 16px;
}

.blog-page-hero .description {
  max-width: 520px;
  margin: 0 auto;
  color: var(--color-gray);
  font-size: 17px;
  line-height: 1.65;
}

.blog-layout-panel {
  padding: 48px 40px;
  border-radius: 24px;
  background: var(--color-gray-2);
}

@media only screen and (max-width: 767px) {
  .blog-layout-panel {
    padding: 32px 20px;
    border-radius: 16px;
  }

  .blog-page-hero {
    padding: 120px 0 32px;
  }
}

.blog-toolbar {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-coming-soon {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 0 8px;
}

.blog-coming-soon-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: rgba(var(--color-primary-rgb, 255, 1, 79), 0.1);
  color: var(--color-primary);
  font-size: 28px;
}

.blog-coming-soon h2 {
  font-size: clamp(24px, 4vw, 32px);
  margin-bottom: 12px;
}

.blog-coming-soon > p {
  color: var(--color-gray);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 0;
}

.blog-topics-section {
  margin-top: 40px;
  text-align: left;
}

.blog-topics-section h3 {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gray);
  margin-bottom: 20px;
}

.blog-topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.blog-topic-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--color-body);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.25s ease;
}

.blog-topic-card:hover {
  border-color: rgba(var(--color-primary-rgb, 255, 1, 79), 0.25);
}

.blog-topic-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(var(--color-primary-rgb, 255, 1, 79), 0.08);
  color: var(--color-primary);
  font-size: 15px;
}

.blog-topic-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-heading);
}

.blog-coming-soon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 36px;
}

.blog-search-bar {
  max-width: 100%;
  margin: 0 0 20px;
  position: relative;
}

.blog-search-bar input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--color-body);
  color: var(--color-heading);
  font-size: 15px;
}

.blog-search-bar input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.blog-search-bar i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-gray);
}

.blog-categories {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  justify-content: flex-start;
  margin-bottom: 0;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.blog-categories::-webkit-scrollbar {
  height: 4px;
}

.blog-category-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--color-body);
  color: var(--color-gray);
  cursor: pointer;
  transition: all 0.25s ease;
}

.blog-category-btn:hover,
.blog-category-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

#blog-posts-area .section-head {
  text-align: left;
}

#blog-posts-area .section-head .title {
  font-size: clamp(22px, 3vw, 28px);
}

.page-hero .subtitle {
  margin-bottom: 16px;
}

.page-hero .title {
  margin-bottom: 20px;
}

.page-hero .description {
  max-width: 680px;
  margin: 0 auto;
  color: var(--color-gray);
  font-size: 18px;
  line-height: 1.7;
}

.site-nav-multi .tmp-mainmenu a[href$=".html"] {
  position: relative;
}

/* Unified navbar — same look on all pages (index, products, blog) */
.site-nav-unified .nav-item a {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-nav-unified .nav-item.current a,
.site-nav-unified .nav-item a:hover {
  color: var(--color-primary);
}

.site-nav-multi .tmp-mainmenu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(var(--color-primary-rgb, 255, 1, 79), 0.12);
  color: var(--color-primary);
  border: 1px solid rgba(var(--color-primary-rgb, 255, 1, 79), 0.25);
}

.product-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.product-hero {
  padding: 140px 0 80px;
}

.product-hero-content {
  max-width: 760px;
}

.product-hero-content .title {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.15;
  margin: 20px 0;
}

.product-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.product-section {
  padding: 60px 0;
}

.product-section.alt-bg {
  background: var(--color-gray-2);
  border-radius: 20px;
  padding: 60px 40px;
  margin: 20px 0;
}

.product-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.product-feature-card {
  padding: 28px;
  border-radius: 16px;
  background: var(--color-gray-2);
  border: 1px solid transparent;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.product-section.alt-bg .product-feature-card {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.product-section.alt-bg .product-feature-card h4 {
  color: #0f172a;
}

.product-section.alt-bg .product-feature-card p {
  color: #475569;
}

.product-section.alt-bg .product-feature-card .icon {
  background: rgba(var(--color-primary-rgb, 255, 1, 79), 0.12);
  color: var(--color-primary);
}

.product-section.alt-bg .section-head .description,
.product-section.alt-bg .section-head .description.section-sm {
  color: #cbd5e1;
}

.product-feature-card:hover {
  border-color: rgba(var(--color-primary-rgb, 255, 1, 79), 0.3);
  transform: translateY(-4px);
}

.product-feature-card .icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(var(--color-primary-rgb, 255, 1, 79), 0.1);
  color: var(--color-primary);
  font-size: 20px;
  margin-bottom: 16px;
}

.product-feature-card h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.product-feature-card p {
  color: var(--color-gray);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.product-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--color-gray-2) 0%, rgba(var(--color-primary-rgb, 255, 1, 79), 0.08) 100%);
  border: 1px dashed rgba(var(--color-primary-rgb, 255, 1, 79), 0.2);
  padding: 40px;
  text-align: center;
}

.product-illustration-inner i {
  font-size: 64px;
  color: var(--color-primary);
  opacity: 0.6;
  margin-bottom: 20px;
}

.product-illustration-inner p {
  color: var(--color-gray);
  font-size: 15px;
  max-width: 320px;
  margin: 0 auto;
}

.product-hero-image {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(var(--color-primary-rgb, 255, 1, 79), 0.15);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
  background: #f8fafc;
}

.product-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.product-vision-copy {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.product-vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}

.product-vision-item {
  padding: 28px 24px;
  border-radius: 16px;
  background: var(--color-gray-2);
  border: 1px solid transparent;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.product-vision-item:hover {
  border-color: rgba(var(--color-primary-rgb, 255, 1, 79), 0.25);
  transform: translateY(-3px);
}

.product-vision-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.product-vision-item h4 {
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--color-heading);
}

.product-vision-item p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-gray);
  margin: 0;
}

.product-screens-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.product-screen-card {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(var(--color-primary-rgb, 255, 1, 79), 0.12);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  background: var(--color-gray-2);
}

.product-screen-card img {
  display: block;
  width: 100%;
  height: auto;
}

.product-screen-card figcaption {
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-gray);
  text-align: center;
  background: var(--color-body);
  border-top: 1px solid rgba(var(--color-primary-rgb, 255, 1, 79), 0.08);
}

.tech-stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.tech-stack-list span {
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  background: var(--color-gray-2);
  color: var(--color-heading);
}

.product-status-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  border-radius: 14px;
  background: var(--color-gray-2);
  margin-top: 40px;
}

.product-status-bar .progress-wrap {
  flex: 1;
}

.product-status-bar .progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--color-gray);
}

.product-status-bar .progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.product-status-bar .progress-bar {
  background: var(--color-primary);
  border-radius: 999px;
}

.blog-post-card.placeholder {
  opacity: 0.85;
}

.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--color-gray);
  margin-bottom: 12px;
}

.blog-post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Blog cards with thumbnail */
.blog-card-enhanced {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card-enhanced:hover {
  transform: translateY(-4px);
}

.blog-card-thumb {
  display: block;
  position: relative;
  height: 200px;
  background: var(--color-gray-2);
  text-decoration: none;
  overflow: hidden;
}

.blog-card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.blog-card-enhanced:hover .blog-card-thumb-img {
  transform: scale(1.05);
}

.blog-card-thumb-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
}

.blog-card-enhanced .blog-title {
  font-size: 18px;
  line-height: 1.4;
  margin: 10px 0 12px;
}

.blog-card-enhanced .blog-title a {
  color: inherit;
  text-decoration: none;
}

.blog-card-enhanced .blog-title a:hover {
  color: var(--color-primary);
}

.blog-card-enhanced .card-para {
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-gray);
  margin-bottom: 16px;
  flex: 1;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  margin-top: auto;
}

.blog-read-more:hover {
  gap: 12px;
}

/* Blog article detail page */
.blog-article-hero {
  padding: 130px 0 40px;
}

.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-gray);
  text-decoration: none;
  margin-bottom: 24px;
}

.blog-back-link:hover {
  color: var(--color-primary);
}

.blog-post-meta-hero {
  justify-content: flex-start;
  margin-bottom: 16px;
}

.blog-article-title {
  font-size: clamp(28px, 4.5vw, 42px);
  line-height: 1.25;
  max-width: 820px;
}

.blog-article-featured-image {
  margin: 28px 0 0;
  border-radius: 16px;
  overflow: hidden;
  max-width: 900px;
}

.blog-article-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-article-panel {
  padding: 32px;
  border-radius: 20px;
  background: var(--color-gray-2);
}

.blog-sidebar-card {
  padding: 24px;
  border-radius: 16px;
  background: var(--color-gray-2);
  margin-bottom: 20px;
}

.blog-sidebar-card h4 {
  font-size: 16px;
  margin-bottom: 16px;
}

.blog-sidebar-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-gray);
  margin-bottom: 12px;
}

.blog-related-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-related-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-related-list li:last-child {
  border-bottom: none;
}

.blog-related-list a {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-heading);
  text-decoration: none;
  line-height: 1.4;
  margin-bottom: 4px;
}

.blog-related-list a:hover {
  color: var(--color-primary);
}

.blog-related-list span {
  font-size: 12px;
  color: var(--color-gray);
}

.blog-article-cta {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.blog-article-cta p {
  color: var(--color-gray);
  margin-bottom: 16px;
}

/* AdSense placeholder slots — replace inner HTML with your AdSense code */
.blog-ad-slot {
  min-height: 90px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.15);
}

.blog-ad-sidebar {
  min-height: 250px;
}

.blog-ad-placeholder {
  font-size: 12px;
  color: var(--color-gray);
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.blog-ad-slot:has(ins),
.blog-ad-slot:has(iframe) {
  border: none;
  background: transparent;
  min-height: auto;
}

.blog-ad-slot:has(ins) .blog-ad-placeholder,
.blog-ad-slot:has(iframe) .blog-ad-placeholder {
  display: none;
}

@media only screen and (max-width: 991px) {
  .blog-article-panel {
    padding: 24px 20px;
  }
}

.contact-cta-headline {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}

.contact-cta-sub {
  color: var(--color-gray);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 32px;
}

img[loading="lazy"] {
  content-visibility: auto;
}

@media (max-width: 767px) {
  .product-hero-actions {
    flex-direction: column;
  }

  .product-hero-actions .tmp-btn {
    width: 100%;
    justify-content: center;
  }

  .product-vision-grid {
    grid-template-columns: 1fr;
  }

  .product-section.alt-bg {
    padding: 40px 24px;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: center;
  }
}
