/* Hero Device Mockup Shadow */
.kb-imageflowheroimg img.kb-img {
    filter: drop-shadow(0 20px 40px rgba(11, 31, 51, 0.12));
}

/* Hero Mockup Background Radial Glow */
.kadence-columnflowheroc2 .kt-inside-inner-col {
    background: radial-gradient(circle, rgba(136, 215, 212, 0.25) 0%, rgba(255, 255, 255, 0) 70%);
    background-position: center;
    background-repeat: no-repeat;
}

/* Hero CTA Buttons - Modernized Polish */
.kb-buttons-wrap.kb-btnsflowherobtns a.kb-button {
    font-size: 19px;
    font-weight: 700;
    padding: 12px 24px;
    line-height: 1.2;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.kb-buttons-wrap.kb-btnsflowherobtns a.kb-button:hover {
    transform: translateY(-2px) !important;
}

.kb-buttons-wrap.kb-btnsflowherobtns a.kb-button.kb-btnflowherobtn1:hover {
    box-shadow: 0 10px 20px rgba(0, 178, 182, 0.25) !important;
}

.kb-buttons-wrap.kb-btnsflowherobtns a.kb-button.kb-btnflowherobtn2:hover {
    box-shadow: 0 10px 20px rgba(11, 31, 51, 0.1) !important;
}

/* Hero Copy Paragraph - Gray text contrast matching production */
.dmax-hero-copy {
    color: #757575 !important;
}

/* Hero Button Responsive Overrides (base in 10-content-patterns.css) */
@media (min-width: 768px) {
    .dmax-hero-btns {
        padding-top: 1rem;
    }
  .dmax-hero-btns .wp-block-button__link {
    width: auto;
    /* min-width: 200px; */
    min-width: calc(50% - .25rem);
  }
}
@media (max-width: 767px) {
  .dmax-hero-btns {
    flex-direction: column;
    align-items: center;
  }
  .dmax-hero-btns .wp-block-kadence-singlebtn,
  .dmax-hero-btns .wp-block-kadence-singlebtn.kb-button.wp-block-button__link {
    /* max-width: 280px; */
    width: 100%;
  }
}

/* ==========================================================================
   Section 3 (Clinical & Operational Tools) Tabs Grid & Interactivity
   ========================================================================= */


@media (min-width: 768px) {
    .dmax-tabs,
    .dmax-tabs .kt-tabs-wrap {
        /* margin-top: 1rem; */
        padding-top: .5rem;
    }

    /* Main wrapper split: 3/5 button grid on left, 2/5 details card on right */
    .dmax-tabs .kt-tabs-wrap,
    .dmax-tabs.wp-block-kadence-tabs .kt-tabs-wrap {
        display: grid;
        grid-template-columns: 3.2fr 2fr;
        gap: 40px;
        align-items: start;
    }

    /* Left Side: 2-column grid of pill buttons */
    .dmax-tabs .kt-tabs-title-list,
    .dmax-tabs.wp-block-kadence-tabs .kt-tabs-title-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        border: none;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    /* Individual tab title item list wrapper */
    .dmax-tabs .kt-tabs-title-list li.kt-title-item,
    .dmax-tabs.wp-block-kadence-tabs .kt-tabs-title-list li.kt-title-item  {
        margin: 0;
        border: none;
        background: none;
        width: 100%;
    }

    /* 9th button centered and spanning both columns */
    .dmax-tabs .kt-tabs-title-list li.kt-title-item.kt-title-item-9 {
        grid-column: span 2;
        justify-self: center;
        width: calc(50% - 8px);
    }

    /* Tab anchor styling as white pill buttons with teal borders */
    .dmax-tabs .kt-tabs-title-list li.kt-title-item a.kt-tab-title {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 14px 20px;
        font-size: 16px;
        font-weight: 800;
        border: 1px solid #00b2b6;
        border-radius: 30px;
        background-color: #ffffff;
        color: #00b2b6;
        transition: all 0.25s ease;
        text-decoration: none;
        width: 100%;
        box-sizing: border-box;
        box-shadow: 0 4px 6px rgba(11, 31, 51, 0.03);
        border-bottom: 1px solid #00b2b6; /* Override default underline theme styles */
    }

    /* Hover State */
    .dmax-tabs .kt-tabs-title-list li.kt-title-item a.kt-tab-title:hover {
        background-color: #00b2b6;
        color: #ffffff;
        border-color: #00b2b6;
        transform: translateY(-1px);
        box-shadow: 0 6px 12px rgba(0, 178, 182, 0.2);
    }

    /* Active Tab Button Style (keep filled teal with white text) */
    .dmax-tabs .kt-tabs-title-list li.kt-title-item.kt-tab-title-active a.kt-tab-title {
        background-color: #00b2b6;
        color: #ffffff;
        border-color: #00b2b6;
        box-shadow: 0 6px 12px rgba(0, 178, 182, 0.15);
    }

    /* Prepended Icon styling */
    .dmax-tabs .kt-tabs-title-list li.kt-title-item a.kt-tab-title i {
        color: #00b2b6;
        margin-right: 12px;
        font-size: 18px;
        transition: color 0.25s ease;
        width: 20px;
        /* text-align: center; */
    }

    /* Hover/Active states for icons */
    .dmax-tabs .kt-tabs-title-list li.kt-title-item a.kt-tab-title:hover i,
    .dmax-tabs .kt-tabs-title-list li.kt-title-item.kt-tab-title-active a.kt-tab-title i {
        color: #ffffff;
    }

    /* Right Side: Details card styling */
    .dmax-tabs .kt-tabs-content-wrap {
        border: 1px solid rgba(136, 215, 212, 0.35);
        border-radius: 20px;
        /* padding: 35px; */
        padding: 1rem;
        /* background-color: #ffffff; */
        box-shadow: 0 15px 35px rgba(11, 31, 51, 0.05);
        min-height: 380px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        box-sizing: border-box;
        margin: 0;
    }

    /* Individual tab panel inside content wrap */
    .dmax-tabs .kt-tabs-content-wrap .kt-tab-inner-content {
        padding: 0;
        border: none;
        background: none;
    }

    /* Inner elements sizing and centering */
    .dmax-tabs .kt-tabs-content-wrap .kt-tab-inner-content-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Feature Image */
    .dmax-tabs .kt-tabs-content-wrap .kt-tab-inner-content-inner figure {
        /* margin: 0 0 24px 0; */
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .dmax-tabs .kt-tabs-content-wrap .kt-tab-inner-content-inner figure img {
        max-height: 180px;
        width: auto;
        object-fit: contain;
        /* filter: drop-shadow(0 8px 16px rgba(11, 31, 51, 0.08)); */
    }

    /* Feature Description Paragraph */
    .dmax-tabs .kt-tabs-content-wrap .kt-tab-inner-content-inner p {
        font-size: 16px;
        line-height: 1.6;
        color: var(--global-palette5, #4b5d6e);
        max-width: 90%;
        margin: 0;
    }
}

/* Mobile & Tablet Accordion Enhancements */
@media (max-width: 767px) {
    /* Accordion titles */
    .dmax-tabs .kt-create-accordion div.kt-tabs-accordion-title {
        display: flex !important;
        padding: 0 !important; /* Move padding to inner anchor */
        background-color: #ffffff;
        border: 1px solid rgba(136, 215, 212, 0.4) !important;
        border-radius: 8px !important;
        margin-bottom: 8px !important;
        transition: all 0.2s ease !important;
    }

    /* Expand the click target to 100% width and height of the bar */
    .dmax-tabs .kt-create-accordion div.kt-tabs-accordion-title a.kt-tab-title {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        padding: 10px 16px !important; /* Proper touch padding on the anchor */
        color: #0b1f33 !important;
        font-weight: 700 !important;
        font-size: 1.1rem;
        text-decoration: none !important;
        box-sizing: border-box !important;
    }

    .dmax-tabs .kt-create-accordion .kt-tabs-accordion-title:hover, 
    .dmax-tabs .kt-create-accordion .kt-tabs-accordion-title.kt-tab-title-active {
        background-color: #00b2b6;
        border-color: #00b2b6;
    }

    .dmax-tabs .kt-create-accordion .kt-tabs-accordion-title:hover a.kt-tab-title, 
    .dmax-tabs .kt-create-accordion .kt-tabs-accordion-title.kt-tab-title-active a.kt-tab-title {
        color: #ffffff !important;
        background-color: #00b2b6 !important; /* Override Kadence inline bg:#ffffff */
    }

    /* Prepended Icon styling for mobile */
    .dmax-tabs .kt-create-accordion .kt-tabs-accordion-title i {
        color: #00b2b6 !important;
        margin-right: 12px !important;
        font-size: 16px !important;
        width: 20px !important;
        text-align: center !important;
    }

    .dmax-tabs .kt-create-accordion .kt-tabs-accordion-title:hover i,
    .dmax-tabs .kt-create-accordion .kt-tabs-accordion-title.kt-tab-title-active i {
        color: #ffffff !important;
    }

    /* Content panel under accordion title */
    .dmax-tabs .kt-create-accordion .kt-tab-inner-content {
        border: 1px solid rgba(136, 215, 212, 0.2) !important;
        border-radius: 8px !important;
        margin-bottom: 12px !important;
        padding: 20px !important;
        background-color: #fcfdfe !important;
    }

    /* Center layout for mobile content */
    .dmax-tabs .kt-tab-inner-content-inner {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .dmax-tabs .kt-tab-inner-content-inner figure {
        /* margin: 0 0 16px 0 !important; */
    }

    .dmax-tabs .kt-tab-inner-content-inner figure img {
        max-height: 140px !important;
        width: auto !important;
        mix-blend-mode: multiply;
    }

    .dmax-tabs .kt-tab-inner-content-inner p {
        font-size: 14px !important;
        line-height: 1.5 !important;
        color: var(--global-palette5, #4b5d6e) !important;
    }
}

/* ==========================================================================
   Section 3 (Clinical & Operational Tools) Spacing & Separator Spacers
   ========================================================================= */
.kb-row-layout-idflows3 > .kt-row-column-wrap {
    /* margin-top: 50px !important; */
}
.kb-row-layout-idflows3, #flows3 {
    padding-top: clamp(110px, 9vw, 150px) !important;
    /* padding-bottom: clamp(50px, 4.5vw, 90px) !important; */
    padding-bottom: calc(.5 * clamp(50px, 4.5vw, 90px)) !important;
}

/* ==========================================================================
   Section 5 (Smarter Dashboards) - Option A (Featured Spotlight Grid)
   ========================================================================= */
.dmax-dashboard-intro {
    max-width: 800px;
    margin-inline: auto;
    margin-top: 15px;
    margin-bottom: 35px;
    font-size: 18px !important;
    line-height: 1.55 !important;
    color: var(--global-palette5, #0b1f33) !important;
    text-align: center;
}

.dmax-dashboard-screenshot,
.dmax-dashboard-screenshot.wp-block-kadence-image:not(:last-child) {
    margin-bottom: 40px;
}

.dmax-dashboard-screenshot img,
.dmax-dashboard-screenshot .wp-block-kadence-image img {
    border-radius: 12px;
    /* box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.06); */
    display: block;
    width: 100%;
    height: auto;
}

.dmax-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    /* margin-top: 40px; */
    margin-bottom: 40px;
    box-sizing: border-box;
}

.dmax-dashboard-card {
    background-color: #bee9e73b;
    border: 1px solid rgba(136, 215, 212, 0.45);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dmax-dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(136, 215, 212, 0.18);
    border-color: rgba(136, 215, 212, 0.9);
}

.dmax-card-icon {
    font-size: 32px;
    margin-bottom: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dmax-card-icon i {
    --fa-primary-color: var(--global-palette1, #155492);
    --fa-secondary-color: var(--global-palette3, #3cbce6);
    --fa-secondary-opacity: 0.6;
}

.dmax-card-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--global-palette5, #0b1f33) !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    line-height: 1.3 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.dmax-card-desc {
    font-size: 15px !important;
    line-height: 1.5 !important;
    color: var(--global-palette5, #0b1f33) !important;
    margin-bottom: 0 !important;
}

.dmax-dashboard-summary {
    /* text-align: center; */
    /* margin-top: 40px; */
    /* margin-bottom: 20px; */
    /* font-size: 18px; */
    /* line-height: 1.4; */
    /* color: var(--global-palette5, #0b1f33); */
}

/* Responsive Scaling for Desktop */
@media (min-width: 768px) {
    .dmax-dashboard-intro {
        font-size: 22px !important;
        margin-top: 20px;
        margin-bottom: 50px;
    }
    
    .dmax-dashboard-screenshot {
        margin-bottom: 50px;
    }

    .dmax-dashboard-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        margin-top: 50px;
        margin-bottom: 50px;
    }

    .dmax-dashboard-card {
        padding: 35px 30px;
    }

    .dmax-card-icon {
        font-size: 38px;
        margin-bottom: 20px;
    }

    .dmax-card-title {
        font-size: 21px !important;
        margin-bottom: 12px !important;
    }

    .dmax-card-desc {
        font-size: 16px !important;
    }

    .dmax-dashboard-summary {
        /* margin-top: 50px; */
        font-size: 22px;
    }
}

/* ==========================================================================
   Section 6 (Testimonials) - Static Card Grid & Flow Theme Accent
   ========================================================================= */

.dmax-flow-testimonials {
    /* padding-top: clamp(80px, 7vw, 120px) !important; */
    /* padding-bottom: clamp(80px, 7vw, 120px) !important; */
}

/* ─ Card: horizontal layout — photo LEFT, content RIGHT ─ */
.dmax-flow-testimonials .kt-testimonial-item-wrap,
.dmax-flow-testimonials div.wp-block-kadence-testimonials div.kt-testimonial-item-wrap {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
  text-align: left;
  /* reset global 12-testimonials.css card styles */
  max-width: 820px;
  padding: clamp(28px, 4vw, 48px) clamp(24px, 3vw, 40px);
  /* background: #bee9e73b; */
  /* background: rgba(136, 215, 212, 0.45); */
  background: #f7fbfd;
  border: 1px solid rgba(136, 215, 212, 0.45); /* Custom brand teal border */
  box-shadow: 0 10px 30px rgba(136, 215, 212, 0.06);
  border-radius: 16px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s ease;
}

/* Hover Accent Transition */
.dmax-flow-testimonials .kt-testimonial-item-wrap:hover,
.dmax-flow-testimonials div.wp-block-kadence-testimonials div.kt-testimonial-item-wrap:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 178, 182, 0.7); /* Glow in brighter brand teal */
  box-shadow: 0 16px 36px rgba(136, 215, 212, 0.16);
}

/* Photo column — fixed width, pulled left via order */
.dmax-flow-testimonials .kt-testimonial-meta-wrap {
  order: -1 !important;
  flex-shrink: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 140px !important;
  gap: 10px !important;
}

/* Content column — takes remaining space */
.dmax-flow-testimonials .kt-testimonial-text-wrap {
  flex: 1 !important;
  min-width: 0;
}

/* Photo: circular, teal border */
.dmax-flow-testimonials .kt-testimonial-media-inner-wrap {
  border-radius: 100% !important;
  overflow: hidden !important;
  width: 120px !important;
  height: 120px !important;
  margin: 0 !important;
  border: 3px solid #88d7d4 !important; /* Flow light teal */
  transition: border-color 0.3s ease;
}

.dmax-flow-testimonials .kt-testimonial-item-wrap:hover .kt-testimonial-media-inner-wrap {
  border-color: #00b2b6 !important; /* Flow bright teal on hover */
}

.dmax-flow-testimonials .kadence-testimonial-image-intrinsic {
  padding-bottom: 100%;
}

.dmax-flow-testimonials .kt-testimonial-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Name / occupation: centered under photo */
.dmax-flow-testimonials .kt-testimonial-meta-name-wrap {
  text-align: center !important;
}

.dmax-flow-testimonials .kt-testimonial-name {
  color: #00b2b6 !important; /* Flow teal */
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

.dmax-flow-testimonials .kt-testimonial-occupation {
  color: #4b5d6e !important;
  font-size: 0.85rem !important;
}

/* Stars: gold, above quote */
.dmax-flow-testimonials .kt-testimonial-rating-wrap {
  color: #ffd700 !important;
  margin-bottom: 14px !important;
}

/* Quote text */
.dmax-flow-testimonials .kt-testimonial-content {
  color: var(--global-palette5, #4b5d6e) !important;
  font-size: clamp(15px, 1.6vw, 18px) !important;
  line-height: 1.65 !important;
  font-style: italic !important;
  margin-bottom: 0 !important;
  font-weight: 500 !important;
}

/* Mobile: stack vertically, photo on top centered */
@media (max-width: 767px) {
  .dmax-flow-testimonials .kt-testimonial-item-wrap {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 20px !important;
  }
  .dmax-flow-testimonials .kt-testimonial-meta-wrap {
    width: auto !important;
    order: -1 !important;
  }
  .dmax-flow-testimonials .kt-testimonial-media-inner-wrap {
    width: 100px !important;
    height: 100px !important;
  }
  .dmax-flow-testimonials .kt-testimonial-text-wrap {
    text-align: center !important;
  }
}


/* ── S6: Choose Flow columns (Dentists & Managers) ── */
.dmax-flow-choose-row {
  margin-top: 50px !important;
}

.dmax-flow-choose-col > .kt-inside-inner-col {
  /* background: #ffffff; */
  background: #f7fbfd;
  border: 1px solid rgba(136, 215, 212, 0.45);
  border-radius: 16px;
  padding: clamp(24px, 3.5vw, 40px);
  box-shadow: 0 10px 30px rgba(136, 215, 212, 0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s ease;
}

.dmax-flow-choose-col:hover > .kt-inside-inner-col {
  transform: translateY(-6px);
  border-color: rgba(0, 178, 182, 0.7);
  box-shadow: 0 16px 36px rgba(136, 215, 212, 0.16);
}

.dmax-flow-choose-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.dmax-flow-choose-icon {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
  margin-bottom: 0;
}

.dmax-flow-choose-icon i {
  --fa-primary-color: #00b2b6;
  --fa-secondary-color: #88d7d4;
  --fa-secondary-opacity: 0.55;
}

.dmax-flow-choose-title {
  font-size: clamp(20px, 2.5vw, 24px) !important;
  font-weight: 800 !important;
  color: var(--global-palette5, #0b1f33) !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  line-height: 1.2 !important;
}

.dmax-flow-choose-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 24px 0 !important;
  flex-grow: 1;
}

.dmax-flow-choose-list li {
  position: relative;
  padding-left: 28px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--global-palette5, #4b5d6e);
  margin-bottom: 15px;
}

.dmax-flow-choose-list li:last-child {
  margin-bottom: 0;
}

.dmax-flow-choose-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  color: #00b2b6;
  font-weight: 900;
  font-size: 18px;
}

.dmax-flow-choose-text {
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: var(--global-palette5, #4b5d6e) !important;
  margin: 0 !important;
  font-weight: 600;
  border-top: 1px dashed rgba(136, 215, 212, 0.5);
  padding-top: 15px;
}

/* ==========================================================================
   Section 7 (Tech Fatigue) & Section 8 (Office Alignment Video)
   ========================================================================= */

/* Section spacing and transitions */
.dmax-flow-tech-fatigue {
    /* padding-top: clamp(60px, 5vw, 100px) !important; */
    /* padding-bottom: clamp(40px, 3.5vw, 60px) !important; */
}

.dmax-flow-video-section {
    padding-top: clamp(40px, 3.5vw, 60px) !important;
    /* padding-bottom: clamp(60px, 5vw, 100px) !important; */
}

/* Transition text highlight */
.dmax-transition-text {
    font-size: 1.1rem !important;
    font-weight: 700;
    color: #00b2b6 !important; /* Standout teal transition */
    margin-top: 25px !important;
}

/* Infographic Image Styling */
.dmax-flow-infographic-img {
    max-width: 100%;
    height: auto;
}

.dmax-flow-infographic-img img {
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(11, 31, 51, 0.06);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dmax-flow-infographic-img img:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(11, 31, 51, 0.12);
}

/* Centered content inside Section 8 video block */
.dmax-video-intro-text {
    max-width: 800px;
    margin-inline: auto;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    color: var(--global-palette5, #4b5d6e) !important;
    margin-bottom: 20px !important;
}

.dmax-video-strong-text {
    max-width: 800px;
    margin-inline: auto;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    color: var(--global-palette5, #4b5d6e) !important;
    margin-bottom: 40px !important;
}

/* Responsive 16:9 Video Wrapper */
.dmax-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 960px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(11, 31, 51, 0.15);
    border: 1px solid rgba(136, 215, 212, 0.3);
}

.dmax-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .dmax-flow-infographic-col {
        margin-top: 30px !important;
    }
}

/* ==========================================================================
   Section 9 (Pricing Grid & Cards Redesign)
   ========================================================================= */

.dmax-flow-pricing-section {
    padding-top: clamp(60px, 6vw, 110px) !important;
    padding-bottom: clamp(60px, 6vw, 110px) !important;
}

/* Grid row margin separation */
.dmax-pricing-grid-row {
    margin-top: 40px !important;
    margin-bottom: 30px !important;
}

/* Base Pricing Card wrapper */
.dmax-flow-pricing-card > .kt-inside-inner-col {
    background: #ffffff;
    border: 1px solid rgba(136, 215, 212, 0.45);
    border-radius: 16px;
    padding: 35px 24px 30px 24px !important;
    box-shadow: 0 10px 30px rgba(136, 215, 212, 0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
    box-sizing: border-box;
}

.dmax-flow-pricing-card > .kt-inside-inner-col:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 178, 182, 0.7);
    box-shadow: 0 16px 36px rgba(136, 215, 212, 0.14);
}

/* Featured / Most Popular styling for Executive Card */
.dmax-flow-pricing-card.dmax-pricing-popular > .kt-inside-inner-col {
    border: 2px solid #00b2b6 !important;
    position: relative;
    padding-top: 55px !important; /* Spacing for the badge */
    box-shadow: 0 15px 35px rgba(0, 178, 182, 0.12) !important;
}

.dmax-flow-pricing-card.dmax-pricing-popular > .kt-inside-inner-col::before {
    content: "MOST POPULAR";
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    background: #00b2b6;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 8px 0;
    text-align: center;
    text-transform: uppercase;
    border-radius: 14px 14px 0 0;
}

/* Card titles, prices, and subheadings */
.dmax-pricing-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: var(--global-palette5, #0b1f33) !important;
    margin: 0 0 10px 0 !important;
}

.dmax-pricing-price {
    font-size: 44px !important;
    font-weight: 800 !important;
    color: #00b2b6 !important; /* Standard brand teal price text */
    margin: 0 0 4px 0 !important;
}

.dmax-pricing-period {
    font-size: 14px !important;
    color: #757575 !important;
    margin-bottom: 25px !important;
}

/* Dense Checklist styling */
.dmax-pricing-features {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 0 30px 0 !important;
}

.dmax-pricing-features li {
    position: relative;
    padding-left: 24px;
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 10px;
    color: var(--global-palette5, #4b5d6e);
    text-align: left;
}

.dmax-pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: -1px;
    color: #00b2b6;
    font-weight: 900;
    font-size: 15px;
}

/* Equal bottom-aligned buttons via flexbox auto-margin */
.dmax-pricing-btn-wrap {
    margin-top: auto !important;
    padding-top: 15px;
    width: 100%;
}

.dmax-pricing-btn-wrap a.kb-button {
    display: block !important;
    width: 100% !important;
    border-radius: 30px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    padding: 12px 20px !important;
    background-color: #00b2b6 !important;
    color: #ffffff !important;
    border-color: #00b2b6 !important;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.dmax-pricing-btn-wrap a.kb-button:hover {
    background-color: #00a2a6 !important;
    border-color: #00a2a6 !important;
    transform: translateY(-2px);
}

/* Polished static discount text note */
.dmax-pricing-note-wrap {
    max-width: 800px;
    margin: 40px auto 0 auto;
    background: #f7fbfd;
    border-radius: 12px;
    border: 1px solid rgba(136, 215, 212, 0.35);
    padding: 20px 24px;
    text-align: center;
    box-shadow: inset 0 1px 3px rgba(11, 31, 51, 0.02);
}

.dmax-pricing-note-text {
    font-size: 15px !important;
    color: var(--global-palette5, #4b5d6e) !important;
    margin-bottom: 8px !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.dmax-pricing-note-text i {
    color: #00b2b6;
    font-size: 18px;
}

.dmax-pricing-note-sub {
    font-size: 13.5px !important;
    color: #757575 !important;
    margin: 0 !important;
}

.dmax-pricing-note-sub a {
    color: #00b2b6 !important;
    font-weight: 600;
    text-decoration: underline;
}

/* Mobile Responsiveness styling */
@media (max-width: 767px) {
    .dmax-flow-pricing-card {
        margin-bottom: 24px !important;
    }
    .dmax-flow-pricing-card:last-child {
        margin-bottom: 0 !important;
    }
}

/* ==========================================================================
   Section 9: More about Flow (Dynamic Blog Posts Rebuild)
   ========================================================================= */

/* Grid spacing and layout */
.kb-posts-id-flows8posts {
    margin-top: 40px !important;
    gap: 20px !important;
}

/* Desktop: Force 5-column grid layout since PHP defaults to 3 columns for 5 */
@media (min-width: 1025px) {
    .kb-posts-id-flows8posts {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }
}

/* Tablet: 2 columns */
@media (max-width: 1024px) and (min-width: 768px) {
    .kb-posts-id-flows8posts {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Mobile: 1 column */
@media (max-width: 767px) {
    .kb-posts-id-flows8posts {
        grid-template-columns: 1fr !important;
    }
    .kb-posts-id-flows8posts .kb-post-list-item {
        margin-bottom: 20px;
    }
    .kb-posts-id-flows8posts .kb-post-list-item:last-child {
        margin-bottom: 0;
    }
}

/* Boxed Card styling */
.kb-posts-id-flows8posts .entry.loop-entry {
    background: #ffffff !important;
    border: 1px solid rgba(136, 215, 212, 0.3) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(136, 215, 212, 0.03) !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
    box-sizing: border-box;
    overflow: hidden;
}

.kb-posts-id-flows8posts .entry.loop-entry:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 178, 182, 0.6) !important;
    box-shadow: 0 12px 28px rgba(136, 215, 212, 0.12) !important;
}

/* Thumbnail (Image Bleeding) */
.kb-posts-id-flows8posts .post-thumbnail {
    margin: 0 !important;
    display: block;
    width: 100%;
    overflow: hidden;
}
.wp-site-blocks .kb-posts-id-flows8posts .post-thumbnail.kadence-thumbnail-ratio-3-2 {
    padding-bottom: 66.67%;
}

.kb-posts-id-flows8posts .post-thumbnail img {
    border-radius: 11px 11px 0 0 !important;
    width: 100% !important;
    aspect-ratio: 16/10 !important;
    object-fit: cover !important;
    transition: transform 0.4s ease;
}

.kb-posts-id-flows8posts .entry.loop-entry:hover .post-thumbnail img {
    transform: scale(1.05);
}

/* Content wrapper padding adjustments */
.kb-posts-id-flows8posts .entry-content-wrap {
    padding: 18px 16px 20px 16px !important;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Date / Meta styling */
.kb-posts-id-flows8posts .entry-meta {
    order: -1; /* Place date above title */
    margin: 0 0 10px 0 !important;
    border: none !important;
    padding: 0 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #00b2b6 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kb-posts-id-flows8posts .entry-meta .posted-on {
    display: block;
}

/* Title styling */
.kb-posts-id-flows8posts .entry-title {
    font-size: 15px !important;
    line-height: 1.45 !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.kb-posts-id-flows8posts .entry-title a {
    color: var(--global-palette5, #0b1f33) !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.kb-posts-id-flows8posts .entry-title a:hover {
    color: #00b2b6 !important;
}


/* Section 10? form */
.gform_heading {
    display: none;
}

div#gform_wrapper_10 {
    background-color: #88d7d4;
    background: #f7fbfd;
    padding: clamp(24px, 3.5vw, 40px);
    /* color: white; */
    max-width: 820px;
    margin: 2rem auto 0;
    border: 1px solid rgba(136, 215, 212, 0.45); /* Custom brand teal border */
    box-shadow: 0 10px 30px rgba(136, 215, 212, 0.06);
    border-radius: 1rem;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s ease;
}

div#gform_wrapper_10:hover {
transform: translateY(-6px);
    border-color: rgba(0, 178, 182, 0.7);
    box-shadow: 0 16px 36px rgba(136, 215, 212, 0.16);
}

.gform_wrapper.gravity-theme div.gform_footer {
    padding-bottom: 0;
}

.gform-footer button,
input#gform_submit_button_10 {
    background: rgb(0, 178, 182);
    border-color: #00b2b6;
    margin-bottom: 0;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

/* Anchor scroll offset — keep #contact clear of the sticky header.
   Kadence JS anchor scroll is disabled on this page (body.no-anchor-scroll)
   so native scroll-margin-top handles it with per-breakpoint values. */
#contact {
    scroll-margin-top: 110px; /* mobile */
}
@media (min-width: 1024px) {
    #contact {
        scroll-margin-top: 100px; /* desktop — taller sticky header */
    }
}