/* ===========================================
   Nepali School Calendar — Public styles
   Typography: DM Sans + Noto Sans Devanagari (enqueued in PHP)
   Palette: warm editorial / school site harmony
   =========================================== */

:root {
  --nsc-ink: #0f1b2e;
  --nsc-primary: #152b45;
  --nsc-primary-mid: #1e3a5c;
  --nsc-primary-hover: #0f2240;
  --nsc-accent: #b8956c;
  --nsc-accent-soft: rgba(184, 149, 108, 0.18);
  --nsc-gold-line: #c9a86c;
  --nsc-festival: #c17a3a;
  --nsc-bg: #faf7f2;
  --nsc-surface: #f2ebe3;
  --nsc-border: #e4d9cc;
  --nsc-text: #1a2332;
  --nsc-text-muted: #5c6575;
  --nsc-weekly-off: #8b5a52;
  --nsc-today-ring: #b8956c;
  --nsc-today-text: #fff;
  --nsc-holiday-bg: #fff9f4;
  --nsc-radius: 16px;
  --nsc-radius-sm: 8px;
  --nsc-shadow: 0 12px 40px rgba(15, 27, 46, 0.09), 0 2px 8px rgba(15, 27, 46, 0.04);
  --nsc-shadow-sm: 0 4px 14px rgba(15, 27, 46, 0.06);
  --nsc-font-ne: 'Noto Sans Devanagari', 'Mangal', sans-serif;
  --nsc-font-en: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --nsc-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --nsc-radius-lg: 22px;
  --nsc-glass-bg: rgba(255, 255, 255, 0.45);
  --nsc-glass-bg-strong: rgba(255, 252, 248, 0.72);
  --nsc-glass-border: rgba(255, 255, 255, 0.55);
  --nsc-glass-shine: rgba(255, 255, 255, 0.45);
  --nsc-blur: blur(22px) saturate(1.75);
  --nsc-blur-heavy: blur(36px) saturate(1.6);
  --nsc-neu-out: 6px 6px 16px rgba(15, 27, 46, 0.09), -5px -5px 14px rgba(255, 255, 255, 0.85);
  --nsc-neu-in: inset 1px 1px 2px rgba(255, 255, 255, 0.65), inset -2px -2px 5px rgba(15, 27, 46, 0.06);
  --nsc-orb-a: rgba(184, 149, 108, 0.38);
  --nsc-orb-b: rgba(30, 58, 92, 0.14);
}

.nsc-theme-dark {
  --nsc-ink: #e8edf5;
  --nsc-primary: #1a2f4d;
  --nsc-primary-mid: #243b5c;
  --nsc-primary-hover: #152a45;
  --nsc-accent: #d4b896;
  --nsc-accent-soft: rgba(212, 184, 150, 0.15);
  --nsc-gold-line: #c9a86c;
  --nsc-bg: #121c2b;
  --nsc-surface: #1a2638;
  --nsc-border: #2d3d55;
  --nsc-text: #eef2f8;
  --nsc-text-muted: #9aa8bc;
  --nsc-weekly-off: #e8b8b0;
  --nsc-today-ring: #d4b896;
  --nsc-holiday-bg: #1e2a3d;
  --nsc-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  --nsc-radius-lg: 22px;
  --nsc-glass-bg: rgba(22, 30, 44, 0.42);
  --nsc-glass-bg-strong: rgba(18, 26, 40, 0.68);
  --nsc-glass-border: rgba(255, 255, 255, 0.1);
  --nsc-glass-shine: rgba(255, 255, 255, 0.06);
  --nsc-neu-out: 8px 8px 20px rgba(0, 0, 0, 0.35), -3px -3px 12px rgba(255, 255, 255, 0.03);
  --nsc-neu-in: inset 1px 1px 2px rgba(255, 255, 255, 0.05), inset -2px -2px 8px rgba(0, 0, 0, 0.28);
  --nsc-orb-a: rgba(212, 184, 150, 0.16);
  --nsc-orb-b: rgba(36, 59, 92, 0.5);
}

/* ---- Calendar — glass + soft neumorphism ---- */
.nsc-calendar-wrap {
  position: relative;
  isolation: isolate;
  font-family: var(--nsc-font-en);
  max-width: 780px;
  margin: 1.75rem auto;
  padding: 0.65rem;
  border-radius: var(--nsc-radius-lg);
  border: 1px solid var(--nsc-glass-border);
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(250, 247, 242, 0.38) 42%,
    rgba(242, 235, 227, 0.42) 100%
  );
  backdrop-filter: var(--nsc-blur);
  -webkit-backdrop-filter: var(--nsc-blur);
  box-shadow:
    0 1px 1px rgba(255, 255, 255, 0.75) inset,
    var(--nsc-neu-out),
    0 28px 90px rgba(15, 27, 46, 0.11);
  overflow: hidden;
}

.nsc-calendar-wrap::before {
  content: '';
  position: absolute;
  inset: -45%;
  z-index: 0;
  background:
    radial-gradient(ellipse 65% 55% at 18% 8%, var(--nsc-orb-a), transparent 58%),
    radial-gradient(ellipse 55% 50% at 88% 12%, var(--nsc-orb-b), transparent 52%),
    radial-gradient(ellipse 45% 40% at 52% 95%, rgba(201, 168, 108, 0.22), transparent 48%);
  filter: blur(56px);
  opacity: 0.9;
  pointer-events: none;
}

.nsc-theme-dark.nsc-calendar-wrap {
  background: linear-gradient(160deg, rgba(36, 48, 68, 0.5) 0%, rgba(15, 22, 36, 0.72) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    var(--nsc-neu-out),
    0 24px 80px rgba(0, 0, 0, 0.55);
}

.nsc-calendar-wrap > * {
  position: relative;
  z-index: 1;
}

/* ---- Header (frosted bar) ---- */
.nsc-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.55rem;
  padding: 1rem 1.15rem;
  border-radius: calc(var(--nsc-radius-lg) - 8px);
  color: #fff;
  background: linear-gradient(
    125deg,
    rgba(21, 43, 69, 0.88) 0%,
    rgba(36, 62, 95, 0.82) 48%,
    rgba(21, 43, 69, 0.92) 100%
  );
  backdrop-filter: blur(18px) saturate(1.65);
  -webkit-backdrop-filter: blur(18px) saturate(1.65);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 14px 36px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(0, 0, 0, 0.12) inset;
}

.nsc-cal-header::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--nsc-gold-line), transparent);
  opacity: 0.85;
  pointer-events: none;
}

.nsc-nav-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.nsc-cal-title {
  flex: 1;
  text-align: center;
  min-width: 0;
}

.nsc-month-ne {
  display: block;
  font-family: var(--nsc-font-ne);
  font-size: 1.38rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.nsc-month-en {
  display: block;
  font-size: 0.82rem;
  opacity: 0.88;
  font-weight: 500;
}

.nsc-ad-year-range {
  display: block;
  font-size: 0.72rem;
  opacity: 0.72;
  margin-top: 0.1rem;
}

.nsc-nav-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.15s ease, background var(--nsc-transition), box-shadow var(--nsc-transition);
  flex-shrink: 0;
}

.nsc-nav-btn:hover:not(.nsc-nav-disabled) {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.04);
}

.nsc-nav-btn.nsc-nav-disabled {
  opacity: 0.32;
  cursor: not-allowed;
  pointer-events: none;
}

.nsc-today-btn {
  padding: 0.38rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: background var(--nsc-transition), transform 0.15s ease;
  flex-shrink: 0;
}

.nsc-today-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

/* ---- Grid panel (glass) + progressive blur band ---- */
.nsc-cal-grid {
  position: relative;
  padding: 0.55rem 0.55rem 0.65rem;
  border-radius: calc(var(--nsc-radius-lg) - 6px);
  background: var(--nsc-glass-bg);
  backdrop-filter: blur(20px) saturate(1.7);
  -webkit-backdrop-filter: blur(20px) saturate(1.7);
  border: 1px solid var(--nsc-glass-border);
  box-shadow: var(--nsc-neu-in), 0 1px 0 var(--nsc-glass-shine) inset;
}

.nsc-cal-grid::after {
  content: '';
  position: absolute;
  z-index: 0;
  left: 0.4rem;
  right: 0.4rem;
  bottom: 0.35rem;
  height: 36px;
  pointer-events: none;
  border-radius: 0 0 14px 14px;
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  background: linear-gradient(to bottom, transparent, rgba(250, 247, 242, 0.35));
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.55) 55%, black 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.55) 55%, black 100%);
}

.nsc-cal-weekdays,
.nsc-cal-days {
  position: relative;
  z-index: 1;
}

.nsc-theme-dark .nsc-cal-grid::after {
  background: linear-gradient(to bottom, transparent, rgba(18, 28, 43, 0.45));
}

/* ---- Weekday row ---- */
.nsc-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 6px;
}

.nsc-weekday-cell {
  text-align: center;
  padding: 0.5rem 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--nsc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nsc-theme-dark .nsc-weekday-cell {
  background: rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.06);
}

.nsc-weekday-cell .nsc-ne {
  display: block;
  font-family: var(--nsc-font-ne);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--nsc-text);
  margin-top: 0.1rem;
}

.nsc-weekday-cell.nsc-weekly-off,
.nsc-weekday-cell.nsc-weekly-off .nsc-ne {
  color: var(--nsc-weekly-off);
  background: rgba(139, 90, 82, 0.08);
  border-color: rgba(139, 90, 82, 0.2);
}

.nsc-theme-dark .nsc-weekday-cell.nsc-weekly-off {
  background: rgba(232, 184, 176, 0.1);
  border-color: rgba(232, 184, 176, 0.18);
}

/* ---- Day cells (soft neumorphism) ---- */
.nsc-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.nsc-day-cell {
  position: relative;
  overflow: visible;
  min-height: 72px;
  padding: 0.4rem 0.45rem 0.35rem;
  border-radius: 14px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-top: 3px solid transparent;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.88), rgba(248, 243, 236, 0.58));
  box-shadow: var(--nsc-neu-out), var(--nsc-neu-in);
  transition: transform 0.18s ease, box-shadow var(--nsc-transition), border-color var(--nsc-transition), background var(--nsc-transition);
}

.nsc-theme-dark .nsc-day-cell {
  background: linear-gradient(165deg, rgba(40, 52, 72, 0.75), rgba(22, 32, 48, 0.55));
  border-color: rgba(255, 255, 255, 0.08);
}

.nsc-day-cell:hover:not(.nsc-empty) {
  transform: translateY(-2px);
  box-shadow:
    8px 8px 22px rgba(15, 27, 46, 0.1),
    -4px -4px 16px rgba(255, 255, 255, 0.9),
    var(--nsc-neu-in);
}

.nsc-theme-dark .nsc-day-cell:hover:not(.nsc-empty) {
  box-shadow: 8px 8px 24px rgba(0, 0, 0, 0.4), -2px -2px 10px rgba(255, 255, 255, 0.04), var(--nsc-neu-in);
}

.nsc-day-cell.nsc-empty {
  cursor: default;
  background: rgba(230, 224, 214, 0.28);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: inset 2px 2px 6px rgba(15, 27, 46, 0.05), inset -1px -1px 4px rgba(255, 255, 255, 0.4);
}

.nsc-theme-dark .nsc-day-cell.nsc-empty {
  background: rgba(0, 0, 0, 0.18);
  border-color: rgba(255, 255, 255, 0.04);
}

.nsc-day-cell.nsc-weekly-off:not(.nsc-empty) {
  background: linear-gradient(165deg, rgba(255, 245, 242, 0.9), rgba(252, 236, 232, 0.55));
}

.nsc-theme-dark .nsc-day-cell.nsc-weekly-off:not(.nsc-empty) {
  background: linear-gradient(165deg, rgba(72, 48, 52, 0.45), rgba(40, 32, 38, 0.5));
}

.nsc-day-cell.nsc-weekly-off .nsc-bs-ne,
.nsc-day-cell.nsc-weekly-off .nsc-bs-num {
  color: var(--nsc-weekly-off);
}

.nsc-day-cell.nsc-today {
  background: linear-gradient(165deg, rgba(255, 252, 248, 0.95), var(--nsc-accent-soft)) !important;
  border-color: rgba(184, 149, 108, 0.45);
  box-shadow:
    0 0 0 1px rgba(184, 149, 108, 0.35),
    0 0 24px rgba(184, 149, 108, 0.25),
    var(--nsc-neu-out);
}

.nsc-theme-dark .nsc-day-cell.nsc-today {
  background: rgba(212, 184, 150, 0.14) !important;
  border-color: rgba(212, 184, 150, 0.35);
  box-shadow: 0 0 0 1px rgba(212, 184, 150, 0.25), 0 0 28px rgba(0, 0, 0, 0.35), var(--nsc-neu-out);
}

.nsc-day-cell.nsc-today .nsc-day-bs .nsc-bs-ne,
.nsc-day-cell.nsc-today .nsc-day-bs .nsc-bs-num {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, rgba(212, 184, 150, 1), rgba(139, 110, 78, 0.95));
  box-shadow: 0 3px 10px rgba(15, 27, 46, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.nsc-day-cell.nsc-has-holiday {
  border-top-width: 3px;
}

.nsc-day-bs {
  display: flex;
  gap: 0.2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.nsc-bs-ne {
  font-family: var(--nsc-font-ne);
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--nsc-text);
  line-height: 1;
}

.nsc-bs-num {
  font-size: 0.88rem;
  color: var(--nsc-text-muted);
  font-weight: 500;
}

.nsc-day-ad {
  position: absolute;
  top: 0.32rem;
  right: 0.38rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--nsc-text-muted);
  padding: 0.12rem 0.32rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.nsc-theme-dark .nsc-day-ad {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.08);
}

.nsc-day-holidays,
.nsc-day-events {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.nsc-holiday-dot,
.nsc-event-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  cursor: help;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* ---- Day detail popup (front glass) ---- */
.nsc-day-popup {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  min-width: 188px;
  padding: 0.85rem 1.1rem 0.75rem;
  white-space: nowrap;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 252, 248, 0.72);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 20px 50px rgba(15, 27, 46, 0.18),
    0 4px 12px rgba(15, 27, 46, 0.08);
}

.nsc-theme-dark .nsc-day-popup {
  background: rgba(22, 32, 48, 0.82);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.nsc-popup-close {
  position: absolute;
  top: 0.35rem;
  right: 0.45rem;
  padding: 0;
  border: none;
  background: rgba(0, 0, 0, 0.04);
  width: 1.65rem;
  height: 1.65rem;
  line-height: 1;
  border-radius: 8px;
  font-size: 1.1rem;
  color: var(--nsc-text-muted);
  cursor: pointer;
  transition: background var(--nsc-transition), color var(--nsc-transition);
}

.nsc-popup-close:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--nsc-text);
}

.nsc-theme-dark .nsc-popup-close {
  background: rgba(255, 255, 255, 0.06);
  color: #c5d0e0;
}

.nsc-popup-bs {
  font-family: var(--nsc-font-ne);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--nsc-primary-mid);
  padding-right: 1.5rem;
}

.nsc-theme-dark .nsc-popup-bs {
  color: var(--nsc-accent);
}

.nsc-popup-bsen {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--nsc-text);
  font-weight: 500;
}

.nsc-popup-ad {
  margin-top: 0.35rem;
  font-size: 0.76rem;
  color: var(--nsc-text-muted);
}

/* ---- Calendar footer (holidays list) ---- */
.nsc-cal-footer-holidays {
  margin-top: 0.55rem;
  padding: 1rem 1.15rem 1.05rem;
  border-radius: calc(var(--nsc-radius-lg) - 6px);
  border: 1px solid var(--nsc-glass-border);
  background: var(--nsc-glass-bg-strong);
  backdrop-filter: var(--nsc-blur-heavy);
  -webkit-backdrop-filter: var(--nsc-blur-heavy);
  box-shadow: 0 1px 0 var(--nsc-glass-shine) inset;
}

.nsc-cal-footer-holidays h4 {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--nsc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nsc-cal-footer-holidays ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.nsc-cal-footer-holidays li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.86rem;
  color: var(--nsc-text);
  padding: 0.35rem 0.45rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.nsc-theme-dark .nsc-cal-footer-holidays li {
  background: rgba(0, 0, 0, 0.12);
  border-color: rgba(255, 255, 255, 0.06);
}

.nsc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.nsc-ne {
  font-family: var(--nsc-font-ne);
}

/* ==================== HOLIDAYS ==================== */
.nsc-widget-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--nsc-ink);
  margin: 0 0 0.9rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--nsc-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.nsc-holidays-list, .nsc-events-list, .nsc-admissions-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.nsc-holiday-item, .nsc-event-item, .nsc-admission-item {
  display: flex;
  align-items: stretch;
  background: var(--nsc-bg, #fff);
  border: 1px solid var(--nsc-border);
  border-radius: var(--nsc-radius-sm);
  overflow: hidden;
  box-shadow: var(--nsc-shadow-sm);
  transition: box-shadow var(--nsc-transition);
}
.nsc-holiday-item:hover, .nsc-event-item:hover, .nsc-admission-item:hover {
  box-shadow: var(--nsc-shadow);
}
.nsc-holiday-bar, .nsc-event-bar {
  width: 5px;
  flex-shrink: 0;
}
.nsc-holiday-body, .nsc-event-body, .nsc-admission-body {
  flex: 1;
  padding: .7rem .9rem;
  min-width: 0;
}
.nsc-holiday-title, .nsc-event-title {
  font-weight: 600;
  color: var(--nsc-text);
  font-size: .9rem;
}
.nsc-holiday-dates, .nsc-event-meta, .nsc-admission-dates {
  font-size: .8rem;
  color: var(--nsc-text-muted);
  margin-top: .2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  align-items: center;
}
.nsc-bs-date { font-family: var(--nsc-font-ne); }
.nsc-sep { color: var(--nsc-border); }
.nsc-type-badge, .nsc-category-badge, .nsc-badge {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 600;
  background: var(--nsc-surface);
  color: var(--nsc-text-muted);
  border: 1px solid var(--nsc-border);
  margin: .35rem .75rem .35rem 0;
  align-self: flex-start;
  flex-shrink: 0;
  white-space: nowrap;
}
.nsc-type-festival { background: #fff3e0; color: #e65100; border-color: #ffcc80; }
.nsc-type-holiday  { background: #fce4ec; color: #b71c1c; border-color: #ef9a9a; }
.nsc-countdown-badge { background: #e8f5e9; color: #1b5e20; border-color: #a5d6a7; }
.nsc-expired-badge   { background: #fce4ec; color: #b71c1c; border-color: #ef9a9a; }

/* ==================== EXAM ROUTINE ==================== */
.nsc-table-wrap { overflow-x: auto; }
.nsc-exam-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
  color: var(--nsc-text, #1a202c);
}
.nsc-exam-table th {
  background: linear-gradient(135deg, var(--nsc-primary), var(--nsc-primary-mid));
  color: #fff;
  border-bottom: 2px solid var(--nsc-gold-line);
  text-align: left;
  padding: .75rem .9rem;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .03em;
}
.nsc-exam-table td {
  padding: .65rem .9rem;
  border-bottom: 1px solid var(--nsc-border);
  vertical-align: top;
}
.nsc-exam-table tr:last-child td { border-bottom: none; }
.nsc-exam-table tr:nth-child(even) td { background: var(--nsc-surface); }
.nsc-exam-table .nsc-subject strong { font-size: .95rem; }
.nsc-exam-table .nsc-bs .nsc-ne { font-family: var(--nsc-font-ne); font-size: .9rem; }
.nsc-exam-table .nsc-bs small { font-size: .75rem; color: var(--nsc-text-muted); }
.nsc-exam-table .nsc-time { white-space: nowrap; }

/* ==================== ADMISSIONS ==================== */
.nsc-admission-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .35rem;
}
.nsc-admission-head strong { font-size: .95rem; }
.nsc-program {
  font-size: .82rem;
  color: var(--nsc-text-muted);
  background: var(--nsc-surface);
  padding: .15rem .5rem;
  border-radius: 10px;
}
.nsc-apply-btn {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.45rem 1rem;
  background: linear-gradient(135deg, var(--nsc-primary), var(--nsc-primary-mid));
  color: #fff !important;
  border-radius: var(--nsc-radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: filter var(--nsc-transition), transform 0.15s ease;
  box-shadow: 0 2px 8px rgba(21, 43, 69, 0.2);
}
.nsc-apply-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.nsc-admission-item.nsc-expired { opacity: .7; }
.nsc-admission-desc { font-size: .82rem; color: var(--nsc-text-muted); margin-top: .35rem; }

/* ==================== MISC ==================== */
.nsc-empty-msg {
  text-align: center;
  color: var(--nsc-text-muted);
  padding: 1.5rem;
  font-size: .9rem;
}
.nsc-hidden { display: none !important; }
.nsc-loading { text-align: center; padding: 1.5rem; color: var(--nsc-text-muted); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 540px) {
  .nsc-calendar-wrap {
    border-radius: 0;
    margin: 0;
    padding: 0.45rem;
  }
  .nsc-cal-header { flex-direction: column; }
  .nsc-cal-days { gap: 5px; }
  .nsc-day-cell { min-height: 54px; padding: 0.28rem 0.32rem; border-radius: 11px; }
  .nsc-bs-ne { font-size: .85rem; }
  .nsc-day-ad { font-size: .62rem; }
  .nsc-exam-table { font-size: .8rem; }
  .nsc-exam-table th, .nsc-exam-table td { padding: .5rem .6rem; }
}

/* ---- Post date BS badge ---- */
.nsc-post-bs-date {
  font-size: 0.82em;
  color: var(--nsc-primary-mid);
  font-family: var(--nsc-font-ne);
  margin-left: 0.35em;
}

/* ---- Plugin credit (admin dashboard only; see nsc_plugin_credit) ---- */
.nsc-plugin-credit {
  text-align: center;
  padding: 0.65rem 1rem 0.85rem;
  margin: 0;
  border-top: 1px solid var(--nsc-border);
  background: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--nsc-text-muted);
}
.nsc-theme-dark .nsc-plugin-credit {
  background: rgba(0, 0, 0, 0.2);
}
.nsc-credit-inner {
  display: inline-block;
}
.nsc-credit-link {
  color: var(--nsc-primary-mid);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--nsc-accent);
  transition: color var(--nsc-transition), border-color var(--nsc-transition);
}
.nsc-credit-link:hover {
  color: var(--nsc-accent);
  border-bottom-color: transparent;
}
.nsc-theme-dark .nsc-credit-link {
  color: var(--nsc-accent);
}

.nsc-holidays-wrap,
.nsc-events-wrap,
.nsc-admissions-wrap,
.nsc-exam-wrap {
  max-width: 700px;
  margin: 1.5rem auto;
  font-family: var(--nsc-font-en);
  padding: 1.15rem 1.25rem 1.1rem;
  border-radius: var(--nsc-radius-lg);
  border: 1px solid var(--nsc-glass-border);
  background: var(--nsc-glass-bg);
  backdrop-filter: blur(18px) saturate(1.65);
  -webkit-backdrop-filter: blur(18px) saturate(1.65);
  box-shadow: var(--nsc-neu-out), 0 1px 0 var(--nsc-glass-shine) inset;
}
.nsc-theme-dark.nsc-holidays-wrap,
.nsc-theme-dark.nsc-events-wrap,
.nsc-theme-dark.nsc-admissions-wrap,
.nsc-theme-dark.nsc-exam-wrap {
  background: var(--nsc-glass-bg);
}
