.NHSMobileHeader {
    background-color: #005eb8;
    padding: 5px;
    display: none;
    margin-bottom: 1rem;
}

@media only screen and (max-width: 600px) {
    .NHSMobileHeader {
        display: block;
    }
}

.NHSMobileBanner {
    display: block;
}


@media only screen and (max-width: 600px) {
    .NHSMobileBanner {
        display: none;
    }
}

.app-search-results-category {
    color: #4c6272;
    display: block;
    font-size: 14px;
}

@media (min-width: 40.0625em) {
    .app-search-results-item {
        font-size: 22px;
        font-size: 1.375rem;
        line-height: 1.45455;
    }
}

.app-search-results-item {
    font-size: 18px;
    font-size: 1.325rem;
    line-height: 1.55556;
    font-weight: 600;
    text-decoration: none;
}

.hj-job-search {
    background-color: #f0f4f5 !important;
}

.Servicelinks {
    margin-bottom: 15px;
    !important
}

.image-section {
    float: right;
    width: 50%; /* Larger width for desktop */
    min-width: 200px; /* Minimum width for the image section */
    margin: 0 0 10px 10px;
    margin-left: 20px;
}

    .image-section img {
        width: 100%;
        height: auto;
        display: block;
    }

.text-section {
    display: block;
}

    .text-section p {
        margin: 10px 0;
    }

/* For tablets and smaller desktops */
@media (max-width: 1024px) {
    .image-section {
        width: 35%; /* Adjust width for tablets */
        min-width: 150px;
    }
}

/* For mobile devices */
@media (max-width: 768px) {
    .image-section {
        float: none;
        width: 100%;
        margin: 0 0 10px 0;
    }
}

/* For very small screens */
@media (max-width: 480px) {
    .image-section {
        width: 100%;
        margin: 0 0 10px 0;
    }
}

/* Hide the desktop home button on mobile */
.nhsuk-header__navigation-item--desktop-home {
    display: none;
}

/* Show the desktop home button on larger screens */
@media screen and (min-width: 768px) {
    .nhsuk-header__navigation-item--desktop-home {
        display: inline-block;
    }

    /* Optionally hide the existing mobile home button on desktop */
    .nhsuk-header__navigation-item--home {
        display: none;
    }
}

.Socials {
    font-size: 1.2em; /* Increase as needed */
}

    .Socials a {
        font-size: 1.2em;
    }

.umbraco-forms-hidden {
    display: none !important; /* Ensures the element is not displayed */
    visibility: hidden; /* Additionally makes the element invisible */
}

.col-md-12 {
    padding-left: 0px !important;
}

.address p {
    margin-bottom: 0 !important;
}

.Eventdetails p {
    margin-bottom: 0 !important;
}





/* Default: display menu normally on larger screens */
.SideMenuContainer {
    display: block;
    max-height: none;
}

/* Mobile-specific styles for hiding the menu initially */
@media only screen and (max-width: 768px) {
    .SideMenuContainer {
        display: none;
        transition: max-height 0.3s ease-in-out;
        max-height: 0;
        overflow: hidden;
    }

        /* When the button is clicked, the menu is shown */
        .SideMenuContainer.expanded {
            display: block;
            max-height: 100vh;
        }

    /* Display the toggle button only on mobile */
    .menu-toggle {
        display: inline-block; /* Show the Menu button on mobile */
        background-color: #007f3b; /* NHS green */
        color: white;
        border: none;
        cursor: pointer;
        width: 100%; /* Make it full width */
        text-align: left;
        padding: 5px 10px;
        font-size: 16px;
        margin-bottom: 8px;
    }
}

/* Ensure the button is hidden on larger screens */
@media only screen and (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}

/* Hide second section on desktop and larger devices */
@media (min-width: 768px) {
    .section-two {
        display: none;
    }
}

/* Hide first section on mobile devices */
@media (max-width: 767px) {
    .section-one {
        display: none;
    }
}

/* Section 2 specific styles */
.section-two .slick-horizontal .slick-slide {
    display: flex;
    align-items: flex-start; /* Align text at the top */
    justify-content: center;
    flex-direction: column; /* Stack image and text vertically */
    height: auto; /* Allow content to determine height */
    position: relative; /* Ensure buttons are aligned within the container */
}

.section-two .image-container {
    width: 100%; /* Take full width */
    height: auto; /* Allow image to scale */
    padding: 10px;
}

.section-two .text-container {
    width: 100%; /* Take full width */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    flex-direction: column; /* Ensure the text is stacked */
}

/* Ensure text content wraps properly */
.section-two .text-content {
    max-width: 100%;
    word-wrap: break-word; /* Break long words */
}

/* Button Styles for Section 2 */
.slick-prev-custom-2,
.slick-next-custom-2 {
    position: absolute;
    top: 50%; /* Centered vertically */
    transform: translateY(-50%); /* Correct for centering */
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    cursor: pointer;
    z-index: 1000;
    font-size: 18px; /* Reduced size for mobile */
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    outline: none;
}

.slick-prev-custom-2 {
    left: 2px!important; /* Adjust to be within screen bounds */
}

.slick-next-custom-2 {
    right: 2px!important; /* Adjust to be within screen bounds */
}

    /* Hover effects */
    .slick-prev-custom-2:hover,
    .slick-next-custom-2:hover {
        background-color: rgba(0, 0, 0, 0.9);
    }

/* Media query to adjust button positions for smaller screens */
@media (max-width: 576px) {
    .slick-prev-custom-2,
    .slick-next-custom-2 {
        top: 80%; /* Lower the buttons vertically for better visibility */
    }
}

@media (max-width: 767px) {
    .nhsuk-grid-row {
        display: block !important; /* Ensures that the flexbox doesn't break layout on smaller screens */
    }

    .nhsuk-grid-column-one-half,
    .nhsuk-grid-column-one-third,
    .nhsuk-grid-column-one-quarter {
        width: 100% !important; /* Ensures cards stack on mobile */
    }
}

.nhsuk-card-group__item {
    display: flex;
    flex-direction: column;
}

.nhsuk-card {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.BreastScreening2 {
    color: #ae2573 !important;
}

.nhsuk-card__heading_Events {
    min-height: 3.5em; /* Adjust based on your heading font size */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit the heading to 3 lines */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    text-align: left; /* Align text to the left if required */
}

.nhsuk-card__link {
    text-decoration: none!important;
}
.nhsuk-card__link:hover {
    text-decoration: underline!important;
}

.nhsuk-list.nhsuk-list--border li a {
    text-decoration: none !important;
}

    .nhsuk-list.nhsuk-list--border li a:hover {
        text-decoration: underline !important;
    }

.nhsuk-card__heading a {
    text-decoration: none !important;
    color: #ae2573 !important;
}

    .nhsuk-card__heading a:hover {
        text-decoration: underline !important;
    }
.nhsuk-contents-list__link {
    text-decoration: none !important;
}
nhsuk-contents-list__link:hover {
    text-decoration: underline !important;
}
.nhsuk-breadcrumb__link {
    text-decoration: none !important;
}

nhsuk-breadcrumb__link:hover {
    text-decoration: underline !important;
}

.nhsuk-header--white .nhsuk-search__input {
    border: 1px solid #3d505c;
}