/* ============================================================
   Chess Academy Listing — Frontend CSS
   Style: Clean White + Light Blue-Grey Hero + Orange-Red Accent
   Reference: Rethink product design aesthetic
   Fonts: System stack — no imports
   ============================================================ */

:root {
  /* ── Backgrounds ───────────────────────────────────────── */
  --cal-bg:           #ffffff;
  --cal-bg-hero:      #eef4f8;      /* very light blue-grey, like the hero section */
  --cal-bg-section:   #f7f9fb;      /* subtle off-white for alternating sections */
  --cal-surface:      #f2f5f8;      /* input backgrounds, chip backgrounds */
  --cal-card:         #ffffff;

  /* ── Borders ───────────────────────────────────────────── */
  --cal-border:       #e4e9ed;
  --cal-border-light: #edf1f4;

  /* ── Text ──────────────────────────────────────────────── */
  --cal-text:         #111827;      /* near-black, like the bold headings */
  --cal-text-sub:     #374151;      /* slightly lighter for body copy */
  --cal-text-muted:   #6b7280;      /* labels, captions */
  --cal-text-placeholder: #9ca3af;

  /* ── Accent — vibrant orange-red from reference ─────────── */
  --cal-accent:       #ff4d1f;      /* primary CTA orange-red */
  --cal-accent-dark:  #e63a0d;      /* hover state */
  --cal-accent-light: #fff2ee;      /* tinted background */
  --cal-accent-mid:   #ffd0c2;      /* border tint */

  /* ── Secondary accent — teal/green for "add" icons ─────── */
  --cal-teal:         #2db891;
  --cal-teal-light:   #e6f8f3;
  --cal-teal-mid:     #b2e8d8;

  /* ── Status ────────────────────────────────────────────── */
  --cal-green:        #10b981;
  --cal-green-bg:     #ecfdf5;
  --cal-red:          #ef4444;
  --cal-red-bg:       #fef2f2;
  --cal-amber:        #f59e0b;
  --cal-amber-bg:     #fffbeb;

  /* ── Typography — system fonts only ────────────────────── */
  --cal-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
              'Helvetica Neue', Arial, sans-serif;

  /* ── Shape & Motion ────────────────────────────────────── */
  --cal-radius:       8px;
  --cal-radius-lg:    14px;
  --cal-radius-xl:    20px;
  --cal-radius-pill:  100px;
  --cal-shadow-xs:    0 1px 2px rgba(0,0,0,0.05);
  --cal-shadow-sm:    0 2px 8px rgba(0,0,0,0.07);
  --cal-shadow:       0 4px 16px rgba(0,0,0,0.09);
  --cal-shadow-lg:    0 8px 32px rgba(0,0,0,0.10);
  --cal-transition:   0.18s ease;
}

/* ── Reset ───────────────────────────────────────────────── */
.cal-scope, .cal-scope * { box-sizing: border-box; }
.cal-scope {
  font-family: var(--cal-font);
  font-size: 15px;
  color: var(--cal-text);
  line-height: 1.6;
  background: var(--cal-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.cal-scope h1, .cal-scope h2, .cal-scope h3,
.cal-scope h4, .cal-scope h5, .cal-scope h6 {
  font-family: var(--cal-font);
  font-style: normal;
  font-weight: 700;
  color: var(--cal-text);
  line-height: 1.25;
  margin: 0;
}
.cal-scope p  { margin: 0; color: var(--cal-text-sub); }
.cal-scope a  { color: var(--cal-accent); text-decoration: none; }
.cal-scope a:hover { text-decoration: none; opacity: 0.85; }

/* No chess pattern — plain white */
.cal-chess-pattern { background: var(--cal-bg); }

/* ============================================================
   LISTING HERO — light blue-grey hero like reference
   ============================================================ */
.cal-listing-hero {
  background: var(--cal-bg-hero);
  padding: 52px 24px 40px;
  text-align: center;
  border-bottom: 1px solid var(--cal-border);
}
.cal-listing-hero h1 {
  font-size: 36px;
  font-weight: 800;
  color: var(--cal-text);
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.cal-listing-hero h1 span { color: var(--cal-accent); }
.cal-listing-hero p {
  font-size: 15px;
  color: var(--cal-text-muted);
  max-width: 440px;
  margin: 0 auto 24px;
}

.cal-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--cal-radius-pill);
  text-decoration: none;
  transition: var(--cal-transition);
  box-shadow: 0 4px 14px rgba(255,77,31,0.35);
  letter-spacing: 0.01em;
}
.cal-hero-cta:hover {
  background: var(--cal-accent-dark);
  box-shadow: 0 6px 20px rgba(255,77,31,0.4);
  opacity: 1;
}

.cal-hero-stats {
  display: flex;
  gap: 36px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--cal-border);
}
.cal-hero-stat { text-align: center; }
.cal-hero-stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--cal-text);
  line-height: 1;
  letter-spacing: -0.5px;
}
.cal-hero-stat-label {
  font-size: 12px;
  color: var(--cal-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
  font-weight: 500;
}

/* ============================================================
   SEARCH & FILTER BAR
   ============================================================ */
.cal-filter-bar {
  background: var(--cal-card);
  border: 1px solid var(--cal-border);
  border-radius: var(--cal-radius-lg);
  padding: 16px 20px;
  margin: 24px 0;
  display: grid;
  grid-template-columns: 1fr auto auto auto auto;
  gap: 10px;
  align-items: center;
  box-shadow: var(--cal-shadow-sm);
}
@media (max-width: 800px) {
  .cal-filter-bar { grid-template-columns: 1fr 1fr; }
  .cal-filter-bar .cal-search-wrap { grid-column: 1 / -1; }
}
@media (max-width: 500px) { .cal-filter-bar { grid-template-columns: 1fr; } }

.cal-search-wrap { position: relative; }
.cal-search-icon {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--cal-text-muted);
  font-size: 14px;
  pointer-events: none;
}
.cal-search-input {
  width: 100%;
  padding: 10px 14px 10px 36px;
  background: var(--cal-surface);
  border: 1.5px solid var(--cal-border);
  border-radius: var(--cal-radius-pill);
  color: var(--cal-text);
  font-family: var(--cal-font);
  font-size: 14px;
  outline: none;
  transition: var(--cal-transition);
}
.cal-search-input::placeholder { color: var(--cal-text-placeholder); }
.cal-search-input:focus {
  border-color: var(--cal-accent);
  background: var(--cal-bg);
  box-shadow: 0 0 0 3px rgba(255,77,31,0.1);
}

.cal-filter-select {
  padding: 0px 32px 10px 14px;
  background: var(--cal-surface);
  border: 1.5px solid var(--cal-border);
  border-radius: var(--cal-radius-pill);
  color: var(--cal-text);
  font-family: var(--cal-font);
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-color: var(--cal-surface);
  outline: none;
  min-width: 140px;
  transition: var(--cal-transition);
}
.cal-filter-select:focus { border-color: var(--cal-accent); box-shadow: 0 0 0 3px rgba(255,77,31,0.1); }
.cal-filter-select option { background: #fff; color: var(--cal-text); }

/* ── Buttons ─────────────────────────────────────────────── */
.cal-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px;
  border-radius: var(--cal-radius-pill);
  font-family: var(--cal-font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--cal-transition);
  border: 1.5px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}
.cal-btn:hover { text-decoration: none; opacity: 1; }

.cal-btn-primary {
  color: #fff;
  border-color: var(--cal-accent);
  box-shadow: 0 4px 14px rgba(255,77,31,0.3);
}
.cal-btn-primary:hover {
  background: var(--cal-accent-dark);
  border-color: var(--cal-accent-dark);
  box-shadow: 0 6px 18px rgba(255,77,31,0.38);
  color: #fff;
}

.cal-btn-outline {
  background: #fff;
  color: var(--cal-text-sub);
  border-color: var(--cal-border);
}
.cal-btn-outline:hover { border-color: var(--cal-accent); color: var(--cal-accent); background: var(--cal-accent-light); }

.cal-btn-ghost {
  background: var(--cal-surface);
  color: var(--cal-text-sub);
  border-color: var(--cal-border);
}
.cal-btn-ghost:hover { background: var(--cal-border-light); color: var(--cal-text); }

.cal-btn-danger { background: var(--cal-red-bg); color: var(--cal-red); border-color: #fca5a5; }
.cal-btn-danger:hover { background: #fee2e2; color: var(--cal-red); }

.cal-btn-sm  { padding: 7px 16px; font-size: 13px; }
.cal-btn-lg  { padding: 14px 32px; font-size: 15px; }

/* ============================================================
   RESULTS BAR
   ============================================================ */
.cal-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  color: var(--cal-text-muted);
  font-size: 13px;
  font-weight: 500;
}
.cal-results-count strong { color: var(--cal-text); font-size: 15px; font-weight: 700; }

/* ============================================================
   LISTING GRID & CARDS
   ============================================================ */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.cal-academy-card {
  background: var(--cal-card);
  border: 1.5px solid var(--cal-border-light);
  border-radius: var(--cal-radius-xl);
  overflow: hidden;
  transition: var(--cal-transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--cal-shadow-xs);
}
.cal-academy-card:hover {
  border-color: var(--cal-border);
  box-shadow: var(--cal-shadow-lg);
  transform: translateY(-4px);
}
.cal-academy-card.is-featured {
  border-color: var(--cal-accent-mid);
  box-shadow: 0 0 0 3px rgba(255,77,31,0.08), var(--cal-shadow);
}

/* Banner */
.cal-card-banner {
  height: 156px;
  position: relative;
  overflow: hidden;
  background: var(--cal-bg-hero);
}
.cal-card-banner img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.cal-academy-card:hover .cal-card-banner img { transform: scale(1.05); }
.cal-card-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(0,0,0,0.22));
}
.cal-card-banner-default {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px;
  color: var(--cal-border);
  background: linear-gradient(135deg, var(--cal-bg-hero), #dde8f0);
}

/* Featured badge */
.cal-featured-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--cal-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--cal-radius-pill);
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(255,77,31,0.4);
}
.cal-mode-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,0.92);
  color: var(--cal-text-sub);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--cal-radius-pill);
  border: 1px solid rgba(255,255,255,0.6);
  backdrop-filter: blur(6px);
}

/* Logo */
.cal-card-logo-wrap { position: absolute; bottom: -22px; left: 18px; }
.cal-card-logo {
  width: 46px; height: 46px;
  border-radius: var(--cal-radius-lg);
  background: #fff;
  border: 2px solid var(--cal-border-light);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: var(--cal-shadow-sm);
}
.cal-card-logo img { width: 100%; height: 100%; object-fit: cover; }

/* Card Body */
.cal-card-body {
  padding: 30px 18px 18px;
  flex: 1; display: flex; flex-direction: column;
}
.cal-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--cal-text);
  margin-bottom: 6px;
  display: block;
  transition: color var(--cal-transition);
}
.cal-card-title:hover { color: var(--cal-accent); }

.cal-card-meta {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--cal-text-muted);
  font-weight: 500;
}
.cal-card-meta-item { display: flex; align-items: center; gap: 3px; }

/* Rating */
.cal-rating { display: flex; align-items: center; gap: 5px; margin-bottom: 10px; }
.cal-stars { color: #f59e0b; font-size: 13px; letter-spacing: 0.5px; }
.cal-stars .empty { color: #e5e7eb; }
.cal-rating-count { color: var(--cal-text-muted); font-size: 12px; }

/* Tags */
.cal-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.cal-tag {
  padding: 3px 9px;
  background: var(--cal-accent-light);
  border: 1px solid var(--cal-accent-mid);
  border-radius: var(--cal-radius-pill);
  font-size: 11px;
  color: var(--cal-accent-dark);
  font-weight: 600;
}
.cal-tag-mode {
  background: #e0f2fe;
  border-color: #bae6fd;
  color: #0369a1;
}
.cal-tag-green {
  background: var(--cal-green-bg);
  border-color: #a7f3d0;
  color: var(--cal-green);
}

/* Card Footer */
.cal-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--cal-border-light);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.cal-card-fee { font-size: 18px; font-weight: 800; color: var(--cal-text); letter-spacing: -0.3px; }
.cal-card-fee-sub { font-size: 11px; color: var(--cal-text-muted); display: block; font-weight: 400; }

/* No results */
.cal-no-results {
  grid-column: 1/-1; text-align: center; padding: 64px 20px;
  color: var(--cal-text-muted);
  background: var(--cal-bg-section);
  border: 1.5px dashed var(--cal-border);
  border-radius: var(--cal-radius-xl);
}
.cal-no-results-icon { font-size: 48px; opacity: 0.25; margin-bottom: 14px; }
.cal-no-results h3 { color: var(--cal-text-sub); font-size: 17px; margin-bottom: 6px; }

/* Pagination */
.cal-pagination { display: flex; gap: 5px; justify-content: center; margin-top: 28px; }
.cal-page-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--cal-radius-pill);
  background: #fff;
  border: 1.5px solid var(--cal-border);
  color: var(--cal-text-sub);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: var(--cal-transition);
  font-family: var(--cal-font);
}
.cal-page-btn.active, .cal-page-btn:hover {
  background: var(--cal-accent);
  color: #fff;
  border-color: var(--cal-accent);
  box-shadow: 0 2px 8px rgba(255,77,31,0.3);
}

/* ============================================================
   SINGLE ACADEMY PAGE
   ============================================================ */
.cal-single { background: var(--cal-bg); min-height: 100vh; }

.cal-single-banner {
  position: relative; height: 320px; overflow: hidden;
  background: var(--cal-bg-hero);
}
.cal-single-banner img { width: 100%; height: 100%; object-fit: cover; }
.cal-single-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 30%, rgba(0,0,0,0.55));
}
.cal-single-banner-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px 32px;
  display: flex; align-items: flex-end; gap: 18px;
}
.cal-single-logo {
  width: 80px; height: 80px;
  border-radius: var(--cal-radius-lg);
  background: #fff;
  border: 3px solid #fff;
  overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  box-shadow: var(--cal-shadow);
}
.cal-single-logo img { width: 100%; height: 100%; object-fit: cover; }
.cal-single-title {
  font-size: 28px; font-weight: 800; color: #fff;
  margin-bottom: 6px; letter-spacing: -0.3px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.cal-single-meta-row { display: flex; flex-wrap: wrap; gap: 14px; color: rgba(255,255,255,0.88); font-size: 13px; font-weight: 500; }
.cal-single-meta-item { display: flex; align-items: center; gap: 4px; }

.cal-single-status {
  position: absolute; top: 16px; right: 16px;
  padding: 4px 14px; border-radius: var(--cal-radius-pill);
  font-size: 12px; font-weight: 700;
}
.cal-status-approved { background: var(--cal-green-bg); color: var(--cal-green); border: 1px solid #6ee7b7; }
.cal-status-pending  { background: var(--cal-amber-bg); color: var(--cal-amber); border: 1px solid #fcd34d; }

/* Body layout */
.cal-single-body {
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 24px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}
@media (max-width: 900px) {
  .cal-single-body { grid-template-columns: 1fr; }
  .cal-single-banner { height: 220px; }
  .cal-single-banner-content { padding: 16px 18px; }
  .cal-single-title { font-size: 22px; }
}

/* Section Cards */
.cal-section-card {
  background: var(--cal-card);
  border: 1.5px solid var(--cal-border-light);
  border-radius: var(--cal-radius-xl);
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: var(--cal-shadow-xs);
}
.cal-section-title {
  font-size: 15px; font-weight: 700; color: var(--cal-text);
  margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 1.5px solid var(--cal-border-light);
  display: flex; align-items: center; gap: 8px;
}
.cal-section-icon { color: var(--cal-accent); font-size: 16px; }

.cal-description { color: var(--cal-text-sub); line-height: 1.72; font-size: 14px; }

/* Info grid */
.cal-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 600px) { .cal-info-grid { grid-template-columns: 1fr; } }
.cal-info-label {
  font-size: 11px; font-weight: 700; color: var(--cal-text-muted);
  letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 4px;
}
.cal-info-value { font-size: 14px; color: var(--cal-text); font-weight: 500; }
.cal-info-value a { color: var(--cal-accent); }
.cal-info-value a:hover { opacity: 0.8; }

/* Day chips */
.cal-days-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.cal-day-chip {
  padding: 6px 14px;
  border-radius: var(--cal-radius-pill);
  font-size: 12px; font-weight: 600;
  background: var(--cal-surface);
  color: var(--cal-text-muted);
  border: 1.5px solid var(--cal-border);
}
.cal-day-chip.active {
  background: var(--cal-accent-light);
  color: var(--cal-accent-dark);
  border-color: var(--cal-accent-mid);
  font-weight: 700;
}

/* Coach card */
.cal-coach-card { display: flex; gap: 18px; align-items: flex-start; }
.cal-coach-photo {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--cal-bg-hero);
  border: 2px solid var(--cal-border);
  overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--cal-text-muted);
}
.cal-coach-photo img { width: 100%; height: 100%; object-fit: cover; }
.cal-coach-name { font-size: 16px; font-weight: 700; color: var(--cal-text); margin-bottom: 2px; }
.cal-coach-title { font-size: 12px; color: var(--cal-accent); font-weight: 600; margin-bottom: 7px; }
.cal-coach-bio { font-size: 13px; color: var(--cal-text-sub); line-height: 1.68; }

/* Platform links */
.cal-platform-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cal-platform-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px;
  border-radius: var(--cal-radius-pill);
  font-size: 12px; font-weight: 600;
  text-decoration: none;
  transition: var(--cal-transition);
  border: 1.5px solid var(--cal-border);
  background: var(--cal-surface);
  color: var(--cal-text-sub);
}
.cal-platform-link:hover { border-color: var(--cal-accent); color: var(--cal-accent); background: var(--cal-accent-light); }

/* Courses table */
.cal-courses-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cal-courses-table th {
  text-align: left; padding: 10px 14px;
  font-size: 11px; font-weight: 700; color: var(--cal-text-muted);
  text-transform: uppercase; letter-spacing: 0.07em;
  border-bottom: 2px solid var(--cal-border);
  background: var(--cal-bg-section);
}
.cal-courses-table td {
  padding: 12px 14px; color: var(--cal-text-sub);
  border-bottom: 1px solid var(--cal-border-light);
}
.cal-courses-table tr:last-child td { border-bottom: none; }
.cal-courses-table tr:hover td { background: var(--cal-bg-section); }
.cal-courses-table td:first-child { font-weight: 600; color: var(--cal-text); }
.cal-courses-table td:last-child { font-weight: 700; color: var(--cal-text); }

/* Payment chips */
.cal-payment-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cal-payment-chip {
  padding: 4px 12px;
  background: var(--cal-teal-light);
  border: 1px solid var(--cal-teal-mid);
  border-radius: var(--cal-radius-pill);
  font-size: 12px; color: var(--cal-teal); font-weight: 600;
}

/* Offer cards */
.cal-offer-card {
  display: flex; gap: 14px; padding: 14px;
  background: var(--cal-bg-section);
  border: 1.5px solid var(--cal-border-light);
  border-radius: var(--cal-radius-lg);
  margin-bottom: 10px;
}
.cal-offer-icon { font-size: 22px; flex-shrink: 0; }
.cal-offer-name { font-weight: 700; color: var(--cal-text); font-size: 14px; margin-bottom: 3px; }
.cal-offer-desc { font-size: 13px; color: var(--cal-text-muted); }

/* Video */
.cal-video-wrap {
  position: relative; padding-top: 56.25%;
  border-radius: var(--cal-radius-lg); overflow: hidden;
  margin-bottom: 14px; background: var(--cal-bg-hero);
}
.cal-video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

/* Gallery */
.cal-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cal-gallery-item {
  aspect-ratio: 4/3; border-radius: var(--cal-radius); overflow: hidden;
  cursor: pointer; position: relative; background: var(--cal-bg-hero);
}
.cal-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.cal-gallery-item:hover img { transform: scale(1.06); }
.cal-gallery-overlay {
  position: absolute; inset: 0; background: transparent;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: transparent; transition: var(--cal-transition);
}
.cal-gallery-item:hover .cal-gallery-overlay { background: rgba(0,0,0,0.32); color: #fff; }

/* Social links */
.cal-social-links { display: flex; flex-wrap: wrap; gap: 7px; }
.cal-social-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: var(--cal-radius-pill);
  font-size: 12px; font-weight: 600; text-decoration: none;
  background: var(--cal-surface); color: var(--cal-text-sub);
  border: 1.5px solid var(--cal-border);
  transition: var(--cal-transition);
}
.cal-social-link:hover { border-color: var(--cal-accent); color: var(--cal-accent); background: var(--cal-accent-light); }

/* ── Sidebar ─────────────────────────────────────────────── */
.cal-contact-card {
  background: var(--cal-card);
  border: 1.5px solid var(--cal-border-light);
  border-radius: var(--cal-radius-xl);
  padding: 22px; margin-bottom: 18px;
  box-shadow: var(--cal-shadow-sm);
  /*position: sticky; top: 90px;*/
}
.cal-contact-item {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px;
}
.cal-contact-icon {
  width: 36px; height: 36px;
  background: var(--cal-accent-light);
  border-radius: var(--cal-radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
  border: 1px solid var(--cal-accent-mid);
}
.cal-contact-label { font-size: 11px; color: var(--cal-text-muted); text-transform: uppercase; letter-spacing: 0.07em; }
.cal-contact-value { font-size: 13px; color: var(--cal-text); font-weight: 500; }
.cal-contact-value a { color: var(--cal-accent); }
.cal-contact-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }

.cal-whatsapp-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px; background: #f0fdf4; color: #15803d;
  border: 1.5px solid #86efac; border-radius: var(--cal-radius-pill);
  font-weight: 700; font-size: 13px; text-decoration: none;
  transition: var(--cal-transition); font-family: var(--cal-font);
}
.cal-whatsapp-btn:hover { background: #dcfce7; color: #15803d; }

/* Quick stats */
.cal-quick-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.cal-quick-stat {
  background: var(--cal-bg-hero);
  border: 1.5px solid var(--cal-border-light);
  border-radius: var(--cal-radius-lg);
  padding: 14px; text-align: center;
}
.cal-quick-stat-num {
  font-size: 22px; font-weight: 800; color: var(--cal-text);
  line-height: 1; margin-bottom: 4px; letter-spacing: -0.3px;
}
.cal-quick-stat-label { font-size: 11px; color: var(--cal-text-muted); text-transform: uppercase; letter-spacing: 0.07em; }

/* ── Forms ───────────────────────────────────────────────── */
.cal-form-group { margin-bottom: 14px; }
.cal-form-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--cal-text-sub); margin-bottom: 5px;
}
.cal-form-input,
.cal-form-select,
.cal-form-textarea {
  width: 100%; padding: 10px 14px;
  background: var(--cal-surface);
  border: 1.5px solid var(--cal-border);
  border-radius: var(--cal-radius-lg);
  color: var(--cal-text);
  font-family: var(--cal-font); font-size: 14px;
  outline: none; transition: var(--cal-transition);
  -webkit-appearance: none;
}
.cal-form-input::placeholder { color: var(--cal-text-placeholder); }
.cal-form-input:focus,
.cal-form-select:focus,
.cal-form-textarea:focus {
  border-color: var(--cal-accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,77,31,0.1);
}
.cal-form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  background-color: var(--cal-surface); padding-right: 34px;
}
.cal-form-select option { background: #fff; color: var(--cal-text); }
.cal-form-textarea { resize: vertical; min-height: 82px; line-height: 1.5; }

.cal-form-message {
  padding: 11px 16px; border-radius: var(--cal-radius-lg);
  font-size: 13px; font-weight: 500; margin-top: 10px; display: none;
}
.cal-form-message.success { background: var(--cal-green-bg); color: var(--cal-green); border: 1px solid #6ee7b7; display: block; }
.cal-form-message.error   { background: var(--cal-red-bg);   color: var(--cal-red);   border: 1px solid #fca5a5; display: block; }

/* ── Reviews ─────────────────────────────────────────────── */
.cal-review-summary {
  display: flex; align-items: center; gap: 28px;
  padding: 18px; background: var(--cal-bg-hero);
  border-radius: var(--cal-radius-lg); margin-bottom: 18px;
  border: 1.5px solid var(--cal-border-light);
}
.cal-avg-rating { text-align: center; min-width: 72px; }
.cal-avg-number { font-size: 44px; font-weight: 800; color: var(--cal-text); line-height: 1; letter-spacing: -1px; }
.cal-avg-stars  { margin: 4px 0; }
.cal-avg-count  { font-size: 12px; color: var(--cal-text-muted); }

.cal-review-card {
  padding: 16px;
  border: 1.5px solid var(--cal-border-light);
  border-radius: var(--cal-radius-lg);
  margin-bottom: 10px;
  background: var(--cal-card);
}
.cal-review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cal-reviewer-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--cal-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.cal-reviewer-name { font-weight: 700; color: var(--cal-text); font-size: 14px; }
.cal-review-date  { font-size: 12px; color: var(--cal-text-muted); }
.cal-review-text  { color: var(--cal-text-sub); font-size: 14px; line-height: 1.68; }

/* Star selector */
.cal-star-selector { display: flex; flex-direction: row-reverse; gap: 2px; }
.cal-star-selector input { display: none; }
.cal-star-selector label { font-size: 28px; color: #e5e7eb; cursor: pointer; transition: color 0.1s; line-height: 1; }
.cal-star-selector input:checked ~ label,
.cal-star-selector label:hover,
.cal-star-selector label:hover ~ label { color: #f59e0b; }

/* ============================================================
   SUBMIT FORM
   ============================================================ */
.cal-submit-page { max-width: 800px; margin: 0 auto; padding: 28px 16px; }
.cal-submit-header {
  text-align: center; margin-bottom: 28px;
  padding: 36px 28px;
  background: var(--cal-bg-hero);
  border: 1.5px solid var(--cal-border-light);
  border-radius: var(--cal-radius-xl);
  box-shadow: var(--cal-shadow-xs);
}
.cal-submit-header h2 { font-size: 24px; font-weight: 800; color: var(--cal-text); margin-bottom: 8px; letter-spacing: -0.3px; }
.cal-submit-header p  { font-size: 14px; color: var(--cal-text-muted); max-width: 420px; margin: 0 auto; }

/* Steps */
.cal-form-steps { display: flex; justify-content: center; gap: 0; margin-bottom: 24px; overflow-x: auto; padding-bottom: 4px; }
.cal-form-step { display: flex; align-items: center; flex-shrink: 0; }
.cal-step-num {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--cal-surface); border: 2px solid var(--cal-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--cal-text-muted);
  transition: var(--cal-transition); z-index: 1; font-family: var(--cal-font);
}
.cal-step-num.active { background: var(--cal-accent); border-color: var(--cal-accent); color: #fff; box-shadow: 0 2px 8px rgba(255,77,31,0.35); }
.cal-step-num.done   { background: var(--cal-green); border-color: var(--cal-green); color: #fff; }
.cal-step-line { width: 48px; height: 2px; background: var(--cal-border); }
.cal-step-line.done { background: var(--cal-green); }
.cal-step-label { font-size: 11px; color: var(--cal-text-muted); text-align: center; margin-top: 5px; font-weight: 500; }

.cal-form-card {
  background: var(--cal-card);
  border: 1.5px solid var(--cal-border-light);
  border-radius: var(--cal-radius-xl);
  padding: 24px; margin-bottom: 12px;
  box-shadow: var(--cal-shadow-xs);
}
.cal-form-section-title {
  font-size: 16px; font-weight: 700; color: var(--cal-text);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--cal-border-light);
}
.cal-form-section-title span { color: var(--cal-accent); }
.cal-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .cal-form-row { grid-template-columns: 1fr; } }

.cal-checkbox-group { display: flex; flex-wrap: wrap; gap: 7px; }
.cal-check-chip {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 14px;
  background: var(--cal-surface);
  border: 1.5px solid var(--cal-border);
  border-radius: var(--cal-radius-pill);
  font-size: 13px; cursor: pointer;
  transition: var(--cal-transition);
  color: var(--cal-text-sub);
  user-select: none; font-family: var(--cal-font);
}
.cal-check-chip:has(input:checked) {
  background: var(--cal-accent-light);
  border-color: var(--cal-accent-mid);
  color: var(--cal-accent-dark);
  font-weight: 700;
}
.cal-check-chip input { display: none; }

.cal-form-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }

.cal-submit-success {
  text-align: center; padding: 56px 24px;
  background: var(--cal-bg-hero);
  border: 1.5px solid var(--cal-border-light);
  border-radius: var(--cal-radius-xl);
  box-shadow: var(--cal-shadow-xs); display: none;
}
.cal-success-icon { font-size: 52px; margin-bottom: 14px; }
.cal-submit-success h3 { font-size: 22px; font-weight: 800; color: var(--cal-text); margin-bottom: 8px; letter-spacing: -0.3px; }
.cal-submit-success p  { font-size: 14px; color: var(--cal-text-muted); max-width: 360px; margin: 0 auto; }

/* ============================================================
   DASHBOARD
   ============================================================ */
.cal-dashboard { max-width: 1060px; margin: 0 auto; padding: 28px 16px; }
.cal-dashboard-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.cal-dashboard-title { font-size: 22px; font-weight: 800; color: var(--cal-text); letter-spacing: -0.3px; }

.cal-dashboard-tabs {
  display: flex; gap: 3px;
  background: var(--cal-bg-hero);
  border: 1.5px solid var(--cal-border);
  border-radius: var(--cal-radius-lg);
  padding: 4px; margin-bottom: 20px;
  overflow-x: auto; box-shadow: var(--cal-shadow-xs);
}
.cal-dash-tab {
  padding: 8px 18px;
  border-radius: var(--cal-radius);
  font-size: 13px; font-weight: 600;
  color: var(--cal-text-muted); cursor: pointer;
  transition: var(--cal-transition); white-space: nowrap;
  border: none; background: transparent; font-family: var(--cal-font);
}
.cal-dash-tab.active { background: var(--cal-accent); color: #fff; box-shadow: 0 2px 8px rgba(255,77,31,0.25); }
.cal-dash-tab:hover:not(.active) { background: var(--cal-surface); color: var(--cal-text); }

.cal-dash-panel { display: none; }
.cal-dash-panel.active { display: block; }

.cal-dash-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 24px; }
.cal-dash-card {
  background: var(--cal-card);
  border: 1.5px solid var(--cal-border-light);
  border-radius: var(--cal-radius-xl);
  padding: 18px; box-shadow: var(--cal-shadow-xs);
  border-top: 3px solid var(--cal-accent);
}
.cal-dash-card-icon { font-size: 24px; margin-bottom: 10px; }
.cal-dash-card-num { font-size: 32px; font-weight: 800; color: var(--cal-text); line-height: 1; margin-bottom: 4px; letter-spacing: -0.5px; }
.cal-dash-card-label { font-size: 12px; color: var(--cal-text-muted); font-weight: 500; }

.cal-dash-listing {
  background: var(--cal-card);
  border: 1.5px solid var(--cal-border-light);
  border-radius: var(--cal-radius-xl);
  overflow: hidden; box-shadow: var(--cal-shadow-xs);
}
.cal-dash-listing-row {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--cal-border-light);
  transition: var(--cal-transition);
}
.cal-dash-listing-row:last-child { border-bottom: none; }
.cal-dash-listing-row:hover { background: var(--cal-bg-section); }
.cal-dash-logo-sm {
  width: 44px; height: 44px;
  border-radius: var(--cal-radius);
  background: var(--cal-bg-hero);
  border: 1.5px solid var(--cal-border-light);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0; color: var(--cal-text-muted);
}
.cal-dash-logo-sm img { width: 100%; height: 100%; object-fit: cover; }
.cal-dash-academy-name { font-weight: 700; color: var(--cal-text); font-size: 14px; margin-bottom: 3px; }
.cal-dash-academy-meta { font-size: 12px; color: var(--cal-text-muted); font-weight: 500; }
.cal-dash-actions { margin-left: auto; display: flex; gap: 6px; }

.cal-enquiry-row { padding: 16px 20px; border-bottom: 1px solid var(--cal-border-light); }
.cal-enquiry-row:last-child { border-bottom: none; }
.cal-enquiry-from { font-weight: 700; color: var(--cal-text); font-size: 14px; }
.cal-enquiry-preview { font-size: 13px; color: var(--cal-text-muted); margin-top: 3px; }
.cal-unread-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cal-accent); display: inline-block; margin-right: 5px; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.cal-lightbox-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.8); display: none;
  align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.cal-lightbox-overlay.active { display: flex; }
.cal-lightbox-img { max-width: 90vw; max-height: 90vh; border-radius: var(--cal-radius-xl); box-shadow: 0 24px 64px rgba(0,0,0,0.5); }
.cal-lightbox-close {
  position: absolute; top: 18px; right: 18px;
  background: #fff; border: none; color: var(--cal-text);
  font-size: 18px; width: 42px; height: 42px;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--cal-shadow); font-family: var(--cal-font);
}

/* ============================================================
   LOADING
   ============================================================ */
.cal-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--cal-border);
  border-top-color: var(--cal-accent);
  border-radius: 50%;
  animation: cal-spin 0.65s linear infinite;
  margin: 24px auto;
}
@keyframes cal-spin { to { transform: rotate(360deg); } }
.cal-loading-overlay {
  display: flex; align-items: center; justify-content: center;
  padding: 56px; width: 100%;
  background: var(--cal-card); border-radius: var(--cal-radius-xl);
  border: 1.5px solid var(--cal-border-light);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 700px) {
  .cal-single-body { padding: 16px 12px; }
  .cal-section-card { padding: 16px; }
  .cal-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .cal-form-card { padding: 16px; }
  .cal-submit-page { padding: 18px 12px; }
  .cal-single-banner { height: 190px; }
  .cal-listing-hero { padding: 32px 16px 24px; }
  .cal-listing-hero h1 { font-size: 26px; }
}

/* ── Utilities ───────────────────────────────────────────── */
.cal-mt-0   { margin-top: 0 !important; }
.cal-mb-0   { margin-bottom: 0 !important; }
.cal-center { text-align: center; }
.cal-accent { color: var(--cal-accent) !important; }
.cal-hidden { display: none !important; }
