/* Professional public site footer */
.hms-site-footer {
    background: #fff;
    border-top: 1px solid #e8eef5;
    padding: 48px 0 24px;
    margin-top: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.hms-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.1fr 1fr 1fr 1.1fr;
    gap: 28px 24px;
    align-items: start;
}

.hms-footer-brand {
    min-width: 0;
}

.hms-footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.hms-footer-logo img {
    max-height: 56px;
    max-width: 200px;
    width: auto;
}

.hms-footer-logo-text {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #0a6b5a;
}

.hms-footer-community h4,
.hms-footer-col h4 {
    color: #0a6b5a;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 14px;
    line-height: 1.3;
}

.hms-footer-community p {
    color: #666;
    font-size: 13px;
    line-height: 1.55;
    margin: 0 0 14px;
}

.hms-community-form .form-control {
    height: 38px;
    border-radius: 6px;
    border: 1px solid #d8e3ef;
    box-shadow: none;
    margin-bottom: 10px;
    font-size: 13px;
}

.hms-community-gender {
    display: flex;
    gap: 16px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #555;
    font-weight: 600;
}

.hms-community-gender label {
    font-weight: 600;
    margin: 0;
    cursor: pointer;
}

.hms-community-btn {
    width: 100%;
    background: #0a8f7a;
    border: none;
    color: #fff;
    font-weight: 700;
    border-radius: 6px;
    padding: 10px 16px;
}

.hms-community-btn:hover,
.hms-community-btn:focus {
    background: #087566;
    color: #fff;
}

.hms-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hms-footer-links li {
    margin-bottom: 8px;
}

.hms-footer-links a {
    color: #555;
    font-size: 13px;
    text-decoration: none;
    line-height: 1.45;
}

.hms-footer-links a:hover {
    color: #1565c0;
    text-decoration: none;
}

.hms-footer-subtitle {
    margin-top: 22px !important;
}

.hms-footer-social {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hms-footer-social li {
    margin-bottom: 8px;
}

.hms-footer-social a {
    color: #555;
    font-size: 13px;
    text-decoration: none;
}

.hms-footer-social a:hover {
    color: #1565c0;
}

.hms-footer-social .fa {
    width: 18px;
    margin-right: 4px;
    color: #0a8f7a;
}

.hms-app-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hms-app-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #111;
    color: #fff;
    border-radius: 8px;
    padding: 10px 14px;
    text-decoration: none;
    min-width: 0;
}

.hms-app-badge:hover {
    background: #222;
    color: #fff;
    text-decoration: none;
}

.hms-app-badge-icon {
    font-size: 26px;
    line-height: 1;
}

.hms-app-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.hms-app-badge-text small {
    font-size: 10px;
    opacity: .85;
}

.hms-app-badge-text strong {
    font-size: 15px;
    font-weight: 700;
}

.hms-footer-bottom {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid #e8eef5;
    text-align: center;
}

.hms-footer-bottom p {
    margin: 0 0 6px;
    color: #888;
    font-size: 12px;
}

.hms-footer-address {
    color: #aaa !important;
}

.coe-section--detail {
    margin-top: 0;
    border-top: 1px solid #e8eef5;
}

@media (max-width: 1199px) {
    .hms-footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hms-footer-brand {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 200px 1fr;
        gap: 24px;
        align-items: start;
    }
}

@media (max-width: 767px) {
    .hms-site-footer {
        padding: 36px 0 20px;
    }

    .hms-footer-grid,
    .hms-footer-brand {
        grid-template-columns: 1fr;
    }

    .hms-footer-brand {
        display: block;
    }
}
