/* Single Webinar Page Styles */

/* Main page background */
.webinar-single {
  background: #ffffff;
  min-height: 100vh;
}

/* Breadcrumbs */
.webinar-breadcrumbs {
  background: #f8f9fa;
  padding: 16px 0;
  border-bottom: 1px solid #e9ecef;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
  content: '›';
  margin-left: 8px;
  color: #6c757d;
  font-size: 16px;
}

.breadcrumb-link {
  color: #6c757d;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  color: #1f1f1f;
  text-decoration: none;
}

.breadcrumb-current {
  color: #1f1f1f;
  font-weight: 500;
}

/* Main Layout */
.webinar-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
  background: #ffffff;
}

.webinar-main {
  min-width: 0; /* Prevents grid overflow */
}

/* Video Info Section - Above Video */
.webinar-info {
  background: #ffffff;
  border-radius: 12px;
  padding: 0;
  margin-bottom: 24px;
  box-shadow: none;
}

.webinar-info__content {
  padding: 0;
}

/* Video Player Section */
.webinar-player-section {
  margin-bottom: 32px;
}

.player-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.player-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.webinar-title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 600;
  line-height: 1.3;
  color: #1f1f1f;
  margin: 0 0 16px 0;
  font-family: 'Roboto', sans-serif;
}

.webinar-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.webinar-meta__left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.webinar-date {
  color: #6c757d;
  font-size: 14px;
  font-weight: 500;
}

.webinar-category {
  background: #e9ecef;
  color: #495057;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.webinar-meta__right {
  display: flex;
  align-items: center;
}


/* Description Section */
.webinar-description {
  background: #fff;
  border-radius: 12px;
  padding: 0;
  box-shadow: none;
  margin-bottom: 40px;
}

.webinar-description__content h2 {
  font-size: 24px;
  font-weight: 600;
  color: #1f1f1f;
  margin: 0 0 24px 0;
  font-family: 'Roboto', sans-serif;
  border-bottom: none;
  padding-bottom: 0;
}

.webinar-description__text {
  color: #495057;
  line-height: 1.7;
  font-size: 18px;
  max-width: 800px;
}

.webinar-description__text p {
  margin: 0 0 20px 0;
  font-size: 18px;
  line-height: 1.7;
}

.webinar-description__text p:last-child {
  margin-bottom: 0;
}

.webinar-description__text h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1f1f1f;
  margin: 24px 0 12px 0;
  font-family: 'Roboto', sans-serif;
}

.webinar-description__text h4 {
  font-size: 18px;
  font-weight: 600;
  color: #1f1f1f;
  margin: 20px 0 10px 0;
  font-family: 'Roboto', sans-serif;
}

.webinar-description__text ul,
.webinar-description__text ol {
  margin: 16px 0;
  padding-left: 24px;
}

.webinar-description__text li {
  margin: 8px 0;
  font-size: 18px;
  line-height: 1.7;
}

.webinar-description__text strong {
  font-weight: 600;
  color: #1f1f1f;
}

.webinar-description__text em {
  font-style: italic;
  color: #6c757d;
}

/* Sidebar */
.webinar-sidebar {
  position: sticky;
  top: 120px;
  height: calc(100vh - 140px);
  overflow-y: auto;
}

.sidebar-content {
  background: #fff;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  height: 100%;
}

.sidebar-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f1f1f;
  margin: 0 0 20px 0;
  font-family: 'Roboto', sans-serif;
}

/* Webinar Suggestions */
.webinar-suggestions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  padding-right: 8px;
}

/* Custom scrollbar for sidebar */
.webinar-suggestions::-webkit-scrollbar {
  width: 6px;
}

.webinar-suggestions::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.webinar-suggestions::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.webinar-suggestions::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.suggestion-item {
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
  height: 84px;
}

.suggestion-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.suggestion-link {
  display: flex;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.suggestion-link:hover {
  background: #f8f9fa;
  text-decoration: none;
  color: inherit;
}

.suggestion-thumbnail {
  position: relative;
  width: 120px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #f8f9fa;
}

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

.suggestion-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.suggestion-item:hover .suggestion-play-overlay {
  opacity: 1;
}

.suggestion-thumbnail-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  background: #f8f9fa;
}

.suggestion-info {
  flex: 1;
  min-width: 0;
}

.suggestion-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #1f1f1f;
  margin: 0 0 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: 'Roboto', sans-serif;
}

.suggestion-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #6c757d;
}

.suggestion-date {
  color: #6c757d;
}

.suggestion-category {
  background: #e9ecef;
  color: #495057;
  padding: 2px 6px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .webinar-layout {
    grid-template-columns: 1fr 350px;
    gap: 32px;
  }
}

@media (max-width: 992px) {
  .webinar-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .webinar-sidebar {
    position: static;
    order: 1;
  }
  
  .sidebar-content {
    padding: 0;
  }
  
  .webinar-suggestions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
  }
  
  .suggestion-link {
    flex-direction: column;
    text-align: center;
  }
  
  .suggestion-thumbnail {
    width: 100%;
    height: 120px;
  }
}

@media (max-width: 768px) {
  .webinar-layout {
    padding: 20px 16px;
    gap: 24px;
  }
  
  .webinar-description {
    padding: 0;
  }
  
  .webinar-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .webinar-meta__left {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .webinar-suggestions {
    grid-template-columns: 1fr;
  }
  
  .suggestion-link {
    flex-direction: row;
    text-align: left;
  }
  
  .suggestion-thumbnail {
    width: 120px;
    height: 68px;
  }
}

@media (max-width: 480px) {
  .breadcrumb-list {
    font-size: 12px;
    gap: 6px;
  }
  
  .breadcrumb-item:not(:last-child)::after {
    margin-left: 6px;
    font-size: 14px;
  }
  
  .webinar-description {
    padding: 0;
  }
  
  .sidebar-content {
    padding: 0;
  }
}
