/* Keep the configured desktop slider sizes; fit headings to phone screens. */
.banner_slider_1 .slide__content--headings h2 span {
    font-size: var(--mindfit-slide-size, 50px);
}
.widget-search .search-form button { display: flex; align-items: center; justify-content: center; padding: 0; min-width: 44px; min-height: 44px; }
@media (max-width: 1199px) {
    .site-main h1, .site-main h2, .site-main h3, .site-main h5,
    .page-title-heading, .breadcrumb-wrapper { overflow-wrap: anywhere; }
    .mindfit-service-copy { font-size: 16px !important; line-height: 1.65 !important; }
    .mindfit-contact-callout .title-header { width: 100% !important; }
    .mindfit-contact-callout { padding: 64px 0 !important; }
    .mindfit-contact-callout .title { line-height: 1.45 !important; }
    .mindfit-about-summary { max-height: none !important; overflow: visible !important; }
    .ttm-blog-single-content h2 { font-size: 28px; line-height: 1.35; }
    .ttm-blog-single-content img { max-width: 100%; height: auto; }
    #contactform input, #contactform textarea, .newsletter-form input,
    .widget-search input { font-size: 16px; }
    .widget-search .search-form button { display: flex; align-items: center; justify-content: center; padding: 0; min-width: 44px; min-height: 44px; }
    .footer-nav-menu a { display: inline-block; padding-top: 10px; padding-bottom: 10px; }
}
@media (max-width: 767px) {
    .banner_slider_1 .slide__content--headings h2 span { font-size: clamp(25px, 7.5vw, 34px) !important; }
    .banner_slider_1 .slide__content--headings h2 { line-height: 1.2 !important; margin-bottom: 24px; }
    .banner_slider_1 .slide__content--headings h3 { overflow-wrap: anywhere; }
    .ttm-blog-single-content h2 { font-size: 25px; }
    .first-footer > .container > .row { margin-left: 0; margin-right: 0; }
}
@media (max-width: 575px) {
    .welcome-section .mis00 { flex: 0 0 100%; max-width: 100%; }
    .welcome-section .mis00 h5 { padding: 12px 14px; min-height: 44px; margin-bottom: 6px; border-bottom: 1px solid #eee6d9; }
    .welcome-section [id^="mis"][id$="t"] { padding: 0 15px; }
}

/* Homepage percentages: compact cards for mobile and stacked tablet layouts. */
@media (max-width: 991px) {
    .welcome-section .mindfit-stats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; width: calc(100% - 24px); margin: 0 12px !important; padding: 0; }
    .welcome-section .mindfit-stats .mindfit-stat { width: 100%; max-width: 100%; margin: 0; padding: 22px 20px !important; background: #faf8f3; border: 1px solid #ebe3d3; border-radius: 14px; box-shadow: 0 4px 14px rgba(57,48,30,.035); }
    .welcome-section .mindfit-stat .featured-content-inner { margin: 0; padding: 0; border: 0; }
    .welcome-section .mindfit-stat .featured-content { display: grid; grid-template-columns: 86px minmax(0,1fr); align-items: center; gap: 18px; width: 100%; margin: 0; padding: 0; }
    .welcome-section .mindfit-stat .featured-title, .welcome-section .mindfit-stat .featured-desc { display: block; float: none; width: auto; max-width: none; min-width: 0; margin: 0; padding: 0; border: 0; }
    .welcome-section .mindfit-stat .featured-title h3 { margin: 0 !important; padding: 0; font-size: 42px; line-height: 1.1; font-weight: 600; color: #9b7b37; letter-spacing: -1.5px; white-space: nowrap; overflow-wrap: normal; word-break: normal; font-variant-numeric: lining-nums tabular-nums; }
    .welcome-section .mindfit-stat .featured-desc p { margin: 0 !important; padding: 0; font-size: 15px; line-height: 1.7; color: #55534e; text-align: left; }
    .welcome-section .mindfit-stat::before, .welcome-section .mindfit-stat::after, .welcome-section .mindfit-stat .featured-content::before, .welcome-section .mindfit-stat .featured-content::after { display: none; }
}
@media (max-width: 359px) {
    .welcome-section .mindfit-stats .mindfit-stat { padding: 20px 16px !important; }
    .welcome-section .mindfit-stat .featured-content { grid-template-columns: 76px minmax(0,1fr); gap: 14px; }
    .welcome-section .mindfit-stat .featured-title h3 { font-size: 38px; }
}
