@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

html:root {
    --navy: #18324B;
    --blue: #2A64AD;
    --sky: #CEE9FA;
    --teal: #58A1A4;
    --pink: #DA4167;
    --gold: #F4D35E;
    --ink: #243746;
    --muted: #657784;
    --line: #DBE5EA;
    --white: #FFFFFF;
    --footer: #0E2233;
    --light-hero: #EEF6FA;
    --light-image: #E8F2F5;
    --soft-pink: #FFF0F4;
    --cta-text: #D8E5EC;
}

body.fin-brand {
    color: var(--ink);
    background: var(--white);
    font-family: Inter, Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

body.fin-brand h1,
body.fin-brand h2,
body.fin-brand h3,
body.fin-brand h4,
body.fin-brand h5,
body.fin-brand h6,
body.fin-brand p,
body.fin-brand a,
body.fin-brand span,
body.fin-brand div,
body.fin-brand li,
body.fin-brand button,
body.fin-brand input,
body.fin-brand select,
body.fin-brand textarea {
    font-family: Inter, Arial, Helvetica, sans-serif !important;
}

body.fin-brand h1,
body.fin-brand h2,
body.fin-brand h3,
body.fin-brand h4,
body.fin-brand h5,
body.fin-brand h6 {
    color: var(--navy);
    font-weight: 700;
}

body.fin-brand a {
    color: var(--blue);
    transition: color .18s ease, background-color .18s ease, transform .18s ease;
}

body.fin-brand a:hover {
    color: var(--navy);
}

body.fin-brand .container,
.fin-container {
    width: min(1180px, calc(100% - 48px));
    margin-left: auto;
    margin-right: auto;
}

body.fin-brand .site-topbar {
    background: var(--navy);
    color: var(--white);
    padding: 8px 0;
}

body.fin-brand .site-topbar .container {
    min-height: 32px;
}

body.fin-brand .site-topbar .welcometext,
body.fin-brand .site-topbar .welcometext h1 {
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
}

body.fin-brand .site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 0;
    margin: 0;
    background: var(--white);
    color: var(--navy);
    border-bottom: 1px solid var(--line);
    box-shadow: none;
}

body.fin-brand .site-header > .container > .row:first-child {
    min-height: 76px;
    align-items: center;
}

body.fin-brand .custom-logo {
    max-width: 210px;
    max-height: 55px;
    width: auto;
}

body.fin-brand #primary-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    padding: 0;
    margin: 0;
}

body.fin-brand #primary-menu li {
    display: block;
    padding: 0;
}

body.fin-brand #primary-menu li a {
    display: block;
    color: var(--navy);
    padding: 11px 12px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 5px;
}

body.fin-brand #primary-menu li a:hover {
    color: var(--blue);
    background: var(--light-hero);
}

body.fin-brand #primary-menu > li:last-child a {
    background: var(--gold);
    color: var(--navy);
    padding: 12px 18px;
    margin-left: 6px;
}

body.fin-brand #primary-menu > li:last-child a:hover {
    background: var(--gold);
    color: var(--navy);
}

body.fin-brand #secondary-menu {
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 0 0 12px;
}

body.fin-brand #secondary-menu li {
    padding: 0;
}

body.fin-brand #secondary-menu li:before {
    color: var(--line);
    margin: 0 12px;
}

body.fin-brand #secondary-menu li a {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

body.fin-brand #secondary-menu li a:hover {
    color: var(--blue);
}

body.fin-brand .hamburger span {
    background: var(--blue);
}

body.fin-brand .fin-footer {
    background: var(--footer);
    color: #C8D5DC;
    border-top: 0;
    margin-top: 0;
    padding: 46px 0 24px;
}

body.fin-brand .fin-footer h1,
body.fin-brand .fin-footer h2,
body.fin-brand .fin-footer h3,
body.fin-brand .fin-footer h4,
body.fin-brand .fin-footer h5,
body.fin-brand .fin-footer h6,
body.fin-brand .fin-footer p {
    color: var(--white);
}

body.fin-brand .fin-footer a {
    color: #C8D5DC;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
}

body.fin-brand .fin-footer a:hover {
    color: var(--gold);
}

body.fin-brand .fin-footer .footer1,
body.fin-brand .fin-footer .footer2,
body.fin-brand .fin-footer .footer3 {
    padding-left: 10px;
    padding-right: 10px;
}

body.fin-brand .fin-copyright {
    background: var(--footer);
    color: #C8D5DC;
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 16px 0;
}

body.fin-brand .fin-copyright p {
    color: #C8D5DC;
    font-size: 12px;
}

body.fin-brand .customBtn,
body.fin-brand .wpcf7-form input.wpcf7-submit {
    background: var(--gold) !important;
    color: var(--navy) !important;
    border-radius: 5px !important;
    font-weight: 800 !important;
    padding: 12px 18px !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.fin-brand .customBtn:hover,
body.fin-brand .wpcf7-form input.wpcf7-submit:hover {
    background: #e9c83f !important;
    color: var(--navy) !important;
    transform: translateY(-1px);
}

body.fin-brand .newsCard,
body.fin-brand .jobCard {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 0;
    overflow: hidden;
    box-shadow: none;
}

body.fin-brand .newsCard .content {
    padding: 19px;
}

body.fin-brand .newsCard img,
body.fin-brand .jobCard img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

body.fin-brand .newsCard h3.card-title a,
body.fin-brand .jobCard h3.card-title a {
    color: var(--navy);
    font-size: 19px;
    line-height: 1.2;
}

body.fin-brand .newsCard p,
body.fin-brand .jobCard p {
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
}

body.fin-brand .newsCard .badge {
    background: var(--blue) !important;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    padding: 5px 9px;
}

body.fin-brand .pagination * {
    color: var(--blue) !important;
}

body.fin-brand .pagination .page-item.active a.page-link {
    background: var(--sky) !important;
    border-radius: 5px;
}

/* Homepage shell / content rail */
.fin-home-shell {
    width: min(1500px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 18px;
    align-items: start;
}

.fin-home-main {
    min-width: 0;
}

.fin-content-rail {
    position: sticky;
    top: 92px;
    align-self: start;
    padding: 18px 18px 0 0;
}

.fin-rail-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 0 7px 22px rgba(24,50,75,.06);
}

.fin-rail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 15px 16px 11px;
}

.fin-rail-head h3 {
    margin: 0;
    color: var(--navy);
    font-size: 20px;
    line-height: 1.1;
}

.fin-rail-head a {
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.fin-rail-list {
    padding: 0 16px 12px;
}

.fin-rail-item {
    display: grid;
    grid-template-columns: 68px 1fr 12px;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    text-decoration: none;
}

.fin-rail-item:first-child {
    border-top: 0;
}

.fin-rail-thumb {
    width: 68px;
    height: 48px;
    border-radius: 5px;
    overflow: hidden;
    background: var(--sky);
}

.fin-rail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fin-rail-item-copy strong,
.fin-podcast-row strong {
    display: block;
    color: var(--navy);
    font-size: 12px;
    line-height: 1.25;
}

.fin-rail-item-copy small,
.fin-podcast-row small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.25;
    margin-top: 3px;
}

.fin-rail-arrow {
    color: var(--blue);
    font-size: 16px;
    font-weight: 900;
}

.fin-podcast-list {
    padding-bottom: 8px;
}

.fin-podcast-row {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 10px;
    padding: 9px 16px;
    border-top: 1px solid var(--line);
    text-decoration: none;
}

.fin-podcast-art {
    min-height: 55px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    padding: 8px;
    color: var(--white);
    font-size: 9px;
    line-height: 1.05;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.fin-podcast-art.blue { background: var(--blue); }
.fin-podcast-art.teal { background: var(--teal); }
.fin-podcast-art.pink { background: var(--pink); }

.fin-news-list {
    padding: 0 16px 11px;
}

.fin-news-link {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    padding: 9px 0;
    border-top: 1px solid var(--line);
    color: var(--navy) !important;
    font-size: 11px;
    line-height: 1.3;
    text-decoration: none;
}

.fin-news-link:first-child {
    border-top: 0;
}

.fin-news-icon {
    color: var(--blue);
    font-weight: 900;
    font-size: 15px;
    line-height: 1;
}

/* Archive / resource-library language */
.fin-archive {
    background: var(--white);
}

.fin-archive-hero {
    background: var(--sky);
    border-bottom: 1px solid var(--line);
    padding: 58px 0 54px;
}

.fin-eyebrow {
    color: var(--blue);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 900;
}

.fin-archive-hero h1 {
    color: var(--navy);
    font-size: clamp(38px, 5vw, 52px);
    line-height: 1.04;
    letter-spacing: -1.8px;
    margin: 8px 0 16px;
}

.fin-archive-hero p {
    color: var(--muted);
    font-size: 17px;
    max-width: 760px;
    margin: 0;
}

.fin-archive-layout {
    display: grid;
    grid-template-columns: 235px minmax(0, 1fr);
    gap: 42px;
    padding-top: 54px;
    padding-bottom: 78px;
}

.fin-archive-layout-single {
    grid-template-columns: 1fr;
}

.fin-archive-sidebar {
    border-right: 1px solid var(--line);
    padding-right: 25px;
}

.fin-archive-sidebar > * {
    margin-bottom: 20px;
}

.fin-archive-sidebar h2,
.fin-archive-sidebar h3,
.fin-archive-sidebar h4 {
    color: var(--navy);
}

.fin-results-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 15px;
    margin-bottom: 22px;
}

.fin-results-head h2 {
    margin: 0;
    color: var(--navy);
    font-size: 28px;
}

.fin-results-count {
    color: var(--muted);
    font-size: 12px;
}

.fin-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.fin-content-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}

.fin-content-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(24,50,75,.1);
}

.fin-card-image {
    display: block;
    height: 180px;
    background: var(--sky);
}

.fin-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fin-card-body {
    padding: 19px;
}

.fin-card-label {
    color: var(--blue);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fin-label-teal {
    color: var(--teal);
}

.fin-card-body h3 {
    color: var(--navy);
    font-size: 19px;
    line-height: 1.2;
    margin: 6px 0 7px;
}

.fin-card-body h3 a {
    color: var(--navy);
    text-decoration: none;
}

.fin-card-body p {
    color: var(--muted);
    font-size: 13px;
    margin: 0 0 13px;
}

.fin-card-meta {
    color: #84939C;
    font-size: 11px;
}

.fin-read-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--blue) !important;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.fin-empty {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 25px;
    color: var(--muted);
}

.fin-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 35px;
}

.fin-pagination a {
    min-width: 36px;
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 5px;
    text-align: center;
    color: var(--blue);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.fin-pagination a.active,
.fin-pagination a:hover {
    background: var(--sky);
    border-color: var(--sky);
    color: var(--navy);
}

/* Forms */
body.fin-brand .wpcf7-form textarea.wpcf7-form-control,
body.fin-brand .wpcf7-form input.wpcf7-form-control {
    border: 1px solid var(--line) !important;
    border-radius: 5px !important;
    color: var(--ink);
}

body.fin-brand .wpcf7-form p label {
    color: var(--navy);
    font-size: 13px;
    font-weight: 800;
}

@media (max-width: 1100px) {
    .fin-home-shell {
        grid-template-columns: minmax(0, 1fr) 290px;
    }

    .fin-content-rail {
        padding-right: 12px;
    }

    body.fin-brand #primary-menu li a {
        padding-left: 8px;
        padding-right: 8px;
    }
}

@media (max-width: 992px) {
    body.fin-brand .site-header {
        padding: 0 20px;
    }

    body.fin-brand #primary-menu {
        background: var(--white);
    }

    body.fin-brand #primary-menu li a {
        font-size: 16px;
    }

    .fin-home-shell,
    .fin-archive-layout {
        grid-template-columns: 1fr;
    }

    .fin-content-rail {
        position: static;
        padding: 24px;
        background: var(--sky);
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .fin-rail-card {
        margin: 0;
    }

    .fin-archive-sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 0 0 20px;
    }
}

@media (max-width: 768px) {
    body.fin-brand .custom-logo {
        max-width: 180px;
    }

    .fin-container,
    body.fin-brand .container {
        width: min(100% - 30px, 1180px);
    }

    .fin-card-grid {
        grid-template-columns: 1fr;
    }

    .fin-content-rail {
        grid-template-columns: 1fr;
    }

    .fin-archive-hero {
        padding: 48px 0;
    }
}

@media (max-width: 576px) {
    body.fin-brand .site-header {
        padding: 0 15px;
    }

    .fin-archive-layout {
        padding-top: 35px;
        padding-bottom: 55px;
    }

    .fin-archive-hero h1 {
        font-size: 38px;
    }
}


/* --- Navigation Styles for #primary-menu --- */

/* Base reset and layout for main menu container */
ul#primary-menu,
ul#primary-menu ul.sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

ul#primary-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    font-weight: 800;
}

/* Individual top-level list items */
ul#primary-menu>li {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

ul#primary-menu>li>a {
    padding: 10px 4px;
    color: var(--ink);
    transition: color 0.2s ease;
    white-space: nowrap;
}

ul#primary-menu>li>a:hover {
    color: var(--blue);
}

/* Parent items with dropdown indicators */
ul#primary-menu li.menu-item-has-children>a::after {
    content: ' ▾';
    font-size: 11px;
    margin-left: 4px;
    display: inline-block;
}

/* --- Dropdown / Sub-Menu Styling --- */
ul#primary-menu ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(24, 50, 75, 0.12);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 99;
}

/* Reveal Sub-Menu on Hover/Focus */
ul#primary-menu li.menu-item-has-children:hover>ul.sub-menu,
ul#primary-menu li.menu-item-has-children:focus-within>ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Sub-Menu List Items */
ul#primary-menu ul.sub-menu li {
    display: block;
    width: 100%;
}

ul#primary-menu ul.sub-menu a {
    display: block;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    transition: background-color 0.15s ease, color 0.15s ease;
}

ul#primary-menu ul.sub-menu a:hover {
    background-color: var(--sky);
    color: var(--blue);
}

/* --- Responsive Layout & Mobile Toggle (.menuClosed) --- */
@media (max-width: 900px) {
    ul#primary-menu {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        background: var(--white);
        border-top: 1px solid var(--line);
        padding: 16px;
        gap: 0;
    }

    /* Hide menu when class is .menuClosed on mobile */
    ul#primary-menu.menuClosed {
        display: none;
    }

    ul#primary-menu>li {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    ul#primary-menu>li>a {
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid var(--line);
    }

    ul#primary-menu ul.sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 14px;
        width: 100%;
        background: transparent;
    }

    ul#primary-menu ul.sub-menu a {
        padding: 8px 12px;
    }
}