:root {
    --tp-primary: #0e82fd;
    --tp-primary-dark: #075fc2;
    --tp-primary-light: #eaf4ff;
    --tp-heading: #102a43;
    --tp-text: #334155;
    --tp-muted: #64748b;
    --tp-border: #dceaf7;
    --tp-font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tp-site-header,
.tp-mobile-drawer,
.tp-search-overlay {
    font-family: var(--tp-font);
}

.tp-site-header *,
.tp-mobile-drawer *,
.tp-search-overlay * {
    box-sizing: border-box;
}

.tp-site-header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    height: 84px;
    display: flex;
    align-items: center;
    font-size: 16px;
    line-height: 1.5;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: height .25s ease, background-color .25s ease, border-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}

.tp-site-header.is-scrolled {
    position: fixed;
    height: 74px;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid rgba(220, 234, 247, .7);
    box-shadow: 0 4px 20px rgba(16, 42, 67, .05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.tp-header-inner {
    width: 100%;
    max-width: var(--container-max-width, 1320px);
    min-width: 0;
    margin: 0 auto;
    padding: 0 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tp-brand-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
}

.tp-brand-logo img {
    display: block;
    width: auto;
    max-width: 170px;
    height: 42px;
    object-fit: contain;
}

.tp-site-header .tp-brand-logo img {
    width: 150px;
    height: auto;
}

.tp-main-nav-wrapper {
    display: flex;
    align-items: center;
    min-width: 0;
}

.tp-main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tp-main-nav > li {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tp-main-nav > li > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    color: var(--tp-text);
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
    text-decoration: none;
    transition: color .18s ease;
}

.tp-main-nav > li:not(.tp-language-menu) > a::after {
    content: "";
    position: absolute;
    bottom: 3px;
    left: 50%;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--tp-primary);
    transform: translateX(-50%);
    transition: width .25s ease;
}

.tp-main-nav > li:hover > a,
.tp-main-nav > li.is-active > a {
    color: var(--tp-primary);
}

.tp-main-nav > li:hover > a::after,
.tp-main-nav > li.is-active > a::after {
    width: 100%;
}

.tp-nav-dropdown-toggle i {
    color: #94a3b8;
    font-size: 10px;
    transition: transform .22s ease;
}

.tp-nav-dropdown:hover .tp-nav-dropdown-toggle i,
.tp-nav-dropdown:focus-within .tp-nav-dropdown-toggle i {
    color: var(--tp-primary);
    transform: rotate(180deg);
}

.tp-dropdown-menu,
.tp-language-submenu {
    position: absolute;
    top: calc(100% + 10px);
    z-index: 10;
    min-width: 210px;
    margin: 0;
    padding: 7px;
    border: 1px solid rgba(220, 234, 247, .95);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(16, 42, 67, .12);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: all .2s ease;
}

.tp-dropdown-menu {
    left: 0;
}

.tp-language-submenu {
    left: 50%;
    min-width: 156px;
    transform: translate(-50%, 8px);
}

.tp-dropdown-menu::before,
.tp-language-submenu::before {
    content: "";
    position: absolute;
    top: -12px;
    right: 0;
    left: 0;
    height: 12px;
}

.tp-nav-dropdown:hover .tp-dropdown-menu,
.tp-nav-dropdown:focus-within .tp-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.tp-language-menu:hover .tp-language-submenu,
.tp-language-menu:focus-within .tp-language-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.tp-dropdown-menu li,
.tp-language-submenu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tp-dropdown-menu a,
.tp-language-submenu a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    border-radius: 9px;
    color: var(--tp-text);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all .18s ease;
}

.tp-dropdown-menu a:hover,
.tp-language-submenu a:hover,
.tp-language-submenu a.is-active {
    color: var(--tp-primary);
    background: var(--tp-primary-light);
    transform: translateX(2px);
}

.tp-language-submenu img {
    width: 22px;
    height: 15px;
    border-radius: 3px;
    object-fit: cover;
}

.tp-main-nav > .tp-language-menu {
    margin-left: 2px;
}

.tp-language-menu > button,
.tp-search-trigger {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0;
    border: 1px solid rgba(226, 232, 240, .8);
    border-radius: 50%;
    outline: 0;
    color: #475569;
    background: rgba(241, 245, 249, .7);
    cursor: pointer;
    transition: all .18s ease;
}

.tp-language-menu > button {
    width: 36px;
    height: 36px;
    font-size: 14.5px;
}

.tp-language-menu > button:hover,
.tp-language-menu > button:focus-visible,
.tp-search-trigger:hover {
    color: var(--tp-primary);
    border-color: #badafa;
    background: var(--tp-primary-light);
    transform: translateY(-1px);
}

.tp-language-menu > button:hover,
.tp-language-menu > button:focus-visible {
    transform: scale(1.05);
}

.tp-site-header button:focus-visible {
    outline: 2px solid var(--tp-primary);
    outline-offset: 2px;
}

.tp-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.tp-header-login,
.tp-header-register,
.tp-header-booking {
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    transition: all .18s ease;
}

.tp-header-login {
    padding: 0 16px;
    color: var(--tp-heading);
    border: 1px solid transparent;
}

.tp-header-login:hover {
    color: var(--tp-primary);
    background: #f1f5f9;
    transform: translateY(-1px);
}

.tp-header-register {
    padding: 0 18px;
    color: var(--tp-primary);
    border: 1.5px solid var(--tp-primary);
    background: rgba(14, 130, 253, .05);
}

.tp-header-booking {
    gap: 10px;
    padding: 0 20px;
}

.tp-header-register:hover {
    color: #fff;
    background: var(--tp-primary);
    box-shadow: 0 4px 14px rgba(14, 130, 253, .25);
    transform: translateY(-1px);
}

.tp-header-booking,
.tp-mobile-booking {
    color: #fff;
    border: 1px solid transparent;
    background: linear-gradient(135deg, #0e82fd 0%, #086ad8 100%);
    box-shadow: 0 10px 24px -6px rgba(14, 130, 253, .42);
}

.tp-header-booking {
    border-width: 1.5px;
}

.tp-header-booking:hover,
.tp-mobile-booking:hover {
    color: #fff;
    background: linear-gradient(135deg, #1d8eff 0%, #075fc2 100%);
    box-shadow: 0 14px 28px -5px rgba(14, 130, 253, .5);
    transform: translateY(-1px);
}

.tp-header-booking .tp-booking-arrow,
.tp-mobile-booking span {
    transition: transform .18s ease;
}

.tp-header-booking .tp-booking-arrow {
    font-size: 16px;
}

.tp-mobile-booking span {
    margin-left: 8px;
}

.tp-header-booking:hover .tp-booking-arrow,
.tp-mobile-booking:hover span {
    transform: translateX(3px);
}

.tp-mobile-toggle {
    width: 28px;
    height: 20px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
}

.tp-mobile-toggle span {
    width: 100%;
    height: 2.5px;
    border-radius: 2px;
    background: var(--tp-heading);
}

.tp-mobile-drawer,
.tp-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all .25s ease;
}

.tp-mobile-drawer.is-open,
.tp-search-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.tp-mobile-backdrop,
.tp-search-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(4px);
}

.tp-mobile-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(360px, 92vw);
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 24px;
    overflow-y: auto;
    background: #fff;
    box-shadow: -8px 0 24px rgba(15, 23, 42, .15);
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.16, 1, .3, 1);
}

.tp-mobile-drawer.is-open .tp-mobile-panel {
    transform: translateX(0);
}

.tp-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.tp-mobile-header .tp-brand-logo img {
    height: 36px;
    max-width: 145px;
}

.tp-close-button,
.tp-search-close {
    padding: 2px 7px;
    border: 0;
    color: #8295a9;
    background: transparent;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.tp-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tp-mobile-nav > a,
.tp-mobile-dropdown-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 4px;
    border: 0;
    color: var(--tp-heading);
    background: transparent;
    font-size: 15.5px;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
}

.tp-mobile-nav > a:hover,
.tp-mobile-nav > a.is-active {
    color: var(--tp-primary);
}

.tp-mobile-dropdown-toggle i {
    color: #94a3b8;
    font-size: 11px;
    transition: transform .2s ease;
}

.tp-mobile-dropdown.is-open .tp-mobile-dropdown-toggle i {
    color: var(--tp-primary);
    transform: rotate(180deg);
}

.tp-mobile-dropdown-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    margin: 2px 0 8px 5px;
    padding: 4px 0 4px 14px;
    border-left: 2px solid #e2e8f0;
}

.tp-mobile-dropdown.is-open .tp-mobile-dropdown-menu {
    display: flex;
}

.tp-mobile-dropdown-menu a {
    padding: 7px 0;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.tp-mobile-bottom {
    margin-top: auto;
    padding-top: 20px;
}

.tp-mobile-language-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #8295a9;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.tp-mobile-languages,
.tp-mobile-auth {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.tp-mobile-languages {
    margin-bottom: 12px;
}

.tp-mobile-languages a,
.tp-mobile-auth a {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px;
    border: 1px solid var(--tp-border);
    border-radius: 10px;
    color: var(--tp-text);
    background: #f8fafc;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.tp-mobile-languages a.is-active {
    color: var(--tp-primary);
    border-color: var(--tp-primary);
    background: var(--tp-primary-light);
}

.tp-mobile-languages img {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
}

.tp-mobile-auth {
    margin-bottom: 10px;
}

.tp-mobile-auth a:last-child {
    color: var(--tp-primary);
    border-color: var(--tp-primary);
    background: #fff;
}

.tp-mobile-booking {
    width: 100%;
    min-height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.tp-search-overlay {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 100px 20px 24px;
}

.tp-search-modal {
    position: relative;
    width: min(760px, 100%);
    max-height: min(720px, calc(100vh - 124px));
    display: flex;
    flex-direction: column;
    padding: 24px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, .3);
    isolation: isolate;
    transform: translateY(-20px);
    transition: transform .25s ease;
}

.tp-search-overlay.is-open .tp-search-modal {
    transform: translateY(0);
}

.tp-search-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.tp-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
}

.tp-search-input-wrap > i {
    position: absolute;
    left: 15px;
    z-index: 1;
    color: #8295a9;
}

.tp-search-input-wrap input {
    width: 100%;
    height: 50px;
    padding: 0 42px 0 44px;
    border: 1.5px solid var(--tp-border);
    border-radius: 12px;
    outline: 0;
    color: #0f172a;
    background: #f8fafc;
    font-family: var(--tp-font);
    font-size: 14.5px;
    transition: all .18s ease;
}

.tp-search-input-wrap input:focus {
    border-color: var(--tp-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(14, 130, 253, .12);
}

.tp-search-input-wrap input::-webkit-search-cancel-button {
    display: none;
}

#tpSearchClear {
    position: absolute;
    right: 10px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #94a3b8;
    background: transparent;
}

#tpSearchClear[hidden] {
    display: none;
}

.tp-search-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e8f1fa;
    scrollbar-width: none;
}

.tp-search-tags > span {
    color: #8295a9;
    font-size: 12.5px;
    font-weight: 600;
}

.tp-search-tags button {
    padding: 5px 12px;
    border: 1px solid #e8f1fa;
    border-radius: 999px;
    color: var(--tp-primary-dark);
    background: #f2f7fe;
    font-family: var(--tp-font);
    font-size: 12px;
    font-weight: 600;
}

.tp-search-tags button:hover {
    color: #fff;
    background: var(--tp-primary);
}

.tp-search-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    overflow-x: auto;
    border-bottom: 1px solid #f1f5f9;
    scrollbar-width: none;
}

.tp-search-tags::-webkit-scrollbar,
.tp-search-tabs::-webkit-scrollbar {
    display: none;
}

.tp-search-tabs button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--tp-muted);
    background: transparent;
    font-family: var(--tp-font);
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
}

.tp-search-tabs button:hover,
.tp-search-tabs button.is-active {
    color: var(--tp-primary);
    border-color: #bfdbfe;
    background: #eff6ff;
}

.tp-search-tabs button span {
    min-width: 20px;
    padding: 1px 6px;
    border-radius: 999px;
    color: #475569;
    background: #e2e8f0;
    font-size: 10.5px;
    font-weight: 700;
    text-align: center;
}

.tp-search-tabs button.is-active span {
    color: #fff;
    background: var(--tp-primary);
}

.tp-search-results {
    flex: 1;
    min-height: 180px;
    overflow-y: auto;
    padding-right: 4px;
    background: #fff;
}

.tp-search-results::-webkit-scrollbar {
    width: 6px;
}

.tp-search-results::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: #cbd5e1;
}

.tp-search-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 15px 0 9px;
    padding-bottom: 6px;
    border-bottom: 1px dashed #e2e8f0;
    color: var(--tp-muted);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.tp-search-section-title:first-child {
    margin-top: 2px;
}

.tp-search-card {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
    padding: 12px 14px;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    color: inherit;
    background: #fff;
    text-decoration: none;
    transition: all .18s ease;
}

.tp-search-card:hover {
    color: inherit;
    border-color: #cbd5e1;
    background: #f8fafc;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .05);
    transform: translateY(-1px);
}

.tp-search-visual {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 12px;
    color: #0284c7;
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    font-size: 22px;
}

.tp-search-card[data-type="expert"] .tp-search-visual {
    border-radius: 50%;
}

.tp-search-card[data-type="blog"] .tp-search-visual {
    width: 74px;
}

.tp-search-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tp-search-card-main {
    min-width: 0;
    flex: 1;
}

.tp-search-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 4px;
    color: var(--tp-muted);
    font-size: 11px;
}

.tp-search-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 6px;
    color: #0369a1;
    background: #e0f2fe;
    font-weight: 700;
}

.tp-search-card[data-type="test"] .tp-search-badge {
    color: #b45309;
    background: #fef3c7;
}

.tp-search-card[data-type="blog"] .tp-search-badge {
    color: #047857;
    background: #ecfdf5;
}

.tp-search-card h4 {
    margin: 0 0 3px;
    overflow: hidden;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tp-search-card p {
    margin: 0;
    overflow: hidden;
    color: var(--tp-muted);
    font-size: 12px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tp-search-card-action {
    flex: 0 0 auto;
    padding: 6px 10px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    color: var(--tp-primary);
    background: #eff6ff;
    font-size: 11.5px;
    font-weight: 700;
}

.tp-search-card:hover .tp-search-card-action {
    color: #fff;
    border-color: var(--tp-primary);
    background: var(--tp-primary);
}

.tp-search-message {
    padding: 48px 20px;
    color: #8295a9;
    font-size: 13.5px;
    line-height: 1.6;
    text-align: center;
}

.tp-search-message i {
    display: block;
    margin-bottom: 10px;
    color: var(--tp-primary);
    font-size: 24px;
}

body.tp-overlay-open {
    overflow: hidden !important;
}

@media (max-width: 1280px) {
    .tp-main-nav {
        gap: 16px;
    }

    .tp-main-nav > li > a,
    .tp-language-menu > button {
        font-size: 14px;
    }

    .tp-header-actions {
        gap: 8px;
    }

    .tp-header-login {
        padding-inline: 12px;
        font-size: 13.5px;
    }

    .tp-header-register {
        padding-inline: 16px;
        font-size: 13.5px;
    }

    .tp-header-booking {
        padding-inline: 18px;
        font-size: 13.5px;
    }
}

@media (max-width: 1100px) {
    .tp-main-nav-wrapper {
        display: none;
    }

    .tp-mobile-toggle {
        display: flex;
    }
}

@media (max-width: 960px) {
    .tp-site-header {
        height: 72px;
    }
}

@media (max-width: 860px) {
    .tp-header-login,
    .tp-header-register {
        display: none;
    }
}

@media (max-width: 640px) {
    .tp-site-header {
        height: 64px;
    }

    .tp-site-header.is-scrolled {
        height: 64px;
    }

    .tp-header-inner {
        padding: 0 20px;
    }

    .tp-header-actions {
        gap: 10px;
    }

    .tp-header-booking {
        display: none;
    }

    .tp-search-trigger {
        width: 36px;
        height: 36px;
    }

    .tp-mobile-toggle {
        width: 24px;
        height: 18px;
    }
}

@media (max-width: 760px) {
    .tp-search-overlay {
        padding: 70px 12px 12px;
    }

    .tp-search-modal {
        max-height: calc(100vh - 82px);
        padding: 18px;
        border-radius: 16px;
    }

    .tp-search-tags {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .tp-search-tags > span,
    .tp-search-tags button {
        flex: 0 0 auto;
    }

    .tp-search-card-action {
        display: none;
    }
}

@media (max-width: 520px) {
    .tp-search-header {
        gap: 6px;
    }

    .tp-search-input-wrap input {
        height: 46px;
        padding-left: 40px;
        font-size: 13px;
    }

    .tp-search-card {
        gap: 11px;
        padding: 10px;
    }

    .tp-search-visual {
        width: 46px;
        height: 46px;
    }

    .tp-search-card[data-type="blog"] .tp-search-visual {
        width: 58px;
    }
}
