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

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

.header {
  position: relative;
  padding: 4rem 1rem;
  text-align: center;
  height: 90vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
  width: 100%;
}

.header-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;

}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.header-content {
  z-index: 2;
  position: relative;
  max-width: 800px;
  padding: 0 1rem;
}

@media (max-width: 768px) {
  .header-content {
    max-width: 100%;
    padding: 1rem 1.5rem;
    text-align: center;
  }
}

.logo {
  width: 100px;
  height: auto;
  margin-bottom: 1rem;
}

.header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.header p {
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
}

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

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: #1e40af;
}

.header .section-title {
  color: white;
}

.header .section-subtitle {
  color: white;
  opacity: 0.95;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.section-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0.75rem;
  margin-bottom: 4rem;
  margin-top: 4rem;
}

.video-card {
  position: relative;
  max-width: 300px;
  margin: 0 auto;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

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

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(59, 130, 246, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.video-play::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 20px solid white;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 4px;
}

.video-card:hover .video-play {
  background: #2563eb;
}

.video-card a {
  display: block;
}

/* Overlays the entire card so clicking anywhere opens the lesson */
.video-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.video-card-overlay .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.video-title {
  padding: 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: #1e293b;
  text-decoration: none;
  transition: background 0.2s ease;
}

.video-description {
  padding: 0 1.5rem 1.5rem 1.5rem;
  font-size: 0.875rem;
  color: #64748b;
}

.free-sample-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #22c55e;
  color: white;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.video-card:hover .video-title {
  background: #f8fafc;
}

.cta-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 4rem;
}

.cta-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 3rem;
}

.cta-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.cta-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.cta-image-caption {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: #475569;
}

.bottom-cta {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.bottom-cta h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 1.5rem;
}

.main-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.main-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.footer {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
  margin-top: 4rem;
}

.footer p {
  color: #64748b;
  font-size: 0.9rem;
}

.mobile-navbar {
  padding: 0;
}

.mobile-navbar .navbar-brand img {
  height: 50px;
}

@media (max-width: 992px) {
  .mobile-navbar {
    display: block;
  }
}
