/* Minimal utility shim to replace Tailwind on education page */
html, body { box-sizing: border-box; width:100%; max-width:100%; overflow-x:hidden; }
*, *::before, *::after { box-sizing: inherit; }
img, video, iframe { max-width:100%; height:auto; display:block; }
/* Prevent accidental wide tables or code blocks */
table { width:100%; border-collapse:collapse; }
pre { overflow-x:auto; }

/* Layout containers */
.container { width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Display utilities */
.hidden { display: none !important; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; gap: 1.5rem; }
/* Grid gaps */
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* Flex alignment */
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }

/* Spacing */
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.mt-16 { margin-top: 4rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-12 { margin-top: 3rem; }
.mt-8 { margin-top: 2rem; }
.mt-4 { margin-top: 1rem; }
.pb-4 { padding-bottom: 1rem; }

/* Gaps */
/* moved above with grid */

/* Text */
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.font-bold { font-weight: 700; }
.opacity-90 { opacity: .9; }
.text-white { color: #ffffff; }
.text-gray-800 { color: #1f2937; }
.text-gray-600 { color: #4b5563; }
.text-gray-400 { color: #9ca3af; }
.text-gray-300 { color: #d1d5db; }

/* Width / Height */
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }

/* Radius */
.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }

/* Positioning / z-index */
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-50 { z-index: 50; }

/* Shadows */
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }

/* Backdrop */
.backdrop-blur-md { backdrop-filter: blur(12px); }

/* Background colors */
.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-800 { background-color: #1f2937; }
.bg-gray-900 { background-color: #111827; }
.bg-white\/95 { background-color: rgba(255,255,255,.95); }
.bg-gray-900\/95 { background-color: rgba(17,24,39,.95); }

/* Text colors (dark mode variants via .dark parent) */
.dark .text-white { color: #ffffff; }
.dark .text-gray-300 { color: #d1d5db; }
.dark .text-gray-400 { color: #9ca3af; }
.dark .text-gray-800 { color: #1f2937; }

/* Border utilities */
.border { border-width: 1px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-700 { border-color: #374151; }

/* Margins */
.mr-2 { margin-right: 0.5rem; }

/* Space between children (vertical) */
.space-y-2 > * + * { margin-top: .5rem; }

/* Space between children (horizontal) */
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }

/* Responsive breakpoints */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
}
@media (min-width: 768px) {
  .md\:hidden { display: none !important; }
  .md\:flex { display: flex; }
  .md\:block { display: block !important; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Extra small devices tweaks (Pixel 7 width ~412px logical) */
@media (max-width: 480px) {
  .text-6xl { font-size: 2.5rem; line-height: 1.1; }
  .text-4xl { font-size: 1.875rem; line-height: 2.1rem; }
  .py-16 { padding-top: 3rem; padding-bottom: 3rem; }
  .grid { gap: 1.25rem; }
  .btn-lg { width:100%; display:flex; }
  .space-x-6 > * + * { margin-left: 1rem; }
  .portfolio-image { height: 9rem; }
}
