/*
Theme Name: MDMH Custom Theme
Theme URI: https://www.mydigitalmarketinghelp.com/
Author: ChatGPT for My Digital Marketing Help
Description: A custom WordPress theme inspired by the current My Digital Marketing Help website layout, colors, header, service cards, blog cards, and CTA footer.
Version: 1.0.7
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: mdmh-custom
*/

:root {
  --mdmh-blue: #075df5;
  --mdmh-blue-dark: #0648ba;
  --mdmh-navy: #10202a;
  --mdmh-dark: #17252f;
  --mdmh-yellow: #f6c300;
  --mdmh-text: #26323b;
  --mdmh-muted: #65717b;
  --mdmh-border: #e6edf5;
  --mdmh-bg: #f7f9fc;
  --mdmh-white: #ffffff;
  --mdmh-radius: 22px;
  --mdmh-shadow: 0 18px 50px rgba(16, 32, 42, 0.12);
  --mdmh-shadow-soft: 0 12px 32px rgba(16, 32, 42, 0.08);
  --mdmh-container: 1280px;
  --mdmh-transition: 180ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--mdmh-text);
  background: var(--mdmh-white);
  line-height: 1.65;
  font-size: 16px;
}

img { max-width: 100%; height: auto; }
a { color: var(--mdmh-blue); text-decoration: none; transition: color var(--mdmh-transition), transform var(--mdmh-transition), background var(--mdmh-transition), border var(--mdmh-transition); }
a:hover { color: var(--mdmh-blue-dark); }
button, input, textarea, select { font: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  z-index: 9999;
  padding: 10px 14px;
  background: var(--mdmh-blue);
  color: #fff;
  border-radius: 10px;
}
.skip-link:focus { left: 12px; }

.mdmh-container {
  width: min(var(--mdmh-container), calc(100% - 40px));
  margin: 0 auto;
}

.mdmh-topbar {
  background: var(--mdmh-navy);
  color: rgba(255,255,255,0.92);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.mdmh-topbar__inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 15px;
}
.mdmh-topbar__dot {
  width: 10px;
  height: 10px;
  background: var(--mdmh-yellow);
  border-radius: 50%;
  display: inline-block;
  margin-right: 9px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(230,237,245,0.9);
}
.admin-bar .site-header { top: 32px; }
.site-header__inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.site-branding { display: flex; align-items: center; flex: 0 0 auto; }
.site-branding img { width: 250px; max-height: 68px; object-fit: contain; }
.site-title { margin: 0; font-size: 24px; line-height: 1.1; font-weight: 900; letter-spacing: -0.03em; }
.site-title a { color: var(--mdmh-navy); }
.site-description { margin: 4px 0 0; font-size: 13px; color: var(--mdmh-muted); }

.main-navigation {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1 1 auto;
  justify-content: flex-end;
}
.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-navigation a {
  color: var(--mdmh-navy);
  font-size: 15px;
  font-weight: 800;
  position: relative;
}
.main-navigation a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 3px;
  background: var(--mdmh-blue);
  border-radius: 999px;
  transition: width var(--mdmh-transition);
}
.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after,
.main-navigation .current_page_item > a::after { width: 100%; }
.header-cta { flex: 0 0 auto; }

.mdmh-button,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--mdmh-blue);
  color: #fff !important;
  border: 2px solid var(--mdmh-blue);
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 12px 22px rgba(7, 93, 245, 0.22);
  cursor: pointer;
}
.mdmh-button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  background: var(--mdmh-blue-dark);
  border-color: var(--mdmh-blue-dark);
  transform: translateY(-1px);
  color: #fff !important;
}
.mdmh-button--secondary {
  background: var(--mdmh-white);
  color: var(--mdmh-blue) !important;
  border-color: var(--mdmh-border);
  box-shadow: none;
}
.mdmh-button--secondary:hover {
  background: var(--mdmh-blue);
  color: #fff !important;
  border-color: var(--mdmh-blue);
}
.mdmh-button--yellow {
  background: var(--mdmh-yellow);
  border-color: var(--mdmh-yellow);
  color: var(--mdmh-navy) !important;
  box-shadow: 0 14px 26px rgba(246, 195, 0, 0.28);
}
.mdmh-button--yellow:hover { background: #ffd938; color: var(--mdmh-navy) !important; border-color: #ffd938; }

.menu-toggle {
  display: none;
  appearance: none;
  border: 0;
  background: var(--mdmh-blue);
  color: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 900;
}

.mdmh-hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 76px;
  background:
    radial-gradient(circle at 12% 20%, rgba(246,195,0,0.22) 0, rgba(246,195,0,0) 28%),
    radial-gradient(circle at 82% 18%, rgba(7,93,245,0.13) 0, rgba(7,93,245,0) 34%),
    linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
}
.mdmh-hero::before {
  content: "";
  position: absolute;
  right: -160px;
  top: -140px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: rgba(7,93,245,0.08);
}
.mdmh-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 54px;
}
.mdmh-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(7,93,245,0.16);
  border-radius: 999px;
  background: rgba(7,93,245,0.08);
  color: var(--mdmh-blue-dark);
  font-weight: 900;
  font-size: 14px;
}
.mdmh-kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--mdmh-yellow);
  border-radius: 50%;
}
.mdmh-hero h1,
.entry-header h1,
.page-title {
  margin: 0 0 20px;
  color: var(--mdmh-navy);
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 950;
}
.mdmh-hero p {
  margin: 0 0 28px;
  max-width: 650px;
  color: var(--mdmh-muted);
  font-size: clamp(17px, 2vw, 21px);
}
.mdmh-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.mdmh-hero__visual {
  position: relative;
}
.mdmh-hero__image-wrap {
  position: relative;
  border-radius: 34px;
  background: var(--mdmh-navy);
  padding: 24px;
  box-shadow: var(--mdmh-shadow);
  overflow: hidden;
}
.mdmh-hero__image-wrap::before {
  content: "";
  position: absolute;
  inset: auto auto 18px 18px;
  width: 120px;
  height: 120px;
  border-radius: 28px;
  background: var(--mdmh-yellow);
  opacity: 0.88;
}
.mdmh-hero__image-wrap img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  border-radius: 24px;
}
.mdmh-floating-card {
  position: absolute;
  right: -12px;
  bottom: -24px;
  z-index: 2;
  background: var(--mdmh-white);
  border: 1px solid var(--mdmh-border);
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: var(--mdmh-shadow-soft);
  min-width: 210px;
}
.mdmh-floating-card strong { display: block; color: var(--mdmh-navy); font-size: 18px; }
.mdmh-floating-card span { color: var(--mdmh-muted); font-size: 14px; }

.mdmh-section { padding: 82px 0; }
.mdmh-section--light { background: var(--mdmh-bg); }
.mdmh-section-header { text-align: center; max-width: 760px; margin: 0 auto 42px; }
.mdmh-section-header h2 {
  margin: 0 0 10px;
  color: var(--mdmh-navy);
  font-size: clamp(31px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 950;
}
.mdmh-section-header p,
.mdmh-section-header .eyebrow { margin: 0; color: var(--mdmh-muted); }
.eyebrow {
  display: block;
  color: var(--mdmh-blue) !important;
  font-weight: 950;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 10px !important;
}

.mdmh-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.mdmh-service-card,
.post-card,
.mdmh-contact-card,
.mdmh-stat-card {
  background: var(--mdmh-white);
  border: 1px solid var(--mdmh-border);
  border-radius: var(--mdmh-radius);
  box-shadow: var(--mdmh-shadow-soft);
}
.mdmh-service-card {
  padding: 28px 24px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform var(--mdmh-transition), box-shadow var(--mdmh-transition), border var(--mdmh-transition);
}
.mdmh-service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(7,93,245,0.24);
  box-shadow: var(--mdmh-shadow);
}
.mdmh-service-card__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  margin-bottom: 20px;
  background: rgba(7,93,245,0.11);
  color: var(--mdmh-blue);
  font-size: 29px;
}
.mdmh-service-card h3 {
  margin: 0 0 10px;
  color: var(--mdmh-navy);
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.mdmh-service-card p { margin: 0; color: var(--mdmh-muted); font-size: 15px; }

.mdmh-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 54px;
  align-items: center;
}
.mdmh-split__image {
  border-radius: 34px;
  padding: 28px;
  background: linear-gradient(135deg, var(--mdmh-navy), #22333f);
  box-shadow: var(--mdmh-shadow);
}
.mdmh-split__image img { display: block; width: 100%; }
.mdmh-split h2 {
  margin: 0 0 18px;
  color: var(--mdmh-navy);
  font-size: clamp(31px, 4vw, 50px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  font-weight: 950;
}
.mdmh-split p { color: var(--mdmh-muted); margin: 0 0 20px; }
.mdmh-checklist {
  list-style: none;
  padding: 0;
  margin: 22px 0 28px;
  display: grid;
  gap: 12px;
}
.mdmh-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 800;
  color: var(--mdmh-navy);
}
.mdmh-checklist li::before {
  content: "✓";
  flex: 0 0 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mdmh-blue);
  color: #fff;
  font-size: 13px;
  line-height: 1;
}

.mdmh-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.mdmh-stat-card { padding: 24px; }
.mdmh-stat-card strong { display: block; font-size: 44px; line-height: 1; color: var(--mdmh-blue); letter-spacing: -0.04em; }
.mdmh-stat-card span { display: block; margin-top: 8px; color: var(--mdmh-navy); font-weight: 900; }

.mdmh-cta {
  position: relative;
  overflow: hidden;
  background: var(--mdmh-navy);
  color: #fff;
  border-radius: 34px;
  padding: clamp(34px, 6vw, 58px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 26px;
  box-shadow: var(--mdmh-shadow);
}
.mdmh-cta::before {
  content: "";
  position: absolute;
  right: -70px;
  top: -80px;
  width: 240px;
  height: 240px;
  background: var(--mdmh-blue);
  border-radius: 50%;
  opacity: 0.35;
}
.mdmh-cta::after {
  content: "";
  position: absolute;
  right: 120px;
  bottom: -80px;
  width: 160px;
  height: 160px;
  background: var(--mdmh-yellow);
  border-radius: 50%;
  opacity: 0.75;
}
.mdmh-cta > * { position: relative; z-index: 1; }
.mdmh-cta h2,
.mdmh-cta h3 { margin: 0 0 10px; color: #fff; font-size: clamp(29px, 4vw, 46px); line-height: 1.05; letter-spacing: -0.04em; }
.mdmh-cta p { margin: 0; color: rgba(255,255,255,0.78); }
.mdmh-cta ul { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 12px 22px; }
.mdmh-cta li { color: #fff; font-weight: 800; }
.mdmh-cta li::before { content: "•"; color: var(--mdmh-yellow); margin-right: 8px; }

.site-main { min-height: 55vh; }
.mdmh-page-hero {
  padding: 58px 0 42px;
  background: #fff;
  border-bottom: 1px solid var(--mdmh-border);
}
.mdmh-page-hero .entry-header { max-width: 900px; }
.mdmh-page-hero p { max-width: 720px; margin: 0; color: var(--mdmh-muted); font-size: 20px; }

.entry-content {
  width: min(var(--mdmh-container), calc(100% - 40px));
  max-width: var(--mdmh-container);
  margin: 0 auto;
  padding: 58px 0;
}
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2,
.entry-content h3,
.entry-content h4 { color: var(--mdmh-navy); letter-spacing: -0.035em; line-height: 1.15; }
.entry-content h2 { font-size: clamp(28px, 3.3vw, 42px); margin-top: 42px; }
.entry-content h3 { font-size: clamp(23px, 2.5vw, 31px); margin-top: 34px; }
.entry-content p, .entry-content li { color: var(--mdmh-text); }
.entry-content a { font-weight: 800; }
.entry-content blockquote {
  margin: 34px 0;
  padding: 24px 28px;
  border-left: 5px solid var(--mdmh-blue);
  background: var(--mdmh-bg);
  border-radius: 0 18px 18px 0;
}
.entry-content img { border-radius: 18px; }




/* Restore the original full-width blue hero banner on the Services page. */
body.page-slug-services .mdmh-page-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(320px, 34vw, 430px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(86px, 12vw, 156px) 0;
  background:
    linear-gradient(90deg, rgba(122, 148, 244, 0.92), rgba(125, 150, 243, 0.92)),
    radial-gradient(circle at 18% 4%, rgba(255, 255, 255, 0.16) 0, rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle at 96% 92%, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0) 28%),
    #8299f4;
  border-bottom: 0;
}
body.page-slug-services .mdmh-page-hero::before {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -58px;
  height: 120px;
  background: rgba(239, 247, 255, 0.92);
  transform: rotate(4deg);
  transform-origin: center;
  z-index: 0;
}
body.page-slug-services .mdmh-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 45% 98%, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0.08) 22%, rgba(255, 255, 255, 0) 45%),
    linear-gradient(115deg, rgba(255, 255, 255, 0) 0 84%, rgba(255, 255, 255, 0.11) 85%, rgba(255, 255, 255, 0) 88%);
  z-index: 0;
  pointer-events: none;
}
body.page-slug-services .mdmh-page-hero .entry-header {
  position: relative;
  z-index: 1;
  max-width: var(--mdmh-container);
  text-align: center;
}
body.page-slug-services .mdmh-page-hero .eyebrow,
body.page-slug-services .mdmh-page-hero p {
  display: none !important;
}
body.page-slug-services .mdmh-page-hero .page-title {
  margin: 0;
  color: #05070e !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1;
}

/* Full-width page content and blue internal links */
.entry-content--full,
.single-post .entry-content,
.page .entry-content {
  width: min(var(--mdmh-container), calc(100% - 40px));
  max-width: var(--mdmh-container);
}

.entry-content a:not(.wp-block-button__link),
.single-post .entry-content a:not(.wp-block-button__link),
.single-post article a:not(.mdmh-button):not(.wp-block-button__link),
.blog .entry-content a:not(.wp-block-button__link),
.archive .entry-content a:not(.wp-block-button__link),
.mdmh-section a:not(.mdmh-button):not(.wp-block-button__link),
.mdmh-contact-card a,
.post-card h2 a,
.post-card h3 a,
.post-card .read-more {
  color: var(--mdmh-blue) !important;
}
.entry-content a:not(.wp-block-button__link):hover,
.single-post .entry-content a:not(.wp-block-button__link):hover,
.single-post article a:not(.mdmh-button):not(.wp-block-button__link):hover,
.blog .entry-content a:not(.wp-block-button__link):hover,
.archive .entry-content a:not(.wp-block-button__link):hover,
.mdmh-section a:not(.mdmh-button):not(.wp-block-button__link):hover,
.mdmh-contact-card a:hover,
.post-card h2 a:hover,
.post-card h3 a:hover,
.post-card .read-more:hover {
  color: var(--mdmh-blue-dark) !important;
  text-decoration: underline;
}

/* Safety fallback: hide the duplicate Book A Call item if it is still present in a custom primary menu. */
.main-navigation li:has(> a[href*="/book-a-call"]) {
  display: none !important;
}

/* Hide legacy blue hero/banner blocks from the old page content on key pages. */
body:is(.page-slug-services, .page-slug-blog, .page-slug-contact-us, .page-slug-contact, .page-slug-book-a-call, .blog) .entry-content > :is(.wp-block-cover, figure.wp-block-image, .wp-block-image):first-child,
body:is(.page-slug-services, .page-slug-blog, .page-slug-contact-us, .page-slug-contact, .page-slug-book-a-call, .blog) .entry-content > p:first-child:has(img),
body:is(.page-slug-services, .page-slug-blog, .page-slug-contact-us, .page-slug-contact, .page-slug-book-a-call, .blog) .entry-content > .wp-block-group:first-child:has(img),
body:is(.page-slug-services, .page-slug-blog, .page-slug-contact-us, .page-slug-contact, .page-slug-book-a-call, .blog) .entry-content > .elementor:first-child > :is(.elementor-section, .elementor-top-section, .e-con):first-child {
  display: none !important;
}

/* Keep WordPress blocks aligned with the main site width instead of a narrow article column. */
.entry-content > .alignwide,
.entry-content > .wp-block-group.alignwide,
.entry-content > .wp-block-columns.alignwide {
  max-width: var(--mdmh-container);
  margin-left: auto;
  margin-right: auto;
}
.entry-content > .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.post-card { overflow: hidden; display: flex; flex-direction: column; }
.post-card__thumb {
  display: block;
  aspect-ratio: 16/10;
  background: var(--mdmh-bg);
  overflow: hidden;
}
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 260ms ease; }
.post-card:hover .post-card__thumb img { transform: scale(1.045); }
.post-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.post-card__meta { color: var(--mdmh-muted); font-size: 14px; font-weight: 800; margin-bottom: 10px; }
.post-card h2, .post-card h3 { margin: 0 0 12px; font-size: 23px; line-height: 1.18; letter-spacing: -0.035em; }
.post-card h2 a, .post-card h3 a { color: var(--mdmh-navy); }
.post-card p { color: var(--mdmh-muted); margin: 0 0 18px; }
.post-card .read-more { margin-top: auto; font-weight: 950; }


/* Single blog post hero banner with visible H1 title */
.mdmh-post-hero,
.mdmh-single-header {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 7vw, 92px) 0 52px;
  background:
    radial-gradient(circle at 12% 18%, rgba(7, 93, 245, 0.12) 0, rgba(7, 93, 245, 0) 32%),
    radial-gradient(circle at 86% 14%, rgba(246, 195, 0, 0.18) 0, rgba(246, 195, 0, 0) 26%),
    linear-gradient(135deg, #eaf1ff 0%, #f7faff 55%, #ffffff 100%);
  border-bottom: 1px solid var(--mdmh-border);
}
.mdmh-post-hero::before {
  content: "";
  position: absolute;
  right: -140px;
  top: -180px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(7, 93, 245, 0.08);
}
.mdmh-post-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 32px;
}
.mdmh-post-hero__text {
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
}
.single-post-title,
.single-post .entry-title,
.single .entry-title {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  overflow: visible !important;
  margin: 0 0 18px;
  color: var(--mdmh-navy) !important;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.055em;
  font-weight: 950;
}
.single-post .mdmh-post-hero .entry-header__meta,
.single-post .mdmh-single-header .entry-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  align-items: center;
  color: var(--mdmh-muted);
  font-weight: 800;
}
.single-post .mdmh-post-hero .entry-header__meta span + span::before {
  content: "•";
  color: var(--mdmh-blue);
  margin-right: 18px;
}
.mdmh-post-hero__image {
  width: min(760px, 100%);
  margin: 0 auto;
}
.single-post .mdmh-post-hero .post-thumbnail img,
.single-post .mdmh-single-header .post-thumbnail img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--mdmh-shadow-soft);
}

.single-post .entry-header__meta { color: var(--mdmh-muted); font-weight: 800; }
.single-post .post-thumbnail img { width: 100%; border-radius: 28px; margin-top: 34px; box-shadow: var(--mdmh-shadow-soft); }

.pagination, .nav-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 44px 0 0;
}
.page-numbers, .nav-links a, .nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--mdmh-border);
  border-radius: 999px;
  font-weight: 900;
  background: #fff;
}
.page-numbers.current { background: var(--mdmh-blue); color: #fff; border-color: var(--mdmh-blue); }

.mdmh-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 36px;
}
.mdmh-contact-card { padding: 26px; }
.mdmh-contact-card h3 { margin: 0 0 10px; color: var(--mdmh-navy); }
.mdmh-contact-card p { margin: 0; color: var(--mdmh-muted); }
.mdmh-form-shell {
  background: var(--mdmh-bg);
  border: 1px solid var(--mdmh-border);
  border-radius: 30px;
  padding: clamp(24px, 4vw, 42px);
}
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], textarea, select {
  width: 100%;
  border: 1px solid var(--mdmh-border);
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
  color: var(--mdmh-text);
  outline: none;
  transition: border var(--mdmh-transition), box-shadow var(--mdmh-transition);
}
input:focus, textarea:focus, select:focus {
  border-color: rgba(7,93,245,0.45);
  box-shadow: 0 0 0 4px rgba(7,93,245,0.11);
}
textarea { min-height: 140px; }

.site-footer {
  background: var(--mdmh-navy);
  color: rgba(255,255,255,0.76);
  margin-top: 0;
}
.site-footer__inner {
  padding: 64px 0 34px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.7fr;
  gap: 42px;
  align-items: start;
  margin-top: 44px;
}
.site-footer h2,
.site-footer h3,
.site-footer h4 { color: #fff; margin-top: 0; letter-spacing: -0.035em; }
.site-footer .footer-logo img { width: 240px; background: #fff; border-radius: 12px; padding: 8px; }
.site-footer a { color: #fff; font-weight: 850; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 34px;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}
.newsletter-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 14px;
}
.newsletter-box input { border: 0; }
.newsletter-box .mdmh-button { box-shadow: none; }

.alignwide { width: min(var(--mdmh-container), calc(100% - 40px)); max-width: var(--mdmh-container); }
.alignfull { width: 100%; max-width: none; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 1100px) {
  .mdmh-services-grid { grid-template-columns: repeat(2, 1fr); }
  
.blog-grid { grid-template-columns: repeat(2, 1fr); }
  .site-branding img { width: 220px; }
}

@media (max-width: 900px) {
  .admin-bar .site-header { top: 46px; }
  .menu-toggle { display: inline-flex; }
  .main-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid var(--mdmh-border);
    box-shadow: var(--mdmh-shadow-soft);
  }
  .main-navigation.is-open { display: block; }
  .main-navigation ul { display: grid; gap: 12px; }
  .main-navigation a { display: block; padding: 12px 0; }
  .header-cta { display: none; }
  .mdmh-hero__grid,
  .mdmh-split,
  .mdmh-cta,
  .site-footer__grid { grid-template-columns: 1fr; }
  .mdmh-hero { padding: 58px 0 56px; }
  .mdmh-floating-card { position: static; margin-top: 16px; }
  .mdmh-contact-grid { grid-template-columns: 1fr; }

  .mdmh-post-hero { padding: 48px 0 40px; }
  .mdmh-post-hero__text { text-align: left; }
  .single-post .mdmh-post-hero .entry-header__meta { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .mdmh-container,
  .entry-content { width: min(100% - 28px, var(--mdmh-container)); }
  .site-header__inner { min-height: 78px; }
  .site-branding img { width: 190px; }
  .mdmh-services-grid,
  .blog-grid,
  .mdmh-stats-grid { grid-template-columns: 1fr; }
  .mdmh-section { padding: 58px 0; }
  .mdmh-hero__buttons { flex-direction: column; align-items: stretch; }
  .mdmh-button { width: 100%; }
  .newsletter-box { grid-template-columns: 1fr; }
  .site-footer__bottom { display: block; }
}


/* v1.0.6: Ensure every single blog post has a visible H1 inside the hero banner. */
.single .mdmh-post-hero--banner,
.single-post .mdmh-post-hero--banner {
  min-height: clamp(280px, 32vw, 430px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(70px, 10vw, 130px) 0;
  background:
    linear-gradient(rgba(126, 152, 241, 0.92), rgba(126, 152, 241, 0.92)),
    url("https://www.mydigitalmarketinghelp.com/wp-content/uploads/2023/08/banner-bg.jpg") center center / cover no-repeat;
  border-bottom: 0;
}

.single .mdmh-post-hero--banner::before,
.single-post .mdmh-post-hero--banner::before {
  display: none;
}

.single .mdmh-post-hero--banner::after,
.single-post .mdmh-post-hero--banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 90px;
  background: linear-gradient(7deg, #ffffff 0 48%, rgba(255,255,255,0) 49% 100%);
  pointer-events: none;
}

.single .mdmh-post-hero--banner .mdmh-post-hero__inner,
.single-post .mdmh-post-hero--banner .mdmh-post-hero__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  text-align: center;
}

.single .mdmh-post-hero--banner .single-post-title,
.single-post .mdmh-post-hero--banner .single-post-title,
.single .mdmh-post-hero--banner .entry-title,
.single-post .mdmh-post-hero--banner .entry-title {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  color: #05070a !important;
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 950;
  text-transform: none;
}

.single .mdmh-post-intro,
.single-post .mdmh-post-intro {
  padding: 48px 0 0;
  text-align: center;
}

.single .mdmh-post-intro .entry-header__meta,
.single-post .mdmh-post-intro .entry-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  align-items: center;
  color: var(--mdmh-muted);
  font-weight: 800;
  margin-bottom: 28px;
}

.single .mdmh-post-intro .entry-header__meta span + span::before,
.single-post .mdmh-post-intro .entry-header__meta span + span::before {
  content: "•";
  color: var(--mdmh-blue);
  margin-right: 18px;
}

.single .mdmh-post-featured-image,
.single-post .mdmh-post-featured-image {
  width: min(760px, 100%);
  margin: 0 auto;
}

.single .mdmh-post-featured-image img,
.single-post .mdmh-post-featured-image img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--mdmh-shadow-soft);
}

@media (max-width: 640px) {
  .single .mdmh-post-hero--banner,
  .single-post .mdmh-post-hero--banner {
    min-height: 260px;
    padding: 64px 0 86px;
  }
}


/* v1.0.7: hard fix for single blog post H1 visibility */
body.single-post .site-main > article > .mdmh-post-hero--banner,
body.single .site-main > article > .mdmh-post-hero--banner {
  position: relative !important;
  overflow: hidden !important;
  width: 100% !important;
  min-height: clamp(300px, 34vw, 460px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: clamp(82px, 12vw, 150px) 20px !important;
  background:
    linear-gradient(rgba(126, 152, 241, 0.92), rgba(126, 152, 241, 0.92)),
    url("https://www.mydigitalmarketinghelp.com/wp-content/uploads/2023/08/banner-bg.jpg") center center / cover no-repeat !important;
  border: 0 !important;
  text-align: center !important;
}

body.single-post .site-main > article > .mdmh-post-hero--banner::before,
body.single .site-main > article > .mdmh-post-hero--banner::before {
  display: none !important;
  content: none !important;
}

body.single-post .site-main > article > .mdmh-post-hero--banner::after,
body.single .site-main > article > .mdmh-post-hero--banner::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: -1px !important;
  height: 96px !important;
  background: linear-gradient(7deg, #ffffff 0 48%, rgba(255,255,255,0) 49% 100%) !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

body.single-post .mdmh-post-hero--banner .mdmh-post-hero__inner,
body.single .mdmh-post-hero--banner .mdmh-post-hero__inner {
  position: relative !important;
  z-index: 5 !important;
  width: min(1180px, calc(100% - 40px)) !important;
  margin: 0 auto !important;
  text-align: center !important;
  display: block !important;
}

body.single-post .mdmh-post-hero--banner .mdmh-single-post-h1,
body.single-post .mdmh-post-hero--banner .single-post-title,
body.single-post .mdmh-post-hero--banner h1.entry-title,
body.single-post .mdmh-post-hero--banner h1,
body.single .mdmh-post-hero--banner .mdmh-single-post-h1,
body.single .mdmh-post-hero--banner .single-post-title,
body.single .mdmh-post-hero--banner h1.entry-title,
body.single .mdmh-post-hero--banner h1 {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 10 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  transform: none !important;
  margin: 0 auto !important;
  max-width: 1120px !important;
  color: #05070a !important;
  font-size: clamp(40px, 5.3vw, 72px) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.035em !important;
  font-weight: 950 !important;
  text-align: center !important;
  text-transform: none !important;
}

body.single-post .mdmh-post-hero--banner .eyebrow,
body.single .mdmh-post-hero--banner .eyebrow {
  display: none !important;
}

body.single-post .mdmh-post-intro,
body.single .mdmh-post-intro {
  width: min(1180px, calc(100% - 40px)) !important;
  max-width: 1180px !important;
  padding: 42px 0 0 !important;
  text-align: center !important;
}

body.single-post .mdmh-post-featured-image,
body.single .mdmh-post-featured-image {
  width: min(760px, 100%) !important;
  margin: 0 auto !important;
}

body.single-post .entry-content,
body.single .entry-content {
  width: min(1180px, calc(100% - 40px)) !important;
  max-width: 1180px !important;
}

/* Mobile iframe spacing */
@media only screen and (max-width: 600px) {
  .single-post .entry-content iframe[src*="youtube.com"],
  .single-post .entry-content iframe[src*="youtu.be"],
  .single-post .entry-content iframe[src*="youtube-nocookie.com"] {
    max-width: 100%;
    border-radius: 12px;
  }
}