/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Common Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Sticky Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #fff; /* Match the site's theme */
    padding: 15px;
    border-bottom: 2px solid #ddd;
    box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.1);
}

/* Tab Navigation Section */
.tab-navigation {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #fff;
    padding: 10px 0;
    border-bottom: 2px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tab-navigation ul {
    list-style-type: none;
    padding: 0;
    margin: 0; /* Remove the auto margin to prevent centering */
    display: flex;
    justify-content: flex-start; /* Align tabs to the left */
    max-width: 1200px; /* Limit the maximum width for better control */
    width: 100%; /* Ensure it takes the full width of the container */
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}


.tab-navigation ul::-webkit-scrollbar {
    display: none;
}

.tab-navigation ul .tab-link {
    padding: 12px 20px;
    cursor: pointer;
    color: #333;
    margin-right: 15px;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    display: inline-block;
}

.tab-navigation ul .tab-link.active {
    color: #007bff;
    border-bottom: 4px solid #007bff; /* Increase the thickness of the underline for better visibility */
    transition: border-bottom 0.3s ease, color 0.3s ease; /* Smooth transition */
}

.tab-navigation ul .tab-link:hover {
    color: #0056b3;
    border-bottom: 4px solid #0056b3; /* Hover effect consistent with active look */
}

/* Responsive Design for Tab Navigation */
@media (max-width: 768px) {
    .tab-navigation ul {
        padding: 0 5px;
    }

    .tab-navigation ul .tab-link {
        margin-right: 10px;
        padding: 10px 15px;
        font-size: 0.9em;
    }
}
