:root {
    --public-primary: #2563eb;
    --public-secondary: #4f46e5;
    --public-dark: #0f172a;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 2000;
    padding: .7rem 1rem;
    border-radius: .5rem;
    color: #fff;
    background: #0f172a;
    box-shadow: 0 4px 18px rgba(15, 23, 42, .25);
    transform: translateY(-150%);
    transition: transform .15s ease;
}

.skip-link:focus {
    color: #fff;
    transform: translateY(0);
}

.public-navbar {
    padding: 12px 0 !important;
    background: rgba(255, 255, 255, .97) !important;
    border-bottom: 1px solid rgba(37, 99, 235, .1) !important;
    box-shadow: 0 6px 25px rgba(15, 23, 42, .08) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.public-navbar .container {
    position: relative;
}

.public-navbar .navbar-brand {
    display: flex !important;
    align-items: center;
    gap: 11px;
    margin-right: 25px;
    color: #1d4ed8 !important;
    text-decoration: none;
    transition: transform .25s ease;
}

.public-navbar .navbar-brand:hover {
    transform: none !important;
}

.public-navbar .navbar-brand:hover .brand-mark {
    transform: none !important;
}

.public-navbar .brand-mark {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 13px;
    color: #fff;
    font-size: 21px;
    background: linear-gradient(135deg, var(--public-primary), var(--public-secondary));
    box-shadow: 0 8px 18px rgba(37, 99, 235, .28);
}

.public-navbar .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.public-navbar .brand-name {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: .4px;
}

.public-navbar .brand-tagline {
    margin-top: 4px;
    color: #64748b;
    font-size: .67rem;
    font-weight: 500;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.public-navbar .navbar-nav {
    align-items: center;
    gap: 3px;
}

.public-navbar .nav-link {
    position: relative;
    padding: 11px 14px !important;
    border-radius: 10px;
    color: #334155 !important;
    font-size: .94rem;
    font-weight: 600;
    transition: all .25s ease;
}

.public-navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 0;
    height: 3px;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--public-primary), var(--public-secondary));
    transform: translateX(-50%);
    transition: width .25s ease;
}

.public-navbar .nav-link:hover,
.public-navbar .nav-link.active {
    color: #1d4ed8 !important;
    background: #eef2ff;
}

.public-navbar .nav-link:hover::after,
.public-navbar .nav-link.active::after {
    width: 52%;
}

.public-navbar .public-account-area {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
}

.public-navbar #loginButton {
    position: relative;
    overflow: hidden;
    max-width: 220px;
    padding: 11px 18px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 11px !important;
    color: #fff !important;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--public-primary), var(--public-secondary)) !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, .25) !important;
}

.public-navbar #loginButton::before,
.public-navbar #loginButton::after {
    content: none !important;
}

.public-navbar #loginButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(37, 99, 235, .35) !important;
}

.public-navbar .public-logout-form {
    margin: 0;
}

.public-navbar .public-logout-button {
    width: auto;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0 14px;
    border: 1px solid #fecaca;
    border-radius: 11px;
    color: #dc2626;
    background: #fff;
}

.public-navbar .public-logout-button:hover {
    color: #fff;
    background: #dc2626;
}

.public-navbar .navbar-toggler {
    width: 46px;
    height: 42px;
    padding: 0;
    border: 1px solid #dbeafe;
    border-radius: 11px;
    background: #eff6ff;
}

.public-footer {
    position: relative;
    overflow: hidden;
    padding: 68px 0 0 !important;
    color: #cbd5e1 !important;
    background: linear-gradient(135deg, #0f172a, #172554) !important;
}

.public-footer::before,
.public-footer::after {
    content: none !important;
}

.public-footer .footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.public-footer .footer-logo {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 15px;
    color: #fff;
    font-size: 23px;
    background: linear-gradient(135deg, var(--public-primary), var(--public-secondary));
}

.public-footer .footer-brand h3 {
    margin: 0;
    color: #fff;
    font-weight: 700;
}

.public-footer .footer-brand small,
.public-footer .footer-description {
    color: #cbd5e1;
}

.public-footer .footer-description {
    line-height: 1.8;
}

.public-footer .footer-title {
    position: relative;
    margin-bottom: 22px;
    padding-bottom: 11px;
    color: #fff;
    font-weight: 700;
}

.public-footer .footer-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42px;
    height: 3px;
    border-radius: 20px;
    background: #60a5fa;
}

.public-footer .footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.public-footer .footer-links li {
    margin-bottom: 11px;
}

.public-footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.public-footer .footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.public-footer .footer-links a:hover,
.public-footer .footer-contact a:hover,
.public-footer .footer-bottom-links a:hover {
    color: #fff;
}

.public-footer .footer-links a:hover {
    transform: none !important;
}

.public-footer .footer-contact {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 14px;
}

.public-footer .footer-contact-icon {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 11px;
    color: #93c5fd;
    background: rgba(255, 255, 255, .08);
}

.public-footer .footer-social {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.public-footer .footer-social a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, .09);
}

.public-footer .footer-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #fff;
    background: #16a34a;
}

.public-footer .footer-bottom {
    margin-top: 50px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    background: rgba(2, 6, 23, .28);
}

.public-footer .footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.public-footer .footer-bottom p {
    margin: 0;
    color: #cbd5e1;
    font-size: 14px;
}

.public-footer .footer-bottom-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

@media (max-width: 991.98px) {
    .public-navbar .navbar-collapse {
        margin-top: 12px;
        padding: 15px;
        border: 1px solid #dbeafe;
        border-radius: 15px;
        background: #fff;
    }

    .public-navbar .navbar-nav {
        align-items: stretch;
    }

    .public-navbar .public-account-area {
        margin: 10px 0 0;
    }

    .public-navbar #loginButton {
        max-width: none;
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    .public-footer {
        text-align: center;
    }

    .public-footer .footer-brand,
    .public-footer .footer-social,
    .public-footer .footer-contact,
    .public-footer .footer-bottom-content,
    .public-footer .footer-bottom-links {
        justify-content: center;
    }

    .public-footer .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .public-footer .footer-bottom-content {
        flex-direction: column;
    }
}

/* Identiti jenama dan footer kekal statik apabila tetikus melaluinya. */
.public-navbar .navbar-brand,
.public-navbar .brand-mark,
.public-footer,
.public-footer *,
.public-footer *::before,
.public-footer *::after {
    animation: none !important;
    transition: none !important;
}

.public-navbar .navbar-brand:hover,
.public-navbar .navbar-brand:focus,
.public-navbar .navbar-brand:hover .brand-mark,
.public-navbar .navbar-brand:focus .brand-mark,
.public-footer .footer-brand:hover .footer-logo,
.public-footer .footer-contact:hover .footer-contact-icon,
.public-footer .footer-social a:hover,
.public-footer .footer-whatsapp:hover,
.public-footer .footer-links a:hover {
    transform: none !important;
    filter: none !important;
}

.public-footer .footer-column:hover .footer-title::after {
    width: 42px !important;
    background: #60a5fa !important;
}

.public-footer .footer-contact:hover .footer-contact-icon {
    color: #93c5fd !important;
    background: rgba(255, 255, 255, .08) !important;
}

.public-footer .footer-social a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, .09) !important;
    border-color: rgba(255, 255, 255, .25) !important;
    box-shadow: none !important;
}

.public-footer .footer-whatsapp:hover {
    color: #fff !important;
    background: #16a34a !important;
    box-shadow: none !important;
}

.public-footer .footer-bottom-links a:hover::after {
    width: 0 !important;
}

.public-footer .footer-links a:hover,
.public-footer .footer-contact a:hover,
.public-footer .footer-bottom-links a:hover {
    color: #cbd5e1 !important;
}

.public-footer .footer-links a:hover i {
    color: #60a5fa !important;
}
