/*! University Learning Store — design system bundle
    Mirrors the shadcn/Tailwind tokens used by the Figma source. Class
    names match the React JSX so HTML and the WP child theme share the
    same stylesheet 1:1. */

/* ============================================================
   THEME TOKENS — taken verbatim from src/styles/theme.css
   ============================================================ */
:root {
  --font-size: 16px;

  --background: #ffffff;
  --foreground: oklch(0.145 0 0);
  --card: #ffffff;
  --card-foreground: oklch(0.145 0 0);
  --primary: #030213;
  --primary-foreground: #ffffff;
  --secondary: oklch(0.95 0.0058 264.53);
  --secondary-foreground: #030213;
  --muted: #ececf0;
  --muted-foreground: #717182;
  --accent: #e9ebef;
  --accent-foreground: #030213;
  --destructive: #d4183d;
  --destructive-foreground: #ffffff;
  --border: rgba(0, 0, 0, 0.1);
  --input: transparent;
  --input-background: #f3f3f5;
  --switch-background: #cbced4;
  --ring: oklch(0.708 0 0);
  --radius: 0.625rem;
  --font-weight-medium: 500;
  --font-weight-normal: 400;
}

/* category icon palette (light tint + 600 text) — used by category cards */
.bg-blue-500\/10   { background-color: rgb(59 130 246 / 0.10); }
.bg-purple-500\/10 { background-color: rgb(168  85 247 / 0.10); }
.bg-pink-500\/10   { background-color: rgb(236  72 153 / 0.10); }
.bg-green-500\/10  { background-color: rgb( 34 197  94 / 0.10); }
.bg-orange-500\/10 { background-color: rgb(249 115  22 / 0.10); }
.bg-cyan-500\/10   { background-color: rgb(  6 182 212 / 0.10); }
.bg-yellow-500\/10 { background-color: rgb(234 179   8 / 0.10); }
.bg-indigo-500\/10 { background-color: rgb( 99 102 241 / 0.10); }
.bg-teal-500\/10   { background-color: rgb( 20 184 166 / 0.10); }
.bg-rose-500\/10   { background-color: rgb(244  63  94 / 0.10); }
.text-blue-600   { color: #2563eb; }
.text-purple-600 { color: #9333ea; }
.text-pink-600   { color: #db2777; }
.text-green-600  { color: #16a34a; }
.text-orange-600 { color: #ea580c; }
.text-cyan-600   { color: #0891b2; }
.text-yellow-600 { color: #ca8a04; }
.text-indigo-600 { color: #4f46e5; }
.text-teal-600   { color: #0d9488; }
.text-rose-600   { color: #e11d48; }

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; border: 0 solid var(--border); margin: 0; padding: 0; }
html { font-size: var(--font-size); -webkit-text-size-adjust: 100%; tab-size: 4; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--background); color: var(--foreground); line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { background: none; cursor: pointer; font: inherit; color: inherit; border: 0; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* Default heading sizes — match theme.css @layer base (medium weight) */
h1 { font-size: 1.5rem;  font-weight: 500; line-height: 1.5; }
h2 { font-size: 1.25rem; font-weight: 500; line-height: 1.5; }
h3 { font-size: 1.125rem;font-weight: 500; line-height: 1.5; }
h4 { font-size: 1rem;    font-weight: 500; line-height: 1.5; }
label, button, input { font-size: 1rem; font-weight: 500; line-height: 1.5; }
input { font-weight: 400; }

.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

/* ============================================================
   LAYOUT UTILITIES (Tailwind-compatible names used by the design)
   ============================================================ */
.min-h-screen { min-height: 100vh; }
.min-h-\[70vh\] { min-height: 70vh; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.inline-block { display: inline-block; }
.block { display: block; }
.grid { display: grid; }
.hidden { display: none; }
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.text-center { text-align: center; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { inset: 0; }
.top-0 { top: 0; }
.-bottom-6 { bottom: -1.5rem; }
.-right-6 { right: -1.5rem; }
.-top-6 { top: -1.5rem; }
.-left-6 { left: -1.5rem; }
.z-50 { z-index: 50; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

.w-2 { width: 0.5rem; }   .h-2 { height: 0.5rem; }
.w-3 { width: 0.75rem; }  .h-3 { height: 0.75rem; }
.w-4 { width: 1rem; }     .h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }  .h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; }   .h-6 { height: 1.5rem; }
.w-8 { width: 2rem; }     .h-8 { height: 2rem; }
.w-12 { width: 3rem; }    .h-12 { height: 3rem; }
.w-16 { width: 4rem; }    .h-16 { height: 4rem; }
.w-32 { width: 8rem; }    .h-32 { height: 8rem; }
.w-48 { width: 12rem; }   .h-48 { height: 12rem; }
.w-64 { width: 16rem; }
.w-96 { width: 24rem; }   .h-96 { height: 24rem; }
.h-10 { height: 2.5rem; }
.h-16 { height: 4rem; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.aspect-video { aspect-ratio: 16 / 9; }
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-\[4\/3\] { aspect-ratio: 4 / 3; }
.aspect-\[21\/9\] { aspect-ratio: 21 / 9; }
.max-w-md  { max-width: 28rem; }
.max-w-lg  { max-width: 32rem; }
.max-w-xl  { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-none { max-width: none; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Spacing */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

.p-2  { padding: 0.5rem; }
.p-4  { padding: 1rem; }
.p-5  { padding: 1.25rem; }
.p-6  { padding: 1.5rem; }
.p-8  { padding: 2rem; }
.p-12 { padding: 3rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1   { padding-top: 0.25rem;  padding-bottom: 0.25rem; }
.py-1\.5{ padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2   { padding-top: 0.5rem;   padding-bottom: 0.5rem; }
.py-3   { padding-top: 0.75rem;  padding-bottom: 0.75rem; }
.py-8   { padding-top: 2rem;     padding-bottom: 2rem; }
.py-12  { padding-top: 3rem;     padding-bottom: 3rem; }
.py-16  { padding-top: 4rem;     padding-bottom: 4rem; }
.pt-3   { padding-top: 0.75rem; }
.pt-4   { padding-top: 1rem; }
.pt-8   { padding-top: 2rem; }
.pt-10  { padding-top: 2.5rem; }
.pb-4   { padding-bottom: 1rem; }
.pl-4   { padding-left: 1rem; }

.mt-0\.5{ margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-8 { margin-top: 2rem; }
.mt-10{ margin-top: 2.5rem; }
.mt-12{ margin-top: 3rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12{ margin-bottom: 3rem; }
.mb-16{ margin-bottom: 4rem; }
.ml-6 { margin-left: 1.5rem; }

/* Grid */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.col-span-1 { grid-column: span 1 / span 1; }
.row-span-2 { grid-row: span 2 / span 2; }

/* Typography */
.text-xs   { font-size: 0.75rem;  line-height: 1rem; }
.text-sm   { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem;     line-height: 1.5rem; }
.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-5xl  { font-size: 3rem;     line-height: 1.1; }
.text-6xl  { font-size: 3.75rem;  line-height: 1.05; }
.text-9xl  { font-size: 8rem;     line-height: 1; }
.font-normal   { font-weight: 400; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.leading-tight    { line-height: 1.15; }
.leading-snug     { line-height: 1.375; }
.leading-relaxed  { line-height: 1.625; }
.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; }

/* Colors */
.text-foreground         { color: var(--foreground); }
.text-muted-foreground   { color: var(--muted-foreground); }
.text-primary            { color: var(--primary); }
.text-primary-foreground { color: var(--primary-foreground); }
.text-accent-foreground  { color: var(--accent-foreground); }

.bg-background     { background-color: var(--background); }
.bg-card           { background-color: var(--card); }
.bg-primary        { background-color: var(--primary); }
.bg-accent         { background-color: var(--accent); }
.bg-muted          { background-color: var(--muted); }
.bg-input-background { background-color: var(--input-background); }
.bg-primary\/5  { background-color: rgb(3 2 19 / 0.05); }
.bg-primary\/10 { background-color: rgb(3 2 19 / 0.10); }
.bg-primary\/20 { background-color: rgb(3 2 19 / 0.20); }
.bg-accent\/20  { background-color: rgb(233 235 239 / 0.20); }
.bg-accent\/30  { background-color: rgb(233 235 239 / 0.30); }
.bg-accent\/50  { background-color: rgb(233 235 239 / 0.50); }
.bg-muted\/30   { background-color: rgb(236 236 240 / 0.30); }
.bg-black\/50   { background-color: rgb(0 0 0 / 0.50); }

.opacity-80 { opacity: 0.80; }
.opacity-90 { opacity: 0.90; }
.opacity-100 { opacity: 1; }
.opacity-50 { opacity: 0.50; }

.border          { border-width: 1px; }
.border-2        { border-width: 2px; }
.border-t        { border-top-width: 1px; }
.border-b        { border-bottom-width: 1px; }
.border-dashed   { border-style: dashed; }
.border-border   { border-color: var(--border); }
.border-primary  { border-color: var(--primary); }
.border-primary\/50 { border-color: rgb(3 2 19 / 0.50); }
.border-primary-foreground\/10 { border-color: rgb(255 255 255 / 0.10); }

.rounded-md   { border-radius: calc(var(--radius) - 2px); }
.rounded-lg   { border-radius: var(--radius); }
.rounded-xl   { border-radius: calc(var(--radius) + 4px); }
.rounded-2xl  { border-radius: 1rem; }
.rounded-t-2xl{ border-top-left-radius: 1rem; border-top-right-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.shadow-sm  { box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); }
.shadow-lg  { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.10), 0 4px 6px -4px rgba(0,0,0,0.05); }
.shadow-xl  { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.10), 0 8px 10px -6px rgba(0,0,0,0.05); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.18); }

.object-cover { object-fit: cover; }

/* Transitions */
.transition-colors    { transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease; }
.transition-opacity   { transition: opacity 150ms ease; }
.transition-shadow    { transition: box-shadow 200ms ease; }
.transition-transform { transition: transform 200ms ease; }
.transition-all       { transition: all 200ms ease; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

/* Hovers — only the ones referenced by the design */
.hover\:bg-accent:hover     { background-color: var(--accent); }
.hover\:bg-accent\/80:hover { background-color: rgb(233 235 239 / 0.80); }
.hover\:bg-primary\/20:hover{ background-color: rgb(3 2 19 / 0.20); }
.hover\:opacity-90:hover    { opacity: 0.90; }
.hover\:opacity-100:hover   { opacity: 1; }
.hover\:text-primary:hover  { color: var(--primary); }
.hover\:text-foreground:hover { color: var(--foreground); }
.hover\:border-primary:hover { border-color: var(--primary); }
.hover\:border-primary\/50:hover { border-color: rgb(3 2 19 / 0.50); }
.hover\:underline:hover { text-decoration: underline; }
.hover\:shadow-lg:hover  { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.10), 0 4px 6px -4px rgba(0,0,0,0.05); }
.hover\:shadow-xl:hover  { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.10), 0 8px 10px -6px rgba(0,0,0,0.05); }
.hover\:shadow-2xl:hover { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.18); }
.hover\:-translate-y-1:hover { transform: translateY(-0.25rem); }
.hover\:-translate-y-2:hover { transform: translateY(-0.5rem); }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:scale-110 { transform: scale(1.10); }
.group:hover .group-hover\:text-primary { color: var(--primary); }

.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }
.disabled\:opacity-50:disabled { opacity: 0.5; }
.disabled\:cursor-not-allowed:disabled { cursor: not-allowed; }

.whitespace-nowrap { white-space: nowrap; }
.resize-none { resize: none; }
.rotate-180 { transform: rotate(180deg); }

/* Animate-pulse (used on hero dot) */
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Gradient — used on hero, newsletter, AboutUs CTA */
.bg-gradient-to-br {
  background-image: linear-gradient(
    to bottom right,
    var(--tw-gradient-from) 0%,
    var(--tw-gradient-via) 50%,
    var(--tw-gradient-to) 100%
  );
}
.from-primary\/5      { --tw-gradient-from: rgb(3 2 19 / 0.05); }
.via-background       { --tw-gradient-via:  var(--background); }
.to-accent\/20        { --tw-gradient-to:   rgb(233 235 239 / 0.20); }

/* Blur (used on hero decorations) */
.blur-3xl { filter: blur(64px); }

/* Focus ring used by form inputs */
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--primary); }
.focus\:outline-none:focus { outline: none; }
.focus\:ring-primary:focus { box-shadow: 0 0 0 2px var(--primary); }

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

/* ============================================================
   PROSE — for the_content() output on single posts/pages
   ============================================================ */
.prose { color: var(--foreground); font-size: 1rem; line-height: 1.625; }
.prose > p { margin-bottom: 1rem; line-height: 1.7; }
.prose h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 1rem; line-height: 1.3; }
.prose h3 { font-size: 1.25rem; font-weight: 700; margin: 1.5rem 0 0.75rem; }
.prose ul { padding-left: 1.5rem; margin: 1rem 0; list-style: disc; }
.prose ol { padding-left: 1.5rem; margin: 1rem 0; list-style: decimal; }
.prose li { margin-bottom: 0.5rem; }
.prose a { color: var(--primary); text-decoration: underline; }
.prose strong { font-weight: 700; color: var(--foreground); }
.prose blockquote { border-left: 4px solid var(--primary); padding-left: 1.25rem; color: var(--muted-foreground); font-style: italic; margin: 1.5rem 0; }
.prose pre { background: var(--muted); color: var(--foreground); padding: 1.25rem; border-radius: var(--radius); overflow-x: auto; font-family: ui-monospace, monospace; font-size: 0.875rem; }
.prose code { font-family: ui-monospace, monospace; font-size: 0.92em; background: var(--muted); padding: 0.1em 0.35em; border-radius: 0.25rem; }
.prose pre code { background: transparent; padding: 0; }
.prose img { border-radius: var(--radius); margin: 1.5rem 0; }
.prose-lg { font-size: 1.0625rem; }

/* ============================================================
   CF7 — make Contact Form 7 match the input/button look
   ============================================================ */
.wpcf7 form { display: flex; flex-direction: column; gap: 1.5rem; }
.wpcf7 form > p { margin: 0; }
.wpcf7 label { display: block; margin-bottom: 0.5rem; font-size: 0.875rem; font-weight: 500; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel],
.wpcf7 input[type=url], .wpcf7 input[type=number], .wpcf7 select, .wpcf7 textarea {
  width: 100%; padding: 0.75rem 1rem;
  background: var(--input-background); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 1rem;
}
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus {
  outline: none; box-shadow: 0 0 0 2px var(--primary); border-color: transparent;
}
.wpcf7 textarea { min-height: 9rem; resize: vertical; }
.wpcf7 input[type=submit] {
  background: var(--primary); color: var(--primary-foreground);
  padding: 0.75rem 1.5rem; border-radius: var(--radius); font-weight: 500;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: opacity 150ms ease; cursor: pointer; border: 0;
}
.wpcf7 input[type=submit]:hover { opacity: 0.9; }
.wpcf7-response-output { padding: 1rem; border-radius: var(--radius); }
.wpcf7-not-valid-tip { color: var(--destructive); font-size: 0.8125rem; margin-top: 0.25rem; }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (min-width: 640px) {
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .sm\:text-5xl { font-size: 3rem; line-height: 1.1; }
  .sm\:w-48 { width: 12rem; }
  .sm\:flex { display: flex; }
}
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
  .lg\:block { display: block; }
  .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)); }
  .lg\:col-span-1 { grid-column: span 1 / span 1; }
  .lg\:row-span-2 { grid-row: span 2 / span 2; }
  .lg\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .lg\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .lg\:p-12 { padding: 3rem; }
  .lg\:aspect-auto { aspect-ratio: auto; }
  .lg\:h-96 { height: 24rem; }
  .lg\:flex-row { flex-direction: row; }
  .lg\:text-5xl { font-size: 3rem; line-height: 1.1; }
  .lg\:text-6xl { font-size: 3.75rem; line-height: 1.05; }
}
@media (min-width: 1280px) {
  .xl\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
