    body {
      font-family: Arial, sans-serif;
      background: #fff;
      margin: 0;
      padding: 0;
      display: flex;
      justify-content: center;
    }
    .container {
      max-width: 900px;
      width: 100%;
      padding: 0.2rem;
      /* margin: 0 auto; */
    }
    .header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 1rem;
    }
    .logo {
      font-size: 1.5rem;
      font-weight: bold;
      color: #333;
    }
    .search-box {
        position: relative;
        display: inline-block;
    }
    .search-box input {
      padding: 0.5rem 2rem 0.5rem 0.5rem; /* Add right padding for icon space */
      width: 200px;
      border: 1px solid #ccc;
      border-radius: 4px;
    }
    .search-icon {
      position: absolute;
      right: 8px;
      top: 50%;
      transform: translateY(-50%);
      pointer-events: none;
      font-size: 0.9rem;
      color: #888;
    }
    .categories {
      display: flex;
      flex-wrap: wrap;
      margin-bottom: 1rem;
    }
    .ads {
      display: flex;
      flex-direction: column;
      gap: 2px;
      margin-bottom: 1.5rem;
    }
    .ad-row {
      text-align: center;
    }
    .ad-row img {
      width: 100%;
      max-width: 900px;
      height: auto; /* This keeps the aspect ratio */
    }
    .video-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
      gap: 0.8rem;
    }
    .video-card {
      background: #fff;
      border-radius: 8px;
      padding-bottom: 1rem;
      /* box-shadow: 0 0 4px rgba(0, 0, 0, 0.1); */
      text-align: center;
      text-decoration: none;
      color: #333;
      transition: transform 0.2s ease;
      border: 1px solid #333; /* Add border with color */
      font-size: 0.75rem; /* Make text smaller */
      /* display: flex; */
      flex-direction: column;
      gap: 0.3rem;
    }
    .video-card:hover {
      transform: scale(1.02);
      border-color: #005fa3;
    }
    .thumbnail {
      width: 100%;
      aspect-ratio: 16 / 9;
      background: #ccc;
      margin-bottom: 0.5rem;
      border-color: #333;
    }
    .video-card .thumbnail {
    background: #ccc;
    height: 100px;
    border-radius: 4px;
  }
    .video-card div:last-child {
      color: red; /* Make the title red */
      white-space: nowrap;       /* Prevent line wrap */
      overflow: hidden;          /* Hide overflow text */
      text-overflow: ellipsis;   
    }

    .video-wrapper {
      position: relative;
      width: 100%;
      max-width: 900px;
      /* margin: 1rem auto 0 auto; centers the video */
      margin: auto;
    }

    #videoPlayer {
      width: 100%;
      max-width: 900px;
      max-height: 500px;
      height: auto;
      display: block;
      border: 1px solid #ccc;
      object-fit: contain;
      background-color: black;
    }

    #skipButton {
      position: absolute;
      bottom: 15%;
      right: 3%;
      padding: 0.5rem 1rem;
      background: red;
      color: white;
      border: none;
      border-radius: 2px;
      cursor: pointer;
      font-size: 0.9rem;
    }

    #skipButton:hover {
      background: red;
    }

    video {
      width: 100%;
      max-width: 900px;
      height: auto;
      object-fit: contain; /* ensures scaling fits within container */
      margin-top: 1rem;
      border: 1px solid #ccc;
      display: block;
    }
    
    .categories {
      display: grid;
      grid-template-columns: repeat(8, 1fr); /* 8 equal columns */
      margin-bottom: 1rem;
      }
    .title {
          text-align: center;
          margin: 1rem 0;
          font-family: 'Times New Roman', Times, serif;
      }
    .categories button {
          width: 100%;
          background: #0077cc;
          color: white;
          border: none;
          padding: 0.8rem 0.3rem;
          cursor: pointer;
          font-size: 0.7rem;
      }
    .categories button:hover {
          background: #005fa3;
      }

    .categories {
  margin-bottom: 1rem;
}

.mobile-navbar {
  display: none;
}

.navbar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.thumbnail-card {
  width: 100%;
  max-width: 160px;
  height: 100px; /* keep aspect ratio */
  object-fit: contain; /* this avoids cropping */
  background-color: #f0f0f0;
}

.menu-toggle {
  background: none;
  border: none;
  color: #333;
  font-size: 1.8rem;
  cursor: pointer;
  display: none; /* hidden on desktop */
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: #f4f4f4;
  padding: 0.5rem 1rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: 0.8rem;
  text-decoration: none;
  color: #0077cc;
  border-bottom: 1px solid #ccc;
  font-size: 0.9rem;
  font-weight: bold;
}

.mobile-menu a:hover {
  background-color: #eaeaea;
}

.mobile-menu-button {
  width: 100%;
  /* background: #0077cc; */
  color: white;
  border: none;
  padding: 0.8rem 0.3rem;
  cursor: pointer;
  font-size: 1rem;
}

.mobile-menu a:hover {
  background-color: #0077cc;
  color: white;
}

/* Footer */
    .site-footer {
      padding: 1.5rem 1rem;
      margin-top: 2rem;
      font-size: 1rem;
      color: #333;
    }

    .site-footer div:first-child {
      background-color: #d6f3f7; /* pastel blue only on paragraph area */
      padding: 1rem;
      color:#026ebb
    }

    .site-footer div:first-child p {
      text-align: justify;
      margin: 1rem auto;
      max-width: 900px;
      line-height: 1.8;
      margin-bottom: 0.5rem;
      font-family: Arial, Helvetica, sans-serif;
    }

    .site-footer a {
      color: #ff004c;
      text-decoration: none;
      margin: 0 0.5rem;
    }

    .site-footer a:hover {
      color: #ff78a0;
    }

    .site-footer .footer-content {
      text-align: center;
    }

    .site-footer hr {
      border: none;
      height: 3px;
      background-color: #ff004c; /* same color as <a> */
      margin: 1rem auto;
      max-width: 90%;
    }

    .pagination {
      text-align: center;
      margin: 20px 0;
    }
    .pagination a {
      margin: 0 5px;
      padding: 8px 12px;
      background: #eee;
      border-radius: 4px;
      text-decoration: none;
      color: #333;
    }
    .pagination a.active {
      background: #ccc;
      font-weight: bold;
    }

/* Show mobile nav on smaller screens */
@media (max-width: 768px) {
  .desktop-categories {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-navbar {
    display: block;
  }
}