:root {
    --wp-navy: #12233F;
    --wp-teal: #0F6B65;
    --wp-teal-dark: #0A514D;
    --wp-gold: #E8A33D;

    --wp-text: #2B2B2B;
    --wp-muted: #74756F;

    --wp-bg: #FAF7F2;
    --wp-white: #FFFFFF;

    --wp-soft: #F3EFE9;
    --wp-teal-soft: #EFF6F4;

    --wp-border: #E5E0D8;

    --wp-footer-text: #172321;

    --wp-shadow:
        0 16px 45px rgba(18, 35, 63, 0.07);

    --wp-width: 1180px;
}


/* =================================
   Reset
================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: var(--wp-bg);
}

body {
    margin: 0;

    background: var(--wp-bg);
    color: var(--wp-text);

    font-family:
        Inter,
        Arial,
        sans-serif;

    line-height: 1.55;
}

a {
    color: inherit;
}


/* =================================
   Main Portal
================================= */

.portal {
    width: 100%;

    min-height: calc(100vh - 125px);

    padding: 78px 26px 78px;
}


/* =================================
   Main Language Area
================================= */

.portal-language-area {
    max-width: var(--wp-width);

    margin: 0 auto 58px;

    display: grid;

    grid-template-columns:
        225px
        minmax(390px, 500px)
        225px;

    gap: 36px;

    align-items: center;
    justify-content: center;
}


/* =================================
   Side Languages
================================= */

.language-side {
    display: flex;
    flex-direction: column;

    gap: 14px;
}

.language-mini {
    min-height: 71px;

    padding: 14px 16px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background: rgba(255, 255, 255, 0.72);

    border: 1px solid var(--wp-border);
    border-radius: 10px;

    text-decoration: none;

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}

.language-mini strong {
    color: var(--wp-navy);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 17px;
    font-weight: 600;
}

.language-mini span {
    margin-top: 2px;

    color: var(--wp-muted);

    font-size: 11px;
}

.language-mini:not(.future):hover {
    transform: translateY(-2px);

    background: var(--wp-white);

    border-color: #BDD3CD;
}

.language-mini.future {
    opacity: 0.69;

    cursor: default;
}


/* =================================
   Language Stagger
================================= */

.language-side-left
.language-mini:nth-child(1) {
    margin-right: 28px;
}

.language-side-left
.language-mini:nth-child(2) {
    margin-right: 7px;
}

.language-side-left
.language-mini:nth-child(3) {
    margin-right: 7px;
}

.language-side-left
.language-mini:nth-child(4) {
    margin-right: 28px;
}

.language-side-right
.language-mini:nth-child(1) {
    margin-left: 28px;
}

.language-side-right
.language-mini:nth-child(2) {
    margin-left: 7px;
}

.language-side-right
.language-mini:nth-child(3) {
    margin-left: 7px;
}

.language-side-right
.language-mini:nth-child(4) {
    margin-left: 28px;
}


/* =================================
   Center Card
================================= */

.portal-center-card {
    position: relative;

    z-index: 20;

    padding: 31px 32px 32px;

    background: var(--wp-white);

    border: 1px solid var(--wp-border);
    border-radius: 17px;

    box-shadow: var(--wp-shadow);

    text-align: center;

    overflow: visible;
}

.center-accent {
    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 5px;

    background: var(--wp-teal);

    border-radius:
        17px
        17px
        0
        0;
}


/* =================================
   WikiPartner Icon
================================= */

.portal-symbol {
    width: 155px;
    height: 155px;

    margin: 8px auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-symbol img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* =================================
   Center Logo
================================= */

.portal-center-brand {
    margin: 0 auto 24px;

    text-align: center;
}

.center-logo {
    display: block;

    width: auto;
    height: 43px;

    max-width: 235px;

    margin: 0 auto;

    object-fit: contain;
}

.center-tagline {
    margin-top: 6px;

    color: var(--wp-muted);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 12px;

    letter-spacing: 0.2px;
}


/* =================================
   Search Wrapper
================================= */

.search-wrapper {
    position: relative;

    z-index: 50;

    width: 100%;
}


/* =================================
   Search Bar
================================= */

.portal-search {
    position: relative;

    z-index: 3;

    height: 51px;

    display: flex;
    align-items: stretch;

    background: var(--wp-white);

    border: 1px solid #D8D2C9;
    border-radius: 9px;

    overflow: hidden;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.portal-search:focus-within {
    border-color: var(--wp-teal);

    box-shadow:
        0 0 0 3px rgba(15, 107, 101, 0.09);
}

.portal-search input {
    flex: 1;

    min-width: 0;

    padding: 0 15px;

    border: 0;
    outline: 0;

    background: transparent;

    color: var(--wp-text);

    font-family: inherit;
    font-size: 14px;
}

.portal-search input::placeholder {
    color: #9A9995;
}

.portal-search select {
    width: 58px;

    padding: 0 7px;

    border: 0;
    border-left: 1px solid var(--wp-border);

    outline: 0;

    background: var(--wp-white);

    color: var(--wp-muted);

    font-size: 11px;
}

.portal-search button {
    padding: 0 20px;

    border: 0;

    background: var(--wp-teal);
    color: var(--wp-white);

    font-family: inherit;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}

.portal-search button:hover {
    background: var(--wp-teal-dark);
}


/* =================================
   Live Search Suggestions
================================= */

.search-suggestions {
    position: absolute;

    top: calc(100% + 7px);
    left: 0;
    right: 0;

    z-index: 1000;

    max-height: 360px;

    overflow-y: auto;

    background: var(--wp-white);

    border: 1px solid var(--wp-border);
    border-radius: 10px;

    box-shadow:
        0 16px 40px rgba(
            18,
            35,
            63,
            0.14
        );

    text-align: left;
}

.search-suggestions[hidden] {
    display: none;
}

.search-suggestion-item {
    width: 100%;

    min-height: 54px;

    margin: 0;
    padding: 9px 12px;

    display: grid;

    grid-template-columns:
        32px
        minmax(0, 1fr)
        20px;

    gap: 10px;

    align-items: center;

    background: var(--wp-white);

    border: 0;
    border-bottom: 1px solid #EEEAE4;

    color: var(--wp-text);

    font-family: inherit;

    text-align: left;

    cursor: pointer;
}

.search-suggestion-item:last-child {
    border-bottom: 0;
}

.search-suggestion-item:hover,
.search-suggestion-item.active {
    background: var(--wp-teal-soft);
}

.suggestion-icon {
    width: 30px;
    height: 30px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: var(--wp-teal-soft);

    border-radius: 6px;

    color: var(--wp-teal);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 15px;
    font-weight: 700;
}

.suggestion-text {
    min-width: 0;

    overflow: hidden;

    color: var(--wp-navy);

    font-size: 13px;
    font-weight: 600;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.suggestion-arrow {
    color: var(--wp-muted);

    font-size: 14px;

    text-align: right;
}

.search-suggestion-item:hover
.suggestion-arrow,
.search-suggestion-item.active
.suggestion-arrow {
    color: var(--wp-teal);
}

.search-no-results {
    padding: 16px;

    color: var(--wp-muted);

    font-size: 12px;

    text-align: center;
}


/* =================================
   All Languages Box
================================= */

.all-languages {
    position: relative;

    max-width: 950px;

    margin: 0 auto;

    padding: 31px 29px 30px;

    background: rgba(255, 255, 255, 0.74);

    border: 1px solid var(--wp-border);
    border-radius: 14px;

    overflow: hidden;
}

.all-languages::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 4px;

    background: var(--wp-gold);
}

.all-languages-heading {
    margin-bottom: 21px;

    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    gap: 30px;
}

.section-label {
    display: block;

    margin-bottom: 5px;

    color: var(--wp-gold);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.8px;
}

.all-languages h2 {
    margin: 0;

    color: var(--wp-navy);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 22px;
    font-weight: 600;
}

.language-note {
    color: var(--wp-muted);

    font-size: 10px;
}


/* =================================
   Language Grid
================================= */

.language-grid {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 9px;
}

.language-item {
    min-height: 43px;

    padding: 8px 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--wp-soft);

    border: 1px solid transparent;
    border-radius: 7px;

    color: #66645F;

    font-size: 11px;

    text-align: center;
    text-decoration: none;
}

.language-item.active {
    background: var(--wp-teal-soft);

    border-color: #CFE1DC;

    color: var(--wp-teal);

    font-weight: 700;
}

a.language-item:hover {
    border-color: #B6D2CA;
}


/* =================================
   Footer
================================= */

.portal-footer {
    width: 100%;

    background: var(--wp-teal);

    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-inner {
    width: 100%;
    max-width: 1180px;

    min-height: 126px;

    margin: 0 auto;
    padding: 25px 26px;

    display: grid;

    grid-template-columns:
        180px
        minmax(0, 1fr)
        250px;

    gap: 38px;

    align-items: center;
}


/* =================================
   Footer Logo
================================= */

.footer-brand {
    width: 180px;

    display: flex;

    align-items: center;
    justify-content: flex-start;

    justify-self: start;

    text-align: left;
}

.footer-logo-link {
    display: block;

    width: 140px;
    max-width: 140px;

    margin: 0;
    padding: 0;

    background: transparent;

    border: 0;

    text-decoration: none;
}

.footer-logo {
    display: block !important;

    width: 140px !important;
    max-width: 140px !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: contain !important;
}


/* =================================
   Footer Legal
================================= */

.footer-legal {
    min-width: 0;

    color: var(--wp-footer-text);

    font-size: 10.5px;
    line-height: 1.55;

    text-align: center;
}

.footer-license {
    max-width: 650px;

    margin: 0 auto;
}

.footer-legal a {
    color: #102F2C;

    font-weight: 700;

    text-decoration: none;
}

.footer-legal a:hover {
    text-decoration: underline;
}

.footer-policy-links {
    margin-top: 7px;

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 5px 16px;
}


/* =================================
   Footer Social
================================= */

.footer-social {
    display: flex;

    justify-content: flex-end;
    align-items: center;

    justify-self: end;

    gap: 8px;
}

.social-icon {
    width: 34px;
    height: 34px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    background: rgba(
        250,
        247,
        242,
        0.18
    );

    border: 1px solid rgba(
        18,
        35,
        63,
        0.24
    );

    border-radius: 50%;

    color: var(--wp-footer-text);

    font-family:
        Inter,
        Arial,
        sans-serif;

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;

    transition:
        background 0.15s ease,
        transform 0.15s ease,
        border-color 0.15s ease;
}

.social-icon:hover {
    transform: translateY(-2px);

    background: var(--wp-bg);

    border-color: var(--wp-bg);

    color: var(--wp-teal-dark);
}

.social-linkedin {
    font-size: 11px;
}

.social-facebook {
    font-family: Arial, sans-serif;

    font-size: 17px;
}

.social-instagram {
    font-size: 17px;
}

.social-youtube {
    font-size: 11px;
}

.social-mediawiki {
    font-size: 8px;

    letter-spacing: -0.2px;
}


/* =================================
   Tablet
================================= */

@media (max-width: 950px) {

    .portal-language-area {
        grid-template-columns:
            180px
            minmax(350px, 470px)
            180px;

        gap: 18px;
    }

    .language-mini {
        padding: 12px;
    }

    .language-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

}


/* =================================
   Small Tablet
================================= */

@media (max-width: 780px) {

    .portal {
        padding-top: 55px;
    }

    .portal-language-area {
        grid-template-columns:
            1fr
            1fr;

        max-width: 620px;
    }

    .portal-center-card {
        grid-column: 1 / -1;
        grid-row: 1;

        max-width: 500px;
        width: 100%;

        margin: 0 auto;
    }

    .language-side {
        grid-row: 2;
    }

    .language-side-left
    .language-mini,
    .language-side-right
    .language-mini {
        margin: 0;
    }

    .language-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .footer-inner {
        grid-template-columns:
            150px
            minmax(0, 1fr);

        gap: 25px;
    }

    .footer-brand {
        width: 150px;

        justify-self: start;
        justify-content: flex-start;
    }

    .footer-logo-link {
        width: 125px;
        max-width: 125px;
    }

    .footer-logo {
        width: 125px !important;
        max-width: 125px !important;
    }

    .footer-legal {
        text-align: left;
    }

    .footer-license {
        margin: 0;
    }

    .footer-policy-links {
        justify-content: flex-start;
    }

    .footer-social {
        grid-column: 1 / -1;

        justify-self: start;
        justify-content: flex-start;

        padding-left: 175px;
    }

}


/* =================================
   Mobile
================================= */

@media (max-width: 560px) {

    .portal {
        padding:
            36px
            16px
            55px;
    }

    .portal-language-area {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .portal-center-card {
        grid-column: 1;

        padding:
            27px
            20px
            24px;
    }

    .portal-symbol {
        width: 125px;
        height: 125px;
    }

    .center-logo {
        height: 38px;

        max-width: 215px;
    }

    .center-tagline {
        font-size: 11px;
    }

    .portal-search {
        height: auto;

        flex-wrap: wrap;
    }

    .portal-search input {
        min-height: 50px;
    }

    .portal-search select {
        width: 25%;

        min-height: 43px;

        border-top: 1px solid var(--wp-border);
        border-left: 0;
    }

    .portal-search button {
        width: 75%;

        min-height: 43px;

        border-top: 1px solid var(--wp-border);
    }

    .search-suggestions {
        top: calc(100% + 5px);

        max-height: 290px;
    }

    .language-side {
        display: grid;

        grid-template-columns:
            1fr
            1fr;
    }

    .language-side-left {
        grid-row: 2;
    }

    .language-side-right {
        grid-row: 3;
    }

    .language-mini {
        min-height: 67px;
    }

    .all-languages {
        padding:
            27px
            18px
            23px;
    }

    .all-languages-heading {
        align-items: flex-start;
        flex-direction: column;

        gap: 6px;
    }

    .language-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .footer-inner {
        display: flex;

        flex-direction: column;

        align-items: flex-start;

        gap: 20px;

        padding:
            26px
            20px;
    }

    .footer-brand {
        width: 100%;

        justify-content: flex-start;
        align-items: flex-start;
    }

    .footer-logo-link {
        width: 120px;
        max-width: 120px;
    }

    .footer-logo {
        width: 120px !important;
        max-width: 120px !important;
    }

    .footer-legal {
        width: 100%;

        text-align: left;
    }

    .footer-license {
        max-width: none;

        margin: 0;
    }

    .footer-policy-links {
        justify-content: flex-start;
    }

    .footer-social {
        width: 100%;

        padding-left: 0;

        justify-self: auto;

        justify-content: flex-start;

        flex-wrap: wrap;
    }

}