.digital-font {
  font-family: 'Share Tech Mono', 'Orbitron', monospace;
  letter-spacing: 2px;
  font-size: 2.8rem;
  color: #fff;
  text-shadow:
      0 0 8px #1b5e20,
      0 0 2px #fff,
      0 1px 0 #388e3c;
}
.container-sholawat-modern {
  margin: 20px 0 0 0;
}
.sholawat-counter-btn {

color:#FFFFFF !important;
  border-radius: 20px !important; /* Lebih bulat */
  font-size: 2.5rem;
  padding: 3.2rem 6.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(145deg, #e0ffe7 0%, #b2f7ef 100%);
  color: #2e7d32;
  border: none;
  box-shadow:
      0 6px 20px 0 rgba(46,125,50,0.15), /* shadow luar */
      inset 0 2px 8px 0 rgba(255,255,255,0.7), /* emboss atas */
      inset 0 -4px 8px 0 rgba(46,125,50,0.10); /* emboss bawah */
  transition: box-shadow 0.2s, transform 0.2s;
  font-weight: bold;
}
.sholawat-counter-btn:hover, .sholawat-counter-btn:focus {
  box-shadow:
      0 10px 28px 0 rgba(46,125,50,0.22),
      inset 0 2px 8px 0 rgba(255,255,255,0.8),
      inset 0 -4px 8px 0 rgba(46,125,50,0.13);
  transform: translateY(-2px) scale(1.04);
  outline: none;
}
.counter-value {
  font-weight: bold;
  font-size: 4rem;
}
.counter-label {
  font-size: 1.5rem;
  margin-left: 0.2rem;
}
.counter-desc {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: #38b593;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Simple Image Slider with Overflow - W3Schools Style, with gap and aspect ratio */
.ads-img {
  width: 100%;
  max-width: 100vw;
  aspect-ratio: 2/1; /* 3780:1890 = 2:1 */
  overflow: hidden;
  position: relative;
  background: #f0f0f0;
  border-radius: 8px;
  margin: 0 auto;
}

.image-container {
  display: flex;
  gap: 16px; /* spacing between images */
  width: calc(200% + 16px); /* 2 images + gap */
  height: 100%;
  transition: transform 0.5s ease;
}

.image-item {
  flex: 0 0 50%; /* 2 images, each 50% */
  aspect-ratio: 2/1;
  background: #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 2/1;
  display: block;
  border-radius: 6px;
}

@media (max-width: 900px) {
  .ads-img {
      height: auto;
      aspect-ratio: 2/1;
  }
  .image-item {
      min-width: 0;
  }
}

.my-sholawat{
  font-size:11px;
}
.note{
  font-size: 12px;
}

/* Bottom Navigation Menu */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 8px 0 5px 0;
}

.bottom-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #666;
  font-size: 11px;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 5px 8px;
  border-radius: 8px;
  min-width: 60px;
  position: relative;
}

.bottom-nav-item i {
  font-size: 20px;
  margin-bottom: 3px;
  transition: all 0.3s ease;
}

.bottom-nav-item span {
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
}

.bottom-nav-item:hover {
  color: #00978A;
  transform: translateY(-2px);
}

.bottom-nav-item.active {
  color: #00978A;
  background: rgba(0, 151, 138, 0.1);
}

.bottom-nav-item.active i {
  transform: scale(1.1);
}

/* Special highlighting for Tasbih menu (center position) */
.bottom-nav-item:nth-child(3) {
  background: linear-gradient(145deg, #e0ffe7 0%, #b2f7ef 100%);
  color: #2e7d32;
  border: 2px solid #00978A;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
  transform: translateY(-3px);
}

.bottom-nav-item:nth-child(3) i {
  font-size: 24px !important;
  margin-bottom: 4px;
}

.bottom-nav-item:nth-child(3):hover {
  color: #1b5e20;
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(46, 125, 50, 0.3);
}

.bottom-nav-item:nth-child(3).active {
  color: #1b5e20;
  background: linear-gradient(145deg, #c8e6c9 0%, #a5d6a7 100%);
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .bottom-nav-item {
    font-size: 10px;
    min-width: 50px;
    padding: 4px 6px;
  }
  
  .bottom-nav-item i {
    font-size: 18px;
  }
  
  .bottom-nav-item span {
    font-size: 9px;
  }
}

/* Add bottom padding to main content to prevent overlap */
.wrap {
  padding-bottom: 80px;
}

/* Ensure the bottom nav doesn't interfere with other fixed elements */
.qm-nav.navbar-fixed-top {
  z-index: 1001;
}

.quran-player {
  bottom: 70px !important;
}

/* User List Section Styles */
.user-list-section {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  margin: 20px 16px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-list-header {
  background: linear-gradient(135deg, #00978A 0%, #00b894 100%);
  color: white;
  padding: 20px 24px;
  text-align: center;
}

.user-list-header h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.user-list-header h3 i {
  font-size: 20px;
}

.user-list-header p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

.user-list-container {
  padding: 0;
  max-height: 600px;
  overflow-y: auto;
}

.user-list-item {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
  position: relative;
}

.user-list-item:hover {
  background: rgba(0, 151, 138, 0.05);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 151, 138, 0.1);
}

.user-list-item:last-child {
  border-bottom: none;
}

.user-rank {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
}

.rank-number {
  font-size: 14px;
  font-weight: 600;
  color: #495057;
}

/* Top 3 ranking styles */
.user-list-item:nth-child(1) .user-rank {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
}

.user-list-item:nth-child(1) .rank-number {
  color: #856404;
}

.user-list-item:nth-child(2) .user-rank {
  background: linear-gradient(135deg, #c0c0c0 0%, #e0e0e0 100%);
}

.user-list-item:nth-child(2) .rank-number {
  color: #6c757d;
}

.user-list-item:nth-child(3) .user-rank {
  background: linear-gradient(135deg, #cd7f32 0%, #daa520 100%);
}

.user-list-item:nth-child(3) .rank-number {
  color: #8b4513;
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 16px;
  flex-shrink: 0;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.user-avatar:hover {
  border-color: #00978A;
  transform: scale(1.05);
}

.user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.user-name {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 4px 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-stats {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Professional City Display Styling */
.user-location {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #6c757d;
}

.user-location i {
  font-size: 16px;
  color: #00978A;
  animation: pulse 2s infinite;
  filter: drop-shadow(0 1px 2px rgba(0, 151, 138, 0.3));
  transition: all 0.3s ease;
}

.user-location:hover i {
  transform: scale(1.2);
  color: #00b894;
  animation: pulse 1s infinite;
}

/* Professional city display with accessibility features */
.city-name {
  font-weight: 600;
  color: #495057;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 4px 12px;
  border-radius: 12px;
  border: 1px solid #dee2e6;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  font-size: 12px;
  letter-spacing: 0.3px;
  backdrop-filter: blur(5px);
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Shimmer effect */
.city-name::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  transition: left 0.6s ease;
}

.city-name:hover::before {
  left: 100%;
}

/* Special effects for different cities */
.city-name[data-city*="Jakarta"] {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  color: white;
  border-color: #ff6b6b;
}

.city-name[data-city*="Bandung"] {
  background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
  color: white;
  border-color: #4ecdc4;
}

.city-name[data-city*="Surabaya"] {
  background: linear-gradient(135deg, #45b7d1 0%, #96c93d 100%);
  color: white;
  border-color: #45b7d1;
}

.city-name[data-city*="Medan"] {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: #667eea;
}

.city-name[data-city*="Semarang"] {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  border-color: #f093fb;
}

.city-name[data-city*="Makassar"] {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
  border-color: #4facfe;
}

.city-name[data-city*="Palembang"] {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  color: white;
  border-color: #43e97b;
}

.city-name[data-city*="Pekanbaru"] {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  color: white;
  border-color: #fa709a;
}

/* Focus states for accessibility */
.city-name:focus {
  outline: 2px solid #00978A;
  outline-offset: 2px;
  background: linear-gradient(135deg, #00978A 0%, #00b894 100%);
  color: white;
}

/* Enhanced hover states */
.city-name:hover {
  background: linear-gradient(135deg, #00978A 0%, #00b894 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 
    0 4px 12px rgba(0, 151, 138, 0.3),
    0 0 20px rgba(0, 151, 138, 0.2);
  border-color: #00978A;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Active state for click feedback */
.city-name:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 151, 138, 0.4);
}

/* Improved responsive design */
@media (max-width: 768px) {
  .user-location {
    font-size: 12px;
    margin-bottom: 6px;
  }
  
  .user-location i {
    font-size: 14px;
  }
  
  .city-name {
    padding: 3px 10px;
    font-size: 11px;
    border-radius: 10px;
  }
  
  .user-list-item {
    padding: 12px 20px;
  }
}

@media (max-width: 480px) {
  .user-location {
    font-size: 11px;
    margin-bottom: 5px;
  }
  
  .user-location i {
    font-size: 13px;
  }
  
  .city-name {
    padding: 2px 8px;
    font-size: 10px;
    border-radius: 8px;
  }
  
  .user-list-item {
    padding: 10px 16px;
  }
  
  .user-info {
    gap: 4px;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .city-name {
    border: 2px solid #000;
    background: #fff;
    color: #000;
  }
  
  .city-name:hover {
    background: #000;
    color: #fff;
    border-color: #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .city-name,
  .user-location i,
  .user-list-item {
    animation: none;
    transition: none;
  }
  
  .city-name:hover {
    transform: none;
  }
}

/* Pulse animation for location icon */
.user-location:hover i {
  transform: scale(1.2);
  color: #00b894;
  animation: pulse 1s infinite;
}

/* Enhanced user list item with city focus */
.user-list-item:hover .user-location {
  transform: translateX(4px);
  transition: transform 0.3s ease;
}

/* City name with glow effect on hover */
.city-name:hover {
  background: linear-gradient(135deg, #00978A 0%, #00b894 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 
    0 4px 12px rgba(0, 151, 138, 0.3),
    0 0 20px rgba(0, 151, 138, 0.2);
  border-color: #00978A;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Loading animation for city */
.city-name.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Ripple effect for city names */
.city-name .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 151, 138, 0.3);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Responsive design for city display */
@media (max-width: 768px) {
  .user-location {
    font-size: 12px;
    margin-bottom: 6px;
  }
  
  .user-location i {
    font-size: 14px;
  }
  
  .city-name {
    padding: 3px 10px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .user-location {
    font-size: 11px;
    margin-bottom: 5px;
  }
  
  .user-location i {
    font-size: 13px;
  }
  
  .city-name {
    padding: 2px 8px;
    font-size: 10px;
  }
}

.sholawat-count {
  background: linear-gradient(135deg, #00978A 0%, #00b894 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0, 151, 138, 0.3);
}

.sholawat-count i {
  font-size: 14px;
}

.user-badge {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-badge i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.user-list-item:hover .user-badge i {
  transform: scale(1.2);
}

/* Scrollbar styling */
.user-list-container::-webkit-scrollbar {
  width: 6px;
}

.user-list-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.user-list-container::-webkit-scrollbar-thumb {
  background: #00978A;
  border-radius: 3px;
}

.user-list-container::-webkit-scrollbar-thumb:hover {
  background: #007a6e;
}

/* Responsive Design */
@media (max-width: 768px) {
  .user-list-section {
    margin: 16px 12px;
  }
  
  .user-list-header {
    padding: 16px 20px;
  }
  
  .user-list-header h3 {
    font-size: 16px;
  }
  
  .user-list-header p {
    font-size: 13px;
  }
  
  .user-list-item {
    padding: 12px 20px;
  }
  
  .user-rank {
    width: 36px;
    height: 36px;
    margin-right: 12px;
  }
  
  .rank-number {
    font-size: 13px;
  }
  
  .user-avatar {
    width: 44px;
    height: 44px;
    margin-right: 12px;
  }
  
  .user-name {
    font-size: 15px;
  }
  
  .sholawat-count {
    padding: 3px 10px;
    font-size: 11px;
  }
  
  .user-badge {
    width: 28px;
    height: 28px;
  }
  
  .user-badge i {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .user-list-item {
    padding: 10px 16px;
  }
  
  .user-rank {
    width: 32px;
    height: 32px;
    margin-right: 10px;
  }
  
  .rank-number {
    font-size: 12px;
  }
  
  .user-avatar {
    width: 40px;
    height: 40px;
    margin-right: 10px;
  }
  
  .user-name {
    font-size: 14px;
  }
  
  .sholawat-count {
    padding: 2px 8px;
    font-size: 10px;
  }
  
  .sholawat-count i {
    font-size: 12px;
  }
  
  .user-badge {
    width: 24px;
    height: 24px;
  }
  
  .user-badge i {
    font-size: 14px;
  }
}

.ads-middle{
    font-size: 14px;
    background-color: #333333;
    color: #FFF;
    padding: 10px;
    text-align: center
}
.ads-middle img{
    width: 40px;
    float: left;
    margin-left:10px;
}

/* Enhanced Professional Ads Styling */
.ads-middle.ads-img {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    margin: 20px 16px;
    padding: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.ads-middle.ads-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.ads-middle.ads-img:hover::before {
    left: 100%;
}

.ads-middle.ads-img:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.ads-middle.ads-img .image-container {
    display: flex;
    gap: 20px;
    width: max-content;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 1.3, 0.5, 1);
    will-change: transform;
    cursor: grab;
    margin: 0 auto;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.ads-middle.ads-img .image-container:active {
    cursor: grabbing;
}

.ads-middle.ads-img .image-item {
    flex: 0 0 auto;
    width: 600px;
    max-width: 90vw;
    aspect-ratio: 2/1;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.ads-middle.ads-img .image-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

.ads-middle.ads-img .image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 2/1;
    display: block;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.ads-middle.ads-img .image-item:hover img {
    transform: scale(1.05);
}

/* Ads Header Section */
.ads-middle.ads-img::after {
    content: '📢 Flayer';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Design for Enhanced Ads */
@media (max-width: 900px) {
    .ads-middle.ads-img {
        margin: 16px 12px;
        padding: 20px;
    }
    
    .ads-middle.ads-img .image-container {
        gap: 16px;
        padding: 6px;
    }
    
    .ads-middle.ads-img .image-item {
        width: 90vw;
        border-radius: 10px;
    }
    
    .ads-middle.ads-img .image-item img {
        border-radius: 8px;
    }
}

@media (max-width: 768px) {
    .ads-middle.ads-img {
        margin: 12px 8px;
        padding: 16px;
        border-radius: 12px;
    }
    
    .ads-middle.ads-img .image-container {
        gap: 12px;
        padding: 4px;
    }
    
    .ads-middle.ads-img .image-item {
        border-radius: 8px;
    }
    
    .ads-middle.ads-img .image-item img {
        border-radius: 6px;
    }
    
    .ads-middle.ads-img::after {
        font-size: 11px;
        padding: 4px 12px;
        top: 8px;
    }
}

@media (max-width: 480px) {
    .ads-middle.ads-img {
        margin: 8px 4px;
        padding: 12px;
        border-radius: 10px;
    }
    
    .ads-middle.ads-img .image-container {
        gap: 8px;
        padding: 3px;
    }
    
    .ads-middle.ads-img .image-item {
        border-radius: 6px;
    }
    
    .ads-middle.ads-img .image-item img {
        border-radius: 4px;
    }
    
    .ads-middle.ads-img::after {
        font-size: 10px;
        padding: 3px 10px;
        top: 6px;
    }
}

.dash-profile-img{
  border: 2px solid rgb(234, 234, 234);
  margin: 5px;
}
.dash-profile-name{
  margin-top: 0px;
}

/* Islamic Video Gallery Styles */
.video-gallery-container {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  padding: 20px 0;
}

/* Header Section */
.video-gallery-header {
  background: linear-gradient(135deg, #00978A 0%, #00b894 100%);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 151, 138, 0.3);
  margin: 0 16px 30px 16px;
  padding: 40px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-gallery-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="islamic" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23islamic)"/></svg>');
  opacity: 0.3;
}

.video-header-content {
  position: relative;
  z-index: 2;
}

.video-main-title {
  color: white;
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.video-main-title i {
  font-size: 36px;
  animation: pulse 2s infinite;
}

.video-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  margin: 0;
  font-weight: 400;
}

/* Cache Status Styling */
.cache-status {
  margin-top: 12px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-block;
}

.cache-status small {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cache-status i {
  font-size: 14px;
  animation: pulse 2s infinite;
}

.cache-status:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  transition: all 0.3s ease;
}

/* Category Filter */
.video-category-filter {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  margin: 0 16px 30px 16px;
  padding: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.category-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.category-tab {
  background: #f8f9fa;
  border: 2px solid transparent;
  border-radius: 25px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
  justify-content: center;
}

.category-tab:hover {
  background: #e9ecef;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-tab.active {
  background: linear-gradient(135deg, #00978A 0%, #00b894 100%);
  color: white;
  border-color: #00978A;
  box-shadow: 0 4px 16px rgba(0, 151, 138, 0.3);
}

.category-tab i {
  font-size: 16px;
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  padding: 0 16px;
  margin-bottom: 40px;
}

.video-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

/* Video Thumbnail */
.video-thumbnail {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.video-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail-img {
  transform: scale(1.05);
}

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

.video-card:hover .video-overlay {
  opacity: 1;
}

.play-button {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.play-button i {
  font-size: 24px;
  color: #00978A;
  margin-left: 4px;
}

.play-button:hover {
  transform: scale(1.1);
  background: white;
}

.video-duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.video-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #00978A 0%, #00b894 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Video Info */
.video-info {
  padding: 20px;
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 8px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-speaker {
  font-size: 14px;
  color: #6c757d;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.video-speaker i {
  font-size: 16px;
  color: #00978A;
}

.video-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.video-views {
  font-size: 12px;
  color: #6c757d;
  display: flex;
  align-items: center;
  gap: 4px;
}

.video-views i {
  font-size: 14px;
  color: #00978A;
}

.video-description {
  font-size: 12px;
  color: #6c757d;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Load More Button */
.video-load-more {
  text-align: center;
  padding: 20px 0;
}

.load-more-btn {
  background: linear-gradient(135deg, #00978A 0%, #00b894 100%);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0, 151, 138, 0.3);
}

.load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 151, 138, 0.4);
}

.load-more-btn i {
  font-size: 18px;
}

/* Improved animations */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .video-gallery-header {
    margin: 0 12px 24px 12px;
    padding: 30px 20px;
  }
  
  .video-main-title {
    font-size: 24px;
  }
  
  .video-main-title i {
    font-size: 28px;
  }
  
  .video-subtitle {
    font-size: 14px;
  }
  
  .video-category-filter {
    margin: 0 12px 24px 12px;
    padding: 16px;
  }
  
  .category-tabs {
    gap: 8px;
  }
  
  .category-tab {
    padding: 10px 16px;
    font-size: 13px;
    min-width: 100px;
  }
  
  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    padding: 0 12px;
  }
  
  .video-thumbnail {
    height: 180px;
  }
  
  .video-info {
    padding: 16px;
  }
  
  .video-title {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .video-gallery-header {
    margin: 0 8px 20px 8px;
    padding: 24px 16px;
    border-radius: 16px;
  }
  
  .video-main-title {
    font-size: 20px;
    flex-direction: column;
    gap: 8px;
  }
  
  .video-main-title i {
    font-size: 24px;
  }
  
  .video-subtitle {
    font-size: 13px;
  }
  
  .video-category-filter {
    margin: 0 8px 20px 8px;
    padding: 12px;
  }
  
  .category-tabs {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }
  
  .category-tab {
    width: auto;
    min-width: 80px;
    padding: 8px 12px;
    font-size: 12px;
    justify-content: center;
  }
  
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 8px;
  }
  
  .video-thumbnail {
    height: 120px;
  }
  
  .video-info {
    padding: 12px;
  }
  
  .video-title {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }
  
  .video-speaker {
    font-size: 12px;
    margin: 0 0 8px 0;
  }
  
  .video-speaker i {
    font-size: 14px;
  }
  
  .video-views {
    font-size: 11px;
  }
  
  .video-views i {
    font-size: 12px;
  }
  
  .video-description {
    font-size: 11px;
    -webkit-line-clamp: 2;
  }
  
  .video-duration {
    font-size: 10px;
    padding: 2px 6px;
    bottom: 8px;
    right: 8px;
  }
  
  .video-category-badge {
    font-size: 10px;
    padding: 2px 8px;
    top: 8px;
    left: 8px;
  }
  
  .play-button {
    width: 40px;
    height: 40px;
  }
  
  .play-button i {
    font-size: 18px;
  }
  
  .load-more-btn {
    padding: 12px 24px;
    font-size: 14px;
  }
}