/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    /* padding: 5px 25px 3px 25px; */
    padding: 25px;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 999;
    background: #ffffff;
    margin: 0;
    border-bottom: 1px solid #7A7A7A;
    /* height: 10vh; */
}
.col-6 ,.col-sm-9 .col-md-9{
    margin: auto;
}
#navBar {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
    margin: 0;
}

/* Custom Bootstrap-like Grid System */
.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
    width: 100%;
}

/* Column System */
.col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
.col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6,
.col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
.col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6,
.col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
    position: relative;
    width: 100%;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
    box-sizing: border-box;
}

/* Extra small devices (phones, less than 576px) */
.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

/* Small devices (tablets, 576px and up) */
@media (min-width: 576px) {
    .col-sm-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    .col-sm-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    .col-md-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }
}

/* Bootstrap-like Utility Classes */
.img-fluid {
    max-width: 100%;
    height: auto;
}

.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

.justify-content-end {
    justify-content: flex-end !important;
}

.align-items-center {
    align-items: center !important;
}

/* Logo Styles */
.medtrix_logo {
    display: flex;
    align-items: center;
}

.medtrix_logo a img {
    width: auto;
    height: 40px;
}

.mobile-logo {
    padding: 16px;
    width: 60%;
    display: none;
}

/* Desktop Menu */
.desktop-home-menu {
    padding-top: 4vh;
    text-align: center;
}

.desktop-main-menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
}

.desktop-main-menu ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-home-menu li,
.desktop-main-menu li {
    display: inline-block;
    padding-right: 24px;
}

.desktop-main-menu li:last-child {
    padding-right: 0;
}

.desktop-home-menu li a,
.desktop-main-menu li a {
    color: #070606;
    text-transform: uppercase;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.desktop-main-menu li a:hover {
    color: #EC1C24;
}

/* Mobile Menu */
.menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 22px 5px 0 5px;
}

.menu span {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

#close-menu {
    vertical-align: bottom;
    font-size: 28px;
}

.menu img {
    width: 20px;
    height: auto;
}

#menu-icon1 {
    display: none !important;
}

/* Overlay Menu */
/* SLIDE-IN MOBILE OVERLAY */
/* Mobile overlay – slide from right */
#myNav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;

    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;

    overflow-y: auto;
}

/* OPEN STATE */
#myNav.open {
    transform: translateX(0);
}


.overlay {
    width: 0;
    transition: 0.5s;
}


.overlay-content {
    position: relative;
    top: 10%;
    width: 100%;
    text-align: center;
    margin-top: 30px;
}

.overlay-content ul {
    padding: 0;
    margin: 0;
}

.overlay-content li {
    display: block;
}

.overlay-content li a {
    color: #070606;
    text-transform: uppercase;
    margin-bottom: 10px;
    padding: 10px;
    font-size: 18px;
    cursor: pointer;
    display: block;
    text-decoration: none;
}

.overlay a {
    padding: 8px;
    text-decoration: none;
    font-size: 36px;
    color: #818181;
    display: block;
    transition: .3s;
}

.overlay .closebtn {
    position: absolute;
    top: -20px;
    right: 10px;
    font-size: 50px;
    color: #000;
    display: block !important;
}

.overlay .closebtn1 {
    position: absolute;
    top: 20px;
    right: 5px;
    font-size: 20px;
    display: none !important;
}

/* Close buttons */
.closebtn1 {
    display: none !important;
}

.closebtn {
    display: block !important;
}

/* Dropdown Menu */
.dropbtn {
    padding: 16px;
    font-size: 16px;
    border: none;
    background: none;
    cursor: pointer;
    color: #070606;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.3s ease;
}

.dropbtn:hover {
    color: #EC1C24;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffff;
    min-width: 230px;
    box-shadow: 0px 6px 8px 0px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    margin-top: 10px;
    border-radius: 7px;
    text-align: left;
}

.dropdown-content a {
    color: black;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1.5px solid rgba(234, 234, 234, 1);
    font-size: 14px;
    transition: all 0.3s ease;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content > div {
    border-bottom: 1.5px solid rgba(234, 234, 234, 1);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Mobile Dropdown Icons */
.mbl-dropdown .mblicon,
.deskicon {
    font-size: 26px;
}

/* Nested Dropdown */
.dropdown-L1 {
    position: relative;
}

.dropdown-L2 {
    display: none;
    position: absolute;
    background-color: #ffff;
    min-width: 230px;
    box-shadow: 0px 6px 8px 0px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    top: 0;
    left: 100%;
    border-radius: 7px;
}

.dropdown-L2-right {
    left: auto;
    right: 100%;
}

.dropdown-L1:hover > .dropdown-L2 {
    display: block;
}

/* Contact Button */
#contact-btn {
    border: 1px solid rgba(236, 28, 36, 1);
    padding: 11px 22px;
    background-color: rgba(236, 28, 36, 1);
    color: #fff;
    font-weight: 700;
    border-radius: 5px;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

#contact-btn:hover {
    background-color: rgb(243, 74, 80);
}

/* Active State */
#newActiveState {
    border-bottom: 2px solid rgba(236, 28, 36, 1);
    background-color: rgba(236, 28, 36, 0.1);
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
}

.dropdown-content a:hover {
    border-bottom: 2px solid rgba(236, 28, 36, 1);
    background-color: rgba(236, 28, 36, 0.1);
    color: #EC1C24;
}

/* Responsive Styles - Bootstrap-like breakpoints */
/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .d-xs-none {
        display: none !important;
    }
    
    .d-xs-block {
        display: block !important;
    }
    
    .container-fluid {
        padding-right: 0px;
        padding-left: 0px;
    }
    
    .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
      .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
        padding-right: 0px !important;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .d-sm-none {
        display: none !important;
    }
    
    .d-sm-block {
        display: block !important;
    }
    
    .desktop-main-menu {
        display: none;
    }
    
    .menu {
        display: flex;
    }
    
    #menu-icon1 {
        display: flex !important;
    }
    .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
        padding-right: 0px !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .d-md-none {
        display: none !important;
    }
    
    .d-md-block {
        display: block !important;
    }
    
    .desktop-main-menu {
        display: none;
    }
    
    .menu {
        display: flex;
    }
    
    #menu-icon1 {
        display: flex !important;
    }
    
    .overlay-content {
        top: 8% !important;
        margin-left: 50px !important;
    }
    
    .overlay-content li a {
        font-size: 15px !important;
    }
    
    .overlay .closebtn {
        top: -26px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .d-lg-none {
        display: none !important;
    }
    
    .d-lg-block {
        display: block !important;
    }
    
    .desktop-home-menu li a,
    .desktop-main-menu li a {
        font-size: 13px !important;
    }
    
    #contact-btn {
        padding: 10px 18px;
        font-size: 13px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .d-xl-none {
        display: none !important;
    }
    
    .d-xl-block {
        display: block !important;
    }
    
    .menu, .mobile-menu {
        display: none;
    }
    
    .desktop-main-menu {
        display: flex;
    }
}

/* Specific Media Queries for your existing layout */
@media (max-width: 767px) {
    .desktop-main-menu,
    .desktop-home-menu {
        display: none;
    }
    
    .mobile-logo {
        display: block;
    }
    
    #menu-icon1 {
        display: flex !important;
    }
    
    .menu {
        padding: 22px 0px;
    }
    
    .overlay .closebtn {
        display: none !important;
    }
    
    .overlay .closebtn1 {
        display: block !important;
        top: 20px;
        right: 5px;
    }
    
    .overlay-content li {
        display: block;
    }
    
    .overlay-content li a {
        padding-right: 0;
        font-size: 18px;
    }
}

@media (max-width: 1024px) {
    .desktop-main-menu {
        display: none;
    }
    
    .overlay {
        overflow-y: auto;
    }
    
    .overlay-content {
        position: relative;
        top: 10%;
        width: 100%;
        text-align: center;
        margin-top: 30px;
    }
    
    .menu span {
        font-size: 18px;
    }
    
    .overlay-content li a {
        padding-right: 0;
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .overlay-content li {
        display: block;
    }
}

@media (max-height: 450px) {
    .overlay a {
        font-size: 12px;
    }
    
    .overlay .closebtn {
        font-size: 40px;
        top: 2px;
        right: 0;
    }
}

/* Flex utility classes */
.flex-wrap {
    flex-wrap: wrap !important;
}

.flex-nowrap {
    flex-wrap: nowrap !important;
}

.align-items-start {
    align-items: flex-start !important;
}

.align-items-end {
    align-items: flex-end !important;
}

.align-items-center {
    align-items: center !important;
}

.align-items-baseline {
    align-items: baseline !important;
}

.align-items-stretch {
    align-items: stretch !important;
}

.justify-content-start {
    justify-content: flex-start !important;
}

.justify-content-end {
    justify-content: flex-end !important;
}

.justify-content-center {
    justify-content: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.justify-content-around {
    justify-content: space-around !important;
}

/* Text utility classes */
.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

.text-uppercase {
    text-transform: uppercase !important;
}

.text-lowercase {
    text-transform: lowercase !important;
}

.text-capitalize {
    text-transform: capitalize !important;
}
/* ========== MOBILE MENU OVERLAY FIX ========== */

/* Overlay Menu - Make sure these styles are present */
.overlay {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 9999;
    top: 0;
    right: 0;
    background-color: #fff;
    overflow-x: hidden;
    transition: 0.5s;
    opacity: 1;
    padding-top: 60px;
}

.overlay-content {
    position: relative;
    top: 10%;
    width: 100%;
    text-align: center;
    margin: auto;
}

.overlay-content ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.overlay-content li {
    display: block;
    margin-bottom: 15px;
}

.overlay-content li a {
    color: #070606;
    text-transform: uppercase;
    font-size: 18px;
    cursor: pointer;
    display: block;
    padding: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.overlay-content li a:hover {
    color: #EC1C24;
    background-color: rgba(236, 28, 36, 0.1);
}

/* Close button styles */
.closebtn1 {
    position: absolute !important;
    top: 20px !important;
    right: 25px !important;
    font-size: 20px !important;
    color: #000 !important;
    cursor: pointer;
    display: block !important;
    text-decoration: none;
    z-index: 10000;
}

.closebtn1 .mobile-menu {
    display: flex;
    align-items: center;
    gap: 5px;
}

#close-menu {
    font-size: 28px;
    vertical-align: middle;
}

/* Mobile logo in overlay */
.mobile-logo {
    display: block !important;
    padding: 20px;
    width: 60%;
    margin: 0 auto;
}

/* Mobile dropdown specific styles */
.level1Dropdown {
    display: none;
    padding-left: 35px;
    width: 95%;
    text-align: left;
}

.dropdown-L2-mob {
    display: none;
    padding-left: 20px;
}

.dropdown-L2-mob ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-L2-mob li {
    margin-bottom: 10px;
}

.dropdown-L2-mob li a {
    font-size: 16px !important;
    text-align: left;
    padding-left: 20px;
}

/* Dropdown arrow styling */
.fa-chevron-down {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

/* Active state for dropdown */
.dropdown-L1-mob.active .fa-chevron-down {
    transform: rotate(180deg);
}

/* Show/hide based on screen size */
@media (min-width: 993px) {
    .overlay {
        display: none !important;
    }
}

@media (max-width: 992px) {
    #menu-icon1 {
        display: flex !important;
        align-items: center;
        gap: 5px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 500;
    }
    
    .desktop-main-menu {
        display: none;
    }
    
    .menu {
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
}

/* For very small screens */
@media (max-width: 480px) {
    .overlay-content li a {
        font-size: 16px;
        padding: 8px;
    }
    
    .mobile-logo {
        width: 70%;
    }
}

/* Contact button in mobile menu */
#contact-btn {
    border: 1px solid rgba(236, 28, 36, 1);
    padding: 11px 22px;
    background-color: rgba(236, 28, 36, 1);
    color: #fff;
    font-weight: 700;
    border-radius: 5px;
    margin-top: 0px;
    display: inline-block;
}
.contact-btn{
    width: 90%;
}

/* ========== MOBILE DROPDOWN FUNCTIONALITY ========== */
/* These styles work with the JavaScript */
.dropdown-L1-mob {
    cursor: pointer;
}

.level1Dropdown.show {
    display: block !important;
}

.dropdown-L2-mob.show {
    display: block !important;
}

.dropdown-L1-mob.active i.fa-chevron-down {
    transform: rotate(180deg);
}
/*  */
@media (max-width: 786px){
    
.overlay-content {
    position: relative;
    top: 3%;}
}