/**
 * Tenant School Website Design System
 * Modern, Ultra-Smooth, Responsive & Accessible
 */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Noto+Serif+Bengali:wght@600;700&display=swap');

:root {
  --school-primary: #0f766e;
  --school-primary-dark: #115e59;
  --school-primary-light: #ccfbf1;
  --school-secondary: #0369a1;
  --school-secondary-dark: #075985;
  --school-accent: #f59e0b;
  --school-accent-hover: #d97706;
  --school-bg: #f8fafc;
  --school-surface: #ffffff;
  --school-text: #0f172a;
  --school-text-muted: #64748b;
  --school-border: #e2e8f0;
  --school-success: #10b981;
  --school-danger: #ef4444;

  --font-sans: 'Hind Siliguri', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Noto Serif Bengali', serif;
  --font-en: 'Plus Jakarta Sans', sans-serif;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* Reset & Basics */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--school-bg);
  color: var(--school-text);
  font-size: 1.02rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.ts-container {
  width: 100%;
  max-width: 1300px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .ts-container {
    padding-inline: 1.75rem;
  }
}

/* Top Utility Bar */
.ts-topbar {
  background: #0b1329;
  color: #cbd5e1;
  font-size: 0.92rem;
  padding-block: 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ts-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ts-topbar-left, .ts-topbar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.ts-topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  transition: color 0.2s;
}

.ts-topbar-item:hover {
  color: #ffffff;
}

.ts-topbar-badge {
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.75rem;
}

.ts-lang-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s;
}

.ts-lang-btn:hover {
  background: var(--school-accent);
  color: #000000;
  border-color: var(--school-accent);
}

.ts-login-pill {
  background: var(--school-primary);
  color: #ffffff !important;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.ts-login-pill:hover,
.ts-login-pill.active {
  background: var(--school-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  color: #ffffff !important;
}

/* Portal Login Dropdown (Topbar) */
.ts-login-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.ts-portal-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: #ffffff;
  color: #0f172a;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18), 0 2px 8px rgba(15, 23, 42, 0.08);
  border: 1.5px solid #e2e8f0;
  padding: 0.65rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 500;
  text-align: left;
}

.ts-login-dropdown-wrap:hover .ts-portal-dropdown-menu,
.ts-login-dropdown-wrap:focus-within .ts-portal-dropdown-menu,
.ts-portal-dropdown-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.ts-portal-menu-header {
  padding: 0.6rem 0.85rem 0.5rem;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 0.4rem;
}
.ts-portal-menu-header strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e3a8a;
  letter-spacing: -0.01em;
}
.ts-portal-menu-header small {
  display: block;
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.ts-portal-menu-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 9px;
  text-decoration: none !important;
  color: #1e293b !important;
  transition: all 0.16s ease;
}
.ts-portal-menu-item:hover {
  background: #f1f5f9;
  transform: translateX(3px);
}
.ts-portal-menu-item b {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
  color: #0f172a;
}
.ts-portal-menu-item small {
  display: block;
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 2px;
}
.ts-p-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 17px;
}
.ts-p-icon.std { background: #ede9fe; color: #7c3aed; }
.ts-p-icon.grd { background: #cffafe; color: #0891b2; }
.ts-p-icon.tch { background: #dcfce7; color: #16a34a; }
.ts-p-icon.adm { background: #dbeafe; color: #1e3a8a; }

/* Logged-In User Badge in Topbar */
.ts-user-logged-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.ts-logout-mini-btn {
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.16s ease;
  padding: 0;
}
.ts-logout-mini-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
  transform: scale(1.08);
}

/* Main Navigation Bar Portal Item */
.ts-nav-portal-item .ts-nav-link {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.ts-nav-portal-item .ts-nav-link:hover {
  background: rgba(255, 255, 255, 0.25);
}
.ts-portal-nav-dropdown {
  min-width: 290px !important;
}

/* Homepage Sidebar: Portal Login Widget */
.ts-portal-login-widget {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  margin-bottom: 1.5rem;
}
.ts-portal-widget-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ts-portal-widget-header i {
  font-size: 22px;
  color: #fde047;
}
.ts-portal-widget-header h3 {
  font-size: 1.15rem;
  font-weight: 850;
  margin: 0;
  color: #ffffff;
}
.ts-portal-widget-header p {
  font-size: 0.85rem;
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.88);
}
.ts-portal-widget-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.ts-portal-card-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.85rem 1rem;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 11px;
  text-decoration: none !important;
  color: #1e293b !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: all 0.18s ease;
}
.ts-portal-card-btn:hover {
  border-color: #2563eb;
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.1);
}
.ts-portal-card-btn .btn-arrow {
  margin-left: auto;
  color: #94a3b8;
  font-size: 14px;
  transition: transform 0.18s ease, color 0.18s ease;
}
.ts-portal-card-btn:hover .btn-arrow {
  color: #2563eb;
  transform: translateX(3px);
}

/* Header & Branding */
.ts-header {
  background: #ffffff;
  border-bottom: 2px solid var(--school-border);
  padding-block: 1rem;
  position: relative;
}

.ts-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.ts-brand-group {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  text-decoration: none;
}

.ts-brand-logo {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 2px solid var(--school-border);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  background: #f1f5f9;
}

.ts-brand-text h1 {
  font-size: clamp(1.45rem, 1.2rem + 1.4vw, 2.35rem);
  font-weight: 900;
  color: #0f172a;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.ts-brand-text .ts-subname {
  font-size: clamp(0.98rem, 0.9rem + 0.3vw, 1.15rem);
  color: var(--school-secondary);
  font-weight: 700;
  margin-top: 0.2rem;
}

.ts-brand-text .ts-slogan {
  font-size: 0.95rem;
  color: var(--school-text-muted);
  margin-top: 0.25rem;
  font-weight: 500;
  font-style: normal;
}

.ts-gov-emblem {
  display: none;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 992px) {
  .ts-gov-emblem {
    display: flex;
  }
}

.ts-emblem-badge {
  text-align: right;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--school-text-muted);
}

.ts-emblem-badge strong {
  color: #0f172a;
  display: block;
  font-size: 0.95rem;
}

.ts-emblem-img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

/* Sticky Navigation Bar */
.ts-nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--school-primary);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
  backdrop-filter: blur(8px);
  width: 100%;
}

.ts-nav-wrapper .ts-container {
  max-width: 100%;
  width: 100%;
  padding-inline: clamp(0.75rem, 1.5vw, 2rem);
}

.ts-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 50px;
}

.ts-nav-list {
  display: none;
  list-style: none;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  width: 100%;
}

@media (min-width: 1024px) {
  .ts-nav-list {
    display: flex;
  }
}

.ts-nav-item {
  position: relative;
  flex-shrink: 0;
}

.ts-nav-portal-item {
  margin-left: auto;
}

.ts-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.72rem clamp(0.42rem, 0.55vw, 0.85rem);
  color: #ffffff;
  font-weight: 700;
  font-size: clamp(0.85rem, 0.78rem + 0.16vw, 0.95rem);
  transition: all 0.18s ease;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  line-height: 1.25;
  text-decoration: none !important;
}

.ts-nav-link i {
  font-size: 0.88rem;
  opacity: 0.92;
}

.ts-nav-link:hover, .ts-nav-link.active {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.ts-nav-link.highlight {
  background: var(--school-accent);
  color: #000000;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
  border-radius: 999px;
  padding-inline: clamp(0.6rem, 0.7vw, 1rem);
}

.ts-nav-link.highlight:hover {
  background: var(--school-accent-hover);
  color: #000000;
}

/* Dropdown */
.ts-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #ffffff;
  color: var(--school-text);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--school-border);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: all 0.22s ease;
  z-index: 250;
}

.ts-nav-item:hover .ts-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Align rightmost dropdowns inward to avoid overflowing viewport */
.ts-nav-item:last-child .ts-dropdown,
.ts-nav-item:nth-last-child(2) .ts-dropdown,
.ts-portal-nav-dropdown {
  left: auto !important;
  right: 0 !important;
}

.ts-dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--school-text);
  transition: all 0.15s;
  text-decoration: none !important;
}

.ts-dropdown-link:hover {
  background: var(--school-primary-light);
  color: var(--school-primary-dark);
}

.ts-dropdown-link i {
  color: var(--school-primary);
  width: 16px;
}

/* Mobile Hamburger Toggle */
.ts-mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .ts-mobile-toggle {
    display: none;
  }
}

.ts-mobile-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  .ts-mobile-title {
    display: none;
  }
}

/* Responsive adjustment between 1024px and 1240px: hide secondary decorative icons so text never clips */
@media (min-width: 1024px) and (max-width: 1240px) {
  .ts-nav-link {
    padding: 0.65rem 0.42rem;
    font-size: 0.84rem;
    gap: 0.22rem;
  }
  .ts-nav-link i:not(.fa-house):not(.fa-chevron-down):not(.fa-bolt):not(.fa-circle-user) {
    display: none;
  }
}

/* Mobile Offcanvas Drawer */
.ts-drawer {
  position: fixed;
  inset: 0;
  z-index: 999;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0.3s;
}

.ts-drawer.open {
  visibility: visible;
  pointer-events: auto;
}

@media (min-width: 1024px) {
  .ts-drawer {
    display: none !important;
  }
}

.ts-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ts-drawer.open .ts-drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.ts-drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(85vw, 340px);
  background: #ffffff;
  box-shadow: var(--shadow-xl);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  pointer-events: auto;
}

.ts-drawer.open .ts-drawer-panel {
  transform: translateX(0);
}

.ts-drawer-head {
  padding: 1.25rem;
  background: var(--school-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ts-drawer-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-content: center;
  font-size: 1.2rem;
}

.ts-drawer-menu {
  list-style: none;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ts-drawer-item a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--school-text);
  font-size: 0.95rem;
}

.ts-drawer-item a:hover {
  background: var(--school-primary-light);
  color: var(--school-primary-dark);
}

/* Breaking Notice Ticker */
.ts-ticker {
  background: #ffffff;
  border-bottom: 2px solid var(--school-border);
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 48px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ts-ticker-label {
  background: #dc2626;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.98rem;
  padding: 0 1.25rem;
  height: 100%;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 2px 0 8px rgba(220, 38, 38, 0.25);
  letter-spacing: 0.01em;
}

.ts-ticker-content {
  flex-grow: 1;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  display: flex;
  align-items: center;
  padding-inline: 1.25rem;
}

.ts-ticker-track {
  display: inline-flex;
  gap: 3.5rem;
  animation: marquee 30s linear infinite;
}

.ts-ticker-content:hover .ts-ticker-track {
  animation-play-state: paused;
}

.ts-ticker-track a, .ts-ticker-content a {
  font-size: 1.05rem;
  color: #1e293b;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.ts-ticker-track a:hover, .ts-ticker-content a:hover {
  color: var(--school-primary);
  text-decoration: underline;
}

.ts-ticker-more {
  padding: 0 1.15rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--school-primary);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 100%;
  border-left: 1px solid var(--school-border);
  background: #f8fafc;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.ts-ticker-more:hover {
  background: #f1f5f9;
  text-decoration: underline;
}

@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

/* Hero Carousel Section */
.ts-hero-slider {
  position: relative;
  background: #0f172a;
  overflow: hidden;
  min-height: 420px;
  max-height: 520px;
}

@media (min-width: 992px) {
  .ts-hero-slider {
    height: 480px;
  }
}

.ts-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, transform 1s ease-in-out;
  transform: scale(1.04);
}

.ts-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.ts-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65);
}

.ts-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.85) 100%);
  display: flex;
  align-items: center;
}

.ts-slide-content {
  color: #ffffff;
  max-width: 800px;
  padding-inline: 1rem;
}

.ts-slide-badge {
  display: inline-block;
  background: var(--school-accent);
  color: #000000;
  font-weight: 800;
  font-size: 0.775rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ts-slide-title {
  font-size: clamp(1.4rem, 1.2rem + 2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.ts-slide-subtitle {
  font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.2rem);
  color: #cbd5e1;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.ts-slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--school-accent);
  color: #000000;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
  transition: all 0.2s;
}

.ts-slide-btn:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.ts-slider-controls {
  position: absolute;
  bottom: 1.25rem;
  right: 2rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.ts-slider-btn {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-content: center;
  font-size: 1rem;
  transition: all 0.2s;
}

.ts-slider-btn:hover {
  background: var(--school-primary);
  border-color: var(--school-primary);
}

/* Quick Action Cards Bar */
.ts-quick-strip {
  margin-top: -2.5rem;
  position: relative;
  z-index: 20;
  margin-bottom: 2rem;
}

.ts-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.ts-quick-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--school-border);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.ts-quick-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--school-primary);
}

.ts-quick-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: grid;
  place-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.ts-quick-icon.teal { background: #ccfbf1; color: #0f766e; }
.ts-quick-icon.amber { background: #fef3c7; color: #d97706; }
.ts-quick-icon.blue { background: #e0f2fe; color: #0284c7; }
.ts-quick-icon.rose { background: #ffe4e6; color: #e11d48; }

.ts-quick-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.ts-quick-desc {
  font-size: 0.8rem;
  color: var(--school-text-muted);
  margin-top: 0.2rem;
}

/* Main Layout Grid */
.ts-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  margin-block: 1.5rem 3rem;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 992px) {
  .ts-main-grid {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    gap: 1.75rem;
  }
}

.ts-main-col,
.ts-sidebar-col {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

/* Content Cards & Sections */
.ts-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--school-border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.75rem;
  overflow: hidden;
  transition: box-shadow 0.2s;
  min-width: 0;
  max-width: 100%;
}

.ts-card-body {
  padding: 1.25rem;
  min-width: 0;
  max-width: 100%;
  word-break: normal;
  overflow-wrap: break-word;
}

@media (min-width: 768px) {
  .ts-card-body {
    padding: 1.5rem;
  }
}

.ts-card:hover {
  box-shadow: var(--shadow-md);
}

.ts-card-header {
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--school-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ts-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ts-card-title i {
  color: var(--school-primary);
}

.ts-card-link {
  font-size: 1rem;
  font-weight: 700;
  color: var(--school-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ts-card-link:hover {
  text-decoration: underline;
}

.ts-card-body {
  padding: 1.35rem;
}

/* Notice Board List */
.ts-notice-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.ts-notice-item {
  padding: 1.1rem 0;
  border-bottom: 1.5px dashed var(--school-border);
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  transition: background 0.15s;
}

.ts-notice-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ts-notice-item:first-child {
  padding-top: 0;
}

.ts-notice-date {
  background: #f1f5f9;
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  text-align: center;
  min-width: 75px;
  flex-shrink: 0;
  border: 1.5px solid var(--school-border);
}

.ts-notice-date .day {
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--school-primary);
  line-height: 1;
}

.ts-notice-date .month {
  font-size: 0.85rem;
  color: var(--school-text-muted);
  font-weight: 800;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.ts-notice-text {
  flex-grow: 1;
}

.ts-notice-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.5;
  margin-bottom: 0.35rem;
  display: block;
}

.ts-notice-title:hover {
  color: var(--school-primary);
  text-decoration: underline;
}

.ts-notice-meta {
  font-size: 0.95rem;
  color: var(--school-text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-weight: 500;
}

/* E-Services Section Cards */
.ts-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.ts-service-card {
  background: #f8fafc;
  border: 1.5px solid var(--school-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  gap: 1.15rem;
  transition: all 0.2s;
  text-decoration: none;
}

.ts-service-card:hover {
  background: #ffffff;
  border-color: var(--school-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.ts-service-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.ts-service-card:hover .ts-service-icon-box {
  transform: scale(1.08);
}

.ts-service-icon-box.blue { background: #eff6ff; color: #1e40af; border: 1.5px solid #bfdbfe; }
.ts-service-icon-box.teal { background: #f0fdfa; color: #0f766e; border: 1.5px solid #99f6e4; }
.ts-service-icon-box.indigo { background: #eef2ff; color: #4338ca; border: 1.5px solid #c7d2fe; }
.ts-service-icon-box.amber { background: #fef3c7; color: #b45309; border: 1.5px solid #fde68a; }
.ts-service-icon-box.emerald { background: #ecfdf5; color: #047857; border: 1.5px solid #a7f3d0; }
.ts-service-icon-box.purple { background: #faf5ff; color: #7e22ce; border: 1.5px solid #e9d5ff; }

.ts-service-content h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.45rem;
}

.ts-service-bullets {
  list-style: none;
  font-size: 0.98rem;
  color: #334155;
  line-height: 1.6;
}

.ts-service-bullets li {
  position: relative;
  padding-left: 0.95rem;
  margin-bottom: 0.35rem;
}

.ts-service-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--school-primary);
  font-weight: bold;
}

.ts-service-bullets li a {
  color: #1e293b;
  font-weight: 600;
}

.ts-service-bullets li a:hover {
  color: var(--school-primary);
  text-decoration: underline;
}

/* Formal Dignified Principal Avatar Fallback */
.ts-principal-formal-avatar {
  width: 140px;
  height: 160px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  border: 3px solid var(--school-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--school-primary);
  font-size: 56px;
  margin: 0 auto 1.15rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.ts-avatar-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--school-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
}

/* Government & Important Educational Links Widget */
.ts-gov-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
}

.ts-gov-links-list li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.95rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  transition: all 0.15s ease;
}

.ts-gov-links-list li a:hover {
  background: #ffffff;
  border-color: var(--school-primary);
  color: var(--school-primary);
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ts-gov-links-list li a i {
  color: var(--school-primary);
  font-size: 14px;
  flex-shrink: 0;
}

/* Academic Trades Grid */
.ts-trades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.ts-trade-card {
  border: 1px solid var(--school-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  background: #ffffff;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.ts-trade-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--school-primary);
}

.ts-trade-card:hover {
  border-color: var(--school-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.ts-trade-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.ts-trade-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--school-primary-light);
  color: var(--school-primary-dark);
  display: grid;
  place-content: center;
  font-size: 1.25rem;
}

.ts-trade-code {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--school-secondary);
  background: #e0f2fe;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.ts-trade-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.4rem;
}

.ts-trade-desc {
  font-size: 0.825rem;
  color: var(--school-text-muted);
  line-height: 1.5;
}

/* Stats Counter Section */
.ts-stats-strip {
  background: linear-gradient(135deg, var(--school-primary-dark) 0%, var(--school-secondary-dark) 100%);
  color: #ffffff;
  padding-block: 2.5rem;
  border-radius: var(--radius-xl);
  margin-block: 2rem;
  box-shadow: var(--shadow-lg);
}

.ts-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .ts-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ts-stat-item {
  text-align: center;
  padding-inline: 1rem;
}

.ts-stat-number {
  font-size: clamp(1.8rem, 1.5rem + 1.5vw, 2.75rem);
  font-weight: 800;
  color: var(--school-accent);
  line-height: 1;
  font-family: var(--font-en);
}

.ts-stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-top: 0.5rem;
}

/* Gallery Photo & Video */
.ts-gallery-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--school-border);
  padding-bottom: 0.5rem;
}

.ts-gallery-tab-btn {
  background: transparent;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--school-text-muted);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.ts-gallery-tab-btn.active {
  background: var(--school-primary);
  color: #ffffff;
}

.ts-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.ts-gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.ts-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ts-gallery-item:hover img {
  transform: scale(1.08);
}

.ts-gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
  padding: 0.75rem;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Sidebar Specific Widgets */
.ts-principal-card {
  text-align: center;
}

.ts-principal-img-wrap {
  width: 140px;
  height: 155px;
  margin: 0 auto 1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 3px solid var(--school-primary);
  box-shadow: var(--shadow-md);
  background: #f1f5f9;
}

.ts-principal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ts-principal-name {
  font-size: 1.35rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.ts-principal-role {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--school-primary);
  margin-bottom: 0.95rem;
}

.ts-principal-excerpt {
  font-size: 1.02rem;
  color: #334155;
  line-height: 1.72;
  text-align: justify;
  margin-bottom: 1rem;
  background: #f8fafc;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--school-primary);
}

/* National Anthem Audio Box */
.ts-anthem-box {
  background: linear-gradient(135deg, #065f46 0%, #047857 100%);
  color: #ffffff;
  padding: 1.15rem;
  border-radius: var(--radius-md);
}

.ts-anthem-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.ts-audio-player {
  width: 100%;
  height: 38px;
  border-radius: 9999px;
  outline: none;
}

/* Emergency Hotlines Box */
.ts-hotline-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.ts-hotline-card {
  background: #f8fafc;
  border: 1px solid var(--school-border);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  text-align: center;
  transition: all 0.2s;
}

.ts-hotline-card:hover {
  background: #ffffff;
  border-color: var(--school-danger);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.ts-hotline-number {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--school-danger);
  font-family: var(--font-en);
}

.ts-hotline-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  margin-top: 0.15rem;
}

/* Quick Search Cards (Result & Fee) */
.ts-quick-search-box {
  background: #f8fafc;
  border: 1px solid var(--school-border);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.ts-input-group {
  margin-bottom: 0.75rem;
}

.ts-input-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.25rem;
}

.ts-form-control {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--school-border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #ffffff;
}

.ts-form-control:focus {
  outline: none;
  border-color: var(--school-primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.ts-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 1rem;
  background: var(--school-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.ts-btn-primary:hover {
  background: var(--school-primary-dark);
}

.ts-btn-amber {
  background: var(--school-accent);
  color: #000000;
}

.ts-btn-amber:hover {
  background: var(--school-accent-hover);
}

/* Modern Native Dialog (Modal) - Following modern-web-guidance */
dialog.ts-modal {
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: min(92vw, 680px);
  width: 100%;
  margin: auto;
  padding: 0;
  background: #ffffff;
  color: var(--school-text);
  overscroll-behavior: contain;
}

dialog.ts-modal::backdrop {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.ts-modal-head {
  padding: 1.25rem 1.5rem;
  background: var(--school-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ts-modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ts-modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-content: center;
  font-size: 1.1rem;
}

.ts-modal-body {
  padding: 1.5rem;
  max-height: 75vh;
  overflow-y: auto;
}

/* Footer Section */
.ts-footer {
  background: #0b1329;
  color: #94a3b8;
  padding-block: 3.5rem 1.5rem;
  border-top: 4px solid var(--school-primary);
}

.ts-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.ts-footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.15rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.ts-footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--school-accent);
}

.ts-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.875rem;
}

.ts-footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.ts-social-row {
  display: flex;
  gap: 0.65rem;
  margin-top: 1rem;
}

.ts-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-content: center;
  color: #cbd5e1;
  font-size: 1rem;
  transition: all 0.2s;
}

.ts-social-btn:hover {
  background: var(--school-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.ts-footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
}

/* Marksheet Result Card Styling */
.ts-marksheet-card {
  border: 2px solid var(--school-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  background: #ffffff;
  box-shadow: var(--shadow-md);
  margin-top: 1.5rem;
}

.ts-marksheet-header {
  text-align: center;
  border-bottom: 2px solid var(--school-primary);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.ts-marksheet-table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 1rem;
  font-size: 0.875rem;
}

.ts-marksheet-table th, .ts-marksheet-table td {
  border: 1px solid var(--school-border);
  padding: 0.65rem 0.85rem;
  text-align: center;
}

.ts-marksheet-table th {
  background: #f1f5f9;
  font-weight: 700;
  color: #1e293b;
}

/* Responsive Table Wrapper */
.ts-table-responsive-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-block: 0.75rem;
  box-sizing: border-box;
}

.ts-table-responsive-wrapper .ts-marksheet-table {
  min-width: 600px;
  margin-block: 0;
}

.ts-table-scroll-hint {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 0.65rem;
  background: #f1f5f9;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  width: fit-content;
  max-width: 100%;
}

@media (max-width: 768px) {
  .ts-table-scroll-hint {
    display: inline-flex;
  }
}

/* Responsive Principal Header */
.ts-about-principal-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

@media (max-width: 640px) {
  .ts-about-principal-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
  .ts-about-principal-header .ts-about-principal-img-wrap,
  .ts-about-principal-header .ts-principal-formal-avatar {
    margin: 0 auto;
  }
  .ts-about-meta-list {
    justify-content: center !important;
  }
}

/* Responsive Quick Facts List */
.ts-quick-facts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ts-quick-facts-item {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--school-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}

.ts-quick-facts-item:last-child {
  border-bottom: none;
}

.ts-quick-facts-label {
  color: #64748b;
  font-size: 0.92rem;
  flex-shrink: 0;
}

.ts-quick-facts-val {
  font-weight: 700;
  font-size: 0.95rem;
  text-align: right;
  word-break: break-word;
  max-width: 100%;
}

/* Floating Accessibility & Go To Top */
.ts-floating-actions {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  z-index: 90;
  pointer-events: none;
}

.ts-floating-actions .ts-fab {
  pointer-events: auto;
}

@media (max-width: 480px) {
  .ts-floating-actions {
    bottom: 1rem;
    right: 0.75rem;
    gap: 0.5rem;
  }
  .ts-fab {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
    opacity: 0.88;
  }
  .ts-fab:hover {
    opacity: 1;
  }
}

.ts-fab {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--school-primary);
  color: #ffffff;
  border: none;
  box-shadow: var(--shadow-lg);
  display: grid;
  place-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ts-fab:hover {
  transform: scale(1.1);
  background: var(--school-primary-dark);
}

/* Anchor Scroll Offset & Smooth Scroll */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

:target {
  scroll-margin-top: 85px;
}

/* Print Optimization */
@media print {
  .ts-topbar, .ts-nav-wrapper, .ts-ticker, .ts-floating-actions, .ts-footer, .no-print {
    display: none !important;
  }
  body {
    background: #ffffff;
    color: #000000;
  }
}

/* Full Mobile & Tablet Responsive Enhancements */
.ts-table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .ts-topbar {
    padding-block: 0.35rem;
    font-size: 0.8rem;
  }
  .ts-topbar-inner {
    justify-content: center;
    gap: 0.45rem;
  }
  .ts-topbar-left, .ts-topbar-right {
    justify-content: center;
    gap: 0.65rem;
  }
  .ts-topbar-item {
    font-size: 0.8rem;
  }
  .ts-login-pill {
    padding: 0.25rem 0.65rem;
    font-size: 0.82rem;
  }
  .ts-header {
    padding-block: 0.75rem;
  }
  .ts-brand-group {
    gap: 0.75rem;
    max-width: 100%;
  }
  .ts-brand-logo {
    width: 52px;
    height: 52px;
  }
  .ts-brand-text h1 {
    font-size: clamp(1.15rem, 4.5vw, 1.45rem);
    line-height: 1.25;
    word-break: break-word;
  }
  .ts-brand-text .ts-subname {
    font-size: 0.86rem;
  }
  .ts-brand-text .ts-slogan {
    font-size: 0.8rem;
  }
  .ts-ticker-label {
    padding: 0 0.65rem;
    font-size: 0.82rem;
  }
  .ts-ticker-more {
    padding: 0 0.65rem;
    font-size: 0.8rem;
  }
  .ts-floating-actions {
    bottom: 1rem;
    right: 1rem;
  }
  .ts-fab {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}


