/*
Theme Name: CMU Nerds
Author: Dawood Mehmood
Theme URI: https://cmunerds.com/
Template: iteck
Description: Custom theme for cmunerds.com by Dawood Mehmood: service page design, form and accessibility fixes, and site settings. Built as a child theme of Iteck by ThemesCamp, which must stay installed.
Version: 1.2.1
License: GNU General Public License version 3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: iteck-child
*/
/* DEV is testing git auto-deployment */
/* Comments are off site-wide: hide the "0 Comments" counter the parent theme prints in post meta. */
.post-detail li:has(> .lnr-bubble) {
  display: none;
}

/* Contact Form 7 fields are wrapped in <label> for screen readers; keep the fields full width. */
.wpcf7-form label {
  display: block;
}

/* ==========================================================================
   Service page layout (sections built with the cmu-* classes, see docs/design.md)
   ========================================================================== */

:root {
  --cmu-purple: #4a00e1;
  --cmu-blue: #0b63ce;
  --cmu-ink: #16123a;
  --cmu-text: #55516e;
  --cmu-line: rgba(74, 0, 225, 0.12);
  --cmu-gradient: linear-gradient(
    120deg,
    #4a00e1 0%,
    #2f2be0 50%,
    #0b63ce 100%
  );
  --cmu-soft: linear-gradient(
    135deg,
    rgba(74, 0, 225, 0.12),
    rgba(11, 99, 206, 0.12)
  );
  --cmu-shadow: 0 10px 30px rgba(22, 18, 58, 0.07);
  --cmu-shadow-hover: 0 22px 45px rgba(74, 0, 225, 0.16);
  --cmu-radius: 18px;

  /* One type scale for every service page. */
  --cmu-h1: 46px;
  --cmu-h2: 36px;
  --cmu-h3: 19px;
  --cmu-lead: 18px;
  --cmu-intro: 17px;
  --cmu-body: 15px;
  --cmu-small: 13px;
}
@media (max-width: 1024px) {
  :root {
    --cmu-h1: 38px;
    --cmu-h2: 30px;
  }
}
@media (max-width: 767px) {
  :root {
    --cmu-h1: 31px;
    --cmu-h2: 26px;
    --cmu-h3: 18px;
    --cmu-lead: 16px;
    --cmu-intro: 16px;
  }
}

/* ---------- Type ---------- */
.cmu-hero h1.iteck-heading {
  font-size: var(--cmu-h1) !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em;
  color: var(--cmu-ink) !important;
  margin-bottom: 20px;
}
.cmu-hero p.iteck-heading {
  font-size: var(--cmu-lead) !important;
  line-height: 1.65 !important;
  color: var(--cmu-text) !important;
  max-width: 560px;
}
.cmu-section h2.iteck-heading {
  font-size: var(--cmu-h2) !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  color: var(--cmu-ink) !important;
}
.cmu-section > .e-con-inner > .elementor-widget-iteck-heading p.iteck-heading {
  font-size: var(--cmu-intro) !important;
  line-height: 1.6 !important;
  color: var(--cmu-text) !important;
  margin-top: 6px;
}
.cmu-section .elementor-icon-box-title {
  font-size: var(--cmu-h3) !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  color: var(--cmu-ink);
  margin: 0 0 8px !important;
}
.cmu-section .elementor-icon-box-description {
  font-size: var(--cmu-body) !important;
  line-height: 1.65 !important;
  color: var(--cmu-text);
  margin: 0;
}
.cmu-section .elementor-widget-icon-box .elementor-widget-container {
  padding: 0 !important;
}
.cmu-section .elementor-icon-box-wrapper {
  gap: 0;
}

/* ---------- Hero ---------- */
.cmu-hero {
  position: relative;
  overflow: hidden !important; /* the theme's heading underline is wider than the words */
  background:
    radial-gradient(
      circle at 88% 18%,
      rgba(11, 99, 206, 0.14),
      transparent 38%
    ),
    radial-gradient(circle at 6% 92%, rgba(74, 0, 225, 0.12), transparent 42%),
    linear-gradient(180deg, #fbfaff 0%, #ffffff 100%);
}
.cmu-eyebrow p.iteck-heading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px 16px;
  border: 1px solid var(--cmu-line);
  border-radius: 50px;
  background: rgba(74, 0, 225, 0.06);
  color: var(--cmu-purple) !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cmu-eyebrow p.iteck-heading::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cmu-gradient);
}
.cmu-btn a.iteck-button {
  border: 0 !important;
  background: var(--cmu-gradient) !important;
  background-color: var(
    --cmu-purple
  ) !important; /* solid fallback so contrast checkers can read it */
  color: #fff !important;
  padding: 15px 32px !important;
  font-size: 15px !important;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(74, 0, 225, 0.28);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.cmu-btn a.iteck-button::after {
  content: " \2192";
}
.cmu-btn a.iteck-button:hover,
.cmu-btn a.iteck-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(74, 0, 225, 0.36);
}
.cmu-hero-media img {
  animation: cmu-float 7s ease-in-out infinite;
}
@keyframes cmu-float {
  50% {
    transform: translateY(-12px);
  }
}

/* ---------- Sections ---------- */
.cmu-section {
  overflow: hidden !important; /* same underline issue as the hero */
}
.cmu-grid {
  gap: 24px !important;
  padding-top: 34px !important;
  align-items: stretch;
}
.cmu-grid + .cmu-grid {
  padding-top: 24px !important;
}

/* Cards: only for the main "what we do" section and the Services hub grid. */
.e-con.cmu-card {
  position: relative;
  overflow: hidden;
  padding: 34px 26px 30px !important;
  border: 1px solid var(--cmu-line);
  border-radius: var(--cmu-radius) !important;
  box-shadow: var(--cmu-shadow);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.cmu-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--cmu-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.cmu-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--cmu-shadow-hover);
}
.cmu-card:hover::before {
  transform: scaleX(1);
}
.cmu-card .elementor-icon-box-icon {
  margin-bottom: 20px !important;
}
.cmu-card .elementor-icon,
.cmu-feature .elementor-icon,
.cmu-link .elementor-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--cmu-soft);
  transition: background 0.3s ease;
}
.cmu-section .elementor-icon svg {
  width: 26px !important;
  height: 26px !important;
  fill: var(--cmu-purple) !important;
  transition: fill 0.3s ease;
}
.cmu-card:hover .elementor-icon,
.cmu-link:hover .elementor-icon {
  background: var(--cmu-gradient);
}
.cmu-card:hover .elementor-icon svg,
.cmu-link:hover .elementor-icon svg {
  fill: #fff !important;
}

/* Linked cards and link rows are clickable as a whole through the title link. */
.cmu-has-link {
  position: relative;
}
.cmu-has-link .elementor-icon-box-title a {
  color: inherit;
}
.cmu-has-link .elementor-icon-box-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.cmu-has-link:focus-within {
  outline: 3px solid var(--cmu-blue);
  outline-offset: 3px;
}
.cmu-card.cmu-has-link .elementor-icon-box-content::after {
  content: "Learn more \2192";
  display: block;
  margin-top: 14px;
  color: var(--cmu-purple);
  font-size: 14px;
  font-weight: 700;
}

/* Feature list: icon beside the text, no box. */
.e-con.cmu-feature {
  padding: 6px 4px !important;
  background: none !important;
}
.cmu-feature .elementor-icon-box-wrapper,
.cmu-link .elementor-icon-box-wrapper {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 18px !important;
  text-align: start !important;
}
.cmu-feature .elementor-icon-box-icon,
.cmu-link .elementor-icon-box-icon {
  flex: 0 0 auto;
  margin: 0 !important;
}
.cmu-feature .elementor-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}
.cmu-feature .elementor-icon svg {
  width: 22px !important;
  height: 22px !important;
}
.cmu-feature.cmu-has-link .elementor-icon-box-title a::after {
  inset: -6px;
}
.cmu-feature.cmu-has-link .elementor-icon-box-title::after {
  content: " \2192";
  color: var(--cmu-purple);
}

/* Related services: slim link rows with an underline that fills on hover. */
.e-con.cmu-link {
  padding: 20px 4px 22px !important;
  border-bottom: 2px solid var(--cmu-line);
  background: none !important;
}
.cmu-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--cmu-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.cmu-link:hover::after {
  transform: scaleX(1);
}
.cmu-link .elementor-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}
.cmu-link .elementor-icon svg {
  width: 22px !important;
  height: 22px !important;
}
.cmu-link .elementor-icon-box-title::after {
  content: " \2192";
  display: inline-block;
  color: var(--cmu-purple);
  transition: transform 0.25s ease;
}
.cmu-link:hover .elementor-icon-box-title::after {
  transform: translateX(5px);
}

/* Steps: a timeline on the gradient band, numbers joined by a line. */
/* Elementor uses ::before on containers for its own background layer, so the
   decorations here are backgrounds. The line runs through the middle of the numbers. */
.cmu-steps {
  background:
    radial-gradient(
      circle at 94% 0%,
      rgba(255, 255, 255, 0.08) 0 260px,
      transparent 261px
    ),
    var(--cmu-gradient) !important;
  overflow: hidden !important;
}
.cmu-timeline {
  --cmu-line-top: calc(34px + 26px);
  background: linear-gradient(
      90deg,
      transparent 13%,
      rgba(255, 255, 255, 0.35) 13%,
      rgba(255, 255, 255, 0.35) 87%,
      transparent 87%
    )
    no-repeat 0 var(--cmu-line-top) / 100% 2px;
}
.cmu-grid + .cmu-timeline {
  --cmu-line-top: calc(24px + 26px);
}
.e-con.cmu-step {
  position: relative;
  padding: 0 14px !important;
  background: none !important;
}
.cmu-step .elementor-icon-box-icon {
  margin-bottom: 18px !important;
}
.cmu-step .elementor-icon svg {
  width: 54px !important;
  height: 54px !important;
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.14);
}
.cmu-steps .elementor-icon-box-title,
.cmu-steps .elementor-icon-box-title span {
  color: #fff !important;
}
.cmu-steps .elementor-icon-box-description {
  color: rgba(255, 255, 255, 0.9) !important;
}
.cmu-steps h2.iteck-heading,
.cmu-steps h2.iteck-heading span,
.cmu-steps > .e-con-inner > .elementor-widget-iteck-heading p.iteck-heading {
  color: #fff !important;
}

/* Technology logos: a plain row, grey until hovered. */
.cmu-logos {
  gap: 18px 44px !important;
}
.cmu-logo img {
  filter: grayscale(1);
  opacity: 0.65;
  transition:
    filter 0.3s ease,
    opacity 0.3s ease;
}
.cmu-logo:hover img {
  filter: none;
  opacity: 1;
}

/* FAQ: a clean list with divider lines. */
.cmu-faq .iteck-toggle .accordion-item {
  margin: 0;
  border: 0 !important;
  border-bottom: 1px solid rgba(22, 18, 58, 0.12) !important;
  border-radius: 0 !important;
  background: none;
}
.cmu-faq .iteck-toggle .accordion-item .accordion-button {
  padding: 22px 4px;
  color: var(--cmu-ink);
  font-size: 17px;
  font-weight: 700;
  text-transform: none;
  background: none;
  box-shadow: none;
}
.cmu-faq .iteck-toggle .accordion-item .accordion-button:not(.collapsed) {
  color: var(--cmu-purple);
}
.cmu-faq .accordion-collapse,
.cmu-faq .accordion-body {
  background: none !important;
}
.cmu-faq .accordion-body {
  padding: 0 4px 22px !important;
}
.cmu-faq .accordion-body p {
  margin: 0;
  color: var(--cmu-text) !important;
  font-size: var(--cmu-body) !important;
  line-height: 1.7 !important;
}
.cmu-faq .accordion-body a,
.cmu-faq .accordion-body a:visited {
  color: var(--cmu-purple);
  text-decoration: underline;
}

/* Contact form: the one other boxed element, so it draws the eye. */
.cmu-form > .elementor-widget-container {
  padding: 44px 40px 36px !important;
  border: 1px solid var(--cmu-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(22, 18, 58, 0.09);
}
.cmu-form .wpcf7-form input:not([type="checkbox"]):not([type="submit"]),
.cmu-form .wpcf7-form select,
.cmu-form .wpcf7-form textarea {
  background: #f7f6fc;
}

/* ---------- Tablet and phone ---------- */
@media (max-width: 1024px) {
  .cmu-hero,
  .cmu-section {
    padding-left: 32px !important;
    padding-right: 32px !important;
  }
  .cmu-grid-4 {
    flex-wrap: wrap !important;
  }
  .cmu-grid-4 > .e-con {
    flex: 1 1 calc(50% - 12px) !important;
  }
}
@media (max-width: 767px) {
  .cmu-hero,
  .cmu-section {
    padding: 56px 20px !important;
  }
  .cmu-hero {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .cmu-hero > .e-con-inner {
    padding-top: 44px !important;
    padding-bottom: 52px !important;
  }
  .cmu-section > .e-con-inner {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .cmu-hero-media {
    margin-top: 30px;
  }
  .cmu-grid {
    gap: 18px !important;
  }
  .cmu-grid-4 > .e-con {
    flex-basis: 100% !important;
  }
  .cmu-grid + .cmu-grid {
    padding-top: 18px !important;
  }
  .cmu-form > .elementor-widget-container {
    padding: 28px 20px 24px !important;
  }
  /* Timeline turns vertical: number on the left, line running down. */
  .cmu-timeline {
    background: none;
  }
  .cmu-step .elementor-icon-box-wrapper {
    display: flex !important;
    flex-direction: row !important;
    gap: 18px !important;
    text-align: start !important;
  }
  .cmu-step .elementor-icon-box-icon {
    margin: 0 !important;
  }
  .cmu-step .elementor-icon svg {
    width: 44px !important;
    height: 44px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cmu-hero-media img {
    animation: none;
  }
  .cmu-card,
  .cmu-card::before,
  .cmu-link::after,
  .cmu-link .elementor-icon-box-title::after,
  .cmu-logo img,
  .cmu-btn a.iteck-button {
    transition: none;
  }
  .cmu-card:hover,
  .cmu-btn a.iteck-button:hover {
    transform: none;
  }
}

/* Text beside an illustration (Home "Why", About "Who we are" and "Where we are"). */
.cmu-split > .e-con-inner {
  padding-top: 80px !important;
  padding-bottom: 80px !important;
  align-items: center;
  gap: 40px;
}
.cmu-split p.iteck-heading {
  font-size: var(--cmu-intro) !important;
  line-height: 1.7 !important;
  color: var(--cmu-text) !important;
  margin: 14px 0 0;
}
.cmu-ticks {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.cmu-ticks li {
  list-style: none !important; /* the theme gives list items square bullets */
  position: relative;
  margin: 0 0 14px;
  padding-left: 36px;
  color: var(--cmu-text);
  font-size: var(--cmu-body);
  line-height: 1.65;
}
.cmu-ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cmu-gradient);
}
.cmu-ticks li::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 7px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.cmu-ticks strong {
  color: var(--cmu-ink);
}
.cmu-ticks a {
  color: var(--cmu-purple);
  text-decoration: underline;
}
@media (min-width: 768px) {
  .cmu-split-flip > .e-con-inner {
    flex-direction: row-reverse !important;
  }
}

/* Industry pills: small rounded labels in a centered row. */
.cmu-pills .cmu-grid {
  flex-wrap: wrap !important;
  justify-content: center;
  gap: 14px !important;
}
.e-con.cmu-pill {
  flex: 0 0 auto !important;
  width: auto !important;
  padding: 10px 22px 10px 10px !important;
  border: 1px solid var(--cmu-line);
  border-radius: 50px !important;
  background: #fff !important;
}
.cmu-pill .elementor-icon-box-wrapper {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
}
.cmu-pill .elementor-icon-box-icon {
  margin: 0 !important;
}
.cmu-pill .elementor-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cmu-soft);
}
.cmu-pill .elementor-icon svg {
  width: 18px !important;
  height: 18px !important;
}
.cmu-pill .elementor-icon-box-title {
  margin: 0 !important;
  font-size: 16px !important;
}
.cmu-pill .elementor-icon-box-description {
  display: none;
}
@media (max-width: 767px) {
  .cmu-split > .e-con-inner {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    gap: 24px;
  }
}

/* Phones: cards turn compact (icon beside the text) so long card lists don't need endless scrolling. */
@media (max-width: 767px) {
  .e-con.cmu-card {
    padding: 22px 20px !important;
  }
  .cmu-card .elementor-icon-box-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 16px !important;
    text-align: start !important;
  }
  .cmu-card .elementor-icon-box-icon {
    flex: 0 0 auto;
    margin: 0 !important;
  }
  .cmu-card .elementor-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }
  .cmu-card .elementor-icon svg {
    width: 22px !important;
    height: 22px !important;
  }
  .cmu-card.cmu-has-link .elementor-icon-box-content::after {
    margin-top: 8px;
  }
}

/* ==========================================================================
   Blog list, category, tag and search pages
   ========================================================================== */

.cmu-blog-hero {
  padding: 90px 0 70px;
  margin-bottom: 60px;
  background:
    radial-gradient(
      circle at 88% 18%,
      rgba(11, 99, 206, 0.14),
      transparent 38%
    ),
    radial-gradient(circle at 6% 92%, rgba(74, 0, 225, 0.12), transparent 42%),
    linear-gradient(180deg, #fbfaff 0%, #ffffff 100%);
  text-align: center;
}
.cmu-blog-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px 16px;
  border: 1px solid var(--cmu-line);
  border-radius: 50px;
  background: rgba(74, 0, 225, 0.06);
  color: var(--cmu-purple);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cmu-blog-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cmu-gradient);
}
.cmu-blog-hero h1 {
  margin: 0 0 14px;
  color: var(--cmu-ink);
  font-size: var(--cmu-h1);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.cmu-blog-hero h1 span {
  color: var(--cmu-purple);
  font-weight: 400;
  font-style: italic;
}
.cmu-blog-intro {
  max-width: 620px;
  margin: 0 auto;
  color: var(--cmu-text);
  font-size: var(--cmu-lead);
  line-height: 1.65;
}

/* Post cards in a 2-column grid (list pages only, not single posts). */
:is(.blog, .archive, .search) .blog-wrapper .blog-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-content: start;
}
:is(.blog, .archive, .search)
  .blog-wrapper
  .blog-content
  > :not(.cmu-post-card) {
  grid-column: 1 / -1;
}
.cmu-post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid var(--cmu-line);
  border-radius: var(--cmu-radius);
  background: #fff;
  box-shadow: var(--cmu-shadow);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.cmu-post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--cmu-shadow-hover);
}
.cmu-post-card:focus-within {
  outline: 3px solid var(--cmu-blue);
  outline-offset: 3px;
}
.cmu-post-image img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.cmu-post-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 24px 26px;
}
.cmu-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--cmu-text);
  font-size: var(--cmu-small);
}
.cmu-post-cat {
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(74, 0, 225, 0.08);
  color: var(--cmu-purple);
  font-weight: 700;
}
.cmu-post-title {
  margin: 0 0 10px;
  font-size: var(--cmu-h3);
  line-height: 1.35;
  font-weight: 700;
}
.cmu-post-title a {
  color: var(--cmu-ink);
}
.cmu-post-title a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.cmu-post-excerpt {
  flex: 1;
  margin: 0 0 16px;
  color: var(--cmu-text);
  font-size: var(--cmu-body);
  line-height: 1.65;
}
.cmu-post-more {
  color: var(--cmu-purple);
  font-size: 14px;
  font-weight: 700;
}

/* Sidebar: same headings and spacing as the rest of the site. */
.blog-wrapper .sidebar .widget,
.blog-wrapper aside .widget {
  margin-bottom: 30px;
  padding: 24px;
  border: 1px solid var(--cmu-line);
  border-radius: var(--cmu-radius);
  background: #fff;
}

@media (max-width: 767px) {
  .cmu-blog-hero {
    padding: 50px 0 44px;
    margin-bottom: 36px;
  }
  :is(.blog, .archive, .search) .blog-wrapper .blog-content {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cmu-post-card,
  .cmu-post-card:hover {
    transition: none;
    transform: none;
  }
}

/* Single post title (an H1 since the child theme's templates/post/post-2.php). */
.single-post h1.entry-title {
  font-family: "Inter", sans-serif;
  margin: 10px 0 14px;
  color: var(--cmu-ink);
  font-size: var(--cmu-h2);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* Sidebar "Recent posts" (core Latest Posts block): small thumbnails beside readable titles and dates. */
.cmu-recent.wp-block-latest-posts {
  margin: 0;
  padding: 0;
}
.cmu-recent.wp-block-latest-posts li {
  display: flow-root;
  margin: 0 0 16px;
  list-style: none;
}
.cmu-recent .wp-block-latest-posts__featured-image {
  margin: 0 14px 0 0 !important;
}
.cmu-recent .wp-block-latest-posts__featured-image img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
}
.cmu-recent .wp-block-latest-posts__post-title {
  display: block;
  color: var(--cmu-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.cmu-recent .wp-block-latest-posts__post-date,
.blog-wrapper .widget time {
  color: var(--cmu-text) !important;
  font-size: 13px;
}
.cmu-recent li::before,
.cmu-recent li a::before {
  display: none !important;
}

/* Sidebar links: the theme's #999 / #777 grey fails contrast on white. */
.widget ul li a,
.widget .tagcloud a,
.widget_categories li,
.widget .post-count {
  color: var(--cmu-text) !important;
}
.widget ul li a:hover,
.widget .tagcloud a:hover {
  color: var(--cmu-purple) !important;
}

/* Text-only hero (legal pages). */
.cmu-hero-text p.iteck-heading {
  color: var(--cmu-text) !important;
  font-size: var(--cmu-body) !important;
}

/* Long text: legal pages. Readable line length, clear headings. */
.cmu-prose .elementor-widget-text-editor {
  width: 100%;
  max-width: 780px !important; /* Elementor sets max-width: 100% on container children */
  margin: 0 auto;
  color: var(--cmu-text);
  font-size: 16px;
  line-height: 1.75;
}
.cmu-prose h2,
.cmu-prose h3 {
  font-family: "Inter", sans-serif;
}
.cmu-prose h2 {
  margin: 40px 0 12px;
  color: var(--cmu-ink);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
}
.cmu-prose h3 {
  margin: 24px 0 8px;
  color: var(--cmu-ink);
  font-size: 18px;
  font-weight: 700;
}
.cmu-prose p,
.cmu-prose ul {
  margin: 0 0 16px;
}
.cmu-prose ul {
  padding-left: 22px;
}
.cmu-prose li {
  margin-bottom: 8px;
  list-style: disc;
}
.cmu-prose a {
  color: var(--cmu-purple);
  text-decoration: underline !important; /* the theme removes underlines; links need more than colour */
}
.cmu-prose strong {
  color: var(--cmu-ink);
}

/* Call to action: centered heading, intro and button. */
.cmu-cta .elementor-widget-iteck-button {
  text-align: center;
}
.cmu-hero-text > .e-con-inner > .e-con {
  max-width: 780px;
  margin: 0 auto;
}

/* Footer links: at least 24px tall touch targets (WCAG 2.2 target size). */
.elementor-1010 p.iteck-heading a,
.elementor-1010 .iteck-heading a {
  display: inline-block;
  padding: 5px 0;
}

/* "Skip to content": hidden until a keyboard user tabs to it. */
.cmu-skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100000;
  padding: 12px 20px;
  border-radius: 0 0 12px 12px;
  background: var(--cmu-purple);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  transition: none !important; /* the theme animates all links; show this one at once */
}
.cmu-skip-link:focus {
  top: 0;
}
#main-content:focus {
  outline: none;
}

/* One font everywhere: the theme set Poppins on headings (blog, posts, sidebar titles). */
h1,
h2,
h3,
h4,
h5,
h6,
.widgettitle,
.entry-title {
  font-family: "Inter", sans-serif;
}

/* Links in the form's Terms checkbox: the theme's grey fails contrast. */
.wpcf7-acceptance a {
  color: var(--cmu-purple) !important;
  text-decoration: underline;
}

/* Header logo: keep its real proportions (the theme squeezes it slightly). */
img[src*="removebg-e1710851820638"] {
  object-fit: contain;
}

/* ==========================================================================
   Blog articles (single posts)
   ========================================================================== */

.single-post article.blog-post > p,
.single-post article.blog-post > ul,
.single-post article.blog-post > ol {
  color: var(--cmu-text);
  font-size: 17px;
  line-height: 1.8;
  margin: 0 0 20px;
}
.single-post article.blog-post > h2 {
  margin: 44px 0 14px;
  color: var(--cmu-ink);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.single-post article.blog-post > h3 {
  margin: 28px 0 10px;
  color: var(--cmu-ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}
.single-post article.blog-post > ul li,
.single-post article.blog-post > ol li {
  margin-bottom: 8px;
}
.single-post article.blog-post > p a,
.single-post article.blog-post li a,
.single-post article.blog-post td a {
  color: var(--cmu-purple);
  text-decoration: underline;
}

/* "Key takeaways" box near the top of each article. */
.cmu-takeaways {
  margin: 28px 0 32px;
  padding: 24px 28px 10px;
  border: 1px solid var(--cmu-line);
  border-left: 5px solid var(--cmu-purple);
  border-radius: 14px;
  background: #f7f6fc;
}
.cmu-takeaways p {
  margin: 0 0 10px !important;
  color: var(--cmu-ink) !important;
  font-size: 16px !important;
}
.cmu-takeaways ul {
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--cmu-text);
  font-size: 16px;
  line-height: 1.7;
}
.cmu-takeaways li {
  margin-bottom: 6px;
  list-style: disc;
}

/* Comparison tables. */
.single-post article.blog-post > table {
  width: 100%;
  margin: 10px 0 28px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.55;
}
.single-post article.blog-post > table th,
.single-post article.blog-post > table td {
  padding: 12px 14px;
  border: 1px solid var(--cmu-line);
  text-align: left;
  vertical-align: top;
  color: var(--cmu-text);
}
.single-post article.blog-post > table thead th {
  background: #f0edfc;
  color: var(--cmu-ink);
  font-weight: 700;
}
@media (max-width: 767px) {
  .single-post article.blog-post > table {
    display: block;
    overflow-x: auto;
  }
  .single-post article.blog-post > h2 {
    font-size: 23px;
  }
}

/* "Tags:" line under articles: the theme's #aaa fails contrast. */
.single-post .tags-bottom,
.single-post .tags-bottom a {
  color: var(--cmu-text) !important;
}
.single-post .post-detail li,
.single-post .post-detail li a {
  color: var(--cmu-text);
}

/* Phones: let the post column shrink to the screen so wide tables scroll inside it
   (flex columns otherwise grow to fit their widest content). */
.blog-wrapper .row > [class*="col-"] {
  min-width: 0;
}
.single-post article.blog-post {
  overflow-wrap: break-word;
}
