/* ============================================================
   Wild Education & Conservation — Main Stylesheet
   Color Palette:
     Green Dark:   #1B4332
     Green Mid:    #2D6A4F
     Green Light:  #52B788
     Green Pale:   #D8F3DC
     Blue Dark:    #1A5276
     Blue Mid:     #2874A6
     Blue Light:   #5DADE2
     Blue Pale:    #D6EAF8
     Background:   #F4F9F6
     Text:         #1B2B1F
   ============================================================ */

:root {
  --green-dark:  #1B4332;
  --green-mid:   #2D6A4F;
  --green-light: #52B788;
  --green-pale:  #D8F3DC;
  --blue-dark:   #1A5276;
  --blue-mid:    #2874A6;
  --blue-light:  #5DADE2;
  --blue-pale:   #D6EAF8;
  --bg:          #F4F9F6;
  --bg-alt:      #EAF4EA;
  --text:        #1B2B1F;
  --text-muted:  #4A6455;
  --white:       #FFFFFF;
  --shadow:      0 2px 12px rgba(27, 67, 50, 0.10);
  --radius:      8px;
  --nav-height:  68px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--blue-mid); text-decoration: none; }
a:hover { color: var(--green-mid); text-decoration: underline; }
a:focus-visible { outline: 3px solid var(--green-light); outline-offset: 3px; border-radius: 3px; }


img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.25;
}

/* ── Navigation ── */
header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  width: 40px;
  height: 40px;
  background: var(--green-pale);
  border-radius: 50%;
  border: 2px solid var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.nav-logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.2;
}

.nav-logo-text span {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links a {
  display: inline-block;
  width: auto;
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--green-pale);
  color: var(--green-dark);
}

.nav-signin {
  display: inline-block !important;
  background: #2D6A4F !important;
  background-color: #2D6A4F !important;
  color: #FFFFFF !important;
  border-radius: var(--radius) !important;
  padding: 8px 20px !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  border: none !important;
  cursor: pointer !important;
}

.nav-signin:hover {
  background: #1B4332 !important;
  background-color: #1B4332 !important;
  color: #FFFFFF !important;
}


/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--green-dark);
  border-radius: 2px;
}

/* Mobile Sign In item — hidden on desktop, shown inside dropdown on mobile */
.nav-signin-mobile { display: none; }

/* Profile widget (logged-in state) */
.nav-profile-wrap { position: relative; display: flex; align-items: center; margin-left: 8px; }
.nav-profile-btn {
  background: none; border: none; cursor: pointer;
  padding: 4px; border-radius: 50%;
  display: flex; align-items: center; position: relative;
}
.nav-profile-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  color: #fff; font-size: 0.82rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--green-light);
  flex-shrink: 0;
}
.nav-profile-badge {
  position: absolute; top: 0; right: 0;
  background: #e53e3e; color: #fff;
  font-size: 0.6rem; font-weight: 700;
  width: 15px; height: 15px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.nav-profile-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--white); border: 1px solid var(--green-pale);
  border-radius: var(--radius); box-shadow: var(--shadow);
  min-width: 190px; z-index: 200; overflow: hidden;
}
.nav-profile-info { padding: 12px 16px; border-bottom: 1px solid var(--green-pale); }
.nav-profile-info strong { display: block; color: var(--green-dark); font-size: 0.9rem; }
.nav-profile-tier { font-size: 0.75rem; color: var(--text-muted); }
.nav-profile-item {
  display: block; padding: 10px 16px;
  font-size: 0.85rem; color: var(--text); text-decoration: none;
  transition: background 0.15s;
}
.nav-profile-item:hover { background: var(--green-pale); color: var(--green-dark); }
.nav-profile-signout { color: #c0392b; border-top: 1px solid var(--green-pale); }
.nav-profile-signout:hover { background: #fce4e4; }
.nav-profile-alert { color: var(--green-mid); font-weight: 600; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--green-pale); }
.nav-profile-dot { width: 7px; height: 7px; background: #e53e3e; border-radius: 50%; }

/* ── Page Hero ── */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--blue-dark) 100%);
}

/* HERO BANNER IMAGE PLACEHOLDER
   Replace the gradient above with:
   background: url('../images/hero-banner.jpg') center/cover no-repeat;
   Recommended size: 1920 × 600 px  */

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 40px 24px;
  max-width: 780px;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--white);
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 1.2rem;
  opacity: 0.92;
  margin-bottom: 28px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.18); text-decoration: none; }
.btn:focus-visible { outline: 3px solid var(--green-dark); outline-offset: 3px; }

.btn-primary {
  background: var(--green-light);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  margin-left: 12px;
}

/* ── Sections ── */
.section {
  padding: 72px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-alt {
  background: var(--bg-alt);
}

.section-alt > .section {
  /* use inside a .section-alt wrapper div */
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--green-dark);
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--green-light), var(--blue-light));
  border-radius: 2px;
  margin: 12px 0 32px;
}

/* ── Cards ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(27, 67, 50, 0.14);
}

.card-img {
  /* CARD IMAGE PLACEHOLDER — recommended size: 600 × 400 px */
  width: 100%;
  height: 200px;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-bottom: 2px solid var(--green-pale);
}

.card-body {
  padding: 20px;
}

.card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ── Calendar ── */
.calendar-wrapper {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 680px;
}

.cal-header {
  background: linear-gradient(135deg, var(--green-mid), var(--blue-mid));
  color: var(--white);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cal-header h3 { color: var(--white); font-size: 1.1rem; }

.cal-nav {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 1.3rem;
  padding: 4px 10px;
  border-radius: 4px;
  transition: background 0.2s;
}
.cal-nav:hover { background: rgba(255,255,255,0.2); }

.cal-timezone {
  font-size: 0.78rem;
  opacity: 0.85;
  padding: 4px 20px 8px;
  background: linear-gradient(135deg, var(--green-mid), var(--blue-mid));
  color: var(--white);
  text-align: right;
}

.cal-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--green-pale);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-dark);
  padding: 8px 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #e0e0e0;
}

.cal-cell {
  background: var(--white);
  min-height: 64px;
  padding: 6px 8px;
  font-size: 0.85rem;
  position: relative;
  cursor: default;
}

.cal-cell.empty { background: var(--bg); }

.cal-cell.today {
  background: var(--blue-pale);
}

.cal-cell.today .cal-date {
  background: var(--blue-mid);
  color: var(--white);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-date { font-weight: 600; margin-bottom: 4px; }

.cal-event {
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: 0.7rem;
  padding: 2px 4px;
  border-radius: 3px;
  margin-bottom: 2px;
  border-left: 3px solid var(--green-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-event.event-blue {
  background: var(--blue-pale);
  color: var(--blue-dark);
  border-left-color: var(--blue-light);
}

.cal-event.event-class {
  background: #fff3cd;
  color: #7d4e00;
  border-left-color: #f0a500;
}

.cal-clock {
  padding: 10px 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--green-pale);
  text-align: right;
}

/* ── Page Banner (inner pages) ── */
.page-banner {
  background: linear-gradient(135deg, var(--green-dark), var(--blue-dark));
  color: var(--white);
  padding: 56px 24px;
  text-align: center;
}

/* PAGE BANNER IMAGE (optional per-page):
   Add inline style="background-image: url('../images/page-name-banner.jpg')"
   Recommended size: 1920 × 360 px */

.page-banner h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); }
.page-banner p  { opacity: 0.88; font-size: 1.1rem; margin-top: 10px; }

/* ── Contact Strip ── */
.contact-strip {
  background: var(--green-dark);
  color: var(--white);
  text-align: center;
  padding: 48px 24px;
}

.contact-strip h2 { color: var(--white); margin-bottom: 10px; }
.contact-strip p  { opacity: 0.85; margin-bottom: 20px; }

.contact-strip a.btn {
  background: var(--white);
  color: var(--green-dark);
  font-weight: 700;
}
.contact-strip a.btn:hover { background: var(--green-pale); }

/* ── Footer ── */
footer {
  background: #111F17;
  color: #A8C4B0;
  font-size: 0.88rem;
  padding: 40px 24px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand p { color: #7FA890; margin-top: 8px; font-size: 0.85rem; }
.footer-brand h3 { color: var(--white); font-size: 1rem; }

.footer-links h4 { color: var(--white); margin-bottom: 12px; font-size: 0.9rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 6px; }
.footer-links a { color: #A8C4B0; }
.footer-links a:hover { color: var(--white); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid #1F3527;
  padding-top: 20px;
  text-align: center;
  color: #5A7A62;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Content prose (inner pages) ── */
.prose {
  max-width: 760px;
}

.prose h2 { font-size: 1.6rem; margin: 36px 0 12px; }
.prose h3 { font-size: 1.2rem; color: var(--blue-dark); margin: 28px 0 8px; }
.prose p  { margin-bottom: 16px; color: var(--text-muted); }
.prose ul { margin: 0 0 16px 20px; color: var(--text-muted); }
.prose li { margin-bottom: 6px; }

/* ── Hero Banner (randomized image version) ── */
.hero.has-banner {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ── Home Calendar + Side Panel Two-Column ── */
.cal-two-col {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

.cal-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cal-side-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.cal-side-card h3 {
  font-size: 1rem;
  color: var(--green-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cal-side-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.cal-side-card .btn {
  font-size: 0.88rem;
  padding: 8px 18px;
}

.quick-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.9rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--green-pale);
  transition: color 0.2s;
}

.quick-links a:hover { color: var(--green-mid); text-decoration: none; }

/* ── Knowledge Library ── */
.library-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.filter-btn {
  background: var(--white);
  border: 2px solid var(--green-pale);
  color: var(--text-muted);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--green-pale);
  border-color: var(--green-light);
  color: var(--green-dark);
}

.library-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.lib-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.lib-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(27, 67, 50, 0.14);
  text-decoration: none;
}

.lib-card-img {
  width: 100%;
  height: 160px;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.lib-card-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.lib-card-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-mid);
  margin-bottom: 6px;
}

.lib-card-body h3 {
  font-size: 1rem;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.lib-card-body p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  flex: 1;
}

.lib-card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--green-pale);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Article pages ── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 48px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px;
}

.article-content {}

.article-header {
  margin-bottom: 32px;
}

.article-tag {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.article-header h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--green-dark);
  margin-bottom: 12px;
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.article-img {
  width: 100%;
  height: 320px;
  background: var(--green-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  margin-bottom: 32px;
  overflow: hidden;
}

.article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 20px;
}

.sidebar-card h4 {
  font-size: 0.9rem;
  color: var(--green-dark);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--green-pale);
}

.sidebar-card ul {
  list-style: none;
  font-size: 0.88rem;
}

.sidebar-card li {
  padding: 5px 0;
  border-bottom: 1px solid var(--bg);
}

.sidebar-card a {
  color: var(--text-muted);
}

.sidebar-card a:hover { color: var(--green-mid); text-decoration: none; }

.toc-list {
  list-style: none;
  counter-reset: toc;
}

.toc-list li {
  counter-increment: toc;
  padding: 5px 0;
  border-bottom: 1px solid var(--bg);
  font-size: 0.85rem;
}

.toc-list li::before {
  content: counter(toc) ". ";
  color: var(--green-light);
  font-weight: 700;
}

.toc-list a { color: var(--text-muted); }
.toc-list a:hover { color: var(--green-mid); text-decoration: none; }

/* ── Social / Community page ── */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.social-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  text-align: center;
  color: var(--white);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.social-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
  text-decoration: none;
  color: var(--white);
}

.social-card .social-icon { font-size: 2.4rem; line-height: 1; }
.social-card h3 { color: var(--white); font-size: 1.1rem; margin: 0; }
.social-card p { font-size: 0.85rem; opacity: 0.88; margin: 0; }

.social-facebook  { background: #1877F2; }
.social-instagram { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); }
.social-youtube   { background: #FF0000; }
.social-tiktok    { background: #010101; }
.social-nextdoor  { background: #00B246; }
.social-email     { background: var(--green-dark); }

.embed-placeholder {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border: 2px dashed var(--green-pale);
}

.embed-placeholder strong { display: block; color: var(--green-dark); margin-bottom: 8px; font-size: 1rem; }

/* ── Booking page ── */
.class-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.class-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.class-card-header {
  background: linear-gradient(135deg, var(--green-mid), var(--blue-mid));
  color: var(--white);
  padding: 20px;
}

.class-card-header h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 4px; }
.class-card-header .class-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.class-card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.class-card-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--green-dark); margin: 0 0 8px; }
.class-card-body p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 10px; }

.class-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}

.class-meta span {
  font-size: 0.83rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.class-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 14px;
}

.class-price small { font-size: 0.75rem; font-weight: 400; color: var(--text-muted); }

/* Booking form */
.booking-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  max-width: 600px;
}

.booking-form-wrap h2 { font-size: 1.3rem; color: var(--green-dark); margin-bottom: 6px; }
.booking-form-wrap .form-sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.83rem; font-weight: 600; color: var(--text-muted); margin-bottom: 5px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid #cde0d4;
  border-radius: 6px;
  font-size: 0.92rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: 2px solid var(--green-light); outline-offset: 0; border-color: var(--green-light); background: #fff; }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.payment-notice {
  background: var(--blue-pale);
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--blue-dark);
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.payment-notice strong { display: block; margin-bottom: 3px; }

/* ── Members page ── */
.members-hero {
  background: linear-gradient(135deg, var(--green-dark), var(--blue-dark));
  color: var(--white);
  text-align: center;
  padding: 80px 24px;
}
.members-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 12px; }
.members-hero p { opacity: 0.88; font-size: 1.1rem; max-width: 580px; margin: 0 auto 28px; }

.tier-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.tier-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
}

.tier-card-header {
  padding: 24px 20px 20px;
  background: var(--green-pale);
}

.tier-card-header.featured {
  background: linear-gradient(135deg, var(--green-mid), var(--blue-mid));
  color: var(--white);
}

.tier-card-header.featured h3 { color: var(--white); }

.tier-card-header h3 { font-size: 1.1rem; color: var(--green-dark); margin-bottom: 6px; }

.tier-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1;
}

.tier-card-header.featured .tier-price { color: var(--white); }
.tier-price small { font-size: 0.9rem; font-weight: 400; }

.tier-features {
  list-style: none;
  padding: 20px;
  text-align: left;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.tier-features li {
  padding: 7px 0;
  border-bottom: 1px solid var(--bg);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.tier-features li::before {
  content: "✓";
  color: var(--green-light);
  font-weight: 700;
  flex-shrink: 0;
}

.tier-card-footer {
  padding: 0 20px 24px;
}

/* Auth forms */
.auth-wrap {
  max-width: 420px;
  margin: 0 auto;
  padding: 56px 24px;
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.auth-card h2 { font-size: 1.4rem; color: var(--green-dark); margin-bottom: 6px; }
.auth-card .auth-sub { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 24px; }
.auth-link { display: block; text-align: center; margin-top: 18px; font-size: 0.88rem; color: var(--text-muted); }

/* Dashboard */
.dashboard-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}

.dashboard-sidebar {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dash-user {
  background: linear-gradient(135deg, var(--green-dark), var(--blue-dark));
  color: var(--white);
  padding: 20px;
  text-align: center;
}

.dash-user h3 { color: var(--white); font-size: 1rem; margin-bottom: 4px; }
.dash-user p { font-size: 0.78rem; opacity: 0.8; }
.dash-badge { display: inline-block; background: var(--green-light); color: #fff; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; padding: 3px 10px; border-radius: 12px; margin-top: 8px; letter-spacing: 0.05em; }

.dash-nav a {
  display: block;
  padding: 12px 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--bg);
  transition: color 0.2s, background 0.2s;
}
.dash-nav a:hover, .dash-nav a.active { background: var(--green-pale); color: var(--green-dark); text-decoration: none; }

.dashboard-main { }
.dash-section { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 20px; }
.dash-section h3 { font-size: 1rem; color: var(--green-dark); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--green-pale); }

/* ── Booking — additional styles ── */
.class-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0; }
.class-spots { font-size: 0.8rem; font-weight: 600; color: var(--green-mid); background: var(--green-pale); padding: 3px 10px; border-radius: 12px; }
.class-price-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }
.class-price { font-size: 1.1rem; font-weight: 700; color: var(--green-dark); }

.selected-class-banner {
  background: var(--green-pale);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 0.92rem;
}
.selected-class-banner strong { color: var(--green-dark); font-size: 1rem; }
.selected-class-banner span { color: var(--text-muted); }

/* ── Notices (used in PHP pages) ── */
.notice { padding: 14px 18px; border-radius: var(--radius); font-size: 0.92rem; margin-bottom: 20px; }
.notice-error   { background: #fce4e4; color: #c0392b; border: 1px solid #f5b7b1; }
.notice-success { background: var(--green-pale); color: var(--green-dark); border: 1px solid var(--green-light); }

/* ── Membership tiers — additional ── */
.tier-name  { font-size: 1.1rem; font-weight: 700; color: var(--green-dark); margin-bottom: 8px; }
.tier-badge { display: inline-block; background: var(--green-mid); color: #fff; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 10px; border-radius: 12px; margin-bottom: 8px; }
.tier-card.featured .tier-name { color: var(--green-dark); }
.tier-card.featured { border: 2px solid var(--green-mid); box-shadow: 0 4px 24px rgba(45,106,79,0.18); }

/* ── Dashboard avatar ── */
.dash-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--green-mid); color: #fff;
  font-size: 1.5rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; align-items: flex-start; position: absolute; top: var(--nav-height); left: 0; right: 0; background: var(--white); padding: 12px 16px; box-shadow: var(--shadow); z-index: 99; }
  .nav-links.open { display: flex; }
  /* Hide the main-bar Sign In / profile on mobile — it's added to the dropdown instead */
  .nav-signin { display: none !important; }
  .nav-profile-mobile-hide { display: none; }
  .nav-toggle { display: flex; }
  /* Show the Sign In item that lives inside the nav-links dropdown */
  .nav-signin-mobile { display: list-item; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 8px; }
  .nav-signin-mobile a { font-weight: 600; color: var(--green-mid) !important; }
  .btn-secondary { margin-left: 0; margin-top: 10px; }
  .hero-content p { font-size: 1rem; }
  .cal-two-col { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
}

/* ── Reduce motion for users who prefer it ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
