/* Subheader Styles */
.sub-header {
    background-color: #f9f9f9; /* Optional: Subheader background color */
    border-bottom: 2px solid #ddd;
    padding: 10px ;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

    display: flex;
    justify-content: center; /* Horizontally center the content */
    align-items: center; /* Vertically center the content */
    height: 180px; /* Adjust height as needed */
    margin: 0 auto; /* Center the container itself */
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
}

/* Button Container */
.sub-nav {
    display: flex; /* Ensure the buttons stay in a row by default */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center; /* Center buttons horizontally */
    gap: 10px; /* Space between buttons */
}

/* Button Styles */
.sub-nav a {
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, #007bff, #0056b3);
    padding: 10px 10px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: all 0.4s ease;
    display: inline-block;
    min-width: 120px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Hover Effects */
.sub-nav a:hover {
    background: linear-gradient(135deg, #0056b3, #003d80);
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Active State */
.sub-nav a:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sub-header {
        height: auto; /* Allow height to adjust dynamically */
        padding: 15px 10px; /* Add more padding for mobile screens */
        flex-direction: column; /* Stack items vertically */
    }

    .sub-nav {
        gap: 5px; /* Reduce gap between buttons */
    }

    .sub-nav a {
        font-size: 14px; /* Reduce font size */
        min-width: 100px; /* Adjust button width */
        padding: 8px 8px; /* Adjust padding */
    }
}

@media (max-width: 480px) {
    .sub-nav a {
        font-size: 12px; /* Further reduce font size for small screens */
        min-width: 90px; /* Narrower buttons for very small screens */
        padding: 6px 6px; /* Smaller padding */
    }
}