/* Header Container */
.header_container {
    max-width: 1500px;
    width: 100%;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 4fr 1fr;
    align-items: center;
}
.medpro_header {
    border-top: #13A89A;
    border-top-style: groove;
    border-width: 10px;
    width: 100%;
    position: fixed;
    z-index: 1000;
    background-color: #fff;
    padding: 1% 0%;
}
/* Main navigation styling */
.medpro_nav{
    padding: 0;
}

/* Styling for main nav items */
.medpro_nav ul {
    list-style-type: none;
    display: flex;
    justify-content: flex-end;
}

.medpro_nav > li {
    position: relative;
}

.medpro_nav a {
    color: #595959;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 1.25em;
    transition: color 0.3s ease;
}

.medpro_nav a:hover {
    color: #0043ef;
}

/* Submenu styling */
.medpro_nav li ul {
    display: none;
    position: absolute;
    background-color: #fff;
    padding: 0.5rem 0;
    list-style: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    z-index: 100;
}

.medpro_nav li:hover > ul {
    display: block;
}

.medpro_nav li ul li a {
    padding: 0.5rem 1rem;
    display: block;
    color: #333;
    white-space: nowrap;
}

.medpro_nav li ul li a:hover {
    color: #0043ef;
}

/* Header Actions (Search Icon & Contact Button) */
.header-actions {
    display: flex;
    align-items: center;
    justify-content: right;
}

/* Search Icon Styling */
.search-icon {
    margin-right: 20px;
}

.search-link {
    text-decoration: none;
    color: #333;
    font-size: 20px;
}

.search-link:hover {
    color: #0043ef;
}

/* Contact Button Styling */
.btn-contact {
    padding: 10px 20px;
    background-color: transparent;
    color: #0043ef;
    border: 2px solid #0043ef;
    border-radius: 5px;
    font-size: 1.25em;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-wrap: nowrap;
}

.btn-contact:hover {
    background-color: #0043ef;
    color: #fff;
}

.skip-to-content {
    position: fixed;
    top: 4%; /* Ensures it’s visible above the sticky header */
    left: 26%; /* Slight padding from the edge */
    z-index: 1100; /* Higher than the header */
    background-color: #0043ef; /* High-contrast background */
    color: #ffffff; /* High-contrast text */
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    transform: translateY(-150%); /* Initially hidden */
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0; /* Hidden by default */
}

.skip-to-content:focus {
    transform: translateY(0); /* Moves into view on focus */
    opacity: 1; /* Makes it visible on focus */
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
  
    .medpro_header {
        position: relative;
    }
  
    .header_container {
        grid-template-columns: 1fr;
        text-align: center; 
        max-width: 768px;
    }

    /* Stack logo, nav, and actions vertically */
    .medpro_nav ul {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        padding: 0;
        justify-content: space-evenly;
    }

    .medpro_nav li ul {
        position: absolute;
    }

    /* Inline layout for search icon and button on mobile */
    .header-actions {
        display: flex;
        flex-direction: row; /* Align items inline */
        align-items: center;
        justify-content: center;
        gap: 1rem;
        margin-top: 10px;
    }

    .btn-contact {
        width: auto; /* Button adjusts to content width */
    }
  
    .skip-to-content {
        top: -1000px; /* Moves it off-screen */
        left: -1000px;
        visibility: hidden; /* Ensures it's non-intrusive */
    }
}
}