
.button-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px;
    justify-content: center;
    align-items: center;
  
    
    margin: 0;
}

.category-button {
    padding: 12px 20px;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    transform: scale(1);
    position: relative;
    overflow: hidden;
}

.category-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(59, 130, 246, 0.2);
    transition: all 0.6s ease;
    transform: skewX(-30deg);
    z-index: 0;
}

.category-button:hover::before {
    left: 100%;
}

.category-button:hover {
    background: #f3f4f6;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3);
    transform: scale(1.1) rotate(2deg);
}

.category-button.selected {
    background: #152C47;
    color: white; 
    border-color: #152C47;
 
    transform: scale(1.1);
}

.category-button.selected::before {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .button-group {
        flex-direction: column;
        gap: 12px;
    }

    .category-button {
        width: 90%;
        text-align: center;
    }
  }
.category-button a{
  all: unset; /* Resets all styles for the element */
    cursor: pointer; /* Optional: Makes the link clickable */
    display: inline; /* Ensures it behaves like a regular inline element */
    text-decoration: none; /* Removes underline (if needed) */
    
}

.background-container {
  position: relative;
  width: 100%;
  height: 30vh;
  background-image: url('https://media.licdn.com/dms/image/v2/C4E12AQH_O_MxyC119Q/article-cover_image-shrink_720_1280/article-cover_image-shrink_720_1280/0/1636039743397?e=2147483647&v=beta&t=xDihVj2IG9KPpYAzUn979FFVHQ750uNpn09AUwBiv5w'); /* Replace with your image URL */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}