:root {
    --ter-navy: #0f2b5b;
    --ter-gold: #d4a017;
    --ter-ink: #152033;
}

.ter-public {
    font-family: Raleway, Arial, Helvetica, sans-serif;
    background: #fff;
    color: var(--ter-ink);
}

.ter-public .top-line {
    background: #0d1b2a;
    padding: 8px 0;
}

.ter-public .top-line p {
    display: inline-block;
    margin: 0 20px 0 0;
    color: #fff;
    font-size: 13px;
}

.ter-lang-selector {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.ter-lang-selector a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.ter-lang-selector a.active,
.ter-lang-selector a:hover {
    background: var(--ter-gold);
    border-color: var(--ter-gold);
    color: #111827;
}

.ter-lang-selector .fi {
    width: 22px;
    height: 16px;
    display: inline-block;
    border-radius: 2px;
    box-shadow: 0 0 2px rgba(0,0,0,.28);
}

.ter-public .navbar-brand {
    color: var(--ter-navy) !important;
    font-weight: 800;
    letter-spacing: 0;
}

.ter-public .navbar-brand.brand-image {
    display: inline-flex;
    align-items: center;
    padding: 0;
}

.ter-public .navbar-brand.brand-image img {
    width: 176px;
    max-height: 58px;
    object-fit: contain;
}

.ter-public .navbar-brand span {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-right: 10px;
    background: var(--ter-navy);
    color: var(--ter-gold);
    border: 2px solid var(--ter-gold);
    font-weight: 900;
}

.ter-public .navbar-nav > li > a,
.ter-public .navbar-nav a {
    color: var(--ter-navy) !important;
    font-weight: 700;
}

.ter-public .ter-hero {
    min-height: 660px;
    display: grid;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(15, 43, 91, .94), rgba(15, 43, 91, .68), rgba(15, 43, 91, .18)),
        url("/assets/images/ter-mission-hero.png") center right/cover no-repeat;
    color: #fff;
}

.ter-public .ter-hero h1 {
    max-width: 780px;
    margin: 0;
    color: #fff;
    font-size: clamp(42px, 6vw, 74px);
    line-height: 1;
    font-weight: 800;
}

.ter-public .ter-hero p {
    max-width: 620px;
    margin: 24px 0;
    color: rgba(255,255,255,.86);
    font-size: 20px;
    line-height: 1.6;
}

.ter-public .ter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ter-proof-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.ter-proof-row span {
    padding: 10px 14px;
    background: rgba(255,255,255,.12);
    border-left: 3px solid var(--ter-gold);
    color: #fff;
    font-weight: 800;
}

.ter-public .ter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    background: var(--ter-gold);
    color: #111827;
    font-weight: 800;
    text-decoration: none;
}

.ter-public .ter-btn.secondary {
    background: #fff;
    color: var(--ter-navy);
}

.ter-public .title-section h1,
.ter-public .title-section h2 {
    color: var(--ter-navy);
}

.ter-public .feature-post,
.ter-public .ter-card {
    height: 100%;
    background: #fff;
    border: 1px solid #e5eaf2;
    box-shadow: 0 16px 40px rgba(15, 43, 91, .08);
}

.ter-public .feature-post .icon-holder {
    background: var(--ter-gold) !important;
}

.ter-public .feature-post .icon-holder i {
    color: var(--ter-navy) !important;
}

.ter-public .ter-band {
    padding: 76px 0;
    background: #f4f7fb;
}

.ter-public .ter-white {
    padding: 76px 0;
    background: #fff;
}

.ter-public .ter-card {
    padding: 28px;
    margin-bottom: 24px;
}

.ter-public .ter-card h3 {
    color: var(--ter-navy);
    font-size: 22px;
    font-weight: 800;
}

.ter-public .ter-card p,
.ter-public .ter-card li {
    color: #66758a;
    line-height: 1.6;
}

.ter-public .ter-card.compact {
    min-height: 154px;
}

.ter-lead {
    color: #66758a;
    font-size: 18px;
    line-height: 1.75;
}

.ter-enterprise-box {
    padding: 34px;
    background: var(--ter-navy);
    color: #fff;
    border-top: 5px solid var(--ter-gold);
    box-shadow: 0 20px 54px rgba(15, 43, 91, .18);
}

.ter-enterprise-box h3 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 28px;
    font-weight: 800;
}

.ter-enterprise-box li {
    margin-bottom: 10px;
    color: #dce6f3;
}

.ter-doc-tile {
    min-height: 132px;
    display: grid;
    place-items: center;
    gap: 10px;
    padding: 18px;
    background: #fff;
    border: 1px solid #e5eaf2;
    text-align: center;
    color: var(--ter-navy);
    font-weight: 800;
    box-shadow: 0 14px 32px rgba(15, 43, 91, .06);
}

.ter-doc-tile i {
    color: var(--ter-gold);
    font-size: 36px;
}

.ter-public .ter-steps {
    display: grid;
    grid-template-columns: repeat(7, minmax(120px, 1fr));
    gap: 12px;
    overflow-x: auto;
}

.ter-public .ter-step {
    min-height: 124px;
    padding: 18px;
    background: #fff;
    border-top: 4px solid var(--ter-gold);
}

.ter-public .ter-step b {
    display: block;
    color: var(--ter-gold);
    font-size: 26px;
}

.ter-activity-list {
    display: grid;
    gap: 14px;
}

.ter-activity-list div {
    display: grid;
    grid-template-columns: 64px 1fr;
    align-items: center;
    gap: 16px;
    padding: 18px;
    background: #f4f7fb;
    border-left: 4px solid var(--ter-gold);
}

.ter-activity-list b {
    color: var(--ter-gold);
    font-size: 26px;
}

.ter-activity-list span {
    color: var(--ter-navy);
    font-weight: 800;
}

.ter-video-card {
    background: #fff;
    border: 1px solid #e5eaf2;
    box-shadow: 0 16px 44px rgba(15, 43, 91, .1);
}

.ter-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0d1b2a url("/template/upload/video/video-poster-1.jpg") center/cover no-repeat;
}

.ter-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.ter-video-card div {
    padding: 24px;
}

.ter-video-card h3 {
    margin: 0 0 10px;
    color: var(--ter-navy);
    font-weight: 800;
}

.ter-video-card p {
    margin: 0;
    color: #66758a;
    line-height: 1.6;
}

.ter-public footer {
    padding: 36px 0;
    background: #0d1b2a;
    color: #dbe5f2;
}

@media (max-width: 991px) {
    .ter-lang-selector {
        justify-content: center;
        margin-top: 10px;
    }
    .ter-public .ter-hero {
        min-height: 560px;
    }
    .ter-public .ter-steps {
        grid-template-columns: 1fr;
    }
}
