/* ============================================================
   pages.css — page-specific styles for LIBER
   Complements main.css (shared variables, nav, forms, footer)
   ============================================================ */

/* ── Pulse dot (hero eyebrow) ─────────────────────────────── */
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%,100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.5); opacity: 0.6; }
}

/* ═══════════════════════════════════════════════════════════
   HOME — Hero
   ═══════════════════════════════════════════════════════════ */
.hero {
  min-height: calc(100vh - 70px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 4rem 1.5rem;
  max-width: 1100px; margin: 0 auto;
}

.hero-eyebrow {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem;
}
.hero-eyebrow span {
  font-weight: 700; color: var(--teal);
  font-size: 0.9rem; letter-spacing: 1px; text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 1.0; margin-bottom: 1.5rem;
}
.hero-title .word1 {
  color: var(--liber-white); display: block;
  text-shadow: 0 3px 0 rgba(0,0,0,0.18);
  letter-spacing: 1px;
}
.hero-title .word2 {
  display: block;
  color: var(--liber-yellow);
  -webkit-text-fill-color: var(--liber-yellow);
  letter-spacing: 1px;
  text-shadow: 0 3px 0 rgba(0,0,0,0.22);
}

.hero-desc {
  font-size: 1.2rem; color: rgba(255,255,255,0.7);
  max-width: 520px; line-height: 1.8; margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 4rem;
}

/* ── Next-show banner & reg-open banner ───────────────────── */
.next-show-banner {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.next-show-banner::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: var(--grad2);
}
.show-meta { display: flex; flex-direction: column; gap: 0.2rem; }
.show-meta .label {
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; color: var(--orange);
}
.show-meta .value { font-family: var(--font-display); font-size: 1.4rem; }
.show-meta .sub   { font-size: 0.9rem; color: rgba(255,255,255,0.6); white-space: pre-line; }
/* Banner image (YesTicket event picture) */
.next-show-image {
  width: 200px; aspect-ratio: 16 / 9;
  object-fit: cover; border-radius: 12px;
  flex-shrink: 0;
  display: block;
}
.next-show-image.hidden { display: none; }
@media (max-width: 600px) {
  .next-show-image { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════
   ABOUT — layout, image box, members grid
   ═══════════════════════════════════════════════════════════ */
.about-intro {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center; margin-bottom: 5rem;
}
/* Courses page tweak — landscape photo + short text. Anchor both to the
   top so the title sits high (no big gap below the pill), and switch the
   image box to a wide aspect that actually matches the team photo. */
#coursesPage .about-intro {
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
  align-items: start;          /* no more vertical centering */
}
#coursesPage .about-img-box {
  width: 100%;
  aspect-ratio: 16 / 10;       /* landscape — fits the team photo cleanly */
}
/* Pull the image up to roughly match the title baseline */
#coursesPage .about-img-wrap { margin-top: 0.5rem; }
.about-text h2   { font-family: var(--font-display); font-size: 2.5rem; margin-bottom: 1.2rem; }
.about-text p    { color: rgba(255,255,255,0.75); line-height: 1.8; margin-bottom: 1rem; font-size: 1.05rem; }

.about-img-wrap  { position: relative; }
.about-img-box {
  width: 100%; aspect-ratio: 1;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 8rem; position: relative; overflow: hidden;
}
.about-img-decor {
  position: absolute; width: 80px; height: 80px;
  border-radius: 50%; background: var(--yellow);
  bottom: -20px; right: -20px;
  animation: floatAnim 3s ease-in-out infinite alternate;
}
@keyframes floatAnim {
  from { transform: translateY(0); }
  to   { transform: translateY(-12px); }
}

/* Members grid */
.members-section h3 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 2rem; }
.members-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.5rem;
}
.member-card {
  border-radius: var(--radius); overflow: hidden;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  transition: all var(--transition); cursor: default;
}
.member-card:hover { transform: translateY(-6px); border-color: var(--pink); box-shadow: 0 16px 40px rgba(255,217,61,0.2); }

.member-avatar {
  width: 100%; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.member-avatar-bg    { position: absolute; inset: 0; }
.member-avatar-emoji { position: relative; z-index: 1; font-size: 3.5rem; }

.member-info   { padding: 1.2rem; }
.member-name   { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 0.2rem; }
.member-role   { font-size: 0.82rem; color: rgba(255,255,255,0.55); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.6rem; }
.member-bio    { font-size: 0.88rem; color: rgba(255,255,255,0.65); line-height: 1.6; }

.member-toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.2rem; border-top: 1px solid rgba(255,255,255,0.07);
}
.toggle-label { font-size: 0.78rem; color: rgba(255,255,255,0.5); }

/* Shared toggle switch (used on About + Admin) — also focusable via keyboard */
.toggle-switch {
  width: 44px; height: 24px;
  background: rgba(0,0,0,0.35);
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 12px; cursor: pointer; position: relative;
  transition: background var(--transition), border-color var(--transition); flex-shrink: 0;
  -webkit-appearance: none; appearance: none;
  font: inherit; padding: 0;          /* button reset for <button>-based variant */
}
.toggle-switch:focus-visible {
  outline: 3px solid var(--liber-yellow);
  outline-offset: 3px;
}
.toggle-switch.on {
  background: var(--liber-yellow);
  border-color: var(--liber-yellow);
}
.toggle-switch::after {
  content: ''; position: absolute;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; top: 1.5px; left: 1.5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: transform var(--transition);
}
.toggle-switch.on::after {
  transform: translateX(20px);
  background: var(--liber-blue-deep);
}

/* ═══════════════════════════════════════════════════════════
   COURSES
   ═══════════════════════════════════════════════════════════ */
/* Courses grid — cards grow with available space (min 320, max 520),
   centered when there's leftover room. Looks balanced from 1 card to 6+. */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 520px));
  gap: 2rem;
  margin-bottom: 4rem;
  justify-content: center;
}
.course-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  transition: all var(--transition);
  min-height: 280px;
}
.course-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(0,0,0,0.3); }
.course-header {
  padding: 1.6rem 1.8rem; display: flex; align-items: center; gap: 1rem;
  background: rgba(255,255,255,0.03);
}
.course-icon   { font-size: 2.5rem; flex-shrink: 0; line-height: 1; }
.course-title  { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.2; }
.course-level  { font-size: 0.72rem; color: rgba(255,255,255,0.55); font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; margin-top: 0.2rem; }
.course-body   {
  padding: 1.4rem 1.8rem 1.8rem;
  display: flex; flex-direction: column;
  flex: 1;                     /* fill remaining height so tags pin to bottom */
}
.course-desc   { color: rgba(255,255,255,0.72); line-height: 1.65; font-size: 0.93rem; margin-bottom: 1.2rem; }
.course-meta   {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-top: auto;            /* push tags to the bottom of the card */
}
.course-tag    {
  background: rgba(255,255,255,0.08); border-radius: 999px;
  padding: 0.3rem 0.85rem; font-size: 0.75rem; font-weight: 700;
  color: rgba(255,255,255,0.85); white-space: nowrap;
}

/* Registration section */
.registration-section {
  background: rgba(255,255,255,0.04); border: 2px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 2.5rem; text-align: center;
}
.registration-section h3  { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 1rem; }
.registration-section > div > p { color: rgba(255,255,255,0.65); margin-bottom: 2rem; line-height: 1.7; }

.google-form-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.03); border: 1px dashed rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 3rem 2rem; margin-top: 1.5rem;
}

/* ═══════════════════════════════════════════════════════════
   SHOWS — hero, calendar, list, media
   ═══════════════════════════════════════════════════════════ */
.shows-hero {
  background: var(--grad1); border-radius: var(--radius);
  padding: 3rem; text-align: center; margin-bottom: 4rem;
  position: relative; overflow: hidden;
}
.shows-hero::before {
  content: '🎭'; position: absolute; font-size: 15rem;
  right: -2rem; top: 50%; transform: translateY(-50%);
  opacity: 0.12; pointer-events: none;
}
.shows-hero h2 { font-family: var(--font-display); font-size: 2.5rem; margin-bottom: 0.8rem; }
.shows-hero p  { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 2rem; }

/* Calendar */
.calendar-section   { margin-bottom: 4rem; }
.calendar-header    { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.calendar-header h3 { font-family: var(--font-display); font-size: 1.8rem; }
.cal-nav { display: flex; gap: 0.5rem; }
.cal-btn {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  color: #fff; border-radius: 50%; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1rem; transition: all var(--transition);
}
.cal-btn:hover { background: var(--yellow); color: var(--dark); }

.calendar-grid-wrap {
  max-width: 560px;
}
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 1rem; }
.cal-day-name  { text-align: center; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: rgba(255,255,255,0.4); padding: 0.5rem; }
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 10px; font-size: 0.88rem; font-weight: 700;
  position: relative; transition: all var(--transition);
}
.cal-day.other-month { color: rgba(255,255,255,0.2); }
.cal-day.today       { background: rgba(255,217,61,0.2); border: 2px solid var(--yellow); color: var(--yellow); }
.cal-day.has-show    { background: var(--grad1); color: #fff; cursor: pointer; border-radius: 50%; }
.cal-day.has-show:hover { transform: scale(1.15); }
.cal-day.has-show::after {
  content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--yellow);
}

/* Upcoming shows list */
.upcoming-shows { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 5rem; }
.show-item {
  display: flex; flex-direction: column; gap: 1rem;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 1.5rem 2rem;
  transition: all var(--transition);
}
.show-item:hover { border-color: var(--pink); background: rgba(255,217,61,0.08); transform: translateX(4px); }
.show-row {
  display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap;
}
/* Collapsible description fed from the YesTicket DESCRIPTION field */
.show-description {
  background: rgba(0,0,0,0.18); border-radius: 12px;
  padding: 0.7rem 1rem;
}
.show-description summary {
  cursor: pointer; font-weight: 700; font-size: 0.88rem;
  color: var(--liber-yellow); list-style: none;
}
.show-description summary::-webkit-details-marker { display: none; }
.show-description summary::before {
  content: '▸ '; display: inline-block; transition: transform var(--transition);
}
.show-description[open] summary::before { content: '▾ '; }
.show-description-body {
  margin-top: 0.6rem; padding-top: 0.6rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.92rem; line-height: 1.6; color: rgba(255,255,255,0.78);
  white-space: pre-line;   /* preserve the line breaks from iCal */
}
.show-date-box {
  background: var(--grad2); border-radius: 12px; padding: 0.8rem 1rem;
  text-align: center; min-width: 70px; flex-shrink: 0;
}
.show-date-box .day   { font-family: var(--font-display); font-size: 1.8rem; line-height: 1; color: var(--dark); }
.show-date-box .month { font-size: 0.75rem; font-weight: 900; text-transform: uppercase; color: var(--dark); letter-spacing: 1px; }
.show-image   {
  width: 180px; aspect-ratio: 16 / 9;
  object-fit: cover; border-radius: 12px;
  flex-shrink: 0;
}
.show-details { flex: 1; min-width: 180px; }
.show-name    { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 0.3rem; }
@media (max-width: 600px) {
  .show-image { width: 100%; }
}
.show-venue   { font-size: 0.9rem; color: rgba(255,255,255,0.6); }
.show-time    { font-size: 0.82rem; color: rgba(255,255,255,0.45); margin-top: 0.2rem; }

/* Video gallery */
.video-section    { margin-top: 5rem; }
.video-section h3 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 2rem; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.video-thumb {
  border-radius: var(--radius); overflow: hidden;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer; transition: all var(--transition);
}
.video-thumb:hover { transform: scale(1.03); box-shadow: 0 16px 48px rgba(0,0,0,0.4); }
.video-thumb-img {
  width: 100%; aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.4); transition: background var(--transition);
}
.play-btn::after { content: '▶'; font-size: 2.5rem; color: #fff; filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)); }
.video-thumb:hover .play-btn { background: rgba(0,0,0,0.2); }
.video-caption { padding: 1rem; font-weight: 700; font-size: 0.9rem; }

/* Photo gallery */
.gallery-section    { margin-top: 5rem; }
.gallery-section h3 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 2rem; }
/* CSS-columns masonry: photos keep their natural aspect ratio,
   the columns reflow with viewport width — nothing is cropped. */
.photo-grid {
  column-count: 4;
  column-gap: 12px;
}
@media (max-width: 1024px) { .photo-grid { column-count: 3; } }
@media (max-width: 720px)  { .photo-grid { column-count: 2; } }
@media (max-width: 460px)  { .photo-grid { column-count: 1; } }
.photo-item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 12px;
  break-inside: avoid;
  border-radius: 12px; overflow: hidden; cursor: pointer;
  transition: all var(--transition);
  font-size: 3rem;
  background: rgba(255,255,255,0.05);
}
.photo-item img {
  display: block; width: 100%; height: auto;   /* natural aspect, no crop */
}
.photo-item:hover { transform: scale(1.02); z-index: 2; }
/* Old grid spans no longer apply, but keep selectors as no-ops for backwards compat */
.photo-item.tall, .photo-item.wide { /* noop */ }
.photo-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0);
  transition: background var(--transition);
  display: flex; align-items: flex-end; padding: 1rem;
}
.photo-item:hover .photo-overlay { background: rgba(0,0,0,0.4); }
.photo-overlay span   { color: #fff; font-size: 0.8rem; font-weight: 700; opacity: 0; transition: opacity var(--transition); }
.photo-item:hover .photo-overlay span { opacity: 1; }

/* ═══════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════ */
.contact-layout {
  display: grid; grid-template-columns: 1fr 1.3fr;
  gap: 4rem; align-items: start;
}
.contact-info h2 { font-family: var(--font-display); font-size: 2.5rem; margin-bottom: 1.5rem; line-height: 1.2; }
.contact-info p  { color: rgba(255,255,255,0.7); line-height: 1.8; margin-bottom: 2rem; }
.contact-items   { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-item    { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.contact-item-text strong { display: block; font-weight: 700; margin-bottom: 0.2rem; }
.contact-item-text span   { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
/* ── Prominent social hero (Contact page top) ─────────────── */
.social-hero {
  margin: 1.8rem 0 2.2rem;
  padding: 1.2rem 1.4rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,217,61,0.15);
  border-radius: var(--radius);
}
.social-hero h4 {
  font-family: var(--font-display);
  font-size: 1.05rem; letter-spacing: 1px;
  color: var(--liber-yellow);
  margin-bottom: 0.9rem;
}
.social-hero-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.social-chip {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.65rem 1.1rem 0.65rem 0.6rem;
  border-radius: 999px;
  background: #fff; color: var(--liber-blue-deep);
  font-weight: 800; font-size: 0.95rem;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
}
.social-chip img {
  width: 32px; height: 32px; border-radius: 50%; display: block;
}
.social-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.social-chip-fb:hover { border-color: #1877F2; }
.social-chip-ig:hover { border-color: #E1306C; }
@media (max-width: 480px) {
  .social-hero-row { flex-direction: column; }
  .social-chip { justify-content: center; }
}

/* ── Footer social icons (visible on every page) ──────────── */
.footer-social {
  display: flex; justify-content: center; gap: 0.8rem;
  margin: 0.5rem 0 1.5rem;
}
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; padding: 4px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.footer-social a img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; display: block; }
.footer-social a:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.footer-social-email {
  background: rgba(255,217,61,0.18) !important;
  color: var(--liber-yellow); text-decoration: none;
  font-size: 1.2rem;
}
.footer-social-email:hover { background: var(--liber-yellow) !important; color: var(--liber-blue-deep); }

.contact-form {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 2.5rem;
}
.contact-form h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 1.8rem; }
.form-success {
  display: none; text-align: center; padding: 2rem;
  color: var(--teal); font-weight: 700; font-size: 1.1rem;
}
.form-success.show { display: block; }

/* ═══════════════════════════════════════════════════════════
   ADMIN DASHBOARD
   ═══════════════════════════════════════════════════════════ */
.admin-layout {
  display: grid; grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 70px);
}
.admin-sidebar {
  background: rgba(0,0,0,0.4); border-right: 1px solid rgba(255,255,255,0.07);
  padding: 2rem 1rem; position: sticky; top: 70px; height: calc(100vh - 70px); overflow-y: auto;
}
.admin-sidebar h4 {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px;
  color: rgba(255,255,255,0.3); margin-bottom: 0.8rem; padding: 0 0.5rem;
}
.admin-nav-item {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.7rem 0.8rem; border-radius: 12px;
  cursor: pointer; transition: all var(--transition);
  color: rgba(255,255,255,0.65); font-weight: 700; font-size: 0.9rem;
  margin-bottom: 0.2rem;
}
.admin-nav-item:hover  { background: rgba(255,255,255,0.1); color: #fff; }
.admin-nav-item.active { background: rgba(255,217,61,0.2); color: var(--pink); }

.admin-content  { padding: 2.5rem; overflow-y: auto; }
.admin-section  { display: none; }
.admin-section.active { display: block; }
.admin-section > h2 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 2rem; }

.admin-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 1.8rem; margin-bottom: 1.5rem;
}
.admin-card > h4 {
  font-weight: 700; margin-bottom: 1.2rem;
  color: rgba(255,255,255,0.5); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 1px;
}

/* Bilingual two-column inputs */
.bilingual-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.lang-field label {
  font-size: 0.72rem; font-weight: 700; color: rgba(255,255,255,0.35);
  display: block; margin-bottom: 0.35rem; letter-spacing: 0.5px; text-transform: uppercase;
}
.lang-field input,
.lang-field textarea,
.lang-field select {
  width: 100%; padding: 0.65rem 0.9rem;
  background: rgba(255,255,255,0.07); border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 10px; color: #fff; font-family: 'Nunito', sans-serif;
  font-size: 0.88rem; outline: none; transition: border-color var(--transition);
  resize: vertical;
}
.lang-field input:focus,
.lang-field textarea:focus,
.lang-field select:focus { border-color: var(--pink); }
.lang-field textarea { min-height: 90px; }

/* Image preview in admin — shows the full image (no cropping) */
.admin-img-preview {
  width: 100%; max-width: 360px;
  aspect-ratio: 16/9;
  border-radius: 12px; overflow: hidden;
  background:
    repeating-conic-gradient(rgba(255,255,255,.03) 0% 25%, transparent 0% 50%) 0 0 / 16px 16px,
    rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; position: relative; margin-bottom: 1rem;
  border: 2px dashed rgba(255,255,255,0.15);
  transition: border-color var(--transition);
}
.admin-img-preview:hover { border-color: var(--pink); }
.admin-img-preview img   {
  width: 100%; height: 100%;
  object-fit: contain;            /* miniature preview — never crop */
  position: absolute; inset: 0;
  padding: 4px;
}
.admin-img-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition); cursor: pointer;
  font-size: 1rem; font-weight: 700; color: #fff; gap: 0.5rem;
}
.admin-img-preview:hover .admin-img-overlay { opacity: 1; }

/* Save button */
.admin-save-btn {
  background: var(--grad1); color: #fff; border: none;
  border-radius: 30px; padding: 0.6rem 1.6rem;
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.9rem;
  cursor: pointer; transition: all var(--transition); margin-top: 0.5rem;
}
.admin-save-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,217,61,0.4); }

/* Danger button (delete) */
.admin-delete-btn {
  background: rgba(255,217,61,0.12); border: 1px solid var(--pink);
  color: var(--pink); border-radius: 8px; padding: 0.3rem 0.8rem;
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.82rem;
  cursor: pointer; transition: all var(--transition);
}
.admin-delete-btn:hover { background: rgba(255,217,61,0.3); }

/* Registration toggle row */
.reg-toggle-row { display: flex; align-items: center; gap: 1rem; }

/* Admin show/member row */
.admin-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 0; border-bottom: 1px solid rgba(255,255,255,0.07);
}
.admin-row:last-child { border-bottom: none; }
.admin-row-info strong { display: block; font-weight: 700; font-size: 0.95rem; }
.admin-row-info span   { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.admin-row-actions     { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }

/* (Removed dead CSS: .admin-show-edit, .admin-inline-edit, .admin-page-tab[s] —
    no longer referenced after the admin dashboard refactor.) */

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .admin-layout { grid-template-columns: 200px 1fr; }
}

@media (max-width: 900px) {
  .about-intro    { grid-template-columns: 1fr; gap: 2rem; }
  /* Courses page also needs to stack on mobile — the desktop-only
     override (#coursesPage .about-intro) has higher specificity than the
     generic rule above, so we re-assert single-column here explicitly. */
  #coursesPage .about-intro   { grid-template-columns: 1fr; gap: 2rem; }
  #coursesPage .about-img-box { aspect-ratio: 4 / 3; max-width: 600px; margin: 0 auto; }
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .admin-layout   { grid-template-columns: 1fr; }
  .admin-sidebar  { position: static; height: auto; display: flex; flex-wrap: wrap; gap: 0.3rem; padding: 1rem; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .admin-sidebar h4 { display: none; }
  .admin-nav-item { font-size: 0.8rem; padding: 0.5rem 0.7rem; }
  .admin-content  { padding: 1.5rem; }
  .photo-grid     { grid-template-columns: repeat(2, 1fr); }
  .photo-item.wide{ grid-column: span 2; }
  .bilingual-row  { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero-title      { font-size: clamp(2.5rem, 10vw, 4rem); }
  .hero-ctas       { flex-direction: column; }
  .next-show-banner{ flex-direction: column; gap: 1rem; }
  .show-item       { flex-direction: column; }
  .calendar-grid   { gap: 2px; }
  .cal-day         { font-size: 0.72rem; }
  .photo-grid      { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 110px; }
  .shows-hero      { padding: 2rem 1.5rem; }
  .shows-hero::before { display: none; }
  .courses-grid    { grid-template-columns: 1fr; }
  .members-grid    { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

/* ═══════════════════════════════════════════════════════════
   HOME — extra text lines & legal page stubs
   ═══════════════════════════════════════════════════════════ */
.home-extras {
  margin-top: 1.5rem; margin-bottom: 0;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.home-extra-line {
  font-size: 0.98rem; color: rgba(255,255,255,0.6);
  line-height: 1.6; padding: 0.5rem 0.8rem;
  border-left: 3px solid rgba(255,255,255,0.12);
}

/* ═══════════════════════════════════════════════════════════
   CONTACT — newsletter box
   ═══════════════════════════════════════════════════════════ */
.newsletter-box {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
}
.newsletter-box h4 {
  font-family: var(--font-display);
  font-size: 1.15rem; margin-bottom: 0.4rem;
}
.newsletter-box p {
  font-size: 0.88rem; color: rgba(255,255,255,0.6);
  line-height: 1.6; margin-bottom: 1rem;
}
.newsletter-form {
  display: flex; gap: 0.6rem; flex-wrap: wrap;
}
.newsletter-form input {
  flex: 1; min-width: 180px;
  padding: 0.65rem 1rem;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 30px; color: #fff;
  font-family: 'Nunito', sans-serif; font-size: 0.9rem;
  outline: none; transition: border-color var(--transition);
}
.newsletter-form input:focus { border-color: var(--teal); }
.newsletter-form .btn { flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════
   LEGAL PAGES (imprint / privacy)
   ═══════════════════════════════════════════════════════════ */
/* ── 48hLIBERfilm campaign landing page ─────────────────── */
.liberfilm-content { padding: 4rem 0 3rem; }
.liberfilm-content .section-title { margin-bottom: 1rem; }
.liberfilm-content .hero-desc {
  font-size: 1.15rem; line-height: 1.6;
  color: rgba(255,255,255,0.85); margin-bottom: 0.8rem;
}
.liberfilm-section {
  margin: 2.5rem 0;
  padding: 1.6rem 1.8rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
}
.liberfilm-section h2 {
  font-family: var(--font-display); font-size: 1.5rem;
  color: var(--liber-yellow); margin-bottom: 0.8rem;
}
.liberfilm-section p {
  color: rgba(255,255,255,0.78); line-height: 1.7; margin-bottom: 0.8rem;
}
.liberfilm-section ul { margin: 0.6rem 0 0.6rem 1.4rem; }
.liberfilm-section li {
  color: rgba(255,255,255,0.78); line-height: 1.7; margin-bottom: 0.4rem;
}
.liberfilm-section strong { color: #fff; }
.liberfilm-section a       { color: var(--liber-yellow); text-decoration: underline; }
.liberfilm-section a:hover { color: var(--liber-yellow-hl); }
.liberfilm-cta {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.legal-page-content {
  padding: 4rem 0 3rem;
}
.legal-body {
  color: rgba(255,255,255,0.75);
  line-height: 1.85;
  font-size: 0.98rem;
  margin-top: 2rem;
}
.legal-body h2 {
  font-family: var(--font-display);
  font-size: 1.8rem; margin-bottom: 1rem; color: #fff;
}
.legal-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem; margin: 1.5rem 0 0.5rem; color: var(--yellow);
}
.legal-body p  { margin-bottom: 0.8rem; }
.legal-body strong { color: #fff; }
.legal-body ul { margin: 0.5rem 0 1rem 1.5rem; }
.legal-body li { margin-bottom: 0.4rem; }
/* Links: default browser blue is unreadable on the cobalt background.
   Use the LIBER yellow + underline so they stay obviously clickable. */
.legal-body a {
  color: var(--liber-yellow);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.legal-body a:hover {
  color: var(--liber-yellow-hl);
  text-decoration-thickness: 2px;
}
.legal-body code {
  background: rgba(255,255,255,0.07);
  padding: 0.1rem 0.4rem; border-radius: 4px;
  font-size: 0.88em;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER — legal links row
   ═══════════════════════════════════════════════════════════ */
.footer-legal-links {
  display: flex; justify-content: center;
  align-items: center; gap: 0.8rem;
  margin-bottom: 1rem; flex-wrap: wrap;
}
.footer-legal-links a {
  color: rgba(255,255,255,0.35);
  text-decoration: none; font-size: 0.8rem;
  font-weight: 600; transition: color var(--transition);
}
.footer-legal-links a:hover { color: var(--yellow); }
