/* Custom Enhancements for School Evolution Blog */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-serif {
  font-family: var(--font-serif);
}

/* Smooth reading progress bar */
#reading-progress {
  transform-origin: left;
  transition: width 0.1s ease-out;
}

/* Glassmorphism effects */
.glass-nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Line clamp helpers */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hide scrollbar utility for pills and tags */
.scrollbar-none::-webkit-scrollbar,
.no-scrollbar::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.scrollbar-none,
.no-scrollbar {
  -ms-overflow-style: none !important;
  /* IE and Edge */
  scrollbar-width: none !important;
  /* Firefox */
}


/* Soft Ultra-Thin Horizontal Scrollbar for Category Pills */
.soft-thin-scroll {
  overflow-x: auto !important;
  scrollbar-width: thin !important;
  scrollbar-color: #c7d2fe #f1f5f9;
  padding-bottom: 7px;
}

.soft-thin-scroll::-webkit-scrollbar {
  height: 3px !important;
  display: block !important;
}

.soft-thin-scroll::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 9999px;
  margin: 0 4px;
}

.soft-thin-scroll::-webkit-scrollbar-thumb {
  background: #c7d2fe;
  border-radius: 9999px;
  transition: background 0.2s ease;
}

.soft-thin-scroll::-webkit-scrollbar-thumb:hover {
  background: #6366f1;
}

/* Ultra-thin sleek scrollbar for specific containers */
.thin-scrollbar::-webkit-scrollbar {
  height: 3px;
  width: 3px;
}

.thin-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.thin-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

.thin-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Global scrollbar: Ultra-thin, clean and subtle */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Article Typography Enhancement */
.article-body h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-body h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: #1e293b;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-body p {
  color: #334155;
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.article-body blockquote {
  border-left: 4px solid #4f46e5;
  padding-left: 1.25rem;
  font-style: italic;
  color: #4338ca;
  background-color: #eef2ff;
  padding: 1rem 1.25rem;
  border-radius: 0 0.5rem 0.5rem 0;
  margin: 1.75rem 0;
}

.article-body ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: #334155;
}

.article-body ul li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

/* Badge hover transition */
.category-pill {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-pill:hover {
  transform: translateY(-2px);
}

/* Card hover animation */
.blog-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}