:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #f2f6fb;
  --text: #14213d;
  --muted: #5f6d86;
  --accent: #ffb703;
  --accent-2: #0ea5e9;
  --border: #e3e8f0;
  --shadow: 0 16px 40px rgba(20, 33, 61, 0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-bar { display: flex; justify-content: space-between; align-items: center; padding: 0.95rem 0; }
.brand { display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none; color: var(--text); }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), #2563eb);
  color: white;
  box-shadow: var(--shadow);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1rem; }
.brand-text small { color: var(--muted); font-size: 0.75rem; margin-top: 0.18rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: var(--surface-2);
}
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  display: none;
  min-width: 180px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.45rem;
  box-shadow: var(--shadow);
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  color: var(--muted);
}
.dropdown-menu a:hover { background: var(--surface-2); color: var(--text); }
.hero-banner, .page-hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(115deg, rgba(20, 33, 61, 0.96) 0%, rgba(8, 47, 73, 0.86) 100%), url('cover.jpg');
  background-size: cover;
  background-position: center;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; align-items: center; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  font-weight: 700;
  color: #7dd3fc;
  margin-bottom: 0.75rem;
}
.hero-copy h1, .page-hero h1 { font-size: clamp(2rem, 4vw, 3.25rem); margin: 0 0 1rem; line-height: 1.1; color: white; }
.lead { font-size: 1.02rem; color: rgba(255,255,255,0.8); max-width: 650px; }
.actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.4rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.16); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #ffcf5c); color: #082038; }
.btn-secondary {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: white;
}
.hero-stats { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.5rem; }
.hero-stats div {
  min-width: 140px;
  padding: 0.9rem 1rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
}
.hero-stats strong { display: block; color: white; font-size: 1.05rem; }
.hero-stats span { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.hero-card, .info-card, .contact-card, .poster-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.3rem;
  box-shadow: var(--shadow);
}
.hero-card ul, .info-card ul { margin: 0.6rem 0 0; padding-left: 1rem; color: var(--muted); }
.section { padding: 4.2rem 0; }
.section-heading { margin-bottom: 1.5rem; }
.section-heading h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); margin: 0; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.cards-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.info-card h3 { margin-top: 0; margin-bottom: 0.45rem; }
.info-card p, .contact-card p, .poster-panel p { color: var(--muted); }
.hero-media { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.poster-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: center; }
.poster-panel img { border-radius: 16px; }
.contact-card { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.error { color: #c2410c; margin: 0; }
.success { color: #047857; margin-bottom: 1rem; }
.table-wrap { overflow-x: auto; }
.data-table, .institution-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td, .institution-table th, .institution-table td { padding: 0.9rem; border: 1px solid var(--border); }
.data-table th, .institution-table th { text-align: left; background: var(--surface-2); }
.logo-cell img { width: 72px; height: auto; border-radius: 10px; }
.site-footer { padding: 1.2rem 0 2rem; color: var(--muted); text-align: center; }
.live-chat-button {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--accent), #ffcf5c);
  color: #082038;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.1rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  cursor: pointer;
  z-index: 30;
}
.live-chat-panel {
  position: fixed;
  right: 1.2rem;
  bottom: 5.4rem;
  width: min(320px, calc(100% - 2rem));
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: var(--shadow);
  display: none;
  z-index: 30;
}
.live-chat-panel.open { display: block; }
.live-chat-panel p { color: var(--muted); margin: 0 0 0.8rem; }
.live-chat-panel .admin-form { gap: 0.7rem; }
.live-chat-panel textarea { min-height: 90px; }
.live-chat-panel a { color: var(--text); text-decoration: none; font-weight: 600; }
.admin-form { display: grid; gap: 0.7rem; }
.admin-form input, .admin-form textarea, .admin-form select, .admin-form button {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 0.8rem 0.95rem;
  font: inherit;
}
.admin-form textarea { resize: vertical; }
@media (max-width: 900px) {
  .hero-grid, .cards-grid, .cards-grid-4, .poster-panel, .contact-card { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-bar { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .hero-banner, .page-hero { padding: 4rem 0 3rem; }
  .hero-stats { flex-direction: column; }
  .nav-links { gap: 0.4rem; }
}
