
/* TEKAFRIKA — PREMIUM EDITORIAL */

#tek-premium {
    --blue: #075BB9;
    --navy: #092B55;
    --cyan: #00B8E4;
    --text: #142033;

    position: relative;
    width: 100%;
    background: #fff;
    font-family: inherit;
    z-index: 100;
}

#tek-premium * {
    box-sizing: border-box;
}

#tek-premium [hidden] {
    display: none !important;
}

#tek-premium .tp-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

#tek-premium .tp-item > a,
#tek-premium .tp-trigger {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 20px 0;
    background: transparent;
    border: 0;
    color: var(--text);
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

#tek-premium .tp-item > a::after,
#tek-premium .tp-trigger::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--blue);
    transition: width .25s ease;
}

#tek-premium .tp-item > a:hover::after,
#tek-premium .tp-trigger:hover::after,
#tek-premium .tp-trigger[aria-expanded="true"]::after {
    width: 100%;
}

#tek-premium .tp-trigger[aria-expanded="true"] {
    color: var(--blue);
}

#tek-premium .tp-chevron {
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s;
}

#tek-premium .tp-trigger[aria-expanded="true"]
.tp-chevron {
    transform: rotate(225deg);
}

/* MEGA MENU */

#tek-premium .tp-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: min(100%, 1100px);
    display: grid;
    grid-template-columns: 30% 70%;
    background: #fff;
    border: 1px solid #e5eaf1;
    border-top: 3px solid var(--blue);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 20px 50px rgba(9,43,85,.15);
    overflow: hidden;
    animation: tp-appear .22s ease;
}

@keyframes tp-appear {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* SIDEBAR */

#tek-premium .tp-sidebar {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px;
    padding: 30px 25px;
    background: linear-gradient(
        145deg, #071C3D, #075BB9
    );
    color: white;
    overflow: hidden;
    isolation: isolate;
}

#tek-premium .tp-sidebar::before {
    content: "";
    position: absolute;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
    right: -100px;
    bottom: -60px;
    box-shadow:
        0 0 0 25px rgba(255,255,255,.035),
        0 0 0 55px rgba(255,255,255,.025);
    z-index: -1;
}

#tek-premium .tp-kicker {
    display: block;
    color: #78DEFF;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

#tek-premium .tp-sidebar h3 {
    margin: 0 0 15px;
    color: #fff;
    font-size: 29px;
    line-height: 1.2;
    font-weight: 700;
}

#tek-premium .tp-sidebar p {
    font-size: 13px;
    line-height: 1.8;
    color: #D6E7FD;
    margin: 0 0 25px;
}

#tek-premium .tp-sidebar a {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #fff;
    color: var(--navy);
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

/* CATEGORIES */

#tek-premium .tp-content {
    padding: 26px 30px;
}

#tek-premium .tp-label {
    color: #718096;
    font-size: 10px;
    letter-spacing: 1.8px;
    font-weight: 700;
    margin-bottom: 18px;
}

#tek-premium .tp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    column-gap: 20px;
}

#tek-premium .tp-category {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 8px;
    min-height: 62px;
    border-bottom: 1px solid #e9edf3;
    text-decoration: none;
    color: var(--text);
    transition: all .2s ease;
}

#tek-premium .tp-category:hover {
    color: var(--blue);
    background: #F0F6FF;
    border-radius: 6px;
}

#tek-premium .tp-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    color: var(--blue);
    background: #EDF5FF;
    border-radius: 50%;
    transition: all .2s;
}

#tek-premium .tp-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#tek-premium .tp-category:hover .tp-icon {
    background: var(--blue);
    color: #fff;
}

#tek-premium .tp-name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

#tek-premium .tp-arrow {
    color: #94A3B8;
    font-size: 16px;
    transition: transform .2s;
}

#tek-premium .tp-category:hover .tp-arrow {
    color: var(--blue);
    transform: translate(3px,-3px);
}

#tek-premium .tp-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 22px;
    gap: 10px;
}

#tek-premium .tp-footer span {
    font-size: 11px;
    color: #94A3B8;
}

#tek-premium .tp-footer a {
    font-size: 12px;
    font-weight: 700;
    color: var(--blue);
    text-decoration: none;
}

#tek-premium .tp-mobile {
    display: none;
}

#tek-premium a:focus-visible,
#tek-premium button:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

/* RESPONSIVE */

@media (max-width: 1200px) {
    #tek-premium .tp-nav {
        gap: 15px;
    }

    #tek-premium .tp-trigger,
    #tek-premium .tp-item > a {
        font-size: 12px;
    }
}

@media (max-width: 1024px) {

    #tek-premium .tp-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 15px;
        border: 1px solid #e5eaf1;
        border-radius: 6px;
        background: #fff;
        color: var(--navy);
        font-weight: 700;
        cursor: pointer;
    }

    #tek-premium .tp-nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    #tek-premium .tp-nav.is-open {
        display: flex;
    }

    #tek-premium .tp-item > a,
    #tek-premium .tp-trigger {
        width: 100%;
        padding: 16px 12px;
        justify-content: space-between;
        border-bottom: 1px solid #e9edf3;
        font-size: 14px;
        text-align: left;
    }

    #tek-premium .tp-panel {
        position: static;
        transform: none;
        width: 100%;
        grid-template-columns: 1fr;
        box-shadow: none;
        border-radius: 8px;
        border-top: 2px solid var(--blue);
    }

    #tek-premium .tp-sidebar {
        display: none;
    }

    #tek-premium .tp-content {
        padding: 15px;
    }

    #tek-premium .tp-grid {
        grid-template-columns: 1fr;
    }

    #tek-premium .tp-footer span {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    #tek-premium * {
        animation: none !important;
        transition: none !important;
    }
}


/* Arabic test header; keep the original French rules intact. */
#tek-premium.tfn-rtl{direction:rtl;font-family:Cairo,Arial,sans-serif;text-align:right}
#tek-premium.tfn-rtl .tp-nav{gap:clamp(15px,1.5vw,25px);flex-wrap:wrap}
#tek-premium.tfn-rtl .tp-kicker,#tek-premium.tfn-rtl .tp-label{letter-spacing:0}
#tek-premium.tfn-rtl .tp-sidebar h3{font-family:inherit;line-height:1.3}
#tek-premium.tfn-rtl .tp-item>a::after,#tek-premium.tfn-rtl .tp-trigger::after{left:auto;right:0}
#tek-premium.tfn-rtl .tp-arrow{transform:scaleX(-1)}
#tek-premium.tfn-rtl .tp-category:hover .tp-arrow{transform:scaleX(-1) translate(3px,-3px)}
#tek-premium.tfn-rtl .tp-name{overflow-wrap:anywhere}
@media(max-width:1024px){#tek-premium.tfn-rtl .tp-item>a,#tek-premium.tfn-rtl .tp-trigger{text-align:right}}

@media(min-width:1025px){#tek-premium.tfn-rtl .tp-item>a,#tek-premium.tfn-rtl .tp-trigger{font-size:16px;padding:20px 0}#tek-premium.tfn-rtl .tp-name{font-size:14px}}
@media(min-width:1025px) and (max-width:1200px){#tek-premium.tfn-rtl .tp-item>a,#tek-premium.tfn-rtl .tp-trigger{font-size:14px}#tek-premium.tfn-rtl .tp-nav{gap:15px}}
