
	<style>
	  
		* {
		  box-sizing: border-box;
		  margin: 0;
		  padding: 0;
		  font-family: system-ui, -apple-system, sans-serif;
		}
			

		/* ---------- Layout ---------- */
		
		body {
		  background: #f4f6f8;		  
		  color: #1f2937;
		  margin: 0;
		  font-family: system-ui, -apple-system, sans-serif;
		}
		
		/* a href links with no underline */
		a.nounderline {
			text-decoration: none; 
		}
		
/* ---------- Sticky Header ---------- */

#page_header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header {
  position: relative;
  z-index: 1000;
  background: #ffffff;
  min-height: 100px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Logo */
.logo-link {
  position: absolute;
  left: 1rem;
  display: block;
}

.logo img {
  height: 5rem;
}

/* Title */
.header-title {
  width: 100%;
  text-align: center;
  pointer-events: none;
}

.header-title h1 {
  font-size: 1.4rem;
}

.header-title p {
  font-size: 0.9rem;
  color: #6b7280;
}

/* ---------- Profile Avatar ---------- */

.profile-btn {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  cursor: default; /* not clickable yet */
}

.profile-btn img {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  transition:
    filter 180ms ease,
    opacity 180ms ease,
    box-shadow 180ms ease,
    outline-color 180ms ease;
}

/* Guest (not logged in) */
.profile-btn.is-guest img {
  opacity: 0.35;
  filter: grayscale(100%);
  outline: 2px solid rgba(0,0,0,0.12);
  outline-offset: 2px;
}

/* Logged-in user */
.profile-btn.is-user img {
  opacity: 1;
  filter: none;
  outline: 3px solid #16a34a; /* green */
  outline-offset: 2px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

/* Logged-in admin */
.profile-btn.is-admin img {
  opacity: 1;
  filter: none;
  outline: 3px solid #2563eb; /* blue */
  outline-offset: 2px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

/* ---------- Footer Admin Shortcut ---------- */

.footer-admin-link {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  font-size: 1.2rem;
  text-decoration: none;
  color: #6b7280;
  opacity: 0.6;
}

.footer-admin-link:hover {
  opacity: 1;
  color: #2563eb;
}


		/* ---------- Main ---------- */
		
		main {
			padding: 1rem;
			padding-bottom: 4.5rem; /* space for sticky footer */
		}	
		


		.card-grid {
		  display: grid;
		  grid-template-columns: 1fr;
		  gap: 1rem;
		}

		.card-link {
		  text-decoration: none;
		  color: inherit;
		}
		
		/* ---------- All cards ---------- */		

		.card {
		  min-height: 150px;		  
		  border-radius: 12px;
		  padding: 1rem;
		  display: flex;
		  flex-direction: column;
		  justify-content: space-between;
		  background: #ffffff;
		  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
		  transition: transform 0.2s ease, box-shadow 0.2s ease;
		  position: relative;
		}

		.card:hover {
		  transform: translateY(-4px);
		  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
		}

		.icon {
		  width: 32px;
		  height: 32px;
		  fill: currentColor;
		}

		.btn {
		  align-self: flex-start;
		  padding: 0.5rem 0.9rem;
		  font-size: 0.9rem;
		  border-radius: 8px;
		  border: none;
		  background: #2563eb;
		  color: #ffffff;
		  pointer-events: none;
		}

		/* ----------Full Image Cards ---------- */
		
		.card .icon {
		  visibility: hidden; /*hide the svg icons*/
		}		
		
		.card.image {
		  color: #ffffff;
		  background-size: cover;
		  background-position: center;
		}
		
		.card.image::before {
		  content: "";
		  position: absolute;
		  inset: 0;
		  background: linear-gradient(
			to top,
			rgba(0, 0, 0, 0.30),
			rgba(0, 0, 0, 0.08)
		  );
		  border-radius: 12px;
		}
		
		.card.image > * {
		  position: relative;
		  z-index: 1;
		}
		
		.card.image h2 {
		  margin-top: auto;     /* pushes h2 downward */
		  margin-bottom: 0.5rem;
		}		

		.card.image .btn {
		  background: rgba(255, 255, 255, 0.25);
		}
		
		
		.img-reunion1 {
		  background-image: url("/images/image_cards/reunion_splash1.webp");
		}	

		.img-reunion2 {
		  background-image: url("/images/image_cards/reunion_splash2.webp");
		}			

		.img-main_gate {
		  background-image: url("/images/image_cards/DSC_0245.webp");
		}
		
		.img-armoury {
		  background-image: url("/images/image_cards/armoury.webp");
		}

		.img-black_tank {
		  background-image: url("/images/image_cards/black_tank.webp");
		}
		
		.img-members {
		  background-image: url("/images/image_cards/DSC_0148.webp");
		}

		.img-computer_centre {
		  background-image: url("/images/reunion/computer_centre.webp");
		}			

		.img-exco {
		  background-image: url("/images/image_cards/exco.webp");
		}	

		.img-contact {
		  background-image: url("/images/image_cards/contact.webp");
		}			
	
		.img-1 {
		  background-image: url("https://images.unsplash.com/photo-1501785888041-af3ef285b470");
		}
		
		.img-2 {
		  background-image: url("https://images.unsplash.com/photo-1501785888041-af3ef285b470");
		}
		
		

		
/************************************************************************************************************/
/* ---------- Small image and news text Cards ---------- */

.image-news-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;

  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Only cards that overflow get collapsed */
.image-news-card.collapsible {
  overflow: hidden;
  max-height: 130px;              /* collapsed card height */
  transition: max-height 0.35s ease;
}

/* Image (left) */
.card-news-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  flex: 0 0 auto;
}

.card-news-image-reduced {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  flex: 0 0 auto;
}

/* Right-side text block */
.news-card-content {
  flex: 1 1 0;
  min-width: 0;
}

.news-card-content h1 {
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
}

.news-card-content p {
  margin: 0;
  color: #555;
  line-height: 1.5;
}

/* Extra content (hidden by default) */
.extra {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}

/* Used ONLY while JS is measuring overflow */
.image-news-card.measuring .extra {
  max-height: none;
  opacity: 1;
  overflow: visible;
}

/* Expanded state */
.image-news-card.expanded {
  max-height: 9999px;
  align-items: flex-start;
}

.image-news-card.expanded .extra {
  max-height: none;
  opacity: 1;
  overflow: visible;
  margin-top: 0.15rem;
}

/* Expand / collapse button */
.expand-btn {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  padding: 3px;
  background: none;
  border: 1px solid red;
  border-radius:5px;
 /*color: #2563eb;*/
  color:red;
  font-weight: 600;
  cursor: pointer;
}

/************************************************************************************************************/

		/*FOR DEBUGGING ONLY */
		.image-news-card { outline: 1px solid red; }
		.image-news-card.collapsible { outline-color: green; }
/************************************************************************************************************/					
		
		/* ---------- Modal ---------- */
		.modal-overlay {
		 position: fixed;
		 inset: 0;
		 background: rgba(0,0,0,0.5);
		 display: none;
		 align-items: center;
		 justify-content: center;
		 z-index: 2000;
		}

		.modal-overlay.active {
		 display: flex;
		}

		.modal {
		 background: #ffffff;
		 padding: 1.5rem;
		 width: 75%;
		 max-width: 360px;
		 border-radius: 12px;
		 position: relative;
		}

		.modal h2 {
		 margin-bottom: 0.25rem;
		}

		.modal p {
		 color: #6b7280;
		 font-size: 0.9rem;
		 margin-bottom: 1rem;
		}

		.modal label {
		 display: block;
		 font-size: 0.85rem;
		 margin-bottom: 0.75rem;
		}

		.modal input {
		 width: 90%;
		 padding: 0.5rem;
		 margin-top: 0.25rem;
		 border-radius: 6px;
		 border: 1px solid #d1d5db;
		}

		.modal-actions {
		 display: flex;
		 gap: 0.5rem;
		 margin-top: 1rem;
		}

		.modal-actions button {
		 flex: 1;
		 padding: 0.6rem;
		 border-radius: 8px;
		 border: none;
		 cursor: pointer;
		}

		.primary {
		 background: #2563eb;
		 color: #ffffff;
		}

		.secondary {
		 background: #e5e7eb;
		}

		.close-btn {
		 position: absolute;
		 top: 0.5rem;
		 right: 0.5rem;
		 background: none;
		 border: none;
		 font-size: 1.2rem;
		 cursor: pointer;
		}
			


			
			
			
		/* ---------- Sticky Footer ---------- */
		
		#page_footer {
		  position: sticky;
		  bottom: 0;
		}		
		
		.site-footer {
		 /*position: sticky;*/
		 position: relative; /* or static */		 
		 bottom: 0;
		 background: #ffffff;
		 padding: 0.75rem 1rem;
		 text-align: center;
		 font-size: 0.85rem;
		 color: #6b7280;
		 border-top: 1px solid #e5e7eb;
		}

		/* ---------- Desktop ---------- */
		@media (min-width: 600px) {
			
		  .card-grid {
			grid-template-columns: repeat(2, 1fr);
		  }
		  
		.card {
		  min-height: 175px;		  
		}	

		 {
		  .image-news-card.collapsible { max-height: 200px; }
		}		
		  
		}
		
	
		
	
		
	/*=============IMPORTED STYLES=====================*/

		form{
			background:#fff;
			padding:5px;
			border-radius:12px;
			box-shadow:0 4px 12px rgba(0,0,0,.08);
			max-width:850px;
			margin:auto
			}
			
		fieldset{	
		  display: block;
		  margin-left: 2px;
		  margin-right: 2px;
		  margin-bottom:20px;  
		  padding-top: 1.5em;
		  padding-bottom: 1.5em;
		  padding-left: 1em;
		  padding-right: 1em;
		  border: 1px solid silver;
		  border-radius:10px;	  
		  /*background-color: #eeeeee; */
			}
			
		.photo-fieldset {
			text-align: center;
		}

		.photo-preview {
		  margin-bottom: 1rem;
		}

		.photo-preview img {
		  width: 140px;
		  height: 140px;
		  object-fit: cover;
		  border-radius: 12px;      /* square with soft corners */
		  border: 3px solid #2563eb;
		}
			
			
		legend {
		  text-align: center;
		  /*background-color:  #2563eb;*/
		  background-color:  purple;
		  color: white;
		  padding: 5px 10px;
		}
			
		label{
			display:block;
			font-weight:600;
			margin-bottom:6px
			}
			
		input,select,textarea{	
			width:90%;
			font-size:16px;
			border-radius:8px;
			border:1px solid #ccc;
			margin-bottom:14px;	
			background-color:  #fff;
			}
			
		select {
		  height: 36px;
		}

		input {
		  height: 26px;
		}		
			
		input:focus,select:focus,textarea:focus{
			outline:none;
			border-color:#2563eb;
			box-shadow:0 0 0 2px rgba(37,99,235,.15)
			}
			
		.submit_button{

			width:100%;
			padding:14px;
			font-size:16px;	
			background:#2563eb;
			color:#fff;
			border:none;
			border-radius:10px;
			font-weight:600;
			cursor:pointer
			}
			
		.submit_button:hover{
			background:#1e4fd6
			}
			
		.hidden{
			display:none
			}
			
			
/***************** FOR Custom checkbox in reunion registration form **************************************/  			
		/*/////////////Custom checkbox styling //////////*/

		/* The container */
		.container {
		  display: block;
		  position: relative;
		  padding-left: 35px;
		  margin-bottom: 12px;
		  cursor: pointer;
		  font-size: 1em;
		  -webkit-user-select: none;
		  -moz-user-select: none;
		  -ms-user-select: none;
		  user-select: none;
		}

		/* Hide the browser's default checkbox */
		.container input {
		  position: absolute;
		  opacity: 0;
		  cursor: pointer;
		  height: 0;
		  width: 0;
		}

		/* Create a custom checkbox */
		.checkmark {
		  position: absolute;
		  top: 0;
		  left: 0;
		  height: 25px;
		  width: 25px;
		  border:2px solid black;
		  background-color: white;
		}

		/* On mouse-over, add a grey background color */
		.container:hover input ~ .checkmark {
		  background-color: #ccc;
		}

		/* When the checkbox is checked, add a blue background */
		.container input:checked ~ .checkmark {
		  background-color: #2196F3;
		}

		/* Create the checkmark/indicator (hidden when not checked) */
		.checkmark:after {
		  content: "";
		  position: absolute;
		  display: none;
		}

		/* Show the checkmark when checked */
		.container input:checked ~ .checkmark:after {
		  display: block;
		}

		/* Style the checkmark/indicator */
		.container .checkmark:after {
		  left: 9px;
		  top: 5px;
		  width: 5px;
		  height: 10px;
		  border: solid white;
		  border-width: 0 3px 3px 0;
		  -webkit-transform: rotate(45deg);
		  -ms-transform: rotate(45deg);
		  transform: rotate(45deg);
		}
		

		
/***************** FOR LIBRARY PAGE **************************************/
	 .Swanston{
	  background-color: blue;
	  color:white;
	  }
	  
	   .Field{
	  background-color: green;
	  color:white;
	  }
	  
		 .Powell{
	  background-color: #800080;
	  color:white;
	  }

		   .Grier{
	  background-color:#800000;
	  color:white;
	  }
	  
		   .Carr{
	  background-color:#FFA500;
	  color:white;
	  }
/*******************************************************/  	  
  
/***************** FOR CONTACT US PAGE **************************************/  

	.phone-text a{
		/*color:#fff; */
		text-decoration:none;
	}

	.card--avatar {
	  height: 3rem;
	  margin-top: 10px;
	}
/*******************************************************/  	
	

/* =========================
   Member Directory (namespaced)
   ========================= */

.member-directory .dir-controls {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 1rem;
}

.member-directory .dir-search,
.member-directory .dir-select {
  width: 100%;
  font-size: 16px;
  border-radius: 12px;
  border: 1px solid #ccc;
  padding: 12px;
  background: #fff;
}

.member-directory .dir-search:focus,
.member-directory .dir-select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37,99,235,.15);
}

.member-directory .dir-filters {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.member-directory .filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.member-directory .dir-row {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.member-directory .filter-btn {
  appearance: none;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #1f2937;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.member-directory .filter-btn.orange {
  border-color: #FF8C00;
}

.member-directory .filter-btn.green {
  border-color: #3CB371;
}

.member-directory .filter-btn.purple {
  border-color: #BA55D3;
}

.member-directory .filter-btn.maroon {
  border-color: maroon;
}

.member-directory .filter-btn.blue {
  border-color: #1E90FF;
}

.member-directory .filter-btn.is-active {
  background: #B0C4DE;
  border: 2px solid ;
  border-color: red;
}

.member-directory .filter-btn.danger {
  border-color: #ef4444;
  color: #ef4444;
}

.member-directory .dir-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}

.member-directory .muted { color: #6b7280; }

/* Use your existing .card-grid for layout; just ensure it can handle 2+ columns */
@media (min-width: 600px) {
  .member-directory .dir-row { grid-template-columns: 1fr 160px; }
}

/* =========================
   Flip card (namespaced)
   ========================= */

/* IMPORTANT: prevent back face/button being covered by neighboring cards */
.member-directory .card-grid {
  overflow: visible; /* allow flipped face to paint fully */
}

.member-directory-card {
  perspective: 900px;

  /* NEW: make z-index effective inside the grid */
  position: relative;
  z-index: 1;

  /* NEW: improves stacking reliability on iOS */
  isolation: isolate;
}

/* NEW: raise flipped card above its siblings */
.member-directory-card.is-flipped {
  z-index: 50;
}

.member-directory-card .inner {
  position: relative;
  min-height: 240px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);

  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d; /* NEW: Safari */
  transition: transform 520ms cubic-bezier(.2,.8,.2,1);

  will-change: transform; /* NEW: helps Safari repaint layers cleanly */
}

.member-directory-card.is-flipped .inner {
  transform: rotateY(180deg);
}

.member-directory-card .face {
  position: absolute;
  inset: 0;
  padding: 1rem;
  border-radius: 12px;

  backface-visibility: hidden;
  -webkit-backface-visibility: hidden; /* NEW: Safari */

  display: grid;
  gap: 10px;
}

.member-directory-card .back {
  transform: rotateY(180deg);
}

.member-directory-card .top {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px;
  align-items: center;
}

.member-directory-card .avatar {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  overflow: hidden;
  background: #e5e7eb;
  border: 1px solid rgba(0,0,0,0.06);
}

.member-directory-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.member-directory-card h4 {
  margin: 0;
  font-size: 1rem;
}

.member-directory-card p {
  margin: 0;
  color: #6b7280;
  line-height: 1.35;
  word-break: break-word;
}

.member-directory-card .actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

.member-directory-card .action-btn {
  flex: 1;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #fff;
  padding: 10px;
  font-weight: 700;
  cursor: pointer;
}

.member-directory-card .action-btn.primary {
  border-color: rgba(37,99,235,0.45);
  color: #2563eb;
}

@media (prefers-reduced-motion: reduce) {
  .member-directory-card .inner { transition: none; }
}

/* Stack Sort + Clear on mobile */
.member-directory .dir-row{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* Keep side-by-side on larger screens */
@media (min-width: 700px){
  .member-directory .dir-row{
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
</style>

	