/* =========================================================
   1. WEARMOUTH ARCHERS — OFFICIAL BRAND VARIABLES
   ========================================================= */

:root {
  /* Primary brand colours */
  --brand-teal:        #007589;   /* Teal — PANTONE P 120-14 C */
  --brand-raspberry:   #c40352;   /* Raspberry — PANTONE P 69-8 C */
  --brand-amber:       #f8bc04;   /* Amber — PANTONE P 10-8 C */
  --brand-platinum:    #c7ccd0;   /* Platinum — PANTONE P 175-1 C */
  --brand-orange:      #FFA500;   /* Bright Orange — PANTONE P 17-8 C */

  /* Extended shades */
  --brand-teal-dark:       #005e6d;
  --brand-teal-light:      #e0f3f6;
  --brand-raspberry-dark:  #a30242;
  --brand-raspberry-light: #fbe3ee;
  --brand-amber-dark:      #d9a304;
  --brand-amber-light:     #fff3c9;
  --brand-orange-dark:     #cc8400;
  --brand-orange-light:    #ffe8c2;

  /* Neutrals */
  --brand-light:  #f8f9fa;
  --brand-grey:   #e6e6e6;
  --brand-dark:   #1a1a1a;

  /* Typography */
  --font-sans: "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Courier New", Courier, monospace;
  --text-base:  #212529;
  --text-muted: #6c757d;

  /* Layout */
  --spacer:        1rem;
  --border-radius: 0.25rem;
}

/* =========================================================
   2. BASE STYLES
   ========================================================= */

body {
  font-family: var(--font-sans);
  color: var(--text-base);
  background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--brand-teal);
  font-weight: 700;
}

a {
  color: var(--brand-teal);
  text-decoration: none;
}
a:hover,
a:focus {
  color: var(--brand-teal-dark);
  text-decoration: underline;
}

.section-title {
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.3px;
}

/* Soft backgrounds */
.bg-soft-neutral {
  background-color: var(--brand-light) !important;
}
.bg-alt {
  background-color: #eef7f7 !important;
}

/* Muted text override */
.text-soft-light {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Basic spacing utilities (only a few, avoid conflicts) */
.m-0  { margin: 0 !important; }
.p-0  { padding: 0 !important; }
.px-1 { padding-left: .25rem !important; padding-right: .25rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mb-3 { margin-bottom: 1rem !important; }

/* =========================================================
   3. BUTTONS (Brand-aligned)
   ========================================================= */

/* Teal */
.btn-teal {
  background-color: var(--brand-teal);
  color: #fff;
  border: 1px solid var(--brand-teal);
  border-radius: var(--border-radius);
}
.btn-teal:hover,
.btn-teal:focus {
  background-color: var(--brand-teal-dark);
  border-color: var(--brand-teal-dark);
  color: #fff;
}

/* Outline teal */
.btn-outline-teal {
  color: var(--brand-teal);
  border: 2px solid var(--brand-teal);
  background-color: transparent;
  border-radius: var(--border-radius);
}
.btn-outline-teal:hover,
.btn-outline-teal:focus {
  background-color: var(--brand-teal);
  color: #fff;
}

/* Raspberry */
.btn-raspberry {
  background-color: var(--brand-raspberry);
  color: #fff;
  border: 1px solid var(--brand-raspberry);
  border-radius: var(--border-radius);
}
.btn-raspberry:hover,
.btn-raspberry:focus {
  background-color: var(--brand-raspberry-dark);
  border-color: var(--brand-raspberry-dark);
}

/* Amber */
.btn-amber {
  background-color: var(--brand-amber);
  color: #000;
  border: 1px solid var(--brand-amber);
  border-radius: var(--border-radius);
}
.btn-amber:hover,
.btn-amber:focus {
  background-color: var(--brand-amber-dark);
  border-color: var(--brand-amber-dark);
  color: #000;
}

/* Bright orange */
.btn-orange {
  background-color: var(--brand-orange);
  color: #fff;
  border: 1px solid var(--brand-orange);
  border-radius: var(--border-radius);
}
.btn-orange:hover,
.btn-orange:focus {
  background-color: var(--brand-orange-dark);
  border-color: var(--brand-orange-dark);
}

/* Burnt orange special */
.btn-burnt-orange {
  background-color: var(--brand-orange-dark);
  color: #fff;
  border: none;
  border-radius: var(--border-radius);
}
.btn-burnt-orange:hover,
.btn-burnt-orange:focus {
  background-color: #b34700;
  color: #fff;
}

/* Outline amber */
.btn-outline-amber {
  color: var(--brand-amber);
  border: 1px solid var(--brand-amber);
  background-color: transparent;
}
.btn-outline-amber:hover,
.btn-outline-amber:focus {
  background-color: var(--brand-amber);
  color: #000;
}

/* Outline burnt orange */
.btn-outline-burnt-orange {
  color: var(--brand-orange-dark);
  border: 1px solid var(--brand-orange-dark);
  background-color: transparent;
  transition: all 0.2s ease-in-out;
}
.btn-outline-burnt-orange:hover,
.btn-outline-burnt-orange:focus {
  background-color: var(--brand-orange-dark);
  color: #fff;
}

/* Button shape consistency */
.btn-lg,
.btn-sm {
  border-radius: var(--border-radius);
  letter-spacing: 0.02em;
}

/* =========================================================
   4. UTILITIES (colours, backgrounds, borders)
   ========================================================= */

.text-teal        { color: var(--brand-teal) !important; }
.text-raspberry   { color: var(--brand-raspberry) !important; }
.text-amber       { color: var(--brand-amber) !important; }
.text-orange      { color: var(--brand-orange) !important; }

.bg-teal          { background-color: var(--brand-teal) !important; color: #fff; }
.bg-raspberry     { background-color: var(--brand-raspberry) !important; color: #fff; }
.bg-amber         { background-color: var(--brand-amber) !important; color: #000; }
.bg-orange        { background-color: var(--brand-orange) !important; color: #000; }
.bg-platinum      { background-color: var(--brand-platinum) !important; color: #000; }

.bg-soft-teal      { background-color: var(--brand-teal-light) !important; }
.bg-soft-raspberry { background-color: var(--brand-raspberry-light) !important; }
.bg-soft-amber     { background-color: var(--brand-amber-light) !important; }
.bg-soft-orange    { background-color: var(--brand-orange-light) !important; }

.border-teal       { border-color: var(--brand-teal) !important; }
.border-raspberry  { border-color: var(--brand-raspberry) !important; }
.border-amber      { border-color: var(--brand-amber) !important; }
.border-orange     { border-color: var(--brand-orange) !important; }

/* Icon circles */
.step-icon,
.about-icon,
.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  font-size: 1.25rem;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Hover lift */
.hover-lift {
  transition: transform .18s ease, box-shadow .18s ease;
}
.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
/* =====================================================
   HERO — WEARMOUTH MULTI-ACCENT LINE PATTERN
   ===================================================== */

#hero {
  position: relative;
  padding: 3rem 0 3.5rem;
  min-height: 30vh;
  display: flex;
  align-items: center;
  overflow: visible;
  isolation: isolate;

  /* Cool-dominant gradient base */
  background: linear-gradient(
    135deg,
    #00171d 0%,      /* deep navy */
    #03202a 25%,     /* cooler midnight */
    #0a3d4a 55%,     /* deep cyan */
    #007589 80%,     /* Wearmouth teal */
    #00bcd4 100%     /* electric teal */
  );
}

/* Multi-accent line-based pattern */
#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;

  background:

    /* Raspberry diagonal lines */
    repeating-linear-gradient(
      135deg,
      rgba(196, 3, 82, 0.12) 0px,
      rgba(196, 3, 82, 0.12) 1px,
      transparent 1px,
      transparent 22px
    ),

    /* Teal cross-hatch */
    repeating-linear-gradient(
      45deg,
      rgba(0, 117, 137, 0.10) 0px,
      rgba(0, 117, 137, 0.10) 1px,
      transparent 1px,
      transparent 28px
    ),

    /* Platinum vertical micro-stripes */
    repeating-linear-gradient(
      90deg,
      rgba(199, 204, 208, 0.10) 0px,
      rgba(199, 204, 208, 0.10) 1px,
      transparent 1px,
      transparent 40px
    ),

    /* Orange micro-ticks (tiny, non-amber) */
    repeating-linear-gradient(
      0deg,
      rgba(255, 165, 0, 0.10) 0px,
      rgba(255, 165, 0, 0.10) 1px,
      transparent 1px,
      transparent 60px
    );
}

/* Content layer */
.hero-pro .z-1 {
  position: relative;
  z-index: 3;
}

/* Typography — bold, clean, elite */
#hero h1,
#hero .display-4 {
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-shadow: 0 0 18px rgba(0,0,0,0.6);
}

#hero p,
#hero .lead {
  color: rgba(255,255,255,0.92);
  font-size: 1.15rem;
  line-height: 1.55;
}

/* Buttons — amber only as a micro-accent */
#hero .btn-amber {
  background-color: #f8bc04;
  color: #000;
  border: none;
  font-weight: 700;
  padding: 0.85rem 1.6rem;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(248,188,4,0.25);
}
#hero .btn-amber:hover {
  background-color: #d4a106;
}

#hero .btn-outline-light {
  border: 2px solid #fff;
  color: #fff;
  padding: 0.85rem 1.6rem;
  border-radius: 8px;
  font-weight: 700;
}
#hero .btn-outline-light:hover {
  background-color: #fff;
  color: #04121f;
}

/* Right-hand hero panel */
.hero-panel {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(14px) saturate(160%);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: 0 12px 48px rgba(0,0,0,0.45);
  color: #fff;
}


/* =====================================================
   FLOATING CALENDAR — COOL-DOMINANT, PREMIUM
   ===================================================== */

.floating-calendar .sidecard {
  min-width: 320px;
  max-width: 360px;
  padding: 1.5rem 1.75rem;

  background: rgba(0,0,0,0.85);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;

  backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 12px 48px rgba(0,0,0,0.65);

  color: #fff;
  z-index: 20;
  position: relative;
}

/* Header — tiny amber accent only */
.floating-calendar .sidecard-title {
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 1rem;
  color: #eab308; /* muted amber */
  letter-spacing: 0.5px;
}

/* Event rows */
.floating-calendar .event-row {
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.floating-calendar .event-title {
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #fff;
}

.floating-calendar .event-meta {
  font-size: 0.9rem;
  opacity: 0.9;
  color: #dfe6eb;
}

/* Footer link — subtle amber */
.floating-calendar .sidecard-footer-link {
  display: block;
  margin-top: 1rem;
  text-align: right;
  color: #eab308;
  font-weight: 700;
  text-decoration: none;
}
.floating-calendar .sidecard-footer-link:hover {
  color: #f1c40f;
}

/* Mobile */
@media (max-width: 992px) {
  .floating-calendar {
    display: none;
  }
}



/* =====================================================
   FLOATING CALENDAR — WEARMOUTH SPORT-TECH (FLOATING)
   ===================================================== */

/* Floating wrapper */
#floating-calendar-wrapper {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: auto;
}

/* Pill button */
#calendar-pill {
  background: #ffffff;
  border: 2px solid #007589; /* Wearmouth teal */
  color: #007589;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  transition: all 0.2s ease;
}

#calendar-pill:hover {
  background: #007589;
  color: #ffffff;
}

/* Expanded card — always visible by default */
#calendar-card {
  display: block; /* stays open unless user collapses */
  width: 420px;
  margin-top: 0.75rem;

  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid #c7ccd0; /* Wearmouth platinum */
  box-shadow: 0 12px 48px rgba(0,0,0,0.15);

  color: #374151;
}

/* Title */
#calendar-card h2 {
  color: #007589;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Event rows */
#calendar-card .event-row {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
}

/* Event title */
#calendar-card .fw-bold {
  color: #007589;
}

/* Metadata */
#calendar-card .text-muted {
  color: #6b7280 !important;
}

#calendar-card .small {
  color: #374151;
}

/* Links */
#calendar-card a {
  color: #007589;
  text-decoration: underline;
}

#calendar-card a:hover {
  color: #00bcd4;
}

/* Button */
#calendar-card .btn-teal {
  background: #007589;
  color: #ffffff;
  font-weight: 700;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  border: none;
  transition: background 0.2s ease;
}

#calendar-card .btn-teal:hover {
  background: #00bcd4;
}

/* Mobile */
@media (max-width: 576px) {
  #floating-calendar-wrapper {
    bottom: 1rem;
    right: 1rem;
  }

  #calendar-card {
    width: 100%;
  }
}


/* =========================================================
   6. JOURNEY / PATHWAYS / ABOUT / BENEFITS
   ========================================================= */

.journey-step,
.about-card,
.benefit-card,
.next-session-card {
  background-color: #eef7f7 !important;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--border-radius);
  box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.journey-step:hover,
.about-card:hover,
.benefit-card:hover,
.next-session-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
  background-color: #f0f4f6 !important;
}

.step-icon {
  width: 3.5rem;
  height: 3.5rem;
  font-size: 1.5rem;
}

.about-icon {
  width: 3rem;
  height: 3rem;
  font-size: 1.25rem;
}

.benefit-card .icon-circle {
  width: 44px;
  height: 44px;
  font-size: 1.25rem;
}



/* Accent bar (small amber line) */
.accent-bar {
  width: 60px;
  height: 4px;
  background: var(--brand-amber);
  border-radius: 2px;
}

/* Decorative journey gradient bar behind cards */
#journey.position-relative::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -30%;
  width: 160%;
  height: 200px;
  background: linear-gradient(
    135deg,
    var(--brand-orange),
    transparent 50%
  );
  transform: rotate(-8deg);
  pointer-events: none;
  z-index: 0;
}
#journey .accent-bar {
  position: relative;
  z-index: 1;
}
.journey-step {
  position: relative;
  z-index: 2;
}

/* Next session card accent */
.next-session-card {
  border-left: 4px solid var(--brand-teal);
}
.next-session-card:hover {
  background-color: var(--brand-teal-light);
}

.index-card {
  background-color: #f8fafb; /* soft neutral */
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 0.75rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease;
}

.index-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   7. PUBLIC TABLES (Sessions) & Membership tables
   ========================================================= */

.sessions-table {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}
.sessions-table thead th {
  background: #f0f2f5;
  color: #2c3e50;
  border-bottom: 1px solid #d0d4d9;
}
.sessions-table tbody td {
  padding-top: .55rem;
  padding-bottom: .55rem;
  border-top: 1px solid rgba(0,0,0,.08);
}
.sessions-table .event-name {
  color: #1a1a1a;
  font-weight: 600;
}
.sessions-table .location {
  color: #444;
}
.sessions-table .dt {
  color: #1a1a1a;
}

/* Zebra rows */
.sessions-zebra tbody tr:nth-child(odd) {
  background: #fff;
}
.sessions-zebra tbody tr:nth-child(even) {
  background: #f5f7fb;
}
.sessions-zebra tbody tr:hover {
  background: #e6f0fa;
}

/* Chips */
.type-chip {
  background: #f0f0f0;
  border: 1px solid #ccc;
  color: #333;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.85rem;
}
.type-outdoor { background: #d4f4dc; }
.type-indoor  { background: #d4e9ff; }
.type-maint   { background: #fff1c7; }

/* Membership section headings */
#annualFees h2,
#secondClaim h2,
#seasonal h2,
#sessions h2 {
  border-bottom: 3px solid var(--brand-raspberry);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 0.02em;
  color: var(--brand-teal);
}

/* Membership tables */
.membership-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}
.membership-table thead th {
  background-color: var(--brand-teal);
  color: #fff;
  border-color: var(--brand-teal);
  vertical-align: middle;
  padding: 0.75rem;
}
.membership-table tbody tr:nth-child(even) {
  background-color: var(--brand-teal-light);
}
.membership-table tbody tr:hover {
  background-color: var(--brand-raspberry-light);
}
.membership-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #ddd;
}

/* Membership cards */
.fees-card {
  background: #fff;
  border: 1px solid var(--brand-platinum);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.fees-card h3 {
  color: var(--brand-teal);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.fees-card .price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brand-raspberry);
  margin-bottom: 0.5rem;
}
.fees-card ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}
.fees-card ul li {
  margin-bottom: 0.35rem;
}

/* Membership chips and zebra */
.membership-zebra tbody tr:nth-child(odd) {
  background: #fff;
}
.membership-zebra tbody tr:nth-child(even) {
  background: #f5f7fb;
}
.membership-zebra tbody tr:hover {
  background: #e6f0fa;
}

.membership-chip {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid #ccc;
  background: #f0f0f0;
  color: #333;
}
.membership-chip.indoor     { background: #d4e9ff; }
.membership-chip.outdoor    { background: #d4f4dc; }
.membership-chip.maintenance{ background: #fff1c7; }

/* Wide tables wrapper */
.wide-table .table-responsive {
  margin: 0 -1rem;
  padding: 0 1rem;
}
.wide-table .table {
  min-width: 900px;
}

/* Callouts */
.callout {
  background-color: #e6f7f7;
  border-left: 4px solid var(--brand-teal);
  padding: 1rem 1.25rem;
  border-radius: .25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
}
.callout .bi-info-circle-fill {
  margin-right: 1rem;
  font-size: 2rem;
  color: var(--brand-teal);
}

/* =========================================================
   8. SIDECARD (Calendar / Events)
   ========================================================= */

.sidecard {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #111827;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.sidecard-header {
  background: linear-gradient(180deg, #0f2133, #0c1a29);
  padding: 0.75rem 1rem;
}
.sidecard-title {
  color: var(--brand-amber);
  font-weight: 700;
}
.sidecard-body {
  padding: 0.75rem 1rem;
}
.event-row {
  padding: 0.5rem 0;
  border-top: 1px solid #f1f5f9;
}
.event-row:first-child {
  border-top: none;
}
.event-title {
  font-weight: 600;
  color: #0b1220;
  margin-bottom: 0.125rem;
}
.event-meta {
  font-size: 0.9375rem;
  color: #4b5563;
  line-height: 1.4;
}
.event-meta .meta {
  color: #6b7280;
}
.sidecard-footer-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
  color: #0b5ed7;
  text-decoration: none;
}
.sidecard-footer-link:hover {
  text-decoration: underline;
}

/* KPI cards */
.kpi-bar {
  margin-bottom: 2rem;
}
.kpi-card {
  background: #fff;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: .375rem;
  text-align: center;
}
.kpi-icon {
  font-size: 1.5rem;
  color: var(--brand-teal);
  margin-bottom: .5rem;
}
.kpi-value {
  font-size: 1.75rem;
  font-weight: 600;
}
.kpi-label {
  color: #718096;
  font-size: .875rem;
}

/* Global responsive tweaks */
@media (max-width: 991.98px) {
  .d-grid.gap-3 {
    gap: 1rem !important;
  }
}

/* Navbar desktop hover dropdowns */
@media (min-width: 992px) {
  .navbar .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

/* Dark mode support for public tables */
@media (prefers-color-scheme: dark) {
  .sessions-table {
    background: rgba(255,255,255,.06);
  }
  .sessions-table th {
    border-bottom-color: rgba(255,255,255,.12);
  }
  .sessions-table tr + tr td {
    border-top-color: rgba(255,255,255,.12);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   9. ADMIN UI — LAYOUT, TABLES, FORMS, BADGES
   ========================================================= */

.admin-wrapper {
  display: flex;
  flex-wrap: nowrap;
  min-height: 100vh;
}

.admin-sidebar {
  width: 250px;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--brand-teal-dark), var(--brand-teal));
  color: #fff;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.admin-sidebar .nav-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-platinum);
  margin: 1.5rem 0 0.75rem;
  letter-spacing: 0.05em;
}

.admin-sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  padding: 0.6rem 0.75rem;
  border-radius: var(--border-radius);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border-left: 4px solid transparent;
  background-color: transparent;
}
.admin-sidebar .nav-link:hover {
  background-color: rgba(255,255,255,0.1);
  border-left-color: var(--brand-amber);
  color: #fff;
}
.admin-sidebar .nav-link.active {
  background-color: #fff;
  color: var(--brand-teal);
  font-weight: 600;
  border-left-color: var(--brand-raspberry);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.admin-sidebar .nav-link i {
  font-size: 1rem;
  color: #fff;
  transition: color 0.2s ease;
}
.admin-sidebar .nav-link:hover i {
  color: var(--brand-amber);
}
.admin-sidebar .nav-link.active i {
  color: var(--brand-raspberry);
}
.admin-sidebar .nav-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(248, 188, 4, 0.35);
}

.admin-main {
  flex-grow: 1;
  padding: 2rem;
  background-color: #fff;
}
.admin-content {
  max-width: 1000px;
  margin: 0 auto;
}
.page-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--brand-raspberry);
}

/* Admin tables */
.admin-table {
  width: 100%;
  border: 2px solid var(--brand-teal);
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}
.admin-table thead th {
  background-color: var(--brand-teal);
  color: #fff;
  border-color: var(--brand-teal);
  padding: 0.75rem;
}
.admin-table tbody tr:nth-child(even) {
  background-color: var(--brand-platinum);
}
.admin-table tbody tr:hover {
  background-color: rgba(0, 117, 137, 0.1);
}
.admin-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #ccc;
}

/* Admin form inputs */
.admin-panel input[type="text"],
.admin-panel input[type="number"],
.admin-panel select {
  border: 1px solid var(--brand-teal);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  background-color: #fff;
  transition: border-color 0.2s ease;
}
.admin-panel input:focus,
.admin-panel select:focus {
  border-color: var(--brand-raspberry);
  outline: none;
}

/* Admin action buttons */
.admin-panel .btn-save {
  background-color: var(--brand-raspberry);
  color: #fff;
  border: none;
  border-radius: var(--border-radius);
  padding: 0.5rem 1rem;
}
.admin-panel .btn-save:hover {
  background-color: var(--brand-raspberry-dark);
}
.admin-panel .btn-cancel {
  background-color: var(--brand-platinum);
  color: #333;
  border: none;
  border-radius: var(--border-radius);
  padding: 0.5rem 1rem;
}
.admin-panel .btn-cancel:hover {
  background-color: #b0b6bb;
}

/* Admin flash messages */
.admin-flash {
  padding: 0.75rem 1rem;
  border-left: 5px solid var(--brand-orange);
  background-color: #fff8e6;
  color: #333;
  margin-bottom: 1rem;
  border-radius: 4px;
}

/* Admin badges */
body.admin {
  --admin-role-admins:    #009688; /* Teal */
  --admin-role-trustees:  #FFC107; /* Gold */
  --admin-role-members:   #6C757D; /* Grey */

  --admin-level-senior:   #4CAF50; /* Green */
  --admin-level-disabled: #9C27B0; /* Purple */
  --admin-level-junior:   #FF5722; /* Orange */

  --admin-expiry-warning: #C2185B; /* Raspberry */
}
body.admin .badge.role-admins    { background-color: var(--admin-role-admins);    color: #fff; }
body.admin .badge.role-trustees  { background-color: var(--admin-role-trustees);  color: #000; }
body.admin .badge.role-members   { background-color: var(--admin-role-members);   color: #fff; }
body.admin .badge.level-senior   { background-color: var(--admin-level-senior);   color: #fff; }
body.admin .badge.level-disabled { background-color: var(--admin-level-disabled); color: #fff; }
body.admin .badge.level-junior   { background-color: var(--admin-level-junior);   color: #fff; }
body.admin .text-raspberry       { color: var(--admin-expiry-warning) !important; }

/* =========================================================
   10. HOMEPAGE FLOATING CALENDAR & ROSTER
   ========================================================= */

/* Floating calendar under hero (desktop) */
.floating-calendar {
  position: absolute;
  top: 100%;
  right: 2rem;
  transform: translateY(-40%);
  z-index: 50;
}

/* Ensure hero doesn’t clip calendar */
.hero-exciting {
  overflow: visible;
}

/* Sticky sidebar helper */
.sticky-sidebar {
  position: sticky;
  top: 2rem;
}

/* Have-a-go roster card */
.haveago-roster-card {
  position: fixed;
  top: 160px;
  right: 30px;
  width: 340px;
  background: #ffffff;
  border: 2px solid var(--brand-teal);
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  z-index: 999;
  max-height: 75vh;
  overflow-y: auto;
}
.haveago-roster-card .roster-header {
  padding: 1rem;
  border-bottom: 2px solid var(--brand-teal);
  background: #e8f7f1;
  color: #0f5132;
  text-align: center;
}
.haveago-roster-card .roster-body {
  padding: .75rem;
}
.haveago-roster-card table th {
  font-size: .8rem;
  white-space: nowrap;
  background: #f0fdfa;
  color: #065f46;
}
.haveago-roster-card table td {
  font-size: .85rem;
  vertical-align: middle;
}

/* Branded button for roster/copy actions */
.btn-brand {
  background: var(--brand-teal) !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 600;
  width: 100%;
  text-align: center;
  padding: .45rem .75rem;
  border-radius: 6px;
  display: block;
}
.btn-brand:hover {
  background: #005a68 !important;
  color: #ffffff !important;
}

/* =====================================================
   PARTNER / AFFILIATE LOGOS — CONSISTENT & RESPONSIVE
   ===================================================== */

.partner-logo {
  display: block;
  max-height: 150px;       /* All logos same visual height */
  width: auto;            /* Preserve aspect ratio */
  object-fit: contain;    /* Prevent distortion */
  margin: 0 auto;         /* Center inside column */
  padding: 0.25rem;       /* Prevent edge clipping */
  transition: transform .2s ease;
}

.partner-logo:hover {
  transform: scale(1.05);
}

/* Align all logos on a baseline */
#partners .row {
  align-items: flex-end !important;
}

/* Mobile adjustments */
@media (max-width: 576px) {
  .partner-logo {
    max-height: 55px;
  }
}
/* Make all old heroes adopt the new hero-pro design */
.hero {
  position: relative;
  padding: 6rem 0;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 1rem;
}

/* Optional: unify spacing */
.hero .container,
.hero-pro .container {
  max-width: 1200px;
}

/* Accent bar stays as-is */
.hero .accent-bar {
  width: 80px;
  height: 4px;
  background: var(--amber);
  margin: 0 auto 1.5rem;
}

/* Typography alignment */
.hero h1 {
  font-weight: 700;
}

.hero p.lead {
  font-size: 1.25rem;
  opacity: 0.9;
}

/* =========================================================
   GLOBAL HERO OVERRIDE — TEXTURE + DEFAULT TEAL BACKGROUND
   ---------------------------------------------------------
   Applies multi-accent texture and fallback teal gradient
   to all .hero blocks unless a background utility is present.
   ========================================================= */

.hero,
.hero-about,
.hero-membership,
.hero-generic,
.hero-info,
.hero-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  /* Default background if no .bg-* utility is present */
  background: linear-gradient(
    135deg,
    #00171d 0%,
    #03202a 25%,
    #0a3d4a 55%,
    #007589 80%,
    #00bcd4 100%
  );
  color: #fff;
}

/* Texture layer */
.hero::before,
.hero-about::before,
.hero-membership::before,
.hero-generic::before,
.hero-info::before,
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  background:
    repeating-linear-gradient(
      135deg,
      rgba(196, 3, 82, 0.12) 0px,
      rgba(196, 3, 82, 0.12) 1px,
      transparent 1px,
      transparent 22px
    ),
    repeating-linear-gradient(
      45deg,
      rgba(0, 117, 137, 0.10) 0px,
      rgba(0, 117, 137, 0.10) 1px,
      transparent 1px,
      transparent 28px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(199, 204, 208, 0.10) 0px,
      rgba(199, 204, 208, 0.10) 1px,
      transparent 1px,
      transparent 40px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 165, 0, 0.10) 0px,
      rgba(255, 165, 0, 0.10) 1px,
      transparent 1px,
      transparent 60px
    );
}

/* Ensure content sits above texture */
.hero > *,
.hero-about > *,
.hero-membership > *,
.hero-generic > *,
.hero-info > *,
.hero-section > * {
  position: relative;
  z-index: 1;
}

/* Layout wrapper */
.tsl-layout {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
}

/* Main content column */
.tsl-main {
    flex: 1;
}

/* Floating sidebar card */
.tsl-floating-sidebar {
    width: 240px;
    background: var(--platinum);
    border-left: 6px solid var(--raspberry);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

