/* New Header Styles */
.header-new {
    width: 100%;
    background: #2c3e50;
    border-bottom: 4px solid #e74c3c;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: relative;
    padding: 0;
    z-index: 1000;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.header-logo {
    flex-shrink: 0;
}

.header-logo a {
    display: block;
    border: none !important;
}

.header-logo img {
    max-width: 200px;
    height: auto;
    display: block;
}

@media (max-width: 767px) {
    .header-logo img {
        max-width: 140px;
    }
}

.header-menu {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

.header-new .navbar {
    margin: 0;
    background: transparent;
}

.header-new .navbar-right-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.header-new .navbar-right-menu li {
    margin: 0;
    padding: 0;
}

.header-new .navbar-right-menu li a {
    color: #ecf0f1;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 18px;
    display: block;
    border: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
}

.header-new .navbar-right-menu li a:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
    border-bottom: 3px solid #e74c3c;
}

.header-new .navbar-right-menu li.active a,
.header-new .navbar-right-menu li.current a {
    color: #fff;
    background: rgba(255,255,255,0.05);
    border-bottom: 3px solid #e74c3c;
}

/* Dropdown menu styles */
.header-new .navbar-right-menu li.dropdown {
    position: relative;
}

.header-new .navbar-right-menu li.dropdown .dropdown-toggle i {
    font-size: 14px;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.header-new .navbar-right-menu li.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.header-new .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #34495e;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border-top: 3px solid #e74c3c;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 1000;
}

.header-new .navbar-right-menu li.dropdown:hover .dropdown-menu {
    display: block;
}

.header-new .dropdown-menu li {
    margin: 0;
    padding: 0;
    width: 100%;
}

.header-new .dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: #ecf0f1;
    font-weight: 600;
    font-size: 14px;
    border: none;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.header-new .dropdown-menu li a:hover {
    background: rgba(255,255,255,0.1);
    border-left: 3px solid #e74c3c;
    color: #fff;
}

/* Mobile menu button */
.header-new .navbar-toggle {
    background: #e74c3c;
    border: 2px solid #c0392b;
    color: #fff;
    padding: 10px 16px;
    border-radius: 4px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-new .navbar-toggle:hover,
.header-new .navbar-toggle:focus {
    background: #c0392b;
    color: #fff;
    outline: none;
}

.header-new .navbar-toggle i {
    color: #fff;
    margin-right: 6px;
}

/* Mobile styles */
@media (max-width: 991px) {
    .header-flex {
        flex-wrap: wrap;
        padding: 10px 0;
        align-items: center;
    }

    .header-logo {
        flex: 0 0 auto;
        order: 1;
    }

    .header-menu {
        order: 2;
        flex: 1;
        display: flex;
        justify-content: flex-end;
    }

    .header-new .navbar-header {
        width: 100%;
        text-align: right;
    }

    .header-new .navbar-collapse {
        order: 3;
        flex-basis: 100%;
        width: 100%;
        margin-top: 10px;
    }

    .header-new .navbar-right-menu {
        flex-direction: column;
        width: 100%;
    }

    .header-new .navbar-right-menu li {
        width: 100%;
    }

    .header-new .navbar-right-menu li a {
        border-bottom: 1px solid rgba(255,255,255,0.1);
        border-left: 3px solid transparent;
        padding: 15px 20px;
        font-size: 16px;
    }

    .header-new .navbar-right-menu li a:hover,
    .header-new .navbar-right-menu li.active a,
    .header-new .navbar-right-menu li.current a {
        background: rgba(255,255,255,0.1);
        border-left: 3px solid #e74c3c;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    /* Mobile dropdown styles */
    .header-new .dropdown-menu {
        position: static;
        display: block !important;
        box-shadow: none;
        border-top: none;
        background: rgba(0,0,0,0.2);
    }

    .header-new .navbar-right-menu li.dropdown .dropdown-toggle i {
        display: none;
    }

    .header-new .dropdown-menu li a {
        padding-left: 35px;
        border-left: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        font-size: 15px;
    }

    .header-new .dropdown-menu li a:hover {
        background: rgba(255,255,255,0.15);
        border-left: none;
        padding-left: 40px;
    }

    .header-new .navbar-right-menu li.dropdown > a {
        font-weight: 700;
        color: #e74c3c;
        pointer-events: none;
    }
}

/* Mobile buttons */
.header-new .navbar-mobile-buttons {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (max-width: 991px) {
    .header-new .navbar-mobile-buttons {
        display: flex;
        width: 100%;
        border-top: 1px solid rgba(255,255,255,0.1);
        background: rgba(0,0,0,0.1);
    }

    .header-new .navbar-mobile-buttons li {
        flex: 1;
    }

    .header-new .navbar-mobile-buttons li a {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 14px 10px;
        color: #ecf0f1;
        text-align: center;
        border-right: 1px solid rgba(255,255,255,0.1);
        text-decoration: none;
        white-space: nowrap;
        font-size: 14px;
        font-weight: 600;
    }

    .header-new .navbar-mobile-buttons li:last-child a {
        border-right: none;
    }

    .header-new .navbar-mobile-buttons li a i {
        color: #e74c3c;
        margin-right: 8px;
        font-size: 16px;
    }

    .header-new .navbar-mobile-buttons li a:hover {
        background: rgba(255,255,255,0.15);
        border: none;
        border-right: 1px solid rgba(255,255,255,0.1);
    }

    .header-new .navbar-mobile-buttons li:last-child a:hover {
        border-right: none;
    }
}

/* Adjust body padding and content margin since header is no longer fixed */
body {
    padding-top: 0 !important;
}

.content {
    margin-top: 0 !important;
}
