﻿:root {
    --ts-navy: #0a1a5c;
    --ts-blue: #1f5fbf;
    --ts-blue-light: #2f80d6;
    --ts-green: #22b573;
    --ts-teal: #3ad6a8;
    --ts-yellow: #f5c518;
    --ts-text: #3a4253;
    --ts-muted: #6b7385;
    --ts-bg-soft: #f4f8fc;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--ts-text);
    background: #fff;
}

a { color: var(--ts-blue); }

/* ---------- Top bar & header ---------- */
.topbar {
    background: var(--ts-green);
    color: #fff;
    font-size: .8rem;
    text-align: center;
    padding: .35rem 1rem;
}
.topbar a { color: var(--ts-yellow); font-weight: 600; }

.site-header { background: var(--ts-navy); padding: .55rem 0; }
.site-header .nav-link { color: #fff; font-size: .9rem; font-weight: 500; }
.site-header .nav-link:hover { color: var(--ts-yellow); }
.site-header .nav-link.active { color: var(--ts-yellow); font-weight: 700; }
.site-header .dropdown-menu { border: 0; box-shadow: 0 10px 30px rgba(10,26,92,.15); }

.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand-mark {
    width: 38px; height: 38px; border-radius: 10px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--ts-teal), var(--ts-blue-light));
    color: #fff; font-weight: 800; font-size: .95rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { color: #fff; font-weight: 700; font-size: 1.1rem; }
.brand-slogan { color: #a9b6e6; font-size: .62rem; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 560px;
    display: flex; align-items: center;
    overflow: hidden;
    background: #dbe8f6;
}
.hero-image {
    position: absolute; inset: 0;
    background-size: cover; background-position: right center;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(23,78,166,.95) 0%, rgba(31,95,191,.82) 35%, rgba(31,95,191,0) 65%);
}
.hero-banners img { aspect-ratio: 16 / 5; object-fit: cover; }
.hero-intro { min-height: 0; background: linear-gradient(90deg, #174ea6, #1f5fbf); }
.hero-content { position: relative; z-index: 1; color: #fff; padding-top: 4rem; padding-bottom: 4rem; }
.hero-title { font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.2; margin-bottom: 1.25rem; }
.hero-title span { display: block; }
h1:focus { outline: none; }
.hero-desc { max-width: 520px; font-size: .95rem; line-height: 1.7; opacity: .95; }
.btn-hero {
    margin-top: .75rem;
    background: var(--ts-green); color: #fff; font-weight: 600;
    padding: .6rem 1.4rem; border-radius: 6px;
}
.btn-hero:hover { background: #1b9a61; color: #fff; }

/* ---------- Feature sections ---------- */
.features { padding: 4rem 0 2rem; }
.feature-row { margin-bottom: 4rem; }
.feature-title { color: var(--ts-blue); font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.2; }
.feature-subtitle { color: var(--ts-green); font-weight: 600; font-size: 1.05rem; }
.feature-desc { color: var(--ts-muted); line-height: 1.75; margin-top: 1rem; }
.feature-list-title { color: var(--ts-blue); font-weight: 700; font-size: 1.35rem; margin: 1.75rem 0 1rem; }

.check-list { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.check-list li {
    position: relative; padding-left: 2.1rem; margin-bottom: .95rem;
    font-size: .92rem; line-height: 1.6;
}
.check-list li::before {
    content: "✓";
    position: absolute; left: 0; top: .1rem;
    width: 1.35rem; height: 1.35rem; border-radius: 50%;
    background: var(--ts-green); color: #fff;
    display: grid; place-items: center;
    font-size: .75rem; font-weight: 700;
}

.feature-image {
    border-radius: 16px; overflow: hidden;
    background: linear-gradient(160deg, #e8f2fb, #f6fbff);
    box-shadow: 0 12px 30px rgba(31,95,191,.10);
}
.feature-image img { width: 100%; display: block; height: auto; }

/* ---------- Testimonials ---------- */
.testimonials {
    padding: 5rem 0 4rem;
    background: linear-gradient(120deg, #3fd3a6 0%, #2a8fcf 45%, #1e46b4 100%);
    color: #fff;
}
.testimonial-wrap { position: relative; max-width: 420px; margin: 0 auto; }
.testimonial-card {
    background: #fff; color: var(--ts-text);
    border-radius: 18px; padding: 2.25rem 2rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,.15);
    min-height: 300px;
}
.t-avatar {
    width: 64px; height: 64px; border-radius: 50%;
    margin: 0 auto .9rem;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--ts-teal), var(--ts-blue));
    color: #fff; font-weight: 700; font-size: 1.15rem;
    box-shadow: 0 0 0 5px #e4f7f0;
}
.t-name { font-weight: 700; font-size: 1.1rem; }
.t-role { color: var(--ts-green); font-size: .8rem; font-weight: 600; margin-bottom: 1rem; }
.t-content { font-size: .9rem; line-height: 1.7; color: var(--ts-muted); }
.t-stars { color: var(--ts-yellow); font-size: 1.25rem; letter-spacing: 2px; }
.t-stars span { color: #ddd; }
.t-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 34px; height: 34px; border-radius: 50%; border: 0;
    background: #fff; color: var(--ts-blue); font-size: 1.4rem; line-height: 1;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.t-prev { left: -17px; }
.t-next { right: -17px; }
.t-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 2rem; }
.t-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); padding: 0; }
.t-dot.active { background: var(--ts-yellow); }
.t-title { font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; color: #1b2f9e; }
.t-title .accent { color: var(--ts-teal); }
.t-desc { max-width: 440px; margin: 1.25rem auto 0; line-height: 1.7; }

/* ---------- Partners ---------- */
.partners { padding: 4.5rem 0; }
.partners-title { text-align: center; font-weight: 600; font-size: 1.3rem; color: #1f2a44; }
.partners-underline { width: 56px; height: 3px; background: var(--ts-teal); margin: .9rem auto 2rem; border-radius: 2px; }
.partner-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.partner-logo {
    aspect-ratio: 3 / 2;
    display: grid; place-items: center;
    border: 1px solid #e6edf5; border-radius: 10px;
    background: var(--ts-bg-soft);
    padding: .5rem; text-align: center;
    font-size: .68rem; color: #8a93a6; text-decoration: none;
    transition: transform .15s, box-shadow .15s;
}
.partner-logo:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(31,95,191,.12); }
.partner-logo img { max-width: 75%; max-height: 65%; object-fit: contain; filter: grayscale(1); opacity: .8; }
.partner-logo:hover img { filter: none; opacity: 1; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ts-navy);
    border-top: 10px solid var(--ts-green);
    color: #fff; padding: 2.5rem 0 2rem; font-size: .85rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--ts-yellow); }
.footer-company { color: var(--ts-teal); font-weight: 600; font-size: .8rem; }
.footer-contact p { margin-bottom: .55rem; }
.footer-contact .ic { font-style: normal; margin-right: .4rem; }
.footer-links { display: flex; flex-direction: column; gap: .3rem; }
.footer-follow { font-weight: 700; font-size: .8rem; }
.social {
    width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center;
    background: #fff; color: var(--ts-navy) !important; font-weight: 800; font-size: .85rem;
}
.copyright { color: var(--ts-yellow); font-size: .75rem; margin-top: .75rem; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .header-actions { margin: .5rem 0; }
    .hero-overlay { background: linear-gradient(180deg, rgba(23,78,166,.9), rgba(31,95,191,.75)); }
}
@media (max-width: 575.98px) {
    .partner-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hero { min-height: 480px; }
    .t-prev { left: 4px; } .t-next { right: 4px; }
}

/* ---------- Blazor defaults ---------- */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }
