/*
Theme Name: Learningbelt Academy
Author: S A digisoft Technologies
Description: Companion theme for the WordPress School Management System (WSMS). It inherits its entire palette, typography and corner radius from the plugin's Branding & Themes screen, so the public website and the school portal always match. Built as a classic theme so Elementor and the Divi Builder plugin work with it rather than against it.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wsms-academy
Tags: education, custom-menu, custom-logo, featured-images, translation-ready, full-width-template, block-styles, wide-blocks, right-sidebar
*/

/* ==========================================================================
   1. Design tokens
   --------------------------------------------------------------------------
   Every value below is a FALLBACK. When the WSMS plugin is active it prints
   the real --wsms-* variables into <head> on every request and those win.
   That is the entire point of this theme: pick a preset in
   School MS > Branding & Themes and the public site follows.
   ========================================================================== */

:root {
  --wsms-primary: #6366f1;
  --wsms-accent: #10b981;
  --wsms-bg: #020617;
  --wsms-card: rgba(15, 23, 42, 0.75);
  --wsms-text: #f8fafc;
  --wsms-radius: 1rem;
  --wsms-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wsms-primary-soft: rgba(99, 102, 241, 0.14);
  --wsms-primary-hover: #4f46e5;
  --wsms-accent-soft: rgba(16, 185, 129, 0.14);
  --wsms-text-muted: rgba(248, 250, 252, 0.62);
  --wsms-border: rgba(248, 250, 252, 0.14);
  --wsms-surface: #0b1220;
  --wsms-on-primary: #ffffff;
  --wsms-radius-sm: 0.5rem;
  --wsms-radius-lg: 1.5rem;
  --wsms-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.7);

  --wsms-content-width: 46rem;
  --wsms-wide-width: 75rem;
  --wsms-gutter: clamp(1rem, 4vw, 2.5rem);
}

/* ==========================================================================
   2. Base
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--wsms-bg);
  color: var(--wsms-text);
  font-family: var(--wsms-font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p, ul, ol, dl, table, pre, blockquote, figure { margin: 0 0 1.25rem; }

a {
  color: var(--wsms-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover, a:focus { color: var(--wsms-primary-hover); }

img, svg, video, iframe { max-width: 100%; height: auto; }

:focus-visible {
  outline: 2px solid var(--wsms-accent);
  outline-offset: 2px;
  border-radius: var(--wsms-radius-sm);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 0.75rem 1.25rem;
  background: var(--wsms-primary);
  color: var(--wsms-on-primary);
  border-radius: 0 0 var(--wsms-radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* ==========================================================================
   3. Layout
   ========================================================================== */

.wsms-container {
  width: 100%;
  max-width: var(--wsms-wide-width);
  margin-inline: auto;
  padding-inline: var(--wsms-gutter);
}

.wsms-site { display: flex; flex-direction: column; min-height: 100vh; }
.wsms-main { flex: 1 0 auto; padding-block: clamp(2rem, 6vw, 4rem); }

.wsms-layout { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 60rem) {
  .wsms-layout.has-sidebar { grid-template-columns: minmax(0, 1fr) 18rem; }
}

.wsms-entry-content { max-width: var(--wsms-content-width); }
.wsms-layout.has-sidebar .wsms-entry-content,
.template-full-width .wsms-entry-content { max-width: none; }

/* Builder templates hand the full viewport to the builder main section.
   Header and footer retain their standard institutional container widths. */
.template-full-width .wsms-main,
.template-portal .wsms-main { padding-block: 0; }
.template-full-width .wsms-main .wsms-container,
.template-portal .wsms-main .wsms-container { max-width: none; padding-inline: 0; }


/* ==========================================================================
   4. Header and navigation
   ========================================================================== */

/* Pre-Header Topbar */
.wsms-topbar {
  background: #090d16;
  color: #94a3b8;
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 101;
}
.wsms-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.45rem;
  gap: 1rem;
}
.wsms-topbar__contact {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.wsms-topbar__contact span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #cbd5e1;
}
.wsms-topbar__contact svg {
  color: #6366f1;
}
.wsms-topbar__links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.wsms-topbar__links a {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}
.wsms-topbar__links a:hover {
  color: #a5b4fc;
}
@media (max-width: 960px) {
  .wsms-topbar__contact .wsms-topbar__campus { display: none; }
}
@media (max-width: 768px) {
  .wsms-topbar { display: none; }
}

.wsms-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  transition: top 0.2s ease;
}

body.admin-bar .wsms-header {
  top: 32px;
}
@media (max-width: 782px) {
  body.admin-bar .wsms-header {
    top: 46px;
  }
}

.wsms-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.wsms-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: #0f172a;
}
.wsms-brand__crest {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 10px rgba(99, 102, 241, 0.35));
  flex-shrink: 0;
}
.wsms-brand__crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.wsms-brand__name {
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.025em;
  color: #0f172a;
  line-height: 1.15;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
}
.wsms-brand__tagline {
  display: block;
  font-size: 0.65rem;
  color: #4f46e5;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-top: 1px;
}

.wsms-nav ul { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.wsms-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
  color: #334155;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap !important;
  transition: all 0.15s ease;
}
.wsms-nav a:hover,
.wsms-nav .current-menu-item > a {
  background: #f1f5f9;
  color: #4f46e5;
}

.wsms-nav li { position: relative; }
.wsms-nav .sub-menu {
  position: absolute;
  left: 0; top: 100%;
  min-width: 12rem;
  flex-direction: column;
  padding: 0.4rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  display: none;
}
.wsms-nav li:hover > .sub-menu,
.wsms-nav li:focus-within > .sub-menu { display: flex; }

.wsms-header__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.wsms-btn--portal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.52rem 1.1rem;
  border-radius: 9999px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.wsms-btn--portal:hover {
  border-color: #4f46e5;
  color: #4f46e5;
  background: #eef2ff;
}
.wsms-btn--apply {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.55rem 1.3rem;
  border-radius: 9999px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  transition: all 0.2s ease;
}
.wsms-btn--apply:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.45);
  color: #ffffff;
}
.wsms-btn--cockpit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.52rem 1.15rem;
  border-radius: 9999px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
  transition: all 0.2s ease;
}
.wsms-btn--cockpit:hover {
  background: #1e293b;
  color: #ffffff;
  transform: translateY(-1px);
}
.wsms-btn--logout {
  display: inline-flex;
  align-items: center;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.wsms-btn--logout:hover {
  color: #dc2626;
  background: #fef2f2;
}

.wsms-nav-toggle {
  display: none;
  padding: 0.55rem;
  background: transparent;
  border: 1px solid var(--wsms-border);
  border-radius: var(--wsms-radius-sm);
  color: inherit;
  cursor: pointer;
}

@media (max-width: 60rem) {
  .wsms-nav-toggle { display: inline-flex; }
  .wsms-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    padding: 0.75rem var(--wsms-gutter) 1.25rem;
    background: var(--wsms-surface);
    border-bottom: 1px solid var(--wsms-border);
  }
  .wsms-nav.is-open { display: block; }
  .wsms-nav ul { flex-direction: column; gap: 0.15rem; }
  .wsms-nav .sub-menu {
    position: static; display: flex;
    box-shadow: none; background: transparent;
    border: 0; padding-left: 1rem;
  }
}

/* ==========================================================================
   5. Buttons
   ========================================================================== */

.wsms-btn,
.wp-block-button__link,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  background: var(--wsms-primary);
  color: var(--wsms-on-primary);
  border: 0;
  border-radius: var(--wsms-radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.wsms-btn:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover {
  background: var(--wsms-primary-hover);
  color: var(--wsms-on-primary);
  transform: translateY(-1px);
}

.wsms-btn--ghost {
  background: transparent;
  color: var(--wsms-text);
  border: 1px solid var(--wsms-border);
}
.wsms-btn--ghost:hover { background: var(--wsms-primary-soft); color: var(--wsms-primary); }

/* ==========================================================================
   6. Cards and content
   ========================================================================== */

.wsms-card {
  background: var(--wsms-card);
  border: 1px solid var(--wsms-border);
  border-radius: var(--wsms-radius);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--wsms-shadow);
}

.wsms-grid { display: grid; gap: 1.5rem; }
@media (min-width: 40rem) { .wsms-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 55rem) { .wsms-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.wsms-entry-meta { font-size: 0.82rem; color: var(--wsms-text-muted); margin-bottom: 1rem; }
.wsms-entry-title a { color: inherit; text-decoration: none; }
.wsms-entry-title a:hover { color: var(--wsms-primary); }

.wsms-thumb {
  display: block;
  margin-bottom: 1rem;
  border-radius: var(--wsms-radius);
  overflow: hidden;
}
.wsms-thumb img { width: 100%; display: block; object-fit: cover; }

blockquote {
  margin-inline: 0;
  padding: 1rem 1.5rem;
  border-left: 3px solid var(--wsms-primary);
  background: var(--wsms-primary-soft);
  border-radius: 0 var(--wsms-radius-sm) var(--wsms-radius-sm) 0;
}

code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }
pre {
  padding: 1rem 1.25rem;
  overflow-x: auto;
  background: var(--wsms-surface);
  border: 1px solid var(--wsms-border);
  border-radius: var(--wsms-radius-sm);
}

table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--wsms-border); text-align: left; }

input[type="text"], input[type="email"], input[type="url"], input[type="password"],
input[type="search"], input[type="number"], input[type="tel"], input[type="date"],
textarea, select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: var(--wsms-surface);
  color: var(--wsms-text);
  border: 1px solid var(--wsms-border);
  border-radius: var(--wsms-radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
}
input:focus, textarea:focus, select:focus { border-color: var(--wsms-primary); outline: none; }

/* ==========================================================================
   7. Sidebar, pagination, footer
   ========================================================================== */

.wsms-sidebar .widget { margin-bottom: 2rem; }
.wsms-sidebar .widget-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wsms-text-muted);
}
.wsms-sidebar ul { list-style: none; padding: 0; }
.wsms-sidebar li { padding: 0.35rem 0; border-bottom: 1px solid var(--wsms-border); }

.wsms-pagination { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 2.5rem; }
.wsms-pagination .page-numbers {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--wsms-border);
  border-radius: var(--wsms-radius-sm);
  text-decoration: none;
  color: var(--wsms-text);
}
.wsms-pagination .page-numbers.current,
.wsms-pagination .page-numbers:hover {
  background: var(--wsms-primary);
  color: var(--wsms-on-primary);
  border-color: var(--wsms-primary);
}

.wsms-footer {
  margin-top: auto;
  padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  background: var(--wsms-surface);
  border-top: 1px solid var(--wsms-border);
  font-size: 0.9rem;
}
.wsms-footer__widgets { display: grid; gap: 2rem; margin-bottom: 2.5rem; }
@media (min-width: 48rem) { .wsms-footer__widgets { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.wsms-footer__bottom {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--wsms-border);
  color: var(--wsms-text-muted);
  font-size: 0.82rem;
}

/* ==========================================================================
   8. Portal template and plugin surfaces
   ========================================================================== */

.template-portal .wsms-app-wrapper { min-height: calc(100vh - 4.5rem); }

.wsms-portal-gate {
  max-width: 30rem;
  margin: clamp(3rem, 10vw, 6rem) auto;
  text-align: center;
}

/* Plugin blocks and Elementor widgets inherit tokens instead of fighting them. */
.wsms-block-wrapper { border-radius: var(--wsms-radius); }

/* ==========================================================================
   9. WordPress core alignment classes
   ========================================================================== */

.alignleft { float: left; margin: 0.4rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.4rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide { max-width: var(--wsms-wide-width); margin-inline: auto; }
.alignfull { max-width: none; margin-inline: calc(50% - 50vw); width: 100vw; }

.sticky .wsms-entry-title::after { content: " *"; color: var(--wsms-accent); }

@media print {
  .wsms-header, .wsms-footer, .wsms-sidebar, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   10. Institutional UI Components & Design System Tokens
   ========================================================================== */

/* Hero Slider */
.wsms-hero-slider {
  position: relative;
  height: 82vh;
  min-height: 560px;
  max-height: 760px;
  overflow: hidden;
  background: #090d16;
}
.wsms-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(1.04);
  display: flex;
  align-items: center;
  justify-content: center;
}
.wsms-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}
.wsms-slide__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.6) contrast(1.08);
}
.wsms-slide__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 50%, rgba(2, 6, 23, 0.45) 0%, rgba(2, 6, 23, 0.88) 100%);
}
.wsms-slide__content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 0 var(--wsms-gutter);
  color: #ffffff;
}
.wsms-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #34d399;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}
.wsms-slide__title {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: #ffffff;
  letter-spacing: -0.025em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}
.wsms-slide__lead {
  font-size: clamp(1.05rem, 1.3vw, 1.28rem);
  line-height: 1.6;
  color: #e2e8f0;
  max-width: 720px;
  margin-bottom: 2.2rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.wsms-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}
.wsms-slider-arrow:hover {
  background: #059669;
  border-color: #059669;
  transform: translateY(-50%) scale(1.08);
}
.wsms-slider-arrow.prev { left: 24px; }
.wsms-slider-arrow.next { right: 24px; }
.wsms-slider-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 8px;
}
.wsms-dot {
  width: 32px;
  height: 5px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.3s ease;
}
.wsms-dot.active {
  background: #10b981;
  width: 52px;
}

/* Course Directory & Cards */
.wsms-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3.5rem;
}
.wsms-course-card {
  background: #ffffff;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}
.wsms-course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -8px rgba(15, 23, 42, 0.12);
  border-color: #cbd5e1;
}
.wsms-course-img {
  height: 195px;
  width: 100%;
  object-fit: cover;
  background: #0f172a;
}
.wsms-course-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.wsms-course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
}
.wsms-course-dept {
  color: #059669;
  background: #ecfdf5;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(5, 150, 105, 0.2);
}
.wsms-course-grade {
  color: #64748b;
}
.wsms-course-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #0f172a;
  line-height: 1.35;
}
.wsms-course-desc {
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}
.wsms-course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.85rem;
}

/* Department Filter Pills */
.wsms-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.wsms-filter-pill {
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.wsms-filter-pill:hover,
.wsms-filter-pill.active {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

/* Institutional Academic Table */
.wsms-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
.wsms-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}
.wsms-table th {
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
  padding: 1rem 1.25rem;
  border-bottom: 2px solid #e2e8f0;
}
.wsms-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  color: #475569;
}
.wsms-table tr:last-child td {
  border-bottom: none;
}
.wsms-table tr:hover td {
  background: #f8fafc;
}
