/* ===== Videos Section ===== */
.video-carousel-section {
  margin-bottom: 28px;
  max-width: 700px;
}

.videos-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.videos-section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #202124;
}

.videos-section-label svg {
  width: 24px;
  height: 24px;
  color: #cc0000;
}

.videos-section-count {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 14px;
  color: #70757a;
  font-weight: 400;
}

/* Scrollable row (3+ videos) */
.videos-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 0 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

/* Grid layout for 1-2 videos (no scroll) */
.videos-scroll.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  overflow-x: visible;
  scroll-snap-type: none;
}

.videos-scroll::-webkit-scrollbar { display: none; }

.v-scroll-card {
  flex-shrink: 0;
  width: 260px;
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e0e0e0;
  transition: box-shadow 0.2s;
}

.videos-grid .v-scroll-card {
  width: 100%;
  scroll-snap-align: none;
}

.v-scroll-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.v-scroll-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #e8eaed;
}

.v-scroll-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.v-scroll-card:hover .v-scroll-thumb img {
  transform: scale(1.05);
}

.v-scroll-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  background: rgba(0,0,0,0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.v-scroll-card:hover .v-scroll-play { opacity: 1; }

.v-scroll-play svg {
  width: 20px;
  height: 20px;
  margin-left: 3px;
}

.v-scroll-info {
  padding: 12px 14px;
}

.v-scroll-title {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #202124;
  line-height: 1.4;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.v-scroll-desc {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: 12px;
  color: #5f6368;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 768px) {
  .v-scroll-card { width: 240px; }
  .videos-grid .v-scroll-card { width: 100%; }
  .v-scroll-title { font-size: 13px; }
  .v-scroll-desc { font-size: 11px; }
  .v-scroll-info { padding: 10px 12px; }
  .video-carousel-section { margin-bottom: 22px; }
  .videos-section-label { font-size: 18px; }
  .videos-section-label svg { width: 20px; height: 20px; }
  .videos-scroll { gap: 12px; }
  .videos-grid { gap: 12px; }
}

@media (max-width: 480px) {
  .v-scroll-card { width: 200px; }
  .videos-grid .v-scroll-card { width: 100%; }
  .videos-scroll { gap: 10px; }
  .v-scroll-title { font-size: 12px; }
  .v-scroll-info { padding: 8px 10px; }
  .videos-scroll.videos-grid { grid-template-columns: 1fr; gap: 10px; }
}
