:root {
    --main-bg-color: #0163D2;
    --main-bg-hover: #0150ab;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --surface: #ffffff;
    --page-bg: #f7f8fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    min-height: 100vh;
}

body {
    display: flex;
    flex-direction: column;
    background-color: var(--page-bg);
    color: var(--text-dark);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Layout wrapper keeps footer pinned to the bottom */
.container {
    flex: 1 0 auto;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0;
    text-align: center;
}

/* Header / hero */
.brand-logo {
    margin-bottom: 20px;
}

.brand-logo img {
    max-width: 100%;
    max-height: 90px;
    height: auto;
}

.main h6 {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.6;
    max-width: 620px;
    margin: 0 auto 36px;
}

.des_title {
    display: inline-block;
    color: var(--text-dark);
    background: transparent;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 0;
    margin-bottom: 28px;
    position: relative;
}

.des_title::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    background-color: var(--main-bg-color);
    border-radius: 2px;
    margin: 10px auto 0;
}

/* Service grid */
.row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 0;
}

/* Each service becomes a flat card. Bootstrap col classes are neutralised. */
.s_btn {
    margin: 0;
    padding: 0;
    width: 100%;
}

.s_btn a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 100%;
    min-height: 120px;
    padding: 24px 16px;
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.s_btn a:hover {
    border-color: var(--main-bg-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(1, 99, 210, 0.08);
}

/* Icon chip inside each card */
.s_btn img {
    width: 48px !important;
    height: 48px !important;
    border: none !important;
    padding: 8px;
    background-color: #eef4fd;
    border-radius: 10px;
    object-fit: contain;
}

.form_logo img {
    width: 190px;
    height: 190px;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
}
.header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0163d2, #2b8bff);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.brand-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
}
.brand-logo-img {
    height: 42px;
    width: auto;
    display: block;
}
.footer-logo-img {
    height: 46px;
    width: auto;
    background: #fff;
    border-radius: 8px;
    padding: 4px;
}
.header-login {
    background: var(--main-bg-color);
    color: #fff;
    text-decoration: none;
    padding: 9px 18px;
    border-radius: 9px;
    font-weight: 600;
    font-size: 0.88rem;
    transition: background 0.15s ease, transform 0.15s ease;
}
.header-login:hover {
    background: var(--main-bg-hover);
    color: #fff;
    transform: translateY(-1px);
}

/* ---------- Footer ---------- */
.site-footer {
    flex-shrink: 0;
    width: 100%;
    background: #0f1b2d;
    color: #cdd6e4;
}
.footer-top {
    max-width: 1120px;
    margin: 0 auto;
    padding: 34px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.footer-brand strong {
    color: #fff;
    font-size: 1.05rem;
    display: block;
}
.footer-brand p {
    margin: 4px 0 0;
    font-size: 0.85rem;
    color: #9fb0c7;
    max-width: 300px;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    align-items: center;
}
.footer-links a {
    color: #cdd6e4;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s ease;
}
.footer-links a:hover {
    color: #fff;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 1120px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: #8fa0b8;
}

/* Tablet */
@media (max-width: 768px) {
    .row {
        grid-template-columns: repeat(2, 1fr);
    }
    .des_title {
        font-size: 1.3rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .main {
        padding: 28px 0;
    }
    .main h6 {
        font-size: 0.85rem;
        margin-bottom: 28px;
    }
    .s_btn a {
        min-height: 110px;
        padding: 18px 10px;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    .s_btn img {
        width: 40px !important;
        height: 40px !important;
    }
}
