/* Project Page Styles */
:root {
  --orange-custom: #f58634;
  --orange-custom-shadow: rgba(245, 134, 52, 0.4);
}

.project-card {
  transition: all 0.3s ease;
}

.project-card.hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Video Carousel Styles */
.video-carousel-container {
  position: relative;
  overflow: hidden;
}

.video-carousel {
  display: flex;
  gap: 12px;
  transition: transform 0.3s ease-in-out;
  will-change: transform;
}

.video-item {
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none; /* Remove default focus outline */
}

.video-item:hover {
  transform: translateY(-2px) scale(1.02);
}

.video-item:focus {
  outline: none; /* Remove default focus outline */
}

/* Selected video item styling */
.video-item.selected {
  border: 2px solid var(--orange-custom);
  box-shadow: 0 0 8px var(--orange-custom-shadow);
  border-radius: 0.5rem; /* rounded-lg */
}

.video-item.selected .bg-white {
  border: none; /* Remove inner border when selected */
}

.video-item.selected:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 12px var(--orange-custom-shadow);
}

/* Consistent thumbnail dimensions */
.video-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 0.5rem 0.5rem 0 0;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-item:hover .video-overlay {
  opacity: 1;
}

.play-button {
  width: 3rem;
  height: 3rem;
  background-color: var(--orange-custom);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.play-button:hover {
  background-color: #ea580c; /* Darker orange on hover */
  transform: scale(1.1);
}

.video-title {
  padding: 0.75rem;
  text-align: center;
}

.video-title h5 {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.25;
}

/* Navigation buttons */
.carousel-nav-btn {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--orange-custom);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.carousel-nav-btn:hover:not(:disabled) {
  background-color: #ea580c; /* Darker orange on hover */
  transform: scale(1.05);
}

.carousel-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Responsive breakpoints */
/* Mobile: 2 videos per slide */
@media (max-width: 767px) {
  .video-item {
    width: calc(50% - 6px);
    min-width: calc(50% - 6px);
    max-width: calc(50% - 6px);
  }
  
  .video-carousel {
    gap: 8px;
  }
  
  .play-button {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.875rem;
  }
  
  .video-title h5 {
    font-size: 0.6875rem;
  }
}

/* Tablet: 3 videos per slide */
@media (min-width: 768px) and (max-width: 1023px) {
  .video-item {
    width: calc(33.333% - 8px);
    min-width: calc(33.333% - 8px);
    max-width: calc(33.333% - 8px);
  }
}

/* Desktop: 4 videos per slide */
@media (min-width: 1024px) {
  .video-item {
    width: calc(25% - 9px);
    min-width: calc(25% - 9px);
    max-width: calc(25% - 9px);
  }
}

/* Pagination Styles */
.pagination-nav a,
.pagination-nav span {
  transition: all 0.2s ease;
  border-radius: 6px;
}

.pagination-nav a:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pagination-nav a:hover:not(.pagination-current) {
  background-color: #f97316 !important;
  color: white !important;
  border-color: #f97316 !important;
}

.pagination-current {
  background-color: var(--orange-custom) !important;
  border-color: var(--orange-custom) !important;
  box-shadow: 0 2px 4px var(--orange-custom-shadow);
}

.pagination-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Project Count Info Styles */
.project-count-info {
  background: linear-gradient(135deg, #f97316 0%, var(--orange-custom) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-weight: 600;
}