/* ========================================
   TEKNOLOGIA CUSTOM NAVIGATION
   Custom header and navigation styles
   ======================================== */

/* ===== MAIN NAVIGATION HEADER ===== */
.tek-navigation-header {
    background: #0053a7;
    position: sticky;
    top: 0;
    z-index: 1020;
    transition: all 0.3s ease;
    margin-top: 1rem;
    overflow: visible;
}

.tek-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    min-height: 60px;
    overflow: visible;
    width: 100%;
    gap: 1rem;
}
.tek-navigation-header.scrolled {
    background: #ffffff;
    box-shadow: 0 1px 1px 1px #e3e3e3;
    border-bottom: 1px solid #d4d4d4;
}


.tek-navigation-header.scrolled ul li a{
    color: #0053a7;
}

.tek-navigation-header.scrolled ul li.play-nav a{
    color: #ffffff;
}


/* ===== NAVIGATION FAVICON ===== */
.tek-nav-favicon {
    display: none;
    align-items: center;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tek-navigation-header.scrolled .tek-nav-favicon {
    display: flex;
    opacity: 1;
    transform: translateX(0);
    display: none;
}

.tek-favicon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.tek-favicon-link:hover {
    transform: scale(1.1);
}


.tek-favicon-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.tek-navigation-header.scrolled .tek-favicon-img {
    filter: none;
}



.tek-favicon-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.2rem;
    font-family: 'Khand', sans-serif;
}

/* ===== NAVIGATION MENU ===== */
.tek-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: visible;
}

/* ===== DESKTOP NAVIGATION MENU ===== */
.tek-desktop-menu {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    flex: 1;
    width: 100%;
}

/* Navigation Menu List */
.tek-desktop-menu .tek-nav-menu-list {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
    flex: 1;
    width: 100%;
    flex-wrap: wrap;
}

/* Nav Item */
.tek-nav-menu-list .tek-nav-item,
.tek-nav-menu-list li {
    position: relative;
    margin: 0;
    overflow: visible;
}

/* ===== MOBILE NAVIGATION MENU ===== */
.tek-mobile-menu {
    display: none;
}
/* Play Nav Button Styling */
.tek-nav-menu ul li.play-nav,
.tek-nav-menu-list li.play-nav {
    background: #f93a48;
    border-radius: 12px;
    margin-left: 0.5rem;
}

.tek-nav-menu ul li.play-nav a,
.tek-nav-menu-list li.play-nav .tek-nav-link {
    color: #ffffff;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.tek-nav-menu ul li.play-nav:hover,
.tek-nav-menu-list li.play-nav:hover {
    background: #e02835;
    transform: scale(1.05);
}

.tek-nav-menu ul li.play-nav a:hover,
.tek-nav-menu-list li.play-nav .tek-nav-link:hover {
    background: transparent;
    color: #ffffff;
}

/* Icon Styling in Nav Links */
.tek-nav-link i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.tek-nav-link:hover i {
    transform: scale(1.1);
}

/* Play Icon Specific */
.play-nav .fa-circle-play,
.play-nav .fa-regular.fa-circle-play {
    font-size: 1.5rem;
    margin: 0;
}
.tek-nav-item {
    position: relative;
    margin: 0;
    overflow: visible;
}

/* Nav Link */
.tek-nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 0.8rem;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 500;
    font-family: 'Khand', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 6px;
    position: relative;
    white-space: nowrap;
}

.tek-nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.tek-nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
}

/* Dropdown Arrow - moved to submenu section */

/* ===== DROPDOWN SUBMENU ===== */
.tek-nav-menu-list li.menu-item-has-children,
.tek-nav-item.menu-item-has-children {
    position: relative;
}

/* Invisible bridge to maintain hover connection */
.tek-nav-menu-list li.menu-item-has-children::before,
.tek-nav-item.menu-item-has-children::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0.5rem;
    z-index: 1001;
    background: transparent;
}

/* Dropdown Submenu */
.tek-submenu {
    position: absolute;
    top: 100%;
    transform: translateY(-10px) scale(0.95);
    min-width: 220px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-radius: 12px;
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1002;
    pointer-events: none;
    will-change: opacity, visibility, transform;
    border: none;
}

/* Show submenu on hover - Desktop (CSS-only for better performance) */
@media (min-width: 992px) {
    .tek-nav-menu-list li.menu-item-has-children:hover > .tek-submenu,
    .tek-nav-item.menu-item-has-children:hover > .tek-submenu,
    .tek-nav-menu .menu-item-has-children:hover > .tek-submenu,
    .tek-nav-menu .menu-item-has-children.open:hover > .tek-submenu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        pointer-events: auto;
        display: block;
    }
}


/* Smooth animation for dropdown arrow */
.tek-dropdown-arrow {
    margin-left: 0.5rem;
    font-size: 0.7rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    color: #ffffff;
}
.tek-navigation-header.scrolled ul li a .tek-dropdown-arrow {
    color: #0053a7;
}

.tek-nav-menu-list li.menu-item-has-children:hover .tek-dropdown-arrow,
.tek-nav-item.menu-item-has-children:hover .tek-dropdown-arrow,
.tek-nav-item.menu-item-has-children.open:hover .tek-dropdown-arrow {
    transform: rotate(180deg);
    color: #ffffff;
}

/* Submenu item animation - Enhanced hover animations */
.tek-submenu .tek-nav-item,
.tek-submenu li {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tek-nav-menu-list li.menu-item-has-children:hover > .tek-submenu li,
.tek-nav-item.menu-item-has-children:hover > .tek-submenu .tek-nav-item,
.tek-nav-menu .menu-item-has-children:hover > .tek-submenu li,
.tek-nav-menu .menu-item-has-children.open:hover > .tek-submenu .tek-nav-item,
.tek-nav-item.menu-item-has-children:hover .tek-submenu:hover .tek-nav-item {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger animation for submenu items - Smooth entrance */
.tek-submenu .tek-nav-item:nth-child(1),
.tek-submenu li:nth-child(1) {
    transition-delay: 0.05s;
}

.tek-submenu .tek-nav-item:nth-child(2),
.tek-submenu li:nth-child(2) {
    transition-delay: 0.1s;
}

.tek-submenu .tek-nav-item:nth-child(3),
.tek-submenu li:nth-child(3) {
    transition-delay: 0.15s;
}

.tek-submenu .tek-nav-item:nth-child(4),
.tek-submenu li:nth-child(4) {
    transition-delay: 0.2s;
}

.tek-submenu .tek-nav-item:nth-child(5),
.tek-submenu li:nth-child(5) {
    transition-delay: 0.25s;
}

.tek-submenu .tek-nav-item:nth-child(n+6),
.tek-submenu li:nth-child(n+6) {
    transition-delay: 0.3s;
}

/* Hover effect on submenu items */
.tek-submenu .tek-nav-link:hover {
    transform: translateX(5px);
    background-color: rgba(0, 83, 167, 0.1);
}

/* Submenu Item Link */
.tek-submenu .tek-nav-link {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-family: 'Khand', sans-serif;
    color: #1d1d1f;
    border-radius: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: block;
    width: 100%;
    justify-content: flex-start;
    font-weight: 500;
}

.tek-submenu .tek-nav-link:hover {
    color: #0053a7;
    padding-left: 2rem;
    background-color: rgba(0, 83, 167, 0.1);
    transform: translateX(5px);
}



/* ===== MOBILE MENU TOGGLE ===== */
.tek-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 5px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    border-radius: 0;
    box-shadow: none;
}

/* Show hamburger button only on mobile (480px and below) */
@media (max-width: 480px) {
    .tek-mobile-toggle {
        display: flex;
    }
}

.tek-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    transform-origin: center;
    position: relative;
}

.tek-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: #0885c9;
}

.tek-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
    width: 0;
}

.tek-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: #0885c9;
}

/* ===== MOBILE MENU OVERLAY ===== */
.tek-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: none;
}

/* Show overlay only on mobile (480px and below) */
@media (max-width: 480px) {
    .tek-menu-overlay {
        display: block;
    }
}

.tek-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== MOBILE MENU ===== */
/* Hide mobile menu on desktop and tablet (above 480px) */
@media (min-width: 481px) {
    .tek-mobile-menu {
        display: none !important;
    }

    .tek-mobile-toggle {
        display: none !important;
    }

    .tek-menu-overlay {
        display: none !important;
    }
}

/* Show mobile menu only on mobile (480px and below) */
@media (max-width: 480px) {
    /* Hide desktop menu on mobile */
    .tek-desktop-menu {
        display: none;
    }

    /* Show mobile toggle */
    .tek-mobile-toggle {
        display: flex;
    }

    /* Mobile menu styling - Slide from right to left */
    .tek-mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        max-width: 85%;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 4rem 1.5rem 2rem;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        overflow-y: auto;
        gap: 0;
    }

    .tek-mobile-menu.active {
        right: 0;
    }

    /* Menu Overlay */
    .tek-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .tek-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .tek-mobile-menu .tek-nav-menu-list {
        display: flex;
        flex-direction: column;
        width: 100%;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 0;
    }

    .tek-mobile-menu .tek-nav-item {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .tek-mobile-menu .tek-nav-link {
        width: 100%;
        padding: 1rem;
        color: #1d1d1f;
        font-size: 1.1rem;
        justify-content: space-between;
    }

    .tek-mobile-menu .tek-nav-link:hover {
        background: rgba(8, 133, 201, 0.1);
        color: #0885c9;
    }

    .tek-mobile-menu .tek-submenu {
        position: static;
        width: 100%;
        background: #f8f9fa;
        box-shadow: none;
        border-radius: 0;
        margin: 0;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .tek-mobile-menu .tek-nav-item.menu-item-has-children.open > .tek-submenu {
        max-height: 1000px;
        padding: 0.5rem 0;
    }

    .tek-mobile-menu .tek-submenu .tek-nav-link {
        padding-left: 2rem;
        font-size: 0.95rem;
    }
}

/* ===== DESKTOP MENU ===== */
/* Show desktop menu on tablet and desktop (above 480px) */
@media (min-width: 481px) {
    /* Show desktop menu */
    .tek-desktop-menu {
        display: flex;
        visibility: visible;
        opacity: 1;
    }

    .tek-desktop-menu .tek-nav-menu-list {
        display: flex;
        visibility: visible;
    }
}

/* Mobile menu adjustments for smaller screens */
@media (max-width: 480px) {
    .tek-mobile-menu {
        width: 280px;
        max-width: 85%;
    }

    .tek-mobile-menu .tek-nav-link {
        font-size: 1rem;
    }
}


/* ===== TAGS NAVIGATION BAR ===== */


.tek-tags-nav-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tek-tags-nav-wrapper::-webkit-scrollbar {
    display: none;
}

.tek-tags-list {
    display: flex;
    gap: 0.75rem;
    padding: 0;
    margin: 0;
    list-style: none;
    white-space: nowrap;
}

.tek-tag-item {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #ffffff;
    border: 1px solid #e5e5e7;
    border-radius: 20px;
    color: #1d1d1f;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tek-tag-item:hover {
    background: #ED1C25;
    color: #ffffff;
    border-color: #ED1C25;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 991px) {
    .tek-navigation-header {
        margin-top: 0;
    }

    .tek-nav-container {
        min-height: 50px;
    }

    .tek-nav-favicon {
        display: none;
    }
}

@media (max-width: 768px) {
    .tek-nav-container {
        min-height: 45px;
    }

    .tek-mobile-toggle {
        width: 35px;
        height: 35px;
    }

    .tek-tags-nav-wrapper {
        padding: 0 1rem;
    }
}

/* ===== MOBILE RESPONSIVE HEADER (Below 480px) ===== */
/* REMOVED - 480px mobile responsive styles disabled */


/* ===== ACCESSIBILITY ===== */
.tek-nav-link:focus {
    outline: none;
}

.tek-mobile-toggle:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* ===== ANIMATIONS ===== */
@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Enhanced dropdown animation */
.tek-nav-menu-list li.menu-item-has-children:hover > .tek-submenu,
.tek-nav-item.menu-item-has-children:hover > .tek-submenu,
.tek-nav-menu .menu-item-has-children:hover > .tek-submenu,
.tek-nav-menu .menu-item-has-children.open:hover > .tek-submenu {
    animation: slideDownFade 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}



