/* ==========================================================================
   Ambition Coaching Center — Unified Public Website Stylesheet (Dark & Light)
   ========================================================================== */

.pub-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.pub-wrap {
  width: min(1260px, calc(100% - 28px));
  margin-inline: auto;
}
.pub-header .pub-wrap {
  width: min(1440px, calc(100% - 24px));
}
@media (max-width: 575.98px) {
  .pub-wrap,
  .pub-header .pub-wrap {
    width: calc(100% - 20px);
  }
}

/* Sticky Public Navigation Header */
.pub-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(6, 13, 11, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
[data-theme="light"] .pub-header {
  background: rgba(248, 252, 250, 0.9);
}

.pub-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  padding-block: 8px;
}

.pub-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Anek Bangla", "Hind Siliguri", sans-serif;
  font-weight: 800;
  font-size: 1.22rem;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
  flex-shrink: 1;
}
.pub-brand > span { min-width: 0; overflow: hidden; }
.pub-brand > span > span,
.pub-brand > span > small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) {
  .pub-nav-bar { gap: 6px; }
  .pub-brand { font-size: 0.92rem; gap: 7px; }
  .pub-brand > span > small { display: none !important; }
  .pub-actions { gap: 5px; }
  .pub-actions .btn-sm { padding: 6px 10px; font-size: 12.5px; }
}
.pub-brand:hover { color: var(--ink); }
.pub-brand i {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 800;
  font-size: 1.15rem;
  color: #032219;
  background: linear-gradient(135deg, #a7f3d0, #34d399 52%, #059669);
  box-shadow: 0 8px 20px -8px rgba(16, 185, 129, 0.65);
}

.pub-links {
  display: none;
  align-items: center;
  gap: clamp(1px, 0.25vw, 4px);
  flex-wrap: nowrap;
  min-width: 0;
}
@media (min-width: 1120px) {
  .pub-links { display: flex; }
}
@media (min-width: 1120px) and (max-width: 1280px) {
  .pub-brand { font-size: 1.06rem; gap: 8px; }
  .pub-brand > span > small { display: none !important; }
}

.pub-lnk {
  padding: 7px clamp(8px, 0.8vw, 13px);
  border-radius: 999px;
  font-size: clamp(13.2px, 0.94vw, 14.5px);
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color .18s ease, background .18s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.pub-lnk:hover {
  color: var(--ink);
  background: var(--surf2);
}
.pub-lnk.active {
  color: var(--mint);
  background: rgba(52, 211, 153, 0.13);
}
[data-theme="light"] .pub-lnk.active {
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
}

.pub-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pub-side-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surf2);
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .18s ease, color .18s ease;
}
.pub-side-btn:hover {
  border-color: var(--line-hi);
  color: var(--mint);
}

/* Slide-Over Left Sidebar Navigation (.pub-sidebar) */
.pub-side-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1045;
  background: rgba(2, 8, 6, 0.66);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity .24s ease;
}
.pub-side-backdrop.show {
  opacity: 1;
}

.pub-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(304px, 86vw);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  background: rgba(8, 16, 14, 0.97);
  border-right: 1px solid var(--line-hi);
  box-shadow: 24px 0 60px rgba(0, 0, 0, 0.7);
  transform: translateX(-104%);
  transition: transform .28s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}
[data-theme="light"] .pub-sidebar {
  background: rgba(250, 254, 252, 0.98);
  border-right-color: rgba(8, 122, 82, 0.2);
  box-shadow: 20px 0 50px rgba(6, 40, 28, 0.16);
}
.pub-sidebar.open {
  transform: translateX(0);
}

.pub-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.pub-side-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pub-side-sec {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .9px;
  color: var(--muted);
  padding: 6px 12px 4px;
}

.pub-side-lnk {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}
.pub-side-lnk:hover {
  background: var(--surf2);
  color: var(--mint);
}
.pub-side-lnk.active {
  background: rgba(52, 211, 153, 0.14);
  color: var(--mint);
}
[data-theme="light"] .pub-side-lnk.active {
  background: rgba(5, 150, 105, 0.12);
  color: #047857;
}

.pub-side-foot {
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

/* Public Main & Hero Sections */
.pub-main {
  flex: 1;
  padding-block: clamp(24px, 4vw, 46px) clamp(44px, 6vw, 72px);
}

.pub-hero {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  background:
    radial-gradient(540px 240px at 92% 0%, rgba(52, 211, 153, 0.15), transparent 70%),
    radial-gradient(420px 220px at 8% 100%, rgba(245, 158, 11, 0.1), transparent 70%),
    var(--surf);
  box-shadow: 0 22px 48px -26px rgba(0, 0, 0, 0.65);
  margin-bottom: clamp(24px, 3.5vw, 36px);
}

.pub-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--mint);
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.32);
  margin-bottom: 12px;
}
[data-theme="light"] .pub-kicker { color: #047857; }

.pub-h1 {
  font-family: "Anek Bangla", "Hind Siliguri", sans-serif;
  font-weight: 800;
  font-size: clamp(1.65rem, 3.4vw, 2.55rem);
  line-height: 1.24;
  margin-bottom: 10px;
  color: var(--ink);
}

.pub-lead {
  font-size: clamp(0.96rem, 1.35vw, 1.08rem);
  color: var(--muted);
  max-width: 72ch;
  line-height: 1.72;
  margin-bottom: 0;
}

/* Cards & Grids */
.pub-card {
  height: 100%;
  border-radius: 20px;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--line);
  background: var(--surf);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.pub-card:hover {
  transform: translateY(-3px);
  border-color: rgba(52, 211, 153, 0.42);
}

.pub-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  color: var(--mint);
  background: rgba(52, 211, 153, 0.13);
  border: 1px solid rgba(52, 211, 153, 0.28);
  margin-bottom: 14px;
  flex-shrink: 0;
}

/* Batch Admission Status Badges */
.adm-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.adm-ongoing {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.38);
}
[data-theme="light"] .adm-ongoing { color: #047857; }
.adm-upcoming {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
}
[data-theme="light"] .adm-upcoming { color: #b45309; }
.adm-full {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.36);
}
[data-theme="light"] .adm-full { color: #b91c1c; }

.batch-meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--surf2);
  border: 1px solid var(--line);
  font-size: 13px;
}
@media (max-width: 420px) {
  .batch-meta-list { grid-template-columns: 1fr; }
}

/* Teacher Portrait Avatar */
.tch-photo {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  object-fit: cover;
  border: 2px solid rgba(52, 211, 153, 0.4);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(6, 78, 59, 0.4));
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.65rem;
  color: var(--mint);
  flex-shrink: 0;
}
.tch-photo-lg {
  width: 132px;
  height: 132px;
  border-radius: 26px;
  font-size: 2.4rem;
}

/* Star Rating */
.rev-stars {
  color: #fbbf24;
  font-size: 14px;
  letter-spacing: 1px;
}

/* Unified Public Footer */
.pub-footer {
  border-top: 1px solid var(--line);
  background: rgba(5, 11, 9, 0.72);
  padding-block: 44px 28px;
  margin-top: auto;
}
[data-theme="light"] .pub-footer {
  background: rgba(236, 245, 241, 0.85);
}

.pub-foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 28px;
}
@media (max-width: 991px) {
  .pub-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .pub-foot-grid { grid-template-columns: 1fr; gap: 22px; }
}

.pub-foot-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}
.pub-foot-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 7px;
}
.pub-foot-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  transition: color .15s;
}
.pub-foot-links a:hover {
  color: var(--mint);
}

/* Breadcrumb */
.pub-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}
.pub-crumb a {
  color: var(--mint);
  text-decoration: none;
}
.pub-crumb a:hover { text-decoration: underline; }
