/* ============================================================
   SITE-WIDE CSS
   Portfolio site — layout, spacing, components, and usability
   Blog post typography (headings/body under .single-post) is
   controlled in single-post.css, not here — see that file.
   ============================================================ */


/* ------------------------------------------------------------
   1. CSS VARIABLES
   Spacing scale maps to 4px base unit:
   sm=8px, md=14px, lg=20px, xl=32px, 2xl=48px, 3xl=64px
   ------------------------------------------------------------ */

:root {
  --space-sm:  0.5rem;    /*  8px */
  --space-md:  0.875rem;  /* 14px */
  --space-lg:  1.25rem;   /* 20px */
  --space-xl:  2rem;      /* 32px */
  --space-2xl: 3rem;      /* 48px */
  --space-3xl: 4rem;      /* 64px */

  /* Design tokens — shared across all pages */
  --sg-teal:      #00c2cb;
  --sg-teal-lt:   rgba(0, 194, 203, 0.12);
  --sg-teal-mid:  rgba(0, 194, 203, 0.3);
  --sg-dark:      #0d1117;
  --sg-dark-card: #161b22;
  --sg-text:      #1a1a1a;
  --sg-text-mid:  #4a5568;
  --sg-text-muted:#767676;
  --sg-border:    rgba(0, 194, 203, 0.15);
  --sg-radius:    14px;
  --sg-max:       1120px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}


/* ------------------------------------------------------------
   2. GLOBAL READABILITY / SPACING
   ------------------------------------------------------------ */

ul,
ol {
  padding-left: 1.5rem;
  margin-top: var(--space-md);
  margin-bottom: var(--space-md);
}

li {
  margin-bottom: var(--space-sm);
}

li:last-child {
  margin-bottom: 0;
}


/* ------------------------------------------------------------
   3. ACCESSIBILITY
   :focus paired with :focus-visible so keyboard users on
   Safari 14 and older Android browsers still get a ring.
   ------------------------------------------------------------ */

:focus,
:focus-visible {
  outline: 2px solid #00c2cb;
  outline-offset: 3px;
  border-radius: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}


/* ------------------------------------------------------------
   4. LINKS — Global Styling
   ------------------------------------------------------------ */

a {
  color: #111111;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: transparent;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover,
a:focus {
  color: #00c2cb;
  text-decoration-color: #00c2cb;
}


/* ------------------------------------------------------------
   5. REDUCED MOTION
   Covers all transitions and transforms site-wide.
   ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}


/* ------------------------------------------------------------
   6. SHARED UTILITIES — Pills
   Structural base only. Color and background live in page CSS.
   ------------------------------------------------------------ */

.sg-service-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.sg-pill {
  display: inline-flex;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
}


/* ------------------------------------------------------------
   7. CARD READABILITY
   ------------------------------------------------------------ */

.sg-connect-card-body {
  padding: 1.75rem;
}

.sg-connect-card-title {
  margin-bottom: 0.75rem;
}

.sg-connect-card-text {
  margin-bottom: 1.25rem;
}

/* min-height: 44px ensures WCAG 2.5.5 touch target on mobile */
.sg-connect-list-item {
  padding: 0.75rem 1rem;
  margin-bottom: 0.6rem;
  min-height: 44px;
}

.sg-connect-item-subtitle {
  margin-top: 0.25rem;
}

.sg-connect-award-section {
  margin-bottom: 1.25rem;
}


/* ------------------------------------------------------------
   8. CONNECT PAGE — Layout
   ------------------------------------------------------------ */

.sg-connect-page,
.sg-connect-page * {
  box-sizing: border-box;
}

.sg-connect-page {
  width: 100%;
  padding-top: 3rem;
  padding-bottom: var(--space-3xl);
}


/* ------------------------------------------------------------
   9. CONNECT PAGE — Hero / Intro
   ------------------------------------------------------------ */

.sg-connect-hero {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.sg-connect-hero h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--sg-text);
  margin: 0 0 12px;
}

.sg-connect-intro {
  margin: 0 auto;
  max-width: 700px;
  color: #767676;
  opacity: 1;
}


/* ------------------------------------------------------------
   10. CONNECT PAGE — Top Grid
   ------------------------------------------------------------ */

.sg-connect-top-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.sg-connect-card,
.sg-connect-list-item {
  text-decoration: none;
  color: inherit;
}

.sg-connect-card:hover,
.sg-connect-card:focus,
.sg-connect-list-item:hover,
.sg-connect-list-item:focus {
  text-decoration: none !important;
}

.sg-connect-card {
  position: relative;
  display: block;
  width: 100%;
  border: 1px solid rgba(0, 194, 203, 0.18);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.6);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 8px 26px rgba(0, 194, 203, 0.08);
}

.sg-connect-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 194, 203, 0.4);
  box-shadow: 0 12px 32px rgba(0, 194, 203, 0.16);
}


/* ------------------------------------------------------------
   11. CONNECT PAGE — Brand Card
   ------------------------------------------------------------ */

.sg-connect-brand-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
}

.sg-connect-brand-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  pointer-events: none;
}

/* aria-hidden="true" should be set on this img in HTML */
.sg-connect-brand-bg img {
  display: block;
  width: auto;
  max-width: 80%;
  max-height: 120px;
  height: auto;
  object-fit: contain;
  opacity: 0.08;
}

.sg-connect-brand-card .sg-connect-card-body {
  position: relative;
  z-index: 2;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 260px;
}


/* ------------------------------------------------------------
   12. CONNECT PAGE — Card Text
   ------------------------------------------------------------ */

.sg-connect-label {
  font-size: 0.65em !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sg-teal) !important;
  margin: 0 0 8px !important;
}

.sg-connect-card-title {
  margin: 0 0 0.7rem;
}

.sg-connect-card-text {
  margin: 0 0 1rem;
  color: #5a5a5a;
}

.sg-connect-link-text {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
}

.sg-connect-link-text::after {
  content: " ↗";
  font-size: 0.95em;
}


/* ------------------------------------------------------------
   13. CONNECT PAGE — Award Card
   ------------------------------------------------------------ */

.sg-connect-award-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.25rem;
  align-items: center;
}

.sg-connect-award-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.sg-connect-award-image img {
  display: block;
  width: 100%;
  height: auto;
}


/* ------------------------------------------------------------
   14. CONNECT PAGE — Section Columns
   ------------------------------------------------------------ */

.sg-connect-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.sg-connect-column {
  min-width: 0;
  padding: 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(0, 194, 203, 0.18);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 20px rgba(0, 194, 203, 0.06);
}

.sg-connect-section-title {
  margin: 0 0 1rem;
}


/* ------------------------------------------------------------
   15. CONNECT PAGE — List Items
   min-height: 44px enforces WCAG 2.5.5 touch target
   ------------------------------------------------------------ */

.sg-connect-list-item {
  display: block;
  padding: 0.75rem 1rem;
  min-height: 44px;
  margin-bottom: 0.6rem;
  border-radius: 0.9rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sg-connect-list-item:last-child {
  margin-bottom: 0;
}

.sg-connect-list-item:hover {
  background: rgba(0, 194, 203, 0.08);
  transform: translateY(-1px);
}

.sg-connect-item-title {
  display: block;
  font-weight: 600;
}

.sg-connect-item-subtitle {
  display: block;
  color: #767676;
  margin-top: 0.25rem;
}


/* ------------------------------------------------------------
   16. FOOTER
   ------------------------------------------------------------ */

.sg-footer {
  background: #0d1117;
  padding: 64px 0 0;
  border-top: 1px solid rgba(0, 194, 203, 0.15);
}

.sg-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 48px;
}

.sg-footer-column h3 {
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #00c2cb;
  margin: 0 0 16px;
}

.sg-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sg-footer-links li {
  margin-bottom: 10px;
}

.sg-footer-links li:last-child {
  margin-bottom: 0;
}

.sg-footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.93em;
  transition: color 0.2s ease;
}

.sg-footer-links a:hover {
  color: #00c2cb;
  text-decoration: none;
}

.sg-footer-bottom {
  border-top: 1px solid rgba(0, 194, 203, 0.1);
  padding: 20px 0;
}

.sg-footer-bottom p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85em;
  margin: 0;
}

/* Override gm-container vertical margins inside the footer */
.sg-footer .gm-container {
  margin-top: 0;
  margin-bottom: 0;
}

/* Center column content */
.sg-footer-column {
  text-align: center;
}

.sg-footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Center copyright line */
.sg-footer-bottom p {
  text-align: center;
}

@media (max-width: 640px) {
  .sg-footer { padding: 48px 0 0; }
  .sg-footer-grid { grid-template-columns: 1fr; gap: 32px; }
}


/* ------------------------------------------------------------
   17. ASTRA MOBILE DRAWER
   ------------------------------------------------------------ */

.ast-mobile-popup-drawer {
  width: 340px !important;
  max-width: 90%;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

/* min-height: 44px on drawer links for touch targets */
.ast-mobile-popup-drawer .menu-item a {
  padding: 0.875rem 1.25rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}


/* ------------------------------------------------------------
   17. GM CONTAINER
   ------------------------------------------------------------ */

.gm-container {
  max-width: 1120px;
  margin: var(--space-3xl) auto;
  padding-left: 1rem;
  padding-right: 1rem;
}


/* ------------------------------------------------------------
   18. RESPONSIVE — Tablet (≤ 991px)
   ------------------------------------------------------------ */

@media (max-width: 991px) {
  .sg-connect-top-grid,
  .sg-connect-sections {
    grid-template-columns: 1fr;
  }

  .sg-connect-award-card {
    grid-template-columns: 160px 1fr;
  }
}


/* ------------------------------------------------------------
   19. RESPONSIVE — Mobile (≤ 767px)
   ------------------------------------------------------------ */

@media (max-width: 767px) {
  .sg-connect-page {
    padding-top: 2.25rem;
    padding-bottom: 3rem;
  }

  .sg-connect-top-grid,
  .sg-connect-sections,
  .sg-connect-award-card {
    grid-template-columns: 1fr;
  }

  .sg-connect-brand-card,
  .sg-connect-brand-card .sg-connect-card-body {
    min-height: 220px;
  }

  .sg-connect-brand-bg {
    padding: 1.5rem;
  }

  .sg-connect-brand-bg img {
    max-width: 82%;
    max-height: 90px;
  }

  .sg-connect-award-image {
    max-width: 220px;
    margin: 0 auto;
  }
}
/* ─── 7. SITE BACKGROUND GRADIENT ──────────── */
body,
.elementor-page {
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #f0f0f0 50%,
    #e0e0e0 100%
  ) fixed;
  min-height: 100vh;
}
/* Main Header */
.custom-header {
  background: linear-gradient(
    125deg,
    #0d1117 0%,
    #0a1a27 35%,
    #003d4d 70%,
    #006570 100%
  ) !important;
  min-height: 96px;
  display: flex;
  align-items: center;
}

.custom-header .elementor-container,
.custom-header .uae-nav-menu,
.custom-header .uae-hf-menu,
.custom-header .ast-builder-layout-element {
  min-height: 96px;
  display: flex;
  align-items: center;
}

.sg-header-logo img {
  max-height: 65px;
  width: auto;
  display: block;
}

/* Tablet */
@media (max-width: 1024px) {
  .custom-header {
    min-height: 78px;
  }

  .custom-header .elementor-container,
  .custom-header .uae-nav-menu,
  .custom-header .uae-hf-menu,
  .custom-header .ast-builder-layout-element {
    min-height: 78px;
  }

  .sg-header-logo img {
    max-height: 48px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .custom-header {
    min-height: 64px;
  }

  .custom-header .elementor-container,
  .custom-header .uae-nav-menu,
  .custom-header .uae-hf-menu,
  .custom-header .ast-builder-layout-element {
    min-height: 64px;
  }

  .sg-header-logo img {
    max-height: 38px;
  }
}


/* ------------------------------------------------------------
   20. CROSS-PAGE LAYOUT UTILITIES
   ------------------------------------------------------------ */

.sg-inner {
  max-width: var(--sg-max);
  margin: 0 auto;
  padding: 0 1rem;
}

.sg-section {
  padding: 80px 1rem;
}
.sg-section--light { background: #ffffff; }
.sg-section--off   { background: #f7f8fa; border-top: 1px solid #eef0f3; border-bottom: 1px solid #eef0f3; }
.sg-section--dark  { background: var(--sg-dark); }
.sg-section--teal  { background: var(--sg-teal-lt); border-top: 1px solid var(--sg-border); border-bottom: 1px solid var(--sg-border); }


/* ------------------------------------------------------------
   21. EYEBROW LABEL
   ------------------------------------------------------------ */

.sg-eyebrow {
  display: block;
  width: fit-content;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sg-teal);
  margin: 0 auto 12px;
}


/* ------------------------------------------------------------
   22. HEADINGS & LEAD COPY
   Centered within the 1120px body (2026-08-09) — eyebrow, H2, and
   lead copy are the section-intro cluster repeated at the top of
   every .sg-inner section on every page. Grid/card content below
   them stays left-aligned as normal; this only centers that intro
   cluster, matching the pattern .sg-connect-hero already used.
   ------------------------------------------------------------ */

.sg-h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--sg-text);
  margin: 0 0 8px;
  line-height: 1.2;
  text-align: center;
}
.sg-h2--white { color: #ffffff !important; }

.sg-lead {
  color: var(--sg-text-mid);
  line-height: 1.75;
  max-width: 680px;
  margin: 0 auto 32px;
  text-align: center;
}
.sg-lead--white { color: rgba(255,255,255,0.72); }


/* ------------------------------------------------------------
   23. BUTTONS
   ------------------------------------------------------------ */

.sg-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95em;
  text-decoration: none;
  transition: all 0.2s ease;
}
.sg-btn--primary               { background: var(--sg-teal); color: #ffffff; }
.sg-btn--primary:hover         { background: #00adb5; color: #ffffff; transform: translateY(-1px); }
.sg-btn--ghost                 { background: transparent; color: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.2); }
.sg-btn--ghost:hover           { border-color: var(--sg-teal); color: var(--sg-teal); }
.sg-btn--outline               { background: transparent; color: var(--sg-teal); border: 1px solid var(--sg-teal); }
.sg-btn--outline:hover         { background: var(--sg-teal); color: #ffffff; }


/* ------------------------------------------------------------
   24. HERO
   ------------------------------------------------------------ */

.sg-hero {
  background: var(--sg-dark);
  padding: 100px 24px 90px;
  position: relative;
  overflow: hidden;
}
.sg-hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(0,194,203,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.sg-hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -40px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(0,194,203,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.sg-hero__inner {
  max-width: var(--sg-max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.sg-hero__name {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 20px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.sg-hero__name span { color: var(--sg-teal); }
.sg-hero__sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 0 36px;
}
.sg-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Layered hero variant (used on Insights) */
.sg-hero__bg {
  position: absolute;
  inset: 0;
  background: var(--sg-dark);
  z-index: 0;
}
.sg-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13,17,23,0.5) 0%, rgba(13,17,23,0.92) 100%);
  z-index: 1;
  pointer-events: none;
}
.sg-hero__accent {
  position: absolute;
  top: -100px;
  right: -60px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(0,194,203,0.12) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}
.sg-hero__content {
  max-width: var(--sg-max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.sg-hero__eyebrow {
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sg-teal);
  margin: 0 0 16px;
}
.sg-hero__tagline {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 0 36px;
}


/* ------------------------------------------------------------
   25. INTRO GRID
   ------------------------------------------------------------ */

.sg-intro-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 760px;
  margin: 0 auto;
}
.sg-intro-text p {
  color: var(--sg-text-mid);
  line-height: 1.75;
  margin: 0 0 18px;
}
.sg-intro-text p:last-child { margin-bottom: 0; }
.sg-intro-sidebar {
  background: var(--sg-teal-lt);
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius);
  padding: 28px;
}
.sg-intro-sidebar__label {
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sg-teal);
  margin: 0 0 14px;
}
.sg-intro-sidebar__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sg-intro-sidebar__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--sg-text-mid);
  font-size: 0.92em;
  line-height: 1.5;
  padding: 8px 0;
  border-bottom: 1px solid var(--sg-border);
}
.sg-intro-sidebar__list li:last-child { border-bottom: none; }
.sg-intro-sidebar__list li strong { color: var(--sg-text); }


/* ------------------------------------------------------------
   26. WORK CARDS
   ------------------------------------------------------------ */

.sg-work-featured {
  background: var(--sg-dark-card);
  border: 1px solid var(--sg-border);
  border-top: 3px solid var(--sg-teal);
  border-radius: var(--sg-radius);
  padding: 40px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.sg-work-featured::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(0,194,203,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.sg-work-featured__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}
.sg-work-label {
  display: inline-block;
  font-size: 0.7em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sg-teal);
  background: rgba(0,194,203,0.1);
  border: 1px solid rgba(0,194,203,0.2);
  border-radius: 4px;
  padding: 3px 10px;
  margin-bottom: 14px;
}
.sg-work-featured h3 {
  font-size: 1.7rem;
  font-weight: 700;
  color: #ffffff !important;
  margin: 0 0 14px;
}
.sg-work-featured p {
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin: 0 0 20px;
  max-width: 640px;
}
.sg-work-featured .sg-pill {
  background: rgba(0,194,203,0.12);
  color: #00c2cb;
  border: 1px solid rgba(0,194,203,0.2);
}
.sg-work-featured__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
  padding-top: 4px;
}

.sg-work-secondary {
  background: #ffffff;
  border: 1px solid #e8ecf0;
  border-radius: var(--sg-radius);
  padding: 32px 36px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
}
.sg-work-secondary__icon {
  font-size: 2rem;
  line-height: 1;
  padding-top: 4px;
}
.sg-work-secondary h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--sg-text);
  margin: 0 0 10px;
}
.sg-work-secondary p {
  color: var(--sg-text-mid);
  line-height: 1.65;
  margin: 0 0 16px;
}
.sg-work-secondary .sg-pill {
  background: #eef7f7;
  color: #177a80;
}
.sg-work-secondary .sg-service-pills {
  gap: 10px;
  row-gap: 10px;
}


/* ------------------------------------------------------------
   27. PROJECTS GRID
   ------------------------------------------------------------ */

.sg-projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.sg-project-block {
  background: #ffffff;
  border: 1px solid #e8ecf0;
  border-radius: var(--sg-radius);
  padding: 28px;
}
.sg-project-block__heading {
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sg-teal);
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sg-border);
}
.sg-project-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sg-project-list li {
  padding-left: 18px;
  position: relative;
  color: var(--sg-text-mid);
  line-height: 1.55;
  font-size: 0.93em;
}
.sg-project-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--sg-teal);
  font-weight: 700;
}
.sg-project-list li strong {
  display: block;
  color: var(--sg-text);
  font-weight: 600;
  margin-bottom: 2px;
}
.sg-project-list a {
  color: var(--sg-text);
  font-weight: 600;
  text-decoration: none;
}
.sg-project-list a:hover { color: var(--sg-teal); text-decoration: underline; }


/* ------------------------------------------------------------
   28. CERTIFICATIONS GRID
   ------------------------------------------------------------ */

.sg-certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.sg-cert-item {
  background: var(--sg-dark-card);
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius);
  padding: 24px 28px;
}
.sg-cert-item__issuer {
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sg-teal);
  opacity: 0.8;
  margin: 0 0 8px;
}
.sg-cert-item__name {
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
  line-height: 1.3;
}
.sg-cert-item__desc {
  color: rgba(255,255,255,0.55);
  font-size: 0.88em;
  line-height: 1.55;
  margin: 0;
}


/* ------------------------------------------------------------
   29. COMMUNITY CARDS
   ------------------------------------------------------------ */

.sg-community-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.sg-community-card {
  background: #ffffff;
  border: 1px solid #e8ecf0;
  border-left: 3px solid var(--sg-teal);
  border-radius: var(--sg-radius);
  padding: 24px 28px;
}
.sg-community-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sg-text);
  margin: 0 0 8px;
}
.sg-community-card p {
  color: var(--sg-text-mid);
  line-height: 1.65;
  margin: 0;
  font-size: 0.93em;
}


/* ------------------------------------------------------------
   30. ABOUT PAGE
   ------------------------------------------------------------ */

.sg-about-intro {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}
.sg-about-portrait {
  width: 220px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  outline: 3px solid rgba(0, 194, 203, 0.4);
  outline-offset: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 0 40px rgba(0, 194, 203, 0.08);
}
.sg-about-text p {
  color: var(--sg-text-mid);
  line-height: 1.75;
  margin: 0 0 18px;
}
.sg-about-text p:last-child { margin-bottom: 0; }


/* ------------------------------------------------------------
   31. SKILLS LIST
   ------------------------------------------------------------ */

.sg-skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.sg-skills-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--sg-text-mid);
  line-height: 1.6;
  font-size: 0.95em;
}
.sg-skills-list li::before {
  content: '→';
  color: var(--sg-teal);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.sg-skills-list strong { color: var(--sg-text); }


/* ------------------------------------------------------------
   32. CERT BADGES
   ------------------------------------------------------------ */

.sg-cert-badge-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 36px;
}
.sg-cert-badge-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 28px;
  align-items: start;
  background: var(--sg-dark-card);
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius);
  padding: 28px;
}
.sg-cert-badge-item a { display: block; }
.sg-cert-badge-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.2s ease;
}
.sg-cert-badge-item a:hover img { transform: scale(1.04); }
.sg-cert-badge-item__issuer {
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sg-teal);
  opacity: 0.85;
  margin: 0 0 6px;
}
.sg-cert-badge-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff !important;
  margin: 0 0 10px;
  line-height: 1.3;
}
.sg-cert-badge-item p {
  color: rgba(255,255,255,0.6);
  font-size: 0.92em;
  line-height: 1.65;
  margin: 0;
}


/* ------------------------------------------------------------
   33. MICROCREDENTIALS
   ------------------------------------------------------------ */

.sg-microcred-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.sg-microcred-card {
  background: #ffffff;
  border: 1px solid #e8ecf0;
  border-left: 3px solid var(--sg-teal);
  border-radius: var(--sg-radius);
  padding: 28px;
}
.sg-microcred-card__issuer {
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sg-teal);
  margin: 0 0 8px;
}
.sg-microcred-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sg-text);
  margin: 0 0 14px;
  line-height: 1.3;
}
.sg-microcred-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sg-microcred-card li {
  color: var(--sg-text-mid);
  font-size: 0.91em;
  line-height: 1.55;
  padding-left: 16px;
  position: relative;
}
.sg-microcred-card li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--sg-teal);
  font-weight: 700;
}


/* ------------------------------------------------------------
   34. EDUCATION
   ------------------------------------------------------------ */

.sg-edu-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}
.sg-edu-item {
  background: #ffffff;
  border: 1px solid #e8ecf0;
  border-left: 3px solid var(--sg-teal);
  border-radius: var(--sg-radius);
  padding: 20px 24px;
}
.sg-edu-item__school {
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sg-teal);
  margin: 0 0 4px;
}
.sg-edu-item h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--sg-text);
  margin: 0;
}


/* ------------------------------------------------------------
   35. CARD GRID
   ------------------------------------------------------------ */

.sg-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.sg-card-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.sg-card {
  background: #ffffff;
  border: 1px solid #e8ecf0;
  border-left: 3px solid var(--sg-teal);
  border-radius: var(--sg-radius);
  padding: 24px 28px;
}
.sg-card--link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sg-card--link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 194, 203, 0.1);
}
.sg-card__label {
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sg-teal);
  margin: 0 0 6px;
}
.sg-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sg-text);
  margin: 0 0 10px;
  line-height: 1.3;
}
.sg-card p {
  color: var(--sg-text-mid);
  line-height: 1.65;
  font-size: 0.93em;
  margin: 0;
}
.sg-card__link-text {
  display: inline-flex;
  align-items: center;
  font-size: 0.88em;
  font-weight: 600;
  color: var(--sg-teal);
  margin-top: 12px;
}
.sg-card__link-text::after { content: " →"; }


/* ------------------------------------------------------------
   36. EVENT CALLOUT & BODY TEXT
   ------------------------------------------------------------ */

.sg-event-callout {
  background: #ffffff;
  border: 1px solid #e8ecf0;
  border-top: 3px solid var(--sg-teal);
  border-radius: var(--sg-radius);
  padding: 32px 36px;
  max-width: 720px;
}
.sg-event-callout h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sg-text);
  margin: 0 0 10px;
}
.sg-event-callout p {
  color: var(--sg-text-mid);
  line-height: 1.7;
  margin: 0 0 14px;
}
.sg-event-callout p:last-child { margin-bottom: 0; }

.sg-body-text p {
  color: var(--sg-text-mid);
  line-height: 1.75;
  margin: 0 0 18px;
  max-width: 760px;
}
.sg-body-text p:last-child { margin-bottom: 0; }


/* ------------------------------------------------------------
   37. PROJECT CARDS
   ------------------------------------------------------------ */

.sg-project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.sg-project-card {
  background: #ffffff;
  border: 1px solid #e8ecf0;
  border-radius: var(--sg-radius);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
}
.sg-project-card--featured { border-top: 3px solid var(--sg-teal); }
.sg-project-card--dark {
  background: var(--sg-dark-card);
  border-color: var(--sg-border);
  border-top: 3px solid var(--sg-teal);
}
.sg-project-card--link,
.sg-project-card--link:hover,
.sg-project-card--link:focus {
  text-decoration: none !important;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.sg-project-card--link:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--sg-teal);
}

.sg-project-card__eyebrow {
  font-size: 0.65em !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sg-teal) !important;
  margin: 0 0 8px !important;
}

.sg-project-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sg-text);
  margin: 0 0 10px !important;
  line-height: 1.3;
}
.sg-project-card--dark h3 { color: #ffffff !important; }

.sg-project-card p {
  color: var(--sg-text-mid);
  line-height: 1.7;
  font-size: 0.93em;
  margin: 0 0 18px;
  flex: 1;
}
.sg-project-card--dark p { color: rgba(255,255,255,0.62); }

.sg-project-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.sg-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sg-tech-pill {
  font-size: 0.75em;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--sg-teal-lt);
  color: #0d9aa3;
  border: 1px solid rgba(0, 194, 203, 0.2);
  white-space: nowrap;
}
.sg-project-card--dark .sg-tech-pill {
  background: rgba(0, 194, 203, 0.1);
  color: var(--sg-teal);
}

.sg-project-link {
  font-size: 0.88em;
  font-weight: 600;
  color: var(--sg-teal);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.sg-project-link:hover { text-decoration: underline; }
.sg-project-link::after { content: " →"; }


/* ------------------------------------------------------------
   38. SECTION SUB-ELEMENTS
   ------------------------------------------------------------ */

.sg-section__subtitle {
  font-weight: 700;
  color: var(--sg-text);
  margin: 40px 0 12px;
}
.sg-section--dark .sg-section__subtitle { color: #ffffff; }

.sg-section__body--narrow { max-width: 720px; }
.sg-section__body--narrow p {
  color: var(--sg-text-mid);
  line-height: 1.75;
  margin: 0 0 18px;
}
.sg-section--dark .sg-section__body--narrow p { color: rgba(255,255,255,0.72); }


/* ------------------------------------------------------------
   39. ORDERED LIST
   ------------------------------------------------------------ */

.sg-ordered-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: sg-counter;
  max-width: 720px;
}
.sg-ordered-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #f7f8fa;
  border: 1px solid #e8ecf0;
  border-radius: var(--sg-radius);
  padding: 16px 20px;
  color: var(--sg-text-mid);
  line-height: 1.65;
  counter-increment: sg-counter;
}
.sg-ordered-list li::before {
  content: counter(sg-counter);
  font-weight: 800;
  color: var(--sg-teal);
  opacity: 0.7;
  flex-shrink: 0;
  min-width: 20px;
  line-height: 1.65;
}
.sg-ordered-list li code {
  background: var(--sg-teal-lt);
  border: 1px solid var(--sg-border);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: monospace;
  color: var(--sg-text);
}


/* ------------------------------------------------------------
   40. FEATURE LIST
   ------------------------------------------------------------ */

.sg-tool-wrap {
  max-width: 720px;
  margin: 0 0 8px;
}

.sg-feature-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 12px 28px;
  max-width: 720px;
}
.sg-feature-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--sg-text-mid);
  line-height: 1.55;
}
.sg-feature-list li strong { color: var(--sg-text); }
.sg-feature-list__icon {
  color: var(--sg-teal);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.sg-feature-list--stacked {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  max-width: 720px;
}
.sg-feature-list--stacked li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border-radius: var(--sg-radius);
  padding: 18px 20px;
  color: var(--sg-text-mid);
  line-height: 1.65;
  border: 1px solid #e8ecf0;
}
.sg-section--light .sg-feature-list--stacked li { background: #f7f8fa; }
.sg-section--off   .sg-feature-list--stacked li { background: #ffffff; }
.sg-feature-list--stacked li strong { color: var(--sg-text); }
.sg-feature-list--stacked .sg-feature-list__icon { margin-top: 3px; }


/* ------------------------------------------------------------
   41. SUMMARY LIST
   ------------------------------------------------------------ */

.sg-summary-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 620px;
}
.sg-summary-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--sg-text-mid);
  line-height: 1.6;
  padding-left: 4px;
}
.sg-summary-list li::before {
  content: '✓';
  color: var(--sg-teal);
  font-weight: 700;
  flex-shrink: 0;
}


/* ------------------------------------------------------------
   42. TIP CARDS
   ------------------------------------------------------------ */

.sg-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 960px;
}
.sg-tip-card {
  background: #ffffff;
  border: 1px solid #e8ecf0;
  border-top: 3px solid var(--sg-teal);
  border-radius: var(--sg-radius);
  padding: 24px 28px;
}
.sg-tip-card h3 {
  font-weight: 700;
  color: var(--sg-text);
  margin: 0 0 10px;
}
.sg-tip-card p {
  color: var(--sg-text-mid);
  margin: 0;
  line-height: 1.65;
}


/* ------------------------------------------------------------
   43. FAQ LIST
   ------------------------------------------------------------ */

.sg-faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
}
.sg-faq-item {
  background: #f7f8fa;
  border: 1px solid #e8ecf0;
  border-left: 3px solid var(--sg-teal);
  border-radius: var(--sg-radius);
  padding: 28px 32px;
}
.sg-faq-item__question {
  font-weight: 700;
  color: var(--sg-text);
  margin: 0 0 10px;
}
.sg-faq-item__answer {
  color: var(--sg-text-mid);
  margin: 0;
  line-height: 1.7;
}


/* ------------------------------------------------------------
   44. CTA BAND
   ------------------------------------------------------------ */

.sg-cta-band {
  background: var(--sg-dark-card);
  padding: 88px 24px;
  text-align: center;
  border-top: 1px solid var(--sg-border);
}
.sg-cta-band__inner { max-width: 620px; margin: 0 auto; }
.sg-cta-band__title {
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px;
}
.sg-cta-band__title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--sg-teal);
  opacity: 0.65;
  margin: 12px auto 0;
}
.sg-cta-band__body {
  color: rgba(255,255,255,0.65);
  margin: 0 0 16px;
  line-height: 1.7;
}
.sg-cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 32px;
}


/* ------------------------------------------------------------
   45. RESPONSIVE — all components
   ------------------------------------------------------------ */

@media (max-width: 900px) {
  .sg-certs-grid           { grid-template-columns: repeat(2, 1fr); }
  .sg-work-featured__inner { grid-template-columns: 1fr; }
  .sg-work-featured__cta   { flex-direction: row; align-items: center; }
}

@media (max-width: 768px) {
  .sg-about-intro      { grid-template-columns: 1fr; gap: 28px; }
  .sg-about-portrait   { max-width: 180px; }
  .sg-skills-list      { grid-template-columns: 1fr; }
  .sg-cert-badge-item  { grid-template-columns: 80px 1fr; gap: 20px; padding: 22px; }
  .sg-microcred-grid   { grid-template-columns: 1fr; }
  .sg-card-grid,
  .sg-card-grid--3     { grid-template-columns: 1fr; }
  .sg-project-grid     { grid-template-columns: 1fr; }
  .sg-feature-list     { grid-template-columns: 1fr; }
  .sg-tips-grid        { grid-template-columns: 1fr; }
  .sg-cta-band         { padding: 64px 20px; }
}

@media (max-width: 640px) {
  .sg-section              { padding: 56px 1rem; }
  .sg-hero                 { padding: 72px 20px 64px; }
  .sg-work-secondary       { grid-template-columns: 1fr; gap: 16px; }
  .sg-certs-grid           { grid-template-columns: 1fr; }
  .sg-community-grid       { grid-template-columns: 1fr; }
  .sg-work-featured        { padding: 28px; }
  .sg-cert-badge-item      { grid-template-columns: 1fr; }
  .sg-cert-badge-item img  { max-width: 80px; }
  .sg-event-callout        { padding: 24px; }
  .sg-project-card         { padding: 22px 24px; }
}