/*
Theme Name: InQ Base SRM Child
Template: inq-basetheme-3105
Version: 1.0.0
*/

p {
    margin: 0;
}

/*
 * SRM programme atlas: retain the approved Drive photography while giving
 * every row an individual composition instead of six identical image strips.
 */
:is(body.page-id-6, .elementor-6) :is(
    .elementor-element-11d5cdd,
    .elementor-element-11f0def,
    .elementor-element-120bf01,
    .elementor-element-1227013,
    .elementor-element-1242125,
    .elementor-element-125d237
) {
    flex: 0 0 auto !important;
    overflow: hidden !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    box-shadow: 0 14px 34px rgba(18, 63, 79, 0.12) !important;
}

/* Wide editorial crop. */
:is(body.page-id-6, .elementor-6) .elementor-element-11d5cdd {
    width: 390px !important;
    min-height: 150px !important;
    border-radius: 22px 6px 22px 6px !important;
    background-image: url("../../uploads/CHANGE-THESE-6-PROGRAMME-IMAGES/srm-stroke-rehabilitation-hero.webp") !important;
    background-position: left center !important;
}

/* Taller soft-arch crop. */
:is(body.page-id-6, .elementor-6) .elementor-element-11f0def {
    width: 305px !important;
    min-height: 184px !important;
    border-radius: 92px 20px 20px 20px !important;
    background-image: url("../../uploads/CHANGE-THESE-6-PROGRAMME-IMAGES/srm-brain-injury-rehabilitation-hero.webp") !important;
    background-position: 36% center !important;
}

/* Low panoramic crop with a right-hand focal point. */
:is(body.page-id-6, .elementor-6) .elementor-element-120bf01 {
    width: 430px !important;
    min-height: 128px !important;
    border-radius: 8px 38px 8px 38px !important;
    background-image: url("../../uploads/CHANGE-THESE-6-PROGRAMME-IMAGES/srm-spinal-cord-injury-rehabilitation-hero.webp") !important;
    background-position: right center !important;
}

/* Portrait-led crop to break the horizontal rhythm. */
:is(body.page-id-6, .elementor-6) .elementor-element-1227013 {
    width: 318px !important;
    min-height: 196px !important;
    border-radius: 20px 96px 20px 20px !important;
    background-image: url("../../uploads/CHANGE-THESE-6-PROGRAMME-IMAGES/srm-orthopaedic-rehabilitation-hero.webp") !important;
    background-position: 24% center !important;
}

/* Rounded capsule crop. */
:is(body.page-id-6, .elementor-6) .elementor-element-1242125 {
    width: 405px !important;
    min-height: 142px !important;
    border-radius: 999px !important;
    background-image: url("../../uploads/CHANGE-THESE-6-PROGRAMME-IMAGES/srm-cardiac-rehabilitation-hero.webp") !important;
    background-position: center 42% !important;
}

/* Asymmetric closing card with the subject weighted right. */
:is(body.page-id-6, .elementor-6) .elementor-element-125d237 {
    width: 345px !important;
    min-height: 188px !important;
    border-radius: 56px 18px 56px 18px !important;
    background-image: url("../../uploads/CHANGE-THESE-6-PROGRAMME-IMAGES/srm-geriatric-rehabilitation-hero.webp") !important;
    background-position: 72% center !important;
}

:is(body.page-id-6, .elementor-6) :is(
    .elementor-element-11f89ab,
    .elementor-element-122ebcf,
    .elementor-element-1264df3
) {
    background-color: #ffffff !important;
}

:is(body.page-id-6, .elementor-6) :is(
    .elementor-element-11dd899,
    .elementor-element-1213abd,
    .elementor-element-1249ce1
) {
    background-color: #eef8fa !important;
}

@media (max-width: 1100px) {
    :is(body.page-id-6, .elementor-6) :is(
        .elementor-element-11d5cdd,
        .elementor-element-11f0def,
        .elementor-element-120bf01,
        .elementor-element-1227013,
        .elementor-element-1242125,
        .elementor-element-125d237
    ) {
        width: 32vw !important;
        min-width: 260px !important;
    }
}

/*
 * Programme atlas — mobile art direction.
 * Elementor stretches nested containers on narrow screens, which previously
 * flattened every photograph into the same banner. Keep each image visibly
 * distinct and alternate its position across the page.
 */
@media (max-width: 767px) {
    :is(body.page-id-6, .elementor-6) :is(
        .elementor-element-11d5cdd,
        .elementor-element-11f0def,
        .elementor-element-120bf01,
        .elementor-element-1227013,
        .elementor-element-1242125,
        .elementor-element-125d237
    ) {
        flex-grow: 0 !important;
        flex-shrink: 0 !important;
        min-width: 0 !important;
        max-width: none !important;
        background-size: cover !important;
    }

    :is(body.page-id-6, .elementor-6) .elementor-element-11d5cdd {
        width: 92% !important;
        min-height: 220px !important;
        align-self: flex-start !important;
        margin-right: 8% !important;
        border-radius: 8px 64px 8px 8px !important;
    }

    :is(body.page-id-6, .elementor-6) .elementor-element-11f0def {
        width: 74% !important;
        min-height: 285px !important;
        align-self: flex-end !important;
        margin-left: 26% !important;
        border-radius: 120px 18px 18px 18px !important;
        background-position: 66% center !important;
    }

    :is(body.page-id-6, .elementor-6) .elementor-element-120bf01 {
        width: 96% !important;
        min-height: 180px !important;
        align-self: flex-start !important;
        margin-right: 4% !important;
        border-radius: 8px 8px 72px 8px !important;
        background-position: 64% center !important;
    }

    :is(body.page-id-6, .elementor-6) .elementor-element-1227013 {
        width: 78% !important;
        min-height: 270px !important;
        align-self: flex-end !important;
        margin-left: 22% !important;
        border-radius: 18px 110px 18px 18px !important;
        background-position: 64% center !important;
    }

    :is(body.page-id-6, .elementor-6) .elementor-element-1242125 {
        width: 88% !important;
        min-height: 205px !important;
        align-self: flex-start !important;
        margin-right: 12% !important;
        border-radius: 999px !important;
        background-position: 70% center !important;
    }

    :is(body.page-id-6, .elementor-6) .elementor-element-125d237 {
        width: 76% !important;
        min-height: 280px !important;
        align-self: flex-end !important;
        margin-left: 24% !important;
        border-radius: 80px 16px 80px 16px !important;
        background-position: 72% center !important;
    }
}

/* The source files are physically cropped from the marked red-line position. */
:is(body.page-id-6, .elementor-6) :is(
    .elementor-element-11d5cdd,
    .elementor-element-11f0def,
    .elementor-element-120bf01,
    .elementor-element-1227013,
    .elementor-element-1242125,
    .elementor-element-125d237
) {
    background-size: cover !important;
    background-position: right center !important;
}

/* Keep each care-option page on its updated hero instead of the old shared image. */
.elementor-650 .elementor-element.elementor-element-f87d866:not(.elementor-motion-effects-element-type-background),
.elementor-650 .elementor-element.elementor-element-f87d866 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
    background-image: url("../../uploads/2026/09/srm-inpatient-rehabilitation-hero.webp") !important;
}

.elementor-651 .elementor-element.elementor-element-f87d866:not(.elementor-motion-effects-element-type-background),
.elementor-651 .elementor-element.elementor-element-f87d866 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
    background-image: url("../../uploads/2026/09/srm-outpatient-rehabilitation-hero.webp") !important;
}

.elementor-652 .elementor-element.elementor-element-f87d866:not(.elementor-motion-effects-element-type-background),
.elementor-652 .elementor-element.elementor-element-f87d866 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
    background-image: url("../../uploads/2026/09/srm-home-drive-hero-hospital-scaled.jpg") !important;
}

/* Inpatient Rehabilitation: add a relevant, calm visual to the content section. */
.elementor-650 .elementor-element.elementor-element-8b68830 {
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.93) 42%, rgba(255, 255, 255, 0.72) 72%, rgba(255, 255, 255, 0.48) 100%),
        url("../../uploads/2026/09/srm-inpatient-rehabilitation-content-bg.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.elementor-650 .elementor-element.elementor-element-2dbe266 {
    box-shadow: 0 18px 50px rgba(18, 63, 79, 0.1);
    backdrop-filter: blur(5px);
}

@media (max-width: 767px) {
    .elementor-650 .elementor-element.elementor-element-8b68830 {
        background-image:
            linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)),
            url("../../uploads/2026/09/srm-inpatient-rehabilitation-content-bg.png");
        background-position: 68% center;
    }
}

/* Outpatient Rehabilitation: relevant therapy imagery with readable content. */
.elementor-651 .elementor-element.elementor-element-52f1778 {
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.93) 42%, rgba(255, 255, 255, 0.72) 72%, rgba(255, 255, 255, 0.48) 100%),
        url("../../uploads/2026/09/srm-outpatient-rehabilitation-content-bg.png");
    background-color: #eef6f8;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: 100% auto;
}

.elementor-651 .elementor-element.elementor-element-3e7a4f4 {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 50px rgba(18, 63, 79, 0.1);
    backdrop-filter: blur(5px);
}

@media (max-width: 767px) {
    .elementor-651 .elementor-element.elementor-element-52f1778 {
        background-image:
            linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)),
            url("../../uploads/2026/09/srm-outpatient-rehabilitation-content-bg.png");
        background-position: 68% center;
        background-size: cover;
    }
}

.elementor-654 .elementor-element.elementor-element-ff5162e {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 50px rgba(18, 63, 79, 0.1);
    backdrop-filter: blur(5px);
}

.srm-rehab-gallery {
    padding: 82px 32px 90px;
    background: #f5fafb;
}

.srm-rehab-gallery__inner {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
}

.srm-rehab-gallery__heading {
    max-width: 720px;
    margin-bottom: 34px;
}

.srm-rehab-gallery__heading p {
    margin-bottom: 9px;
    color: #28869a;
    font-family: "Clash Display", sans-serif;
    font-size: 13px;
    letter-spacing: 0.08em;
}

.srm-rehab-gallery__heading h2 {
    margin: 0;
    color: #121653;
    font-family: Georgia, serif;
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 500;
    line-height: 1.08;
}

.srm-rehab-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.srm-rehab-gallery__item {
    position: relative;
    overflow: hidden;
    min-width: 0;
    margin: 0;
    border-radius: 18px;
    background: #123f4f;
    box-shadow: 0 16px 38px rgba(18, 63, 79, 0.12);
}

.srm-rehab-gallery__item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.srm-rehab-gallery__item::after {
    position: absolute;
    inset: 45% 0 0;
    content: "";
    background: linear-gradient(transparent, rgba(9, 43, 55, 0.88));
    pointer-events: none;
}

.srm-rehab-gallery__item figcaption,
.srm-rehab-gallery__caption {
    position: absolute;
    z-index: 1;
    right: 24px;
    bottom: 22px;
    left: 24px;
    width: auto;
    margin: 0;
}

.srm-rehab-gallery__item figcaption,
.srm-rehab-gallery__caption .elementor-heading-title {
    color: #fff !important;
    font-family: Georgia, serif !important;
    font-size: 22px !important;
    font-weight: 500 !important;
    line-height: 1.15 !important;
}

.srm-rehab-gallery__item .elementor-widget-image,
.srm-rehab-gallery__item .elementor-widget-image .elementor-widget-container {
    width: 100%;
    height: 100%;
}

.srm-rehab-gallery__item:hover img {
    transform: scale(1.035);
}

@media (max-width: 900px) {
    .srm-rehab-gallery__grid {
        grid-template-columns: 1fr 1fr;
    }

    .srm-rehab-gallery__item:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .srm-rehab-gallery {
        padding: 58px 20px 64px;
    }

    .srm-rehab-gallery__grid {
        grid-template-columns: 1fr;
    }

    .srm-rehab-gallery__item:last-child {
        grid-column: auto;
    }
}

/* Facilities & Technology: aligned Elementor card section. */
.elementor-653 .srm-cp-section {
    padding: 76px 32px 88px;
}

.elementor-653 .srm-cp-shell {
    width: 100%;
    max-width: 1400px;
    margin-inline: auto;
}

.elementor-653 .srm-cp-heading {
    margin-bottom: 42px;
}

.elementor-653 .srm-cp-heading .srm-cp-eyebrow {
    margin-bottom: 8px;
}

.elementor-653 .srm-cp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.elementor-653 .srm-cp-card {
    min-width: 0;
    height: 100%;
    padding: 32px 30px;
    border: 1px solid #c8dfe6;
    border-radius: 18px;
    background: #fff;
}

.elementor-653 .srm-cp-card h2 {
    margin: 0 0 22px;
    font-size: clamp(28px, 2.1vw, 38px);
    line-height: 1.08;
}

.elementor-653 .srm-cp-card ul {
    margin: 0;
    padding-left: 20px;
}

.elementor-653 .srm-cp-card li + li {
    margin-top: 8px;
}

@media (max-width: 1023px) {
    .elementor-653 .srm-cp-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .elementor-653 .srm-cp-section {
        padding: 54px 20px 64px;
    }

    .elementor-653 .srm-cp-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact page: INQ Forms replacement for the rehabilitation assessment. */
.page-id-77 .srm-assessment-inq-form {
    --inqf-form-bg: transparent;
    --inqf-field-bg: #fff;
    --inqf-text: #334b5a;
    --inqf-muted: #334b5a;
    --inqf-border: #c6dce3;
    --inqf-accent: #28869a;
    --inqf-button-bg: #2f9fb3;
    --inqf-button-color: #fff;
}

.page-id-77 .srm-assessment-inq-form .inqf-form-252 .inqf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 12px;
}

.page-id-77 .srm-assessment-inq-form .inqf-form-252 .inqf-grid > .inqf-field,
.page-id-77 .srm-assessment-inq-form .inqf-form-252 .inqf-grid > .inqf-field:nth-child(-n+6) {
    grid-column: span 1;
    min-height: 56px;
    padding: 10px 16px;
    border-radius: 12px;
}

.page-id-77 .srm-assessment-inq-form .inqf-form-252 .inqf-grid > .inqf-field.inqf-full {
    grid-column: 1 / -1;
}

.page-id-77 .srm-assessment-inq-form .inqf-form-252 .inqf-field:has(textarea) {
    min-height: 64px;
}

.page-id-77 .srm-assessment-inq-form .inqf-form-252 input::placeholder,
.page-id-77 .srm-assessment-inq-form .inqf-form-252 textarea::placeholder {
    color: #334b5a;
}

.page-id-77 .srm-assessment-inq-form .inqf-form-252 > button {
    width: 100%;
    max-width: none;
    margin-top: 34px;
}

@media (max-width: 767px) {
    .page-id-77 .srm-assessment-inq-form .inqf-form-252 .inqf-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .page-id-77 .srm-assessment-inq-form .inqf-form-252 .inqf-grid > .inqf-field,
    .page-id-77 .srm-assessment-inq-form .inqf-form-252 .inqf-grid > .inqf-field:nth-child(-n+6),
    .page-id-77 .srm-assessment-inq-form .inqf-form-252 .inqf-grid > .inqf-field.inqf-full {
        grid-column: 1;
    }
}
