      /* --------------------
         1. CSS Reset & root variables
         -------------------- */
      *,
      *::before,
      *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
      }

      html {
        scroll-behavior: smooth;
      }

      :root {
        /* Brand palette */
        --color-primary: #3b82f6; /* blue‑500 */
        --color-primary-dark: #1d4ed8; /* blue‑700 */
        --color-accent: #f59e0b; /* amber‑500 */
        --color-bg: #ffffff;
        --color-bg-alt: #f9fafb; /* gray‑50 */
        --color-text: #111827; /* gray‑900 */
        --color-text-muted: #6b7280; /* gray‑500 */
        /* Layout */
        --max-width: 1200px;
        --gutter: 1rem;

        /* Typography */
        --font-base: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        --fs-xl: clamp(2.25rem, 5vw + 1rem, 3.75rem);
        --fs-lg: 1.5rem;
        --fs-base: 1rem;
		--fs-clamped: clamp(12px, 3vw, 14px);
      }

      body {
		display: flex;
		flex-direction: column;
        font-family: var(--font-base);
        font-size: var(--fs-base);
        line-height: 1.6;
        color: var(--color-text);
        background-color: var(--color-bg);
		min-height: 100vh;
		box-sizing: border-box;
      }

      img {
        max-width: 100%;
        display: block;
      }
	  
a {
	text-decoration: none !important;
	font-weight: 500;
	color: inherit !important;
}  

h3 {
	line-height: 1em;
}

.hidden {
	display: none !important;
}
.flexRowWrapNoCenter {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 5px;
}

      /* --------------------
         2. Utility classes & layout helpers
         -------------------- */
      .container {
        width: min(var(--max-width), 100% - calc(var(--gutter) * 2));
        margin-inline: auto;
		padding: 0px 10px;
      }

.btn {
	display: inline-block;
	padding: 0.20rem 0.35rem;
	border-radius: 0.5rem;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	will-change: transform;
}

      .btn:focus-visible {
        outline: 2px solid var(--color-primary-dark);
        outline-offset: 2px;
      }
	  
      .btn-red {
        background: red;
        color: #fff !important;
      }	  
	  
	.btn-outline-secondary {
		border: 1px solid grey;
	}	  

      .btn-primary {
        background: var(--color-primary);
        color: #fff !important;
      }
      .btn-primary:hover {
        background: var(--color-primary-dark);
        box-shadow: 0 8px 16px rgba(29, 78, 216, 0.16);
        transform: translateY(-2px);
      }
	  
.btn.btn-primary.btn-lg.altBGButton {
  background: var(--color-primary-dark);
}
	  

      /* --------------------
         3. NavBar
         -------------------- */
		.navbar {
			position: sticky;
			top: 0;
			z-index: 20001;
			background-color: rgba(255, 255, 255, 0.85);
			backdrop-filter: saturate(180%) blur(12px);
			box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
			padding: 0 10px;
		}

      .nav-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-block: 0.75rem;
      }

.logo {
	font-size: clamp(1.4rem, 8vw, 1.8rem);
	font-weight: 700;
	text-decoration: none;
	color: var(--color-text);
}

.navbarLogoWrapper {
	display: flex;
	gap: 5px;
	align-items: center;
	justify-content: center;
}


	  .logoColOne {
		  color: var(--color-primary-dark);
	  }
	  
	  
.navbarLogoTagline {
	font-size: clamp(10px, 3vw, 12.5px);
	font-weight: 600;
	padding: 1px 0px 0px 1px;
	line-height: 1em;
}
	  
.navbarLogoTextWrapper {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 2px;
	line-height: 1rem;
margin-bottom: -10px;
}


.navbarLogoIcon {
	width: 40px;
	height: 40px;
}

      /* Mobile menu toggle */
      .nav-toggle {
        display: none;
      }
      .nav-toggle-label {
        display: none;
        cursor: pointer;
      }
		.nav-toggle-label span {
			display: block;
			transition: transform 0.2s ease;
			font-size: var(--fs-lg);
		}

      .nav-links {
        list-style: none;
        display: flex;
        gap: 1.5rem;
        align-items: center;
      }
	  
      .nav-links a {
        text-decoration: none;
        color: black;
        font-weight: 500;
        transition: color 0.15s ease;
      }
      .nav-links a:hover {
        color: var(--color-primary-dark);
      }

      .ft-nav-content {
        gap: 1rem;
      }

      .ft-nav-spacer {
        flex: 1 1 auto;
      }

      .nav-links a.is-active {
        color: var(--color-primary-dark) !important;
      }

      .nav-links a.is-active:not(.btn) {
        font-weight: 700;
      }

      .basketIconWrapper:focus-visible {
        outline: 2px solid var(--color-primary-dark);
        outline-offset: 4px;
        border-radius: 6px;
      }

      /* Mobile behaviour */
      @media (max-width: 768px) {
        .nav-content {
          flex-wrap: wrap;
        }
        .nav-toggle-label {
          display: block;
        }
        .nav-links {
          position: absolute;
          top: 100%;
          left: 0;
          right: 0;
          flex-direction: column;
          background: transparent;
          padding: 0;
          max-height: 0;
          overflow: hidden;
          transition: max-height 0.3s ease;
        }
        .nav-links li {
          padding: 0.5rem 0;
        }
		.nav-toggle:checked ~ .nav-links {
			max-height: 100vh;
			padding: 1rem 0;
			background: #fff;
			overflow-x: hidden;
			overflow-y: auto;
			border-radius: 8px;
			border: 1px solid #d8dee9;
			margin: 0 10px;
			box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
		}
      }

      /* --------------------
         4. Hero Section
         -------------------- */
      .hero {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        text-align: center;
      }
      .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -2;
      }
      .hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(rgba(17, 24, 39, 0.65), rgba(17, 24, 39, 0.7));
        z-index: -1;
      }
      .hero-content {
        padding: 0 1rem;
        max-width: 42rem;
        animation: fadeIn 0.8s ease-out both;
      }
      .hero h1 {
        font-size: var(--fs-xl);
        font-weight: 700;
        line-height: 1.15;
      }
      .hero p {
        font-size: var(--fs-lg);
        margin-top: 1rem;
        margin-bottom: 2rem;
        color: rgba(255, 255, 255, 0.95);
      }
      @keyframes fadeIn {
        from {
          opacity: 0;
          transform: translateY(20px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      /* --------------------
         5. Feature Strip
         -------------------- */
      .features {
        background: var(--color-bg-alt);
        padding: 3rem 0;
      }
      .feature-grid {
        display: grid;
        gap: 2rem;
        grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
      }
      .feature {
        text-align: center;
        padding: 1rem;
      }
      .feature svg {
        width: 3rem;
        height: 3rem;
        fill: var(--color-primary);
        margin-bottom: 1rem;
      }
      .feature h3 {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
      }
      .feature p {
        color: var(--color-text-muted);
        font-size: 0.95rem;
      }

      /* --------------------
         6. Upcoming Events
         -------------------- */
      #events {
        padding: 4rem 0;
      }
      .events-grid {
        display: grid;
        gap: 2rem;
        grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
      }
      .event-card {
        background: #fff;
        border-radius: 0.75rem;
        overflow: hidden;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
        transition: transform 0.25s ease, box-shadow 0.25s ease;
		max-width: max-content;
		margin: 0 auto;
      }
      .event-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
      }
      .event-card img {
        object-fit: cover;
      }
      .event-body {
        padding: 1rem 1.25rem 1.5rem;
      }
      .event-title {
        font-size: 1.125rem;
        font-weight: 600;
        margin-bottom: 0.25rem;
      }
      .event-meta {
        color: var(--color-text-muted);
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
      }


      /* --------------------
         7. Call‑to‑Action Banner
         -------------------- */
      .cta {
        background: var(--color-primary);
        color: #fff;
        text-align: center;
        padding: 3rem 1rem;
      }
      .cta h2 {
        font-size: calc(var(--fs-lg) + 0.25rem);
        margin-bottom: 1rem;
        font-weight: 700;
      }
      .cta p {
        margin-bottom: 2rem;
      }

      /* --------------------
         8. Footer
         -------------------- */
      footer {
        background: #0f172a; /* slate‑900 */
        color: #cbd5e1; /* slate‑300 */
        padding: 3rem 1rem;
        font-size: 0.875rem;
      }
      .footer-grid {
        display: grid;
        gap: 2rem;
        grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
      }
      .footer-logo {
        font-size: 1.25rem;
        font-weight: 700;
        margin-bottom: 0.75rem;
      }
      .footer-links a {
        display: block;
        color: inherit;
        text-decoration: none;
        margin-bottom: 0.5rem;
      }
      .footer-links a:hover {
        text-decoration: underline;
      }
      .social-icons {
        display: flex;
        gap: 0.75rem;
        margin-top: 1rem;
      }
      .social-icons a {
        line-height: 0;
      }
      .social-icons svg {
        width: 1.25rem;
        height: 1.25rem;
        fill: currentColor;
      }

      /* --------------------
         9. Media Queries – fine‑tuning typography
         -------------------- */
      @media (min-width: 1024px) {
        .hero h1 {
          font-size: calc(var(--fs-xl) * 1.2);
        }
        .hero p {
          font-size: calc(var(--fs-lg) * 1.1);
        }
      }
	  
/* --------------------
   10. Forms (register, login, profile, etc.)
   -------------------- */
.footerButtonsWrapper {
	margin: 20px 0;
}

/* form wrapper – centres & limits width already, so just animate in */
#registrationForm,
form.standard-form {
  animation: fadeIn 0.4s ease-out both;
}

/* group spacing */
.form-group {
  margin-bottom: 1.25rem;
}

/* horizontal rows that collapse on small screens */
.form-row {
  display: flex;
  gap: 1rem;           /* keeps inputs apart */
}
@media (max-width: 540px) {
  .form-row {
    flex-direction: column;
  }
}

/* label + helper text */
.form-group label {
  display: block;
  font-weight: 600;
}
.form-text {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* universal input / select look */
.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  color: var(--color-text);
  background: #fff;
  border: 1px solid #d1d5db;             /* gray-300 */
  border-radius: 0.5rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);  /* primary-500 @25 % */
}
.form-control::placeholder {
  color: #9ca3af;                        /* gray-400 */
}

/* “show / hide password” buttons */
.show-hide {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 0;
}
.show-hide:hover,
.show-hide:focus-visible {
  color: var(--color-primary-dark);
}

/* error & success helpers – you can toggle these classes via JS */
.form-control.error {
  border-color: #ef4444;                 /* red-500 */
}
.form-control.success {
  border-color: #22c55e;                 /* green-500 */
}
.form-feedback-error {
  color: #ef4444;
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.spacer {
	display: flex;
	flex-grow: 1;
}

/* the feedback card that replaces the form after success */
#formFeedback {
  background: var(--color-bg-alt);
  border: 1px solid #e5e7eb;             /* gray-200 */
  border-radius: 0.75rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
#formFeedback h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
	  



.event-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	text-align: center;
	gap: 5px;
	font-size: var(--fs-clamped);
	line-height: 1em;
	margin: 2px 10px;
	border-bottom: 1px solid var(--color-text-muted);
	padding: 5px 0;
}

.event-item__title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	font-size: 1.2em;
	text-align: left;
}

.event-item-details {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}



.event-item__starts {
	display: flex;
	flex-direction: column;
	line-height: 1em;
}


.flexRow {
	display: flex;
	width: 100%;
	margin: 5px 0;
}

.smlText {
	font-size: var(--fs-clamped);
}

.basketIconWrapper {
	position: relative;
	font-size: 22px;
	cursor: pointer;
	margin: -2px 10px 0 10px;
}


#basketItemCount {
	position: absolute;
	font-size: 10px;
	background: green;
	color: white;
	width: 18px;
	height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	bottom: -2px;
	left: -6px;
}


#basketWrapper {
	position: absolute;
	top: 70px;
	width: 100%;
	background: #e8e7e7;
	display: flex;
	align-content: space-between;
	justify-content: flex-start;
	max-height: 0;
	overflow: hidden;
	flex-direction: column;
	align-items: center;
	max-width: calc(100% - 20px);
	margin: 0 auto;
	padding-top: 0px;
	border-radius: 8px;
	border: none;
}

.basketOpen {
	min-height: 50vh !important;
	max-height: 100vh !important;
	overflow-x: hidden !important;
	overflow-y: auto !important; 
	padding-top: 20px !important;
	border: 1px solid #a8a8a8 !important;
}

#manageingEventTitleAndDateWrapper {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

#apListPanel {
	margin-bottom: 20px;
}

.stongMTop {
	border-top: 1px solid var(--color-text-muted);
	width: 100%;
	display: inline-block;
	margin-top: 20px;
	padding-top: 5px;
} 

.payBtn {
	padding: 10px 20px;
	font-size: 0.9em;
}
