/*
Theme Name: Nightingale Child
Template: nightingale
Description: A framework for WordPress theme modification
Theme URI: https://wpchildtheme.co.uk/nightingale/
Author: wpchildtheme
Author URI: https://wpchildtheme.co.uk
Version: 1.0.1
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.txt
Tags: wpchildtheme, child theme, nightingale-child     
Text Domain: nightingalechild
*/

/* Limit page to physical screen - Start */

body, article {
	background-color: #fff !important;
}

.nhsuk-main-wrapper { 
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

/* Limit page to physical screen - End */

/* Blanket changes to all pages */

a {
	 text-decoration: none !important;
}

a:hover {
	color: #f7ec1d;
}

a:visited {
	color: #9aa500;
}

/* Hide previous and next post navigation */
.navigation,
.nav-links,
.postnav {
    display: none !important;
}

/* Blanket changes to all pages -end */

.nhsuk-header {
  background: linear-gradient(to right, #005eb8 0%,#5e7cb3 100%);
}

.nhsuk-header__container {
	padding-top: 1em !important;
	padding-bottom: 0 !important;
}

.nhsuk-header__logo--only,.nhsuk-navigation-container {
	padding-top: .2em;
}

.nhsjmj_top {
	display: flex;
	width: 100%;
	color: #fff;
	margin: 0 !important;
}

.nhsjmj_topright {
	width: 100%;
	margin: 0 !important;
	line-height: 1.5;
	align-items: center !important;
}

:where(.wp-block-columns.is-layout-flex) {
	gap: 1em;
}

.nhsuk-header__transactional-service-name {
	padding: .3em 0 0 10px !important;
	margin:0;
	line-height: 0;
	height: 56px;
}

.nhsuk-header__transactional-service-name a {
	font-size: 3vh;
}

.nhsuk-header__transactional-service-name a:visited {
	color: #fff;
}



.widget_polylang h2 {
	font-size: 1rem;
	line-height: 1;
	font-weight: normal;
	margin-bottom: 0;
	
}

.nhsuk-global-alert {
    background-color: #f0efec !important;
    padding-bottom: 0 !important;
    padding-top: 0 !important;
	text-align: center;
}

.nhsuk-footer-container {
	background: linear-gradient(to right, #005eb8 0%,#5e7cb3 100%);
	color: #fff;
	padding-top: 1em !important;
	padding-bottom: 0 !important;
}


.nhsuk-footer, .nhsuk-footer__copyright {
	background-color: #005EB8 !important;
	color: #fff !important;
	margin: 0 auto;
	font-size: .8em !important;
}

.nhsjmj-footer-section H4 {
	font-size: .9em;
}

.nhsjmj-footer-section h4 {
	margin-bottom: 5px;
}

.nhsjmj-footer-section p  {
	font-size: .8em;
	margin-bottom: 10px;

}

.nhsjmj-footer-section li, .nhsjmj-footer-section a {
	font-size: .9em;
	color: #fff;
	margin-bottom: 0;
}

/* === Image scaling === */
.uagb-post__image a {
	padding-bottom: 33% !important;
}

.wp-block-uagb-post-grid .uagb-post__image img {
	max-height: 15vh;
	object-fit: contain; /* prevents cropping */
}

.uagb-post__text p, .uagb-post__excerpt p {
	font-size: .9rem;
}

.nhsuk-content__clearfix {
   margin-top: 0 !important;
}

.nhsjmj-line {
	position: relative;       /* Make heading the positioning context */
	font-size: 1.5rem;
	margin: 20px 0;
	display: block;           /* Ensure it’s block-level */
}

.nhsjmj-line::before {
	content: "";
	position: absolute;
	top: 50%;                 /* Center vertically relative to text */
	left: 0;
	width: 100%;              /* Full width line */
	height: 1px;              /* Thickness of the line */
	background: #eaeae8;         /* Line color */
	transform: translateY(-50%); /* Perfect vertical centering */
	z-index: 0;             
}

.nhsjmj-line strong {
	position: relative;       /* Make text above the line */
	background: #fff;         /* Optional: mask the line behind text */
	padding: 0 10px;          /* Space around text */
	z-index: 1;               /* On top of line */
}