/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f0f2f5;
}

/* Page Wrapper */
.page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  position: relative;
}

.container {
  max-width: 928px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.decorative-circle {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  width: 6rem;
  height: 6rem;
  border: 2px solid rgba(16, 185, 129, 0.2);
  border-radius: 50%;
}

.decorative-square {
  position: absolute;
  bottom: 1.5rem;
  left: 2rem;
  width: 3rem;
  height: 3rem;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 0.5rem;
  transform: rotate(12deg);
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-text {
  max-width: 600px;
}

.hero-tagline {
  color: #10b981;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  color: white;
}

.hero-subtitle {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 2rem;
  color: #10b981;
}

.hero-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #d1d5db;
  text-wrap: balance;
  /* max-width: 32rem; */
}

/* Main Section */
.main-section {
  background: #f9fafb;
  padding: 4rem 0;
}

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

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.video-card {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.video-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.video-thumbnail {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: #000;
}

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

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.video-card:hover .play-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.play-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e293b;
  transition: all 0.3s ease;
}

.video-card:hover .play-icon {
  background: white;
  transform: scale(1.1);
}

.video-info {
  padding: 1.5rem;
}

.video-meta-top {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: left;
  margin-bottom: 1rem;
  width: fit-content;
}

.video-category {
  background: #10b981;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0.1rem 0
}

.video-duration {
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
}

.video-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.video-description {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.video-level {
  display: flex;
  align-items: center;
}

.level-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid;
}

.level-badge.expert {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}

.level-badge.advanced {
  background: #fff7ed;
  color: #ea580c;
  border-color: #fed7aa;
}

.level-badge.intermediate {
  background: #f0fdf4;
  color: #16a34a;
  border-color: #bbf7d0;
}

/* Footer */
.footer {
  background: #1e293b;
  color: white;
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-direction: column;
}

.footer-brand h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-logo {
  display: flex;
  justify-content: center;
}

.logo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.75rem;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.logo-placeholder:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.logo-placeholder span {
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
}

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

.footer-info p {
  color: #9ca3af;
  font-size: 0.75rem;
  max-width: 400px;
  margin-left: auto;
}

/* Video Page Styles */
.video-hero-section {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.video-hero-content {
  position: relative;
  z-index: 10;
}

#my-video {
  border-radius: 1rem;
  background: transparent;
}

.video-hero-text {
  max-width: 600px;
}

.video-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: white;
}

.accent-text {
  color: #10b981;
}

.video-meta-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.duration {
  color: #d1d5db;
  font-size: 0.875rem;
  font-weight: 500;
}

.level {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid;
}

.level.expert {
  background: rgba(220, 38, 38, 0.1);
  color: #fca5a5;
  border-color: rgba(220, 38, 38, 0.3);
}

.level.advanced {
  background: rgba(234, 88, 12, 0.1);
  color: #fdba74;
  border-color: rgba(234, 88, 12, 0.3);
}

.level.intermediate {
  background: rgba(22, 163, 74, 0.1);
  color: #86efac;
  border-color: rgba(22, 163, 74, 0.3);
}

.category {
  background: #10b981;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.video-nav {
  background: #f9fafb;
  padding: 1rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #1e293b;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.back-btn:hover {
  color: #10b981;
}

.video-player-section {
  background: #f9fafb;
  padding: 3rem 0;
}

.video-player {
  display: flex;
  justify-content: center;
  padding: 0 2rem;
}

.video-player video {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border: 1px solid #e5e7eb;
}

.video-content-section {
  background: #f9fafb;
  padding: 3rem 0;
}

.video-content {
  max-width: 800px;
  margin: 0 auto;
}

.description {
  margin-bottom: 2rem;
}

.description h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
}

.description p {
  color: #6b7280;
  line-height: 1.6;
  font-size: 1rem;
}

.objectives h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
}

.objectives ul {
  list-style: none;
  padding: 0;
}

.objectives li {
  color: #6b7280;
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.5;
}

.objectives li::before {
  content: "•";
  color: #10b981;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.course-nav-section {
  background: white;
  padding: 2rem 0;
  border-top: 1px solid #e5e7eb;
}

.course-nav {
  max-width: 800px;
  margin: 0 auto;
}

.nav-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: 0.75rem;
  text-decoration: none;
  color: #1e293b;
  transition: all 0.2s ease;
  border: 1px solid #e5e7eb;
}

.nav-item a:hover {
  background: #10b981;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
  display: block;
  margin-bottom: 0.25rem;
}

.nav-title {
  font-size: 1rem;
  font-weight: 600;
}

.partner-logo {
  max-height: 8rem;
}

/* Responsive Design */
@media (max-width: 1240px) {
  .page-wrapper {
    max-width: 100%;
    margin: 0;
    box-shadow: none;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .hero-section {
    padding: 3rem 0;
  }

  .main-section {
    padding: 3rem 0;
  }

  .video-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
    flex-direction: column;
  }

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

  .footer-info p {
    margin: 0 auto;
  }

  .video-meta-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .decorative-circle {
    width: 4rem;
    height: 4rem;
  }

  .decorative-square {
    width: 2rem;
    height: 2rem;
  }

  .video-hero-section {
    padding: 2rem 0;
  }

  .video-hero-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .video-meta-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .video-player-section {
    padding: 2rem 0;
  }

  .video-player {
    padding: 0 1rem;
  }

  .video-content-section {
    padding: 2rem 0;
  }

  .course-nav-section {
    padding: 1.5rem 0;
  }

  .nav-item a {
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .nav-item a svg {
    align-self: flex-end;
    margin-top: 0.5rem;
  }
}

@media (max-width: 480px) {
  .video-info {
    padding: 1.25rem;
  }

  .video-thumbnail {
    height: 180px;
  }

  .video-hero-section {
    padding: 1.5rem 0;
  }

  .video-content {
    padding: 0 1rem;
  }

  .course-nav {
    padding: 0 1rem;
  }

  .video-player-section {
    padding: 1.5rem 0;
  }

  .video-player {
    padding: 0 1rem;
  }

  .video-player video {
    border-radius: 0.5rem;
  }

  .partner-logo {
    max-height: 5rem;
  }
}
