body {
    background: #eef2f5;
    color: #182633;
}

a {
    color: #1464a5;
}

section#header {
    background: #ffffff;
    border-bottom: 1px solid #d9e2ec;
}

section#header .logo img {
    max-height: 76px;
    width: auto;
}

.navbar-main {
    border: 0;
    border-radius: 0;
    background: #23394d;
    margin-bottom: 0;
}

.navbar-main .navbar-nav > li > a {
    color: #f8fafc;
}

.navbar-main .navbar-nav > li > a:hover,
.navbar-main .navbar-nav > li > a:focus {
    color: #ffffff;
    background: #172a3a;
}

.portal-hero {
    background: #eef2f5;
    border-bottom: 1px solid #d2dbe4;
    padding: 30px 0;
}

.portal-box {
    background: #ffffff;
    border: 1px solid #cfd9e3;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(31, 41, 51, 0.08);
    display: grid;
    gap: 28px;
    grid-template-columns: 260px minmax(0, 1fr);
    padding: 32px;
}

.portal-brand-mark {
    align-items: center;
    background: #f7f9fb;
    border: 1px solid #dce5ed;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    min-height: 178px;
    padding: 18px;
    text-align: center;
}

.portal-brand-mark img {
    display: block;
    height: auto;
    max-width: 100%;
    width: 220px;
}

.portal-hero-copy {
    align-self: center;
    max-width: 720px;
}

.portal-kicker {
    color: #526575;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0;
    text-transform: uppercase;
}

.portal-hero h1 {
    color: #102233;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.18;
    margin: 0 0 14px;
}

.portal-summary {
    color: #35495a;
    font-size: 16px;
    line-height: 1.55;
    margin: 0 0 24px;
    max-width: 640px;
}

.portal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.portal-actions .btn {
    align-items: center;
    border-radius: 6px;
    display: inline-flex;
    font-weight: 700;
    gap: 9px;
    justify-content: center;
    min-height: 46px;
}

.portal-actions .btn-primary {
    background: #1464a5;
    border-color: #1464a5;
}

.portal-actions .btn-primary:hover,
.portal-actions .btn-primary:focus {
    background: #0f4f84;
    border-color: #0f4f84;
}

.portal-actions .btn-ticket {
    background: #ffffff;
    border: 2px solid #1464a5;
    color: #0f4f84;
}

.portal-actions .btn-ticket:hover,
.portal-actions .btn-ticket:focus {
    background: #e8f2fb;
    border-color: #0f4f84;
    color: #0b3d66;
}

.portal-shortcuts {
    background: #eef2f5;
    border-bottom: 0;
    padding-bottom: 26px;
}

.portal-shortcuts ul {
    background: #ffffff;
    border: 1px solid #cfd9e3;
    border-radius: 8px;
    display: grid;
    gap: 0;
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
    padding: 0;
}

.portal-shortcuts li {
    display: block;
    width: auto;
}

.portal-shortcuts li a {
    align-items: center;
    border-left: 1px solid #e5ebf1;
    color: #182633;
    display: flex;
    gap: 12px;
    min-height: 82px;
    padding: 18px;
    text-align: left;
}

.portal-shortcuts li:last-child a {
    border-right: 1px solid #e5ebf1;
}

.portal-shortcuts li a:hover,
.portal-shortcuts li a:focus {
    background: #f5f8fb;
    text-decoration: none;
}

.portal-shortcuts i {
    color: #1464a5;
    font-size: 24px;
    width: 28px;
}

.portal-shortcuts p {
    color: #182633;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.portal-shortcuts span {
    color: #7b8da0;
}

.portal-home {
    background: #eef2f5;
    padding-bottom: 32px;
}

.portal-panel-row {
    margin-bottom: 26px;
}

.portal-panel {
    background: #ffffff;
    border: 1px solid #cfd9e3;
    border-radius: 8px;
    min-height: 238px;
    padding: 26px;
}

.portal-panel-icon {
    align-items: center;
    background: #eef5fb;
    border-radius: 6px;
    color: #1464a5;
    display: inline-flex;
    font-size: 22px;
    height: 46px;
    justify-content: center;
    margin-bottom: 16px;
    width: 46px;
}

.portal-panel h2,
.portal-contact-band h2 {
    color: #102233;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 10px;
}

.portal-panel p,
.portal-contact-band p {
    color: #35495a;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px;
}

.portal-link {
    font-weight: 700;
}

.portal-contact-band {
    align-items: center;
    background: #ffffff;
    border: 1px solid #cfd9e3;
    border-radius: 8px;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 24px 26px;
}

.portal-contact-band p {
    margin-bottom: 0;
}

.portal-contact-band .btn {
    border-radius: 6px;
    font-weight: 700;
    min-width: 142px;
}

@media (max-width: 991px) {
    .portal-shortcuts ul {
        grid-template-columns: repeat(2, 1fr);
    }

    .portal-shortcuts li a {
        border-bottom: 1px solid #e5ebf1;
    }
}

@media (max-width: 767px) {
    section#header .logo img {
        max-height: 58px;
    }

    .portal-hero {
        padding: 22px 0;
    }

    .portal-box {
        display: block;
        padding: 22px;
    }

    .portal-brand-mark {
        margin-bottom: 22px;
    }

    .portal-hero h1 {
        font-size: 28px;
    }

    .portal-summary {
        font-size: 15px;
    }

    .portal-actions .btn {
        width: 100%;
    }

    .portal-shortcuts ul {
        grid-template-columns: 1fr;
    }

    .portal-shortcuts li a,
    .portal-shortcuts li:last-child a {
        border-left: 0;
        border-right: 0;
    }

    .portal-panel {
        margin-bottom: 16px;
        min-height: 0;
    }

    .portal-contact-band {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Hide WHMCS branding paragraph before the footer cleanup script removes it. */
section#main-body .main-content > p[style="text-align:center;"] {
    display: none;
}
