/* Modern Header Styles for Eduvista World Consulting */

/* Top Header Bar - Modern Design */
.header-middle {
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.header-middle .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap !important;
    gap: 20px;
    min-height: 60px;
}

/* Modern Logo Styling */
.logo-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo-header a {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo-header a:hover {
    transform: scale(1.05);
}

.logo-header img {
    max-height: 65px;
    width: auto;
    vertical-align: middle;
}

/* Modern Header Info Cards */
.header-info {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-width: 0;
}

.header-info ul {
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: nowrap;
    align-items: center;
}

.header-info li {
    display: flex;
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
}

.header-info li > div {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    white-space: nowrap;
    height: 100%;
}

.header-info li > div:hover {
    background: #fff;
    border-color: #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Modern Icon Styling */
.header-info .icon-sm {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    flex-shrink: 0;
}

.header-info .icon-cell {
    color: #fff;
    font-size: 16px;
}

/* Compact location text for single row layout */
.header-info li:first-child .icon-content span {
    max-width: 250px;
    font-size: 12px;
}

/* Modern Text Styling */
.header-info .icon-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    justify-content: center;
}

.header-info .icon-content strong {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    line-height: 1.2;
}

.header-info .icon-content span {
    font-size: 12px;
    font-weight: 500;
    color: #2c3e50;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Modern Navigation Bar */
.header-botton {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    padding: 0;
}

.sticky-header.is-fixed .header-botton {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Modern Menu Items */
.header-nav .nav.navbar-nav > li > a {
    padding: 18px 20px;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    position: relative;
}

.header-nav .nav.navbar-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #fff;
    transition: width 0.3s ease;
}

.header-nav .nav.navbar-nav > li:hover > a::after,
.header-nav .nav.navbar-nav > li.active > a::after {
    width: 60%;
}

/* Modern Dropdown Menu */
.header-nav .sub-menu {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: none;
    padding: 10px 0;
    margin-top: 10px;
}

.header-nav .sub-menu li a {
    padding: 12px 25px;
    transition: all 0.3s ease;
    position: relative;
}

.header-nav .sub-menu li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 100%;
    background: rgba(102, 126, 234, 0.1);
    transition: width 0.3s ease;
    z-index: -1;
}

.header-nav .sub-menu li:hover a::before {
    width: 100%;
}

.header-nav .sub-menu li:hover a {
    padding-left: 35px;
    color: #667eea;
}

/* Modern Mobile Menu Button */
.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler .icon-bar {
    background: #fff;
    height: 3px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Search Button Modern Style */
.site-search-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.site-search-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .header-info ul {
        gap: 12px;
    }
    
    .header-info li > div {
        padding: 8px 12px;
        gap: 8px;
    }
    
    .header-info .icon-sm {
        width: 38px;
        height: 38px;
    }
    
    .header-info .icon-content span {
        font-size: 12px;
    }
    
    .header-info .icon-content strong {
        font-size: 9px;
    }
    
    .header-info li:first-child .icon-content span {
        max-width: 220px;
    }
}

@media (max-width: 1200px) {
    .header-middle .container {
        gap: 15px;
    }
    
    .header-info ul {
        gap: 10px;
    }
    
    .header-info li > div {
        padding: 8px 10px;
    }
    
    .header-info .icon-sm {
        width: 36px;
        height: 36px;
    }
    
    .header-info .icon-cell {
        font-size: 14px;
    }
    
    .logo-header img {
        max-height: 55px;
    }
}

@media (max-width: 991px) {
    .header-info ul {
        gap: 8px;
    }
    
    .header-info li > div {
        padding: 6px 10px;
    }
    
    .header-info .icon-sm {
        width: 34px;
        height: 34px;
    }
    
    .header-info .icon-cell {
        font-size: 13px;
    }
    
    .logo-header img {
        max-height: 50px;
    }
}

@media (max-width: 767px) {
    .header-middle {
        padding: 15px 0;
    }
    
    .header-middle .container {
        flex-direction: column;
        text-align: center;
        flex-wrap: wrap;
    }
    
    .logo-header {
        width: 100%;
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .header-info {
        justify-content: center;
        width: 100%;
    }
    
    .header-info ul {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .header-info li {
        width: 100%;
        justify-content: center;
    }
    
    .header-info li > div {
        width: 100%;
        max-width: 400px;
    }
}

/* Smooth Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-nav .sub-menu {
    animation: slideDown 0.3s ease;
}

/* Sticky Header Enhancement */
.sticky-header.is-fixed {
    animation: slideDown 0.4s ease;
}

/* Modern Color Scheme Variables */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}


/* Ripple Effect for Navigation */
.header-nav .nav > li > a {
    position: relative;
    overflow: hidden;
}

.header-nav .nav > li > a .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    width: 20px;
    height: 20px;
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    from {
        transform: scale(0);
        opacity: 1;
    }
    to {
        transform: scale(20);
        opacity: 0;
    }
}

/* Loading Animation */
.header-middle {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.6s ease;
}

.header-middle.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Search Box */
#search {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

#search.active {
    opacity: 1;
    visibility: visible;
}

#search .close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

#search .close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

#search .close::before,
#search .close::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background: #fff;
}

#search .close::before {
    transform: rotate(45deg);
}

#search .close::after {
    transform: rotate(-45deg);
}

#search form {
    max-width: 600px;
    width: 90%;
}

#search input[type="search"] {
    width: 100%;
    padding: 20px 30px;
    font-size: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: #fff;
    transition: all 0.3s ease;
}

#search input[type="search"]:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    outline: none;
}

#search input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#search .search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

#search .search-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Mobile Menu Enhancements */
@media (max-width: 991px) {
    .header-nav {
        background: #fff;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-radius: 10px;
        margin-top: 10px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }
    
    .header-nav.show {
        max-height: 600px;
        padding: 20px 0;
    }
    
    .header-nav .nav > li {
        border-bottom: 1px solid #f0f0f0;
    }
    
    .header-nav .nav > li:last-child {
        border-bottom: none;
    }
    
    .header-nav .nav > li > a {
        color: #2c3e50 !important;
        padding: 15px 25px;
    }
    
    .header-nav .nav > li > a::after {
        display: none;
    }
    
    .header-nav .nav > li.active > a,
    .header-nav .nav > li:hover > a {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: #fff !important;
    }
    
    #mobile-side-drawer.active .icon-bar:nth-child(2) {
        transform: rotate(45deg) translateY(8px);
    }
    
    #mobile-side-drawer.active .icon-bar:nth-child(3) {
        opacity: 0;
    }
    
    #mobile-side-drawer.active .icon-bar:nth-child(4) {
        transform: rotate(-45deg) translateY(-8px);
    }
}

/* Accessibility Improvements */
.header-nav a:focus,
.site-search-btn:focus,
.navbar-toggler:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header-middle,
    .header-botton {
        box-shadow: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .header-info li > div {
        border: 2px solid #000;
    }
    
    .header-nav .nav > li > a {
        border: 1px solid transparent;
    }
    
    .header-nav .nav > li:hover > a {
        border-color: #fff;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
