:root {
    --brand-teal: #0f9298;
    --brand-teal-dark: #0c7176;
    --text-dark: #2f3b4c;
    --text-muted: #6c7680;
    --bg-light: #f4f7f8;
}

body {
    background-color: var(--bg-light);
    font-family: "Segoe UI", "Tahoma", "Noto Sans Thai", Arial, sans-serif;
    color: var(--text-dark);
}

.portal-header {
    background-color: var(--brand-teal);
    color: #fff;
    padding: 0.9rem 1.5rem;
}

.portal-header .brand-logo {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.portal-header .divider {
    width: 1px;
    height: 22px;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 1rem;
}

.portal-header .portal-title {
    font-size: 1rem;
    font-weight: 500;
}

.system-card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    padding: 1.1rem 0.75rem;
}

.system-card:not(.system-card--disabled):hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.system-card--disabled {
    opacity: 0.6;
}

.icon-wrap {
    width: 88px;
    height: 88px;
}

.icon-img {
    width: 100%;
    height: 100%;
}

.system-name-th {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--brand-teal-dark);
    margin-bottom: 0.25rem;
}

.system-name-en {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.9rem;
}

.btn-portal {
    background-color: var(--brand-teal);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.35rem 1.4rem;
    font-size: 0.85rem;
}

.btn-portal:hover:not(:disabled) {
    background-color: var(--brand-teal-dark);
    color: #fff;
}

.btn-portal:disabled {
    background-color: #c7cdd1;
}

@media (max-aspect-ratio: 1/1) {
    #cardContainer > .col {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    #cardContainer {
        --bs-gutter-y: 1rem;
    }

    .system-card {
        padding: 0rem 0.2rem;
    }

    .icon-wrap {
        width: 56px;
        height: 56px;
    }

    .system-name-en {
        margin-bottom: 0.5rem;
    }
}
