/**
 * AuthorPad Brand Theme v4 — Premium Publishing House Design
 * Logo: Navy #004561 + Red #E31E24
 * Refined for editorial quality, professional hierarchy, and established authority
 */
:root {
  /* Brand Colors */
  --ap-navy: #004561;
  --ap-navy-dark: #002f42;
  --ap-navy-mid: #005a7a;
  --ap-navy-light: #006b8f;
  --ap-red: #e31e24;
  --ap-red-dark: #b8151a;
  --ap-red-soft: #f5e8e8;
  /* the brand red measured 2.87:1 on the footer's teal #003346, which fails
     WCAG for the 16px column labels; this is the same hue lifted to 4.86:1 */
  --ap-red-on-dark: #ff6b70;
  
  /* Surface Colors */
  --ap-white: #ffffff;
  --ap-surface: #ffffff;
  --ap-surface-alt: #f8f9fb;
  --ap-surface-warm: #faf6ef;
  --ap-surface-subtle: #f0f4f8;
  
  /* Text Colors */
  --ap-text-primary: #1a1a1a;
  --ap-text-body: #2c3e4d;
  --ap-text-muted: #5a6b7c;
  --ap-text-light: #7a8a9a;
  
  /* Solid Colors (no gradients) */
  --ap-navy-gradient: #004561;
  --ap-hero-overlay: rgba(0, 47, 66, 0.85);
  
  /* Effects */
  --ap-red-glow: 0 2px 12px rgba(227, 30, 36, 0.25);
  --ap-navy-glow: 0 2px 12px rgba(0, 69, 97, 0.2);
  --ap-card-shadow: 0 4px 16px rgba(0, 47, 66, 0.06);
  --ap-card-shadow-hover: 0 8px 24px rgba(0, 47, 66, 0.1);
  --ap-subtle-shadow: 0 1px 4px rgba(0, 47, 66, 0.04);
  
  /* Typography Scale */
  --ap-display-xl: clamp(48px, 5vw, 72px);
  --ap-display-lg: clamp(36px, 4vw, 52px);
  --ap-display-md: clamp(28px, 3vw, 40px);
  --ap-display-sm: clamp(22px, 2.5vw, 32px);
  --ap-display-xs: clamp(18px, 2vw, 24px);
  
  /* Spacing Scale */
  --ap-space-xs: 8px;
  --ap-space-sm: 12px;
  --ap-space-md: 20px;
  --ap-space-lg: 28px;
  --ap-space-xl: 40px;
  --ap-space-2xl: 56px;
  --ap-space-3xl: 72px;
}

/* ===== TYPOGRAPHY — Editorial Quality ===== */
body,
.mfn-menu-item-megamenu,
.column_attr,
.the_content_wrapper p,
.list_item .desc,
.icon_box .desc {
  color: var(--ap-text-body) !important;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.01em;
}

/* Headings — Editorial Hierarchy */
h1, h2, h3, h4, h5, h6,
.fancy_heading .title,
.post-header .title_wrapper h1,
.icon_box .title {
  color: var(--ap-navy) !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  font-size: var(--ap-display-xl);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--ap-display-lg);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h3 {
  font-size: var(--ap-display-md);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h4 {
  font-size: var(--ap-display-sm);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

h5 {
  font-size: var(--ap-display-xs);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h6 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
}

/* Subheadings and Supporting Text */
.subcopy,
.lead,
.fancy_heading .inside .subcopy {
  color: var(--ap-text-muted) !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
  letter-spacing: -0.005em !important;
}

/* Eyebrow Labels — Premium Editorial Style */
.apx-eyebrow,
.ap-eyebrow {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 2.5px !important;
  text-transform: uppercase !important;
  color: var(--ap-red) !important;
  line-height: 1.3 !important;
  margin-bottom: 16px !important;
}

/* Fix unreadable gray inline styles */
.column_attr[style*="color: #cccccc"],
.column_attr[style*="color:#cccccc"],
h4[style*="color: #cccccc"],
p[style*="color: #cccccc"],
h4[style*="color:#cccccc"],
p[style*="color:#cccccc"] {
  color: var(--ap-text-muted) !important;
}

/* ===== VISUAL HIERARCHY — Editorial Standards ===== */
/* Section headings with clear hierarchy */
.section h2,
.section .fancy_heading .title {
  margin-bottom: var(--ap-space-md);
  position: relative;
}

/* Accent lines for section headings */
.section h2::after,
.section .fancy_heading .title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--ap-red);
  margin-top: var(--ap-space-sm);
  border-radius: 2px;
}

/* Card-style sections */
.icon_box,
.testimonials_list .item,
.pricing-box {
  border-radius: 8px !important;
  box-shadow: var(--ap-card-shadow) !important;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.icon_box:hover,
.testimonials_list .item:hover,
.pricing-box:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--ap-card-shadow-hover) !important;
}

/* Button hierarchy */
.button_theme,
.button,
button,
input[type="submit"] {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  border-radius: 4px !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Primary button */
.button_theme,
.button-primary {
  background: var(--ap-red) !important;
  color: #fff !important;
  box-shadow: var(--ap-red-glow) !important;
}

.button_theme:hover,
.button-primary:hover {
  background: var(--ap-red-dark) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 16px rgba(227, 30, 36, 0.35) !important;
}

/* Secondary button */
.button-secondary {
  background: var(--ap-navy) !important;
  color: #fff !important;
  box-shadow: var(--ap-navy-glow) !important;
}

.button-secondary:hover {
  background: var(--ap-navy-dark) !important;
  transform: translateY(-2px) !important;
}

/* ===== TOP BAR & NAV ===== */
.ap-topbar {
  background: var(--ap-navy) !important;
  border-bottom: 2px solid var(--ap-red) !important;
  padding: 10px 0 !important;
}
.ap-topbar .ap-topbar-phone .ph-ic { color: var(--ap-red-bright) !important; }
.ap-topbar a:hover { color: var(--ap-red-bright) !important; }

.ap-navbar {
  background: #fff !important;
  border-bottom: 1px solid rgba(0, 69, 97, 0.12) !important;
  box-shadow: 0 2px 12px rgba(0, 47, 66, 0.06) !important;
  padding: 0 !important;
}
.ap-nav > ul > li > a {
  color: var(--ap-navy) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  letter-spacing: 0.3px !important;
  transition: color 0.2s ease !important;
}
.ap-nav > ul > li > a:hover,
.ap-nav > ul > li:hover > a { color: var(--ap-red) !important; }
.ap-sub { 
  border-top: 2px solid var(--ap-red) !important;
  box-shadow: 0 8px 24px rgba(0, 47, 66, 0.12) !important;
  border-radius: 0 0 8px 8px !important;
}
.ap-sub li a { 
  color: var(--ap-navy) !important; 
  font-weight: 500 !important;
  font-size: 14px !important;
  padding: 10px 20px !important;
  transition: all 0.2s ease !important;
}
.ap-sub li a:hover { 
  background: var(--ap-surface-alt) !important; 
  color: var(--ap-red) !important;
  padding-left: 24px !important;
}
.ap-subnav { 
  border-top: 2px solid var(--ap-red) !important; 
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0, 47, 66, 0.06) !important;
}
.ap-subnav-scroll a { 
  color: var(--ap-navy) !important; 
  font-weight: 600 !important;
  font-size: 13px !important;
  transition: all 0.2s ease !important;
}
.ap-subnav-scroll a:hover { 
  color: var(--ap-red) !important; 
  background: rgba(227, 30, 36, 0.06) !important;
}
.ap-burger span { background: var(--ap-navy) !important; }

.ap-cta {
  background: var(--ap-red) !important;
  box-shadow: var(--ap-red-glow) !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  font-size: 12px !important;
  padding: 12px 24px !important;
  border-radius: 4px !important;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.ap-cta:hover {
  background: var(--ap-red-dark) !important;
  transform: translateY(-2px) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(227, 30, 36, 0.35) !important;
}

/* ===== HERO SECTION — Premium Editorial Hero ===== */
#slider-container,
.mfn-main-slider,
rs-module-wrap,
rs-module,
#rev_slider_65_1_wrapper {
  background: var(--ap-navy-dark) !important;
}
rs-slide,
#slider-65-slide-68-layer-18 {
  background-image: none !important;
  background-color: #003346 !important;
  background-size: cover !important;
  background-position: center !important;
}
rs-layer[data-type="text"],
.ap-hero-h1,
.ap-hero-line {
  color: #ffffff !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5) !important;
  font-weight: 500 !important;
}
#slider-65-slide-68-layer-3:before,
[id$="-layer-3"]:before {
  color: var(--ap-red-bright) !important;
  font-weight: 700 !important;
  letter-spacing: 2.5px !important;
}
#slider-65-slide-68-layer-21 a,
[id$="-layer-21"] a,
[id$="-layer-5"] a {
  background: var(--ap-red-gradient) !important;
  box-shadow: var(--ap-red-glow) !important;
  color: #fff !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  border-radius: 4px !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
#slider-65-slide-68-layer-21 a:hover,
[id$="-layer-21"] a:hover,
[id$="-layer-5"] a:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 24px rgba(227, 30, 36, 0.5) !important;
}

/* ===== LIVE SECTION BACKGROUNDS — Premium Surfaces ===== */
section.mcb-section-5stwcjiu {
  background-image: none !important;
  background-color: #003346 !important;
  background-size: cover !important;
  background-position: center !important;
  padding-top: var(--ap-space-xl) !important;
  padding-bottom: var(--ap-space-xl) !important;
}
section.mcb-section-5stwcjiu h2,
section.mcb-section-5stwcjiu h3,
section.mcb-section-5stwcjiu .subcopy {
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4) !important;
}

section.mcb-section-bf0b700fe {
  background-image: none !important;
  background-color: #003346 !important;
  background-size: cover !important;
  background-position: center !important;
  padding-top: var(--ap-space-lg) !important;
  padding-bottom: var(--ap-space-lg) !important;
}
section.mcb-section-bf0b700fe h3,
section.mcb-section-bf0b700fe h4,
section.mcb-section-bf0b700fe p,
section.mcb-section-bf0b700fe .column_attr {
  color: #ffffff !important;
}
section.mcb-section-bf0b700fe h3[style*="#e31e24"] {
  color: #ffffff !important;
  border-left: 3px solid var(--ap-red) !important;
  padding-left: 16px !important;
}

/* Service page hero headers */
section.mcb-section-13953a7e0,
section.dark.full-width {
  background-image: none !important;
  background-size: cover !important;
  background-position: center !important;
}
section.mcb-section-13953a7e0 h1,
section.mcb-section-13953a7e0 .title,
section.dark.full-width h1,
section.dark.full-width .title {
  color: #ffffff !important;
}

/* Books-33 banner background (publications, blog, team CTA, expertise CTA band) */
.ap-pub-hero,
.ap-pub-cta,
.ap-team-cta,
.ap-blog-hero,
.ap-blog-cta,
section.mcb-section-a7d4bb356 {
  background-color: #004561 !important;
  background-image: none !important;
  background-size: cover !important;
  background-position: center bottom !important;
  background-repeat: no-repeat !important;
}

.ap-pub-hero,
.ap-pub-cta,
.ap-blog-hero,
.ap-blog-cta {
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
}

section.mcb-section-a7d4bb356 h2,
section.mcb-section-a7d4bb356 h3,
section.mcb-section-a7d4bb356 .subcopy,
section.mcb-section-a7d4bb356 .column_attr {
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4) !important;
}

img[src*="mockups/books-33.png"] {
  width: 100% !important;
  height: auto !important;
  max-height: 520px !important;
  object-fit: cover !important;
  object-position: center bottom !important;
}

/* CTA band with books image */
section.mcb-section-a852c02b8 {
  background: var(--ap-surface-alt) !important;
  border-top: 3px solid var(--ap-red) !important;
  border-bottom: 3px solid var(--ap-navy) !important;
}
section.mcb-section-a852c02b8 h3 {
  color: var(--ap-navy) !important;
  font-size: 28px !important;
  font-weight: 600 !important;
}

/* ===== SECTION BACKGROUNDS — Premium Surfaces ===== */
section[style*="background-color:#ffffff"],
section[style*="background-color: #ffffff"],
section[style*="background-color:#edeef0"],
section[style*="background-color:#f2f3f5"],
section[style*="background-color:#f8f8f8"],
section[style*="background-color:#f7f9fb"],
section[style*="background-color:#eef2f6"] {
  background-color: var(--ap-surface) !important;
}

/* Alternating sections get subtle premium tint */
section.mcb-section-101256eb9,
section.mcb-section-705456bda {
  background: var(--ap-surface-alt) !important;
  border-top: 1px solid rgba(0, 69, 97, 0.06) !important;
  border-bottom: 1px solid rgba(0, 69, 97, 0.06) !important;
}

/* Warm sections for editorial feel */
section[style*="background-color:#faf6ef"],
section.apx-books-matter {
  background-color: var(--ap-surface-warm) !important;
}

/* ===== ICON BOXES & CARDS — Premium Design ===== */
.icon_box {
  background: #fff !important;
  border-radius: 8px !important;
  box-shadow: var(--ap-card-shadow) !important;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  padding: 24px 20px 28px !important;
  border: 1px solid rgba(0, 69, 97, 0.06) !important;
}
.icon_box:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--ap-card-shadow-hover) !important;
  border-color: rgba(0, 69, 97, 0.12) !important;
}
.icon_box .title { 
  color: var(--ap-navy) !important;
  font-weight: 600 !important;
  font-size: 18px !important;
  margin-bottom: 8px !important;
}
.icon_box .icon_wrapper,
.counter .icon_wrapper i,
.quick_fact .number-wrapper .number {
  color: var(--ap-red) !important;
}
.icon_box .desc {
  color: var(--ap-text-body) !important;
  line-height: 1.6 !important;
  font-size: 14px !important;
}

/* Mockup images — polished presentation */
.image_frame .image_wrapper img,
.testimonials_list .photo img,
.column_image img.scale-with-grid {
  border-radius: 6px !important;
  box-shadow: var(--ap-card-shadow) !important;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.image_frame .image_wrapper img:hover,
.column_image img.scale-with-grid:hover {
  transform: scale(1.02) !important;
}

.testimonials_list .item {
  background: #fff !important;
  border-radius: 10px !important;
  box-shadow: var(--ap-card-shadow) !important;
  padding: 28px !important;
  border: 1px solid rgba(0, 69, 97, 0.06) !important;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.testimonials_list .item:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--ap-card-shadow-hover) !important;
}

/* ===== BUTTONS & LINKS — Premium Interactive ===== */
a.button_theme, .button, button, input[type="submit"],
.button-default .button, .button-flat .button {
  background: var(--ap-red) !important;
  color: #fff !important;
  font-weight: 600 !important;
  box-shadow: var(--ap-red-glow) !important;
  border: none !important;
  border-radius: 4px !important;
  letter-spacing: 0.5px !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
a.button_theme:hover, .button:hover, button:hover, input[type="submit"]:hover {
  background: var(--ap-red-dark) !important;
  transform: translateY(-2px) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(227, 30, 36, 0.35) !important;
}

a { 
  color: var(--ap-navy-mid) !important;
  transition: color 0.2s ease !important;
}
a:hover { color: var(--ap-red) !important; }
.themecolor { color: var(--ap-red) !important; }
.themebg, .dropcap, .get_in_touch, .infobox,
#Top_bar .responsive-menu-toggle {
  background-color: var(--ap-red) !important;
}

.fancy_heading .title {
  color: var(--ap-navy) !important;
  border-bottom: 3px solid var(--ap-red) !important;
  display: inline-block !important;
  padding-bottom: 12px !important;
  margin-bottom: 20px !important;
  font-weight: 600 !important;
}
.fancy_heading .fh-top, .fancy_heading .icon_top { color: var(--ap-red) !important; }

.list_item .list_icon i { color: var(--ap-red) !important; }
.list_item .list_right h4 { 
  color: var(--ap-navy) !important; 
  font-weight: 600 !important;
  font-size: 16px !important;
  margin-bottom: 6px !important;
}
.list_item .list_right .desc { 
  color: var(--ap-text-body) !important;
  line-height: 1.6 !important;
  font-size: 14px !important;
}

/* ===== FOOTER — Premium Professional ===== */
#Footer {
  border-top: 3px solid var(--ap-red) !important;
  background: var(--ap-navy-dark) !important;
  padding-top: var(--ap-space-2xl) !important;
  padding-bottom: var(--ap-space-xl) !important;
}

#mfn-footer-template .ap-footer-col h4 {
  color: var(--ap-red-on-dark) !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  margin-bottom: var(--ap-space-md) !important;
  letter-spacing: 0.5px !important;
}

#mfn-footer-template .ap-footer-contact-item a {
  color: #fff !important;
  transition: opacity 0.2s ease !important;
}

#mfn-footer-template .ap-footer-contact-item a:hover {
  color: #fff !important;
  opacity: 0.85;
}

#mfn-footer-template .ap-footer-contact-item svg {
  fill: #fff !important;
}

.mfn-footer a:not(.button,.icon_bar,.mfn-btn,.mfn-option-btn):not(.ap-footer-contact-item a) {
  color: var(--ap-red-bright) !important;
  font-weight: 500 !important;
  transition: color 0.2s ease !important;
}
.mfn-footer a:not(.button,.icon_bar,.mfn-btn,.mfn-option-btn):not(.ap-footer-contact-item a):hover {
  color: #fff !important;
}

.mfn-footer h1, .mfn-footer h2, .mfn-footer h3,
.mfn-footer h5, .mfn-footer h6 {
  color: var(--ap-red) !important;
  font-weight: 600 !important;
}

.mfn-footer p {
  color: rgba(255, 255, 255, 0.75) !important;
  line-height: 1.6 !important;
}

/* ===== FORMS — Premium Interactive ===== */
input, textarea, select {
  border: 2px solid rgba(0, 69, 97, 0.15) !important;
  color: var(--ap-text-primary) !important;
  background: #fff !important;
  border-radius: 4px !important;
  padding: 12px 16px !important;
  font-size: 15px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--ap-navy) !important;
  box-shadow: 0 0 0 3px rgba(0, 69, 97, 0.1) !important;
  outline: none !important;
}
#signupbutton { 
  background: var(--ap-red-gradient) !important; 
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  border-radius: 4px !important;
}

::selection { background: var(--ap-red) !important; color: #fff !important; }
::-moz-selection { background: var(--ap-red) !important; color: #fff !important; }

.style-simple a.icon_bar {
  background: var(--ap-navy) !important;
  transition: background 0.25s ease, transform 0.25s ease !important;
  border-radius: 4px !important;
}
.style-simple a.icon_bar:hover {
  background: var(--ap-red) !important;
  transform: translateY(-2px) !important;
}

/* Betheme variables */
body {
  --mfn-button-theme-bg: #e31e24 !important;
  --mfn-button-theme-bg-hover: #b8151a !important;
  --mfn-button-action-bg: #e31e24 !important;
  --mfn-button-action-bg-hover: #b8151a !important;
  --mfn-clients-tiles-hover: #e31e24 !important;
  --mfn-icon-box-icon: #e31e24 !important;
  --mfn-woo-themecolor: #e31e24 !important;
}

#Wrapper .themecolor { color: var(--ap-red) !important; }
#Wrapper .themebg { background-color: var(--ap-red) !important; }

.quick_fact .title { 
  color: var(--ap-navy) !important; 
  font-weight: 600 !important;
  font-size: 15px !important;
  letter-spacing: 0.3px !important;
}
.quick_fact .number-wrapper .number { 
  color: var(--ap-red) !important; 
  font-weight: 700 !important;
  font-size: 42px !important;
  line-height: 1 !important;
}

.clients .client_wrapper {
  background: #fff !important;
  border-radius: 6px !important;
  padding: 12px 16px !important;
  box-shadow: var(--ap-subtle-shadow) !important;
  border: 1px solid rgba(0, 69, 97, 0.06) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}
.clients .client_wrapper:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--ap-card-shadow) !important;
}

.ap-legacy-lead { 
  color: var(--ap-red) !important; 
  font-weight: 600 !important;
  font-size: 18px !important;
  letter-spacing: 0.3px !important;
}

/* Dark section class from Betheme */
section.dark,
.mcb-section.dark {
  color: #fff !important;
}
section.dark h1, section.dark h2, section.dark h3,
section.dark h4, section.dark p, section.dark .title {
  color: #ffffff !important;
}

/* ===== SECTION SPACING — Premium Rhythm ===== */
.section_wrapper {
  padding-left: 2.5% !important;
  padding-right: 2.5% !important;
}

@media (min-width: 1240px) {
  .section_wrapper {
    max-width: 1400px !important;
    margin: 0 auto !important;
  }
}

/* Section padding for premium feel */
section.section {
  padding-top: var(--ap-space-2xl) !important;
  padding-bottom: var(--ap-space-2xl) !important;
}

@media (max-width: 767px) {
  section.section {
    padding-top: var(--ap-space-xl) !important;
    padding-bottom: var(--ap-space-xl) !important;
  }
  rs-slide, #slider-65-slide-68-layer-18 {
    background-position: 65% center !important;
  }
  section.mcb-section-5stwcjiu,
  section.mcb-section-bf0b700fe {
    padding-top: var(--ap-space-xl) !important;
    padding-bottom: var(--ap-space-xl) !important;
  }
}

/* ===== SCROLL REVEAL & PAGE TRANSITIONS ===== */
html {
  scroll-behavior: smooth;
}

.ap-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.ap-reveal.ap-visible {
  opacity: 1;
  transform: translateY(0);
}

.mcb-section .icon_box.ap-reveal {
  transform: translateY(24px) scale(0.98);
}
.mcb-section .icon_box.ap-reveal.ap-visible {
  transform: translateY(0) scale(1);
}

.mcb-section .column_image.ap-reveal {
  transform: translateY(20px) scale(0.98);
}
.mcb-section .column_image.ap-reveal.ap-visible {
  transform: translateY(0) scale(1);
}

.mcb-section .fancy_heading.ap-reveal,
.mcb-section .column_heading.ap-reveal {
  transform: translateY(16px);
}

.mcb-section .list_item.ap-reveal {
  transform: translateX(-16px);
}
.mcb-section .list_item.ap-reveal.ap-visible {
  transform: translateX(0);
}

.mcb-section .quick_fact.ap-reveal {
  transform: translateY(24px) scale(0.98);
}
.mcb-section .quick_fact.ap-reveal.ap-visible {
  transform: translateY(0) scale(1);
}

/* Page load / navigation transitions */
@keyframes apPageIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes apPageOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

body.ap-page-enter #Wrapper,
body.ap-page-enter #Content {
  animation: apPageIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.ap-page-exit #Wrapper,
body.ap-page-exit #Content {
  animation: apPageOut 0.3s ease forwards;
  pointer-events: none;
}

/* Header shadow when scrolling */
#ap-header.ap-scrolled .ap-navbar {
  box-shadow: 0 4px 20px rgba(0, 47, 66, 0.1) !important;
}

#ap-header.ap-scrolled .ap-topbar {
  opacity: 0.96;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ap-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  body.ap-page-enter #Wrapper,
  body.ap-page-enter #Content,
  body.ap-page-exit #Wrapper,
  body.ap-page-exit #Content {
    animation: none !important;
  }
}

/* ===== MOCKUP IMAGE FIT — Premium Presentation ===== */
.column_image .image_frame,
.column_image .image_wrapper,
.mfn-img-box .image_wrapper {
  max-width: 100% !important;
  width: 100% !important;
}

.column_image .image_wrapper:has(img[src*="mockups/"]),
.testimonials_list .photo .image_wrapper:has(img[src*="mockups/"]) {
  overflow: hidden !important;
}

img[src*="mockups/"] {
  max-width: 100% !important;
  display: block !important;
}

.scale-with-grid[src*="mockups/"] {
  width: 100% !important;
  max-width: 100% !important;
}

/* Service hero sidebar mockup — scale image only, keep original layout/position */
.column_image .mfn-img-box .image_frame:has(img[fetchpriority="high"][src*="mockups/notebook"]),
.column_image .mfn-img-box .image_wrapper:has(img[fetchpriority="high"][src*="mockups/notebook"]) {
  overflow: visible !important;
}

.column_image .mfn-img-box img[fetchpriority="high"][src*="mockups/notebook"] {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  transform: scale(1.3);
  transform-origin: center center;
  object-fit: contain !important;
}

/* Quote column book (945x945) — scale image only, keep layout/position */
.image_frame.stretch:has(img[src*="mockups/book-standing"]),
.image_frame.stretch .image_wrapper:has(img[src*="mockups/book-standing"]) {
  overflow: visible !important;
}

.image_frame.stretch img[width="945"][height="945"][src*="mockups/book-standing"],
.column_image .image_frame.stretch img[src*="mockups/book-standing"] {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  transform: scale(1.3);
  transform-origin: center center;
  object-fit: contain !important;
}

/* Wide banner slots (formerly 1300x500 strips) — exclude hero sidebar overlays */
.column_image img[src*="mockups/books-stacked"]:not([fetchpriority="high"]),
.column_image img[src*="mockups/book-perspective"]:not([fetchpriority="high"]),
.column_image img[src*="mockups/book-marketing"]:not([fetchpriority="high"]),
.column_image img[src*="mockups/book-editing"]:not([fetchpriority="high"]),
.column_image img[src*="mockups/book-hardcover"]:not([fetchpriority="high"]),
.column_image img[src*="mockups/book-design"]:not([fetchpriority="high"]),
.column_image img[src*="mockups/notebook"]:not([fetchpriority="high"]),
.column_image img[src*="mockups/home-hero"]:not([fetchpriority="high"]),
.column_image img[src*="mockups/home-hero-alt"]:not([fetchpriority="high"]) {
  width: 100% !important;
  height: auto !important;
  min-height: 340px !important;
  max-height: 520px !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* Portrait columns (publications, etc.) — book-standing handled separately above */
.image_frame.stretch img[src*="mockups/"]:not([src*="book-standing"]),
.column_image img[src*="mockups/book-publications"] {
  width: 100% !important;
  height: 100% !important;
  min-height: 380px !important;
  max-height: 560px !important;
  object-fit: cover !important;
  object-position: center 25% !important;
}

/* Service page hero book on the right */
.mcb-section.dark.full-width .column_image .image_frame {
  width: 100% !important;
  max-width: 640px !important;
}

.mcb-section.dark.full-width .column_image img[src*="mockups/"] {
  width: 100% !important;
  min-height: 420px !important;
  max-height: 540px !important;
  object-fit: contain !important;
  object-position: bottom center !important;
}

/* Testimonial featured book */
.testimonials_list .photo .image_frame,
.testimonials_list .photo .image_wrapper {
  width: 100% !important;
  max-width: 320px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.testimonials_list img[src*="mockups/"],
.testimonials_list .photo img[src*="mockups/book-best"] {
  width: 100% !important;
  min-height: 340px !important;
  max-height: 480px !important;
  object-fit: contain !important;
  object-position: center center !important;
}

/* Section background images that use mockups */
section.mcb-section-13953a7e0,
section.mcb-section-1f1943461,
section.mcb-section-c96135ec4,
section.mcb-section-832f339b0,
section.mcb-section-a7d4bb356,
section.dark.full-width {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* Homepage precision / books band */
.mcb-section-a852c02b8 img[src*="mockups/books-stacked"] {
  min-height: 360px !important;
  max-height: 480px !important;
  object-fit: cover !important;
  object-position: center 35% !important;
}

@media (max-width: 991px) {
  .column_image img[src*="mockups/"]:not([src*="book-standing"]),
  .image_frame.stretch img[src*="mockups/"]:not([src*="book-standing"]) {
    min-height: 240px !important;
    max-height: 380px !important;
  }

  .mcb-section.dark.full-width .column_image img[src*="mockups/"] {
    min-height: 280px !important;
    max-height: 400px !important;
  }
}

@media (max-width: 767px) {
  .column_image img[src*="mockups/"]:not([src*="book-standing"]),
  .image_frame.stretch img[src*="mockups/"]:not([src*="book-standing"]),
  .testimonials_list img[src*="mockups/"]:not([src*="book-best"]) {
    min-height: 200px !important;
    max-height: 320px !important;
  }
}

/* ===== MERGED: Featured book + Why choose AuthorPad ===== */
section.ap-featured-why-section {
  padding-top: 50px !important;
  padding-bottom: 50px !important;
}

section.ap-featured-why-section .ap-reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

section.ap-featured-why-section .mcb-section-inner-2e9af268b {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 24px !important;
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
}

section.ap-featured-why-section .mcb-wrap-485f1e12e,
section.ap-featured-why-section .mcb-wrap-112beda01 {
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: visible !important;
}

section.ap-featured-why-section .mcb-wrap-485f1e12e {
  width: 38% !important;
  flex: 0 0 38% !important;
  max-width: 38% !important;
  order: 1 !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

section.ap-featured-why-section .mcb-wrap-112beda01 {
  width: 62% !important;
  flex: 0 0 62% !important;
  max-width: 62% !important;
  order: 2 !important;
}

section.ap-featured-why-section .mcb-wrap-485f1e12e .mcb-wrap-inner-485f1e12e,
section.ap-featured-why-section .mcb-wrap-112beda01 .mcb-wrap-inner-112beda01 {
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}

section.ap-featured-why-section .mcb-column-inner {
  margin-bottom: 0 !important;
  padding: 0 !important;
}

section.ap-featured-why-section .testimonials_list.style_quote .item {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  text-align: left !important;
  padding: 16px 0 !important;
  margin: 0 !important;
  width: 100% !important;
  overflow: visible !important;
  clear: none !important;
  box-sizing: border-box !important;
}

section.ap-featured-why-section .testimonials_list .photo {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 0 14px !important;
  float: none !important;
}

section.ap-featured-why-section .testimonials_list .photo .image_frame,
section.ap-featured-why-section .testimonials_list .photo .image_wrapper {
  max-width: 220px !important;
  margin: 0 !important;
  overflow: visible !important;
}

section.ap-featured-why-section .testimonials_list img[src*="book-best"] {
  width: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  transform: scale(1.08) !important;
  transform-origin: left center !important;
  object-fit: contain !important;
}

section.ap-featured-why-section .testimonials_list .desc {
  width: 100% !important;
  margin: 0 !important;
  margin-top: 0 !important;
  float: none !important;
}

section.ap-featured-why-section .testimonials_list blockquote {
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: var(--ap-text-body) !important;
  font-style: normal !important;
  margin: 0 0 12px !important;
}

section.ap-featured-why-section .testimonials_list .hr_color {
  margin: 10px 0 12px !important;
  width: 40px !important;
}

section.ap-featured-why-section .mcb-wrap-112beda01 .mcb-wrap-inner-112beda01 {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px 24px !important;
  align-content: start !important;
}

section.ap-featured-why-section .mcb-wrap-112beda01 .column {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

section.ap-featured-why-section .mcb-item-15cd02761,
section.ap-featured-why-section .mcb-item-15cd02761 .mcb-column-inner {
  grid-column: 1 / -1 !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
}

section.ap-featured-why-section .fancy_heading .fh-top {
  margin-bottom: 6px !important;
}

section.ap-featured-why-section .fancy_heading h2.title {
  font-size: 28px !important;
  line-height: 1.2 !important;
  color: var(--ap-navy) !important;
  text-align: left !important;
  margin: 0 !important;
  padding: 0 !important;
}

section.ap-featured-why-section .column_list .mcb-column-inner {
  padding: 0 !important;
}

section.ap-featured-why-section .list_item {
  margin: 0 !important;
  padding: 8px 0 !important;
}

section.ap-featured-why-section .list_item .list_left {
  padding-top: 2px !important;
  margin-right: 10px !important;
}

section.ap-featured-why-section .list_item .title {
  font-size: 15px !important;
  line-height: 1.25 !important;
  color: var(--ap-navy) !important;
  margin: 0 0 4px !important;
}

section.ap-featured-why-section .list_item .desc {
  font-size: 13px !important;
  line-height: 1.45 !important;
  color: var(--ap-text-muted) !important;
}

section.ap-featured-why-section .list_item .list_icon i {
  color: var(--ap-red) !important;
}

@media (max-width: 991px) {
  section.ap-featured-why-section .mcb-section-inner-2e9af268b {
    flex-direction: column !important;
    flex-wrap: wrap !important;
    gap: 28px !important;
  }

  section.ap-featured-why-section .mcb-wrap-485f1e12e,
  section.ap-featured-why-section .mcb-wrap-112beda01 {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  section.ap-featured-why-section .mcb-wrap-112beda01 .mcb-wrap-inner-112beda01 {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  section.ap-featured-why-section .fancy_heading h2.title {
    text-align: center !important;
  }
}

/* ===== MERGED: Book marketing hero + service cards ===== */
section.ap-marketing-merge .mcb-section-inner-5f989f1f9 {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 24px !important;
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
}

section.ap-marketing-merge .mcb-wrap-ac8c81e3a,
section.ap-marketing-merge .mcb-wrap-6c37d9839 {
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: visible !important;
}

section.ap-marketing-merge .mcb-wrap-ac8c81e3a {
  width: 38% !important;
  flex: 0 0 38% !important;
  max-width: 38% !important;
  order: 1 !important;
}

section.ap-marketing-merge .mcb-wrap-6c37d9839 {
  width: 62% !important;
  flex: 0 0 62% !important;
  max-width: 62% !important;
  order: 2 !important;
}

section.ap-marketing-merge .mcb-wrap-ac8c81e3a .mcb-wrap-inner-ac8c81e3a,
section.ap-marketing-merge .mcb-wrap-6c37d9839 .mcb-wrap-inner-6c37d9839 {
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}

section.ap-marketing-merge .mcb-wrap-6c37d9839 .mcb-wrap-inner-6c37d9839 {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  align-content: start !important;
}

section.ap-marketing-merge .mcb-item-9941acd4a,
section.ap-marketing-merge .mcb-item-9941acd4a .mcb-column-inner {
  margin: 0 !important;
  padding: 0 !important;
}

section.ap-marketing-merge .mcb-item-803fcf5f6 {
  max-width: 260px !important;
}

section.ap-marketing-merge .mcb-wrap-6c37d9839 .column {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  display: block !important;
}

section.ap-marketing-merge .mcb-item-56e27e3ac .image_frame,
section.ap-marketing-merge .mcb-item-56e27e3ac .image_wrapper {
  margin-left: 0 !important;
  margin-right: auto !important;
  text-align: left !important;
  overflow: visible !important;
}

section.ap-marketing-merge .mcb-item-56e27e3ac .image_wrapper,
section.ap-marketing-merge .mcb-item-56e27e3ac img[src*="book-marketing"] {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: contain !important;
}

section.ap-marketing-merge .mcb-item-56e27e3ac img[src*="book-marketing"] {
  transform: scale(1.33) !important;
  transform-origin: left center !important;
}

section.ap-marketing-merge .mcb-item-1200f09d8 .column_attr h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem) !important;
  color: var(--ap-navy) !important;
  margin: 0 0 12px !important;
}

section.ap-marketing-merge .mcb-item-1200f09d8 .column_attr .subcopy {
  font-size: 1.05rem !important;
  margin: 0 0 12px !important;
}

section.ap-marketing-merge .mcb-item-1200f09d8 .column_attr p {
  margin: 0 0 8px !important;
  line-height: 1.7 !important;
}

section.ap-marketing-merge .testimonials_list.style_quote .item {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 20px !important;
  margin: 0 !important;
}

section.ap-marketing-merge .testimonials_list .photo {
  flex: 0 0 100px !important;
  max-width: 100px !important;
}

section.ap-marketing-merge .testimonials_list img[src*="testimonial-hear-voice"] {
  width: 100% !important;
  height: auto !important;
  box-shadow: none !important;
}

section.ap-marketing-merge .testimonials_list blockquote {
  font-size: 0.95rem !important;
  line-height: 1.65 !important;
  margin: 0 !important;
}

section.ap-marketing-merge .testimonials_list .hr_color {
  margin: 10px 0 !important;
}

section.ap-marketing-merge .pricing-box {
  height: 100% !important;
  margin: 0 !important;
  border: 1px solid rgba(0, 69, 97, 0.12) !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 24px rgba(12, 22, 42, 0.08) !important;
}

section.ap-marketing-merge .pricing-box .plan-header h2.title {
  font-size: 15px !important;
  line-height: 1.35 !important;
  color: var(--ap-navy) !important;
  margin: 0 !important;
  padding: 18px 14px 10px !important;
}

section.ap-marketing-merge .pricing-box .plan-footer {
  padding: 0 14px 18px !important;
}

section.ap-marketing-merge .pricing-box .button {
  width: 100% !important;
  text-align: center !important;
  font-size: 11px !important;
  padding: 10px 8px !important;
}

@media (max-width: 991px) {
  section.ap-marketing-merge .mcb-section-inner-5f989f1f9 {
    flex-direction: column !important;
    flex-wrap: wrap !important;
    gap: 28px !important;
  }

  section.ap-marketing-merge .mcb-wrap-ac8c81e3a,
  section.ap-marketing-merge .mcb-wrap-6c37d9839 {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  section.ap-marketing-merge .mcb-wrap-6c37d9839 .mcb-wrap-inner-6c37d9839 {
    gap: 16px !important;
  }

  section.ap-marketing-merge .mcb-item-803fcf5f6 {
    max-width: 100% !important;
  }

  section.ap-marketing-merge .testimonials_list.style_quote .item {
    flex-direction: column !important;
  }
}

/* ===== OUR TEAM PAGE ===== */
.ap-team-shell {
  font-family: Inter, -apple-system, system-ui, sans-serif;
  color: #1a2b3c;
  width: 100%;
  max-width: none;
}

.ap-team-shell .sections_group,
.ap-team-shell .entry-content {
  max-width: none !important;
  width: 100% !important;
}

.ap-team-shell img {
  box-shadow: none !important;
  border-radius: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
}

.ap-team-container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

/* Hero */
.ap-team-hero {
  background: linear-gradient(135deg, #0c162a 0%, #004561 55%, #0a3044 100%);
  padding: 72px 0 64px;
  overflow: hidden;
}

.ap-team-hero-inner {
  width: min(1180px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.ap-team-eyebrow {
  color: #e31e24;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.ap-team-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  line-height: 1.12;
  margin: 0 0 18px;
  font-weight: 600;
}

.ap-team-lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.75;
  margin: 0;
  max-width: 540px;
}

.ap-team-hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.ap-team-hero-visual img {
  width: min(420px, 100%) !important;
  height: auto !important;
  object-fit: contain !important;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.35));
}

/* Intro */
.ap-team-intro {
  background: #fff;
  padding: 70px 0;
}

.ap-team-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.ap-team-intro-text h2 {
  color: #004561;
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  margin: 0 0 18px;
  line-height: 1.25;
}

.ap-team-intro-text p {
  color: #3d5560;
  font-size: 1.02rem;
  line-height: 1.75;
  margin: 0 0 16px;
}

.ap-team-intro-image img {
  width: min(420px, 100%) !important;
  margin: 0 auto;
}

/* Team grid */
.ap-team-members {
  background: #f7f9fb;
  padding: 70px 0 80px;
}

.ap-team-section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.ap-team-section-head h2 {
  color: #004561;
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  margin: 0 0 12px;
}

.ap-team-section-head p {
  color: #3d5560;
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0;
}

.ap-team-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 28px !important;
  width: 100% !important;
  max-width: none !important;
}

.ap-team-member {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 47, 66, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.ap-team-member:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(0, 47, 66, 0.14);
}

.ap-team-member--lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 280px 1fr;
  align-items: stretch;
}

.ap-team-member--lead .ap-team-member-photo {
  min-height: 280px;
}

.ap-team-member--lead .ap-team-member-photo img,
.ap-team-member--lead .ap-team-member-photo--placeholder {
  width: 100% !important;
  height: 100% !important;
  min-height: 280px;
  border-radius: 0 !important;
  object-fit: cover !important;
  object-position: center top !important;
}

.ap-team-member--lead .ap-team-member-body {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ap-team-member-photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #eef2f6;
}

.ap-team-member-photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
}

.ap-team-member-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #004561 0%, #0c162a 100%);
}

.ap-team-member-photo--placeholder span {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.ap-team-member-body {
  padding: 24px 22px 28px;
  text-align: center;
}

.ap-team-member-body h3 {
  color: #004561;
  font-size: 1.15rem;
  margin: 0 0 8px;
  line-height: 1.3;
}

.ap-team-member-role {
  color: #e31e24;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.ap-team-member-bio {
  color: #3d5560;
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

/* Values + quote */
.ap-team-values {
  background: #fff;
  padding: 70px 0;
}

.ap-team-values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.ap-team-values-copy h2 {
  color: #004561;
  font-size: 1.8rem;
  margin: 0 0 20px;
}

.ap-team-values-copy ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ap-team-values-copy li {
  position: relative;
  padding: 14px 0 14px 24px;
  border-bottom: 1px solid #eef1f4;
  color: #3d5560;
  font-size: 1rem;
  line-height: 1.6;
}

.ap-team-values-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e31e24;
}

.ap-team-values-copy li strong {
  color: #004561;
}

.ap-team-quote {
  margin: 0;
  padding: 32px 34px;
  background: #f7f9fb;
  border-left: 4px solid #e31e24;
  border-radius: 0 12px 12px 0;
}

.ap-team-quote p {
  color: #004561;
  font-size: 1.15rem;
  line-height: 1.65;
  font-weight: 600;
  margin: 0 0 18px;
}

.ap-team-quote footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ap-team-quote footer strong {
  color: #1a2b3c;
  font-size: 1rem;
}

.ap-team-quote footer span {
  color: #3d5560;
  font-size: 0.9rem;
}

/* CTA */
.ap-team-cta {
  padding: 64px 0;
  text-align: center;
}

.ap-team-cta-inner h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0 0 12px;
}

.ap-team-cta-inner p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  margin: 0 0 24px;
}

.ap-team-cta .button {
  display: inline-block;
}

@media (max-width: 991px) {
  .ap-team-hero-inner,
  .ap-team-intro-grid,
  .ap-team-values-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ap-team-hero-visual {
    order: -1;
  }

  .ap-team-hero-visual img {
    width: min(280px, 70vw) !important;
  }

  .ap-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .ap-team-member--lead {
    grid-template-columns: 1fr;
  }

  .ap-team-member--lead .ap-team-member-photo {
    min-height: 260px;
  }
}

@media (max-width: 600px) {
  .ap-team-grid {
    grid-template-columns: 1fr !important;
  }

  .ap-team-hero {
    padding: 52px 0 44px;
  }

  .ap-team-members,
  .ap-team-intro,
  .ap-team-values {
    padding: 48px 0;
  }
}

/* Redesign: solid navy for dark full-width bands (remove background photo) */
section.dark.full-width {
  background-color: #003346 !important;
  background-image: none !important;
}
section.dark.full-width h1,
section.dark.full-width .title,
section.dark.full-width .subcopy,
section.dark.full-width p {
  color: #ffffff !important;
}

/* Remove all book-cover product images (mockups/ and MOCKUP/) site-wide */
img[src*="mockup" i] { display: none !important; }

/* ===== Site-wide: remove dark band backgrounds and background photos ===== */
section.dark,
.mcb-section.dark,
section.dark.full-width,
.mcb-section.dark.full-width,
section.mcb-section-13953a7e0,
section.mcb-section-1f1943461,
section.mcb-section-c96135ec4,
section.mcb-section-832f339b0,
section.mcb-section-a7d4bb356 {
  background-image: none !important;
  background-color: #ffffff !important;
}
section.dark h1, section.dark h2, section.dark h3, section.dark h4, section.dark h5,
section.dark p, section.dark .title, section.dark .subcopy, section.dark .column_attr,
section.dark li, section.dark span,
.mcb-section.dark h1, .mcb-section.dark h2, .mcb-section.dark h3, .mcb-section.dark h4,
.mcb-section.dark p, .mcb-section.dark .title, .mcb-section.dark .subcopy,
.mcb-section.dark .column_attr, .mcb-section.dark li, .mcb-section.dark span {
  color: #16323f !important;
}
/* inline light helper text (e.g. pricing PER WORD label) -> dark, but keep brand-red accents */
section.dark [style*="255,255,255"], section.dark [style*="255, 255, 255"],
.mcb-section.dark [style*="255,255,255"], .mcb-section.dark [style*="255, 255, 255"] {
  color: #16323f !important;
}

/* ===== (specificity fix) readable dark text on the now-white bands + visible buttons ===== */
section.dark.full-width h1, section.dark.full-width h2, section.dark.full-width h3,
section.dark.full-width h4, section.dark.full-width p,
section.dark.full-width .title, section.dark.full-width .subcopy, section.dark.full-width .column_attr,
.mcb-section.dark.full-width h1, .mcb-section.dark.full-width h2, .mcb-section.dark.full-width h3,
.mcb-section.dark.full-width p, .mcb-section.dark.full-width .title, .mcb-section.dark.full-width .subcopy,
.mcb-section.dark.full-width .column_attr,
section.mcb-section-13953a7e0 h1, section.mcb-section-13953a7e0 .title,
section.mcb-section-13953a7e0 .subcopy, section.mcb-section-13953a7e0 p, section.mcb-section-13953a7e0 .column_attr,
section.mcb-section-a7d4bb356 h2, section.mcb-section-a7d4bb356 .subcopy, section.mcb-section-a7d4bb356 .column_attr,
section.dark [style*="255,255,255"], section.dark [style*="255, 255, 255"] {
  color: #16323f !important;
}
/* brand-red accents stay red (pricing numbers etc.) */
section.dark [style*="#e31e24"], section.dark [style*="e31e24"],
section.dark.full-width [style*="e31e24"] { color: #e31e24 !important; }
/* buttons on these bands: solid navy fill, white label, so they are visible on white */
section.dark .button, .mcb-section.dark .button,
section.dark .button .button_label {
  background-color: #003346 !important;
  border: 1px solid #003346 !important;
  color: #ffffff !important;
}

/* base: default text on these (now white) bands is dark, so nothing inherits white */
section.dark, .mcb-section.dark { color: #16323f !important; }

/* ===== AuthorPad compact spacing (key pages) =====
 * Cap oversized inter-section whitespace for a dense, professional feel.
 * Only touches generous builder paddings (60–140px). Structural offsets
 * (>=150px, e.g. the 250px fixed-header clearance) are intentionally left alone.
 */
section[style*="padding-top:140px"],section[style*="padding-top:130px"],section[style*="padding-top:120px"]{padding-top:40px !important}
section[style*="padding-top:110px"],section[style*="padding-top:100px"],section[style*="padding-top:90px"],section[style*="padding-top:85px"]{padding-top:36px !important}
section[style*="padding-top:80px"],section[style*="padding-top:70px"],section[style*="padding-top:60px"]{padding-top:32px !important}
section[style*="padding-bottom:140px"],section[style*="padding-bottom:130px"],section[style*="padding-bottom:120px"]{padding-bottom:40px !important}
section[style*="padding-bottom:110px"],section[style*="padding-bottom:100px"],section[style*="padding-bottom:90px"],section[style*="padding-bottom:85px"]{padding-bottom:36px !important}
section[style*="padding-bottom:80px"],section[style*="padding-bottom:70px"],section[style*="padding-bottom:60px"]{padding-bottom:32px !important}

/* ===== RESPONSIVE ENHANCEMENTS ===== */
@media (max-width: 767px) {
  /* Mobile typography */
  h1 { font-size: 32px !important; }
  h2 { font-size: 26px !important; }
  h3 { font-size: 22px !important; }
  h4 { font-size: 18px !important; }
  
  /* Mobile spacing */
  .section_wrapper {
    padding-left: 3% !important;
    padding-right: 3% !important;
  }
  
  /* Mobile cards */
  .icon_box {
    padding: 20px 16px 24px !important;
  }
  
  /* Mobile navigation */
  .ap-navbar {
    padding: 0 16px !important;
  }
  
  /* Mobile promises */
  .apx-promises {
    padding: 24px 4% 20px !important;
  }
  
  /* Mobile hero badge */
  .apx2-badge {
    font-size: 10px !important;
    padding: 6px 14px !important;
    letter-spacing: 1.5px !important;
  }
  
  /* Mobile buttons */
  .apx2-btn {
    padding: 14px 24px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 480px) {
  /* Extra small mobile adjustments */
  h1 { font-size: 28px !important; }
  h2 { font-size: 24px !important; }
  h3 { font-size: 20px !important; }
  
  .section_wrapper {
    padding-left: 2% !important;
    padding-right: 2% !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  /* Tablet adjustments */
  h1 { font-size: 42px !important; }
  h2 { font-size: 32px !important; }
  h3 { font-size: 26px !important; }
  
  .section_wrapper {
    padding-left: 3% !important;
    padding-right: 3% !important;
  }
}
