
/* style.css (Main Page) - Updated styling  */
/* ... (Your existing CSS from style.css - keep everything else) ... */

.video-card {
    position: relative; /*  For absolute positioning of the video frame */
    overflow: hidden;  /* Ensures the frame doesn't overflow */
}

.video-card:hover .video-frame {
    opacity: 1;   /* Show frame on Hover */
}

  .video-frame { /* Frame that appears when hovering over */
       position: absolute;
       top: 0;
       left: 0;
       width: 100%;
       height:100%;
       object-fit: cover;
       opacity: 0; /* Hidden by default */
       transition: opacity 0.3s ease;
       border-radius: 8px;
  }

/* Pagination Styles */
.pagination {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px; /* Added space below pagination */
}

.pagination a {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.pagination a:hover,
.pagination a.active {
    background-color: #f00060;
}


.next-page-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #f00060;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  margin-top: 20px;
}

.next-page-button:hover {
    background-color: #d80a59; /* Darker pink on hover */
}

/* Responsive Design */
@media (max-width: 768px) { /* Example: Adjust for smaller screens */
    .video-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Adjust column width */
    }
}

/* Even More Responsive  */
@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: repeat(1, 1fr); /* One column on very small screens */
    }
    .pagination a {
        padding: 8px 12px;   /* Smaller pagination buttons */
        margin: 0 3px;
    }
     .next-page-button {
        padding: 8px 16px;  /* Smaller next button */
    }
}

/* Hide menu by default on mobile */
.mobile-hidden {
display: none;
}

/* Show menu when active */
.mobile-hidden.active {
display: block;
}

/* Style for the toggle button */
.menu-toggle {
display: block;
cursor: pointer;
font-size: 50px;
padding: 0px;
background-color:rgb(0, 0, 0);
color: white;
border: none;
outline: none;

position: absolute; /* Position it relative to the nearest positioned ancestor */
top: 11px; /* Moves it down (Y-axis) */
left: 351px; /* Moves it right (X-axis) */
}


/* Ensure the menu is visible on larger screens */
@media (min-width: 768px) {
.mobile-hidden {
  display: block; /* Show menu by default on larger screens */
}
.menu-toggle {
  display: none; /* Hide toggle button on large screens */
}
}


.search-bar {
display: flex;
justify-content: center; /* Centering the search bar */
margin: 10px 0;
}

.search-bar form {
display: flex;
align-items: center;
border-radius: 5px;
overflow: hidden; /* Ensures the button and input align properly */
width: 470px;
max-width: 800px; /* Adjust width as needed */
}

.search-bar input {
flex: 1;
padding: 9px;
border: none;
outline: none;
}

.search-bar button {
background: #f00060; /* Change to desired color */
color: white;
border: none;
padding: 10px 15px;
cursor: pointer;
}

.search-bar button i {
font-size: 16px;
}

.search-bar button:hover {
background: #d80a59; /* Darker shade on hover */
}




   .category-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 20px;
      margin-top: 20px;
  }
  .category-card {
      border: 1px solid #ddd;
      border-radius: 8px;
      overflow: hidden;
      transition: transform 0.2s ease;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  .category-card:hover{
      transform: translateY(-5px);
      box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }
  .category-card a {
      display: block;
      text-decoration: none;
      color: #333;
      padding: 0;
  }
  .category-image {
      width: 100%;
      height: 180px; /* Adjust image height */
      object-fit: contain;
      border-radius: 8px 8px 0 0;
  }
  .category-name {
      padding: 15px;
      text-align: center;
      font-weight: 500;
      color: #ffff;
      font-size: 1.1rem;
  }
  .video-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 20px;
      margin-top: 20px;
  }
  .video-card {
      /* Copy styles video-card from index.php or player.php  */
      position: relative; /*  For absolute positioning of the video frame */
      overflow: hidden;  /* Ensures the frame doesn't overflow */
      border: 1px solid #ddd;
      border-radius: 8px;
       transition: transform 0.2s ease;
  }
 .video-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
 }
  .video-card:hover .video-frame {
    opacity: 1;   /* Show frame on Hover */
  }
  .video-frame { /* Frame that appears when hovering over */
       position: absolute;
       top: 0;
       left: 0;
       width: 100%;
       height:100%;
       object-fit: cover;
       opacity: 0; /* Hidden by default */
       transition: opacity 0.3s ease;
       border-radius: 8px;
  }
  .video-card a {
      text-decoration: none;
      color: #fffefe;
      display: block;
  }
  .video-thumbnail-container {
      position: relative;
  }
  .video-thumbnail {
      width: 100%;
      display: block;
      border-radius: 8px 8px 0 0;
  }
  .video-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      display: flex;
      justify-content: center;
      align-items: center;
      opacity: 0;
      transition: opacity 0.3s ease;
      border-radius: 8px;
  }
  .video-card:hover .video-overlay {
      opacity: 1;
  }
  .play-icon {
      color: white;
      font-size: 2rem;
  }
  .video-info {
      padding: 10px;
  }
   /* Responsive Design */
@media (max-width: 768px) {
     .category-grid, .video-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Reduce for smaller screens */
    }

    .category-image {
      width: 100%;
      height: 237px; /* Adjust image height */
      object-fit: contain;
      border-radius: 8px 8px 0 0;
      padding-top: 5px;
  }
}