/* Classic Sportmed homepage: shared gutters and responsive widget layouts. */
body.home .elementor { --sm-home-gutter: clamp(16px, 3vw, 28px); }
body.home .elementor :is(.sport-services-container,.sport-doctors-preview-container,.sport-steps-container,.sportmed-reviews-container,.sportmed-gallery-container,.sportmed-gallery-section.container,.sportmed-faq-container,.sm-about-video__container) {
    width: calc(100% - 2 * var(--sm-home-gutter));
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 0 !important;
    min-width: 0;
    box-sizing: border-box;
}
body.home .elementor :is(.sport-services-section,.sport-doctors-preview-section,.sport-steps-section,.sportmed-reviews-section,.sportmed-gallery-section,.sportmed-faq-section,.sm-about-video) { padding-block: clamp(36px, 5vw, 64px); }
body.home .elementor :is(.sport-section-header,.sportmed-reviews-header) { margin-bottom: clamp(24px, 3vw, 36px); }
body.home .elementor :is(.sport-section-header h2,.sportmed-reviews-title,.sportmed-gallery-title,.sportmed-faq-title,.sm-about-video__title) {
    font-size: clamp(1.5rem, 2.6vw, 2.25rem) !important;
    line-height: 1.3;
    overflow-wrap: anywhere;
    text-wrap: pretty;
}
body.home .elementor :is(.sport-section-header p,.sport-service-mini-card p,.sport-step-item p,.sportmed-review-text,.sm-about-video__text) { font-size: 1rem !important; line-height: 1.7; }
body.home .elementor :is(.sport-service-mini-grid,.sport-doctors-preview-grid,.sport-stats-grid,.sportmed-reviews-grid,.sportmed-gallery-grid,.scm-inner,.sm-about-video__container) > * { min-width: 0; }
body.home .elementor :is(.sport-service-mini-card,.sportmed-review-card,.sport-dr-preview-info,.scm-form-card,.sportmed-faq-question,.sportmed-faq-answer) { overflow-wrap: anywhere; }
body.home .elementor .sport-stats-wrapper { width: calc(100% - 2 * var(--sm-home-gutter)); max-width: 1200px; margin: 24px auto 0; padding: 0; }
body.home .elementor .sport-stats-grid { width: 100%; max-width: none; gap: 16px; }
body.home .elementor .sport-stat-card { padding: 24px 16px; }
body.home .elementor .sport-stat-card h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
body.home .elementor .sport-service-mini-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
body.home .elementor .sport-service-mini-card { padding: clamp(22px, 3vw, 36px); height: 100%; }
body.home .elementor .sport-service-mini-card h4 { font-size: clamp(1.125rem, 1.7vw, 1.375rem); line-height: 1.4; }
body.home .elementor .sport-doctors-preview-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),350px)); justify-content: center; gap: 24px; }
body.home .elementor .sport-dr-preview-card { width: 100%; height: 400px; }
body.home .elementor .sport-dr-preview-info { padding: 48px 20px 22px; }
body.home .elementor .sport-dr-preview-info h4 { line-height: 1.4; color: #fff; }
body.home .elementor .sport-dr-preview-info p { line-height: 1.5; }
body.home .elementor .sport-preview-btn-wrap { margin-top: 28px; }
body.home .elementor .sport-btn-outline-dark { max-width: 100%; white-space: normal; line-height: 1.5; min-height: 46px; letter-spacing: .04em; }
body.home .elementor .sport-steps-row { margin-top: 32px; }
body.home .elementor .sport-step-item { min-width: 0; }
body.home .elementor .sportmed-reviews-title { flex: 1 1 360px; }
body.home .elementor .sportmed-review-card { padding: 24px; }
body.home .elementor .sportmed-gallery-item { padding: 0; border: 0; aspect-ratio: 4/3; height: auto !important; }
body.home .elementor .sportmed-gallery-item img { height: 100%; }
body.home .elementor .sm-about-video__container { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(24px,4vw,48px); }
body.home .elementor .sm-about-video__media { min-width: 0; }
body.home .elementor .sportmed-contact-map-section { padding: clamp(36px,5vw,64px) var(--sm-home-gutter); }
body.home .elementor .sportmed-contact-map-section .scm-inner { width: 100%; max-width: 1200px; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; }
body.home .elementor .sportmed-contact-map-section .scm-inner.container { padding-inline: 0 !important; }
body.home .elementor .scm-form-card { padding: clamp(22px,3vw,36px); }
body.home .elementor .sportmed-contact-map-section :is(.scm-form-sub,.scm-contact-chip,.wpcf7-form label) { font-size: .9375rem; line-height: 1.6; }
body.home .elementor .sportmed-contact-map-section :is(input:not([type="hidden"]),select,textarea) { min-width: 0; max-width: 100%; font-size: 1rem; min-height: 46px; }
body.home .elementor .sportmed-contact-map-section textarea { min-height: 112px; resize: vertical; }
body.home .elementor .sportmed-contact-map-section .wpcf7-form p { max-width: 100%; }
/* CF7 wraps the paired field spans inside one paragraph. Lay out that paragraph. */
body.home .elementor .sportmed-contact-map-section .scm-row-2 > p { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
body.home .elementor .sportmed-contact-map-section .scm-field-group { display: block; min-width: 0; }
body.home .elementor .sportmed-faq-question { min-height: 52px; font-size: 1rem; line-height: 1.5; text-align: left; }
body.home .elementor .sportmed-faq-icon { flex-shrink: 0; }
body.home .elementor .sportmed-faq-answer { font-size: 1rem; line-height: 1.7; }

@media (max-width: 1024px) {
    body.home .elementor .sport-service-mini-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    body.home .elementor .sport-steps-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
    body.home .elementor .sport-step-item::after { display: none; }
}
@media (max-width: 900px) {
    body.home .elementor .sm-about-video__container { grid-template-columns: minmax(0,1fr); }
    body.home .elementor .sportmed-contact-map-section .scm-inner { grid-template-columns: minmax(0,1fr); }
    body.home .elementor .sportmed-contact-map-section :is(.scm-map-col,.scm-map-col iframe) { min-height: 300px; }
}
@media (max-width: 767px) {
    body.home .elementor .sport-hero.sm-hero-announcements { padding-block: 44px 28px; }
    body.home .elementor .sm-hero-announcements .sport-hero-content { width: calc(100% - 2 * var(--sm-home-gutter)); gap: 24px; }
    body.home .elementor .sm-hero-announcements .sport-hero-text h1 { font-size: clamp(1.75rem,6.2vw,2.35rem); line-height: 1.2; letter-spacing: -.02em; }
    body.home .elementor .sm-hero-announcements .sport-hero-text > p { font-size: 1rem; line-height: 1.7; margin-bottom: 22px; }
    body.home .elementor .sm-hero-announcements .sport-hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
    body.home .elementor .sm-hero-announcements .sport-hero-buttons > a { flex: 1 1 140px; text-align: center; font-size: .8125rem; min-height: 46px; padding: 12px 14px; }
    body.home .elementor .sport-stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
    body.home .elementor .sport-stat-card { padding: 20px 12px; border-top-width: 3px; }
    body.home .elementor .sport-stat-card p { font-size: .8125rem; line-height: 1.5; }
    body.home .elementor .sport-service-mini-grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
    body.home .elementor .sport-service-mini-card .svc-icon { font-size: 2rem; margin-bottom: 14px; }
    body.home .elementor .sport-dr-preview-card { height: clamp(330px,95vw,420px); }
    body.home .elementor .sport-doctors-preview-container > br { display: none; }
    body.home .elementor .sportmed-reviews-grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
    body.home .elementor .sportmed-reviews-header { align-items: flex-start; gap: 16px; }
    body.home .elementor .sportmed-gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
    body.home .elementor .sport-steps-row { grid-template-columns: minmax(0,1fr); gap: 24px; }
    body.home .elementor .sport-step-item { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 4px 16px; text-align: left; align-items: start; }
    body.home .elementor .sport-step-number { grid-row: 1/3; width: 48px; height: 48px; margin: 0; font-size: 1.25rem; box-shadow: none; }
    body.home .elementor .sport-step-item h4 { font-size: 1.125rem; margin: 0; line-height: 1.4; }
    body.home .elementor .sport-step-item p { grid-column: 2; }
    body.home .elementor .sportmed-faq-question { padding: 16px; gap: 12px; }
    body.home .elementor .sportmed-faq-answer { padding-inline: 16px; }
    body.home .elementor .sportmed-contact-map-section .scm-row-2 { grid-template-columns: minmax(0,1fr); }
    body.home .elementor .sportmed-contact-map-section .scm-row-2 > p { grid-template-columns: minmax(0,1fr); }
    body.home .elementor .sportmed-contact-map-section .scm-map-col { border-radius: 14px; }
}
@media (max-width: 359px) {
    body.home .elementor .sport-stat-card { padding: 18px 8px; }
    body.home .elementor .sportmed-review-card { padding: 20px; }
}
@media (max-width: 600px) {
    body.home .elementor .sportmed-contact-map-section .scm-form-card { padding: 24px 16px; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    body.home .elementor :is(.sport-service-mini-card,.sport-dr-preview-card,.sport-dr-preview-img,.sportmed-gallery-item img) { transition: none; transform: none; }
}
