:root {
  --bg-primary: #eef4f8;
  --bg-secondary: #ffffff;
  --bg-section: #f8fbfd;
  --bg-card: #ffffff;
  --border: #d8e3ea;
  --accent-blue: #2563eb;
  --accent-teal: #14b8a6;
  --accent-cyan: #38bdf8;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --max-width: 1300px;
  --game-max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Global Spacing Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 100px 0;
}

.text-center {
  text-align: center;
}

/* Media Queries Spacing */
@media (max-width: 992px) {
  .section-padding { padding: 70px 0; }
}
@media (max-width: 768px) {
  .section-padding { padding: 50px 0; }
}

/* Disclaimer Banner */
.top-disclaimer {
  background-color: var(--text-primary);
  color: var(--bg-secondary);
  text-align: center;
  padding: 8px 15px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.top-disclaimer span {
  color: var(--accent-cyan);
}

/* Header */
header {
  position: sticky;
  top: 0;
  background-color: var(--bg-secondary);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a:hover {
  color: var(--accent-blue);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  background: none;
  border: none;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--accent-blue);
  color: #ffffff;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
  text-align: center;
}

.btn:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-secondary {
  background-color: var(--bg-section);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: var(--border);
  color: var(--text-primary);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(240, 245, 250, 0.82), rgba(240, 245, 250, 0.95)), url('images/modern-hospital-laboratory-bg.jpg') center/cover no-repeat;
  padding: 120px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 30px;
}

.hero-disclaimer {
  display: inline-block;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 30px;
}

.hero-disclaimer i {
  color: var(--accent-teal);
  margin-right: 5px;
}

/* Section Titles */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.section-title p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Game Section */
.game-section {
  background-color: var(--bg-section);
}

.game-container {
  width: 85%;
  max-width: var(--game-max-width);
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: 18px;
  padding: 25px;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.06);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent-blue);
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

.game-header h3 {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.game-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--accent-teal);
  font-weight: 600;
  background: rgba(20, 184, 166, 0.1);
  padding: 6px 12px;
  border-radius: 50px;
}

.game-status .dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-teal);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.game-wrapper iframe {
  width: 100%;
  height: 650px;
  border: none;
  border-radius: 12px;
  background-color: var(--bg-primary);
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.5; }
  100% { transform: scale(0.95); opacity: 1; }
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--bg-card);
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border);
  transition: transform 0.3s ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-blue);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: inline-block;
  background: var(--bg-primary);
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  color: var(--accent-blue);
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Statistics Section */
.stats-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--bg-section);
  padding: 30px;
  border-radius: 14px;
  text-align: center;
  border: 1px solid var(--border);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-teal);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* CTA Banner */
.cta-section {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-section) 100%);
  border-bottom: 1px solid var(--border);
}

.cta-box {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  border: 1px solid var(--border);
  max-width: 900px;
  margin: 0 auto;
}

.cta-box h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.cta-box p {
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: 1.1rem;
}

/* Standard Content Pages (About, Terms, etc.) */
.page-hero {
  padding: 80px 0;
  background: linear-gradient(rgba(240, 245, 250, 0.9), rgba(240, 245, 250, 0.95)), url('images/healthcare-dashboard-bg.jpg') center/cover no-repeat;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: 2.8rem;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.content-wrapper {
  background: var(--bg-card);
  padding: 50px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
  border: 1px solid var(--border);
  margin: 0 auto;
  max-width: 900px;
}

.content-wrapper h2 {
  font-size: 1.8rem;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--text-primary);
  border-bottom: 2px solid var(--bg-primary);
  padding-bottom: 10px;
}

.content-wrapper h2:first-child {
  margin-top: 0;
}

.content-wrapper p, .content-wrapper ul {
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.content-wrapper ul {
  padding-left: 20px;
}

.content-wrapper li {
  margin-bottom: 10px;
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
}

.contact-info {
  background: var(--bg-section);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.contact-item {
  margin-bottom: 25px;
}

.contact-item h4 {
  color: var(--accent-blue);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-form {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-blue);
  background-color: var(--bg-secondary);
}

textarea.form-control {
  resize: vertical;
  height: 150px;
}

/* Footer */
footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about p {
  color: var(--text-secondary);
  margin-top: 15px;
  font-size: 0.95rem;
  max-width: 400px;
}

.footer-links h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent-blue);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer-warning {
  background-color: var(--bg-section);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 30px;
}

.footer-warning h4 {
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 { font-size: 2.8rem; }
  .game-container { width: 95%; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 15px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-bottom: 1px solid var(--border);
  }
  .nav-links.active { display: flex; }
  .mobile-menu-btn { display: block; }
  
  .hero { padding: 80px 0; }
  .hero h1 { font-size: 2.2rem; }
  
  .game-container { width: 100%; border-radius: 0; border-left: none; border-right: none; padding: 15px; }
  .game-wrapper iframe { height: 450px; }
  
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .content-wrapper { padding: 30px 20px; }
}