/*
Theme Name: Buro Child
Template: buro
Version: 1.0.0
Text Domain: buro-child
*/

.tc-header {
    position: relative;
    z-index: 200;
    color: #fff;
    font-family: inherit;
}

.tc-wrap {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.tc-topbar {
    background: #3a3a3a;
    font-size: 12px;
}

.tc-topbar .tc-wrap {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.tc-topbar__text {
    color: #e8e8e8;
    line-height: 1.2;
}

.tc-topbar__nav .tc-top-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tc-topbar__nav a {
    color: #fff;
    text-decoration: none;
    font-size: 12px;
}

/*
.tc-mainbar {
    background: rgba(20, 20, 20, 0.95);
    position: relative;
}
*/
.tc-mainbar {
    position: sticky;
    top: 0;
    z-index: 220;
    background: rgba(20, 20, 20, 0.95);
} 

.tc-mainbar__inner {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.tc-logo {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
}

.tc-logo img {
    display: block;
    height: 48px;
    width: auto;
}

.tc-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
}

.tc-menu {
    display: flex;
    align-items: center;
    gap: 34px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tc-menu > li {
    position: relative;
}

.tc-menu > li > a {
    color: #fff;
    text-decoration: none;
    text-transform: none;
    font-size: 16px;
    line-height: 1;
    display: block;
    padding: 6px 0;
    position: relative;
}

.tc-menu > li > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 3px;
    border-radius: 3px;
    background: #DA1C23;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.22s ease;
}

.tc-menu > li > a:hover::after {
    transform: scaleX(1);
}

.tc-menu > li > a:hover {
    opacity: 0.85;
}

.tc-menu-item--mega img {margin-left: 8px}

.tc-menu-item--mega:hover .tc-mega {
    display: block;
}

.tc-menu-item--mega {
    position: relative;
}

.tc-mega {
    position: absolute;
    top: calc(100% + 24px);
    /*left: calc(50% - 20px);*/
    left: calc(50% - 290px);
    transform: translateX(-50%) translateY(-10px);
    width: 1180px;
    background: linear-gradient(180deg,rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.9) 13%, rgba(0, 0, 0, 0.9) 100%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    /*display: none;*/
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;
}

.tc-mega::before {
    content: "";
    position: absolute;
    top: -28px;
    left: 0;
    right: 0;
    height: 28px;
}

.tc-menu-item--mega:hover .tc-mega {
    /*display: block;*/
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}


.tc-mega__grid {
    display: flex;
    gap: 32px;
    padding: 34px 38px 30px;
}

.tc-mega__col {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tc-mega__col h4 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    color: #fff;
    font-style: normal;
}

.tc-mega__col a {
    color: #d8d8d8;
    text-underline-offset: 3px;
    line-height: 1.35;
    font-size: 14px;
    padding: 6px;
    transition: all .5s ease-in-out;
    border-radius: 6px;
    border-bottom: 2px solid rgba(0,0,0,0);
    position: relative;
    left: 0;
}

.tc-mega__col a span {
    color: #fff;
    opacity: 0.7;
    text-decoration: underline;
    text-transform: uppercase;
    text-underline-offset: 3px;
    line-height: 1.35;
    font-size: 14px;
    transition: all .5s ease-in-out;
}

.tc-mega__col a p.training-desc {
    color: #fff;
    opacity: 0.7;
    text-decoration: none;
    line-height: 1.35;
    font-size: 12px;
    transition: all .5s ease-in-out;
}

.tc-mega__col a:hover {
    color: #fff;
    background: rgba(0,0,0,1);
    border-bottom: 2px solid #DA1C23;
    left: 8px
}

.tc-mega__col a:hover span, .tc-mega__col a:hover p.training-desc {
    opacity: 1;
}

.tc-mega__footer {
    display: flex;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: rgba(0, 0, 0, 0.25);
}

.tc-mega__cta {
    flex: 1 1 50%;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.tc-mega__cta + .tc-mega__cta {
    border-left: 1px solid rgba(255,255,255,0.08);
}

.tc-mega__cta:hover {
    background: rgba(255,255,255,0.04);
}

.tc-top-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tc-top-menu li {
    margin: 0;
    padding: 0;
}

.tc-top-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    line-height: 1;
}

.tc-top-menu a:hover {
    color: #fff;
    text-decoration: underline;
    font-size: 12px;
    line-height: 1;
}

@media (max-width: 1200px) {
    .tc-mega {
        width: min(100vw - 40px, 1180px);
    }
}

@media (max-width: 980px) {
    .tc-topbar .tc-wrap,
    .tc-mainbar__inner,
    .tc-menu {
        flex-wrap: wrap;
    }

    .tc-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .tc-menu {
        gap: 18px 24px;
    }

    .tc-mega {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 12px;
    }

    .tc-mega__grid {
        flex-direction: column;
        gap: 28px;
    }

    .tc-mega__footer {
        flex-direction: column;
    }

    .tc-mega__cta + .tc-mega__cta {
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,0.08);
    }
}

/* mobile elements */
.tc-burger,
.tc-mobile {
    display: none;
}

/* MOBILE */
@media (max-width: 980px) {
    .tc-topbar__nav {
        display: none;
    }

    .tc-topbar .tc-wrap {
        justify-content: center;
        min-height: 32px;
    }

    .tc-topbar__text {
        text-align: center;
        font-size: 11px;
    }

    .tc-mainbar__inner {
        min-height: 74px;
        gap: 16px;
    }

    .tc-logo img {
        height: 40px;
    }

    .tc-nav {
        display: none;
    }

    .tc-mega {
        display: none !important;
    }

    .tc-burger {
        display: inline-flex;
        width: 44px;
        height: 44px;
        margin-left: auto;
        padding: 0;
        border: 0;
        background: transparent;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }

    .tc-burger span {
        display: block;
        width: 22px;
        height: 2px;
        background: #fff;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .tc-header.is-mobile-open .tc-burger span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .tc-header.is-mobile-open .tc-burger span:nth-child(2) {
        opacity: 0;
    }

    .tc-header.is-mobile-open .tc-burger span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .tc-mobile {
        display: block;
        background: rgba(10, 10, 10, 0.98);
        border-top: 1px solid rgba(255,255,255,0.08);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.25s ease;
    }

    .tc-header.is-mobile-open .tc-mobile {
        max-height: calc(100vh - 106px);
        opacity: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tc-mobile .tc-wrap {
        padding: 12px 0 24px;
    }

    .tc-mobile-menu,
    .tc-mobile-submenu {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .tc-mobile-menu ul {list-style-position: outside; padding-left: 30px; list-style-type: square;}
    .tc-mobile-menu li,
    .tc-mobile-submenu li {
        margin: 0;
        padding: 0;
    }

    .tc-mobile-menu a {
        display: block;
        padding: 8px 0;
        color: #fff;
        text-decoration: none;
        font-size: 18px;
        line-height: 1.2;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        text-transform: uppercase;
    }

    .tc-mobile-menu a:hover {
        color: #cc0000;
    }

    .tc-mobile-accordion {
        margin-top: 6px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .tc-mobile-accordion__trigger {
        width: 100%;
        padding: 14px 0;
        border: 0;
        background: transparent;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        font-size: 18px;
        line-height: 1.2;
        cursor: pointer;
    }

    .tc-mobile-accordion__icon {
        width: 10px;
        height: 10px;
        border-right: 2px solid #fff;
        border-bottom: 2px solid #fff;
        transform: rotate(45deg);
        transition: transform 0.2s ease;
        margin-right: 4px;
    }

    .tc-mobile-accordion.is-open .tc-mobile-accordion__icon {
        transform: rotate(225deg);
    }

    .tc-mobile-accordion__panel {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.25s ease;
    }

    .tc-mobile-accordion.is-open .tc-mobile-accordion__panel {
        max-height: 1200px;
        opacity: 1;
        padding: 4px 0 10px;
    }

    .tc-mobile-group {
        padding: 10px 0 14px;
    }

    .tc-mobile-group + .tc-mobile-group {
        border-top: 1px solid rgba(255,255,255,0.08);
    }

    .tc-mobile-group h4 {
        margin: 0 0 10px;
        color: #fff;
        font-size: 13px;
        line-height: 1.3;
        text-transform: uppercase;
        opacity: 0.75;
    }

    .tc-mobile-submenu a {
        display: block;
        padding: 10px 0;
        color: #fff;
        text-decoration: none;
        font-size: 15px;
        line-height: 1.35;
        opacity: 0.9;
    }
}

// media max-width

.tc-header {
    position: relative;
    z-index: 200;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tc-header.is-scrolled {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.9);
    animation: tcHeaderSlideDown 0.25s ease;
}

.mkd-wrapper-inner.has-fixed-tc-header {
    padding-top: 126px;
}

@keyframes tcHeaderSlideDown {
    from {
        transform: translateY(-10px);
        opacity: 0.96;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}