/*
Theme Name: EHSL Theme
Author: Orange Grove Designs
Author URI: http://www.orangegrovedesigns.co.uk/
Description: Website Design for EHSL
Version: 1.2.1
Text Domain: ehsl
*/

@import url("assets/styles/default.css?v=1.1.1");

.grecaptcha-badge {
    position: absolute;
    top: -100000px;
}

.field.captcha-text {
    margin-bottom: 30px;
    font-size: 12px;
}

.results-container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    align-items: auto;
    align-content: space-between;
    max-width: 1048px;
    margin: auto;
}
.result-item {
    flex: 0 0 30%;
    margin: 10px 0 30px;
    font-weight: bold;
}

.result-item p {
    text-align: center;
    max-width: 273px;
    margin: auto;
}

.result-value {
    background: #F2F2F2;
    width: 154px;
    height: 154px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 8px solid white;
    box-shadow: 0 0 0 7px #ECDA00;
    margin: 20px auto 20px;
}

.result-value span {
    font-size: 40px;
}

.download-report-banner-inner {
    padding: 35px 40px 30px;
    margin-top: 90px
}

.download-report-banner-inner h3, .download-report-banner-inner p, .result-value, .result-item p {
    font-size: 20px;
    line-height: 1.3;
}

.download-report-banner-inner h3 {
    font-weight: bold;
}

.download-report-banner-inner p {
    margin-top: 14px;
}

.download-report-banner-inner .col-left {
    float: left;
    width: 60%;
    padding-right: 20px;
}

.download-report-banner-inner .col-right {
    float: right;
    margin-right: 100px;
}

.download-report-banner-inner img {
    max-width: 189px;
    box-shadow: 0px 0px 16px #00000029;
    margin-top: -80px;
}

body.high-contrast .download-report-banner-inner,
body.high-contrast .result-value {
    background: black;
    border: 1px solid white;
}

.download-btn:after {
    transform: rotate(-30deg);
}

.large-text .download-report-banner-inner h3, .large-text .download-report-banner-inner p, .large-text .result-value, .large-text.result-item p {
    font-size: 30px;
}

.results-banner {
    background-size: contain;
}
/* Enquiry Form CSS */
.enquiry-form .gform_wrapper {
	position: relative;
}
.enquiry-form  .gform_heading {
    font-size: 1.25em;
    line-height: 1.3em;
    font-weight: 600;
    color: #000;
    text-align: right;
    margin-top: 0;
    position: absolute;
    bottom: 35px;
    right: 0;
}
.enquiry-form {
	text-align: left;
    background: #edecea;
    padding: 20px;
    position: relative;
    max-width: 1048px;
    margin: 0 auto 50px;
    padding: 65px 62px 70px;
}
.enquiry-form .gform_fields {
    gap: 22px 34px !important;
}
.enquiry-form:before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 110px 110px;
    border-color: transparent transparent #ffffff transparent;
}
.enquiry-form .gform_wrapper .gfield_label {
    padding-bottom: 30px;
    font-size: 1.25em;
    line-height: 1.3em;
    display: block;
    font-weight: 600;
    font-family: Nunito, sans-serif;
    color: #000;
    margin-bottom: 0px;
}
.enquiry-form .gform_wrapper .gfield_label > span.gfield_required {
    color: #958982;
    font: inherit !important;
    margin-left: 6px;
}
.enquiry-form .gform_wrapper input[type="color"],
.enquiry-form .gform_wrapper input[type="date"],
.enquiry-form .gform_wrapper input[type="datetime-local"],
.enquiry-form .gform_wrapper input[type="datetime"],
.enquiry-form .gform_wrapper input[type="email"],
.enquiry-form .gform_wrapper input[type="month"],
.enquiry-form .gform_wrapper input[type="number"],
.enquiry-form .gform_wrapper input[type="password"],
.enquiry-form .gform_wrapper input[type="search"],
.enquiry-form .gform_wrapper input[type="tel"],
.enquiry-form .gform_wrapper input[type="text"],
.enquiry-form .gform_wrapper input[type="time"],
.enquiry-form .gform_wrapper input[type="url"],
.enquiry-form .gform_wrapper input[type="week"],
.enquiry-form .gform_wrapper select,
.enquiry-form .gform_wrapper textarea,
.enquiry-form .chosen-container .chosen-single,
.enquiry-form .gform_wrapper .gfield input[type="file"]{
  font-family: Nunito, sans-serif;
  font-size: 1.25em !important;
  line-height: 1.3em !important;
  padding: 11px 17px !important;
  width: 100%;
  border-color: transparent;
  background-color: #fff;
  appearance: none;
  color: #000;
  height: auto !important;
  border: none !important;
  border-radius: 0px !important;
}
.enquiry-form .gform_wrapper select {
    background: url(../images/select-arrow.png) #fff no-repeat right center !important;
    background-position: top 0 right 20px !important;
}
.enquiry-form .gform_wrapper .gfield input[type="file"] {
    padding: 0px 17px 0px 0px !important;
    height: 48px !important;
    display: flex;
    align-items: center;
}
.ginput_container_fileupload input::file-selector-button {
    background: #958982 !important;
    font-size: 18px !important;
    color: #fff !important;
    border: none !important;
    height: 100% !important;
}
.enquiry-form .chosen-container {
    width: 100% !important;
}
.enquiry-form .chosen-container .chosen-single {
    display: block;
    padding: 10.8px 17px !important;
    appearance: none;
    background: url(./assets/images/select-arrow.png) #fff no-repeat right center !important;
}
.enquiry-form .chosen-container .chosen-single > span {
    display: block;
    font: inherit !important;
    padding: 0 !important;
    font-size: 1.25em !important;
    line-height: 1.3em !important;
}
.enquiry-form .gform-footer {
    display: inline-flex !important;
    background: #ECD900;
    border: 0;
    position: relative;
    font-size: 1em;
    font-weight: bold;
    line-height: 28px;
    padding: 0px;
    font-family: Nunito, sans-serif;
    transition-property: background-color, color;
    transition-duration: 0.3s;
    transition-timing-function: ease;
    height: auto;
}
.enquiry-form .gform-footer .gform_button {
	color: #000 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-weight: bold !important;
    line-height: 28px !important;
    height: auto;
    font-family: Nunito, sans-serif !important;
    font-size: 1.25em !important;
    padding: 16px 76px 15px 25px !important;
}
.enquiry-form .gform-footer .gform_button:hover {
	color: #fff !important;
}
.enquiry-form .gform-footer:after {
    content: "";
    position: absolute;
    top: 50%;
    right: 27px;
    margin-top: -14px;
    display: inline-block;
    background: url(https://ehsl-uk.com/wp-content/uploads/2025/09/arrow.png) #ECD900 no-repeat 9px 7px;
    background-size: 10px 12px;
    width: 26px;
    height: 26px;
    border-radius: 28px;
    border: 1px solid #fff
}
.enquiry-form .gform-footer:before {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    position: absolute;
    top: 0;
    transition: border-color 0.3s ease;
    border-width: 61px 44px 0 0;
    border-color: #ECD900 transparent transparent transparent;
    right: -44px;
}

.enquiry-form .gform-footer:hover, .enquiry-form .gform-footer:focus {
    background: #958982;
    color: #fff
}

.enquiry-form .gform-footer:hover:before, .enquiry-form .gform-footer:focus:before {
    border-color: #958982 transparent transparent transparent
}
@media (max-width: 64em) {
    .download-report-banner-inner {
        padding: 20px 0;
    }

    .panel.cut-off-corner:after {
        border: none
    }
	.enquiry-form {
		padding: 20px;
	}
	.enquiry-form:before {
		border-width: 0 0 60px 60px;
	}
	.enquiry-form .gform_heading {
		position: unset;
		order: 1;
		display: block;
		text-align: left;
		margin-top: 20px;
		font-size: 1em;
		line-height: 1.25em;
	}
	.enquiry-form .gform_wrapper {
		display: flex;
		flex-direction: column;
	}
	.enquiry-form .gform_wrapper .gfield_label {
		padding-bottom: 15px;
		font-size: 1em;
		line-height: 1.25em;
	}
	.enquiry-form .gform_wrapper input[type="color"],
	.enquiry-form .gform_wrapper input[type="date"],
	.enquiry-form .gform_wrapper input[type="datetime-local"],
	.enquiry-form .gform_wrapper input[type="datetime"],
	.enquiry-form .gform_wrapper input[type="email"],
	.enquiry-form .gform_wrapper input[type="month"],
	.enquiry-form .gform_wrapper input[type="number"],
	.enquiry-form .gform_wrapper input[type="password"],
	.enquiry-form .gform_wrapper input[type="search"],
	.enquiry-form .gform_wrapper input[type="tel"],
	.enquiry-form .gform_wrapper input[type="text"],
	.enquiry-form .gform_wrapper input[type="time"],
	.enquiry-form .gform_wrapper input[type="url"],
	.enquiry-form .gform_wrapper input[type="week"],
	.enquiry-form .gform_wrapper select,
	.enquiry-form .gform_wrapper textarea,
	.enquiry-form .chosen-container .chosen-single,
	.enquiry-form .gform_wrapper .gfield input[type="file"] {
	  font-size: 1em !important;
	  line-height: 1.25em !important;
	  padding: 7px 10px !important;
	}
	.enquiry-form .chosen-container .chosen-single {
		display: block;
		padding: 6.44px 10px !important;
		background-size: 25px !important;
	}
	.enquiry-form .gform_wrapper .gfield input[type="file"] {
		padding: 0 10px 0 0!important;
		height: 34px !important;
	}
	.enquiry-form .gform_fields {
		gap: 20px !important;
		display: flex !important;
		flex-direction: column !important;
	}
	.enquiry-form .gform-footer .gform_button {
		font-size: 1em !important;
		font-weight: bold;
		line-height: 28px !important;
		padding: 8px 50px 7px 13px !important;
	}
	.enquiry-form .gform-footer:before {
		border-width: 45px 30px 0 0;
		right: -30px;
	}
	.enquiry-form .gform-footer:after {
		right: 12px;
	}
	.ginput_container_fileupload input::file-selector-button {
		font-size: 1em !important;
		line-height: 1.25em !important;
	}
}

@media (max-width: 810px) {
    .download-report-banner-inner .col-left {
        width: 100%;
    }

    .download-report-banner-inner .col-right {
        display: none;
    }

    .result-item {
        flex: 0 0 50%;
    }
}

@media (max-width: 400px) {
    .result-item {
        flex: 0 0 100%;
    }
}


/*
Theme Name: EHSL Child
Description: Child theme for EHSL Theme
Author: Zayn Solutions
Version: 1.0
Template: EHSL
*/

/* Top utility buttons */
.utility-actions {
    background: #958982;
    position: relative;
    top: 0;

    /* Magic trick to force the bar to span 100% of the screen width */
    width: 100vw !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}

.utility-actions-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}

.utility-button {
    display: inline-block;
    background: #ECD900;
    color: #101b35;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.utility-button:hover,
.utility-button:focus {
    background: #ffffff;
    color: #958982;
    text-decoration: none;
}

/* ===== Header: white navigation row ===== */
.page-header {
    background: #ffffff;
    padding-top: 0px;
}

.page-header > .container {
    position: relative;

}

body.high-contrast .page-header {
    background: #958982;
}

.utility-tagline {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}


/* Desktop: logo | navigation | accessibility in one row */
@media only screen and (min-width: 64em) {
    .page-header > .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        padding-top: 14px;
        padding-bottom: 1px;
    }

    .page-header .page-title {
        position: static;
        float: none;
        margin: 0;
        flex: 0 0 auto;
    }

    .page-header .page-logo {
        display: block;
    }


   /* This is for changing logo size */

    .page-header .page-logo img {
        display: block;
        width: 310px;
        height: auto;
    }

    .page-header .page-navigation {
        position: static;
        float: none;
        width: auto;
        margin: 0;
        flex: 1 1 auto;
    }

    .page-header .page-navigation > ul {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 0;
    }

    .page-header .accessibility-callout {
        position: absolute;
        top: auto;
        right: 0;
        width: auto;
        margin: 0;
        flex: 0 0 auto;
        z-index: 20;
        margin-right: 20px !important; 
    }
}

/* Mobile and tablet */
@media only screen and (max-width: 63.999em) {
    .main-page {
        padding-top: 0;
    }

    .page-header {
        position: relative;
        top: auto;
        height: auto;
        padding: 0;
    }

    .page-header > .container {
        min-height: 100px;
        padding: 38px 15px 0;
        text-align: center;
    }

    .page-header .accessibility-callout {
        position: absolute;
        top: 0;
        right: 15px;
        width: 200px;
        margin: 0;
        z-index: 10;
    }

    .page-header .page-title {
        display: block;
        float: none;
        position: relative;
        top: auto;
        left: auto;
        margin: 0;
        text-align: center;
    }

    /* I think not used */


    .page-header .page-logo img {
        width: 152px;
        height: auto;
    }

    .page-header .page-navigation .navigation-trigger {
        top: 8px;
        left: 15px;
    }

    .page-header .page-navigation > ul {
        top: 120px;
        bottom: auto;
        height: calc(100% - 120px);
    }

    .page-header .page-navigation.is-open,
    .page-header .page-navigation.is-open > ul {
        z-index: 1000;
    }

    /* Charcoal bar on mobile */
    .utility-actions {
        min-height: 104px;
        padding-top: 0;
    }

    .utility-tagline {
        top: 8px;
        left: 12px;
        right: 12px;
        transform: none;
        font-size: 13px;
        line-height: 18px;
    }

    .utility-actions-inner {
        justify-content: center;
        flex-wrap: wrap;
        gap: 5px;
        padding: 34px 8px 8px;
    }

    .utility-button {
        padding: 8px 10px;
        font-size: 12px;
        line-height: 16px;
    }
}

/* ===== Navigation: plain text items, no yellow tabs (desktop) ===== */
@media only screen and (min-width: 64em) {

    .page-header .page-navigation > ul > li,
    .page-header .page-navigation > ul > li > a {
        background: none !important;
        box-shadow: none !important;
        border: 0 !important;
        clip-path: none !important;
        transform: none !important;
    }

    /* Remove the slanted edge shapes */
    .page-header .page-navigation > ul > li::before,
    .page-header .page-navigation > ul > li::after,
    .page-header .page-navigation > ul > li > a::before,
    .page-header .page-navigation > ul > li > a::after {
        display: none !important;
        content: none !important;
    }

    /* Even spacing, single-line labels */
    .page-header .page-navigation > ul > li {
        margin: 0 !important;
        padding: 0 !important;
        height: auto !important;
    }

    .page-header .page-navigation > ul > li > a {
        display: block;
        padding: 10px 14px !important;
        font-size: 16px;
        font-weight: 600;
        line-height: 1.3;
        color: #101b35 !important;
        white-space: nowrap;
        text-decoration: none;
    }

    .page-header .page-navigation > ul > li > a:hover,
    .page-header .page-navigation > ul > li > a:focus {
        color: #101b35 !important;
        text-decoration: underline;
        text-underline-offset: 6px;
    }

    /* High contrast mode */
    body.high-contrast .page-header .page-navigation > ul > li > a {
        color: #ffffff !important;
    }
}

/* ===== How can we help you today? ===== */
.help-section {
    margin: 40px 0 50px;
}

.help-title {
    font-size: 1.75em;
    font-weight: 800;
    line-height: 1.2;
    color: #101b35;
    margin-bottom: 8px;
}

.help-intro {
    font-size: 1em;
    line-height: 1.4;
    color: #101b35;
    margin-bottom: 0;
}

.help-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    justify-content: center;              
    gap: 14px;
    margin: 24px auto 0;                  
    padding: 0;
    list-style: none;
}

.help-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    height: 100%;
    padding: 22px 10px 18px;
    background: #f4f4f4;
    border-bottom: 4px solid #ECD900;
    color: #101b35;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.help-tile:hover,
.help-tile:focus {
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.help-tile:focus-visible {
    outline: 3px solid #101b35;
    outline-offset: 2px;
}

.help-tile-icon svg {
    display: block;
    width: 44px;
    height: 44px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.help-tile-label {
    font-size: 0.95em;
    font-weight: 700;
    line-height: 1.3;
}

.help-tile-arrow {
    margin-left: 4px;
}

/* Tablet */
@media only screen and (max-width: 63.999em) {
    .help-tiles {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile */
@media only screen and (max-width: 40em) {
    .help-tiles {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Accessibility modes */
body.large-text .help-tiles {
    grid-template-columns: repeat(2, 1fr);
}

body.high-contrast .help-title,
body.high-contrast .help-intro {
    color: #ffffff;
}

body.high-contrast .help-tile {
    background: #000000;
    color: #ffffff;
    outline: 1px solid #ffffff;
    border-bottom-color: #ffffff;
}

/* Centre the "How can we help you today?" heading and intro */
.help-section .help-title,
.help-section .help-intro {
    text-align: center;
}

/* ===== Slideshows: Our Achievements + What our residents say ===== */
/* ===== Slideshows: Our Achievements + What our residents say ===== */
.slideshows {
    margin: 0 0 50px;
}

.slideshows-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media only screen and (min-width: 64em) {
    .slideshows-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.slideshow-card {
    display: flex;
    flex-direction: column;
    background: #f4f4f4;
    padding: 24px 22px 26px;
}

.slideshow-title {
    font-size: 1.6em;
    font-weight: 800;
    line-height: 1.2;
    color: #101b35;
    margin-bottom: 6px;
}

.slideshow-sub {
    font-size: 1em;
    line-height: 1.4;
    color: #101b35;
}

.slideshow {
    flex: 1;
    background: #ffffff;
    margin: 18px 0 22px;
    padding: 20px 10px 12px;
}

.slideshow-body {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* All slides sit on top of each other; the tallest one sets the height,
   so the card never jumps when the slide changes */
.slideshow-slides {
    flex: 1;
    min-width: 0;
    display: grid;
}

.slide {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}

.slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease;
}

@media (prefers-reduced-motion: reduce) {
    .slide,
    .slide.is-active {
        transition: none;
    }
}

.slide-image {
    aspect-ratio: 16 / 9;
    background: #e6e6e6;
    overflow: hidden;
}

.slide-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-text {
    font-size: 1.05em;
    line-height: 1.4;
    color: #101b35;
}

.slide-text p {
    margin: 0;
}

.slide-author {
    margin-top: 10px !important;
    font-size: 0.85em;
    font-weight: 700;
}

.slideshow-arrow {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #101b35;
    font-size: 2em;
    line-height: 1;
    cursor: pointer;
}

.slideshow-arrow:hover {
    background: #f4f4f4;
}

.slideshow-arrow:focus-visible,
.slideshow-dot:focus-visible,
.slideshow-toggle:focus-visible,
.slideshow-button:focus-visible {
    outline: 3px solid #101b35;
    outline-offset: 2px;
}

.slideshow-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.slideshow-dots {
    display: flex;
    justify-content: center;
    gap: 2px;
}

.slideshow-dot {
    position: relative;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.slideshow-dot:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: #c9c9c9;
}

.slideshow-dot.is-active:before {
    background: #ECD900;
    box-shadow: 0 0 0 1px #101b35;
}

/* Pause / play */
.slideshow-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #101b35;
    border-radius: 50%;
    background: #ffffff;
    color: #101b35;
    cursor: pointer;
}

.slideshow-toggle svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.slideshow-toggle .icon-play {
    display: none;
}

.slideshow-toggle.is-paused .icon-pause {
    display: none;
}

.slideshow-toggle.is-paused .icon-play {
    display: block;
}

.slideshow-button {
    align-self: flex-start;
    display: inline-block;
    background: #ECD900;
    color: #101b35;
    font-weight: 700;
    padding: 12px 22px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.slideshow-button:hover,
.slideshow-button:focus {
    background: #36454F;
    color: #ffffff;
}

/* Accessibility modes */
body.high-contrast .slideshow-card,
body.high-contrast .slideshow {
    background: #000000;
    color: #ffffff;
}

body.high-contrast .slideshow-card {
    outline: 1px solid #ffffff;
}

body.high-contrast .slideshow-title,
body.high-contrast .slideshow-sub,
body.high-contrast .slide-text,
body.high-contrast .slideshow-arrow {
    color: #ffffff;
}

body.high-contrast .slideshow-arrow:hover {
    background: #333333;
}

body.high-contrast .slideshow-toggle {
    background: #000000;
    color: #ffffff;
    border-color: #ffffff;
}

body.high-contrast .slideshow-button {
    background: #ffffff;
    color: #000000;
}

/* ===== Our Homes & Case Studies ===== */
.homes-section {
    margin: 0 0 50px;
}

.homes-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.homes-title {
    font-size: 1.6em;
    font-weight: 800;
    line-height: 1.2;
    color: #101b35;
    margin-bottom: 6px;
}

.homes-intro {
    font-size: 1em;
    line-height: 1.4;
    color: #101b35;
}

.homes-more {
    display: inline-block;
    padding: 10px 18px;
    background: #ffffff;
    border: 1px solid #101b35;
    color: #101b35;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.homes-more:hover,
.homes-more:focus {
    background: #101b35;
    color: #ffffff;
}

.homes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media only screen and (min-width: 40em) {
    .homes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (min-width: 64em) {
    .homes-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.home-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e3e3e3;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.home-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.home-card:focus-within {
    outline: 3px solid #101b35;
    outline-offset: 2px;
}

.home-card-image {
    aspect-ratio: 16 / 10;
    background: #e6e6e6;
    overflow: hidden;
}

.home-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px 18px 20px;
}

.home-card-title {
    font-size: 1.15em;
    font-weight: 800;
    line-height: 1.25;
    color: #101b35;
    margin-bottom: 8px;
}

.home-card-text {
    flex: 1;
    font-size: 0.95em;
    line-height: 1.4;
    color: #101b35;
    margin-bottom: 14px;
}

.home-card-link {
    align-self: flex-start;
    color: #101b35;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 3px solid #ECD900;
}

/* Makes the whole card clickable through the one Read more link */
.home-card-link:after {
    content: "";
    position: absolute;
    inset: 0;
}

.home-card-link:focus {
    outline: none;
}

/* Accessibility modes */
body.high-contrast .homes-title,
body.high-contrast .homes-intro,
body.high-contrast .home-card-title,
body.high-contrast .home-card-text,
body.high-contrast .home-card-link {
    color: #ffffff;
}

body.high-contrast .home-card {
    background: #000000;
    border-color: #ffffff;
}

body.high-contrast .homes-more {
    background: #000000;
    color: #ffffff;
    border-color: #ffffff;
}

body.high-contrast .home-card-link {
    border-bottom-color: #ffffff;
}

body.large-text .homes-grid {
    grid-template-columns: 1fr;
}

/* Centre the "Our Homes & Case Studies" heading and intro */
.homes-head {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.homes-title,
.homes-intro {
    text-align: center;
}

/* ===== Our Impact ===== */
.impact-section {
    margin: 0 0 50px;
}

.impact-title {
    font-size: 1.6em;
    font-weight: 800;
    line-height: 1.2;
    color: #101b35;
    margin-bottom: 6px;
    text-align: center;
}

.impact-intro {
    font-size: 1em;
    line-height: 1.4;
    color: #101b35;
    text-align: center;
}

.impact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

@media only screen and (min-width: 40em) {
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (min-width: 64em) {
    .impact-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.impact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 18px;
    background: #ffffff;
    border: 1px solid #e3e3e3;
    border-bottom: 4px solid #ECD900;
}

.impact-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ECD900;
    color: #101b35;
}

.impact-icon svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.impact-text p {
    margin: 0;
}

.impact-number {
    font-size: 1.8em;
    font-weight: 800;
    line-height: 1.1;
    color: #101b35;
}

.impact-label {
    margin-top: 4px !important;
    font-size: 0.95em;
    line-height: 1.3;
    color: #101b35;
}

/* Accessibility modes */
body.large-text .impact-grid {
    grid-template-columns: 1fr;
}

body.high-contrast .impact-title,
body.high-contrast .impact-intro,
body.high-contrast .impact-number,
body.high-contrast .impact-label {
    color: #ffffff;
}

body.high-contrast .impact-card {
    background: #000000;
    border-color: #ffffff;
}

/* ===== Latest News + social ===== */
.latest-section {
    margin: 0 0 50px;
}

.latest-title {
    font-size: 1.6em;
    font-weight: 800;
    line-height: 1.2;
    color: #101b35;
    margin-bottom: 6px;
    text-align: center;
}

.latest-intro {
    font-size: 1em;
    line-height: 1.4;
    color: #101b35;
    text-align: center;
}

.latest-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 24px;
}

@media only screen and (min-width: 64em) {
    .latest-layout {
        grid-template-columns: minmax(0, 3fr) minmax(250px, 1fr);
    }
}

.latest-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media only screen and (min-width: 40em) {
    .latest-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (min-width: 64em) {
    .latest-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.latest-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e3e3e3;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.latest-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.latest-card:focus-within {
    outline: 3px solid #101b35;
    outline-offset: 2px;
}

.latest-card-image {
    aspect-ratio: 16 / 10;
    background: #e6e6e6;
    overflow: hidden;
}

.latest-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 14px 16px 18px;
}

.latest-card-date {
    font-size: 0.85em;
    color: #4a4a4a;
    margin-bottom: 6px;
}

.latest-card-title {
    font-size: 1.05em;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 8px;
}

.latest-card-title a {
    color: #101b35;
    text-decoration: none;
}

.latest-card-title a:focus {
    outline: none;
}

/* Whole card is clickable through the title link */
.latest-card-title a:after {
    content: "";
    position: absolute;
    inset: 0;
}

.latest-card-text {
    flex: 1;
    font-size: 0.9em;
    line-height: 1.4;
    color: #101b35;
    margin-bottom: 12px;
}

.latest-card-link {
    align-self: flex-start;
    font-weight: 700;
    color: #101b35;
    border-bottom: 3px solid #ECD900;
}

.latest-empty {
    grid-column: 1 / -1;
    padding: 20px;
    background: #f4f4f4;
}

/* Sidebar */
.latest-more {
    display: block;
    padding: 12px 18px;
    margin-bottom: 26px;
    background: #ffffff;
    border: 1px solid #101b35;
    color: #101b35;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.latest-more:hover,
.latest-more:focus {
    background: #101b35;
    color: #ffffff;
}

.social-title {
    font-size: 1.15em;
    font-weight: 800;
    color: #101b35;
    margin-bottom: 6px;
}

.social-intro {
    font-size: 0.9em;
    line-height: 1.4;
    color: #101b35;
    margin-bottom: 14px;
}

.social-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #c9c9c9;
    color: #101b35;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.social-link:hover,
.social-link:focus-visible {
    border-color: #101b35;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.social-link:focus-visible {
    outline: 3px solid #101b35;
    outline-offset: 2px;
}

.social-icon {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
}

.social-name {
    flex: 1;
}

/* Accessibility modes */
body.large-text .latest-list,
body.large-text .latest-layout {
    grid-template-columns: 1fr;
}

body.high-contrast .latest-title,
body.high-contrast .latest-intro,
body.high-contrast .latest-card-title a,
body.high-contrast .latest-card-text,
body.high-contrast .latest-card-date,
body.high-contrast .latest-card-link,
body.high-contrast .social-title,
body.high-contrast .social-intro {
    color: #ffffff;
}

body.high-contrast .latest-card,
body.high-contrast .social-link,
body.high-contrast .latest-more {
    background: #000000;
    color: #ffffff;
    border-color: #ffffff;
}

body.high-contrast .latest-card-link {
    border-bottom-color: #ffffff;
}

/* ===== Support EHSL: Donate Now button on top of the banner ===== */

/* High contrast mode */
body.high-contrast .support-hero-button {
    background: #000000;
    color: #ffffff;
    outline: 2px solid #ffffff;
}

/* ===== Support EHSL banner: Donate Now button on the yellow brush ===== */
.donate-banner {
    position: relative;
    display: block;
    width: 100%;
    margin: 0 0 40px;
    padding: 0;
    container-type: inline-size;
}

.donate-banner-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
    margin: 0;
}

/* Default: the button sits on the picture, under the text */
.donate-banner-btn {
    position: absolute;
    z-index: 2;
    left: 71.3%;
    bottom: 5%;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    margin: 0;
    padding: 0.45em 1.1em;
    background: #101b35;
    color: #ffffff;
    font-size: 11px;                           /* fallback */
    font-size: clamp(11px, 1.1cqw, 16px);      /* scales with the banner */
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.donate-banner-btn:hover,
.donate-banner-btn:focus {
    background: #ffffff;
    color: #101b35;
}

.donate-banner-btn:focus-visible {
    outline: 3px solid #101b35;
    outline-offset: 2px;
}

/* Small screens only: too little room on the picture, so the button goes underneath */
@media only screen and (max-width: 55.999em) {
    .donate-banner-btn {
        position: static;
        display: flex;
        width: fit-content;
        margin: 14px auto 0;
        padding: 12px 24px;
        font-size: 1em;
    }

    .donate-banner-btn:hover,
    .donate-banner-btn:focus {
        background: #ECD900;
        color: #101b35;
    }
}

body.high-contrast .donate-banner-btn {
    background: #000000;
    color: #ffffff;
    outline: 2px solid #ffffff;
}

/* ==========================================================================
   Homepage Slideshow Styles (Custom Added)
   ========================================================================== */

.slideshow-custom-img {
    width: 100%;
    max-width: 280px; /* Adjust this value lower or higher to perfectly dial in the size */
    height: auto;     /* Ensures aspect ratio remains perfectly scaled */
    margin: 0 auto 15px; /* Centers the image and adds space above the text below it */
    display: block;
}

/* ===== Homepage: slightly larger text ===== */
.help-section,
.slideshows,
.homes-section,
.impact-section,
.latest-section {
    font-size: 1.125em; /* about 18px instead of 16px */
}

/* ===== Footer: slightly larger text ===== */

/* Quick Links, address and general text */
.footer .footer-title,
.footer p,
.footer li {
    font-size: 1em;          /* was 0.875em */
}

/* "Quick Links" / "Get in touch" headings */
.footer .footer-title {
    font-size: 1.4em;        /* was 1.25em */
}

/* "General enquiries" phone and email block */
.footer dl.enquiries {
    font-size: 1em;          /* was 0.875em */
}

/* Bottom white strip: copyright, company number, Terms, Privacy */
.footer .footer-lower .footer-lower-links li {
    font-size: 0.875em;      /* was 0.75em */
    line-height: 1.5em;      /* was 1em, which made the lines sit tight together */
}

.form-container .form-mandatory,
.enquiry-form .gform_heading,
.enquiry-form .gform_required_legend,
.gform_wrapper .gform_required_legend {
    margin-right: 90px !important;
}

/* Hide the intro block when its heading and paragraph are empty */
.page-intro.variant2.alt2:not(:has(h2:not(:empty))):not(:has(p:not(:empty))) {
    display: none;
}

/* Space between the form and the footer */
.form-container {
    margin-bottom: 60px !important;
}

/* Space between paragraphs in the intro text */
.page-intro p {
    margin-bottom: 1em;
}

.page-intro p:last-child {
    margin-bottom: 0;
}



