/* Font variables */
:root {
    /* Hind Madurai */
    --font-family-hind-madurai: 'Hind Madurai', sans-serif;
    /* Montserrat */
    --font-family-montserrat: 'Montserrat', sans-serif;
    /* Inter */
    --font-family-inter: 'Inter', sans-serif;
    /* Font weights for easy reference */
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;
    /*colours*/
    --brand-contrast: #ffffff;
}

/* Global font setup */
body {
    font-family: var( --font-family-hind-madurai);
    font-weight: var(--font-weight-regular);
    background: linear-gradient(135deg, #F7F7F7 0%, #DFE0E3 100%);
    min-height: 100vh;
}

    body[data-theme="373"] {
        --brand-primary: #1F407E;
        --brand-primary-rgb: 31, 64, 126;
    }

    body[data-theme="372"],
    body[data-theme="374"] {
        --brand-primary: #BE1E2D;
        --brand-primary-rgb: 190, 30, 45;
    }

    body[data-theme="543"] {
        --brand-primary: #ED1B34;
        --brand-primary-rgb: 237, 27, 52;
    }



header .brand-logo {
    display: block;
    margin: 10px auto 10px;
    height: 55px;
}


header .navbar-brand__program {
    align-items: center;
}

    header .navbar-brand__program .brand-separator {
        display: inline-block;
        height: 50px;
        border-left: 2px solid #e5e5e5;
        margin-top: 2px;
    }

header .brand-program-text {
    font-size: 16px;
    font-family: var( --font-family-montserrat);
    font-weight: var(--font-weight-bold);
    color: #333;
    white-space: nowrap;
    word-wrap: break-word
}


header h1 {
    font-size: 13px;
    font-family: var( --font-family-montserrat);
    font-weight: var(--font-weight-bold);
    line-height: 18.20px;
    word-wrap: break-word
}

.user-menu-button {
    background: none !important;
    border: none !important;
    font-weight: 600;
    font-size: 1.05rem;
    color: #333;
}

.user-name {
    font-weight: var(--font-weight-medium);
    font-size: 16px;
    line-height: 24px;
    word-wrap: break-word
}

.user-menu {
    min-width: 200px;
    border-radius: 10px;
    padding: .5rem 0;
}

.dropdown-menu-end {
    margin-top: .5rem;
}

.user-menu .dropdown-item {
    font-size: .95rem;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

    .user-menu .dropdown-item:hover {
        background: rgba(var(--brand-primary-rgb), .1);
    }

.chevron-down {
    opacity: 0.8;
}

/* Scope modal */
.redirect-modal .modal-dialog {
    max-width: 420px; /* screenshot size */
}

.redirect-modal__content {
    border: 0;
    border-radius: 10px;
    box-shadow: 0 14px 45px rgba(16, 24, 40, 0.18);
    overflow: hidden;
    font-family: inherit;
}

/* Modal Header */
.redirect-modal__header {
    padding: 16px 18px 10px 18px;
    border-bottom: 1px solid #eef0f3;
    align-items: center;
    justify-content: space-between;
    border-bottom: 0 !important;
    position: relative;
}

    .redirect-modal__header ::after {
        content: "";
        position: absolute;
        left: 18px; /* match header/body padding */
        right: 18px; /* match header/body padding */
        bottom: 0;
        height: 1px;
        background: #eef0f3;
    }

.redirect-modal__title {
    font-size: 26px;
    font-family: var(--font-family-montserrat);
    font-weight: var(--font-weight-bold);
    color: #111827;
    margin: 0;
}

/* Close (X) */
.redirect-modal__close {
    font-size: 20px;
    opacity: 0.6;
    transition: opacity 0.12s ease;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
}

    .redirect-modal__close:hover {
        opacity: 1;
    }

/* Modal Body text */
.redirect-modal__body {
    padding: 14px 18px 6px 18px;
    font-size: 16px;
    color: #4b5563;
    line-height: 1.45;
}

/* Modal Footer buttons */
.redirect-modal__footer {
    padding: 12px 18px 16px 18px;
    border-top: 0;
    gap: 8px;
}

.redirect-modal__btn {
    height: 42px;
    padding: 0px 16px;
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    font-family: var(--font-family-inter);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0px;
}

/* Cancel = light outline */
.redirect-modal__btn--cancel {
    color: #111827;
    background: #fff;
    border: 2px solid #374151;
}

    .redirect-modal__btn--cancel:hover {
        border: 2px solid #374151;
        background: #f3f4f6;
        border-color: #111827;
        color: #111827;
    }

/* Continue = solid red */
.redirect-modal__btn--continue {
    background: var(--brand-primary);
    color: var(--brand-contrast);
    border: 1px solid var(--brand-primary);
    min-width: 110px;
}

    .redirect-modal__btn--continue:hover {
        background: color-mix(in srgb, var(--brand-primary) 95%, black) !important;
        color: var(--brand-contrast);
    }

.redirect-modal__arrow {
    margin-left: 6px;
    font-size: 16px;
    line-height: 1;
}

.redirect-modal.modal {
    background: rgba(0,0,0,0.55);
}

.toast-body {
    font-family: var(--font-family-inter);
}

footer .privacy-statement {
    display: flex;
    justify-content: center;
}

footer .privacy-statement__card {
    background: #EEEEEE;
    padding: 30px;
    width: 570px;
}

    footer .privacy-statement__card h1 {
        font-size: 14px;
        line-height: 16.80px;
        word-wrap: break-word
    }

    footer .privacy-statement__card p {
        font-size: 12px;
        line-height: 14.40px;
        word-wrap: break-word;
        margin: 0;
    }
/*Error: page*/
.error-container {
    max-width: 900px;
    padding: 2rem;
}

.error-header {
    text-align: center;
}

.error-icon {
    color: #dc3545;
    margin-bottom: 1rem;
}

.error-title {
    color: #242424;
    font-size: 26px;
    font-family: var( --font-family-montserrat);
    font-weight: var(--font-weight-extrabold);
}

.error-subtitle {
    color: #242424;
    font-size: 20px;
    font-family: var(--font-family-hind-madurai);
    font-weight: var(--font-weight-medium);
    padding: 1rem 0;
}

.error-actions {
    margin-bottom: 2rem;
}

.inline-form {
    margin: 0;
}


/* Animation */
.error-icon svg {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 576px) {

    header nav[data-auth="True"] .container {
        display: grid !important;
        grid-template-columns: 1fr 50px;
        gap: 10px;
    }

    header nav[data-auth="True"] .brand-logo {
        margin: 5px;
    }



    header .brand-program-text {
        white-space: pre-wrap !important;
        word-wrap: unset !important;
        text-wrap-style: balance;
    }
}
