.topbar{
    background-color: #333;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px;
}
.brand-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
}
.brand-logo {
    width: 34px !important;
    height: 34px !important;
    max-width: 34px !important;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.4));
}
.brand-name {
    flex: 0 0 auto;
    color: #fff !important;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
}
.brand-name:hover,
.brand-name:visited,
.brand-name:focus {
    color: #fff;
    text-decoration: none;
}
.visit-link {
    color: white;
    text-decoration: none;
    margin-right: 10px;
    font-size: 18px;
}

.dropdown {
    display: inline-block;
    position: relative;
}

.dropbtn {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    font-size: 18px;
    border: none;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #444;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-family: inherit;
    font-size: 18px;
}

.dropdown-content a:hover {
    background-color: #555;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content,
.dropdown-content:hover {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: #444;
}

.welcome {
    margin: 8px 0 0;
    color: #222;
    font-size: 56px;
    line-height: 0.95;
    letter-spacing: 1px;
}

.home-content {
    width: min(100% - 32px, 1080px);
    margin: 0 auto;
    padding: 72px 0 54px;
}

.hero-section {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 34px;
    align-items: center;
    padding: 30px 36px;
    border-top: 5px solid #3541e9;
    background: rgba(245, 245, 245, 0.95);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.eyebrow {
    margin: 0;
    color: #3541e9;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.hero-copy {
    max-width: 580px;
    margin: 0;
    color: #4a4a4a;
    font-size: 19px;
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-actions a {
    padding: 12px 18px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
}

.primary-action {
    background: #333;
    color: #fff;
}

.primary-action:hover,
.primary-action:focus-visible {
    background: #3541e9;
}

.secondary-action {
    border: 1px solid #333;
    color: #333;
}

.secondary-action:hover,
.secondary-action:focus-visible {
    background: #333;
    color: #fff;
}

.portal-section {
    margin-top: 54px;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.portal-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    min-height: 220px;
    padding: 28px 30px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(250,252,255,0.98), rgba(241,245,255,0.98));
    border: 1px solid rgba(82, 101, 255, 0.14);
    box-shadow: 0 12px 26px rgba(18, 36, 75, 0.08);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.portal-link:hover,
.portal-link:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(82, 101, 255, 0.3);
    box-shadow: 0 18px 34px rgba(18, 36, 75, 0.12);
}

.portal-link .eyebrow {
    font-size: 12px;
    letter-spacing: 1.8px;
    color: #3b5af5;
}

.portal-link strong {
    color: #1d2433;
    font-size: clamp(28px, 2vw, 40px);
    line-height: 1.08;
}

.portal-link > span:last-child {
    color: #4f5d75;
    line-height: 1.55;
    font-size: 17px;
}

.workflow-section {
    margin-top: 54px;
}

.workflow-section h2 {
    margin: 10px 0 22px;
    color: #1d2433;
    font-size: clamp(32px, 3vw, 62px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    position: relative;
}

.workflow-card {
    position: relative;
    min-height: 230px;
    padding: 26px 24px 22px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(248,250,255,0.96));
    border: 1px solid rgba(20, 28, 45, 0.06);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.workflow-card + .workflow-card::before {
    content: "";
    position: absolute;
    left: -11px;
    top: 50%;
    width: 18px;
    height: 3px;
    background: linear-gradient(90deg, #5e6cff, #3b5af5);
    border-radius: 999px;
    transform: translateY(-50%);
}

.workflow-card + .workflow-card::after {
    content: "";
    position: absolute;
    left: -4px;
    top: 50%;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 12px solid #3b5af5;
    transform: translateY(-50%);
}

.workflow-number {
    color: #3b5af5;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
}

.workflow-card h3 {
    margin: 18px 0 12px;
    color: #1d2433;
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.18;
}

.workflow-card p,
.about-section > p {
    margin: 0;
    color: #53617a;
    line-height: 1.6;
    font-size: 17px;
}

.about-section {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 34px;
    align-items: center;
    width: min(100% - 32px, 1080px);
    margin: 0 auto;
    padding: 26px 36px;
}

.bottom-bar {
    margin-top: auto;
    padding: 20px 0;
    background: #d3d3d3;
}

.about-section h2 {
    margin: 8px 0 0;
    color: #222;
    font-size: 28px;
    line-height: 1.15;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    background-color: transparent;
    background-image: url('../bg_sg.png') !important;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
}

html {
    min-height: 100%;
    background: #eef1f4 url('../bg_sg.png') center / cover fixed no-repeat !important;
}

img, svg, video, canvas {
    max-width: 100%;
    display: block;
}

button, input, select, textarea {
    font: inherit;
}

@media (max-width: 768px) {
    .topbar {
        padding: 8px 12px;
        flex-wrap: wrap;
    }

    .visit-link,
    .dropbtn {
        font-size: 16px;
    }

    .dropbtn {
        padding: 8px 12px;
    }

    .dropdown-content {
        min-width: 140px;
    }

    .welcome {
        margin-top: 30px;
        font-size: 52px;
    }

    .home-content {
        width: min(100% - 20px, 1080px);
        padding-top: 42px;
    }

    .hero-section {
        padding: 28px 24px 30px;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .portal-grid,
    .workflow-grid,
    .about-section {
        grid-template-columns: 1fr;
    }

    .workflow-card + .workflow-card::before,
    .workflow-card + .workflow-card::after {
        display: none;
    }

    .portal-link,
    .workflow-card {
        min-height: auto;
    }

    .portal-link strong {
        font-size: 28px;
    }

    .workflow-section h2 {
        font-size: 38px;
    }
}

@media (max-width: 480px) {
    .topbar {
        justify-content: space-between;
    }

    .visit-link {
        margin-right: 0;
    }

    .dropdown-content a {
        font-size: 16px;
        padding: 10px 12px;
    }

    .home-content {
        width: min(100% - 24px, 1080px);
        padding-top: 30px;
    }

    .hero-section {
        padding: 24px 18px 26px;
    }

    .about-section {
        width: min(100% - 24px, 1080px);
        padding: 24px 18px;
    }

    .hero-copy {
        font-size: 17px;
    }

    .hero-actions a {
        width: 100%;
        text-align: center;
    }

    .portal-link,
    .workflow-card {
        padding: 22px 18px;
    }

    .portal-link strong {
        font-size: 26px;
    }

    .workflow-section h2 {
        font-size: 32px;
    }
}

html,
body,
button,
input,
select,
textarea {
    font-family: "Trebuchet MS", Arial, sans-serif;
}

h1,
h2,
h3,
h4,
p,
label,
a,
button,
input,
select,
textarea {
    letter-spacing: 0;
}