/* Top News Component Styles */
.top-news-container {
  width: 100%;
  margin: 20px 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.top-news-header {
  background: linear-gradient(135deg, #850E00, #a61100);
  color: white;
  padding: 15px 20px;
  position: relative;
}

.top-news-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  text-align: center;
}

.header-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 20px;
}

@media (max-width: 1200px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 15px;
  }
}

.news-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: row;
  height: 140px;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-image-container {
  position: relative;
  width: 140px;
  height: 100%;
  overflow: hidden;
  flex-shrink: 0;
}

.news-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-image {
  transform: scale(1.05);
}

.news-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 40px;
}

.video-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(133, 14, 0, 0.9);
  color: white;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.news-content {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-description {
  font-size: 12px;
  color: #666;
  margin: 0 0 8px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #888;
  margin-top: auto;
}

.news-time,
.news-views {
  display: flex;
  align-items: center;
  gap: 3px;
}

.news-category {
  position: absolute;
  top: 8px;
  right: 8px;
}

.category-tag {
  background: #850E00;
  color: white;
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 500;
  text-transform: capitalize;
}

.view-more-container {
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
}

.view-more-btn {
  background: linear-gradient(135deg, #850E00, #a61100);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.view-more-btn:hover {
  background: linear-gradient(135deg, #a61100, #c41400);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(133, 14, 0, 0.3);
}

.loading-spinner {
  text-align: center;
  padding: 40px 20px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #850E00;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.error-message {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.retry-btn {
  background: #850E00;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s ease;
}

.retry-btn:hover {
  background: #a61100;
}

/* Responsive Design */
@media (max-width: 768px) {
  .top-news-header h2 {
    font-size: 20px;
  }

  .news-card {
    height: 120px;
  }

  .news-image-container {
    width: 120px;
  }

  .news-title {
    font-size: 13px;
  }

  .news-description {
    font-size: 11px;
  }

  .news-meta {
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  .top-news-container {
    margin: 10px 0;
    border-radius: 0;
  }

  .top-news-header {
    padding: 12px 15px;
  }

  .news-card {
    height: 100px;
    flex-direction: column;
  }

  .news-image-container {
    width: 100%;
    height: 60px;
  }

  .news-content {
    padding: 8px;
  }

  .view-more-btn {
    padding: 10px 25px;
    font-size: 14px;
  }
}

/* RTL Support for Gujarati */
.custom-gujrati-font {
  direction: ltr;
  text-align: left;
}

/* Animation for news cards */
.news-card {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered animation for multiple cards */
.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }
.news-card:nth-child(4) { animation-delay: 0.4s; }
.news-card:nth-child(5) { animation-delay: 0.5s; }
.news-card:nth-child(6) { animation-delay: 0.6s; }
.news-card:nth-child(7) { animation-delay: 0.7s; }
.news-card:nth-child(8) { animation-delay: 0.8s; }

/* Category News Styles */
.category-news-container {
  min-height: 100vh;
}

.category-header {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  padding: 40px 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
  position: relative;
  overflow: hidden;
}

.category-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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

.category-title-section {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.category-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.category-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.category-title {
  font-size: 3rem;
  font-weight: 800;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

.category-description {
  font-size: 1.2rem;
  opacity: 0.95;
  margin: 0;
  line-height: 1.6;
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.category-news-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.news-item {
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.news-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.load-more-section {
  text-align: center;
  margin: 50px 0;
}

.load-more-btn {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  border: none;
  padding: 18px 45px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
  position: relative;
  overflow: hidden;
}

.load-more-btn::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;
}

.load-more-btn:hover::before {
  left: 100%;
}

.load-more-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

.load-more-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.loading-spinner-small {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.pagination-info {
  text-align: center;
  margin-top: 40px;
  padding: 25px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  border: 1px solid #dee2e6;
}

.pagination-text {
  color: #495057;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

/* Breadcrumb Styles */
.breadcrumb-nav {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 18px 0;
  border-bottom: 1px solid #dee2e6;
  margin-bottom: 25px;
}

.breadcrumb-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.breadcrumb-item {
  color: #6c757d;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 6px;
  position: relative;
}

.breadcrumb-item:hover {
  color: #dc3545;
  background: rgba(220, 53, 69, 0.1);
  transform: translateY(-1px);
}

.breadcrumb-item.current {
  color: #dc3545;
  font-weight: 700;
  pointer-events: none;
  background: rgba(220, 53, 69, 0.1);
}

.breadcrumb-separator {
  color: #adb5bd;
  font-size: 1.2rem;
  font-weight: bold;
  user-select: none;
}

/* Animations */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-item {
  animation: fadeInUp 0.6s ease forwards;
}

.news-item:nth-child(1) { animation-delay: 0.1s; }
.news-item:nth-child(2) { animation-delay: 0.2s; }
.news-item:nth-child(3) { animation-delay: 0.3s; }
.news-item:nth-child(4) { animation-delay: 0.4s; }

/* Responsive Design */
@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
  }
  
  .category-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .category-header {
    padding: 25px 15px;
    margin-bottom: 20px;
  }

  .category-title {
    font-size: 2rem;
  }

  .category-title-section {
    gap: 15px;
    flex-direction: column;
    text-align: center;
  }

  .category-icon {
    width: 50px;
    height: 50px;
  }

  .category-description {
    font-size: 1.1rem;
    text-align: center;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .category-news-content {
    padding: 0 15px;
  }

  .load-more-btn {
    padding: 15px 35px;
    font-size: 1rem;
  }

  .breadcrumb-container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .category-title {
    font-size: 1.6rem;
  }

  .category-description {
    font-size: 1rem;
  }

  .breadcrumb-item {
    font-size: 0.9rem;
    padding: 6px 10px;
  }

  .pagination-info {
    padding: 20px 15px;
  }
}

/* Video Category Page Styles */

.video-category-container {
  width: 100%;
  margin: 20px 0;
}

/* Custom Video Section Styles (for category 9 videos) */
/* .custom-video-section {
  margin-bottom: 20px;
} */

.custom-video-section .popupbtn {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* .custom-video-section .blog-read-content {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  height: 100%;
} */

#news-container .custom-video-section:nth-child(1) {
  border-top: 0 !important;
}



.custom-video-section .card {
  border: none;
  background: transparent;
}

.custom-video-section .img-wrappers {
  position: relative;
  overflow: hidden;
  height: auto;
}

.custom-video-section .videonewscls {
  position: relative;
  
  overflow: hidden;
}

.custom-video-section .lazyload-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-video-section .gridimg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* .custom-video-section:hover .gridimg {
  transform: scale(1.05);
} */

.custom-video-section .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  color: white;
  text-shadow: 0 0 10px rgba(0,0,0,0.7);
  pointer-events: none;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.custom-video-section:hover .play-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.custom-video-section .video-title {
  padding: 15px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-video-section:hover .video-title {
  color: #fff;
}

/* Subcategory Navigation */
.video-subcategories {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.subcategory-links {
  padding: 15px 20px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.subcategory-link {
  display: inline-block;
  padding: 8px 16px;
  background: #fff;
  color: #333;
  text-decoration: none;
  
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.subcategory-link:hover {
  background: #850E00;
  color: white;
  border-color: #850E00;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(133, 14, 0, 0.3);
}

.subcategory-link.active {
  background: #850E00;
  color: white;
  border-color: #850E00;
}

/* Video Grid Item Styles */
.video-thumbnail {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.video-thumbnail .lazyload-wrapper {
  position: relative;
  display: block;
}

.video-thumbnail img {
  transition: transform 0.3s ease;
  border-radius: 8px;
}

.video-thumbnail:hover img {
  transform: scale(1.05);
}

.video-play-overlay {
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.video-thumbnail:hover .video-play-overlay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

/* Video Category Tags */
.video-categories {
  margin-top: 10px;
}

.category-tag {
  display: inline-block;
  background: #850E00;
  color: white;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  margin-right: 6px;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Video Grid Layout */
.video-grid-item {
  margin-bottom: 30px;
  transition: transform 0.3s ease;
}

.video-grid-item:hover {
  transform: translateY(-5px);
}

.video-grid-item .blog-read-content {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
  border: 1px solid #f0f0f0;
}

.video-grid-item .blog-read-content:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-grid-item .custom-blog-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-grid-item .custom-blog-title:hover {
  color: #850E00;
}

.video-grid-item .blog-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-grid-item .last-update-blog {
  font-size: 12px;
  color: #999;
  font-style: italic;
}

/* Loading States */
.video-loading {
  text-align: center;
  padding: 50px 20px;
}

.video-loading-more {
  text-align: center;
  padding: 20px;
  border-top: 1px solid #eee;
  margin-top: 20px;
}

.video-end-message {
  text-align: center;
  padding: 20px;
  color: #666;
  border-top: 1px solid #eee;
  margin-top: 20px;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  .subcategory-links {
    padding: 10px 15px;
    gap: 8px;
  }

  .subcategory-link {
    padding: 6px 12px;
    font-size: 13px;
    margin-bottom: 8px;
  }

  .video-grid-item .custom-blog-title {
    font-size: 15px;
  }

  .video-grid-item .blog-excerpt {
    font-size: 13px;
  }

  .video-play-overlay {
    font-size: 36px;
  }

  /* Custom video section responsive */
  .custom-video-section {
    margin-bottom: 15px;
  }

  .custom-video-section .play-icon {
    font-size: 36px;
  }

  .custom-video-section .video-title {
    padding: 12px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .video-category-container {
    margin: 10px 0;
  }

  .subcategory-links {
    flex-direction: column;
    gap: 8px;
  }

  .subcategory-link {
    text-align: center;
    width: 100%;
  }

  .video-grid-item .custom-blog-title {
    font-size: 14px;
  }

  .video-play-overlay {
    font-size: 32px;
  }

  .category-tag {
    font-size: 10px;
    padding: 2px 6px;
  }

  /* Custom video section mobile */
  .custom-video-section {
    margin-bottom: 0px;
  }

  .custom-video-section .play-icon {
    font-size: 32px;
  }

  .custom-video-section .video-title {
    padding: 10px;
    font-size: 14px;
  }

  /* Make videos take full width on mobile */
  .custom-video-section.col-6 {
    flex: 0 0 100%;
    max-width: 50%;
  }
}

/* Animation for video items */
.video-grid-item {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced Loading Spinner Styles */
.loading-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #850E00;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-spinner-small {
  width: 24px;
  height: 24px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #850E00;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-spinner-large {
  width: 60px;
  height: 60px;
  border: 6px solid #f3f3f3;
  border-top: 6px solid #850E00;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Enhanced Loading Message */
.loading-message {
  margin-top: 15px;
  color: #666;
  font-size: 14px;
  text-align: center;
  font-weight: 500;
  line-height: 1.4;
}

/* Loading Dots Animation */
.loading-dots-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.loading-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #850E00;
  animation: loadingDots 1.4s infinite ease-in-out both;
}

.loading-dot:nth-child(1) { animation-delay: -0.32s; }
.loading-dot:nth-child(2) { animation-delay: -0.16s; }
.loading-dot:nth-child(3) { animation-delay: 0s; }

@keyframes loadingDots {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* Loading Pulse Animation */
.loading-pulse {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #850E00;
  animation: loadingPulse 1.5s infinite ease-in-out;
}

.loading-pulse-small {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #850E00;
  animation: loadingPulse 1.5s infinite ease-in-out;
}

.loading-pulse-large {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #850E00;
  animation: loadingPulse 1.5s infinite ease-in-out;
}

@keyframes loadingPulse {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
  100% {
    transform: scale(0.8);
    opacity: 1;
  }
}

/* Enhanced Loading Container */
.loading-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.9);
  /* border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2); */
}

/* Loading Container Variants */
.loading-container.compact {
  padding: 20px;
  background: transparent;
  box-shadow: none;
  border: none;
}

.loading-container.inline {
  flex-direction: row;
  gap: 15px;
  padding: 15px 20px;
}

.loading-container.inline .loading-message {
  margin-top: 0;
  margin-left: 10px;
}

/* Video thumbnail aspect ratio */
.video-thumbnail .lazyload-wrapper {
  aspect-ratio: 16/9;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Enhanced hover effects */
.video-grid-item .flexAlink {
  text-decoration: none;
  color: inherit;
  display: block;
}

.video-grid-item .flexAlink:hover {
  text-decoration: none;
  color: inherit;
}

/* Video duration badge (if available) */
.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

/* Video view count (if available) */
.video-views {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

.video-views i {
  margin-right: 4px;
  color: #999;
}

/* Video Category Header Styles */
/*.blogs-head-bar.first {
  background: linear-gradient(135deg, #850E00, #a61100);
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 15px rgba(133, 14, 0, 0.2);
}

.blogs-head-bar.first h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}*/

.blogs-head-bar.first .custom-link-btn {
  background: rgba(255, 255, 255, 0.2);
  padding: 0px 0 0px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

/* Enhanced Video Grid Styles */
.video-category-container .blogs-main-section {
  background: transparent;
  padding: 0;
}

.video-category-container .blog-content {
  margin: 0;
}

/* Video Item Enhanced Styles */
.video-grid-item .blog-read-content.custom-top-news {
  padding: 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.video-grid-item .blog-read-content.custom-top-news:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.video-grid-item .flexAlink {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.video-grid-item .custom-blog-title {
  padding: 15px 15px 10px 15px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-grid-item .hover-image {
  position: relative;
  margin: 0;
  flex-shrink: 0;
}

.video-grid-item .blog-excerpt {
  padding: 0 15px 10px 15px;
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}

.video-grid-item .last-update-blog {
  padding: 0 15px 15px 15px;
  margin: 0;
  font-size: 12px;
  color: #999;
  font-style: italic;
  margin-top: auto;
}

/* Video Thumbnail Enhancements */
.video-thumbnail .lazyload-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  background: #f5f5f5;
  overflow: hidden;
}

.video-thumbnail .gridimg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-thumbnail:hover .gridimg {
  transform: scale(1.05);
}

.video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  color: white;
  text-shadow: 0 0 10px rgba(0,0,0,0.7);
  pointer-events: none;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.video-thumbnail:hover .video-play-overlay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .blogs-head-bar.first {
    flex-direction: inherit;
    text-align: center;
    gap: 10px;
  }

  .blogs-head-bar.first h2 {
    font-size: 20px;
  }

  .video-grid-item .custom-blog-title {
    font-size: 15px;
    padding: 12px 12px 8px 12px;
  }

  .video-grid-item .blog-excerpt {
    padding: 0 12px 8px 12px;
    font-size: 13px;
  }

  .video-grid-item .last-update-blog {
    padding: 0 12px 12px 12px;
  }

  .video-play-overlay {
    font-size: 36px;
  }
}


/* Search Page Styles */

.search-page {
  min-height: 100vh;
}

/* Search Header */
.search-header {
  background: linear-gradient(135deg, #850E00, #a61100);
  padding: 30px 0 40px 0;
  margin-bottom: 30px;
  width: 100%;
}

.search-header .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.search-title {
  color: white;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 25px;
  font-family: 'Noto Sans Gujarati', sans-serif;
}

.search-form {
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.search-group {
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.search-group:focus-within {
  background: white;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.search-group img {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

.search-input {
  background: transparent;
  border: none;
  outline: none;
  flex: 1;
  padding: 8px 15px;
  font-size: 16px;
  color: #333;
  font-family: 'Noto Sans Gujarati', sans-serif;
}

.search-input::placeholder {
  color: #666;
  opacity: 0.8;
}

.search-btn {
  background: #850E00;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Noto Sans Gujarati', sans-serif;
}

.search-btn:hover {
  background: #a61100;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(133, 14, 0, 0.3);
}

/* Search Suggestions */
.search-suggestion {
  /* max-width: 600px; */
  margin: 10px auto;
}

.search-suggestion ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.search-suggestion ul li a {
  color: #2c2829e6;
  font-size: 13px;
  font-family: 'Noto Sans Gujarati', sans-serif;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 12px;
  background: #ffffff1a;
  border-radius: 15px;
  transition: all 0.3s ease;
  border: 1px solid #14131333;
}

.search-suggestion ul li a:hover {
  background: #850E00;
  color: white;
  transform: translateY(-1px);
}

/* Search Results Section */


.results-header {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.results-title {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  font-family: 'Noto Sans Gujarati', sans-serif;
}

.results-count {
  font-size: 14px;
  color: #666;
  margin: 0;
  font-family: 'Noto Sans Gujarati', sans-serif;
}

/* Loading States */
.search-loading {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.loading-more {
  text-align: center;
  padding: 30px 20px;
  background: white;
  border-radius: 12px;
  margin-top: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* No Results */
.no-results {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.no-results h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 10px;
  font-family: 'Noto Sans Gujarati', sans-serif;
}

.no-results p {
  font-size: 16px;
  color: #666;
  margin: 0;
  font-family: 'Noto Sans Gujarati', sans-serif;
}

/* End of Results */
.end-of-results {
  text-align: center;
  padding: 30px 20px;
  background: white;
  border-radius: 12px;
  margin-top: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-top: 3px solid #850E00;
}

.end-of-results p {
  font-size: 16px;
  color: #666;
  margin: 0;
  font-family: 'Noto Sans Gujarati', sans-serif;
  font-style: italic;
}

/* Search Results Grid */
.search-page .blogs-main-section {
  background: transparent;
  padding: 0;
}

.search-page .blog-content {
  margin: 0;
}

/* Ensure search section takes full width on search page */
.search-page .search-section {
  width: 100% !important;
  max-width: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .search-header {
    padding: 20px 0 30px 0;
  }
  
  .search-title {
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .search-group {
    padding: 10px 15px;
    margin: 0 15px;
  }
  
  .search-input {
    font-size: 14px;
    padding: 6px 10px;
  }
  
  .search-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  .search-suggestion {
    margin: 0px;
  }
  
  .search-suggestion ul {
    gap: 3px;
    margin-top: 10px;
    margin-bottom: 10px;
  }
  
  .search-suggestion ul li a {
    font-size: 12px;
    padding: 5px 10px;
  }
  
  .results-title {
    font-size: 20px;
  }
  
  .results-count {
    font-size: 13px;
    padding: 10px 0 0 0;
  }
  
  .search-results-section {
    padding: 0 0px 40px 0px;
  }

  .results-header {
    margin: 0 0 20px 0;
    padding: 15px;
  }

  /* Ensure search section is full width on mobile */
  .search-page .search-section {
    width: 100% !important;
    margin: 15px 0 !important;
    padding: 15px !important;
  }
}

@media (max-width: 480px) {
  .search-title {
    font-size: 20px;
  }
  
  .search-group {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
  }
  
  .search-input {
    width: 100%;
    text-align: center;
  }
  
  .search-btn {
    width: 100%;
    padding: 12px;
  }
  
  /* .search-suggestion ul {
    flex-direction: column;
    align-items: center;
  } */
  
  /* .search-suggestion ul li a {
    display: block;
    text-align: center;
    min-width: 120px;
  } */
}

/* Enhanced Loading Spinner for Search */
.search-loading .loading-container,
.loading-more .loading-container {
  padding: 20px;
}

/* Search Result Item Animations */
.search-page .blog-read-content {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Search Input Focus Effects */
.search-input:focus {
  color: #333;
}

.search-input:focus::placeholder {
  opacity: 0.5;
}

/* Search Button Active State */
.search-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(133, 14, 0, 0.3);
}

