﻿
/* 1. Container Styling - Responsive Flexbox */
.subject-filter-container {
    display: flex;
    flex-wrap: wrap; /* Allows buttons to wrap to next line on desktop */
    gap: 8px; /* Consistent spacing between buttons */
    margin-bottom: 20px;
    padding-bottom: 5px;
}

/* 2. Base Button Styling */
.btn-subject {
    border: 1px solid #ced4da;
    background-color: #fff;
    color: #555;
    padding: 6px 14px;
    font-size: 14px;
    border-radius: 20px; /* Pill shape looks better for filters */
    cursor: pointer;
    white-space: nowrap; /* Prevents text from breaking inside button */
    transition: all 0.2s ease-in-out;
    font-weight: 500;
    /* Remove default button styling quirks */
    outline: none;
    box-shadow: none;
}

    /* 3. Hover Effect */
    .btn-subject:hover {
        background-color: #e3f2fd; /* Light Blue hover */
        border-color: #2563eb;
        color: #2563eb;
    }

    /* 4. Active (Selected) State - Blue Theme */
    .btn-subject.active-subject {
        background-color: #2563eb;
        color: white;
        border-color: #2563eb;
        box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
    }

/* =========================================
       MOBILE RESPONSIVENESS (Small Screens)
       ========================================= */
@media (max-width: 768px) {
    .subject-filter-container {
        flex-wrap: nowrap; /* Stop wrapping on mobile */
        overflow-x: auto; /* Enable horizontal scrolling */
        -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
        padding-bottom: 10px; /* Space for scrollbar */
        /* Hide scrollbar visually but keep functionality */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }

        .subject-filter-container::-webkit-scrollbar {
            display: none; /* Chrome/Safari */
        }

    .btn-subject {
        flex: 0 0 auto;
        font-size: 7px;
        padding: 9px 6px;
    }
}


