@media (min-width: 781px) {
  /* ----------- Page Container ----------- */
  .browseMainContainer {
    width: 90%;
    margin: auto;
    min-height: 500px;
  }
  /* ----------- Top Title ----------- */
  .browse-title-section {
    margin-top: 20px;
    margin-bottom: 15px;
  }
  .browse-title-section h2 {
    font-size: 26px;
    margin-bottom: 5px;
  }
  .browse-title-section p {
    color: #666;
    font-size: 15px;
  }
  /*clickable titles*/
  .clickable {
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.15s ease;
  }
  .clickable:hover {
    color: #0b59c7; /* Slightly darker blue on hover */
  }
  /* ----------- View Mode Buttons ----------- */
  .browse-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  .viewButtons {
    display: flex;
    gap: 10px;
    margin-top: 25px;
  }
  .viewButtons button {
    padding: 8px 14px;
    font-size: 14px;
    border: 1px solid #ccc;
    background: #f9f9f9;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
  }
  .viewButtons button:hover {
    background: #eaeaea;
    box-shadow: 0 0 6px rgba(0,0,0,0.15);
  }
  .viewButtons button.active {
    background: #0b4e0b;
    color: #fff;
    border-color: #0b4e0b;
  }
  .browse-controls button {
    padding: 8px 14px;
    font-size: 14px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
  }
  .browse-controls button:hover {
    background: #f0f0f0;
  }
  /* ----------- Results Area ----------- */
  .results-section {
    width: 100%;
    margin: auto;
    padding-top: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;   /* To let cards overflow to the line below */
    gap: 19px;
    justify-content: center;
  }
  /* ----------- Show me Button Area ----------- */
  .show-more-section {
    display: flex;
    justify-content: center;
    margin: 30px 0 40px;
  }
  #showMoreBtn {
    background: linear-gradient(135deg, #1f7aec, #4fa3ff);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(31, 122, 236, 0.25);
    transition: all 0.2s ease;
  }
  #showMoreBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(31, 122, 236, 0.35);
  }
  #showMoreBtn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(31, 122, 236, 0.25);
  }
  #showMoreBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
  }
  .browse-cat-main,
  .browse-cat-sub,
  .browse-cat-home {
    color: #1a73e8;
    text-decoration: underline;
    cursor: pointer;
    font-size: 16px;
  }
  .browse-cat-main:hover,
  .browse-cat-sub:hover,
  .browse-cat-home:hover {
    color: #0b59c7;
    font-weight: bolder;
  }
  .no-results-container {
    width: 100%;
    grid-column: 1 / -1;
    padding: 40px 20px;
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    font-weight: 500;
}
}
@media (max-width: 780px) {
  /* ----------- Page Container ----------- */
  .browseMainContainer {
    width: 100%;
    margin: 10px auto;
    padding: 0 10px;
    min-height: 400px;
    box-sizing: border-box;
  }

  /* ----------- Top Title ----------- */
  .browse-title-section {
    margin-top: 15px;
    margin-bottom: 10px;
    text-align: center; /* Centered text looks better on small screens */
  }

  .browse-title-section h2 {
    font-size: 22px;
    margin-bottom: 4px;
    color: #0A174E;
  }

  .browse-title-section p {
    font-size: 14px;
    color: #555;
  }

  /* ----------- Filter Toggle Area ----------- */
  /* Using fit-content so the clickable area is only as wide as the text and icon */
  .filter-toggle-area {
    display: flex;
    width: fit-content; 
    margin: 10px 0;
    gap: 10px;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 5px 0;
  }

  /* ----------- View Mode Buttons (Cards/Table) ----------- */
  .viewButtons {
    display: flex;
    justify-content: center;
    gap: 0; /* Joins buttons together for a toggle-switch look */
    margin: 15px 0;
  }

  .viewButtons button {
    flex: 1; /* Equal width for both buttons */
    padding: 12px;
    font-size: 15px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    border-radius: 0;
  }

  .viewButtons button:first-child {
    border-radius: 8px 0 0 8px;
  }

  .viewButtons button:last-child {
    border-radius: 0 8px 8px 0;
    border-left: none;
  }

  .viewButtons button.active {
    background: #0A174E; /* Dark blue for active state */
    color: #fff;
    border-color: #0A174E;
  }

  /* ----------- Results Area ----------- */
  .results-section {
    width: 100%;
    padding-top: 5px;
    display: flex;
    flex-direction: column; /* Stack cards vertically instead of side-by-side */
    align-items: center;
    gap: 15px;
  }

  /* ----------- "Show More" Button ----------- */
  .show-more-section {
    display: flex;
    justify-content: center;
    margin: 30px 0 40px;
  }
  #showMoreBtn {
    background: linear-gradient(135deg, #1f7aec, #4fa3ff);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(31, 122, 236, 0.25);
    transition: all 0.2s ease;
  }
  #showMoreBtn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(31, 122, 236, 0.25);
  }
  #showMoreBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
  }

  /* ----------- Navigation (Breadcrumbs) ----------- */
  .browse-cat-main,
  .browse-cat-sub,
  .browse-cat-home {
    color: #1a73e8;
    text-decoration: underline;
    font-size: 16px;
  }

  /* Tap highlights and clickable elements */
  .clickable {
    text-decoration: underline;
  }

  /* Remove hover effects for mobile to avoid "sticky" hover states */
  .viewButtons button:hover,
  .browse-controls button:hover {
    background: #fff;
  }
  
  .viewButtons button.active:hover {
    background: #0A174E;
  }
    .no-results-container {
    width: 100%;
    grid-column: 1 / -1;
    padding: 40px 20px;
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    font-weight: 500;
}
}