/* General styles for site */

:root {
    --color-primary: #216A9B; /* primary color */
    --color-secondary: #252122; /* secondary color */
    --color-hover-state: #0EA0A7; /* most buttons in site hover color */
    --color-focus-outline: #F89823; /* keyboard focus outline color */
}

body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Jost', sans-serif;
	font-weight: normal;
	color: var(--color-secondary);
	font-size: 18px;
	line-height: 1.5;
	background: #ffffff;

}

*,
*::before,
*::after {
    box-sizing: inherit;
}

html {
  scroll-behavior: smooth;
}

/* =========================
   FLOW SPACING
   ========================= */

/* Remove default vertical margins */
.flow > * {
    margin-block: 0;
}

/* Standard spacing between content elements */
.flow > * + * {
    margin-block-start: 2rem;
}

/* Section spacing */
.flow > h2 {
    margin-block-start: 3rem;
}

.flow > h3 {
    margin-block-start: 2rem;
}

/* Keep headings connected to following content */
.flow > h1 + *,
.flow > h2 + *,
.flow > h3 + * {
    margin-block-start: 1.25rem;
}

/* Tighter spacing between consecutive paragraphs */
.flow > p + p {
    margin-block-start: 1.5rem;
}

/*override flow top margin for firt element in flow */
.flow > :first-child {
    margin-block-start: 0 !important;
}


/*set size of H2s inside grid layouts*/
.grid-item h2 {
	font-size: clamp(1.33rem, 1.2607rem + 0.3259vw, 1.55rem) !important;
}

/* Responsive banners on home page */
.responsive-banner {
  max-width: 100%;
  height: auto;
  display: block; /* removes bottom inline gap */
  margin: 35px 0 35px 0; /*35px top and bottom margin on banners */
  transition: box-shadow 0.3s ease-in-out; /*eases box shadow on hover in and out */
}

.responsive-banner:hover {
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.6); /*display box shadow on home page desktop banner links on hover */
}

@media (max-width: 767px) {
    .responsive-banner {
  margin: 20px 0 20px 0; /*reduce top and bottom margin on banners on mobile*/
    }
}

.white-bg {
	background: #fff; /* give sections a white background */
}
.grey-bg {
	background: #f5f6f7; /* give sections a white background */
}

.blue-bg {
	background-color:  var(--color-primary);
}


/* Home page helpful apps intro div */
.helpful-apps {
    text-align: center !important; /*align text centrally */
	padding-bottom: 25px; /* add some bottom padding to the useful apps grid */
}

.helpful-apps h2 {
	font-size: clamp(2rem, 1.7922rem + 0.9778vw, 2.66rem) !important;/*set larger text for the h2 here */
} 

.helpful-apps p {
	font-size: clamp(1.44rem, 1.3361rem + 0.4889vw, 1.77rem) !important;/*set larger text for the intro text here */
} 

/* prevent cms editable regions from being able to display underlining with classes and pseudo-class*/
.editable [style*="underline"] {
  text-decoration: none !important;
}

u {
  text-decoration: none !important;
}

.editable u {
  text-decoration: none !important;
}

/*smooth text */
body { -webkit-font-smoothing: antialiased; }


/*Fluid Video CSS */
.videoWrapper {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	padding-top: 25px;
	height: 0;
	
}
.videoWrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* Banner Home Page */
@media (min-width: 768px) {
.banner-desktop {
	display: block;
	margin-bottom: clamp(1.25rem, 1.0682rem + 0.9091vw, 1.875rem); /* margin beneath banners */
	}
.banner-mobile {
	display: none; /* hide mobile versions of home page banners on desktop */
	}
}

@media (max-width: 767px) {
.banner-desktop {
	display: none; /* hide desktop banner on mobile devices */
	}
.banner-mobile {
	display: block; /* show mobile versions of home page banners on mobile devices*/
	margin-bottom: clamp(1.25rem, 1.0682rem + 0.9091vw, 1.875rem); /* margin beneath banners */
	}
}

img {
	max-width: 100%;/* restrict images to max of 100% size or 100% of their parent container */
}

.banner {
	margin-bottom: 0;
}

.banner p {
	padding: 0;
	margin: 0; /* prevents cms from adding padding to image if adds p tages when publishing */
}


/* Typography */

h1, h2, h3, h4, h5, h6 {
	color: var(--color-secondary);
	font-weight: 700;
	line-height: 1.25;	
	margin-bottom: 1rem;
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
	color: inherit;
	text-decoration: none;
}

h1 {
	font-size: clamp(1.75rem, 1.5318rem + 1.0909vw, 2.5rem);
}
h2 {
	font-size: clamp(1.65rem, 1.5773rem + 0.3636vw, 1.9rem);
}

h3 {
	font-size: clamp(1.5rem, 1.5773rem + 0.3636vw, 1.75rem);
}


/*set standard site wide text to 19px */
p, ul, ol, li {
	font-size: 1.05rem;
}

ul, ol {
	margin-top: 0;
	margin-bottom: 1.5rem;
}

ul {
	list-style-type: disc /* can change the standard disct to a circle or square */
}

li + li {
  margin-top: 0.5rem; /* gap between items without adding unnecessary space above the first item */
}

/* alignment of lists inside #main */
#main ul {
  margin-left: 0;
  padding-left: 1.25rem;
  list-style-position: outside;
  list-style-type: disc /* can change the standard disc bullet point to a circle etc */
}

#main ul li {
  padding-left: 0;
}

#main li {
  margin-bottom: 0.5rem;
} /* bottom margin of list items */

/* standard text links */
a {
	color: var(--color-primary);
	text-decoration: underline;
}
a:hover {
	color: var(--color-hover-state);
	text-decoration: none;
}

/*==== ACCESSIBILITY ====*/

/* Apply focus effect across site for keboard users only - some other more specific css is needed for search box and buttons*/	
  :focus:not(:focus-visible) {
    outline: none; /* no outline for mouse users */
  }
  :focus-visible {
    outline: 4px dotted var(--color-focus-outline); /* outline for keyboard users */
  }
  
  /* Target banner image links on home page for keyboard focus */
  #banners a:focus-visible img {
    outline: 4px dotted var(--color-focus-outline); /* apply the outline to image links */
  }
#banners-2 a:focus-visible img {
    outline: 4px dotted var(--color-focus-outline); /* apply the outline to image links */
  }

  /* Skip Nav */

.skip-link {
  left: 50%;
  margin-top: -2px;
  padding: 10px 8px 10px 8px;
  position: absolute;
  transform: translateY(-100%);
  transition: transform 0.3s;
  color: white;
  background: var(--color-secondary);
  }

.skip-link:focus {
  transform: translateY(0%);
   margin-top: 15px;
   background: var(--color-secondary);
   border-bottom: none;
   text-decoration: none;
}

/*==== END ACCESSIBILITY ====*/

/* Header and Main Section spacing , background colours etc to override standard section styles */

.banner-section {
   background: white;
}
.main-section {
   background: white;
}
.main-grid-section {
   background: white;
}
.main-grid-alt-section {
   background: white;
}

.main-grid-alt2-section {
   background:white;
}

.main-grid-alt3-section {
   background: white;
}

.main-grid-alt4-section {
   background: white;
}

.main-grid-alt5-section {
   background: white;
}


.custom-grid-section {
   background: var(--color-primary); /* This month section */
}




/* Navigation Styles */
.navigation {
    background-color: var(--color-primary); /* Blue background */
    color: white;             /* Text color */
    padding-top: 0;               /* Remove top padding */
	padding-bottom: 3px;               /* little bit of bottom padding aligns desktop navigation better */
    height: 65px;             /* Set a height for the navigation section */
    display: flex;            /* Use Flexbox for vertical alignment */
    align-items: flex-end;      /* Vertically center the container */
    justify-content: start  /* Horizontally center the container */
}

@media (max-width: 1200px) {
.navigation {
	height: 3px; /*Reduce the nav background to effectively be a 4px separator line one mobile menu shows*/
	}
}

.nav-container {
    display: flex;            /* Use Flexbox for content alignment */
    align-items: center;      /* Vertically center the text links */
    gap: 20px;                /* Optional: space between links */
}

.navigation a {
    color: white;             /* Link color */
    text-decoration: none;    /* Remove underline from links */
    font-size: clamp(0.9375rem, 0.9011rem + 0.1818vw, 1.0625rem);        /* Font size for links */
    line-height: 1.2;        /* Match the height of the container to align text vertically */
	text-transform: none;
	font-weight: 400;	
}

.navigation a:hover {
    text-decoration: none;
}


/* Home Page hero section */
.hero-section {
	height: clamp(21.875rem, 18.2386rem + 18.1818vw, 34.375rem);
	padding: 20px 20px 20px 20px; /* overwrite default section padding */
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position:center center;
    position: relative;
    text-align: left; 
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1); /* Black overlay with 10% opacity */
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 2;
    padding: 0; /* add padding  as required */
}

.text-content {
	width: 100%;
    max-width: 900px; /* restrict width of div with text in */
	text-align: left;
	color: white !important;/* Make text  white */
}

.text-content .heading {
    font-size: clamp(2rem, 1.6852rem + 1.4815vw, 3rem);
    font-weight: 600; 
    text-transform: none;
    margin: 0.5em 0;
    line-height: 1.2;
	color: inherit !important;
}

.text-content .subheading {
    font-size: clamp(1.3rem, 1.1898rem + 0.5185vw, 1.65rem);
    font-weight: 400; 
    text-transform: Capitalize;
    margin: 0.5em 0;
    line-height: 1.2;
	color: inherit !important;
}

/* Generic Page hero section */
.generic-hero-section {
	height: clamp(14.0625rem, 12.5868rem + 6.9444vw, 18.75rem);; /* variable height for standard hero section */
	padding: 20px 20px 20px 20px; /* overwrite default section padding */
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center center;
    position: relative;
    text-align: left; 
}

.generic-hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Black overlay with 10% opacity */
    z-index: 0;
}

.generic-hero-container {
    position: relative;
    z-index: 2;
    padding: 0; /* add padding  as required */
}

/* Cancel Your Appointment Section */
.cancel {
    text-align: center;
	margin: 20px auto 0 auto; /* add 20px margin to the top and center the div horizontally with margin auto */
}
.cancel p {     
    color: white;
    font-size: clamp(1.33rem, 1.1191rem + 0.9926vw, 1.75rem) !important;
    font-weight: 600;
	line-height: 1.5;
}

.cancel a {
    color: #fff !important;
    text-decoration: none;
    border-bottom: 1px solid #fff;
    padding-bottom: 2px; /* Creates the 2px offset */
    transition: color 0.3s ease, border-color 0.3s ease;
}

.cancel a:hover,
.cancel a:focus {
    color: 7bd5d8; /* Replace with your preferred colour */
    border-bottom-color: 7bd5d8;
}

@media (max-width: 767px) {
  .cancel {
    text-align: left; /* switch to left aligned text at smaller breakpoints */
  }
}


/* Staff Grid */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns as default */
  gap: 30px;
  grid-auto-rows: minmax(min-content, max-content); /* Auto-adjust row heights */
}

.staff-grid > * {
    background-color: #f5f6f7;
}

@media (max-width: 1023px) {
    .staff-grid {
        grid-template-columns: 1fr;
    }
}

/* Staff Biography 2 column layout */
.bio-two-columns {
    display: flex;
    width: 100%;
	align-items: flex-start;   /* First column stays top-aligned */
	background-color:  #f5f6f7;
	padding: 25px; /* padding all 4 sides */
	gap: 25px; /* column-gap */
}

.bio-two-columns .bio-content h2 {
    font-size: clamp(1.35rem, 1.5773rem + 0.3636vw, 1.5rem) !important; /* reduce size of h2s in staff bios */
}

.bio-image {
    flex: 0 0 250px;
}

.bio-image img {
    width: 100%;
    max-width: 250px;
    height: auto;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.bio-content {
    flex: 1;
    box-sizing: border-box;
	align-self: flex-start;        /* Vertically centre only the text column */
}

/* tablet */
@media (max-width: 768px) {
	
	.bio-two-columns {
		gap: 25px; /* maintain column-gap */
	}

    .bio-image {
    flex: 0 0 200px;
}

.bio-image img {
    width: 100%; /* make image fill parent column */
    max-width: 575px;
    height: auto;
    display: block;
}
	
.bio-content {
	align-self: flex-start;  /* Vertically align to top at this break point */
}

}

/* smaller screens - stack in 1 column and make image 100% width*/
@media (max-width: 575px) {

    .bio-two-columns {
        flex-direction: column;
		gap: 20px; /* reduced column-gap */
    }

    .bio-image {
        flex: none;
        width: 100%;
    }

    .bio-image img {
        margin: 0 auto;
    }

    .bio-content {
        width: 100%;
    }

}

/* Contact boxes 2 column layout */
.contact-two-columns {
    display: flex;
    gap: 30px;
    width: 100%;
}

.contact-column {
    flex: 1;
    padding: 30px;
    background: #f5f6f7;
    box-sizing: border-box;
}

.contact-column address {
    font-style: normal;
}
/* Mobile stacking */
@media (max-width: 767px) {

    .contact-two-columns {
        flex-direction: column;
        gap: 30px;
    }

}

/* Phone links on contact page */
.phone-link a {
    text-decoration: none;
    color: inherit;
    border-bottom: 0 solid currentColor;
    transition: border-bottom-width 0.3s ease;
}

.phone-link a:hover {
	color: var(--color-primary);
    border-bottom-width: 1px;
}

.phone-link i {
    margin-right: 8px;
}


/* Home Page Grid Styles */

.main-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns as default */
  gap: 30px;
  grid-auto-rows: minmax(min-content, max-content); /* Auto-adjust row heights */
}

.main-grid a {
    text-decoration: none !important; /* removes any default underlining of links */
  }

@media (max-width: 1200px) {
  .main-grid {
    grid-template-columns: repeat(4, 1fr); /*  Keep number of columns in main grid row at 4 */
    gap: 25px; /* Reduce gap size */
  }
}

@media (max-width: 1023px) {
    .main-grid {
    grid-template-columns: repeat(3, 1fr); /*  Reduce number of columns in main grid row to 3 */
    gap: 25px; /* Reduce gap size */
  }
}

@media (max-width: 767px) {
    .main-grid {
    grid-template-columns: repeat(2, 1fr); /*  Reduce number of columns in main grid row to 2 */
    gap: 25px; /* Reduce gap size */
  }
}
 
 @media (max-width: 575px) {
    .main-grid {
    grid-template-columns: 1fr; /* Reduce number of columns in main grid row to 1 */
    gap: 20px; /* Reduce gap size */
  }
}

.main-grid .grid-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  display: inline-block; /*adding this restricts the hover underline effect to the width of the text not the whole div */
  text-align: center; /* Center the inline-block horizontally */
  height: 100%; /* make sure the grid item fills 100% of row height */
  width: 100%; /* make sure the grid item fills 100% of available width */
  background: var(--color-primary);
  padding-bottom: 20px;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15); /* add light box shadow to grid item */
}

.main-grid .grid-item:hover {
  background: var(--color-hover-state); /* Change grid item background colour on hover */
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5); /* darken box shadow on grid item on hover */
}

.main-grid .grid-item p  {
  margin: 15px 0 0 0;
  text-align: center; /* Center the text horizontally */
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  display: inline-block; /* adding this restricts the hover underline effect to the width of the text not the whole div */
}

.main-grid .grid-item:hover p {
  color: #fff; /* change text colour on hover of wrapper div */
}

.main-grid .grid-item a {
   color: #fff;
}

.main-grid .grid-item:hover img {
  /* Add styles if needed */
}

/* Home Page Grid Alternative Styles */

.main-grid-alt {
  display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three equal columns */
    grid-template-rows: auto; /* Rows adjust to the tallest item */
    gap: 30px; /* Gap between items */
}

.main-grid-alt a {
    text-decoration: none !important; /* removes any default underlining of links */
  }

@media (max-width: 1200px) {
  .main-grid-alt {
    grid-template-columns: repeat(3, 1fr); /*  Keep number of columns in grid row at 3 */
    gap: 25px; /* Reduce gap size */
  }
}

@media (max-width: 1023px) {
    .main-grid-alt {
    grid-template-columns: repeat(2, 1fr); /*  Reduce number of columns in grid row to 2 */
    gap: 25px; /* Reduce gap size */
  }
}

@media (max-width: 767px) {
    .main-grid-alt {
    grid-template-columns: repeat(2, 1fr); /* Keep number of columns in grid row at 2*/
    gap: 25px; /* Reduce gap size */
  }
}
 
 @media (max-width: 575px) {
    .main-grid-alt {
    grid-template-columns: 1fr; /* Reduce number of columns in grid row to 1 */
    gap: 20px; /* Reduce gap size */
  }
}

.main-grid-alt .grid-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* left align items */
  /*display: inline-block;  adding this restricts the hover underline effect to the width of the text not the whole div */
  text-align: left; /* Left align the text content */
  background: #fff;
  height: 100%; /* make sure the grid item fills 100% of row height */
  width: 100%; /* make sure the grid item fills 100% of available width */
  padding: 20px; /* Set padding */
  border: 2px solid transparent; /* Set border color as transparent for hover-effect */
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15); /* Add light box shadow to grid item */
  transition: background .3s ease-in-out, border .3s ease-in-out; /* Set transitions for grid item hover effects */
}

.main-grid-alt .grid-item:hover {
  background: #fff; /* set grid item background on hover */
  border: 2px solid var(--color-primary); /* Set border color on hover */
  /*box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15);  /* darken box shadow on grid item on hover */
}

.main-grid-alt .grid-item p  {
  margin: 15px 0 0 0;
  text-align: left; /* left align the text horizontally */
  color: var(--color-secondary);
  font-size: inherit;
  font-weight: inherit;
  display: inline-block; /* adding this restricts the hover underline effect to the width of the text not the whole div */
}

.main-grid-alt .grid-item h2  {
  /* font-size: clamp(1.3rem, 1.1418rem + 0.2909vw, 1.4rem); Have set all .grid-item h2 to have same size so superfluous */
  margin-bottom: 0;
}

.main-grid-alt .grid-item:hover p {
  color: var(--color-secondary); /* set text colour on hover of wrapper div */
}

.main-grid-alt .grid-item a {
   text-decoration: none; /* Remove default underline from text as removing it from the grid p doesn't work*/
   color: #fff;
}

.main-grid-alt .grid-item i {
    font-size: 24px; /* icon size */
    color: white; /* icon colour */
	max-width: 48px;
	font-weight: 700;
	padding: 12px; /* add padding around icon */
	background: var(--color-primary); /* set background colour behind icon */
	border-radius: 5px; /* Add some curve radius to icon background */
    margin-bottom: 0; /* Space between icon and text */
}

.main-grid-alt .grid-item:hover img {
  /* Add styles if needed */
}

/* Home Page Grid Alternative 2 Styles */

.main-grid-alt2 {
  display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three equal columns */
    grid-template-rows: auto; /* Rows adjust to the tallest item */
    gap: 25px; /* Gap between items */
}
.main-grid-alt2 a {
    text-decoration: none !important; /* removes any default underlining of links */
  }

@media (max-width: 1200px) {
  .main-grid-alt2 {
    grid-template-columns: repeat(3, 1fr); /*  Keep number of columns in grid row at 3 */
    gap: 25px; /* Keep gap size */
  }
}

@media (max-width: 1023px) {
    .main-grid-alt2 {
    grid-template-columns: repeat(2, 1fr); /*  Reduce number of columns in grid row to 2 */
    gap: 20px; /* reduce gap size */
  }
}

@media (max-width: 767px) {
    .main-grid-alt2 {
    grid-template-columns: repeat(2, 1fr); /* Keep number of columns in grid row at 2 */
    gap: 20px; /* keep gap size */
  }
}
 
 @media (max-width: 575px) {
    .main-grid-alt2 {
    grid-template-columns: 1fr; /* Reduce number of columns in grid row to 1 */
    gap: 20px; /* keep gap size */
  }
}

.main-grid-alt2 .grid-item {
  display: flex;
  flex-direction: row; /* Ensure items are arranged in a row */
  align-items: center; /* Vertically center align items */
  justify-content: flex-start; /* Horizontally align items to the left */
  text-align: left; /* Left align the text content */
  background: #fff;
  height: 100%; /* Ensure the grid item fills 100% of row height */
  width: 100%; /* Ensure the grid item fills 100% of available width */
  padding: 15px; /* Set padding */
  border: 2px solid #d8d7d7; /* Set border color for hover-effect */
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15);  /* Add light box shadow to grid item */
  transition: background .3s ease-in-out, border .3s ease-in-out; /* Set transitions for grid item hover effects */
}


.main-grid-alt2 .grid-item:hover {
  background: #fff; /* set grid item background on hover */
  border: 2px solid var(--color-primary); /* Set border color on hover */
  /*box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15);  /* darken box shadow on grid item on hover */
}

.main-grid-alt2 .grid-item p  {
  margin: 15px 0 0 0;
  text-align: left; /* left align the text horizontally */
  color: var(--color-secondary);
  font-size: inherit;
  font-weight: inherit;
  display: inline-block; /* adding this restricts the hover underline effect to the width of the text not the whole div */
}

.main-grid-alt2 .grid-item h2  {
  /* font-size: clamp(1.3rem, 1.1418rem + 0.2909vw, 1.4rem); Have set all .grid-item h2 to have same size so superfluous */
  font-weight: 600;
  display: inline-block; /* Ensure h2 does not take up the entire row */
  margin: 0; /* Reset any default margins */
}

.main-grid-alt2 .grid-item:hover p {
  color: var(--color-secondary); /* set text colour on hover of wrapper div */
}

.main-grid-alt2 .grid-item i {
    font-size: 24px; /* icon size */
    color: white; /* icon colour */
	max-width: 48px;
	font-weight: 700;
	padding: 12px; /* add padding around icon */
	background: var(--color-primary); /* set background colour behind icon */
	border-radius: 5px; /* Add some curve radius to icon background */
    margin: 0 15px 0 0; /* right margin between icon and text */
}

.main-grid-alt2 .grid-item:hover img {
  /* Add styles if needed */
}

/* Home Page Grid Alternative 3 Styles */


.main-grid-alt3 {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns */
    gap: 25px; /* 25px gap */
}

.main-grid-alt3 a {
	text-decoration: none !important; /* remove any default underliing of links */
}

@media (max-width: 1030px) {
    .main-grid-alt3 {
        grid-template-columns: repeat(3, 1fr); /* 3 columns */
		gap: 20px; /* 20px gap */
    }
}

@media (max-width: 767px) {
    .main-grid-alt3 {
        grid-template-columns: repeat(2, 1fr); /* 2 columns */
		gap: 20px; /* 20px gap */
    }
}

@media (max-width: 575px) {
    .main-grid-alt3 {
        grid-template-columns: 1fr; /* 1 columns at mobile breakpoint */
		 }
}

.main-grid-alt3 .grid-item {
    display: flex;
    align-items: flex-start;
    justify-content: center;
	height: 100%; /* make sure the grid item fills 100% of row height */
	width: 100%; /* make sure takes up 100% width */
	background: var(--color-primary); /* background colour of grid items */
	padding: 30px; /* set padding on grid items */
	transition: background ease-in-out .3s; /* set transition for hover effect on grid items */
}

.main-grid-alt3 .grid-item a {
text-decoration: none !important; /* remove any default link underlining on grid items*/
}

.main-grid-alt3 .grid-item:hover {
    background: var(--color-secondary); /* set background colour on hover */
}

.main-grid-alt3 .grid-item-content {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
    text-align: center;
}

.main-grid-alt3 .grid-item .number {
	font-size: clamp(1.4rem, 1.2836rem + 0.5818vw, 1.8rem);/* set size & colour of the number */
	color: white;
	font-weight: 700;
	margin-bottom: 10px;
}

.main-grid-alt3 .grid-item .title {
    color: white;
    margin: 0; /* Remove default paragraph margin */
	font-size: clamp(1.25rem, 0.9273rem + 0.3636vw, 1.4rem);
	font-weight: 500;
	line-height:1.35;
}

.main-grid-alt3 .grid-item i {
    font-size: clamp(2.75rem, 2.5318rem + 1.0909vw, 3.5rem); /* Icon size */
    color: white;
	font-weight: 700;
    margin-bottom: 14px; /* Space between icon and text*/
}

.main-grid-alt3 .grid-item img {
    max-width: clamp(3.25rem, 3.0318rem + 1.0909vw, 4rem); /* SVG icon size */
    color: white;
	margin-bottom: 14px; /* If using svg icon instead of font awesome icon */
}

@media (max-width: 767px) {
    .main-grid-alt3 .grid-item i {
	margin-top: 15px; /* reduce extra top margin above icon */
	}
	
	.main-grid-alt3 .grid-item img {
	margin-top: 15px; /* If using svg icon instead of font awesome icon */
	}
}

/* Home Page Grid Alternative 4 Styles */

.main-grid-alt4 {
  display: grid;
    grid-template-columns: repeat(4, 1fr); /* four equal columns */
    grid-template-rows: auto; /* Rows adjust to the tallest item */
    gap: 30px; /* Gap between items */
}

.main-grid-alt4 a {
    text-decoration: none !important; /* removes any default underlining of links */
  }

@media (max-width: 1200px) {
  .main-grid-alt4 {
    grid-template-columns: repeat(3, 1fr); /*  reduce number of columns in grid row to 3 */
    gap: 25px; /* Reduce gap size */
  }
}

@media (max-width: 1023px) {
    .main-grid-alt4 {
    grid-template-columns: repeat(2, 1fr); /*  Reduce number of columns in grid row to 2 */
    gap: 25px; /* Reduce gap size */
  }
}

@media (max-width: 767px) {
    .main-grid-alt4 {
    grid-template-columns: repeat(2, 1fr); /* Keep number of columns in grid row at 2*/
    gap: 25px; /* Reduce gap size */
  }
}
 
 @media (max-width: 600px) {
    .main-grid-alt4 {
    grid-template-columns: 1fr; /* Reduce number of columns in grid row to 1 at non standard breakpoint */
    gap: 20px; /* Reduce gap size */
  }
}

.main-grid-alt4 .grid-item {
  display: flex;
  flex-direction: column;
  align-items: stretch; /* Ensure all children stretch across the grid item */
  justify-content: space-between; /* Distribute space, button goes to the bottom */
  text-align: left; /* Left align the text content */
  background: #fff;
  height: 100%; /* Ensure the grid item fills 100% of row height */
  width: 100%; /* Ensure the grid item fills 100% of available width */
  padding: 20px 20px 30px 20px; /* Set padding */
  border: 2px solid transparent; /* Set border color as transparent for hover-effect */
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15); /* Add light box shadow to grid item */
}

.main-grid-alt4 .grid-item:hover {
  /* Add styles as needed */
}

.main-grid-alt4 .grid-item p  {
  margin: 15px 0 0 0;
  text-align: left; /* left align the text horizontally */
  color: var(--color-secondary);
  font-size: inherit;
  font-weight: inherit;
  display: inline-block; /* adding this restricts the hover underline effect to the width of the text not the whole div */
}

.main-grid-alt4 .grid-item h2  {
  /* font-size: clamp(1.425rem, 1.3377rem + 0.4364vw, 1.625rem); Have set all .grid-item h2 to have same size so superfluous */
  font-weight: 600;
  margin-bottom: 0;
}

.main-grid-alt4 .grid-item:hover p {
  color: var(--color-secondary); /* set text colour on hover of wrapper div */
}

.main-grid-alt4 .grid-item img {
    margin-bottom: 15px; /* Space between image and text */
}

.main-grid-alt4 .grid-item .button1 {
   width: 100%; /* Make sure the button width is 100% */
   align-self: stretch; /* Ensure the button stretches to fill the width */
   box-sizing: border-box; /* Include padding and border in the element's total width and height */
   text-align: center;
   margin-top: auto; /* Pushes the button to the bottom of the container */
}

.main-grid-alt4 .grid-item:hover img {
  /* Add styles as needed */
}

/* Home Page Grid Alternative 5 Styles */

.main-grid-alt5 {
  display: grid;
    grid-template-columns: repeat(4, 1fr); /* four equal columns */
    grid-template-rows: auto; /* Rows adjust to the tallest item */
    gap: 30px; /* Gap between items */
}

.main-grid-alt5 a {
    text-decoration: none !important; /* removes any default underlining of links */
  }

@media (max-width: 1300px) {
  .main-grid-alt5 {
    grid-template-columns: repeat(3, 1fr); /*  reduce number of columns in grid row to 3 */
    gap: 25px; /* Reduce gap size */
  }
}

@media (max-width: 1023px) {
    .main-grid-alt5 {
    grid-template-columns: repeat(2, 1fr); /*  Reduce number of columns in grid row to 2 */
    gap: 25px; /* Reduce gap size */
  }
}

@media (max-width: 767px) {
    .main-grid-alt5 {
    grid-template-columns: repeat(2, 1fr); /* Keep number of columns in grid row at 2*/
    gap: 25px; /* Reduce gap size */
  }
}
 
 @media (max-width: 600px) {
    .main-grid-alt5 {
    grid-template-columns: 1fr; /* Reduce number of columns in grid row to 1 at non standard breakpoint */
    gap: 20px; /* Reduce gap size */
  }
}

.main-grid-alt5 .grid-item {
  display: flex;
  flex-direction: column;
  align-items: stretch; /* Ensure all children stretch across the grid item */
  /* justify-content: space-between; /* Distribute space, button goes to the bottom */
  text-align: center; /* center align the text content (affects the h2) */
  background: #f5f6f7;
  height: 100%; /* Ensure the grid item fills 100% of row height */
  width: 100%; /* Ensure the grid item fills 100% of available width */
  padding: 0; /* Set padding to zero so image is fulll width of div*/
  /* border: 2px solid #d8d7d7; /* Set initial border color for hover-effect */
  /* box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15); Add light box shadow to grid item */
  border: none;  /* Add borders as required */
  border-radius: 0 0 4px 4px !important; /* Add small curved border radius to bottom of grid item */
}

.main-grid-alt5 .inner-div {
  flex-grow: 1; /* Make inner-div fill the remaining height */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Space out the paragraph and button */
  padding: 0 20px 8px 20px !important; /* Add some padding around the text and button */
}

.main-grid-alt5 .grid-item:hover {
  /* Add styles as needed */
}

.main-grid-alt5 .grid-item p  {
  text-align: center; /* center align the text horizontally */
  color: var(--color-secondary);
  font-size: inherit;
  font-weight: inherit;
  display: inline-block; /* adding this restricts the hover underline effect to the width of the text not the whole div */
}

@media (max-width: 767px) {
    .main-grid-alt5 .grid-item {
        text-align: left; /* switch to left aligned h2 at lower breakpoints */
      }
  .main-grid-alt5 .grid-item p {
    text-align: left; /* switch to left aligned paragraph text at lower breakpoints */
  }
}

.main-grid-alt5 .grid-item h2  {
  /* font-size: clamp(1.425rem, 1.3377rem + 0.4364vw, 1.625rem); Have set all .grid-item h2 to have same size so superfluous */
  font-weight: 600;
  margin: 10px 20px 0 20px; /* Add left and right margin to h2 so alignment is consistent with inner div with padding that follows it */
  z-index: 2;
}

.main-grid-alt5 .grid-item:hover p {
  color: var(--color-secondary); /* set text colour on hover of wrapper div */
}

.main-grid-alt5 .grid-item img {
    width: 100%;
    aspect-ratio: 646/ 314;
    object-fit: cover;
    object-position: center center;
    margin-bottom: 15px; /* Space between image and text */
    border-radius: 4px 4px 0 0 !important; /* Add small curved border radius totop of image only */
}

.main-grid-alt5 .grid-item .inner-div .button1 {
   width: 100%; /* Make sure the button width is 100% */
   align-self: stretch; /* Ensure the button stretches to fill the width */
   box-sizing: border-box; /* Include padding and border in the element's total width and height */
   text-align: center;
   margin-top: auto; /* Pushes the button to the bottom of the container */
   margin-bottom: 0;
}

.main-grid-alt5 .grid-item:hover img {
  /* Add styles as needed */
}

/*=== Modifier to make grid alternative 5 three columns wide by default e.g. on health information page ===*/
.main-grid-alt5--modified {
    grid-template-columns: repeat(3, 1fr) !important; /* three equal columns */
}
@media (max-width: 1023px) {
    .main-grid-alt5--modified {
    grid-template-columns: repeat(2, 1fr) !important; /*  Reduce number of columns in grid row to 2 */
  }
}

 @media (max-width: 767px) {
    .main-grid-alt5--modified{
    grid-template-columns: 1fr !important; /* Reduce number of columns in grid row to 1  */
  }
}


/* 4 button Grid Styles */
.button-grid a {
    text-decoration: none; /* Remove underlines */
	color: white;
	display: block; /* Make the entire grid item clickable */
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Four equal columns */
    gap: 0; /* No gap between grid items initially */
	margin-bottom: clamp(3.125rem, 3.3977rem + -1.3636vw, 2.1875rem);
	margin-top: -110px; /*shift grid up to overlap hero section */
	box-shadow: 
        -3px 0 5px rgba(0, 0, 0, 0.15),  /* Left shadow */
         3px 0 5px rgba(0, 0, 0, 0.15),  /* Right shadow */
         0 3px 5px rgba(0, 0, 0, 0.15);  /* Bottom shadow */
}

@media (max-width: 1023px) {
    .button-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns on smaller screens */
        gap: 15px; /* 15px gap between grid items */
		margin-top: 0; /* remove the margin top and overlay of hero when drops to 2 columns */
		box-shadow: none; /* remove box shadow when goes to 2 columns */
    }
}

@media (max-width: 575px) {
    .button-grid {
        grid-template-columns: 1fr; /* One column on mobile screens */
        gap: 15px; /* 15px gap between grid items */
    }
}

.button-grid .grid-item {
    display: flex;
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    height: clamp(3.75rem, 2.6591rem + 5.4545vw, 7.5rem); /* variable height for grid items */
    background-color: #3375b7; /* Default background color */
    transition: background-color .25s ease-in-out; /* Smooth transition */
    padding: 0 20px; /* Add some left and right space */
    position: relative; /* Position relative for ::after pseudo element*/
    color: #fff; /* set text color */
	font-size: clamp(0.9375rem, 0.883rem + 0.2727vw, 1.125rem);
	font-weight: 500;
	text-transform: capitalize;
}

.button-grid .grid-item::after {
    /*content: "\f061";  Font Awesome right arrow icon (using Unicode value) */
    /*font-family: "Font Awesome 5 Free";  Ensure Font Awesome font family is used */
    /*font-weight: 900;  Font Awesome icons require font-weight 900 */
    /* margin-left: 12px;  Space between text and icon */
    /* display: inline-block;
	color: white;
    transition: transform .25s ease-in-out; /* Smooth transition for movement */
    /* transform: translateX(0); /* Initial position */
}

/* Background colors for different grid items */
.button-grid .grid-item:nth-child(2) {
    background-color: #3aabdd;
}

.button-grid .grid-item:nth-child(3) {
    background-color: #008fe2;
}

.button-grid .grid-item:nth-child(4) {
    background-color: #2c54a2;
}

.button-grid .grid-item:hover {
    background-color: var(--color-hover-state); /* Change background of all grid-items to this colour on hover */
}

.button-grid .grid-item:hover::after {
    transform: translateX(5px); /* Move the arrow 5px to the right */
}


/* Custom Grid styles - This Month in numbers grid */

.custom-grid-section h2 {
	text-align: center; /* Centre align the section's h2 text horizontally */
	color: #fff;
	font-size: clamp(2rem, 1.7922rem + 0.9778vw, 2.66rem) !important; /*set larger text for the h2 here */
	margin: 20px 0 15px 0; /*Add margin above and below h2 */
}


.custom-grid-section .thank-you {
	max-width: 1150px; /* restrict this div width on larger devices to 980px */
	width: 100%;
    color: white;
	line-height: 1.5;
    text-align: center;
	margin: 50px auto 0 auto; /* add 50px margin to the top and center the div horizontally with margin auto */
}

.custom-grid .number {
	font-size: clamp(1.4rem, 1.2836rem + 0.5818vw, 1.8rem);/* set size & colour of the number */
	color: white;
	font-weight: 700;
	margin-bottom: 10px;
}

.custom-grid .grid-item .title {
    color: white;
    margin: 0; /* Remove default paragraph margin */
	font-size: clamp(1.1rem, 0.9273rem + 0.3636vw, 1.25rem);
	line-height:1.35;
}


.custom-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns */
    gap: 30px; /* 30px gap */
	margin-bottom: 25px; /*add some additional bottom margin to increase breathing room */
}

@media (max-width: 1030px) {
    .custom-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns */
    }
}

@media (max-width: 767px) {
    .custom-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns */
		gap: 25px; /* 25px gap */
    }
}

@media (max-width: 575px) {
    .custom-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns */
		 }
}

.custom-grid .grid-item {
    display: flex;
    align-items: flex-start;
    justify-content: center;
	height: 100%; /* make sure the grid item fills 100% of row height */
}

.custom-grid .grid-item-content {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
    text-align: center;
}

.custom-grid .grid-item i {
    font-size: clamp(1.875rem, 1.5841rem + 1.4545vw, 2.875rem); /* Icon size */
    color: white;
	font-weight: 700;
    margin-bottom: 0; /* Space between icon and number*/
	margin-top: 35px; /* add some extra top margin above icon */
}

.custom-grid .grid-item img {
    max-width: clamp(3.125rem, 2.9432rem + 0.9091vw, 3.75rem);/* SVG icon size */
    color: white;
	margin-bottom: 0; /* If using svg icon instead of font awesome icon */
	margin-top: 35px;
}

@media (max-width: 767px) {
    .custom-grid .grid-item i {
	margin-top: 15px; /* reduce extra top margin above icon */
	}
	
	.custom-grid .grid-item img {
	margin-top: 15px; /* If using svg icon instead of font awesome icon */
	}
}


/* Footer Styles */
.footer {
    background-color: var(--color-secondary);
    color: #f5f6f7;
    padding-left: 35px;
	padding-right: 35px;
    box-sizing: border-box;
    overflow: hidden;
}

.footer .grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Four equal columns */
    gap: 50px;
    max-width: 100%;
    box-sizing: border-box;
	margin-top: 40px; /*push grid down 40px to create some extra breathing at top of footer */
}

.footer .grid h2 {
    font-size: clamp(1.15rem, 1.1713rem + 0.3704vw, 1.25rem) !important; /* set size of footer headings */
	color: white !important;
}

@media (max-width: 1023px) {
       .footer .grid {
        grid-template-columns: repeat(2, 1fr); /* Reduce number of columns in footer grid row to 2*/
		gap: 25px; /* Reduce gap size */
    }
}

@media (max-width: 575px) {
      .footer .grid {
        grid-template-columns: 1fr; /* Reduce number of columns in footer grid row to 1 */
		gap: 20px; /* Reduce gap size */
    }
  
  .footer .footer-column {
	  padding: 0; /* Remove right padding from footer grid columns when reaches mobile */
  } 
}

/* Footer social icons */
.social-icons a {
    margin-right: 10px; /* space between icons */
}


@media (max-width: 1300px) {
   .footer {
	Padding-bottom: 125px; /*increase footer section bottom padding above standard section padding to accommodate translation widget on smaller devices */
   }
}

@media (max-width: 767px) {
  #fcol-3 {
	  display: none; /*hide last 2 footer columns on tablet * mobile */
  }
  #fcol-4 {
	  display: none;
  }
}

.footer .footer-column {
    padding: 0 20px 0 0;
    box-sizing: border-box;
    word-wrap: break-word;
} 

.footer a {
	color: #f5f6f7;
	text-decoration: none !important;

}
.footer a:hover {
	color: var(--color-hover-state);
	text-decoration: underline;
}

.footer h3 {
	color: #f5f6f7 /* Change colour of h3 heading in footer */
}
.footer p { 
	font-size: clamp(0.9375rem, 0.8568rem + 0.0909vw, 0.9375rem); /* reduce size of p text in footer */
}
.footer ul {
	list-style-type: none; /* remove bullet points, padding and margin from footer lists */
	margin: 0;
	padding: 0;
}
.footer li { 
	font-size: clamp(0.9375rem, 0.8568rem + 0.0909vw, 0.9375rem); /* reduce size of p text in footer */
	Line-height: 3.5; /* increase line height of list items */
	border-bottom: 1px solid #3a3a3a; /* add a border between list items */
}
/* .footer li:not(:last-child) { 
	border-bottom: 1px solid #a1a1a1; /* add a border between list items 
} */

/* Responsive Styles */

section {
    width: 100%;
    box-sizing: border-box; /* Ensure full width does not exceed container */
	padding-left: 20px; /*Stanard L-R Padding on sections - override on individual section classes if need to change */
	padding-right: 20px;
	padding-top: clamp(1.875rem, 1.4205rem + 2.2727vw, 3.4375rem); /* Clamp that takes padding top and bottom from 30px on mobile to 55px on desktop */
	padding-bottom: clamp(1.875rem, 1.4205rem + 2.2727vw, 3.4375rem);
	/* outline: 2px solid red; */
}

.container {
    max-width: 1350px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
	/* outline: 2px solid red; */
}

.container-fw {
    max-width: 1600px; /*wider container for home page links */
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
	/* outline: 2px solid red; */
} 

.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
	max-width: 100%;
	box-sizing: border-box;
	}
.column {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1; /* Make columns flexible */
    max-width: 100%;
	/* outline: 2px solid yellow; */
}

/* Main Pages 2-column Layout*/
.mainrow {
  	display: flex;
	max-width: 100%;
	box-sizing: border-box;
  	/* outline: 2px solid blue; */
}

  .mainrow > #main {
  flex: 0 0 70%; /* have to apply left column width to this specific id as it surrounds left column and applying to left column directly does not work properly - cannot just target main as would reduce width of full-width pages */
  max-width: 70%;
  box-sizing: border-box;
}

.content {
	padding-right: 50px; /* div containing text content in left column */
	background: #ffffff;
}

.column.right {
  flex: 0 0 30%; /* Right column 30% of row width */
  /* outline: 2px solid yellow; */
}
.sidebar-content {
	padding: 20px; /* Add padding and white background andbottom border to sidebar content in right column */
	background: #f5f6f7;
	border-bottom: solid 1px #ccc;
}
.sidebar-content p {
	font-size: clamp(0.9375rem, 0.8568rem + 0.0909vw, 0.9375rem); /* reduce size of text in sidebar */ 
}
.sidebar-content h2 {
  font-size: clamp(1.4rem, 1.5773rem + 0.3636vw, 1.55rem) !important;
  margin-top: 1rem !important; /* override margin top rules */
  line-height: 1.2;
}

@media (max-width: 1023px) {
  .mainrow > #main {
    flex: 0 0 60%;
    max-width: 60%;
  }

  .column.right {
    flex: 0 0 40%; /* Right column 40% of row width */
  }
    
    .content {
	padding-right: 30px !important; /* Reduce padding to 30px */
  }
    
}

@media (max-width: 980px) {
  .mainrow {
    flex-direction: column; 
  }

  .column {
    flex: 1 0 auto;
  }
  
  .mainrow {
    flex-direction: column;
  }

  .mainrow > #main {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    padding-right: 0; /*remove right padding */
    }
    
.column.right {
	display: none; /* Hide the right column */
	}
    
.content {
  padding-right: 0 !important; /* remove padding from inner div in left column once collapses to single column */
    }

}

/* Home Page 2-column Layout*/
.homerow {
  	display: flex;
	max-width: 100%;
	box-sizing: border-box;
	/* outline: 2px solid blue; */
}

.column.homeleft {
    flex: 0 0 60%; /* Left column 60% of row width */
    padding-right: 30px; /* Not ideal but colum gap seems to break design */
    box-sizing: border-box;
    display: flex; /* Enable Flexbox */
    justify-content: center; /* Vertically center the content */
    align-items: flex-start; /* Horizontally lef align the content */
    min-height: 100%; /* Ensure the column takes full height of the row */
}

.column.homeright {
    flex: 0 0 40%; /* Right column 40% of row width */
    box-sizing: border-box;
    min-height: 100%; /* Ensure the column takes full height of the row */
    background-size: cover;
    background-position: center;
	min-height: clamp(21.25rem, 20.1591rem + 5.4545vw, 25rem); /* Minimum height of column to display background image */
}

@media (max-width: 1200px) {
  .column.homeleft {
    flex: 0 0 50%; /* Left column 50% of row width */
  }

  .column.homeright {
    flex: 0 0 50%; /* Right column 50% of row width */
  }
}

@media (max-width: 1023px) {
  .homerow {
    flex-direction: column;
  }

  .column {
    flex: 1 0 auto; /* reduce to 1 column layout */
  }
  
  .column.homeleft {
   padding-right: 0; /*remove right padding */
   padding-bottom: 20px; /* add bottom to create space between content and pictures on mobile */
	}
.column.homeright {
	display: block; /* Show or Hide the right column */
	}
}

/* Responsive Breakpoint Styling */

/* Desktop */
@media (min-width: 1201px) {
  /* Add styles as required*/
}

/* 1200px and below */
@media (max-width: 1200px) {
    /* Add styles as required */
}

/* 1023px and below */
@media (max-width: 1023px) {
      /* Add styles as required */
}

/* 767px and below */
@media (max-width: 767px) {
  /* Add styles as required */
  }
}

/* 575px and below */
@media (max-width: 575px) {
    /* add styles as required */
}

/* Button Styles */

/* Ensure Font Awesome is included in your HTML head or CSS */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css'); /* Example for Font Awesome 6 */

/* Base styles for the button */
.button1 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    border: 0;
    border-radius: 4px;
    color: white;
    background: var(--color-primary);
    font-weight: 500;
    font-size: clamp(0.9375rem, 0.883rem + 0.2727vw, 1.125rem);
    line-height: 1.2;
    padding: 18px 25px;
    margin: 5px 10px 5px 0;
	transition: background-color .3s ease-in-out; /*ease the hover state in and out */
    /*position: relative;  Ensure the pseudo-element is positioned relative to the button */
}

/* Styles for the button when hovered */
.button1:hover {
    background: var(--color-hover-state);
    color: white;
}

@media (max-width: 420px) {
    .button1 {
  	width: 100%; /* Make button 100% width on smaller devices */
	margin-right: 0; /* remove right margin on smaller devices */
    }
}

.twobuttons {
    margin: 10px 20px 10px 0 !important; /* additional modifying class for 2 side-by-side buttons to give them space above and below for when they stack and right margin to give them space when on same line */
}

@media (max-width: 420px) {
    .twobuttons {
        margin-right: 0 !important;/* remove unecessary right margin when they are stacked vertically on smaller screens */
    }
}

/* If add an icon, add button-icon class to button */
.button-icon i {
  margin-right: 10px;
}

/* Adding Font Awesome icon using ::after pseudo-element */
/*.button1::after {*/
    /*content: "\f061";  Font Awesome right arrow icon (using Unicode value) */
    /*font-family: "Font Awesome 5 Free";  Ensure Font Awesome font family is used */
    /*font-weight: 900;  Font Awesome icons require font-weight 900 */
    /*margin-left: 12px;  Space between text and icon */
    /*display: inline-block;
    transition: transform .25s ease-in-out; /* Smooth transition for movement */
    /*transform: translateX(0);  
}Initial position */

/* Animation effect for hover 
.button1:hover::after {
    transform: translateX(5px);  
} Move the arrow 5px to the right */

		
	/* Add the focus effect to this button only for keyboard users */
   .button1:focus-visible {
    outline: 4px dotted var(--color-focus-outline); 
	background: var(--color-hover-state);
	border: none;
	}	
	/* Remove focus effect for this button when clicked with a mouse */
	.button1:focus:not(:focus-visible) {
		background: var(--color-hover-state);
		outline: none; /* Removes the orange dotted border */
 	 }

			.button1:active {
			background: var(--color-hover-state);
		}

/* Alternative Button */

			.button1.alt {
			background: var(--color-primary);
			color: #fff !important;
		}

			button1.alt:hover,
			.button1.alt:hover {
				background: var(--color-hover-state);
			}
			
	/* Add the focus effect to this button only for keyboard users */
   .button1:focus-visible {
    outline: 4px dotted var(--color-focus-outline); 
	background: var(--color-hover-state);
	border: none;
	}	
	/* Remove focus effect for this button when clicked with a mouse */
	.button1:focus:not(:focus-visible) {
		background: var(--color-hover-state);
		outline: none; /* Removes the orange dotted border */
 	 }
	 
			.button1.alt:active {
				background: var(--color-hover-state);
			}

	/* Icon before button text */
		.button1.icon:before {
			opacity: 0.35;
			position: relative;
			top: 0.05em;
			margin-right: 0.75em;
		}
		
		
	/* Make sidebar buttons 100% width */	
		.sidebarbutton {
			width: 100%; /* Additional class to make sidebar buttons full width */
			text-align: center;
		}
/*=== Alert Card ===*/ 
.alertcard { 
	background-color: #F5F6F7; 
	border: 1px solid #ccc; 
	padding: 25px; 
} 
 
.alertcard h2 { 
	margin-top: 0 !important; 
} 
 
/*Target the first image with the class news-image to make it 100% and ignore padding inside the card to act as a featured image */ 
.alertcard .news-image {  
	display: block;  
	width: calc(100% + 50px);  
	max-width: none;  
	margin: -25px -25px 25px -25px !important; /* CSS to make image overcome the padding in the div and add some bottom margin */  
	aspect-ratio: 850 / 440 !important;  
	object-fit: cover; /* fit to image proportions */  
	object-position: center center; /* which part of image to show */  
}

/*=== Google Map directions form ===*/
.directions-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.directions-form input[type="text"] {
  flex: 1;
  min-width: 0;
}

/* stack Google Map directions button under input on small screens */
@media (max-width: 480px) {
  .directions-form input[type="text"] {
    flex: 1 1 100%; /* input takes its own full line */
  }
  .directions-form .form-button {
    flex: 0 0 auto; /* button stays its natural width, wraps below input */
  }
}

/*=== General Form Styling ===*/
.form-field,
.form-button { /* shared attributes of form field and buton */
  box-sizing: border-box;
  font-size: 0.925rem;
  line-height: 1.2;
  border-radius: 6px;
  margin-bottom: 1rem
}

.form-field {
  padding: 18px 12px;
  font-weight: 300;
  border: 1px solid #ccc;
  color: var(--color-secondary) !important;
}

.form-field::placeholder {
  color: #666;
}

.form-field:focus-visible {
  outline: 4px solid var(--color-focus-outline);
  outline-offset: 1px;
  box-shadow: 0 0 5px rgba(69, 104, 161, 0.75);
}


.form-button {
  padding: 18px !important;
  background-color: var(--color-primary);
  color: #fff !important; /* adjust if needed */
  border: none; /* buttons don't need the grey border like inputs do — remove this line if you want the border too */
  font-weight: 600;
  cursor: pointer;
  transition: background-color .25s ease-in-out;
}

.form-button:hover {
  background-color: var(--color-secondary);
}


.form-button:focus-visible {
  background-color: var(--color-secondary);
  outline: 4px solid var(--color-focus-outline);
  outline-offset: 1px;
}                                                                                                                                                                                                                       /* ==================================================
   Accordion Styling - right aligned icon
   ================================================== */

/* Style accordian toggle */

  .accordion-toggle {
  display: flex;                   /* align icon and text */
  align-items: center;             /* vertical alignment */
  position: relative;              /* needed for ::before */
  padding-left: 0;            /* space for pseudo-icon */
  padding-right: 0;             /* NEW: reserves space for the right-hand icon circle so text never touches it, even on mobile */
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit; /* inherits the h2's font instead of default button font */
  box-sizing: border-box;          /* NEW: ensures padding is included in the 100% width, not added on top — fixes text running under the icon on narrow screens */
}

/*Style accordian toggle h2 */
  .card-header h2 button.accordion-toggle {
  display: block;
  color: #333 !important;
  font-size: clamp(1.15rem, 1.1209rem + 0.1455vw, 1.25rem) !important;
  text-decoration: none !important;
  margin: 0 !important;      /* was 12px 0 — caused margin collapse above the grey bg */
  line-height: 1.5 !important;
}


/* Add + sign using pseudo-element */
.accordion-heading .accordion-toggle::before {
  content: "+";
  position: absolute;
  right: 0.5rem;                  /* CHANGED from left:0 — now sits inset from the right edge */
  top: 50%;
  transform: translateY(-50%);
  /* width: 28px;                     /* NEW: fixed circle size */
  /* height: 28px;                    /* NEW: fixed circle size */
  display: flex;                   /* NEW: centers the +/- inside the circle */
  align-items: center;
  justify-content: center;
  flex-shrink: 0;                  /* NEW: stops the circle squashing on narrow screens */
  /* background-color: #4568A1;       /* NEW: blue circle */
  /* border-radius: 50%;              /* NEW: makes it round */
  /* color: #fff;                     /* NEW: white icon */
  font-size: 1.5rem !important;      /* separate from heading text size */
  line-height: 1;
  transition: transform 0.3s ease, content 0.3s ease;
}

/* When accordion is active, change + to − */
.accordion-heading .accordion-toggle.active::before {
  content: "−";
}

/* Basic card/border styling (was coming from Bootstrap originally) */
.accordion .card {
  border: 1px solid rgba(0,0,0,0.125);
  border-radius: 4px;
  margin-bottom: 0.75rem;
}
.accordion .card-header {
  background-color: rgba(0,0,0,0.03);
  border-bottom: 1px solid rgba(0,0,0,0.125);
}

.accordion .card-body {
  padding: 1rem 1.25rem;
}

.accordion .card-body > :first-child {
    margin-top: 0 !important; /* no top margin on first element in card */
}

.accordion .card-body > :last-child {
    margin-bottom: 0 !important; /* no bottom margin on last element in card */
}

.accordian .card-body h2, h3 {
    font-size: clamp(1.15rem, 1.1209rem + 0.1455vw, 1.25rem) /* headings inside card body - should use h3 as opener heading is h2 */
}

/* Vanilla collapse behavior (was Bootstrap's .collapse) */
.accordion .collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-toggle:focus-visible {
  outline-offset: 4px; /* increase to push keyboard focus further out, e.g. 6px or 8px */
}

/* ==================================================
   Card Header & Heading Spacing
   ================================================== */

/* Adjust card-header padding */
.accordion .card-header {
  padding-top: 12px;
  padding-bottom: 12px;
  padding-left: 1rem;
  padding-right: 1rem;
}
.accordion .card-header h2.accordion-heading {
  margin: 0 !important;
}

/* ==================================================
   CMS Editing Override — forces accordion panels open
   inside Surreal CMS editor only, no effect on front end
   ================================================== */
.is-cms .accordion .collapse {
  max-height: none !important;   /* overrides both the 0 default and any inline JS-set max-height */
  overflow: visible !important;  /* ensures content isn't clipped even if max-height calc is off */
}

.is-cms .accordion [inert] {
  /* placeholder in case inert still causes issues in the editor — test first */
}

/* ==================================================
   CLINIC TABLE
   ================================================== */

.tableheadertext {font-weight: 600; 
  line-height: 1.25em;
  }

.clinictable {
	background-color: #CCC;
	border-spacing: 1px;
	line-height: 1.4rem;
    margin-top: 0.5em;
	border-radius: 0;
    width: 100%;
}

.clinictable th {padding: 12px; text-align: left; font-weight: 600; font-size: 1em; background-color: #f7f7f7 }
.clinictable td {padding: 12px; text-align: left;}
.clinictable tr:nth-child(even) {background-color: #f7f7f7}	
.clinictable tr:nth-child(odd) {background-color: #ffffff}	
.clinictable p {margin-bottom:1.25em; padding-bottom:0;}
.clinictable h2 {font-size: 1.25em; line-height: 1.3em; margin-bottom: 1em;}
.clinictable h3 {font-size: 1.25em; line-height: 1.3em; margin-bottom: 1em;}

.clinictable .oh-label {width: 50%} /* make opening hours table 50% equal columns */
.clinictable .oh-value {width: 50%}

/* horizontal rule styles */
hr {
    height: 1px; 
    border: none;
    background-color: #E5E7F2;
    margin: 35px 0; /*increase top and bottom margins from browser defaults */
}
/* Blockquotes */
blockquote {
    border-left: 3px solid var(--color-primary);
    padding: 15px 20px;
    margin: 1.75rem 0;
}

blockquote > :first-child {
    margin-top: 0 !important;
} /* remove top margins from first children because of blockquote padding */


blockquote p:last-child,
blockquote ul:last-child,
blockquote ol:last-child {
    margin-bottom: 0; /* remove bottom margins from last children because of blockquote padding */
}

blockquote ul, ol {
    padding-left: 1.5rem; 
}

/*=== Google Map directions form ===*/
.directions-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.directions-form input[type="text"] {
  flex: 1;
  min-width: 0;
}

/* stack Google Map directions button under input on small screens */
@media (max-width: 480px) {
  .directions-form input[type="text"] {
    flex: 1 1 100%; /* input takes its own full line */
  }
  .directions-form .form-button {
    flex: 0 0 auto; /* button stays its natural width, wraps below input */
  }
}

/* Intro div home page */

#intro {
    margin-bottom: 75px; 
    text-align: center; 
    width: 100%; 
    max-width: 1200px; 
    margin-left: auto; 
    margin-right: auto;
}

@media (max-width: 767px) {
    #intro {
    margin-bottom: 50px;  /* reduce bottom margin */
    text-align: left;  /* switch to left aligned text */
    }
}

.intro-left {
  text-align: left !important; /* override center text align on intros with modifier class */
  max-width: 100% !important; /* remove width restriction */
}
