/* Base styles */
:root {
    --primary-color: #0d6efd;
    --primary-dark: #0b5ed7;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --body-bg: #f5f7fb;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
  }
  
  body {
    background-color: var(--body-bg);
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
  }
  
  /* Header styling */
  .navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 1rem;
  }
  
  .navbar-brand img {
    max-height: 40px;
    transition: var(--transition);
  }
  
  .navbar-brand:hover img {
    transform: scale(1.05);
  }
  
  .nav-link {
    font-weight: 500;
    padding: 0.5rem 0.7rem !important;
    border-radius: 4px;
    transition: var(--transition);
  }
  
  .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  /* Hero section */
  .hero-section {
    background: linear-gradient(120deg, #006400, #2e8b57);
    border-radius: 8px;
    padding: 4rem 2rem;
    color: white;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
  }
  
  .hero-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
  }
  
  .hero-section::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
  }
  
  .hero-section h1 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 2.8rem;
    line-height: 1.2;
    position: relative;
    z-index: 2;
  }
  
  .hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 2;
  }
  
  .search-form {
    position: relative;
    z-index: 2;
  }
  
  .search-form .form-control {
    border-radius: 30px;
    padding: 0.8rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: none;
    font-size: 1.1rem;
  }
  
  .search-form .btn {
    border-radius: 30px;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
  }
  
  .search-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  }
  
  /* Card styles */
  .card {
    border: none;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
  }
  
  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  }
  
  .card-header {
    padding: 1rem 1.5rem;
    font-weight: 600;
    border-bottom: none;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .card-footer {
    background-color: transparent;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  /* Feature cards */
  .feature-card {
    text-align: center;
    padding: 2rem 1rem;
    height: 100%;
  }
  
  .feature-card i {
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
  }
  
  .feature-card:hover i {
    transform: scale(1.1);
    background-color: var(--primary-color);
    color: white;
  }
  
  .feature-card h5 {
    font-weight: 600;
    margin-bottom: 1rem;
  }
  
  .feature-card .btn {
    margin-top: 1rem;
    border-radius: 30px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
  }
  
  /* List styles */
  .list-group-item {
    padding: 1rem 1.5rem;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
  }
  
  .list-group-item:last-child {
    border-bottom: none;
  }
  
  .list-group-item:hover {
    background-color: rgba(13, 110, 253, 0.05);
  }
  
  .list-group-item h5 {
    margin-bottom: 0.3rem;
    font-weight: 600;
  }
  
  .list-group-item small {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    border-radius: 4px;
    font-weight: 500;
  }
  
  /* Sidebar styles */
  .sidebar-card {
    margin-bottom: 1.5rem;
  }
  
  .sidebar-card .card-header {
    padding: 1rem;
  }
  
  .sidebar-card .list-unstyled li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .sidebar-card .list-unstyled li:last-child {
    border-bottom: none;
  }
  
  .sidebar-card .list-unstyled a {
    display: block;
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
  }
  
  .sidebar-card .list-unstyled a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
  }
  
  .sidebar-card .list-unstyled i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
    margin-right: 0.5rem;
  }
  
  .sidebar-card .list-unstyled a strong {
    font-weight: 600;
    color: var(--primary-color);
  }
  
  /* Video cards */
  .video-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
  }
  
  .video-container {
    border-radius: 4px;
    overflow: hidden;
  }
  
  .video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
  }
  
  .video-meta .badge {
    padding: 0.5rem 0.8rem;
    font-weight: 500;
  }
  
  /* AI Assistant widget */
  .ai-assistant-widget {
    background: linear-gradient(135deg, #17a2b8, #0f8599);
    border-radius: 8px;
    padding: 2rem;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
  }
  
  .ai-assistant-widget::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
  }
  
  .ai-assistant-widget i {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.2);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
  }
  
  .ai-assistant-widget h5 {
    font-weight: 600;
    margin-bottom: 1rem;
  }
  
  .ai-assistant-widget p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
  }
  
  .ai-assistant-widget .btn {
    background-color: white;
    color: var(--info-color);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    transition: var(--transition);
  }
  
  .ai-assistant-widget .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  }
  
  /* Footer styles */
  .footer {
    background-color: var(--dark-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0 2rem;
    margin-top: 3rem;
  }
  
  .footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
  }
  
  .footer ul {
    padding-left: 0;
    list-style: none;
  }
  
  .footer ul li {
    margin-bottom: 0.8rem;
  }
  
  .footer ul a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
  }
  
  .footer ul a:hover {
    color: white;
    text-decoration: underline;
  }
  
  .footer .social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: var(--transition);
  }
  
  .footer .social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
  }
  
  .footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  /* Responsive adjustments */
  @media (max-width: 991.98px) {
    .hero-section {
      padding: 3rem 1.5rem;
    }
    
    .hero-section h1 {
      font-size: 2.2rem;
    }
    
    .hero-section p {
      font-size: 1.1rem;
    }
  }
  
  @media (max-width: 767.98px) {
    .hero-section {
      padding: 2.5rem 1rem;
    }
    
    .hero-section h1 {
      font-size: 1.8rem;
    }
    
    .search-form .form-control,
    .search-form .btn {
      width: 100%;
      margin-bottom: 0.5rem;
    }
    
    .feature-card {
      margin-bottom: 1.5rem;
    }
  }
  
  /* Utility classes */
  .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
  }
  
  .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
  }
  
  .bg-primary {
    background-color: var(--primary-color) !important;
  }
  
  .bg-success {
    background-color: var(--success-color) !important;
  }
  
  .bg-info {
    background-color: var(--info-color) !important;
  }
  
  .text-primary {
    color: var(--primary-color) !important;
  }
  
  .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
  }
  
  .btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
  }
  
  /* Custom class for the main welcome panel */
  .welcome-panel {
    background: linear-gradient(120deg, #0056b3, #007bff);
    color: white;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
  }
  
  .welcome-panel::before {
    content: '';
    position: absolute;
    top: -5%;
    right: -5%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
  }
  
  .welcome-panel::after {
    content: '';
    position: absolute;
    bottom: -5%;
    left: -5%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
  }
  
  .welcome-panel h1 {
    font-weight: 700;
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
  }
  
  .welcome-panel p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
  }
  
  .welcome-panel .search-form {
    position: relative;
    z-index: 2;
  }
  
  /* Custom animation for the icons */
  @keyframes pulse {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.1);
    }
    100% {
      transform: scale(1);
    }
  }
  
  .animate-icon {
    animation: pulse 2s infinite;
  }
  
  /* Plyr custom styling */
  .plyr--video {
    border-radius: 8px;
    overflow: hidden;
  }
  
  .plyr__control--overlaid {
    background: var(--primary-color);
  }
  
  .plyr--full-ui input[type=range] {
    color: var(--primary-color);
  }
  
  .plyr__control.plyr__tab-focus,
  .plyr__control:hover,
  .plyr__control[aria-expanded=true] {
    background: var(--primary-dark);
  }
  /* Category Filter Styling */
.category-filter-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: none;
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .category-filter-card .card-body {
    padding: 0;
  }
  
  .category-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
  }
  
  .category-filter-btn {
    background-color: transparent;
    border: 1px solid #0d6efd;
    color: #0d6efd;
    border-radius: 6px;
    padding: 0.6rem 1.2rem;
    margin: 0.25rem;
    font-weight: 500;
    transition: all 0.2s ease;
  }
  
  .category-filter-btn:hover {
    background-color: rgba(13, 110, 253, 0.1);
    transform: translateY(-2px);
  }
  
  .category-filter-btn.active {
    background-color: #0d6efd;
    color: white;
  }
  
  .category-filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }
  
  .category-all-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
  }
  
  .category-all-btn:hover {
    background-color: #5c636a;
    transform: translateY(-2px);
  }
  
  @media (max-width: 768px) {
    .category-filter-wrapper {
      justify-content: center;
    }
    
    .category-title {
      text-align: center;
    }
    
    .all-videos-container {
      display: flex;
      justify-content: center;
      margin-bottom: 1rem;
    }
  }