/* ===================================
   Custom Header for YMG
====================================== */
.ymg-header {
    width: 100%;
    padding: 12px 30px;
    position: relative;
    z-index: 50;
    border-bottom: 2px solid #e5e5e5;
    background: #fff;
}

.ymg-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 400px);
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #004A8E 50%, transparent 100%);
    pointer-events: none;
}
.ymg-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.ymg-nav-column {
    display: flex;
    flex-direction: row;
    gap: 32px;
    text-transform: capitalize;
    font-weight: 600;
    letter-spacing: 0.3px;
    align-items: center;
    margin-top: 0;
}
.ymg-nav-column a {
    color: #004A8E;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

.ymg-nav-column a:not(.ymg-pill) {
    padding-left: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: linear-gradient(135deg, #1BC7CC 0%, #FFD700 50%, #FFA500 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: #004A8E;
}

.ymg-nav-column a:not(.ymg-pill):hover {
    -webkit-text-fill-color: transparent;
    background-position: right center;
    transform: translateY(-2px);
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}
.ymg-logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}
.ymg-logo-ring {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s ease;
    position: relative;
    z-index: 10;
}
.ymg-logo-ring:hover {
    transform: scale(1.05);
}
.ymg-logo-ring img {
    max-width: 140px;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.15));
}
.ymg-cta-group {
    display: flex;
    gap: 15px;
}
.ymg-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px !important;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .5px;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(0,0,0,.12);
    height: 42px;
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.ymg-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFD700, #FFA500, #FF8C00);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.ymg-pill-green {
    background: linear-gradient(135deg, #3BB273, #2e8e5a);
    box-shadow: 0 8px 20px rgba(59, 178, 115, 0.3);
}

.ymg-pill-green:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.4);
    letter-spacing: 1px;
}

.ymg-pill-green:hover::before {
    opacity: 1;
}

.ymg-pill-blue {
    background: linear-gradient(135deg, #004A8E, #003566);
    box-shadow: 0 8px 20px rgba(0, 74, 142, 0.3);
}

.ymg-pill-blue:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.4);
    letter-spacing: 1px;
}

.ymg-pill-blue:hover::before {
    opacity: 1;
}

.ymg-pill:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 10px rgba(0,0,0,.15);
}
.ymg-partner-logo {
    width: 110px;
    height: auto;
    margin-top: 5px;
}
.ymg-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
}
.ymg-mobile-toggle span {
    width: 26px;
    height: 3px;
    background: #004A8E;
    border-radius: 3px;
}

@media (max-width: 1350px) {
    .ymg-header::after {
        width: calc(100% - 200px);
    }
    .ymg-nav-column {
        gap: 20px;
    }
    .ymg-nav-column a {
        font-size: 16px;
    }
}

@media (max-width: 1199px) {
    .ymg-header {
        padding: 15px 20px;
    }
    .ymg-header::after {
        display: none;
    }
    .ymg-header-inner {
        flex-direction: column;
        gap: 20px;
    }
    .ymg-nav-column {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    .ymg-nav-column a {
        padding-left: 0;
        font-size: 15px;
    }
    .ymg-nav-column a:before {
        display: none;
    }
    .ymg-logo-ring {
        width: 120px;
        height: 120px;
    }
    .ymg-logo-ring img {
        max-width: 120px;
    }
    .ymg-pill {
        padding: 10px 24px !important;
        height: 38px;
        min-width: 100px;
        font-size: 14px;
    }
}

@media (max-width: 991px) {
    .ymg-header {
        padding: 12px 15px;
    }
    .ymg-header-inner {
        gap: 15px;
    }
    .ymg-nav-column {
        gap: 12px;
    }
    .ymg-nav-column a:not(.ymg-pill) {
        font-size: 14px;
    }
    .ymg-logo-ring {
        width: 100px;
        height: 100px;
    }
    .ymg-logo-ring img {
        max-width: 100px;
    }
}

/* Hide mobile-only items on desktop */
.mobile-only {
    display: none;
}

@media (max-width: 767px) {
    /* Show mobile-only items */
    .mobile-only {
        display: flex !important;
    }
    
    .ymg-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        padding: 15px 20px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    .ymg-header::after {
        display: none;
    }
    .ymg-mobile-toggle {
        display: flex;
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 1002;
        cursor: pointer;
    }
    .ymg-mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    .ymg-mobile-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }
    .ymg-mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    .ymg-header-inner {
        position: relative;
        padding-top: 0;
        flex-direction: row;
        justify-content: center;
    }
    .ymg-logo-wrapper {
        position: relative;
        z-index: 1001;
    }
    .ymg-logo-ring {
        width: 70px;
        height: 70px;
    }
    .ymg-logo-ring img {
        max-width: 70px;
    }
    
    /* Mobile Navigation Overlay - Single Menu */
    .ymg-nav-column.ymg-nav-left,
    .ymg-nav-column.ymg-nav-right {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 100px 30px 40px;
        overflow-y: auto;
        transition: left 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
        z-index: 999;
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.3);
    }
    
    /* Hide right nav on mobile (we'll show all in left) */
    .ymg-nav-column.ymg-nav-right {
        display: none;
    }
    
    .ymg-nav-column.ymg-nav-left.active {
        left: 0;
    }
    
    .ymg-nav-column a:not(.ymg-pill) {
        width: 100%;
        font-size: 20px;
        padding: 18px 0;
        color: #004A8E;
        -webkit-text-fill-color: #004A8E;
        border-bottom: 1px solid rgba(0, 74, 142, 0.1);
        transform: translateX(-50px);
        opacity: 0;
        transition: all 0.3s ease;
        font-weight: 600;
    }
    .ymg-nav-column.active a:not(.ymg-pill) {
        transform: translateX(0);
        opacity: 1;
    }
    .ymg-nav-column.active a:not(.ymg-pill):nth-child(1) { transition-delay: 0.1s; }
    .ymg-nav-column.active a:not(.ymg-pill):nth-child(2) { transition-delay: 0.15s; }
    .ymg-nav-column.active a:not(.ymg-pill):nth-child(3) { transition-delay: 0.2s; }
    .ymg-nav-column.active a:not(.ymg-pill):nth-child(4) { transition-delay: 0.25s; }
    .ymg-nav-column.active a:not(.ymg-pill):nth-child(5) { transition-delay: 0.3s; }
    .ymg-nav-column.active a:not(.ymg-pill):nth-child(6) { transition-delay: 0.35s; }
    .ymg-nav-column.active a:not(.ymg-pill):nth-child(7) { transition-delay: 0.4s; }
    
    .ymg-nav-column a:not(.ymg-pill):hover {
        padding-left: 15px;
        background: linear-gradient(90deg, #1BC7CC, #FFD700);
        -webkit-text-fill-color: transparent;
        border-left: 4px solid #1BC7CC;
    }
    
    .ymg-pill {
        width: 100%;
        max-width: 100%;
        padding: 16px 20px !important;
        height: 50px;
        margin-top: 15px;
        font-size: 16px;
        text-align: center;
        justify-content: center;
        transform: translateY(30px);
        opacity: 0;
        transition: all 0.3s ease;
    }
    .ymg-nav-column.active .ymg-pill {
        transform: translateY(0);
        opacity: 1;
    }
    .ymg-nav-column.active .ymg-pill.ymg-pill-green { 
        transition-delay: 0.45s; 
        background: linear-gradient(45deg, #3BB273 0%, #2f8d59 100%);
    }
    .ymg-nav-column.active .ymg-pill.ymg-pill-blue { 
        transition-delay: 0.5s;
        background: linear-gradient(45deg, #004A8E 0%, #003A70 100%);
    }
    
    /* Mobile Overlay Background */
    .ymg-mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(5px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 998;
    }
    .ymg-mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 480px) {
    .ymg-header {
        padding: 10px;
    }
    .ymg-nav-column {
        gap: 8px;
    }
    .ymg-logo-ring {
        width: 80px;
        height: 80px;
    }
    .ymg-logo-ring img {
        max-width: 80px;
    }
}

