:root {
  --background: #ffffff;
  --foreground: #0a0a0a;
  --card: #ffffff;
  --card-foreground: #0a0a0a;
  --primary: #171717;
  --primary-foreground: #fafafa;
  --secondary: #f5f5f5;
  --secondary-foreground: #171717;
  --muted: #f5f5f5;
  --muted-foreground: #737373;
  --accent: #f5f5f5;
  --accent-foreground: #171717;
  --destructive: #dc2626;
  --border: #e5e5e5;
  --input: #e5e5e5;
  --ring: #a3a3a3;
  --radius: 0.625rem;
}

* {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.bg-background { background-color: var(--background); }
.bg-card { background-color: var(--card); }
.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-muted { background-color: var(--muted); }
.bg-muted\/50 { background-color: color-mix(in srgb, var(--muted) 50%, transparent); }
.bg-accent { background-color: var(--accent); }
.text-foreground { color: var(--foreground); }
.text-card-foreground { color: var(--card-foreground); }
.text-primary { color: var(--primary); }
.text-primary-foreground { color: var(--primary-foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.border-border { border-color: var(--border); }
.border-input { border-color: var(--input); }

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container { max-width: 640px; }
}
@media (min-width: 768px) {
  .container { max-width: 768px; }
}
@media (min-width: 1024px) {
  .container { max-width: 1024px; }
}
@media (min-width: 1280px) {
  .container { max-width: 1280px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s, background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1.25rem;
}

.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.btn-default {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-default:hover {
  background: color-mix(in srgb, var(--primary) 90%, transparent);
}

.btn-outline {
  border-color: var(--input);
  background: var(--background);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--accent-foreground);
}

.btn-sm {
  height: 2rem;
  padding: 0 0.75rem;
}

.btn-md {
  height: 2.25rem;
  padding: 0.5rem 1rem;
}

.btn-lg {
  height: 2.5rem;
  padding: 0.5rem 1.5rem;
}

.btn-full {
  width: 100%;
}

.btn-red {
  background: #ef4444;
  color: #fff;
}

.btn-red:hover {
  background: #dc2626;
}

.btn-hero-outline {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
  border-color: transparent;
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-cta {
  background: var(--background);
  color: var(--foreground);
}

.btn-cta:hover {
  background: color-mix(in srgb, var(--background) 90%, transparent);
}

/* Cards */
.card {
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--card-foreground);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-header {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0;
}

.card-title-sm {
  font-size: 1.25rem;
}

.card-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0;
}

.card-content {
  padding: 0 1.5rem 1.5rem;
  flex-grow: 1;
}

.card-content-flush {
  padding: 0;
}

.card-footer {
  display: flex;
  align-items: center;
  padding: 0 1.5rem 1.5rem;
}

/* Form controls */
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
  display: flex;
  width: 100%;
  border-radius: 0.375rem;
  border: 1px solid var(--input);
  background: var(--background);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--foreground);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}

.form-input {
  height: 2.25rem;
}

.form-select {
  height: 2.25rem;
  appearance: auto;
}

.form-textarea {
  min-height: 5rem;
  resize: vertical;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 50%, transparent);
}

.form-error {
  font-size: 0.875rem;
  color: var(--destructive);
  margin-top: 0.25rem;
}

.form-group {
  margin-bottom: 0;
}

/* Tabs */
.tabs-list {
  display: grid;
  width: 100%;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: var(--muted);
  color: var(--muted-foreground);
  padding: 0.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tabs-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 0.375rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.tabs-trigger.active {
  background: var(--background);
  color: var(--foreground);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.tabs-content {
  display: none;
  margin-top: 1.5rem;
  outline: none;
}

.tabs-content.active {
  display: block;
}

/* Accordion */
.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-trigger {
  display: flex;
  flex: 1;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 0.375rem;
  padding: 1rem 0;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 500;
  background: transparent;
  border: none;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
}

.accordion-trigger:hover {
  text-decoration: underline;
}

.accordion-trigger svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--muted-foreground);
  transition: transform 0.2s;
  margin-top: 0.125rem;
}

.accordion-trigger.open svg {
  transform: rotate(180deg);
}

.accordion-content {
  display: none;
  overflow: hidden;
  font-size: 0.875rem;
  padding-bottom: 1rem;
}

.accordion-content.open {
  display: block;
}

/* Layout helpers matching Tailwind usage */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-grow { flex-grow: 1; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.min-h-screen { min-height: 100vh; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.inset-0 { inset: 0; }
.top-0 { top: 0; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.overflow-hidden { overflow: hidden; }
.object-cover { object-fit: cover; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }
.border { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-white { color: #fff; }
.text-gray-300 { color: #d1d5db; }
.text-gray-600 { color: #4b5563; }
.opacity-90 { opacity: 0.9; }
.list-disc { list-style-type: disc; }
.pl-5 { padding-left: 1.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; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-4 { margin-right: 1rem; }
.gap-3 { gap: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pb-12 { padding-bottom: 3rem; }
.pt-6 { padding-top: 1.5rem; }
.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-6xl { max-width: 72rem; }
.tracking-tight { letter-spacing: -0.025em; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.scroll-mt-40 { scroll-margin-top: 10rem; }
.icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.icon-sm { width: 1rem; height: 1rem; flex-shrink: 0; }
.icon-primary { color: var(--primary); }
.icon-muted { color: var(--muted-foreground); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.site-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.65rem 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex-shrink: 0;
}

.site-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--foreground);
  margin: 0;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin: 0.1rem 0 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.apply-btn-desktop {
  display: none;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--input);
  border-radius: 0.375rem;
  background: var(--background);
  cursor: pointer;
  color: var(--foreground);
}

.menu-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.site-header-nav {
  display: none;
  background: #171717;
}

.site-header-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 0.5rem;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.75rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  transition: background-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 60;
}

.mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: min(320px, 88vw);
  background: #fff;
  box-shadow: 8px 0 30px rgba(0, 0, 0, 0.12);
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  z-index: 70;
  overflow-y: auto;
  padding: 1.25rem 0 2rem;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.75rem;
}

.mobile-drawer-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.mobile-close {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.35rem;
  color: var(--muted-foreground);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--foreground);
  background: var(--accent);
}

.mobile-apply {
  margin: 1rem 1.5rem 0;
}

body.menu-open {
  overflow: hidden;
}

@media (min-width: 768px) {
  .site-header-nav {
    display: block;
  }

  .apply-btn-desktop {
    display: inline-flex;
  }

  .menu-toggle {
    display: none;
  }

  .site-header-top {
    padding: 0.75rem 1.5rem;
  }

  .brand-title {
    font-size: 1.05rem;
  }
}

@media (max-width: 767px) {
  .brand-title {
    max-width: 200px;
  }
}

.footer-logo {
  width: 140px;
  height: auto;
  object-fit: contain;
}

/* Hero */
.hero {
  position: relative;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  filter: brightness(0.3);
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 8rem 1rem;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0;
}

.hero-subtitle {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
}

.hero-text {
  margin-top: 1.5rem;
  font-size: 1.25rem;
  color: #d1d5db;
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  gap: 1.5rem;
}

/* About preview image */
.about-image-wrap {
  position: relative;
  height: 400px;
  border-radius: 0.5rem;
  overflow: hidden;
}

.about-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: var(--muted);
  border-radius: 0.5rem;
}

.stat-box .stat-num {
  font-size: 1.875rem;
  font-weight: 700;
}

.stat-box .stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-align: center;
}

.program-icon {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.campus-image {
  position: relative;
  height: 12rem;
  width: 100%;
}

.campus-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.page-banner-image {
  position: relative;
  height: 20rem;
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 3rem;
}

.page-banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leader-photo {
  position: relative;
  width: 10rem;
  height: 10rem;
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-placeholder {
  height: 20rem;
  background: color-mix(in srgb, var(--secondary) 50%, transparent);
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  z-index: 100;
  max-width: 22rem;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-title {
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.toast-desc {
  margin: 0;
  font-size: 0.875rem;
  opacity: 0.9;
}

@media (min-width: 640px) {
  .sm\:py-48 { padding-top: 12rem; padding-bottom: 12rem; }
  .sm\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .sm\:flex-row { flex-direction: row; }
  .hero-content { padding-top: 12rem; padding-bottom: 12rem; }
}

@media (min-width: 768px) {
  .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)); }
  .md\:flex-row { flex-direction: row; }
  .md\:mx-10 { margin-left: 2.5rem; margin-right: 2.5rem; }
  .md\:gap-12 { gap: 3rem; }
  .md\:scroll-mt-24 { scroll-margin-top: 6rem; }
  .footer-inner { margin-left: 2.5rem; margin-right: 2.5rem; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:py-56 { padding-top: 14rem; padding-bottom: 14rem; }
  .lg\:mx-10 { margin-left: 2.5rem; margin-right: 2.5rem; }
  .hero-content { padding-top: 14rem; padding-bottom: 14rem; }
}

.page-main {
  flex-grow: 1;
}

.home-stack {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-inner {
  padding-top: 3rem;
  padding-bottom: 3rem;
  margin-left: 1.25rem;
  margin-right: 1.25rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2.5rem;
}

.footer-link {
  color: var(--muted-foreground);
  transition: color 0.15s;
}

.footer-link:hover {
  color: var(--foreground);
}
