/* Tab Container */
.tabs-container {
    display: flex;
    flex-wrap: wrap;
    margin: 20px 0;
    /* border-bottom: 1px solid #ccc; */
    width: 100%;
    position: relative;
}


/* Tab styling */
.tab {
    padding: 10px 20px;
    margin-right: 5px;  
    background: linear-gradient(to bottom, #9eb4dd, #e6ecf5);
    border: 1px solid #ccc;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    text-decoration: none;
    color: #13274C;
    position: relative;
    top: 1px;
    transition: all 0.2s ease;
}

/* Hover effect */
.tab:hover {
    background: linear-gradient(to bottom, #13274C, #5A75A9);
    color: #fff;
    text-decoration: none;
    /* border-radius: 5px 5px 0 0; */
}

/* Second row of tabs */
.tabs-container-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tabs-container {
        flex-direction: column;
        border-bottom: none;
        margin: 10px 0;
        width: 100%;
        z-index: 10; /* Ensure tabs are above other content */
        position: relative;
        display: block; /* Change to block display on mobile */
        clear: both; /* Clear any floats */
        overflow: visible; /* Ensure content isn't cut off */
    }
    
    .tab {
        margin-bottom: 5px;
        border: 1px solid #ccc;
        border-radius: 5px;
        display: inline-block; /* Make tabs inline-block on mobile */
        width: auto; /* Allow tabs to size based on content */
        min-width: 100px; /* Minimum width for tappable area */
        text-align: center; /* Center text in tabs */
    }
    
    .tab.active {
        border-bottom: 1px solid #ccc;
        background: linear-gradient(to bottom, #13274C, #5A75A9);
        color: #fff;
    }
    
    /* Improve spacing for tab container */
    .tabs-container-row {
        margin-top: 5px;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start; /* Align to start on mobile */
    }
    
    /* Make sure tabs are visible on small screens */
    .tabs-container:after {
        content: "";
        display: table;
        clear: both;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .tabs-container {
        margin: 8px 0;
        padding: 5px 0;
    }
    
    .tab {
        padding: 8px 12px;
        font-size: 14px;
        margin-right: 3px;
        margin-bottom: 3px;
        min-width: 80px;
    }
}

