/* =========================================================
   GLOBAL
   ========================================================= */
body {
  background-color: #E0EAF2;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 400 !important;
}

/* Consistent focus styling (valid CSS, accessible) */
:focus-visible {
  outline: 3px solid #0066cc !important;
  outline-offset: 3px !important;
  font-weight: 400;
}

/* =========================================================
   HEADER / HERO BUTTONS
   ========================================================= */

/* Rounded hero buttons */
.prototype-template .header .header-large .important-menu .menu li a {
  width: 220px;
  border-radius: 40px;
  border: 2px solid #fff;
  background-color: #0066cc;
  color: #fff;
  transition: all 0.25s ease-in;
  vertical-align: middle;
  cursor: pointer;
  transform: scale(1);
}

.prototype-template .header .header-large .important-menu .menu li a:hover {
  background-color: gold;
  color: #000;
  font-weight: bold;
}

/* Text in buttons (menu buttons) */
.menu.menu-buttons a {
  display: inline-block;
  width: 190px;
  padding: 15px 30px;
  border: 2px solid #000;
  color: #000;
  text-align: center;
  text-decoration: none;
  margin: 0 8px;
  vertical-align: middle;
}

/* Main nav hover */
.prototype-template .header .header-small .container .main-menu ul li a:hover {
  color: #e6e6e6;
  border-color: #fff;
  background-color: #0066b3;
  box-shadow: 0 5px 1px 0px gold;
  border-radius: 3px;
}

/* Hero opaque background panel */
.prototype-template .header .header-large .background {
  margin: 0 auto;
  padding: 1em;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 50px;
}

/* =========================================================
   BRANCH ICONS / SITE CONTACT
   ========================================================= */

/* Coloured hospital icon */
.prototype-template .header .header-large .sites .site-contact .photo .fa-inverse {
  color: #0066b3;
}

.prototype-template .header .header-large .sites .site-contact {
  flex-basis: 30%;
}

/* Branch icons on homepage */
.fa-inverse {
  background-color: #ffffff;
  background-image: none;
  background-repeat: repeat;
  color: #003399;
  box-sizing: border-box;
  box-shadow: 0px 2px 2px 2px rgba(30, 116, 245, 1);
  -webkit-box-shadow: 0px 2px 2px 2px rgba(30, 116, 245, 1);
  -moz-box-shadow: 0px 2px 2px 2px rgba(30, 116, 245, 1);
  border-radius: 40px;
}

/* =========================================================
   SLIDESHOW
   ========================================================= */
.slideshow-widget .carousel-control,
.slideshow-widget .play_control,
.slideshow-widget .carousel-indicators {
  z-index: 1;
}

.slideshow-widget .play_control {
  margin-left: 10px;
  position: absolute;
  bottom: 0px;
  background: none;
  border: 0;
  outline: none;
  color: #ffffff;
}

.slideshow-widget .play_control:hover {
  color: #fff;
  text-decoration: none;
  filter: alpha(opacity=100);
  outline: 0;
  opacity: 1;
}

#slideshowwidget_1394 > div.widget-item-container {
  background-color: #fff;
}

/* =========================================================
   CONTENT BLOCKS / WIDGETS
   ========================================================= */
#ContentBlocksContainer .widget-row.minrow {
  margin-bottom: 20px;
  min-height: 20px;
}

/* Footer blue border */
div.further-information-container {
  border-top: 5px solid #025eb8;
}

/* Rounded boxes with shadow */
#ContentBlocksContainer .widget-row .container .widget-container .widget-item {
  flex: 3;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 10px;
  border-radius: 12px;
}

/* Make all widget items white (as you had) */
.widget-item {
  background-color: white;
}

/* Default H3/H4 */
.style-default h3,
.style-default h4 {
  color: #005eb8;
}

/* =========================================================
   IMAGE WIDGETS
   ========================================================= */
.image-widget.ImageBasic .image-widget-image img {
  position: static;
  max-width: 100%;
  border-radius: 8px;
}

#imagewidget_240434 > div.image-widget-container {
  border-radius: 22px;
  box-shadow: none;
}

.image-widget-container {
  border-radius: 15px;
  overflow: hidden;
}

div.image-widget {
  border: solid 1px #005EB8;
}

/* =========================================================
   BLOG / NEWS
   ========================================================= */

/* Blog page content card */
#BlogPage .blog-post .blog-text {
  flex: 3;
  padding: 2rem;
  overflow: hidden;
  background-color: #fff;
  border-radius: 12px !important;
  border: 1px solid #d8d8d8;
  box-shadow: 7px 6px 11px -3px rgba(0, 0, 0, 0.1);
}

#BlogPage .blog-post {
  background-color: #fff;
}

/* NEWS BLOCK ON HOMEPAGE */

/* Title styling (fixed invalid white-space, plus safe overflow protection) */
#ContentBlocksContainer .widget-row .container .widget-container
.widget-item.blog-widget .feed a .blog-post .title {
  font-weight: normal;
  line-height: 2.5rem;
  background: radial-gradient(circle at 50% 50%, #0066cc, #005dc3, #0054ba, #004bb1, #0042a8, #00399e, #003195, #00288c, #001f82, #001579, #000a6f, #000066);
  padding: 6px;
  color: #fff;
  border-radius: 8px 8px 0 0;

  /* Prevent long titles blowing the layout */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Blog post container */
#ContentBlocksContainer .widget-row .container .widget-container
.widget-item.blog-widget .feed a .blog-post {
  padding: 0 0 6px 0;
  background-color: #fff;
  border-radius: 8px;
  border: dotted gray 1px;
  margin: 1px 1px 6px 1px;
  box-shadow: rgba(173, 216, 230, 0.35) 1.95px 1.95px 2.6px !important;

  /* Safety: never let inner content force width */
  max-width: 100%;
  overflow: hidden;
}

#ContentBlocksContainer .widget-row .container .widget-container
.widget-item.blog-widget .feed a .blog-post:hover {
  box-shadow: rgba(173, 216, 230, 0.75) 1.95px 1.95px 2.6px !important;
}

/* Outer link wrapper */
#ContentBlocksContainer .widget-row .container .widget-container
.widget-item.blog-widget .feed a {
  text-decoration: none;
  background-color: #fff;
  display: inline-block;
  padding: 1px;
  transition: transform 0.3s ease-in-out;
  max-width: 100%;
}

/* Focus colours */
#ContentBlocksContainer .widget-row .container .widget-container
.widget-item.blog-widget .feed a:focus .blog-post .title {
  outline: none;
  color: #fff;
  background-color: #fae100;
  border-color: #000;
}

#ContentBlocksContainer .widget-row .container .widget-container
.widget-item.blog-widget .feed a:focus .blog-post .body {
  outline: none;
  color: #000;
  background-color: #b0a1dc24;
  border-color: #000;
}

/* Hover effect (reduced scale to lower risk of clipping on smaller layouts) */
#ContentBlocksContainer .widget-row .container .widget-container
.widget-item.blog-widget .feed a:hover {
  transform: scale(1.03);
  background-color: transparent;
}

/* Main text padding */
#blogWidget_2535 > div.widget-item-container > div > a:nth-child(n) > div > div.body {
  padding: 5px;
}

/* =========================================================
   SPECIFIC WIDGET ROWS / PANELS
   ========================================================= */

/* Whole div background */
#widget-row-332680 div.widget-item-container {
  background-color: #009cdc;
  border-radius: 12px;
}

/* =========================================================
   INFO EXPANDERS
   ========================================================= */
#informationwidget_240656 {
  background-color: #fff;
  border-radius: 12px;
}

#informationwidget_257104 > details {
  background-color: #fff;
  border-radius: 12px;
}

.nhsuk-details[open] .nhsuk-details__text {
  animation: expand-details 0.6s ease-in-out;
}

@keyframes expand-details {
  0% { max-height: 0; opacity: 0; }
  100% { max-height: 300px; opacity: 1; }
}

/* =========================================================
   BRIGHT IMAGE HOVER (HOMEPAGE)
   ========================================================= */
#imagewidget_240696 img,
#imagewidget_240697 img,
#imagewidget_240699 img,
#imagewidget_240880 img,
#imagewidget_240879 img,
#imagewidget_240882 img {
  -webkit-filter: saturate(200%);
  filter: saturate(200%);
  -webkit-transition: 0.5s ease;
  transition: 0.5s ease;
  transform: scale(0.95);
}

#imagewidget_240696 img:hover,
#imagewidget_240697 img:hover,
#imagewidget_240699 img:hover,
#imagewidget_240880 img:hover,
#imagewidget_240879 img:hover,
#imagewidget_240882 img:hover {
  -webkit-filter: saturate(50%);
  filter: saturate(50%);
  transform: scale(0.93);
}

/* =========================================================
   CAROUSEL TITLE
   ========================================================= */
#carousel_1351 h2 {
  color: white;
}

/* =========================================================
   ABOUT US DIVIDER
   ========================================================= */
#informationwidget_230144 hr {
  border: 0;
  height: 1px;
  background-image: linear-gradient(to right,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.2),
    rgba(0, 0, 0, 0)
  );
}

/* =========================================================
   FORMS
   ========================================================= */

/* Form header */
#FormPage .form-header .jumbotron {
  margin-top: 20px;
  margin-bottom: 0;
  background: linear-gradient(90deg, rgba(5, 67, 136, 1) 0%, rgba(10, 129, 254, 1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#054388",endColorstr="#0a81fe",GradientType=1);
  box-shadow: -4px 15px 15px 0px rgba(62, 124, 230, 0.66);
}

/* Submit button */
#formTemp > div.form-group.pull-right > div.row.pull-right > button {
  border-radius: 8px;
  background: rgb(5, 67, 136);
  color: white;
  padding: 1.2em 3em;
  font-weight: bold;
  font-size: 1em;
}

/* IMPORTANT: scoped so it doesn't affect random site text */
#FormPage .container p span span {
  color: white !important;
}

/* Blue "find a pharmacy" buttons */
#section_38996_description > p > a,
#section_37865_description a {
  display: block;
  padding: 10px 20px;
  font-size: 16px;
  color: white;
  background-color: #0056b3;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  font-weight: bold;
}

#section_38996_description > p > a:hover,
#section_37865_description a:hover {
  background-color: #0197f6;
  cursor: pointer;
}

/* Whole panel */
.style-default #bootstrap-square .panel {
  border-radius: 12px;
  border: 1px solid gray;
  box-shadow: rgba(50, 50, 93, 0.3) 0px 6px 12px -2px,
              rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

/* Inputs */
.style-default #bootstrap-square input,
.style-default #bootstrap-square select,
.style-default #bootstrap-square textarea {
  border-radius: 8px;
}

.style-default #bootstrap-square .input-group-addon {
  border-radius: 8px;
}

.style-default #bootstrap-square .dropdown-menu {
  border-radius: 6px;
}

#FormPage .question .question-title label {
  font-weight: 600;
  margin-left: 10px;
  color: #000;
}

/* Search input & buttons (kept as you had) */
#fullSearchText,
button {
  border-radius: 3px !important;
}

/* =========================================================
   SERVICES PAGE BLUE BOX
   ========================================================= */
#informationwidget_242499 {
  background-color: #0066b3;
  border: 5px solid #fff;
  padding: 15px 10px;
}

#informationwidget_242499 h3,
#informationwidget_242499 h4,
#informationwidget_242499 p,
#informationwidget_242499 li {
  color: white !important;
}

#informationwidget_242499 a {
  color: white;
}

/* =========================================================
   HOMEPAGE eCONSULT WIDGET
   ========================================================= */

/* Mobile behaviour: full width content, hide image */
@media screen and (max-width: 768px) {
  #informationwidget_240635 .content {
    width: 100%;
    padding: 0 !important;
    max-width: 100%;
  }

  #informationwidget_240635 .img-responsive {
    display: none;
  }

  /* If this anchor ID changes, this rule simply won't apply (safe). */
  #informationwidget_240635 h3#mcetoc_1hsq0pn144 a {
    display: block;
    color: white !important;
  }
}

#informationwidget_240635 {
  padding: 10px !important;
  background: radial-gradient(circle at 50% 50%, #0066cc, #005dc3, #0054ba, #004bb1, #0042a8, #00399e, #003195, #00288c, #001f82, #001579, #000a6f, #000066) !important;
  color: white;
}

#informationwidget_240635 .content {
  max-width: 80%;
  margin: auto;
}

#informationwidget_240635 h2 {
  margin-bottom: 30px;
  color: white !important;
}

#informationwidget_240635 p {
  color: white !important;
  margin-bottom: 30px !important;
  font-size: 1.3em !important;
}

#informationwidget_240635 h3 a {
  background-color: #E34141 !important;
  color: white !important;
  padding: 10px 40px !important;
  border-radius: 50px !important;
  text-align: center !important;
  margin-top: 30px;
  outline: 2px solid black;
  box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
  font-size: 1.2em !important;
  display: inline-block; /* safer sizing */
}

#informationwidget_240635 h3 a:hover {
  transition: background-color 0.5s ease;
  background-color: gold !important;
  color: #000 !important;
  text-decoration: none;
}

#informationwidget_240635 .img-responsive {
  float: right;
  margin-left: 20px;
}

#informationwidget_240635 ul {
  list-style-type: none;
}

/* =========================================================
   APPOINTMENTS PAGE eCONSULT WIDGET
   ========================================================= */
@media screen and (max-width: 768px) {
  #informationwidget_242563 .content {
    width: 100% !important;
    padding: 0 !important;
    max-width: 100%;
  }

  #informationwidget_242563 .img-responsive {
    display: none;
  }

  #informationwidget_242563 h3#mcetoc_1hsq0pn144 a {
    display: block;
    color: white !important;
  }
}

#informationwidget_242563 {
  width: 100%;
  padding: 10px !important;
  background: radial-gradient(circle at 50% 50%, #0066cc, #005dc3, #0054ba, #004bb1, #0042a8, #00399e, #003195, #00288c, #001f82, #001579, #000a6f, #000066) !important;
  color: white;
}

#informationwidget_242563 .content {
  max-width: 90%;
  margin: auto;
}

#informationwidget_242563 h2 {
  margin-bottom: 30px;
  color: white !important;
}

#informationwidget_242563 p {
  color: white !important;
  margin-bottom: 30px !important;
  font-size: 1.1em !important;
}

#informationwidget_242563 h3 a {
  background-color: #E34141 !important;
  color: white !important;
  padding: 10px 40px !important;
  border-radius: 50px !important;
  text-align: center !important;
  margin-top: 30px;
  outline: 2px solid black;
  box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
  font-size: 1.2em !important;
  display: inline-block;
}

#informationwidget_242563 h3 a:hover {
  transition: background-color 0.5s ease;
  background-color: gold !important;
  color: #000 !important;
  text-decoration: none;
}

#informationwidget_242563 .img-responsive {
  float: right;
  margin-left: 20px; /* fixed: removed stray comment closer */
}

#informationwidget_242563 ul {
  list-style-type: none;
}

/* =========================================================
   TEMPORARY NEWS POST STYLING
   ========================================================= */
#BlogPost14354 img {
  border-radius: 12px !important;
  border: 1px dotted #d8d8d8;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 8px 10px, rgba(0, 0, 0, 0.1) 0px 5px 8px;
}

/* =========================================================
   BLOG POST 14412 IMAGE EFFECT
   ========================================================= */
#BlogPost14412 {
  align-items: center;
}

#BlogPost14412 > div.blog-image {
  background-color: #fcfcfc;
  border: 2px dashed lightsteelblue;
  transition: transform 0.6s ease-in-out;
  transform: scale(0.9);
  box-shadow: 10px 10px 10px #bebebe, -20px -20px 20px #ffffff;
}

#BlogPost14412 > div.blog-image:hover {
  transform: scale(1.1) rotate(-3deg);
  transition: transform 0.5s ease-in-out;
  box-shadow: 10px 10px 10px aliceblue, -20px -20px 20px aliceblue;
}

/* =========================================================
   INFO WIDGET 244177 CTA
   ========================================================= */
#informationwidget_244177 h3 {
  text-align: center;
}

#informationwidget_244177 h3 a {
  background: #0f7ac2;
  background-image: linear-gradient(to bottom, #0f7ac2, #2b2bb8);
  border-radius: 28px;
  box-shadow: 0px 1px 3px #666666;
  font-family: Arial;
  color: #ffffff;
  font-size: 22px;
  padding: 10px 20px;
  text-decoration: none;
  display: inline-block;
}

#informationwidget_244177 h3 a:hover {
  background: gold;
  color: #000;
  padding: 10px 24px;
  text-decoration: none;
}

/* =========================================================
   EXTRA PRICES TABLE
   ========================================================= */
#informationwidget_232296 {
  background-color: #fff;
}

#informationwidget_232296 table {
  border-collapse: separate;
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-family: 'Roboto', sans-serif;
  background: #fff;
}

#informationwidget_232296 thead {
  background: linear-gradient(135deg, #0066b3, #005499);
  color: white;
}

#informationwidget_232296 th,
#informationwidget_232296 td {
  padding: 12px 20px;
  text-align: left;
  text-transform: none;
  border-bottom: none;
}

#informationwidget_232296 th {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#informationwidget_232296 tbody tr:nth-child(even) {
  background-color: #f8faff;
}

#informationwidget_232296 tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

#informationwidget_232296 tbody tr:hover {
  background-color: #e0e7ff;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s, box-shadow 0.3s;
}

/* =========================================================
   SOCIAL MEDIA ICONS
   ========================================================= */
#bootstrap-square > div.further-information-container > div > div > div.social-media > div > a:nth-child(1) > svg {
  fill: #0066cc;
}

#bootstrap-square > div.further-information-container > div > div > div.social-media > div > a:nth-child(2) > svg {
  fill: #B9770E;
}

/* =========================================================
   PPG JOIN BUTTON
   ========================================================= */
#informationwidget_224613 > div.widget-item-container > div > p:nth-child(5) {
  text-align: center;
}

#informationwidget_224613 > div.widget-item-container > div > p:nth-child(5) > a {
  display: inline-block;
  background-color: #0066cc;
  padding: 10px 30px;
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
}

#informationwidget_224613 > div.widget-item-container > div > p:nth-child(5) > a:hover {
  background-color: gold;
  color: #000;
  text-decoration: none;
}

/* =========================================================
   OPENING TIMES TABLES
   ========================================================= */
table.styled-table,
table.opening-times-table {
  width: 100%;
  background-color: #fff;
  border-collapse: collapse;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  font-family: 'Open Sans', sans-serif;
}

table.styled-table tr,
table.opening-times-table tr {
  border-top: none;
}

table.styled-table tr:nth-child(odd),
table.opening-times-table tr:nth-child(odd) {
  background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.1));
}

table.styled-table th,
table.opening-times-table th {
  background-color: #0066b3;
  color: #fff;
  padding: 10px;
  font-weight: 500;
  font-size: 16px;
}

table.styled-table td,
table.opening-times-table td {
  border: 0.5px solid #eee;
  color: #333;
  font-weight: 400;
  padding: 10px;
  font-size: 16px;
}

table.styled-table tr:hover,
table.opening-times-table tr:hover {
  background-color: rgba(29, 128, 185, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

/* =========================================================
   SICK NOTE BUTTON (FIXED: removed SCSS & nested hover)
   ========================================================= */
#informationwidget_224551 > div > div > p:nth-child(8) {
  display: flex;
  justify-content: center;
}

#informationwidget_224551 > div > div > p:nth-child(8) > a {
  background-color: #0066cc;
  display: inline-block;
  color: #fff !important;
  padding: 20px 30px;
  border-radius: 50px;
  margin-top: 30px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400 !important;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
  text-decoration: none;
}

#informationwidget_224551 > div > div > p:nth-child(8) > a:hover {
  color: #000 !important;
  background-color: gold;
  text-decoration: none;
}

/* =========================================================
   NEWS BUTTONS (as-is)
   ========================================================= */
#BlogPost16151 > div:nth-child(1) > div:nth-child(3) > p:nth-child(11) > a:nth-child(1),
#BlogPost16083 > div:nth-child(1) > div:nth-child(3) > p:nth-child(9) > a,
#BlogPost14613 > div > div:nth-child(3) > div:nth-child(6) > div:nth-child(3) > a,
#informationwidget_256039 > div > div > div:nth-child(7) > a,
#BlogPost17839 > div.blog-text > div:nth-child(3) > div:nth-child(11) > div:nth-child(2) > a {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 25px;
  background-color: #0066cc;
  color: #fff !important;
  text-align: center;
  font-weight: 600;
  border: 1px solid #182599;
  text-decoration: none;
}

/* =========================================================
   NHS NUMBER IMAGE
   ========================================================= */
#imagewidget_243824 img {
  opacity: 1;
  filter: saturate(2);
  transition: filter 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

#imagewidget_243824 img:hover {
  filter: saturate(4);
}

/* Image widget heading */
.image-widget-heading {
  font-size: 1.5em;
}

/* Flu box */
#imagewidget_261703 img {
  padding: 8px;
  border-radius: 8px;
  box-sizing: border-box;
  filter: saturate(100%);
  transition: transform 0.5s ease, filter 0.5s ease;
  transform: scale(1);
}

#imagewidget_261703 img:hover {
  transform: scale(1.05);
  filter: saturate(60%);
}

#imagewidget_261703 > a > div {
  background-color: white;
}

/* =========================================================
   PAGE CONTAINERS (FIXED: removed fit-content layout risk)
   ========================================================= */
div#WidgetPage,
div#AppointmentsPage {
  background-color: #fff;
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  padding: 15px;
  border: solid 1px #0066b3;
  border-radius: 10px;
  box-sizing: border-box;
}

/* Newsletter panel */
div#Newsletters.col-md-3 {
  background-color: #0066b3;
  padding: 5px;
  border-radius: 4px;
}

div#Newsletters.col-md-3 h3 { color: #fff; }
div.newsletter a { color: #fff; }
div.date,
span.date { color: #acacac !important; }

/* Blog post border */
.blog-post,
.styled-container {
  border: solid 1px #0067b3 !important;
}

/* This property was invalid: border-radius: none;
   "0" is the correct CSS value. */
.blog-text {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Page title */
#PageTitleDisplay {
  border-bottom: 2px dotted #0066be;
}

/* BlogPost18751 image */
#BlogPost18751 img.img-responsive {
  box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px,
              rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
  border: 1px solid #bbbebf;
  transition: transform 0.3s ease;
}

#BlogPost18751 img.img-responsive:hover {
  transform: scale(1.5) rotate(-5deg);
}

/* FIND A PHARMACY BUTTON & NOMINATE */
#section_39447_description a,
#section_39455_description a {
  display: block;
  background-color: #0066cc;
  padding: 10px 30px;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 3px solid #fff;
  text-decoration: none;
  width: 100%;
}

#section_39447_description a:hover,
#section_39455_description a:hover {
  background-color: #004c99;
}

/* data-link button */
a[data-link-id="427800"] {
  display: inline-block;
  background-color: #0066cc;
  color: white;
  font-weight: bold;
  text-decoration: none;
  padding: 5px;
  border-radius: 4px;
}

a[data-link-id="427800"]:hover {
  background-color: gold;
  color: black;
}

/* Hover effect link button */
a[data-link-id="349901"] {
  display: inline-block;
  padding: 20px;
  background-color: #006699;
  color: white;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  transition-duration: 0.4s;
  cursor: pointer;
  border: none;
  border-radius: 60px;
  width: 100%;
}

a[data-link-id="349901"]:hover {
  background-color: #ffff33;
  color: #000;
}

/* Specific MSK image */
img.img-responsive[src*="fileId=373422"] {
  display: block;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 4px;
  background: #fff;
}

/* =========================================================
   STAFF LIST PHOTO TREATMENT
   ========================================================= */
#StaffList .grid.list .list-item .list-content .img-container.img-circle {
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 3px #ffffff,
    0 0 0 5px #005eb8,
    0 10px 20px rgba(0, 0, 0, 0.1);
  margin: 12px auto;
  transition: all 0.3s ease;
}

#StaffList .grid.list .list-item .list-content .img-container .img {
  background-size: 115%;
  border-radius: 120px;
}

#StaffList .grid.list .list-item .list-content .img-container::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 94, 184, 0.25) 0%, transparent 60%);
  pointer-events: none;
  z-index: 2;
  border-radius: 120px;
}

#StaffList .grid.list .list-item .list-content .img-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  z-index: 3;
  filter: blur(1px);
}

/* =========================================================
   OPTIONAL: Reduced motion support (safe; only affects users who opt in)
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
/* FIX: eConsult banner headings turning blue (override global heading colour) */
#informationwidget_240635 h1,
#informationwidget_240635 h2,
#informationwidget_240635 h3,
#informationwidget_240635 h4,
#informationwidget_240635 p,
#informationwidget_240635 li,
#informationwidget_240635 a {
  color: #fff !important;
}
/* ==========================================================
   HOMEPAGE HEADER: Modern Glass (lighter frosted panel)
   ========================================================== */

.prototype-template .header .header-large .background {
  /* lighter glass base */
  background: rgba(0, 0, 0, 0.44) !important; /* lighter than before */

  /* frosted blur */
  backdrop-filter: blur(16px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(160%) !important;

  /* shape + spacing */
  border-radius: 50px !important;
  padding: 26px 30px !important;
  margin: 0 auto !important;

  /* premium glass edge + glow */
  border: 1px solid rgba(255, 255, 255, 0.22) !important;

  /* layered shadow for depth */
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

/* subtle highlight (gives a true glass look) */
.prototype-template .header .header-large .background::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50px;
  pointer-events: none;

  /* top highlight */
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.10),
    rgba(255,255,255,0.03) 40%,
    rgba(0,0,0,0.03)
  );

  /* ensures it sits above the background */
  mix-blend-mode: screen;
}

/* IMPORTANT: background needs positioning so ::before works */
.prototype-template .header .header-large .background {
  position: relative;
}

/* keep text readable */
.prototype-template .header .header-large .background * {
  text-shadow: 0 2px 10px rgba(0,0,0,0.50);
}
#ContentBlocksContainer .widget-row .container .widget-container 
.widget-item.blog-widget .feed a .blog-post .title {
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;         /* 2 lines */
  -webkit-box-orient: vertical;
}
@media (max-width: 768px){
  div#WidgetPage, div#AppointmentsPage{
    padding: 12px;
  }
  .prototype-template .header .header-large .background{
    border-radius: 24px;
    padding: 12px;
  }
}
@media (max-width: 768px){
  div#WidgetPage, div#AppointmentsPage{
    padding: 12px;
  }
  .prototype-template .header .header-large .background{
    border-radius: 24px;
    padding: 12px;
  }
}
/* =========================================================
   GLOBAL
   ========================================================= */
body {
  background-color: #E0EAF2;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 400 !important;
}

/* Consistent focus styling (valid CSS, accessible) */
:focus-visible {
  outline: 3px solid #0066cc !important;
  outline-offset: 3px !important;
  font-weight: 400;
}

/* =========================================================
   HEADER / HERO BUTTONS
   ========================================================= */

/* Rounded hero buttons */
.prototype-template .header .header-large .important-menu .menu li a {
  width: 220px;
  border-radius: 40px;
  border: 2px solid #fff;
  background-color: #0066cc;
  color: #fff;
  transition: all 0.25s ease-in;
  vertical-align: middle;
  cursor: pointer;
  transform: scale(1);
}

.prototype-template .header .header-large .important-menu .menu li a:hover {
  background-color: gold;
  color: #000;
  font-weight: bold;
}

/* Text in buttons (menu buttons) */
.menu.menu-buttons a {
  display: inline-block;
  width: 190px;
  padding: 15px 30px;
  border: 2px solid #000;
  color: #000;
  text-align: center;
  text-decoration: none;
  margin: 0 8px;
  vertical-align: middle;
}

/* Main nav hover */
.prototype-template .header .header-small .container .main-menu ul li a:hover {
  color: #e6e6e6;
  border-color: #fff;
  background-color: #0066b3;
  box-shadow: 0 5px 1px 0px gold;
  border-radius: 3px;
}

/* Hero opaque background panel */
.prototype-template .header .header-large .background {
  margin: 0 auto;
  padding: 1em;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 50px;
}

/* =========================================================
   BRANCH ICONS / SITE CONTACT
   ========================================================= */

/* Coloured hospital icon */
.prototype-template .header .header-large .sites .site-contact .photo .fa-inverse {
  color: #0066b3;
}

.prototype-template .header .header-large .sites .site-contact {
  flex-basis: 30%;
}

/* Branch icons on homepage */
.fa-inverse {
  background-color: #ffffff;
  background-image: none;
  background-repeat: repeat;
  color: #003399;
  box-sizing: border-box;
  box-shadow: 0px 2px 2px 2px rgba(30, 116, 245, 1);
  -webkit-box-shadow: 0px 2px 2px 2px rgba(30, 116, 245, 1);
  -moz-box-shadow: 0px 2px 2px 2px rgba(30, 116, 245, 1);
  border-radius: 40px;
}

/* =========================================================
   SLIDESHOW
   ========================================================= */
.slideshow-widget .carousel-control,
.slideshow-widget .play_control,
.slideshow-widget .carousel-indicators {
  z-index: 1;
}

.slideshow-widget .play_control {
  margin-left: 10px;
  position: absolute;
  bottom: 0px;
  background: none;
  border: 0;
  outline: none;
  color: #ffffff;
}

.slideshow-widget .play_control:hover {
  color: #fff;
  text-decoration: none;
  filter: alpha(opacity=100);
  outline: 0;
  opacity: 1;
}

#slideshowwidget_1394 > div.widget-item-container {
  background-color: #fff;
}

/* =========================================================
   CONTENT BLOCKS / WIDGETS
   ========================================================= */
#ContentBlocksContainer .widget-row.minrow {
  margin-bottom: 20px;
  min-height: 20px;
}

/* Footer blue border */
div.further-information-container {
  border-top: 5px solid #025eb8;
}

/* Rounded boxes with shadow */
#ContentBlocksContainer .widget-row .container .widget-container .widget-item {
  flex: 3;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 10px;
  border-radius: 12px;
}

/* Make all widget items white (as you had) */
.widget-item {
  background-color: white;
}

/* Default H3/H4 */
.style-default h3,
.style-default h4 {
  color: #005eb8;
}

/* =========================================================
   IMAGE WIDGETS
   ========================================================= */
.image-widget.ImageBasic .image-widget-image img {
  position: static;
  max-width: 100%;
  border-radius: 8px;
}

#imagewidget_240434 > div.image-widget-container {
  border-radius: 22px;
  box-shadow: none;
}

.image-widget-container {
  border-radius: 15px;
  overflow: hidden;
}

div.image-widget {
  border: solid 1px #005EB8;
}

/* =========================================================
   BLOG / NEWS
   ========================================================= */

/* Blog page content card */
#BlogPage .blog-post .blog-text {
  flex: 3;
  padding: 2rem;
  overflow: hidden;
  background-color: #fff;
  border-radius: 12px !important;
  border: 1px solid #d8d8d8;
  box-shadow: 7px 6px 11px -3px rgba(0, 0, 0, 0.1);
}

#BlogPage .blog-post {
  background-color: #fff;
}

/* NEWS BLOCK ON HOMEPAGE */

/* Title styling (fixed invalid white-space, plus safe overflow protection) */
#ContentBlocksContainer .widget-row .container .widget-container
.widget-item.blog-widget .feed a .blog-post .title {
  font-weight: normal;
  line-height: 2.5rem;
  background: radial-gradient(circle at 50% 50%, #0066cc, #005dc3, #0054ba, #004bb1, #0042a8, #00399e, #003195, #00288c, #001f82, #001579, #000a6f, #000066);
  padding: 6px;
  color: #fff;
  border-radius: 8px 8px 0 0;

  /* Prevent long titles blowing the layout */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Blog post container */
#ContentBlocksContainer .widget-row .container .widget-container
.widget-item.blog-widget .feed a .blog-post {
  padding: 0 0 6px 0;
  background-color: #fff;
  border-radius: 8px;
  border: dotted gray 1px;
  margin: 1px 1px 6px 1px;
  box-shadow: rgba(173, 216, 230, 0.35) 1.95px 1.95px 2.6px !important;

  /* Safety: never let inner content force width */
  max-width: 100%;
  overflow: hidden;
}

#ContentBlocksContainer .widget-row .container .widget-container
.widget-item.blog-widget .feed a .blog-post:hover {
  box-shadow: rgba(173, 216, 230, 0.75) 1.95px 1.95px 2.6px !important;
}

/* Outer link wrapper */
#ContentBlocksContainer .widget-row .container .widget-container
.widget-item.blog-widget .feed a {
  text-decoration: none;
  background-color: #fff;
  display: inline-block;
  padding: 1px;
  transition: transform 0.3s ease-in-out;
  max-width: 100%;
}

/* Focus colours */
#ContentBlocksContainer .widget-row .container .widget-container
.widget-item.blog-widget .feed a:focus .blog-post .title {
  outline: none;
  color: #fff;
  background-color: #fae100;
  border-color: #000;
}

#ContentBlocksContainer .widget-row .container .widget-container
.widget-item.blog-widget .feed a:focus .blog-post .body {
  outline: none;
  color: #000;
  background-color: #b0a1dc24;
  border-color: #000;
}

/* Hover effect (reduced scale to lower risk of clipping on smaller layouts) */
#ContentBlocksContainer .widget-row .container .widget-container
.widget-item.blog-widget .feed a:hover {
  transform: scale(1.03);
  background-color: transparent;
}

/* Main text padding */
#blogWidget_2535 > div.widget-item-container > div > a:nth-child(n) > div > div.body {
  padding: 5px;
}

/* =========================================================
   SPECIFIC WIDGET ROWS / PANELS
   ========================================================= */

/* Whole div background */
#widget-row-332680 div.widget-item-container {
  background-color: #009cdc;
  border-radius: 12px;
}

/* =========================================================
   INFO EXPANDERS
   ========================================================= */
#informationwidget_240656 {
  background-color: #fff;
  border-radius: 12px;
}

#informationwidget_257104 > details {
  background-color: #fff;
  border-radius: 12px;
}

.nhsuk-details[open] .nhsuk-details__text {
  animation: expand-details 0.6s ease-in-out;
}

@keyframes expand-details {
  0% { max-height: 0; opacity: 0; }
  100% { max-height: 300px; opacity: 1; }
}

/* =========================================================
   BRIGHT IMAGE HOVER (HOMEPAGE)
   ========================================================= */
#imagewidget_240696 img,
#imagewidget_240697 img,
#imagewidget_240699 img,
#imagewidget_240880 img,
#imagewidget_240879 img,
#imagewidget_240882 img {
  -webkit-filter: saturate(200%);
  filter: saturate(200%);
  -webkit-transition: 0.5s ease;
  transition: 0.5s ease;
  transform: scale(0.95);
}

#imagewidget_240696 img:hover,
#imagewidget_240697 img:hover,
#imagewidget_240699 img:hover,
#imagewidget_240880 img:hover,
#imagewidget_240879 img:hover,
#imagewidget_240882 img:hover {
  -webkit-filter: saturate(50%);
  filter: saturate(50%);
  transform: scale(0.93);
}

/* =========================================================
   CAROUSEL TITLE
   ========================================================= */
#carousel_1351 h2 {
  color: white;
}

/* =========================================================
   ABOUT US DIVIDER
   ========================================================= */
#informationwidget_230144 hr {
  border: 0;
  height: 1px;
  background-image: linear-gradient(to right,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.2),
    rgba(0, 0, 0, 0)
  );
}

/* =========================================================
   FORMS
   ========================================================= */

/* Form header */
#FormPage .form-header .jumbotron {
  margin-top: 20px;
  margin-bottom: 0;
  background: linear-gradient(90deg, rgba(5, 67, 136, 1) 0%, rgba(10, 129, 254, 1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#054388",endColorstr="#0a81fe",GradientType=1);
  box-shadow: -4px 15px 15px 0px rgba(62, 124, 230, 0.66);
}

/* Submit button */
#formTemp > div.form-group.pull-right > div.row.pull-right > button {
  border-radius: 8px;
  background: rgb(5, 67, 136);
  color: white;
  padding: 1.2em 3em;
  font-weight: bold;
  font-size: 1em;
}

/* IMPORTANT: scoped so it doesn't affect random site text */
#FormPage .container p span span {
  color: white !important;
}

/* Blue "find a pharmacy" buttons */
#section_38996_description > p > a,
#section_37865_description a {
  display: block;
  padding: 10px 20px;
  font-size: 16px;
  color: white;
  background-color: #0056b3;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  font-weight: bold;
}

#section_38996_description > p > a:hover,
#section_37865_description a:hover {
  background-color: #0197f6;
  cursor: pointer;
}

/* Whole panel */
.style-default #bootstrap-square .panel {
  border-radius: 12px;
  border: 1px solid gray;
  box-shadow: rgba(50, 50, 93, 0.3) 0px 6px 12px -2px,
              rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

/* Inputs */
.style-default #bootstrap-square input,
.style-default #bootstrap-square select,
.style-default #bootstrap-square textarea {
  border-radius: 8px;
}

.style-default #bootstrap-square .input-group-addon {
  border-radius: 8px;
}

.style-default #bootstrap-square .dropdown-menu {
  border-radius: 6px;
}

#FormPage .question .question-title label {
  font-weight: 600;
  margin-left: 10px;
  color: #000;
}

/* Search input & buttons (kept as you had) */
#fullSearchText,
button {
  border-radius: 3px !important;
}

/* =========================================================
   SERVICES PAGE BLUE BOX
   ========================================================= */
#informationwidget_242499 {
  background-color: #0066b3;
  border: 5px solid #fff;
  padding: 15px 10px;
}

#informationwidget_242499 h3,
#informationwidget_242499 h4,
#informationwidget_242499 p,
#informationwidget_242499 li {
  color: white !important;
}

#informationwidget_242499 a {
  color: white;
}

/* =========================================================
   HOMEPAGE eCONSULT WIDGET
   ========================================================= */

/* Mobile behaviour: full width content, hide image */
@media screen and (max-width: 768px) {
  #informationwidget_240635 .content {
    width: 100%;
    padding: 0 !important;
    max-width: 100%;
  }

  #informationwidget_240635 .img-responsive {
    display: none;
  }

  /* If this anchor ID changes, this rule simply won't apply (safe). */
  #informationwidget_240635 h3#mcetoc_1hsq0pn144 a {
    display: block;
    color: white !important;
  }
}

#informationwidget_240635 {
  padding: 10px !important;
  background: radial-gradient(circle at 50% 50%, #0066cc, #005dc3, #0054ba, #004bb1, #0042a8, #00399e, #003195, #00288c, #001f82, #001579, #000a6f, #000066) !important;
  color: white;
}

#informationwidget_240635 .content {
  max-width: 80%;
  margin: auto;
}

#informationwidget_240635 h2 {
  margin-bottom: 30px;
  color: white !important;
}

#informationwidget_240635 p {
  color: white !important;
  margin-bottom: 30px !important;
  font-size: 1.3em !important;
}

#informationwidget_240635 h3 a {
  background-color: #E34141 !important;
  color: white !important;
  padding: 10px 40px !important;
  border-radius: 50px !important;
  text-align: center !important;
  margin-top: 30px;
  outline: 2px solid black;
  box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
  font-size: 1.2em !important;
  display: inline-block; /* safer sizing */
}

#informationwidget_240635 h3 a:hover {
  transition: background-color 0.5s ease;
  background-color: gold !important;
  color: #000 !important;
  text-decoration: none;
}

#informationwidget_240635 .img-responsive {
  float: right;
  margin-left: 20px;
}

#informationwidget_240635 ul {
  list-style-type: none;
}

/* =========================================================
   APPOINTMENTS PAGE eCONSULT WIDGET
   ========================================================= */
@media screen and (max-width: 768px) {
  #informationwidget_242563 .content {
    width: 100% !important;
    padding: 0 !important;
    max-width: 100%;
  }

  #informationwidget_242563 .img-responsive {
    display: none;
  }

  #informationwidget_242563 h3#mcetoc_1hsq0pn144 a {
    display: block;
    color: white !important;
  }
}

#informationwidget_242563 {
  width: 100%;
  padding: 10px !important;
  background: radial-gradient(circle at 50% 50%, #0066cc, #005dc3, #0054ba, #004bb1, #0042a8, #00399e, #003195, #00288c, #001f82, #001579, #000a6f, #000066) !important;
  color: white;
}

#informationwidget_242563 .content {
  max-width: 90%;
  margin: auto;
}

#informationwidget_242563 h2 {
  margin-bottom: 30px;
  color: white !important;
}

#informationwidget_242563 p {
  color: white !important;
  margin-bottom: 30px !important;
  font-size: 1.1em !important;
}

#informationwidget_242563 h3 a {
  background-color: #E34141 !important;
  color: white !important;
  padding: 10px 40px !important;
  border-radius: 50px !important;
  text-align: center !important;
  margin-top: 30px;
  outline: 2px solid black;
  box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
  font-size: 1.2em !important;
  display: inline-block;
}

#informationwidget_242563 h3 a:hover {
  transition: background-color 0.5s ease;
  background-color: gold !important;
  color: #000 !important;
  text-decoration: none;
}

#informationwidget_242563 .img-responsive {
  float: right;
  margin-left: 20px; /* fixed: removed stray comment closer */
}

#informationwidget_242563 ul {
  list-style-type: none;
}

/* =========================================================
   TEMPORARY NEWS POST STYLING
   ========================================================= */
#BlogPost14354 img {
  border-radius: 12px !important;
  border: 1px dotted #d8d8d8;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 8px 10px, rgba(0, 0, 0, 0.1) 0px 5px 8px;
}

/* =========================================================
   BLOG POST 14412 IMAGE EFFECT
   ========================================================= */
#BlogPost14412 {
  align-items: center;
}

#BlogPost14412 > div.blog-image {
  background-color: #fcfcfc;
  border: 2px dashed lightsteelblue;
  transition: transform 0.6s ease-in-out;
  transform: scale(0.9);
  box-shadow: 10px 10px 10px #bebebe, -20px -20px 20px #ffffff;
}

#BlogPost14412 > div.blog-image:hover {
  transform: scale(1.1) rotate(-3deg);
  transition: transform 0.5s ease-in-out;
  box-shadow: 10px 10px 10px aliceblue, -20px -20px 20px aliceblue;
}

/* =========================================================
   INFO WIDGET 244177 CTA
   ========================================================= */
#informationwidget_244177 h3 {
  text-align: center;
}

#informationwidget_244177 h3 a {
  background: #0f7ac2;
  background-image: linear-gradient(to bottom, #0f7ac2, #2b2bb8);
  border-radius: 28px;
  box-shadow: 0px 1px 3px #666666;
  font-family: Arial;
  color: #ffffff;
  font-size: 22px;
  padding: 10px 20px;
  text-decoration: none;
  display: inline-block;
}

#informationwidget_244177 h3 a:hover {
  background: gold;
  color: #000;
  padding: 10px 24px;
  text-decoration: none;
}

/* =========================================================
   EXTRA PRICES TABLE
   ========================================================= */
#informationwidget_232296 {
  background-color: #fff;
}

#informationwidget_232296 table {
  border-collapse: separate;
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-family: 'Roboto', sans-serif;
  background: #fff;
}

#informationwidget_232296 thead {
  background: linear-gradient(135deg, #0066b3, #005499);
  color: white;
}

#informationwidget_232296 th,
#informationwidget_232296 td {
  padding: 12px 20px;
  text-align: left;
  text-transform: none;
  border-bottom: none;
}

#informationwidget_232296 th {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#informationwidget_232296 tbody tr:nth-child(even) {
  background-color: #f8faff;
}

#informationwidget_232296 tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

#informationwidget_232296 tbody tr:hover {
  background-color: #e0e7ff;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s, box-shadow 0.3s;
}

/* =========================================================
   SOCIAL MEDIA ICONS
   ========================================================= */
#bootstrap-square > div.further-information-container > div > div > div.social-media > div > a:nth-child(1) > svg {
  fill: #0066cc;
}

#bootstrap-square > div.further-information-container > div > div > div.social-media > div > a:nth-child(2) > svg {
  fill: #B9770E;
}

/* =========================================================
   PPG JOIN BUTTON
   ========================================================= */
#informationwidget_224613 > div.widget-item-container > div > p:nth-child(5) {
  text-align: center;
}

#informationwidget_224613 > div.widget-item-container > div > p:nth-child(5) > a {
  display: inline-block;
  background-color: #0066cc;
  padding: 10px 30px;
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
}

#informationwidget_224613 > div.widget-item-container > div > p:nth-child(5) > a:hover {
  background-color: gold;
  color: #000;
  text-decoration: none;
}

/* =========================================================
   OPENING TIMES TABLES
   ========================================================= */
table.styled-table,
table.opening-times-table {
  width: 100%;
  background-color: #fff;
  border-collapse: collapse;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  font-family: 'Open Sans', sans-serif;
}

table.styled-table tr,
table.opening-times-table tr {
  border-top: none;
}

table.styled-table tr:nth-child(odd),
table.opening-times-table tr:nth-child(odd) {
  background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.1));
}

table.styled-table th,
table.opening-times-table th {
  background-color: #0066b3;
  color: #fff;
  padding: 10px;
  font-weight: 500;
  font-size: 16px;
}

table.styled-table td,
table.opening-times-table td {
  border: 0.5px solid #eee;
  color: #333;
  font-weight: 400;
  padding: 10px;
  font-size: 16px;
}

table.styled-table tr:hover,
table.opening-times-table tr:hover {
  background-color: rgba(29, 128, 185, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

/* =========================================================
   SICK NOTE BUTTON (FIXED: removed SCSS & nested hover)
   ========================================================= */
#informationwidget_224551 > div > div > p:nth-child(8) {
  display: flex;
  justify-content: center;
}

#informationwidget_224551 > div > div > p:nth-child(8) > a {
  background-color: #0066cc;
  display: inline-block;
  color: #fff !important;
  padding: 20px 30px;
  border-radius: 50px;
  margin-top: 30px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400 !important;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
  text-decoration: none;
}

#informationwidget_224551 > div > div > p:nth-child(8) > a:hover {
  color: #000 !important;
  background-color: gold;
  text-decoration: none;
}

/* =========================================================
   NEWS BUTTONS (as-is)
   ========================================================= */
#BlogPost16151 > div:nth-child(1) > div:nth-child(3) > p:nth-child(11) > a:nth-child(1),
#BlogPost16083 > div:nth-child(1) > div:nth-child(3) > p:nth-child(9) > a,
#BlogPost14613 > div > div:nth-child(3) > div:nth-child(6) > div:nth-child(3) > a,
#informationwidget_256039 > div > div > div:nth-child(7) > a,
#BlogPost17839 > div.blog-text > div:nth-child(3) > div:nth-child(11) > div:nth-child(2) > a {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 25px;
  background-color: #0066cc;
  color: #fff !important;
  text-align: center;
  font-weight: 600;
  border: 1px solid #182599;
  text-decoration: none;
}

/* =========================================================
   NHS NUMBER IMAGE
   ========================================================= */
#imagewidget_243824 img {
  opacity: 1;
  filter: saturate(2);
  transition: filter 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

#imagewidget_243824 img:hover {
  filter: saturate(4);
}

/* Image widget heading */
.image-widget-heading {
  font-size: 1.5em;
}

/* Flu box */
#imagewidget_261703 img {
  padding: 8px;
  border-radius: 8px;
  box-sizing: border-box;
  filter: saturate(100%);
  transition: transform 0.5s ease, filter 0.5s ease;
  transform: scale(1);
}

#imagewidget_261703 img:hover {
  transform: scale(1.05);
  filter: saturate(60%);
}

#imagewidget_261703 > a > div {
  background-color: white;
}

/* =========================================================
   PAGE CONTAINERS (FIXED: removed fit-content layout risk)
   ========================================================= */
div#WidgetPage,
div#AppointmentsPage {
  background-color: #fff;
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  padding: 15px;
  border: solid 1px #0066b3;
  border-radius: 10px;
  box-sizing: border-box;
}

/* Newsletter panel */
div#Newsletters.col-md-3 {
  background-color: #0066b3;
  padding: 5px;
  border-radius: 4px;
}

div#Newsletters.col-md-3 h3 { color: #fff; }
div.newsletter a { color: #fff; }
div.date,
span.date { color: #acacac !important; }

/* Blog post border */
.blog-post,
.styled-container {
  border: solid 1px #0067b3 !important;
}

/* This property was invalid: border-radius: none;
   "0" is the correct CSS value. */
.blog-text {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Page title */
#PageTitleDisplay {
  border-bottom: 2px dotted #0066be;
}

/* BlogPost18751 image */
#BlogPost18751 img.img-responsive {
  box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px,
              rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
  border: 1px solid #bbbebf;
  transition: transform 0.3s ease;
}

#BlogPost18751 img.img-responsive:hover {
  transform: scale(1.5) rotate(-5deg);
}

/* FIND A PHARMACY BUTTON & NOMINATE */
#section_39447_description a,
#section_39455_description a {
  display: block;
  background-color: #0066cc;
  padding: 10px 30px;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 3px solid #fff;
  text-decoration: none;
  width: 100%;
}

#section_39447_description a:hover,
#section_39455_description a:hover {
  background-color: #004c99;
}

/* data-link button */
a[data-link-id="427800"] {
  display: inline-block;
  background-color: #0066cc;
  color: white;
  font-weight: bold;
  text-decoration: none;
  padding: 5px;
  border-radius: 4px;
}

a[data-link-id="427800"]:hover {
  background-color: gold;
  color: black;
}

/* Hover effect link button */
a[data-link-id="349901"] {
  display: inline-block;
  padding: 20px;
  background-color: #006699;
  color: white;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  transition-duration: 0.4s;
  cursor: pointer;
  border: none;
  border-radius: 60px;
  width: 100%;
}

a[data-link-id="349901"]:hover {
  background-color: #ffff33;
  color: #000;
}

/* Specific MSK image */
img.img-responsive[src*="fileId=373422"] {
  display: block;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 4px;
  background: #fff;
}

/* =========================================================
   STAFF LIST PHOTO TREATMENT
   ========================================================= */
#StaffList .grid.list .list-item .list-content .img-container.img-circle {
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 3px #ffffff,
    0 0 0 5px #005eb8,
    0 10px 20px rgba(0, 0, 0, 0.1);
  margin: 12px auto;
  transition: all 0.3s ease;
}

#StaffList .grid.list .list-item .list-content .img-container .img {
  background-size: 115%;
  border-radius: 120px;
}

#StaffList .grid.list .list-item .list-content .img-container::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 94, 184, 0.25) 0%, transparent 60%);
  pointer-events: none;
  z-index: 2;
  border-radius: 120px;
}

#StaffList .grid.list .list-item .list-content .img-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  z-index: 3;
  filter: blur(1px);
}

/* =========================================================
   OPTIONAL: Reduced motion support (safe; only affects users who opt in)
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
/* ==========================================================
   HOMEPAGE BRANCH TILES UPGRADE (SAFE + SCOPED)
   Only affects: header-large branch tiles (.sites .site-contact)
   ========================================================== */

/* Tile layout + glass card */
.prototype-template .header .header-large .sites .site-contact {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;

  padding: 18px 18px 16px !important;
  border-radius: 18px !important;

  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22) !important;

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

/* Hover lift (desktop only) */
@media (hover: hover) and (pointer: fine) {
  .prototype-template .header .header-large .sites .site-contact:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.30) !important;
    background: rgba(255, 255, 255, 0.11) !important;
  }
}

/* Title: stronger hierarchy */
.prototype-template .header .header-large .sites .site-contact .name,
.prototype-template .header .header-large .sites .site-contact h3,
.prototype-template .header .header-large .sites .site-contact h4 {
  margin: 0 0 8px 0 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  letter-spacing: 0.2px;
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

/* Address: slightly softer */
.prototype-template .header .header-large .sites .site-contact p,
.prototype-template .header .header-large .sites .site-contact .address {
  margin: 0 0 12px 0 !important;
  color: rgba(255, 255, 255, 0.88) !important;
  font-weight: 600 !important;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0,0,0,0.30);
}

/* Phone pill CTA */
.prototype-template .header .header-large .sites .site-contact a[href^="tel:"],
.prototype-template .header .header-large .sites .site-contact .phone {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;

  padding: 10px 18px !important;
  border-radius: 999px !important;

  background: rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;

  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 800 !important;

  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

/* Phone hover (desktop only) */
@media (hover: hover) and (pointer: fine) {
  .prototype-template .header .header-large .sites .site-contact a[href^="tel:"]:hover {
    transform: translateY(-1px);
    background: rgba(0, 0, 0, 0.35) !important;
    border-color: rgba(255, 255, 255, 0.32) !important;
  }
}

/* Mobile: keep tiles tidy and avoid cramped look */
@media (max-width: 768px) {
  .prototype-template .header .header-large .sites .site-contact {
    padding: 14px 14px 12px !important;
    border-radius: 16px !important;
  }
}
/* ==========================================================
   MODERN PILL BUTTONS (Homepage branch buttons)
   ========================================================== */

.prototype-template .header .header-large .important-menu .menu li a {
  width: 220px;
  padding: 16px 18px;
  border-radius: 999px;

  /* Modern NHS blue gradient */
  background: linear-gradient(180deg, #0a74da 0%, #005eb8 100%) !important;

  color: #fff !important;
  text-decoration: none !important;
  font-weight: 650;
  letter-spacing: 0.2px;

  border: 1px solid rgba(255,255,255,0.25) !important;

  /* Soft modern depth */
  box-shadow:
    0 10px 24px rgba(0, 40, 90, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.25);

  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background .18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  transform: translateZ(0);
}

.prototype-template .header .header-large .important-menu .menu li a:hover {
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.05) saturate(1.1);

  box-shadow:
    0 16px 34px rgba(0, 40, 90, 0.34),
    0 0 0 3px rgba(250, 225, 0, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.22);

  background: linear-gradient(180deg, #0b7df0 0%, #0054a5 100%) !important;
}

.prototype-template .header .header-large .important-menu .menu li a:active {
  transform: translateY(-1px) scale(1.01);
}

.prototype-template .header .header-large .important-menu .menu li a:focus-visible {
  outline: 3px solid rgba(250,225,0,0.75);
  outline-offset: 4px;
}
/* ==========================================================
   MODERN eCONSULT PILL BUTTONS (matches branch buttons)
   Safe: only affects eConsult widgets 240635 + 242563
   Paste at very bottom of your CSS
   ========================================================== */

/* HOMEPAGE eConsult button */
#informationwidget_240635 h3 a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;

  border-radius: 999px !important;
  padding: 14px 34px !important;

  font-weight: 650 !important;
  letter-spacing: 0.2px !important;

  color: #fff !important;
  text-decoration: none !important;

  /* NHS "glass pill" look */
  background: linear-gradient(180deg, #e34141 0%, #b00020 100%) !important;
  border: 1px solid rgba(255,255,255,0.22) !important;

  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255,255,255,0.22) !important;

  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background .18s ease !important;
}

/* Hover */
#informationwidget_240635 h3 a:hover {
  transform: translateY(-3px) scale(1.02) !important;
  filter: brightness(1.05) saturate(1.1) !important;

  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.30),
    0 0 0 3px rgba(250, 225, 0, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.18) !important;

  background: linear-gradient(180deg, #ff4d4d 0%, #a1001c 100%) !important;
  color: #000 !important;  /* optional: makes gold hover more readable */
}

/* Focus ring */
#informationwidget_240635 h3 a:focus-visible {
  outline: 3px solid rgba(250,225,0,0.75) !important;
  outline-offset: 4px !important;
}

/* APPOINTMENTS PAGE eConsult button */
#informationwidget_242563 h3 a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;

  border-radius: 999px !important;
  padding: 14px 34px !important;

  font-weight: 650 !important;
  letter-spacing: 0.2px !important;

  color: #fff !important;
  text-decoration: none !important;

  background: linear-gradient(180deg, #e34141 0%, #b00020 100%) !important;
  border: 1px solid rgba(255,255,255,0.22) !important;

  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255,255,255,0.22) !important;

  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background .18s ease !important;
}

#informationwidget_242563 h3 a:hover {
  transform: translateY(-3px) scale(1.02) !important;
  filter: brightness(1.05) saturate(1.1) !important;

  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.30),
    0 0 0 3px rgba(250, 225, 0, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.18) !important;

  background: linear-gradient(180deg, #ff4d4d 0%, #a1001c 100%) !important;
  color: #000 !important;
}

#informationwidget_242563 h3 a:focus-visible {
  outline: 3px solid rgba(250,225,0,0.75) !important;
  outline-offset: 4px !important;
}
/* Make Information Widget 257104 card white */
#informationwidget_257104.nhsuk-card.widget-item.information-widget.styled-container,
#informationwidget_257104 {
  background: #fff !important;
  background-color: #fff !important;
}

/* If the grey is actually on the inner container */
#informationwidget_257104 .widget-item-container,
#informationwidget_257104 .nhsuk-card__content {
  background: #fff !important;
  background-color: #fff !important;
}
/* NHS BLUE frosted glass behind the branch cards (header background panel) */
.prototype-template .header .header-large .background {
  background: rgba(0, 94, 184, 0.23) !important;          /* NHS Blue tint */
  border: 1px solid rgba(255, 255, 255, 0.22) !important; /* subtle glass edge */
  border-radius: 50px !important;

  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);

  box-shadow:
    0 18px 45px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.18) !important;
}
/* ===========================================
   MODERN BRANCH SURGERY CARDS (SAFE + SCOPED)
   Only affects the two "branch surgery" blocks
=========================================== */

.prototype-template .header .header-large .sites .site-contact {
  /* modern frosted NHS blue glass */
  background: rgba(0, 94, 184, 0.34) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  border-radius: 26px !important;

  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);

  /* depth */
  box-shadow:
    0 18px 40px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.14) !important;

  padding: 22px 18px !important;

  /* smoother spacing + alignment */
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* subtle glossy highlight (modern glass feel) */
.prototype-template .header .header-large .sites .site-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 15%, rgba(255,255,255,0.18), transparent 55%);
  pointer-events: none;
}

/* hover = slight lift, feels modern */
.prototype-template .header .header-large .sites .site-contact:hover {
  transform: translateY(-3px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow:
    0 22px 55px rgba(0,0,0,0.42),
    inset 0 1px 0 rgba(255,255,255,0.16) !important;
}

/* keep the text readable on glass */
.prototype-template .header .header-large .sites .site-contact,
.prototype-template .header .header-large .sites .site-contact a,
.prototype-template .header .header-large .sites .site-contact p,
.prototype-template .header .header-large .sites .site-contact h3,
.prototype-template .header .header-large .sites .site-contact h4 {
  color: #fff !important;
}

/* ===========================================
   ICON MODERNISATION
   This is the "hospital icon bubble"
=========================================== */

/* the circle that holds the icon */
.prototype-template .header .header-large .sites .site-contact .photo {
  width: 110px;
  height: 110px;
  margin: 0 auto 12px auto !important;
  border-radius: 999px;

  background: rgba(255,255,255,0.92) !important;
  border: 2px solid rgba(255,255,255,0.35) !important;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow:
    0 10px 20px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

/* Make icon actually centred and consistent */
.prototype-template .header .header-large .sites .site-contact .photo i,
.prototype-template .header .header-large .sites .site-contact .photo svg {
  display: block;
  margin: 0 auto !important;
}

/* icon colour = NHS blue */
.prototype-template .header .header-large .sites .site-contact .photo .fa-inverse {
  color: #005eb8 !important;
}

/* small ring/glow around icon bubble (modern UI) */
.prototype-template .header .header-large .sites .site-contact .photo::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(0, 94, 184, 0.35);
  pointer-events: none;
}

.prototype-template .header .header-large .sites .site-contact a[href^="tel:"],
.prototype-template .header .header-large .sites .site-contact .site-phone {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  padding: 12px 18px !important;
  border-radius: 999px !important;

  background: rgba(0,0,0,0.22) !important;
  border: 1px solid rgba(255,255,255,0.22) !important;

  font-weight: 600;
  letter-spacing: 0.2px;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 10px 18px rgba(0,0,0,0.25);
}

.prototype-template .header .header-large .sites .site-contact a[href^="tel:"]:hover {
  background: rgba(0,0,0,0.32) !important;
  transform: translateY(-1px);
}
/* =========================================================
   HOMEPAGE NEWS (blogWidget_2535) – SAFE, NO LAYOUT CHANGES
   Fixes the “blue slab” break by undoing flex changes
========================================================= */

/* Hard reset of the structural changes that broke layout */
#blogWidget_2535 .feed a .blog-post {
  display: block !important;     /* was flex */
  align-items: unset !important;
}

/* Outer link spacing kept tight */
#blogWidget_2535 .feed a {
  display: block !important;
  padding: 4px 0 !important;
  margin: 0 !important;
  text-decoration: none !important;
  background: transparent !important;
}

/* Card styling only (safe) */
#blogWidget_2535 .feed a .blog-post {
  background: #fff !important;
  border-radius: 14px !important;
  border: 1px solid rgba(0, 94, 184, 0.16) !important;
  overflow: hidden !important;
  box-shadow:
    0 10px 22px rgba(16, 24, 40, 0.08),
    0 2px 6px rgba(16, 24, 40, 0.05) !important;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* Title bar – subtle NHS gradient, reduced padding */
#blogWidget_2535 .feed a .blog-post .title {
  padding: 9px 12px !important;      /* smaller */
  margin: 0 !important;
  font-weight: 700 !important;
  font-size: 1.02rem !important;
  line-height: 1.2 !important;
  color: #fff !important;

  background: linear-gradient(90deg,
    #004b8d 0%,
    #0056a6 55%,
    #0062b8 100%
  ) !important;

  border-radius: 12px 12px 0 0 !important;
}

/* Body padding tightened */
#blogWidget_2535 .feed a .blog-post .body {
  padding: 10px 12px 12px 12px !important;
  color: #1f2a37 !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

/* Reduce random paragraph spacing in snippets */
#blogWidget_2535 .feed a .blog-post .body p {
  margin: 0 0 8px 0 !important;
}

/* Hover: subtle, no scaling */
#blogWidget_2535 .feed a:hover .blog-post {
  transform: translateY(-1px);
  box-shadow:
    0 14px 28px rgba(16, 24, 40, 0.12),
    0 6px 14px rgba(16, 24, 40, 0.08) !important;
}

/* IMPORTANT: remove any "yellow focus" from previous versions */
#blogWidget_2535 .feed a:focus .blog-post .title,
#blogWidget_2535 .feed a:focus-visible .blog-post .title {
  background: linear-gradient(90deg,
    #004b8d 0%,
    #0056a6 55%,
    #0062b8 100%
  ) !important;
  outline: none !important;
}
/* =========================================================
   MOBILE FIX: Branch surgery tiles in header (sites)
   - Prevent tall “pill” squeeze
   - Center content properly
   - Keep icon normal size and aligned
   Scoped to header only to avoid site-wide impact
========================================================= */

@media (max-width: 768px) {

  /* Make the two tiles sit nicely side-by-side, with real width */
  .prototype-template .header .header-large .sites {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
    justify-content: center !important;
  }

  /* Each branch tile becomes a proper card, not a vertical pill */
  .prototype-template .header .header-large .sites .site-contact {
    flex: 1 1 calc(50% - 14px) !important;
    max-width: calc(50% - 14px) !important;
    min-width: 150px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;

    padding: 14px 12px !important;
    border-radius: 18px !important;

    /* If the template adds odd heights, neutralise safely */
    height: auto !important;
  }

  /* Icon container: stop it stretching the layout */
  .prototype-template .header .header-large .sites .site-contact .photo {
    margin: 0 0 10px 0 !important;
  }

  /* IMPORTANT: Scope fa-inverse so branch icon looks good on mobile,
     without touching fa-inverse elsewhere on the site */
  .prototype-template .header .header-large .sites .site-contact .photo .fa-inverse {
    width: 64px !important;
    height: 64px !important;
    line-height: 64px !important;
    border-radius: 18px !important; /* modern rounded-square */
    box-shadow: 0 10px 18px rgba(0,0,0,0.18) !important;
    background: rgba(255,255,255,0.95) !important;
  }

  /* Make branch text readable and not oversized */
  .prototype-template .header .header-large .sites .site-contact .title,
  .prototype-template .header .header-large .sites .site-contact h3,
  .prototype-template .header .header-large .sites .site-contact h4 {
    text-align: center !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.15 !important;
    font-size: 1rem !important;
  }

  .prototype-template .header .header-large .sites .site-contact .address,
  .prototype-template .header .header-large .sites .site-contact p {
    text-align: center !important;
    margin: 0 0 10px 0 !important;
    font-size: 0.95rem !important;
    line-height: 1.2 !important;
  }

  /* Phone button: keep it compact so it doesn't force the card tall */
  .prototype-template .header .header-large .sites .site-contact a[href^="tel"],
  .prototype-template .header .header-large .sites .site-contact .phone,
  .prototype-template .header .header-large .sites .site-contact .telephone {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;

    padding: 9px 12px !important;
    border-radius: 999px !important;
    font-weight: 700 !important;

    max-width: 100% !important;
    white-space: nowrap !important;
  }

  /* If the phone number is wrapping into two lines, slightly shrink it */
  .prototype-template .header .header-large .sites .site-contact a[href^="tel"] {
    font-size: 0.95rem !important;
  }

}
/* =========================================================
   MOBILE: Branch surgery cards (safe + restores icons)
   Scoped to header branch tiles only
========================================================= */

@media (max-width: 768px) {

  /* 1) Make each branch tile a simple centered card */
  .prototype-template .header .header-large .sites {
    display: block !important;
    padding: 0 12px !important;
  }

  .prototype-template .header .header-large .sites .site-contact {
    width: 100% !important;
    max-width: 420px !important;
    margin: 0 auto 14px auto !important;
    text-align: center !important;

    padding: 14px 14px 12px !important;
    border-radius: 16px !important;

    background: rgba(0, 94, 184, 0.30) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;

    -webkit-backdrop-filter: blur(12px) saturate(135%);
    backdrop-filter: blur(12px) saturate(135%);

    box-shadow: 0 12px 26px rgba(0,0,0,0.22) !important;
  }

  /* 2) Force the icon "photo" block to behave normally and be centered */
  .prototype-template .header .header-large .sites .site-contact .photo {
    position: static !important;      /* cancels any template offsets */
    float: none !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;

    display: flex !important;
    justify-content: center !important;
    align-items: center !important;

    margin: 4px 0 10px 0 !important;
    width: 100% !important;
  }

  /* 3) The icon wrapper (your white "plate") */
  .prototype-template .header .header-large .sites .site-contact .photo > * {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 70px !important;
    height: 70px !important;

    background: rgba(255,255,255,0.96) !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 18px rgba(0,0,0,0.20) !important;

    margin: 0 auto !important;
  }

  /* 4) Restore icon visibility for common cases */

  /* FontAwesome <i class="fa ..."> */
  .prototype-template .header .header-large .sites .site-contact .photo i,
  .prototype-template .header .header-large .sites .site-contact .photo i::before {
    color: #005eb8 !important;
    font-size: 34px !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Inline SVG icons */
  .prototype-template .header .header-large .sites .site-contact .photo svg {
    width: 38px !important;
    height: 38px !important;
    fill: #005eb8 !important;
    color: #005eb8 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* If the template uses a background-image icon */
  .prototype-template .header .header-large .sites .site-contact .photo .img,
  .prototype-template .header .header-large .sites .site-contact .photo .icon {
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    width: 38px !important;
    height: 38px !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* 5) Text sizing (keeps it inside the card) */
  .prototype-template .header .header-large .sites .site-contact h3,
  .prototype-template .header .header-large .sites .site-contact h4 {
    margin: 0 0 6px 0 !important;
    font-size: 1.05rem !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    color: #fff !important;
  }

  .prototype-template .header .header-large .sites .site-contact p {
    margin: 0 0 10px 0 !important;
    font-size: 0.98rem !important;
    line-height: 1.2 !important;
    color: rgba(255,255,255,0.92) !important;
  }

  /* 6) Phone pill: never overflow */
  .prototype-template .header .header-large .sites .site-contact a[href^="tel"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;

    padding: 10px 14px !important;
    border-radius: 999px !important;

    background: rgba(0,0,0,0.22) !important;
    border: 1px solid rgba(255,255,255,0.18) !important;

    color: #fff !important;
    font-weight: 800 !important;
    font-size: 0.98rem !important;

    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-decoration: none !important;
  }
}
/* ===== Fix: stop the icon background becoming a pill (mobile branch cards) ===== */
@media (max-width: 768px) {

  /* The outer icon row must never have its own background */
  .prototype-template .header .header-large .sites .site-contact .photo {
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  /* Remove the "plate" styling from any generic direct child (this is what caused the pill) */
  .prototype-template .header .header-large .sites .site-contact .photo > * {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
  }

  /* Apply the plate ONLY to the actual icon itself */

  /* If it's an SVG */
  .prototype-template .header .header-large .sites .site-contact .photo svg {
    display: block !important;
    margin: 0 auto !important;

    width: 40px !important;
    height: 40px !important;

    padding: 14px !important;              /* creates the white plate */
    background: rgba(255,255,255,0.96) !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 18px rgba(0,0,0,0.20) !important;

    fill: #005eb8 !important;
    color: #005eb8 !important;
  }

  /* If it's FontAwesome */
  .prototype-template .header .header-large .sites .site-contact .photo i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 68px !important;
    height: 68px !important;

    background: rgba(255,255,255,0.96) !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 18px rgba(0,0,0,0.20) !important;

    color: #005eb8 !important;
    font-size: 34px !important;
  }

  .prototype-template .header .header-large .sites .site-contact .photo i::before {
    color: #005eb8 !important;
  }
}
/* =========================================================
   MOBILE FIX – Branch surgery cards
   - centres everything
   - removes blue circular ring/halo
   ========================================================= */
@media (max-width: 768px) {

  /* Centre the whole card content */
  .prototype-template .header .header-large .sites .site-contact {
    text-align: center !important;
  }

  /* Centre the icon container row */
  .prototype-template .header .header-large .sites .site-contact .photo {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto 14px auto !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  /* REMOVE the blue circular border / ring on mobile
     (this is coming from your global .fa-inverse styles) */
  .prototype-template .header .header-large .sites .site-contact .photo .fa-inverse,
  .prototype-template .header .header-large .sites .site-contact .photo i.fa-inverse,
  .prototype-template .header .header-large .sites .site-contact .photo svg {
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    filter: none !important;
  }

  /* If FontAwesome icon is used */
  .prototype-template .header .header-large .sites .site-contact .photo i {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;

    width: 68px !important;
    height: 68px !important;

    background: rgba(255,255,255,0.96) !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 18px rgba(0,0,0,0.18) !important;

    color: #005eb8 !important;
    font-size: 34px !important;

    margin: 0 auto !important;
  }

  /* If SVG icon is used */
  .prototype-template .header .header-large .sites .site-contact .photo svg {
    display: block !important;
    margin: 0 auto !important;

    width: 40px !important;
    height: 40px !important;

    padding: 14px !important;
    background: rgba(255,255,255,0.96) !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 18px rgba(0,0,0,0.18) !important;

    fill: #005eb8 !important;
    color: #005eb8 !important;
  }

  /* Make the branch names & address feel more balanced on mobile */
  .prototype-template .header .header-large .sites .site-contact .site-description h2,
  .prototype-template .header .header-large .sites .site-contact .site-description h3,
  .prototype-template .header .header-large .sites .site-contact .site-description p {
    text-align: center !important;
  }

}
/* =========================================================
   MOBILE (<=768px) – Branch surgery cards (reliable layout)
   Workaround: hide icon area to avoid template/pseudo-element conflicts
   Scope: header large -> sites only
========================================================= */
@media (max-width: 768px) {

  /* Container spacing */
  .prototype-template .header .header-large .sites {
    display: block !important;
    padding: 0 12px !important;
    margin: 0 auto !important;
  }

  /* Each branch card */
  .prototype-template .header .header-large .sites .site-contact {
    width: 100% !important;
    max-width: 430px !important;
    margin: 0 auto 14px auto !important;
    padding: 14px 14px 12px 14px !important;

    text-align: center !important;

    border-radius: 16px !important;
    background: rgba(0, 94, 184, 0.28) !important; /* subtle NHS blue tint */
    border: 1px solid rgba(255, 255, 255, 0.18) !important;

    -webkit-backdrop-filter: blur(12px) saturate(135%);
    backdrop-filter: blur(12px) saturate(135%);

    box-shadow: 0 12px 26px rgba(0,0,0,0.22) !important;
  }

  /* WORKAROUND: remove icon block on mobile so nothing can misalign */
  .prototype-template .header .header-large .sites .site-contact .photo {
    display: none !important;
  }

  /* Title styling */
  .prototype-template .header .header-large .sites .site-contact h3,
  .prototype-template .header .header-large .sites .site-contact h4,
  .prototype-template .header .header-large .sites .site-contact .title {
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
    font-size: 1.08rem !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.25) !important;
  }

  /* Address styling */
  .prototype-template .header .header-large .sites .site-contact p,
  .prototype-template .header .header-large .sites .site-contact .address {
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    font-size: 0.98rem !important;
    line-height: 1.25 !important;
    color: rgba(255,255,255,0.92) !important;
  }

  /* Phone button (tap friendly, never overflows) */
  .prototype-template .header .header-large .sites .site-contact a[href^="tel"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;

    padding: 10px 14px !important;
    border-radius: 999px !important;

    background: rgba(0,0,0,0.22) !important;
    border: 1px solid rgba(255,255,255,0.18) !important;

    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    line-height: 1 !important;

    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-decoration: none !important;
  }

  /* Ensure phone icon doesn't distort */
  .prototype-template .header .header-large .sites .site-contact a[href^="tel"] i,
  .prototype-template .header .header-large .sites .site-contact a[href^="tel"] svg {
    flex: 0 0 auto !important;
  }
}
/* =========================================================
   MOBILE FIX – News cards clipping (homepage blog widget)
   - remove fixed heights
   - allow body text to flow
   - keep tidy spacing
========================================================= */
@media (max-width: 768px) {

  /* The clickable wrapper should not crop its contents */
  #ContentBlocksContainer .widget-row .container .widget-container
  .widget-item.blog-widget .feed a {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  /* The card itself must be auto height */
  #ContentBlocksContainer .widget-row .container .widget-container
  .widget-item.blog-widget .feed a .blog-post {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  /* The body text is usually where the clipping happens */
  #ContentBlocksContainer .widget-row .container .widget-container
  .widget-item.blog-widget .feed a .blog-post .body {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    white-space: normal !important;
  }

  /* Optional: reduce body font slightly for cleaner mobile layout */
  #ContentBlocksContainer .widget-row .container .widget-container
  .widget-item.blog-widget .feed a .blog-post .body,
  #ContentBlocksContainer .widget-row .container .widget-container
  .widget-item.blog-widget .feed a .blog-post .body * {
    font-size: 0.98rem !important;
    line-height: 1.3 !important;
  }
}

