body#page {
        width: 100%;
        background-color: #67686a;
        margin: 0;
        padding: 0;
}

#secret-button {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background: #78787d;
    border: 1px solid #170b9f;
    border-radius: 15px;
    padding: 10px 18px;
    color: #170b9f;
    font-size: 18px;
    font-family: calibri;
    font-weight: bold;
    text-decoration: none;

    display: none; /* stays hidden until JS reveals it */
    opacity: 0; /* for fade-in */
    transition: opacity 0.5s ease;
    cursor: pointer;
    box-shadow: 2px 2px 2px rgba(0,0,0,0.7);

    z-index: 9999; /* ensures it overlays above everything */
}

#secret-button.show {
    opacity: 1;
}


/* Fade-out animation */
body.fade-out {
  animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}



#pagecontainer {
	width: 90%;
	margin: auto;
	position: static;
	background-color: #4e4e4f;
	z-index: 1;
	border-left: 1px solid #170b9f;
	border-right: 1px solid #170b9f;
}

.call-link {
  color: inherit;
  text-decoration: none;
  font-weight: bold;
}

h5 {
    font-family: calibri;
    font-weight: bold;
    color: #170b9f;
    font-size: 25pt;
    text-align: right;
    float: right;
    margin-right: 15%;
    margin-top: -75px;
    position: relative;
    background: #78787d; /* subtle tint */
    padding: 2px 8px;
    padding-bottom: 5px;
    border-radius: 4px;
    display: inline-block;
    border: 2px solid #170b9f;
    border-radius: 15px;
    box-shadow: 3px 3px 3px rgba(0,0,0,0.7);
    
}

html {
  scroll-behavior: smooth;
}

.dropdown hr {
  width: 60%;        /* or any size you prefer */
  margin: 8px auto;  /* auto left/right centres it */
  border: 0;
  border-top: 1px solid #170b9f; /* matches your theme */
}



.navbar {
  background-color: #78787d;
  color: #170b9f;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 2px solid #170b9f;
  border-radius: 12px;
  margin: 30px auto;
  width: fit-content;
  box-shadow: 3px 3px 3px rgba(0,0,0,0.7);
}

.navbar a,
.dropbtn {
  color: #170b9f;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: bold;
  font-size: 17px;
  border: none;   /* subtle border */
  background-color: #6f6f74;    /* slightly darker than #78787d */
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.3s ease;
  box-shadow: 2px 2px 2px rgba(0,0,0,0.7);
  
}

.navbar a:hover,
.dropdown:hover .dropbtn {
  background-color: #6a6a6f;
  box-shadow: 3px 3px 3px rgba(0,0,0,0.7);
  transform: scale(1.1);
}

.navbar a:active {
    transform: scale(0.9);
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #78787d;
  min-width: 160px;
  border: 1px solid #170b9f;
  border-radius: 8px;
  box-shadow: 5px 5px 5px rgba(0,0,0,0.7);
  z-index: 1;
  text-align: center;
  width: fit-content;
}

.dropdown-content a {
  color: #170b9f;
  padding: 10px 5px;
  text-decoration: none;
  display: block;
  border-radius: 6px;
  width: 80%;
  text-align: center;
  margin: 8px auto;
  box-shadow: 2px 2px 2px rgba(0,0,0,0.7);
}

.dropdown-content a:hover {
  background-color: #6a6a6f;
  transform: scale(1.1);
}

.dropdown-content a:active {
  transform: scale(0.9);
}

.dropdown:hover .dropdown-content {
  display: block;
}


.dropdown-content {
  display: none;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.35s ease;
}




/* ================================
   UPDATES GALLERY GRID (MATCHES GALLERY)
================================ */

.updates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* same as gallery */
  gap: 20px; /* same as gallery */
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

/* ================================
   UPDATE CARD + LIFT EFFECT
================================ */

.update-card {
  cursor: pointer;
  text-align: center;
  margin: 0 auto;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.update-card:hover {
  transform: translateY(-6px); /* lift */
  box-shadow: 8px 12px 15px rgba(0,0,0,0.35);
  z-index: 999990;
}

/* ================================
   IMAGE WRAPPER (MATCHES GALLERY)
================================ */

.update-image-wrapper {
  position: relative;
  width: 100%;
  height: 250px; /* FIX: match gallery height */
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border: 2px solid #170b9f;
  background: #f5f5f5;
}

.update-image-wrapper img {
  width: 100%;
  height: 100%; /* FIX: crop instead of stretch */
  object-fit: cover; /* FIX: match gallery */
  display: block;
  border-radius: 6px;
  transition: transform .4s ease, opacity .4s ease;
}

/* Zoom effect (same as gallery) */
.update-image-wrapper:hover img {
  transform: scale(1.08);
  opacity: 0.9;
}

/* ================================
   HOVER OVERLAY
================================ */

.update-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(120, 120, 125, 0.85);
  color: #170b9f;
  padding: 10px;
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.25s ease-in-out;
  cursor: pointer;
}

.update-image-wrapper:hover .update-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* ================================
   DATE UNDER CARD
================================ */

.update-date {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: #170b9f;
  font-style: italic;
  font-weight: bold;
}

/* ================================
   MODAL
================================ */

.update-modal {
  display: none;
  position: fixed;
  z-index: 9998;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Fade-in animation */
.update-modal.fade-in {
  animation: fadeInModal 0.5s ease forwards;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.update-modal-content {
  background: #78787d;
  padding: 20px;
  border-radius: 15px;
  max-width: 700px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 10px 10px 10px rgba(0,0,0,0.7);
  border: 3px solid #170b9f;
  margin-bottom: 40px;
}

/* Close button */
.update-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #170b9f;
  cursor: pointer;
}

.update-modal-close:hover {
  color: #78787d;
}

/* Modal content styling */
#modal-image {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

#modal-title {
  color: #170b9f;
  font-size: 26px;
  margin-bottom: 10px;
}

#modal-body {
  color: #170b9f;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 15px;
}

#modal-date {
  color: #333;
  font-style: italic;
  font-size: 14px;
}


div#about {
	margin-top: 60px;
	text-align: center;
	margin-left: auto;
	margin-right: auto;
	font-family: calibri;
	font-weight: bold;
	font-style: italic;
	font-size: 14pt;
	color: #170b9f;
	background-color: #78787d;
	border-radius: 25px;
	width: 60%;
	box-shadow: 10px 10px 10px rgba(0,0,0,0.7);
	padding: 10px;
	border: 2px solid #170b9f;
	
}


.services-box {
    position: relative;
    width: 70%;
    min-height: 300px;
    border: 2px solid #170b9f;
    box-shadow: 10px 10px 10px rgba(0,0,0,0.7);
    background: #78787d;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 25px;
}

.service-item {
    padding: 6px 12px;
    color: #170b9f;
    font-size: 15pt;
    font-family: calibri;
    font-weight: bold;
    white-space: normal; /* allow wrapping */
}

  
.gallery-container {
    margin: 40px auto;
    padding: 0 20px;
}

.gallery-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #170b9f;
    letter-spacing: 1px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: #f5f5f5
    border: 2px solid #170b9f;
}

.gallery-item:hover {
    z-index: 999990;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease, opacity .4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
    opacity: 0.9;
    z-index: 999990;
}


.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Caption styling */
.img-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 6px 10px;
    font-size: 14pt;
    text-align: center;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.25s ease-in-out;
    pointer-events: none;
    font-family: calibri;
}

/* Hover effect */
.gallery-item:hover .img-caption {
    opacity: 1;
    transform: translateY(0);
}


#content {
	margin-top: 60px;
	text-align: center;
	margin-left: auto;
	margin-right: auto;
	font-family: calibri;
	font-weight: bold;
	font-style: italic;
	font-size: 14pt;
	color: #170b9f;
	background-color: #78787d;
	border-radius: 25px;
	width: 60%;
	display: block;
	box-shadow: 10px 10px 10px rgba(0,0,0,0.7);
	padding: 10px;
	border: 2px solid #170b9f;
	
}

#reviewheader {
	margin-top: 50px;
	text-align: center;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 50px;
	font-family: calibri;
	font-weight: bold;
	font-style: italic;
	font-size: 14pt;
	color: #170b9f;
	background-color: #78787d;
	border-radius: 15px;
	width: 60%;
	display: block;
	box-shadow: 10px 10px 10px rgba(0,0,0,0.7);
	padding: 10px;
	border: 2px solid #170b9f;
}

#reviewheader a {
    display: inline-block;
    color: #170b9f;      
    font-weight: bold;   
    text-decoration: none;
    z-index: 99999;
}

#reviewheader a:hover {
    text-decoration: underline;
    transform: scale(1.07);
    padding-left: 5px;
    padding-right: 5px;
}

#contact-header {
	margin-top: 60px;
	text-align: center;
	margin-left: auto;
	margin-right: auto;
	font-family: calibri;
	font-weight: bold;
	font-size: 16pt;
	color: #170b9f;
	background-color: #78787d;
	border-radius: 25px;
	width: 50%;
	display: block;
	box-shadow: 10px 10px 10px rgba(0,0,0,0.7);
	padding: 10px;
	border: 2px solid #170b9f;
	
}

.services-list {
	margin-left: 100px;
	margin-top: 50px;
	list-style-type: circle;
	display: flex;
	flex-direction: column;
	text-align: left;
	color: #170b9f;
	background-color: #78787d;
	border-radius: 25px;
	width: 20%;
	box-shadow: 10px 10px 10px rgba(0,0,0,0.7);
	padding: 10px;
	font-family: calibri;
	font-size: 12pt;
	font-weight: bold;
	line-height: 0;
	
}


#services{
	margin-top: 50px;
	text-align:center;
	
}

ul{
	list-style-type: none;
	text-align: center;
	display: inline-block;
}

li{
	
	display: inline;
	padding: 30px;
	
	
}

button.security{
	border: 0px;
	background-color: rgba(0, 0, 0, 0);
	box-shadow: 3px 3px 3px rgba(0,0,0,0.7);
	
}

button.security:hover{
    border: 0px;
	cursor: pointer;
	transform: scale(1.25);
	box-shadow: 10px 10px 10px rgba(0,0,0,0.7);
	background-color: rgba(0, 0, 0, 0);
}

button.security:active{
	cursor: pointer;
	transform: scale(0.90);
	box-shadow: 2px 2px 2px rgba(0,0,0,0.7);
	background-color: rgba(0, 0, 0, 0);
}
	
button.adapt{
	border: 0px;
	background-color: rgba(0, 0, 0, 0);
	box-shadow: 3px 3px 3px rgba(0,0,0,0.7);
}

button.adapt:hover{
	cursor: pointer;
	transform: scale(1.25);
	box-shadow: 10px 10px 10px rgba(0,0,0,0.7);
	background-color: rgba(0, 0, 0, 0);
}

button.adapt:active{
	cursor: pointer;
	transform: scale(0.90);
	box-shadow: 2px 2px 2px rgba(0,0,0,0.7);
	background-color: rgba(0, 0, 0, 0);
}


h1{
	text-align: center;
	color: #170b9f;
	font-size: 24pt;
	margin-top: 50px;
	font-family: Poppins, sans-serif;


}

h2{
	text-align: center;
	color: #170b9f;
	font-size: 26pt;
	margin-top: 50px;
	font-family: calibri;
	font-weight: bold;
	margin-bottom: 50px;
}



#contactme{
	margin-top: 15px;
	text-align: center;
	margin-left: auto;
	margin-right: auto;
	font-family: calibri;
	font-weight: bold;
	font-style: italic;
	font-size: 14pt;
	color: #170b9f;
	background-color: #78787d;
	border-radius: 25px;
	width: 50%;
	box-shadow: 10px 10px 10px rgba(0,0,0,0.7);
	padding-top: 10px;
	padding-bottom: 2px;
	
}

.about-divider {
    color:#333;
    width: 70%;
    margin-top: 30px;
    margin-bottom: 30px;
    
}

hr{
	width: 70%;
	color: black;
	margin-top: 50px;
	
}

.trust-sidebar hr {
    margin-top: 5px;
    
}

.updates {
    margin-bottom: 5px;
}

#areas {
    text-align: center;
    border: 2px solid #170b9f;
    border-radius: 20px;
    box-shadow: 4px 4px 4px rgba(0,0,0,0.7);
    width: 600px;
    height: 450px;
    margin: 0 auto;
    overflow: hidden;
}





#footlogos{
	width: 100%;
	height: auto;
	position: relative;
	display: inline-flex;
	z-index: 1;
	margin-left: auto;
	margin-right: auto;
	margin-top: 20px;
	padding: 0px;
	text-align: center;
	
}




#footer{
	text-align: center;
	color: black;
	font-family: times new roman;
	font-size: 12pt;
	margin-top: 70px;
	margin-left: auto;
	margin-right: auto;
	font-weight: bold;
	padding-bottom: 40px;
	
	
}

form {
    width: 50%;
    margin: 40px auto;
    padding: 20px;
    background: #78787d;
    border-radius: 8px;
    font-family: calibri;
	font-weight: bold;
	border: 2px solid #170b9f;
	box-shadow: 10px 10px 10px rgba(0,0,0,0.7);
}

label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
	font-family: calibri;
	color: #170b9f;
}

input, textarea {
    width: 95%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.submit {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    background: #150bbc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
	font-family: calibri;
	font-weight: bold;
	font-size: 12pt;
}

.submit:hover {
    background: #110a81;
}

.submit:active {
    transform: scale(0.9);
}


.star-rating {
    direction: rtl;
    display: inline-flex;
    gap: 5px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 30px;
    color: #ccc;
    cursor: pointer;
}

.star-rating input:checked ~ label {
    color: gold;
}

.star-rating label:hover,
.star-rating label:hover ~ label {
    color: gold;
}


.view-all-wrapper {
    margin-top: -50px;
    float: left;
    margin-left: 20%;
}

.view-all-link {
    display: inline-block;
    padding: 10px 20px;
    background: #5c5c61;
    border: 2px solid #170b9f;
    border-radius: 10px;
    color: #170b9f;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 2px 2px 2px rgba(0,0,0,0.7);
    cursor: pointer;
    transition: 0.2s ease;
    
}

.view-all-link:hover {
    background: #6a6a6f;
    transform: scale(1.1);
    box-shadow: 3px 3px 3px rgba(0,0,0,0.7);
}


.view-all-link:active {
    transform: scale(0.9);
    box-shadow: 2px 2px 2px rgba(0,0,0,0.7);
}


.review-summary {
    font-size: 1.2rem;
    font-family: calibri;
    font-weight: bold;
    color: #170b9f;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 60%;
    border: 2px solid #170b9f;
    border-radius: 20px;
    background-color: #5c5c61;
    box-shadow: 3px 3px 3px rgba(0,0,0,0.7);
    padding-left: 10px;
    padding-right: 10px;
    padding-top: -5px;
    padding-bottom: -5px;
    width: fit-content;
}

.review-summary .star {
    font-size: 1.2rem;
    color: #ccc;
}

.review-summary .star.full {
    color: #f5a623;
}

.review-summary .star.half {
    color: #f5a623;
    position: relative;
}

.review-summary .star.half::after {
    content: '★';
    color: #ccc;
    position: absolute;
    left: 50%;
    width: 50%;
    overflow: hidden;
}

.review-summary .star.empty {
    color: #ccc;
}





.review h3 {
    margin-bottom: -20px ;
    font-size: 20px;
    color: #170b9f;
}

.review p {
    font-size: 16px;
    line-height: 1.5;
    color: #170b9f;
    margin: 0;
    font-family: calibri;
}

.review small {
    display: block;
    margin-top: 10px;
    color: #170b9f;
    font-size: 14px;
}

.stars {
    padding: 10px;
    font-size: 22px;
    color: #f5c518;
}

.review {
    background: #78787d; 
    border: 2px solid #170b9f; 
    border-radius: 25px;
    padding: 20px;
    box-shadow: 5px 5px 5px rgba(0,0,0,0.7);
    text-align: center;
    max-width: 60%;
    max-height:100%;
    margin: 20px auto;
    display: block;
}

#char-count {
    font-size: 14px;
    margin-top: 2px;
    margin-bottom: 10px;
    color: #555;
    transition: color 0.2s ease;
}

#char-count.warning {
    color: #d9534f; /* red warning */
    font-weight: bold;
}

.formcarry-form button {
  display: block;
  margin-top: 12px;
  width: 100%;
  padding: 12px 20px;
  border-radius: 4px;
	border-color: transparent;
  background-color: 150bbc;
  color: #fff;
  font-weight: 700;
  font-size: 18px;

  transition: 300ms all;
}

.formcarry-form button:hover {
  background-color: #110a81;
  cursor: pointer;
}

.formcarry-form button:active:hover {
    transform: scale(0.9);
}


/* HEADER – FINAL OVERRIDE */

#logo-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
    width: 80%;        /* full width so flexbox can center */
    margin: 0px 100px;  /* valid syntax */
    max-width: 100%;
    height: auto;


}

#logo-header img {
    margin: 0 100px;     /* replaces gap for older engines */
    display: block;
}



.pdf-container {
    max-width: 900px;
    margin: 40px auto;
    background: #ffffff;
    border: 2px solid #170b9f;
    border-radius: 12px;
    box-shadow: 5px 5px 5px rgba(0,0,0,0.7);
}

.pdf-title {
    font-size: 28px;
    color: #170b9f;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

.pdf-viewer {
    width: 100%;
    height: 900px;
    border: none;
    border-radius: 8px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.15);
}


/* Floating Trust Sidebar */
.trust-sidebar {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: #78787d;
    border-left: 2px solid #170b9f; /* brand colour accent */
    border-top: 2px solid #170b9f; /* brand colour accent */
    border-bottom: 2px solid #170b9f; /* brand colour accent */
    box-shadow: 15px 15px 15px rgba(0,0,0,0.7);
    padding: 10px 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-radius: 8px 0 0 8px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    cursor: default;
    transition: background 0.2s ease, padding-left 0.2s ease;
}

.trust-item:hover {
    background: #f3f7fb;
    padding-left: 18px;
}

.trust-icon {
    font-size: 1.2rem;
}

.trust-text {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    font-family: calibri;
    color: #170b9f;
}

.trust-item.open-affiliations:hover {
    cursor: pointer;

}

.trust-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.trust-link:hover {
    text-decoration: none;
}

.trust-item.terms-and-conditions:hover {
    cursor: pointer;
    font-weight: bold;
}

.trust-item.updates:hover {
    cursor: pointer;
    font-weight: bold;
}



/* Mobile: collapse into a bottom bar */
@media (max-width: 1200px) {
    .trust-sidebar {
        position: fixed;
        top: auto;
        bottom: 0;
        right: 50%;
        transform: translateX(50%);
        flex-direction: row;
        padding: 8px 12px;
        border-radius: 8px 8px 0 0;
        border-left: none;
        border-top: 3px solid #0a4d8c;
    }

    .trust-item {
        padding: 6px 10px;
    }

    .trust-item:hover {
        padding-left: 10px;
        background: #f3f7fb;
    }
}

/* Tooltip styling */
.trust-item {
    position: relative;
}

/* Hidden by default */
.trust-item::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 110%;
    top: 50%;
    transform: translateY(-50%);
    background: #0a4d8c;
    color: #fff;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-family: calibri;
    line-height: 1.3;
    white-space: normal;
    width: 50%;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10000;
}

/* Tooltip arrow */
.trust-item::before {
    content: "";
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent #0a4d8c transparent transparent;
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Show tooltip on hover */
.trust-item:hover::after,
.trust-item:hover::before {
    opacity: 1;
}

/* Mobile: disable tooltips (they get in the way) */
@media (max-width: 768px) {
    .trust-item::after,
    .trust-item::before {
        display: none;
    }
}

.trust-icon {
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

h4{
	text-align: center;
	color: #170b9f;
	font-size: 20pt;
	margin-top: 5px;
	font-family: calibri;
	font-weight: bold;
	margin-bottom: 10px;	
	text-decoration: underline;
}

/* Modal background */
.modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(3px);
}

/* Modal box */
.modal-content {
    background: #78787d;
    margin: 10% auto;
    padding: 20px 30px;
    border-radius: 10px;
    width: 60%;
    max-width: 100%;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    animation: fadeIn 0.25s ease;
    text-align: center;
}

/* Close button */
.close-modal {
    width: 25px;
    height: 25px;
    background-color: #d40000;
    border: none;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    float: right;
    box-shadow: 2px 2px 2px rgba(0,0,0,0.7);
}

/* Remove any old text-based X */
.close-modal::before,
.close-modal::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
}

.close-modal::before {
    transform: rotate(45deg);
}

.close-modal::after {
    transform: rotate(-45deg);
}

/* Hover effect */
.close-modal:hover {
    background-color: #b30000;
    transform: scale(1.1);
    box-shadow: 3px 3px 3px rgba(0,0,0,0.7);
}

/* Fade animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}







#scrollTopBtn {
    position: fixed;
    bottom: 20px;
    right: 100px;
    padding: 12px 16px;
    font-family: calibri;
    font-weight: bold;
    font-size: 18px;
    background: #78787d;
    color: #170b9f;
    border-radius: 15px;
    cursor: pointer;
    display: none; /* hidden by default */
    z-index: 9999;
    border: 2px solid #170b9f;
    box-shadow: 10px 10px 10px rgba(0,0,0,0.7);
    transition: opacity 0.3s ease;
}

#scrollTopBtn:hover {
    background: #555;
}
  

  









/* =========================================================
   MOBILE LAYOUT — STRICT OVERRIDES
   Applies to screens 990px and below
========================================================= */
@media (max-width: 990px) {

    /* GLOBAL */
    body#page {
        overflow-x: hidden;
    }

    #pagecontainer {
        width: 100%;
    }

    /* CONTENT BOXES */
    #about,
    #content,
    #contactme {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        font-size: 13pt;
    }

    /* FORMS */
    form {
        width: 90%;
        padding: 15px;
    }

    input,
textarea {
    width: 100%;
    box-sizing: border-box; /* prevents overflow */
}



    /* REVIEWS */
    .review {
        max-width: 90%;
        padding: 15px;
    }

    .review-summary {
        margin-left: auto;
        margin-right: auto;
        font-size: 1rem;
    }

    /* LOGO HEADER */
    #logo-header {
        width: 100%;
        margin: 0;
        padding: 20px 0;
    }

    #logo-header img {
        margin: 10px 0;
        max-width: 70%;
        height: auto;
    }

    /* PDF VIEWER */
    .pdf-viewer {
        min-height: 50vh;
    }

    /* GALLERY + UPDATES GRID */
    .gallery-grid,
    .updates-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }

    .update-image-wrapper {
        height: 200px;
    }

    /* SECURITY + ADAPT BUTTONS */
    ul {
        display: block;
        text-align: center;
        padding: 0;
    }

    li {
        display: inline-block;
        padding: 15px;
    }

    button.security,
    button.adapt {
        display: inline-block;
    }

    /* HOME BUTTON */
    .home-button {
        margin-left: 10px;
        margin-top: 200px;
        transform: scale(0.9);
    }

    /* SCROLL TO TOP BUTTON */
    #scrollTopBtn {
        right: 20px;
        bottom: 80px;
    }
    
    #shp-chat-toggle {
        margin-bottom: 80px;
}

    #shp-chat-window {
        margin-bottom: 100px;
    }

    /* TRUST SIDEBAR → MOBILE BOTTOM BAR */
    .trust-sidebar {
    position: fixed;
    bottom: 0;

    /* Centering */
    left: 50%;
    transform: translateX(-50%);

    width: 95%;

    flex-direction: row;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 8px 12px;

    border-radius: 8px 8px 0 0;
    border: 2px solid #170b9f;
    border-bottom: none;
    background: #78787d;
    box-shadow: 0 -5px 10px rgba(0,0,0,0.4);
    scrollbar-width: thin;
    text-align: center;
}
    .trust-sidebar::-webkit-scrollbar {
        height: 6px;
    }

    .trust-sidebar::-webkit-scrollbar-thumb {
        background: #170b9f;
        border-radius: 10px;
    }

    .trust-item {
        padding: 10px 14px;
        white-space: nowrap;
    }

    /* Disable tooltips on mobile */
    .trust-item::after,
    .trust-item::before {
        display: none !important;
    }

    /* MODALS */
    .modal-content,
    .update-modal-content {
        width: 90%;
        max-height: 80vh;
        padding: 15px;
    }

    .update-modal-close,
    .close-modal {
        top: 5px;
        right: 10px;
    }

    /* SERVICES BOX — MOBILE LIST MODE */
    #servicesBox {
        position: relative !important;
        height: auto !important;
        min-height: auto !important;
        overflow: visible !important;
        text-align: center;
    }

    #servicesBox .service-item {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        display: block !important;
        margin: 10px 0 !important;
        white-space: normal !important;
        transform: none !important;
    }
}


/* =========================================================
   DESKTOP LAYOUT — SCATTER MODE
   Applies to screens 991px and above
========================================================= */
@media (min-width: 991px) {

    #servicesBox {
        position: relative !important;
        overflow: hidden !important;
    }

    #servicesBox .service-item {
        position: absolute !important;
        display: inline-block !important;
        margin: 0 !important;
        white-space: nowrap;
    }
}