/**
 * Modern Header Styles
 * Enhanced header with smooth animations, glass-morphism, and visual harmony
 */

/* Header Top Section - Hidden */
.main-header .header-top {
    display: none;
}

/* Header Lower - Clean White Background - Shifted Left by 30px */
.main-header .header-lower {
    background: #ffffff;
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 4px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.main-header .header-lower .auto-container {
    margin-left: -30px;
    padding-right: 30px;
}

.main-header.fixed-header .header-lower {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* Beautiful Address Display in Header */
.main-header .header-lower .main-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 50px;
}

.header-address-info {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(248, 160, 12, 0.08) 0%, rgba(248, 160, 12, 0.04) 100%);
    border-radius: 0;
    border: 1px solid rgba(248, 160, 12, 0.15);
    transition: all 0.3s ease;
    flex-shrink: 0;
    min-width: 220px;
}

.header-address-info:hover {
    background: linear-gradient(135deg, rgba(248, 160, 12, 0.12) 0%, rgba(248, 160, 12, 0.06) 100%);
    border-color: rgba(248, 160, 12, 0.3);
    box-shadow: 0 4px 15px rgba(248, 160, 12, 0.15);
}

.header-address-info .address-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8a00c 0%, #ffc107 100%);
    border-radius: 0;
    color: #ffffff;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(248, 160, 12, 0.3);
    flex-shrink: 0;
}

.header-address-info .address-text {
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
    line-height: 1.2;
}

@media (max-width: 1399px) {
    .header-address-info {
        min-width: 200px;
        padding: 4px 14px;
    }
    
    .header-address-info .address-text {
        font-size: 12px;
    }
}

@media (max-width: 1199px) {
    .header-address-info {
        display: none;
    }
}

/* Logo Animation - Proper Spacing */
.main-header .logo-box .logo img {
    max-height: 48px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.main-header .logo-box .logo:hover img {
    transform: scale(1.05);
}

.main-header.fixed-header .logo-box .logo img {
    max-height: 44px;
}

.main-header .logo-box {
    margin-right: 25px;
    flex-shrink: 0;
}

/* Animated Edition Badge "11" */
.main-header .logo-box .logo a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.edition-badge-11 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 5px;
    background: linear-gradient(135deg, #112bb5 0%, #2a45c0 100%);
    background-size: 200% 200%;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    border-radius: 0;
    box-shadow: 0 3px 12px rgba(17, 43, 181, 0.4);
    animation: blueBadgePulse 2s ease-in-out infinite, blueGradientShift 3s ease infinite;
    position: relative;
    overflow: visible;
    border: 2px solid #112bb5;
}

.edition-badge-11:before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 0;
    border: 2px solid #112bb5;
    opacity: 0;
    animation: blueBadgeRing 2s infinite;
}

@keyframes editionPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(17, 43, 181, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(17, 43, 181, 0.6);
    }
}

@keyframes badgeRing {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@media (max-width: 1199px) {
    .edition-badge-11 {
        min-width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

@media (max-width: 575px) {
    .edition-badge-11 {
        min-width: 34px;
        height: 34px;
        font-size: 18px;
    }
}

/* Navigation Menu - Improved Style */
.main-header .main-menu .navigation > li {
    position: relative;
    padding: 5px 0;
    margin: 0 8px;
}

.main-header .main-menu .navigation > li > a {
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-transform: capitalize;
    padding: 6px 0;
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
    line-height: 1.2;
}

@media (max-width: 1399px) {
    .main-header .main-menu .navigation > li {
        margin: 0 6px;
    }
    
    .main-header .main-menu .navigation > li > a {
        font-size: 13px;
        letter-spacing: 0.1px;
        padding: 5px 0;
    }
}

@media (max-width: 1199px) {
    .main-header .main-menu .navigation > li {
        margin: 0 4px;
    }
    
    .main-header .main-menu .navigation > li > a {
        font-size: 12px;
        padding: 4px 0;
    }
}

.main-header .main-menu .navigation > li > a {
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: capitalize;
    padding: 10px 0;
    position: relative;
    transition: all 0.3s ease;
}

.main-header .main-menu .navigation > li > a {
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: capitalize;
    padding: 10px 0;
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Modern Underline Effect */
.main-header .main-menu .navigation > li > a:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #f8a00c 0%, #ffc107 100%);
    border-radius: 0;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-header .main-menu .navigation > li:hover > a:before,
.main-header .main-menu .navigation > li.current > a:before {
    width: 100%;
}

.main-header .main-menu .navigation > li:hover > a,
.main-header .main-menu .navigation > li.current > a {
    color: #f8a00c;
}

/* Modern Button Style - Hidden for Ambassador Icon */
.main-header .btn-box .theme-btn {
    display: none;
}

/* Ambassador Icon Button */
.main-header .ambassador-icon-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8a00c 0%, #ffc107 100%);
    border-radius: 0;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(248, 160, 12, 0.3);
    border: 2px solid transparent;
    position: relative;
    overflow: visible;
}

.main-header .ambassador-icon-btn:hover {
    background: #ffffff;
    color: #f8a00c;
    border-color: #f8a00c;
    box-shadow: 0 6px 25px rgba(248, 160, 12, 0.5);
    transform: translateY(-3px) scale(1.05);
}

.main-header .ambassador-icon-btn:active {
    transform: translateY(-1px) scale(1);
}

/* Pulse animation for ambassador button */
.main-header .ambassador-icon-btn:before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 0;
    border: 2px solid #f8a00c;
    opacity: 0;
    animation: ambassadorPulse 2s infinite;
}

@keyframes ambassadorPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.15);
        opacity: 0;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

@media (max-width: 1399px) {
    .main-header .ambassador-icon-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}

.main-header .btn-box .theme-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.main-header .btn-box .theme-btn:hover:before {
    left: 100%;
}

.main-header .btn-box .theme-btn:hover {
    background: #ffffff;
    color: #f8a00c;
    border-color: #f8a00c;
    box-shadow: 0 6px 25px rgba(248, 160, 12, 0.4);
    transform: translateY(-2px);
}

/* Mobile Menu Toggle - Modern Style - Hidden on Desktop */
.main-header .mobile-nav-toggler {
    width: 45px;
    height: 45px;
    display: none;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8a00c 0%, #ffc107 100%);
    border-radius: 0;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(248, 160, 12, 0.3);
}

@media (max-width: 991px) {
    .main-header .mobile-nav-toggler {
        display: flex;
    }
}

.main-header .mobile-nav-toggler:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(248, 160, 12, 0.5);
}

.main-header .mobile-nav-toggler .icon {
    font-size: 20px;
}

/* Hidden Bar Toggle */
.main-header .toggle-hidden-bar {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(248, 160, 12, 0.1);
    border-radius: 0;
    color: #f8a00c;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(248, 160, 12, 0.2);
}

.main-header .toggle-hidden-bar:hover {
    background: #f8a00c;
    color: #ffffff;
    border-color: #f8a00c;
    transform: rotate(90deg);
}

/* Sticky Header - Clean White Style */
.sticky-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.sticky-header.fixed-header {
    animation: slideDown 0.4s ease;
}

/* Edition Badge in Sticky Header */
.sticky-header .edition-badge-11 {
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    min-width: 36px;
    height: 36px;
    font-size: 18px;
    z-index: 10;
    background: linear-gradient(135deg, #112bb5 0%, #2a45c0 100%);
    box-shadow: 0 4px 15px rgba(17, 43, 181, 0.4);
    border: 2px solid #112bb5;
    animation: blueBadgePulse 2s ease-in-out infinite, blueGradientShift 3s ease infinite;
}

.sticky-header .logo-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    transform: translateX(-10%);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive for Sticky Header Badge */
@media (max-width: 1199px) {
    .sticky-header .edition-badge-11 {
        min-width: 32px;
        height: 32px;
        font-size: 16px;
        right: -15px;
    }
}

@media (max-width: 991px) {
    .sticky-header .edition-badge-11 {
        min-width: 28px;
        height: 28px;
        font-size: 14px;
        right: -12px;
    }
}

/* Blue Edition Badge Animation */
@keyframes blueBadgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(17, 43, 181, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(17, 43, 181, 0.6);
    }
}

@keyframes blueBadgeRing {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

@keyframes blueGradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Mobile Menu - Modern Style */
.mobile-menu .menu-box {
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
}

.mobile-menu .navigation li a {
    color: #1a1a1a;
    font-weight: 600;
    padding: 15px 30px;
    border-bottom: 1px solid rgba(248, 160, 12, 0.1);
    transition: all 0.3s ease;
}

.mobile-menu .navigation li a:hover,
.mobile-menu .navigation li.current a {
    color: #f8a00c;
    background: rgba(248, 160, 12, 0.05);
    padding-left: 40px;
}

.mobile-menu .close-btn {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f8a00c 0%, #ffc107 100%);
    color: #ffffff;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu .close-btn:hover {
    transform: rotate(90deg);
    box-shadow: 0 5px 15px rgba(248, 160, 12, 0.4);
}

/* Responsive Adjustments */
@media (max-width: 1199px) {
    .main-header .main-menu .navigation > li {
        margin: 0 6px;
    }
    
    .main-header .header-lower {
        padding: 10px 0;
    }
}

@media (max-width: 991px) {
    .main-header .header-top {
        padding: 10px 0;
    }
    
    .main-header .header-lower {
        padding: 10px 0;
    }
    
    .main-header .btn-box .theme-btn {
        padding: 8px 18px;
        font-size: 13px;
    }
}

@media (max-width: 575px) {
    .main-header .header-top .contact-list {
        font-size: 12px;
    }
    
    .main-header .btn-box .theme-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* Header Navbar Layout Optimization - Menu Aligned Left */
.main-header .header-navbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
    gap: 8px;
}

.main-header .nav-outer {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    padding-left: 0;
    max-width: calc(100% - 150px);
}

.main-header .outer-box {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Add subtle hover effects to all interactive elements */
.main-header a,
.main-header button {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   SQUARE EDGES - Override all rounded corners
   in header/navigation area
   ============================================ */

/* Header Style Three - Main Box Background */
.header-style-three .main-box:before {
    border-radius: 0 !important;
}

/* Header Navbar */
.header-style-three .main-box .header-navbar {
    border-radius: 0 !important;
}

/* Logo Box Container - Square edges */
.header-style-three .main-box .logo-box {
    border-radius: 0 !important;
}

/* Header Top */
.header-style-three .header-top {
    border-radius: 0 !important;
}

.header-style-three .header-top .inner-box {
    border-radius: 0 !important;
}

/* UI Buttons in header */
.header-style-three .outer-box .ui-btn {
    border-radius: 0 !important;
}

/* All header elements with potential rounded corners */
.main-header .logo-box,
.main-header .header-navbar,
.main-header .main-box,
.main-header .main-box:before,
.main-header .main-box:after,
.main-header .header-top,
.main-header .header-top .inner-box {
    border-radius: 0 !important;
}

/* Sticky header square edges */
.sticky-header,
.sticky-header .logo-box,
.sticky-header .header-navbar {
    border-radius: 0 !important;
}
