:is(.department-page, .tabbed-page) {
    --department-ink: #17365c;
    --department-brand: #1f4778;
    --department-accent: #c32227;
    --department-text: #536273;
    --department-line: #e2e8f0;
    color: var(--department-text);
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
}

:is(.department-page, .tabbed-page) .section-space.accent-bg {
    background: #f4f7fb;
    padding: 48px 0 64px;
}

:is(.department-page, .tabbed-page) .section-space.accent-bg > .container > .row {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 24px;
    margin: 0;
}

:is(.department-page, .tabbed-page) .section-space.accent-bg > .container > .row > [class*="col-"] {
    max-width: none;
    padding: 0;
    width: auto;
}

:is(.department-page, .tabbed-page) .profile-title {
    align-content: start;
    background: #fff;
    border: 1px solid var(--department-line);
    border-radius: 12px;
    box-shadow: 0 8px 26px rgba(23, 54, 92, .06);
    display: flex;
    flex-direction: column;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 10px;
    position: sticky;
    top: 20px;
}

:is(.department-page, .tabbed-page) .profile-title .menu-item {
    margin: 0;
    padding: 0;
}

:is(.department-page, .tabbed-page) .profile-title .menu-link {
    align-items: center;
    border-radius: 7px;
    color: #536273;
    display: flex;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    min-height: 42px;
    padding: 10px 12px;
    transition: background .2s ease, color .2s ease;
}

:is(.department-page, .tabbed-page) .profile-title .menu-link::before {
    color: var(--department-brand);
    content: "\f105";
    font-family: FontAwesome;
    margin-right: 10px;
    position: static;
    transform: none;
}

:is(.department-page, .tabbed-page) .profile-title .menu-link.active::after,
:is(.department-page, .tabbed-page) .profile-title .menu-link[aria-selected="true"]::after {
    content: none;
}

:is(.department-page, .tabbed-page) .profile-title .menu-link:hover,
:is(.department-page, .tabbed-page) .profile-title .menu-link.active,
:is(.department-page, .tabbed-page) .profile-title .menu-link[aria-selected="true"] {
    background: #eef3f9;
    color: var(--department-brand);
}

:is(.department-page, .tabbed-page) .profile-title .menu-link.active,
:is(.department-page, .tabbed-page) .profile-title .menu-link[aria-selected="true"] {
    box-shadow: inset 3px 0 0 var(--department-accent);
}

:is(.department-page, .tabbed-page) .profile-details .nav-tabs {
    border-bottom: 1px solid var(--department-line);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
}

:is(.department-page, .tabbed-page) .profile-details .nav-tabs .nav-link {
    background: #f4f7fb;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #536273;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 -1px;
    padding: 11px 16px;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

:is(.department-page, .tabbed-page) .profile-details .nav-tabs .nav-link:hover,
:is(.department-page, .tabbed-page) .profile-details .nav-tabs .nav-link.active {
    background: #fff;
    border-color: var(--department-line);
    border-bottom-color: #fff;
    color: var(--department-brand);
}

:is(.department-page, .tabbed-page) .profile-details.tab-content {
    background: #fff;
    border: 1px solid var(--department-line);
    border-radius: 12px;
    box-shadow: 0 8px 26px rgba(23, 54, 92, .06);
    margin: 0;
    min-height: 420px;
    padding: clamp(24px, 4vw, 42px);
}

:is(.department-page, .tabbed-page) .profile-details .tab-pane > .title-section {
    border-bottom: 1px solid var(--department-line);
    color: var(--department-ink);
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 25px !important;
    padding: 0 0 16px;
    position: relative;
}

:is(.department-page, .tabbed-page) .profile-details .tab-pane h4,
:is(.department-page, .tabbed-page) .profile-details .tab-pane h5 {
    color: var(--department-ink);
    font-weight: 700;
    line-height: 1.4;
    margin: 24px 0 10px;
}

:is(.department-page, .tabbed-page) .profile-details .tab-pane p,
:is(.department-page, .tabbed-page) .profile-details .tab-pane li {
    color: var(--department-text);
    font-size: 15px;
    line-height: 1.8;
    text-align: left;
}

:is(.department-page, .tabbed-page) .profile-details .tab-pane p {
    margin: 0 0 16px;
}

:is(.department-page, .tabbed-page) .profile-details .tab-pane ul,
:is(.department-page, .tabbed-page) .profile-details .tab-pane ol {
    margin: 0 0 20px;
    padding-left: 24px;
}

:is(.department-page, .tabbed-page) .profile-details .tab-pane li {
    margin-bottom: 8px;
    padding-left: 3px;
}

:is(.department-page, .tabbed-page) .profile-details .table-responsive {
    border: 1px solid var(--department-line);
    border-radius: 8px;
    margin: 0 0 20px;
}

:is(.department-page, .tabbed-page) .profile-details table {
    margin: 0;
    min-width: 520px;
}

:is(.department-page, .tabbed-page) .profile-details table thead th {
    background: var(--department-ink);
    border-color: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 13px 15px;
}

:is(.department-page, .tabbed-page) .profile-details table tbody td {
    border-color: var(--department-line);
    color: #435267;
    font-size: 14px;
    line-height: 1.6;
    padding: 12px 15px;
    vertical-align: top;
}

:is(.department-page, .tabbed-page) .profile-details table tbody tr:nth-child(even) {
    background: #f7f9fc;
}

:is(.department-page, .tabbed-page) .profile-details img {
    border: 1px solid var(--department-line);
    border-radius: 8px;
    height: auto;
    margin: 0 0 18px;
    max-width: 100%;
}

:is(.department-page, .tabbed-page) .profile-details iframe,
:is(.department-page, .tabbed-page) .profile-details embed {
    background: #f4f7fb;
    border: 1px solid var(--department-line);
    border-radius: 8px;
    max-width: 100%;
}

:is(.department-page, .tabbed-page) .profile-details embed {
    max-height: 75vh;
    min-height: 520px;
}

:is(.department-page, .tabbed-page) .profile-details .gallery-area1 {
    padding: 0;
}

:is(.department-page, .tabbed-page) .profile-details .gallery-area1 .gallery-box {
    border-radius: 8px;
    margin-bottom: 18px;
    overflow: hidden;
}

:is(.department-page, .tabbed-page) .profile-details a:not(.menu-link):not(.nav-link):not(.pricetable-btn) {
    color: var(--department-brand);
    text-decoration: underline;
    text-underline-offset: 2px;
}

:is(.department-page, .tabbed-page) .profile-details a:not(.menu-link):not(.nav-link):not(.pricetable-btn):hover {
    color: var(--department-accent);
}

:is(.department-page, .tabbed-page) .profile-details a.pricetable-btn {
    align-items: center;
    background: var(--department-accent);
    border: 1px solid var(--department-accent);
    border-radius: 8px;
    color: #fff;
    display: flex;
    height: auto;
    justify-content: center;
    line-height: 1.45;
    margin: 0 0 12px;
    min-height: 64px;
    padding: 14px 16px;
    text-align: center;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

:is(.department-page, .tabbed-page) .profile-details a.pricetable-btn:hover,
:is(.department-page, .tabbed-page) .profile-details a.pricetable-btn:focus-visible {
    background: var(--department-brand);
    border-color: var(--department-brand);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

@media (max-width: 767px) {
    :is(.department-page, .tabbed-page) .section-space.accent-bg {
        padding: 24px 0 40px;
    }

    :is(.department-page, .tabbed-page) .section-space.accent-bg > .container > .row {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    :is(.department-page, .tabbed-page) .profile-title {
        border-radius: 9px;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 6px;
        overflow-x: auto;
        padding: 8px;
        position: static;
        scrollbar-width: thin;
        white-space: nowrap;
    }

    :is(.department-page, .tabbed-page) .profile-title .menu-item {
        flex: 0 0 auto;
    }

    :is(.department-page, .tabbed-page) .profile-title .menu-link {
        min-height: 40px;
        padding: 9px 11px;
    }

    :is(.department-page, .tabbed-page) .profile-details.tab-content {
        border-radius: 9px;
        min-height: 320px;
        padding: 22px 18px;
    }

    :is(.department-page, .tabbed-page) .profile-details .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: thin;
        white-space: nowrap;
    }

    :is(.department-page, .tabbed-page) .profile-details .nav-tabs .nav-link {
        flex: 0 0 auto;
    }

    :is(.department-page, .tabbed-page) .profile-details embed {
        min-height: 420px;
    }

    :is(.department-page, .tabbed-page) .profile-details .tab-pane p,
    :is(.department-page, .tabbed-page) .profile-details .tab-pane li {
        font-size: 14px;
    }
}
