:root {
    /* Overridden by brand-theme.css — kept as fallback */
    --primary-color: #303860;
    --secondary-color: #B01880;
}

@media (min-width: 1200px) {

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl {
        max-width: 960px !important;
    }
}

.header {
    margin-bottom: 1rem !important;
}

.border-bottom {
    border-bottom: 1px solid var(--primary-color) !important;
}

/* Course portal: drop the theme blue banner so titles are not covered */
.wrapper:before {
    display: none !important;
    height: 0 !important;
}

.content {
    margin-top: 0 !important;
    padding-top: 1.25rem !important;
    position: relative;
    /* Do not set z-index here — it traps Bootstrap modals under the backdrop */
}

.main > .navbar.navbar-theme {
    background: #fff !important;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 3.25rem;
}

.main > .navbar.navbar-theme .hamburger,
.main > .navbar.navbar-theme .hamburger:before,
.main > .navbar.navbar-theme .hamburger:after {
    background: #1b2a4a !important;
}

.main > .navbar.navbar-theme .nav-link,
.main > .navbar.navbar-theme .navbar-nav .nav-link {
    color: #1b2a4a !important;
}

.main > .navbar.navbar-theme .nav-link:hover {
    color: #0f766e !important;
}

/* reset password */
.mb-2-8 {
    margin-bottom: 2.8rem;
}

.title-space {
    padding-bottom: 0.6rem;
}

.btn-accoring-to-text {
    width: revert;
}

/* reset password */

.btn-primary,
.list-group-item.active,
.bg-primary-dark,
.splash .splash-icon {
    background-color: var(--primary-color) !important;
    color: var(--secondary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary,
.list-group-item.active,
.bg-primary-dark {
    border: var(--primary-color) !important;
}

.btn-outline-primary {
    background-color: transparent !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--secondary-color) !important;
}

a.sidebar-link .fab,
a.sidebar-link .fal,
a.sidebar-link .far,
a.sidebar-link .fas,
a.sidebar-link svg,
.text-primary {
    color: var(--primary-color) !important;
}

.sidebar-item.active>.sidebar-link .fab,
.sidebar-item.active>.sidebar-link .fal,
.sidebar-item.active>.sidebar-link .far,
.sidebar-item.active>.sidebar-link .fas,
.sidebar-item.active>.sidebar-link svg,
.sidebar-item.active>.sidebar-link {
    color: var(--secondary-color) !important;
}

.sidebar-item.active>.sidebar-link {
    background-color: var(--primary-color) !important;
}


.sidebar-link:hover {
    color: var(--primary-color) !important;
    background-color: #e9e9e9 !important;
}

.sidebar-brand,
.sidebar-brand:hover,
.wrapper:before {
    background-color: var(--primary-color) !important;
}

/* .header-title {
    color: #ed1c24 !important;
} */

.dispatch-note {
    display: block;
    /* Ensures the badge behaves like a block element */
    max-width: 100%;
    /* Prevents overflow */
    white-space: normal;
    /* Allows wrapping */
    word-wrap: break-word;
    /* Breaks long words */
    overflow-wrap: break-word;
    /* Ensures text wraps properly */
    text-align: left;
    /* Align text properly */
    padding: 8px;
    /* Adds spacing inside the badge */
}

input:focus,
textarea:focus,
select:focus,
button:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: var(--primary-color) !important;
    border-width: 1px !important;
}

.sidebar-user {
    padding: 1rem 0rem 0rem !important;
}

.cardscroll {
    overflow-x: hidden !important;
    overflow-y: scroll !important;
    max-height: 20rem;
}

.text-bg-warning,
.bg-warning {
    background-color: var(--secondary-color) !important;
}

.sidebar-user img {
    height: 5rem !important;
    width: auto !important;
}

.logo {
    height: 4rem !important;
}

.center-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.nav-tab {
    --bs-nav-link-padding-x: 1rem;
    --bs-nav-link-padding-y: 0.5rem;
    --bs-nav-link-font-weight: ;
    --bs-nav-link-color: var(--bs-link-color);
    --bs-nav-link-hover-color: var(--bs-link-hover-color);
    --bs-nav-link-disabled-color: var(--bs-secondary-color);
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin-bottom: 0;
    padding-left: 0;
}

.nav-item-tab {
    padding: 0.5rem !important;
}

.nav-tab .active {
    background-color: #ececec;
}

.sidebar-link,
a.sidebar-link {
    border-radius: .6rem !important;
}

/* Padding for branded sidebar is controlled in brand-theme.css */
.cp-sidebar .sidebar-link,
.cp-sidebar a.sidebar-link {
    padding: 0.62rem 0.75rem !important;
}

.sidebar [data-bs-toggle=collapse]:before {
    top: 1.1rem !important;
}

.sidebar-item {
    margin-bottom: 0.3rem !important;
}

.sidebar-dropdown {
    padding-left: 1rem !important;
}

.min-height {
    min-height: 85vh !important;
}

.big-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #007bff;
    background-color: #fff;
}

.avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: relative;
}

.avatar-sm {
    height: 32px !important;
    width: 32px !important;
    min-width: 32px;
    min-height: 32px;
}

.avatar-md {
    height: 48px !important;
    width: 48px !important;
    min-width: 48px;
    min-height: 48px;
}

.avatar-lg {
    height: 64px !important;
    width: 64px !important;
    min-width: 64px;
    min-height: 64px;
}

.avatar i {
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-sm i {
    font-size: 12px;
}

.avatar-md i {
    font-size: 16px;
}

.avatar-lg i {
    font-size: 20px;
}

.avatar>* {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.quick-action-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar.d-flex {
    display: flex !important;
}

.stats-card .bg-primary,
.stats-card .bg-info,
.stats-card .bg-warning,
.stats-card .bg-success,
.stats-card .bg-danger {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
}

.stats-card .bg-primary i,
.stats-card .bg-info i,
.stats-card .bg-warning i,
.stats-card .bg-success i,
.stats-card .bg-danger i {
    display: flex;
    align-items: center;
    justify-content: center;
}

.validation-message {
    font-size: 13px !important;
}

/* Course portal — client mockup look */
:root {
    --cp-navy: #1b2a4a;
    --cp-navy-soft: #24355c;
    --cp-teal: #0f766e;
    --cp-teal-hover: #0d9488;
    --cp-page-bg: #f4f6f9;
    --cp-text: #1e293b;
    --cp-muted: #64748b;
    --cp-border: #e2e8f0;
    --cp-ok: #15803d;
    --cp-warn: #c2410c;
}

.wrapper .main {
    background: var(--cp-page-bg);
}

.cp-sidebar.sidebar {
    background: var(--cp-navy) !important;
    box-shadow: none !important;
}

.cp-sidebar .sidebar-content,
.cp-sidebar .sidebar-nav {
    background: var(--cp-navy) !important;
}

.cp-sidebar .cp-brand {
    background: transparent !important;
    color: #fff !important;
    text-align: left !important;
    padding: 1.25rem 1rem 1rem !important;
}

.cp-brand-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: #fff !important;
}

.cp-brand-mark {
    width: 2rem;
    height: 2rem;
    border-radius: .45rem;
    background: rgba(255, 255, 255, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1;
}

.cp-brand-name {
    font-size: 1.05rem;
    font-weight: 650;
    line-height: 1.15;
    color: #fff;
}

.cp-brand-tag {
    font-size: .68rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .65);
    margin-top: .1rem;
}

/* Sidebar link/active styles live in brand-theme.css */

.cp-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin: 0 0 1.25rem;
    padding-top: .35rem;
    flex-wrap: wrap;
    position: relative;
}

.cp-eyebrow {
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--cp-muted);
    margin-bottom: .35rem;
}

.cp-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--cp-navy);
    margin: 0;
    line-height: 1.2;
}

.cp-subtitle {
    color: var(--cp-muted);
    margin: .4rem 0 0;
    font-size: .98rem;
}

.cp-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: var(--cp-teal) !important;
    border-color: var(--cp-teal) !important;
    color: #fff !important;
    border-radius: .5rem !important;
    padding: .55rem 1rem !important;
    font-weight: 600;
    text-decoration: none;
}

.cp-btn:hover {
    background: var(--cp-teal-hover) !important;
    border-color: var(--cp-teal-hover) !important;
    color: #fff !important;
}

.cp-btn-outline {
    background: #fff !important;
    border: 1px solid var(--cp-border) !important;
    color: var(--cp-text) !important;
}

.cp-btn-outline:hover {
    border-color: var(--cp-teal) !important;
    color: var(--cp-teal) !important;
    background: #fff !important;
}

.cp-stat-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 991px) {
    .cp-stat-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.cp-stat {
    background: #fff;
    border: 1px solid var(--cp-border);
    border-radius: .75rem;
    padding: 1rem 1.1rem;
}

.cp-stat__label {
    color: var(--cp-muted);
    font-size: .85rem;
}

.cp-stat__value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--cp-text);
    line-height: 1.2;
    margin-top: .2rem;
}

.cp-panel {
    background: #fff;
    border: 1px solid var(--cp-border);
    border-radius: .75rem;
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.cp-panel__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem .35rem;
}

.cp-panel__title {
    font-size: 1.05rem;
    font-weight: 650;
    color: var(--cp-navy);
    margin: 0;
}

.cp-link {
    color: var(--cp-teal) !important;
    font-weight: 600;
    text-decoration: none;
}

.cp-link:hover {
    text-decoration: underline;
}

.cp-table {
    width: 100%;
    margin: 0;
}

.cp-table thead th {
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--cp-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--cp-border) !important;
    background: transparent;
    padding: .75rem 1.15rem;
    white-space: nowrap;
}

.cp-table tbody td {
    padding: 1rem 1.15rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--cp-border);
    color: var(--cp-text);
}

.cp-table tbody tr:last-child td {
    border-bottom: 0;
}

.cp-course-name {
    font-weight: 650;
    color: var(--cp-navy);
}

.cp-course-meta {
    color: var(--cp-muted);
    font-size: .85rem;
    margin-top: .15rem;
}

.cp-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .2rem .65rem;
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
}

.cp-pill--ok {
    background: #dcfce7;
    color: var(--cp-ok);
}

.cp-pill--warn {
    background: #ffedd5;
    color: var(--cp-warn);
}

.cp-pill--muted {
    background: #f1f5f9;
    color: var(--cp-muted);
}

.cp-toolbar {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    padding: 0 0 1rem;
}

.cp-toolbar .form-control,
.cp-toolbar .form-select {
    border-radius: .55rem;
    border-color: var(--cp-border);
    min-height: 2.5rem;
}

.cp-note {
    border-radius: .65rem;
    padding: .85rem 1rem;
    margin-bottom: 1rem;
    font-size: .92rem;
}

.cp-note--info {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.cp-note--warn {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.cp-venue-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--cp-border);
}

.cp-venue-row:last-child {
    border-bottom: 0;
}

.cp-venue-main {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.cp-pin {
    color: #dc2626;
    font-size: 1.1rem;
}

.cp-attention {
    padding: .25rem 1.15rem 1.15rem;
}

.cp-attention li {
    margin-bottom: .45rem;
    color: var(--cp-text);
}

.cp-empty {
    padding: 2rem 1.15rem;
    text-align: center;
    color: var(--cp-muted);
}

.cp-modal .modal-header {
    border-bottom: 1px solid var(--cp-border);
}

.cp-modal .modal-title {
    font-weight: 650;
    color: var(--cp-navy);
}

.modal.cp-modal {
    z-index: 2000 !important;
}

.modal-backdrop {
    z-index: 1990 !important;
}

.modal.cp-modal .modal-dialog {
    z-index: 2001;
}

.modal.cp-modal .modal-content {
    background: #fff;
    border-radius: .75rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, .18);
}

/* Course create / edit */
.cp-alert-banner {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    border-radius: .65rem;
    padding: .75rem 1rem;
    font-size: .92rem;
}

.cp-tabs {
    gap: .25rem;
    border-bottom: 1px solid var(--cp-border);
    margin-bottom: 1.1rem;
    flex-wrap: wrap;
}

.cp-tabs .nav-link {
    border: 0 !important;
    background: transparent !important;
    color: var(--cp-muted) !important;
    font-weight: 600;
    padding: .7rem 1rem !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
}

.cp-tabs .nav-link:hover {
    color: var(--cp-navy) !important;
}

.cp-tabs .nav-link.active {
    color: var(--cp-teal) !important;
    border-bottom-color: var(--cp-teal) !important;
}

.cp-form-card {
    background: #fff;
    border: 1px solid var(--cp-border);
    border-radius: .85rem;
    padding: 1.15rem 1.25rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    overflow: visible;
}

.cp-tab-content,
.cp-tab-content > .tab-pane {
    overflow: visible;
}

/*
 * Course / form selects: keep custom closed look, but leave enough room for the
 * chevron and avoid Windows/Chrome popup clipping from tight padding overrides.
 */
.cp-form-card .form-control,
.cp-form-card .form-select {
    border-radius: .55rem;
    border-color: var(--cp-border);
    min-height: 2.55rem;
}

.cp-form-card .form-control {
    padding: .55rem .75rem;
}

.cp-form-card .form-select {
    padding: .55rem 2.5rem .55rem .75rem;
    background-position: right .85rem center;
    background-size: 16px 12px;
    background-repeat: no-repeat;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.cp-form-card .form-select:focus {
    z-index: 5;
}

.cp-form-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--cp-navy);
    margin: 0 0 .9rem;
}

.cp-form-card__hint {
    color: var(--cp-muted);
    margin: -.35rem 0 1rem;
    font-size: .92rem;
}

.cp-form-card .form-label {
    font-weight: 600;
    color: var(--cp-text);
    font-size: .88rem;
    margin-bottom: .35rem;
}

.cp-form-card textarea.form-control {
    min-height: auto;
    padding: .55rem .75rem;
}

.cp-readonly {
    min-height: 2.55rem;
    display: flex;
    align-items: center;
    padding: .55rem .75rem;
    border-radius: .55rem;
    background: #f8fafc;
    border: 1px solid var(--cp-border);
    color: var(--cp-muted);
    font-size: .92rem;
}

.cp-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin: 1rem 0 2rem;
}

.cp-qr-image {
    border: 1px solid var(--cp-border);
    border-radius: .65rem;
    padding: .5rem;
    background: #fff;
}

.cp-tab-content {
    min-height: 12rem;
}