:root {
  /* Color system */
  --primary: 210 100% 50%;
  --primary-foreground: 0 0% 98%;
  --secondary: 210 40% 96%;
  --secondary-foreground: 222 84% 4.9%;
  --muted: 210 40% 96%;
  --muted-foreground: 215 16% 47%;
  --accent: 210 40% 96%;
  --accent-foreground: 222 84% 4.9%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 98%;
  --border: 214 32% 91%;
  --input: 214 32% 91%;
  --ring: 210 100% 50%;
  --background: 0 0% 100%;
  --foreground: 222 84% 4.9%;
  --card: 0 0% 100%;
  --card-foreground: 222 84% 4.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 222 84% 4.9%;

  /* Healthcare theme */
  --healthcare-primary: 200 95% 45%;
  --healthcare-primary-light: 200 95% 85%;
  --healthcare-secondary: 160 80% 40%;
  --healthcare-accent: 40 95% 60%;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, hsl(var(--healthcare-primary)), hsl(200 90% 60%));
  --gradient-card: linear-gradient(145deg, hsl(var(--card)), hsl(210 30% 98%));
  --gradient-overlay: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));

  /* Shadows */
  --shadow-soft: 0 2px 8px -2px hsl(var(--healthcare-primary) / 0.1);
  --shadow-medium: 0 8px 25px -5px hsl(var(--healthcare-primary) / 0.15);
  --shadow-large: 0 15px 35px -5px hsl(var(--healthcare-primary) / 0.2);

  /* Video controls */
  --video-control-bg: rgba(255, 255, 255, 0.1);
  --video-control: rgba(255, 255, 255, 0.9);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  background: hsl(var(--card));
  border-bottom: 1px solid hsl(var(--border));
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  text-decoration: none;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
  transition: color 0.3s;
}

.nav a:hover {
  color: hsl(var(--healthcare-primary));
}

/* Main content */
.main {
  padding: 64px 0;
}

.page-header {
  text-align: center;
  margin-bottom: 64px;
}

.page-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 16px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  /* -webkit-text-fill-color: transparent; */
  background-clip: text;
}

.page-description {
  font-size: 20px;
  color: hsl(var(--muted-foreground));
  max-width: 768px;
  margin: 0 auto;
}

/* Search and controls */
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
  align-items: center;
}

.search-wrapper {
  position: relative;
  flex: 1;
  min-width: 250px;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border: 2px solid hsl(var(--border));
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.search-input:focus {
  outline: none;
  border-color: hsl(var(--healthcare-primary));
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: hsl(var(--muted-foreground));
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  background: transparent;
  border: 2px solid hsl(var(--border));
  color: hsl(var(--foreground));
}

.btn-outline:hover {
  background: hsl(var(--secondary));
}

/* Video gallery */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 80px;
}

.video-card {
  background: var(--gradient-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s;
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-large);
}

.video-thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.05);
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-overlay);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-card:hover .video-overlay {
  opacity: 1;
}

.play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--video-control-bg);
  backdrop-filter: blur(8px);
  border: 2px solid var(--video-control);
  color: var(--video-control);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  transform: scale(0.75);
  opacity: 0;
}

.video-card:hover .play-btn {
  transform: scale(1);
  opacity: 1;
}

.play-btn:hover {
  background: hsl(var(--healthcare-primary));
  border-color: hsl(var(--healthcare-primary));
  color: white;
}

.video-content {
  padding: 24px;
}

.video-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
  transition: color 0.3s;
}

.video-card:hover .video-title {
  color: hsl(var(--healthcare-primary));
}

.video-description {
  color: hsl(var(--muted-foreground));
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Video Modal - Bootstrap compatible */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1060;
  /* Higher than Bootstrap's modal z-index */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
}

.video-modal-content {
  background: hsl(var(--card));
  border-radius: 16px;
  padding: 24px;
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.video-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 1;
}

.video-modal-close:hover {
  background: rgba(0, 0, 0, 0.9);
}

.video-player {
  width: 80vw;
  max-width: 800px;
  aspect-ratio: 16/9;
  border-radius: 8px;
}

/* CTA section */
.cta {
  background: var(--gradient-card);
  border-radius: 16px;
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow-medium);
  margin-bottom: 80px;
}

.cta h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 16px;
}

.cta p {
  color: hsl(var(--muted-foreground));
  font-size: 18px;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* Footer */
.footer {
  background: hsl(var(--card));
  border-top: 1px solid hsl(var(--border));
  padding: 48px 0;
  text-align: center;
  color: hsl(var(--muted-foreground));
}

/* Responsive */
@media (max-width: 768px) {
  .page-title {
    font-size: 32px;
  }

  .controls {
    flex-direction: column;
    align-items: stretch;
  }

  .nav {
    display: none;
  }

  .cta {
    padding: 32px 24px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}
