/**
 * Bluepoint — motion + bento, aligned to Stitch light tokens.
 * Must not override the Stitch header/hero in style.css.
 */

:root {
  --ink: #0f172a;
  --ink-soft: #475569;
  --surface: #f8fafc;
  --surface-card: #ffffff;
  --line: #e2e8f0;
  --accent: #4d9cde;
  --accent-2: #4f46e5;
  --glow: 0 10px 25px -5px rgba(37, 99, 235, 0.25);
  --radius-lg: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-heading: "Cairo", "Plus Jakarta Sans", sans-serif;
  --font-body: "Cairo", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary, #f8fafc);
  color: var(--text-main, #0f172a);
  line-height: 1.75;
}

h1, h2, h3, h4, h5, h6,
.hero-title, .error-code, .error-title {
  font-family: var(--font-heading);
}

.container {
  margin-inline: auto;
}

.logo,
.custom-logo {
  height: 40px;
  width: auto;
}

.bento-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.service-card .card-icon {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.process-line::before {
  display: none;
}

.proc-col::before {
  display: none;
}

.proc-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: #4d9cde;
  box-shadow: var(--glow-blue, 0 10px 25px -5px rgba(37, 99, 235, 0.25));
}

.section-cta {
  background: linear-gradient(180deg, #1e40af 0%, #23265d 100%);
}

.logo-small {
  height: 72px;
  filter: none;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 768px) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .reveal-delay-1,
  .reveal-delay-2,
  .reveal-delay-3 {
    transition-delay: 0s !important;
  }
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

@media (max-width: 900px) {
  .bento-services {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .bp-live-ping { animation: none; }
}

/* ==========================================================================
   SERVICE CARD — Links & Read-More
   ========================================================================== */

.service-card-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
.service-card-link:hover {
  color: var(--accent, #4d9cde);
}

.service-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent, #4d9cde);
  text-decoration: none;
  transition: gap 0.2s var(--ease), color 0.2s var(--ease);
}
.service-read-more:hover {
  color: var(--accent-2, #4f46e5);
  gap: 10px;
}
.service-read-more .arrow {
  display: inline-block;
  transition: transform 0.2s var(--ease);
}
.service-read-more:hover .arrow {
  transform: translateX(-4px);
}

/* ==========================================================================
   SERVICES — Category Badge
   ========================================================================== */

.bp-service-cat-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--accent-soft, #eff6ff);
  color: var(--accent, #4d9cde);
  margin-bottom: 8px;
}

/* ==========================================================================
   SERVICES ARCHIVE — Filter Tabs
   ========================================================================== */

.bp-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.bp-filter-tab {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line, #e2e8f0);
  background: var(--surface-card, #fff);
  color: var(--ink-soft, #475569);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s var(--ease);
}
.bp-filter-tab:hover,
.bp-filter-tab.is-active {
  background: var(--accent, #4d9cde);
  border-color: var(--accent, #4d9cde);
  color: #fff;
}

/* ==========================================================================
   SERVICES ARCHIVE — Empty State
   ========================================================================== */

.bp-empty-state {
  text-align: center;
  padding: 5rem 1rem;
}
.bp-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.bp-empty-state h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   SERVICES ARCHIVE — Card top row (icon + badge)
   ========================================================================== */

.bp-service-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.75rem;
}
.bp-service-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
  line-height: 1.35;
}
.bp-service-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent, #4d9cde);
  text-decoration: none;
  transition: gap 0.2s var(--ease), color 0.2s var(--ease);
}
.bp-service-card-cta:hover {
  color: var(--accent-2, #4f46e5);
  gap: 10px;
}
.bp-service-card-cta .arrow {
  transition: transform 0.2s var(--ease);
}
.bp-service-card-cta:hover .arrow {
  transform: translateX(-4px);
}

/* Make bento cards full-height column */
.bp-services-grid .card {
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   SINGLE SERVICE — Breadcrumb
   ========================================================================== */

.bp-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--ink-soft, #475569);
  margin-bottom: 1.5rem;
}
.bp-breadcrumb a {
  color: var(--ink-soft, #475569);
  text-decoration: none;
  transition: color 0.2s;
}
.bp-breadcrumb a:hover {
  color: var(--accent, #4d9cde);
}
.bp-breadcrumb-sep {
  opacity: 0.5;
}
.bp-breadcrumb-current {
  color: var(--ink, #0f172a);
  font-weight: 500;
}

/* ==========================================================================
   SINGLE SERVICE — Hero
   ========================================================================== */

.single-service-hero {
  padding-block: 4rem;
}
.single-service-heading {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}
.single-service-icon {
  font-size: 3.5rem;
  line-height: 1;
  flex-shrink: 0;
  background: var(--accent-soft, #eff6ff);
  border: 1.5px solid var(--line, #e2e8f0);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.single-service-title-wrap {
  flex: 1;
}
.single-service-title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  margin: 0.4rem 0 0.75rem;
  line-height: 1.25;
}
.single-service-tags {
  margin-top: 1rem;
}

/* ==========================================================================
   SINGLE SERVICE — Two-Column Layout
   ========================================================================== */

.single-service-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}
.single-service-content {
  min-width: 0;
}
.single-service-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 100px;
}

/* Sidebar Cards */
.single-service-sidebar-card,
.single-service-cta-card {
  padding: 1.5rem;
}
.sidebar-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1.5px solid var(--line, #e2e8f0);
}
.sidebar-cta-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

/* Check List (highlights) */
.bp-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.bp-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-soft, #475569);
}
.bp-check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent, #4d9cde);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Featured Image */
.single-service-thumb {
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
}
.single-service-image {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   RELATED SERVICES
   ========================================================================== */

.related-services-section .section-head {
  margin-bottom: 2rem;
}

/* ==========================================================================
   RESPONSIVE — Single Service
   ========================================================================== */

@media (max-width: 960px) {
  .single-service-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .single-service-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .single-service-heading {
    flex-direction: column;
    gap: 1.25rem;
  }
  .single-service-icon {
    font-size: 2.5rem;
    padding: 14px;
  }
  .bp-filter-tabs {
    gap: 6px;
  }
}

/* ==========================================================================
   PROJECT CARD — Links & Read-More
   ========================================================================== */

.project-card-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
.project-card-link:hover {
  color: var(--accent, #4d9cde);
}

.project-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent, #4d9cde);
  text-decoration: none;
  transition: gap 0.2s var(--ease), color 0.2s var(--ease);
}
a.project-card:hover .project-read-more,
a.bp-project-card:hover .project-read-more {
  color: var(--accent-2, #4f46e5);
  gap: 10px;
}
.project-read-more .arrow {
  display: inline-block;
  transition: transform 0.2s var(--ease);
}
a.project-card:hover .arrow,
a.bp-project-card:hover .arrow {
  transform: translateX(-4px);
}

/* ==========================================================================
   PROJECT CARD — Category Label & Year
   ========================================================================== */

.bp-project-cat-label {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--accent-soft, #eff6ff);
  color: var(--accent, #4d9cde);
  margin-bottom: 6px;
}
.bp-project-year {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-soft, #475569);
  margin-inline-start: 8px;
  opacity: 0.75;
}

/* ==========================================================================
   PROJECT CARD — Thumbnail Wrapper
   ========================================================================== */

.project-thumb-wrap {
  overflow: hidden;
  border-radius: 10px;
}
.project-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease);
}
a.project-card:hover .project-thumb-img,
a.bp-project-card:hover .project-thumb-img {
  transform: scale(1.04);
}

/* ==========================================================================
   PORTFOLIO CARD — Meta Row
   ========================================================================== */

.bp-portfolio-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

/* ==========================================================================
   PORTFOLIO CARD — Results List
   ========================================================================== */

.bp-results-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bp-result-item {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 0.85rem;
  color: var(--ink-soft, #475569);
  line-height: 1.5;
}
.bp-result-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   PORTFOLIO ARCHIVE — Filter Bar
   ========================================================================== */

.portfolio-filter {
  padding: 24px 0 0;
}
.bp-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.bp-filter-bar .filter {
  display: inline-block;
  padding: 7px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line, #e2e8f0);
  background: var(--surface-card, #fff);
  color: var(--ink-soft, #475569);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.bp-filter-bar .filter:hover,
.bp-filter-bar .filter.active {
  background: var(--accent, #4d9cde);
  border-color: var(--accent, #4d9cde);
  color: #fff;
  box-shadow: var(--glow-blue, 0 4px 14px rgba(77,156,222,.3));
}

.bp-portfolio-card {
  display: flex;
  flex-direction: column;
}
.bp-project-card {
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   SINGLE PROJECT — Hero Two-Column
   ========================================================================== */

.single-project-hero {
  padding-block: 3.5rem;
}
.single-project-hero-inner {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 3.5rem;
  align-items: start;
}
.single-project-visual-wrap {
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  position: sticky;
  top: 100px;
}
.single-project-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
}
.single-project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.single-project-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg, 16px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  font-weight: 700;
}
.single-project-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin: 0.5rem 0 0.75rem;
  line-height: 1.25;
}
.single-project-tags {
  margin-top: 1rem;
}

/* Quick Info Row */
.single-project-quick-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin: 1.25rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line, #e2e8f0);
  border-bottom: 1px solid var(--line, #e2e8f0);
}
.quick-info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.quick-info-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft, #475569);
  opacity: 0.65;
}
.quick-info-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink, #0f172a);
}

/* ==========================================================================
   SINGLE PROJECT — Body Layout
   ========================================================================== */

.single-project-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}
.single-project-content {
  min-width: 0;
}
.single-project-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 100px;
}
.single-project-sidebar-card,
.single-project-cta-card {
  padding: 1.5rem;
}

/* Project Info DL */
.bp-project-info-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin: 0;
  font-size: 0.88rem;
}
.bp-project-info-dl dt {
  font-weight: 700;
  color: var(--ink-soft, #475569);
  white-space: nowrap;
}
.bp-project-info-dl dd {
  margin: 0;
  color: var(--ink, #0f172a);
}

/* Case Study Blocks */
.bp-case-block {
  margin-bottom: 2.5rem;
  padding: 1.75rem 2rem;
  border-radius: var(--radius-lg, 16px);
  background: var(--surface-card, #fff);
  border: 1px solid var(--line, #e2e8f0);
}
.bp-case-block-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--ink, #0f172a);
}
.bp-case-icon {
  font-size: 1.25rem;
}
.bp-case-challenge {
  border-inline-start: 4px solid #f59e0b;
  background: #fffbeb;
}
.bp-case-solution {
  border-inline-start: 4px solid var(--accent, #4d9cde);
}

/* Related Projects */
.related-projects-section .section-head {
  margin-bottom: 2rem;
}

/* ==========================================================================
   SINGLE PROJECT — RESPONSIVE
   ========================================================================== */

@media (max-width: 1100px) {
  .single-project-hero-inner {
    grid-template-columns: 340px 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 900px) {
  .single-project-hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .single-project-visual-wrap {
    position: static;
    max-width: 480px;
    margin-inline: auto;
  }
  .single-project-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .single-project-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .bp-filter-bar {
    gap: 7px;
  }
  .single-project-quick-info {
    gap: 0.75rem 1.5rem;
  }
  .bp-case-block {
    padding: 1.25rem 1rem;
  }
}

/* ==========================================================================
   MOBILE UI/UX ENHANCEMENTS — CENTER ALIGNMENTS & NAVIGATION FIXES
   ========================================================================== */

/* 1. Mobile Navigation & Header Actions */
@media (max-width: 768px) {
  .bp-header-actions .bp-btn-nav {
    display: none !important;
  }
  
  .bp-mobile-menu .bp-btn,
  .bp-mobile-menu a.bp-btn,
  .bp-mobile-menu .bp-btn-primary {
    color: #ffffff !important;
    background: var(--accent, #4d9cde) !important;
    border-color: var(--accent, #4d9cde) !important;
    text-align: center !important;
    justify-content: center !important;
  }
  
  .bp-mobile-menu .mobile-link.is-active,
  .bp-mobile-menu a.is-active,
  .bp-mobile-menu .mobile-link[aria-current="page"],
  .bp-mobile-menu a[aria-current="page"],
  .bp-mobile-menu li.current-menu-item > a,
  .bp-mobile-menu li.current_page_item > a,
  .bp-mobile-menu li.current-menu-ancestor > a {
    color: var(--accent, #4d9cde) !important;
    font-weight: 700 !important;
  }
}

/* 2. Homepage & General Sections Center Alignment on Mobile */
@media (max-width: 768px) {
  /* Homepage Services section */
  #services .service-card,
  .bento-services .service-card {
    text-align: center !important;
    align-items: center !important;
  }
  #services .service-card .card-icon,
  .bento-services .service-card .card-icon {
    margin: 0 auto 16px auto !important;
  }
  #services .service-card h3,
  .bento-services .service-card h3,
  #services .service-card p,
  .bento-services .service-card p {
    text-align: center !important;
  }
  #services .service-card .tags,
  .bento-services .service-card .tags {
    justify-content: center !important;
  }
  #services .service-card .service-read-more,
  .bento-services .service-card .service-read-more {
    display: inline-flex !important;
    justify-content: center !important;
    margin: 1rem auto 0 auto !important;
    width: 100% !important;
  }

  /* Homepage Projects / Case Studies section */
  #portfolio .project-card,
  .bp-projects-preview .project-card {
    text-align: center !important;
    align-items: center !important;
  }
  #portfolio .project-visual,
  .bp-projects-preview .project-visual {
    margin: 0 auto 16px auto !important;
  }
  #portfolio .bp-project-cat-label,
  .bp-projects-preview .bp-project-cat-label {
    display: inline-block !important;
    margin: 0 auto 8px auto !important;
    text-align: center !important;
  }
  #portfolio .project-card h3,
  .bp-projects-preview .project-card h3,
  #portfolio .project-card p,
  .bp-projects-preview .project-card p {
    text-align: center !important;
  }
  #portfolio .tags,
  .bp-projects-preview .tags {
    justify-content: center !important;
  }
  #portfolio .project-read-more,
  .bp-projects-preview .project-read-more {
    display: inline-flex !important;
    justify-content: center !important;
    margin: 12px auto 0 auto !important;
    width: 100% !important;
  }

  /* Homepage "Why Us" section */
  #why-us .reason,
  .reasons-grid .reason {
    text-align: center !important;
    align-items: center !important;
    display: flex !important;
    flex-direction: column !important;
  }
  #why-us .reason-icon,
  .reasons-grid .reason-icon {
    margin: 0 auto 16px auto !important;
  }
  #why-us .reason h4,
  .reasons-grid .reason h4,
  #why-us .reason p,
  .reasons-grid .reason p {
    text-align: center !important;
  }

  /* Homepage "How We Work" section */
  #process .process-line,
  .process-line {
    grid-template-columns: 1fr !important;
  }
  #process .proc-col,
  .process-line .proc-col {
    text-align: center !important;
    align-items: center !important;
    display: flex !important;
    flex-direction: column !important;
  }
  #process .proc-index,
  .process-line .proc-index {
    margin: 0 auto 14px auto !important;
  }
  #process .proc-col strong,
  .process-line .proc-col strong,
  #process .proc-col p,
  .process-line .proc-col p {
    text-align: center !important;
  }

  /* Homepage "Ideas" / Blog Preview section */
  #blog .blog-card,
  .blog-grid .blog-card {
    text-align: center !important;
    align-items: center !important;
    display: flex !important;
    flex-direction: column !important;
  }
  #blog .blog-card .meta,
  .blog-grid .blog-card .meta {
    display: block !important;
    text-align: center !important;
    margin: 0 auto 8px auto !important;
  }
  #blog .blog-card h3,
  .blog-grid .blog-card h3,
  #blog .blog-card p,
  .blog-grid .blog-card p {
    text-align: center !important;
  }
  #blog .blog-card .read-more,
  .blog-grid .blog-card .read-more {
    display: inline-flex !important;
    justify-content: center !important;
    margin: 12px auto 0 auto !important;
    width: 100% !important;
  }

  /* Footer on mobile */
  .footer .footer-inner {
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    gap: 28px !important;
  }
  .footer .footer-left {
    text-align: center !important;
    margin: 0 auto !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  .footer .footer-left .logo-small {
    margin: 0 auto 12px auto !important;
    display: block !important;
  }
  .footer .footer-left p {
    text-align: center !important;
  }
  .footer .footer-links {
    text-align: center !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    flex-direction: column !important;
    gap: 24px !important;
  }
  .footer .footer-links > div {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
  }
  .footer .footer-links h4 {
    text-align: center !important;
  }
  .footer .footer-links a {
    text-align: center !important;
  }
  .footer .footer-bottom {
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  .footer .footer-bottom .links-inline {
    justify-content: center !important;
    display: flex !important;
    gap: 16px !important;
  }
}

/* 3. Services Page — Non-Hero Sections Centered on Mobile */
@media (max-width: 768px) {
  .bp-filter-tabs {
    justify-content: center !important;
    text-align: center !important;
  }
  .bp-services-grid .card,
  .bp-bento .card {
    text-align: center !important;
    align-items: center !important;
  }
  .bp-service-card-top {
    justify-content: center !important;
    align-items: center !important;
    flex-direction: column !important;
    gap: 8px !important;
  }
  .bp-card-icon {
    margin: 0 auto 12px auto !important;
  }
  .bp-service-cat-badge {
    margin: 0 auto !important;
  }
  .bp-service-card-title {
    text-align: center !important;
  }
  .bp-services-grid .card p.muted {
    text-align: center !important;
  }
  .bp-services-grid .bp-card-list {
    text-align: center !important;
    padding: 0 !important;
    list-style-position: inside !important;
  }
  .bp-services-grid .bp-card-list li {
    text-align: center !important;
    justify-content: center !important;
  }
  .bp-services-grid .tags {
    justify-content: center !important;
  }
  .bp-service-card-cta {
    display: inline-flex !important;
    justify-content: center !important;
    margin: 1rem auto 0 auto !important;
    width: 100% !important;
  }

  /* Delivery Models section in Services Page */
  .page-template-page-services .section:not(.page-hero) .grid-3 .card {
    text-align: center !important;
    align-items: center !important;
  }
  .page-template-page-services .section:not(.page-hero) .grid-3 .card h4,
  .page-template-page-services .section:not(.page-hero) .grid-3 .card p {
    text-align: center !important;
  }
}

/* 4. Portfolio Page — Non-Hero Sections Centered on Mobile */
@media (max-width: 768px) {
  .bp-filter-bar {
    justify-content: center !important;
  }
  .bp-portfolio-archive .portfolio-card,
  .portfolio-card {
    text-align: center !important;
    align-items: center !important;
  }
  .portfolio-card .project-visual {
    margin: 0 auto 16px auto !important;
  }
  .bp-portfolio-card-meta {
    justify-content: center !important;
    display: flex !important;
    gap: 8px !important;
  }
  .portfolio-card h3,
  .portfolio-card p,
  .portfolio-card .bp-project-client {
    text-align: center !important;
  }
  .bp-results-list {
    text-align: center !important;
    padding: 0 !important;
  }
  .bp-results-list .bp-result-item {
    justify-content: center !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }
  .portfolio-card .tags {
    justify-content: center !important;
  }
  .portfolio-card .project-read-more {
    display: inline-flex !important;
    justify-content: center !important;
    margin: 14px auto 0 auto !important;
    width: 100% !important;
  }
}

/* 5. Blog Page — Non-Hero Sections Centered on Mobile */
@media (max-width: 768px) {
  .blog .blog-grid .blog-card,
  .archive .blog-grid .blog-card {
    text-align: center !important;
    align-items: center !important;
  }
  .blog-grid .blog-card .meta {
    display: block !important;
    text-align: center !important;
    margin: 0 auto 8px auto !important;
  }
  .blog-grid .blog-card h3,
  .blog-grid .blog-card p {
    text-align: center !important;
  }
  .blog-grid .blog-card .read-more {
    display: inline-flex !important;
    justify-content: center !important;
    margin: 12px auto 0 auto !important;
    width: 100% !important;
  }
  .pagination-wrapper {
    text-align: center !important;
    justify-content: center !important;
  }
  .pagination-wrapper .nav-links {
    justify-content: center !important;
  }
}

/* 6. Single Service Page — Related Services Centered on Mobile */
@media (max-width: 768px) {
  .related-services-section .service-card {
    text-align: center !important;
    align-items: center !important;
  }
  .related-services-section .service-card .card-icon {
    margin: 0 auto 16px auto !important;
  }
  .related-services-section .service-card h3,
  .related-services-section .service-card p {
    text-align: center !important;
  }
  .related-services-section .service-card .tags {
    justify-content: center !important;
  }
  .related-services-section .service-card .service-read-more {
    display: inline-flex !important;
    justify-content: center !important;
    margin: 1rem auto 0 auto !important;
    width: 100% !important;
  }
}

/* 7. Single Project Page — Image & Buttons Layout Fix */
.single-project-visual-wrap {
  width: 100%;
}
.single-project-thumb {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg, 16px);
  padding: 12px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.single-project-image,
.single-project-thumb img {
  width: 100% !important;
  height: auto !important;
  max-height: 380px !important;
  object-fit: contain !important;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}
.single-project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .single-project-hero-inner {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 24px;
  }
  .single-project-visual-wrap {
    max-width: 100%;
    margin-inline: auto;
  }
  .single-project-hero-meta {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .single-project-title {
    text-align: center;
  }
  .single-project-quick-info {
    justify-content: center;
    width: 100%;
  }
  .single-project-tags {
    justify-content: center;
    width: 100%;
  }
  .single-project-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 12px;
    align-items: stretch;
  }
  .single-project-actions .bp-btn {
    width: 100% !important;
    justify-content: center;
    text-align: center;
    margin: 0 !important;
  }
}


