/* ----------------------------------
   GLOBAL RESET & BASE STYLES
---------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #FAFAFC;
  color: #283038;
  line-height: 1.6;
  /* Ensure images and iframes scale down */
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ----------------------------------
   Section 1: Navbar Section
---------------------------------- */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  padding: 10px 0;
  display: flex;
  justify-content: center;
  z-index: 100;
}
.navbar {
  width: 95%;
  max-width: 1200px;
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0;
}
.navbar-brand {
  display: flex;
  align-items: center;
}
.logo {
  width: 35px;
  height: 35px;
  margin-right: 12px;
}
.company-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333F48;
  letter-spacing: 0.01em;
}
.navbar-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.navbar-menu li a {
  position: relative;
  color: #333F48;
  font-size: 0.85rem;
  text-decoration: none;
  padding: 4px 8px;
  transition: color 0.3s ease;
}
.navbar-menu li a::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.3s ease;
}
.navbar-menu li a:hover::after {
  opacity: 1;
}
.navbar-menu li a:hover {
  color: #725EE1;
  font-weight: 650;
}

.mobile-menu-toggle {
  display: none;
}

/* Hide the mobile overlay menu on desktop */
.mobile-menu {
  display: none;
}

/* Ensure dropdown container is positioned relative */
.navbar-menu li.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  padding: 0.5rem 0;
  margin: 0;             /* remove default margin */
  list-style: none;      /* remove bullets */
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  min-width: 175px;
  z-index: 1000;
}

/* Show dropdown on hover */
.navbar-menu li.dropdown:hover .dropdown-menu {
  display: block;
}

/* Dropdown Menu item styling */
.dropdown-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #333F48;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.brand-link .logo {
  margin-right: 8px; /* Optional: adjust spacing between logo and name */
}

.scrolled {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@media (max-width: 800px) {

  .navbar-menu {
    display: none;
  }

  .mobile-dropdown-label {
    font-size: 1.5rem;
    color: #283038;        /* same as other items */
    margin-bottom: 0.5rem;
    cursor: pointer;
    text-align: left;
  }

  .mobile-dropdown-menu {
    list-style: none;
    padding-left: 1rem;
    margin: 0 0 1rem;
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #000;          /* or whatever your nav text color is */
    cursor: pointer;
    position: relative;
    z-index: 1002;
  }

  .navbar.mobile-open > .mobile-menu-toggle {
  display: none;
    }

  .mobile-dropdown-menu.open {
      display: block;
  }

   /* Ensure header items don’t wrap and are centered vertically */
  .mobile-menu-header {
    display: flex;
    justify-content: space-between; /* brand on left, close on right */
    align-items: center;
    flex-wrap: nowrap;              /* prevent wrapping to second line */
    padding: 1rem 2rem;             /* keep your existing padding */
    background: #FAFAFC;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    width: 100%;
  }

  .mobile-menu-header .mobile-menu-toggle {
    width: 30px;
    height: 30px;
    font-size: 1.5rem;
    border: 2px solid #000;
    border-radius: 50%;
    color: #000;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;      /* reset any existing margins */
    cursor: pointer;
    z-index: 1002;
  }

  .mobile-menu-header .brand-link {
    display: flex;
    align-items: center;
  }

  .mobile-menu-header .brand-link {
    display: flex;
    align-items: left;
    text-decoration: none;
  }

  .mobile-menu-header .logo {
    width: 30px;
    height: auto;
    margin-right: 0.5rem;
  }

  .mobile-menu-header .company-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #283038;
  }
  .mobile-dropdown-menu li + li {
    margin-top: 0.5rem;
  }
  .mobile-dropdown-menu li a {
    font-size: 1rem;
    color: #283038;
    text-decoration: none;
  }

  .mobile-menu-toggle.open {
    margin-top: 1rem;      /* tweak this value until it sits where you want */
    color: #fff;
  }

  .dropdown-toggle {
    font-size: 1.5rem;
    color: #283038;        /* same as other items */
    margin-bottom: 0.5rem;
    cursor: pointer;
    text-align: left;
  }

  /* 2. Logo stays top‑left; make navbar a flex container */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
  }

  /* 4. Full‑screen overlay menu (you’ll need <ul class="mobile-menu">…</ul> in your HTML) */
  .mobile-menu {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: #FAFAFC;  /* light off‑white */
    padding: 4rem 2rem;
    box-sizing: border-box;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 1000;
    overflow-y: auto;
    align-items: flex-start; /* make all <li> children stretch to the left */
    text-align: left;        /* left-align any inline content */
    padding-top: 4rem;
  }

  .mobile-menu li a {
    display: block;
    font-size: 1.5rem;
    color: #283038;
    text-decoration: none;
    text-align: left;
  }

  .mobile-menu.open {
    display: flex;
  }

  .mobile-menu,
  .mobile-menu li {
    list-style: none;
  }
}

/* ----------------------------------
   Main Content
---------------------------------- */

.page-wrapper {
  width: 100%;
  margin: 0 auto;
  padding: 2rem 0;
  background-color: #ffffff;
}

.main-content {
  margin-top: 20px;
}

/* ─── Left & Right Background Accents ─── */
.page-wrapper {
  position: relative; /* ensure pseudo-elements position relative to this */
  z-index: 0;
}

.case-study-content {
    background-color: #fff;
    border-radius: 8px;
}

/* === HERO STYLES === */

.hero {
  position: relative;
  background-image: url("/images/paga-wallpaper.webp");
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 4rem 2rem 6rem;
}

/* Two‑column grid: left = title+metrics, right = logo */
.hero-main {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 1rem;
}

.breadcrumb {
  position: relative;
  font-size: 0.875rem;
  color: #fff;
}
.breadcrumb a {
  color: #fff;
  text-decoration: none;
}
.breadcrumb span {
  color: #fff;
  font-weight: 500;
}

.badge {
  margin: 20px 1rem 0 1rem; /* 1rem right-margin adds space between badges */
  display: inline-block;
  background-color: #f0f0f0;
  color: #333;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  white-space: nowrap; /* prevent it from wrapping narrower */
}

.badge-primary {
  background-color: #725EE1; /* example: mint green */
  color: #ffffff;            /* white text */
}

/* Left column has two rows */
.hero-left {
  display: grid;
  grid-template-rows: auto auto;
  row-gap: 1.5rem;
}

/* Title wraps at ~60% width */
.hero-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  white-space: normal;
  padding: 10px;
}

/* Metrics row */
.metrics {
  display: flex;
  justify-content: flex-start; /* spread them out evenly */
  align-items: center;
  flex-wrap: wrap;                /* allow wrapping if the screen is narrow */
  gap: 1.5rem;                       /* modest horizontal gap between items */
  margin-bottom: 2rem;            /* adjust as needed */
  padding: 10px;
}

/* Each individual metric box */
.metric {
  flex: 1.5 1.5 150px;       /* grow/shrink; minimum width 150px */
  text-align: left;
}

/* Number styling */
.metric .value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;           /* or whatever color fits your hero background */
}

/* Label styling */
.metric .label {
  margin-top: 0.25rem;
  font-size: 1rem;
  color: #fff;
}

/* Right column: logo */
.hero-right {
  display: flex;
  justify-content: flex-end;
}
.hero-logo {
  width: 360px;
  height: auto;
  margin: 0;
}

.hero-right {
  display: flex;
  justify-content: flex-end;
  padding-right: 1.5rem;  /* adjust this value to taste */
}

/* Quote below */
.hero-quote {
  margin-top: -4rem;
  margin-left: 5rem;
  padding: 1rem;
  border: 2px solid #BA86FF;
  border-radius: 0.5rem;
  color: #000;
  position: relative;
  width: 70%;
  border: 3px solid #BA86FF;   /* <-- updated border color */
  background-color: #F7F1FF;
}
.hero-quote .author {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: right;
}

/* ----------------------------
   LAYOUT (sidebar + content grid)
---------------------------- */
.layout {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 2rem;
  align-items: start;
  margin-top: 3rem;
  margin-bottom: 3rem;
  margin-right: 2rem;
  margin-left: 2rem;
}

/* ----------------------------
   SIDEBAR / TABLE OF CONTENTS
---------------------------- */
.sidebar {
  position: sticky;
  top: 2rem;
}

.toc {
  background-color: #F5F5F5;
  border: 3px solid #A9A9A9;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 2rem;
  text-align: left;
}

.toc h3 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: #444;
}

.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc li {
  margin-bottom: 1rem;
}

.toc a {
  text-decoration: none;
  color: #000;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.toc a:hover {
  color: #2E72FF;
}

.toc ul ul {
  margin-top: 0.25rem;
  margin-left: 1rem;
}

/* ----------------------------
   Sidebar CTA
---------------------------- */
.sidebar-cta {
  /* Remove the “width: 100%” so it doesn’t force full‐viewport width on smaller screens */
  width: auto;
  /* Keep a max width so it won’t grow too wide on large screens */
  max-width: 1400px;
  /* Add left/right margin so it never hugs the screen edges */
  margin: 3rem 1.5rem 2rem;
  /* Keep your internal padding for content */
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, #3ED6A8, #1EBEA0);
  color: #fff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.sidebar-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.sidebar-cta-title {
  font-size: 1.5rem;    /* ~22px */
  font-weight: 600;
  margin-bottom: 1rem;
}

.sidebar-cta-text {
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

.sidebar-cta-link {
  font-size: 1rem;
  font-weight: 600;
  color: #B840A9;
  text-decoration: none;
}

.sidebar-cta-link:hover {
  text-decoration: none;
}

/* Force solid button look, no underlines */
/* Button: inverted colors for pop */
.sidebar-cta-button {
  background: #fff;
  color: #3ED6A8;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
  text-decoration: none;        /* ← remove underline */
    display: inline-block; /* it already is, but just in case */
  margin: 0 auto;        /* auto left/right to center */
}

.sidebar-cta-button:hover {
  color: #000;
}

/* ----------------------------
   “WHAT YOU’LL LEARN” CALLOUT
---------------------------- */
.learn-callout {
  background-color: #F7F1FF;
  border: 3px solid #BA86FF;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 3rem;
}

.learn-callout h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #BA86FF;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.learn-divider {
  border: 0;
  height: 2px;
  background-color: #BA86FF;
  margin: 0 0 1.5rem;
}

.learn-callout ul {
  list-style: disc outside;
  margin-left: 0.25rem;
  line-height: 1.6;
  padding-left: 1rem;   /* space for the bullet + gap */
}

.learn-callout ul li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

/* === TOC Active Link Styling === */
.toc a.active {
  font-weight: 700;
  color: #2E72FF;
}

/* ----------------------------
   GENERIC SECTION WRAPPER
---------------------------- */
.section {
  margin-bottom: 3rem;
  margin-left: 2rem;
}

/* ----------------------------
   SECTION HEADER (ICON + H2)
---------------------------- */
.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.section-header .icon {
  width: 36px;
  height: 36px;
  fill: #2E72FF;
  margin-right: 0.75rem;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2E72FF;
  text-transform: uppercase;
  margin: 0;
}

/* ----------------------------
   SECTION BODY TEXT & LISTS
---------------------------- */
.section p,
.section ul {
  font-size: 1.2rem;
  line-height: 1.6;
}

/* ----------------------------
   NUMBERED STEPS IN “SOLUTION”
---------------------------- */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 2px solid #2E72FF;
  border-radius: 50%;
  margin-right: 0.75rem;
  font-size: 1rem;
  color: #2E72FF;
}

.section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #000;
}

.sub-section {
  margin-left: 30px;
  margin-right: 30px;
}

/* ----------------------------
   IMPACT CALLOUT
---------------------------- */
.impact-callout {
  background-color: #F7F1FF;
  border: 3px solid #BA86FF;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 3rem;
}

.impact-callout h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #BA86FF;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.impact-divider {
  border: 0;
  height: 2px;
  background-color: #BA86FF;
  margin: 0 0 1.5rem;
}

.impact-callout ul {
  list-style: disc outside;
  padding-left: 1.25rem;
  line-height: 1.6;
}

.impact-callout ul li {
  margin-bottom: 1rem;
  /* hanging indent so wrapped lines align under text, not bullet */
  text-indent: -0.75rem;
  padding-left: 0.75rem;
}


/* ----------------------------------
   Footer Section
---------------------------------- */
.site-footer {
  background: #1F1235;
  color: #fff;
  padding: 2rem 1rem;
  font-size: 0.95rem;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-logo {
  width: 40px;
  height: 40px;
}
.footer-brand-name {
  font-size: 1.125rem;
  font-weight: 600;
}
.footer-columns {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.footer-column a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-column a:hover {
  color: #ddd;
}
.footer-bottom {
  margin-top: 2rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1rem;
  color: #bbb;
}

/* ----------------------------
   Smooth Scrolling
---------------------------- */
html {
  scroll-behavior: smooth;
}

/* ================================
   Mobile Styles (≤ 800px)
================================ */
@media (max-width: 800px) {

/* Make wrapper full‐width with minimal side padding */
  .page-wrapper {
    width: 100%;
    padding: 0 0.5rem;
    margin: 0;
  }

  /* Stack content then CTA, remove extra gutters */
  .layout {
    display: flex;
    flex-direction: column-reverse;
    gap: 1rem;
    margin: 0;
  }

  /* Sidebar (CTA only) full width */
  .sidebar-cta {
    width: 100%;
    margin: 0;
    padding: 1rem;
  }

  /* Main content full width with no side padding */
  .content {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  /* Bring hero edges closer to screen */
  .hero {
    padding: 1rem 0.5rem;
  }

  /* Reduce call-out side margins */
  .learn-callout,
  .impact-callout {
    margin: 1rem 0;
    padding: 1rem 0.75rem;
  }

    /* 1. Stack content first, then sidebar (which now only holds the CTA) */
  .layout {
    display: flex;
    flex-direction: column-reverse;
    gap: 1.5rem;
    margin: 1rem;
  }

  .badges-container {
    display: none;
  }

  /* 2. Hide the Table of Contents */
  .toc {
    display: none !important;
  }

  /* 3. Sidebar resets (it’s just the CTA now) */
  .sidebar {
    position: static;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  /* 4. CTA full width, no forced order */
  .sidebar-cta {
    width: 100%;
    margin: 0;
    padding: 1.5rem;
  }

  /* 5. Main content spans full width */
  .content {
    width: 100%;
    margin: 0;
    padding: 0;
  }

    .navbar-menu {
    display: none;
  }

  .mobile-dropdown-label {
    font-size: 1.5rem;
    color: #283038;        /* same as other items */
    margin-bottom: 0.5rem;
    cursor: pointer;
    text-align: left;
  }

  .mobile-dropdown-menu {
    list-style: none;
    padding-left: 1rem;
    margin: 0 0 1rem;
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #000;          /* or whatever your nav text color is */
    cursor: pointer;
    position: relative;
    z-index: 1002;
  }

  .navbar.mobile-open > .mobile-menu-toggle {
  display: none;
    }

  .mobile-dropdown-menu.open {
      display: block;
  }

    /* Ensure header items don’t wrap and are centered vertically */
  .mobile-menu-header {
    display: flex;
    justify-content: space-between; /* brand on left, close on right */
    align-items: center;
    flex-wrap: nowrap;              /* prevent wrapping to second line */
    padding: 1rem 2rem;             /* keep your existing padding */
    background: #FAFAFC;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    width: 100%;
  }

 /* 2) Style the close button in the overlay as a white‐bordered circle */
  /* Style the close button as a circle and keep it flush right */
  .mobile-menu-header .mobile-menu-toggle {
    width: 30px;
    height: 30px;
    font-size: 1.5rem;
    border: 2px solid #000;
    border-radius: 50%;
    color: #000;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;      /* reset any existing margins */
    cursor: pointer;
    z-index: 1002;
  }

    .mobile-menu-header .brand-link {
    display: flex;
    align-items: center;
  }

  .mobile-menu-header .brand-link {
    display: flex;
    align-items: left;
    text-decoration: none;
  }

  .mobile-menu-header .logo {
    width: 30px;
    height: auto;
    margin-right: 0.5rem;
  }

  .mobile-menu-header .company-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #283038;
  }
  .mobile-dropdown-menu li + li {
    margin-top: 0.5rem;
  }
  .mobile-dropdown-menu li a {
    font-size: 1rem;
    color: #283038;
    text-decoration: none;
  }

  .mobile-menu-toggle.open {
    margin-top: 1rem;      /* tweak this value until it sits where you want */
    color: #fff;
  }

  .dropdown-toggle {
        font-size: 1.5rem;
    color: #283038;        /* same as other items */
    margin-bottom: 0.5rem;
    cursor: pointer;
    text-align: left;
  }

  /* 2. Logo stays top‑left; make navbar a flex container */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
  }

  /* 4. Full‑screen overlay menu (you’ll need <ul class="mobile-menu">…</ul> in your HTML) */
  .mobile-menu {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: #FAFAFC;  /* light off‑white */
    padding: 4rem 2rem;
    box-sizing: border-box;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 1000;
    overflow-y: auto;
    align-items: flex-start; /* make all <li> children stretch to the left */
    text-align: left;        /* left-align any inline content */
    padding-top: 4rem;
  }

  .mobile-menu li a {
    display: block;
    font-size: 1.5rem;
    color: #283038;
    text-decoration: none;
    text-align: left;
  }

  .mobile-menu.open {
    display: flex;
  }

  /* Page Nav (Problem‑Solution) */
  .ps-page-nav {
    display: none;
  }

  /* 5. Hero section: single-column grid, smaller padding */
  .hero {
    padding: 1.5rem 1rem;
  }
  .hero-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .hero-title {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  .metrics {
    flex-direction: column;
    gap: 1rem;
  }

  .metric {
    flex: none;           /* no shrinking/growing in column mode */
    width: 100%;
  }

  .hero-logo {
    width: 80px;
  }

  /* 6. Reduce font sizes for readability */
  .brand-title {
    font-size: 1.25rem;
  }
  .learn-callout h2,
  .impact-callout h2,
  .section-header h2 {
    font-size: 1.25rem;
  }
  .section p,
  .section ul li,
  .learn-callout ul li,
  .impact-callout ul li {
    font-size: 1rem;
    line-height: 1.5;
  }

  /* 7. Adjust blockquote width and padding */
  .hero-quote {
    width: auto;
    margin: 1rem;
    padding: 1rem;
  }

  /* 8. Tweak margins throughout for tighter vertical rhythm */
  .section {
    margin: 1.5rem 0;
  }

  .learn-callout,
  .impact-callout {
    padding: 1.5rem;
    margin: 1.5rem 0;
  }

  .hero-title {
    margin-top: 1.5rem; /* adjust as needed */
  }

    body,
  h1, h2, h3, h4, h5, h6,
  p, li, blockquote,
  .breadcrumb,
  .badges-container,
  .hero-title,
  .metrics .value,
  .metrics .label,
  .learn-callout h2,
  .learn-callout p,
  .section-header h2,
  .sidebar h3,
  .mobile-menu li a {
    text-align: left !important;
  }

  .metrics .value {
    font-size: 1.25rem;    /* was around 1.5rem by default—reduce as needed */
  }
  .metrics .label {
    font-size: 0.9rem;
  }

    .sub-section {
    margin-left: 1rem;   /* was 30px */
    margin-right: 1rem;  /* was 30px */
  }

  /* If your .section p or .section h3 have implicit padding, trim that too */
  .section p,
  .section h3 {
    padding-left: 1rem;   /* ensure there's just a small gutter */
    padding-right: 1rem;  /* ensure there's just a small gutter */
  }

  /* (Optional) Make sure long words or links wrap instead of overflowing */
  .section p,
  .section h3,
  .sub-section p {
    word-wrap: break-word;
    hyphens: auto;
  }
}