body.pqmsacademy-page .main-inner,
body.pqmsacademy-page #region-main,
body.pqmsacademy-page div[role="main"] {
    width: 100% !important;
    max-width: 1320px !important;
}

body.pqmsacademy-page .main-inner {
    margin-left: auto !important;
    margin-right: auto !important;
}

body.pqmsacademy-page #page-content,
body.pqmsacademy-page #region-main-box,
body.pqmsacademy-page .course-content {
    width: 100% !important;
    max-width: none !important;
}

body.pqmsacademy-page .pqms-course-catalog,
body.pqmsacademy-page .pqms-account-page,
body.pqmsacademy-page .pqms-course-detail,
body.pqmsacademy-page .pqms-registration-page.pqms-registration-wizard {
    width: 100% !important;
    max-width: 1320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.pqms-registration-wizard .pqms-summary-line--courses {
    align-items: flex-start;
}

.pqms-registration-wizard .pqms-selected-courses-block {
    min-width: 0;
}

.pqms-registration-wizard .pqms-selected-course-list {
    display: none;
    margin: 0.45rem 0 0 1.1rem;
    padding: 0;
    color: #ffffff;
}

.pqms-registration-wizard .pqms-selected-course-list:not(:empty) {
    display: block;
}

.pqms-registration-wizard .pqms-selected-course-list li {
    margin: 0.25rem 0;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
}

.pqms-account-page {
    max-width: 1320px;
    margin: 0 auto;
}

.pqms-account-actions,
.pqms-account-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pqms-secondary-button {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    color: #003a78 !important;
    background: #ffffff;
    border: 1px solid rgba(0, 58, 120, 0.22);
    border-radius: 6px;
    font-weight: 800;
    text-decoration: none !important;
}

.pqms-secondary-button:hover,
.pqms-secondary-button:focus {
    color: #1f7a3a !important;
    border-color: rgba(31, 122, 58, 0.42);
}

.pqms-account-quick-links {
    margin: 1.25rem 0;
}

.pqms-account-quick-links a {
    flex: 1 1 220px;
    padding: 1rem;
    color: #1f2933;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(0, 58, 120, 0.12);
    border-left: 6px solid #4f9f38;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(0, 58, 120, 0.07);
    text-decoration: none !important;
}

.pqms-account-quick-links span {
    display: block;
    color: #4f9f38;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pqms-account-quick-links strong {
    display: block;
    margin-top: 0.2rem;
    color: #003a78;
    font-size: 1.05rem;
}

.pqms-account-course-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.pqms-account-course-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    background: #ffffff;
    border: 1px solid rgba(0, 58, 120, 0.12);
    border-radius: 8px;
}

.pqms-account-course-card h3 {
    margin: 0 0 0.5rem;
    color: #003a78;
    font-size: 1.2rem;
    font-weight: 800;
}

.pqms-account-course-card p {
    margin: 0;
    color: #374151;
}

.pqms-account-course-card ul {
    margin: 0;
    padding-left: 1.2rem;
}

.pqms-account-course-card li {
    margin-bottom: 0.4rem;
}

.pqms-account-course-card li a,
.pqms-account-detail-link {
    color: #003a78;
    font-weight: 800;
    text-decoration: none;
}

.pqms-account-course-card li a:hover,
.pqms-account-detail-link:hover {
    color: #1f7a3a;
    text-decoration: underline;
}

.pqms-account-course-card li span {
    color: #6b7280;
    font-weight: 700;
}

.pqms-account-detail-link {
    margin-top: auto;
}

.pqms-account-empty {
    padding: 1.25rem;
    background: #f4f8f5;
    border-left: 4px solid #4f9f38;
    border-radius: 8px;
}

.pqms-account-empty h3 {
    margin: 0 0 0.5rem;
    color: #003a78;
    font-weight: 800;
}

.pqms-account-empty p {
    margin: 0 0 1rem;
    color: #374151;
}

@media (max-width: 767.98px) {
    .pqms-account-course-grid {
        grid-template-columns: 1fr;
    }
}

/* PQMS logged-in account dashboard */
.pqms-account-dashboard {
    color: #1f2933;
}

.pqms-account-dashboard .pqms-account-topbar {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: center;
    padding: 2rem 2.25rem;
    color: #ffffff;
    background: linear-gradient(135deg, #002f63, #003a78);
    border-radius: 8px;
}

.pqms-account-dashboard .pqms-account-logo {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.pqms-account-dashboard .pqms-account-logo span {
    display: block;
    margin-top: 0.35rem;
    color: #65c832;
    font-size: 1rem;
    letter-spacing: 0.28em;
}

.pqms-account-dashboard .pqms-account-brand p,
.pqms-account-dashboard .pqms-account-welcome p {
    margin: 0.5rem 0 0;
    color: rgba(255, 255, 255, 0.9);
}

.pqms-account-dashboard .pqms-account-welcome h1,
.pqms-account-dashboard .pqms-account-welcome h2 {
    margin: 0;
    color: #ffffff;
    font-weight: 900;
}

.pqms-account-dashboard .pqms-account-welcome h1 {
    font-size: 2.25rem;
}

.pqms-account-dashboard .pqms-account-welcome h2 {
    margin-top: 0.8rem;
    font-size: 1.35rem;
}

.pqms-account-dashboard .pqms-account-topbar-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.pqms-account-dashboard .pqms-account-catalog-link {
    color: #ffffff !important;
    font-weight: 800;
    text-decoration: underline;
}

.pqms-account-dashboard .pqms-account-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) 320px;
    gap: 1.5rem;
    padding: 1.5rem 0;
}

.pqms-account-dashboard .pqms-account-sidebar,
.pqms-account-dashboard .pqms-account-course-card,
.pqms-account-dashboard .pqms-account-rightbar section {
    background: #ffffff;
    border: 1px solid rgba(0, 58, 120, 0.14);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0, 58, 120, 0.07);
}

.pqms-account-dashboard .pqms-account-sidebar {
    padding: 1.5rem;
    text-align: center;
}

.pqms-account-dashboard .pqms-account-avatar {
    width: 128px;
    height: 128px;
    object-fit: cover;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.pqms-account-dashboard .pqms-account-sidebar h2 {
    margin: 0;
    color: #003a78;
    font-size: 1.3rem;
    font-weight: 900;
}

.pqms-account-dashboard .pqms-account-email {
    color: #4b5563;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.pqms-account-dashboard .pqms-account-nav {
    display: grid;
    gap: 0.4rem;
    margin-top: 1.25rem;
    text-align: left;
}

.pqms-account-dashboard .pqms-account-nav a,
.pqms-account-dashboard .pqms-account-rightbar a {
    display: block;
    padding: 0.8rem 0.9rem;
    color: #003a78 !important;
    border-radius: 6px;
    font-weight: 800;
    text-decoration: none !important;
}

.pqms-account-dashboard .pqms-account-nav a:hover,
.pqms-account-dashboard .pqms-account-nav a:focus,
.pqms-account-dashboard .pqms-account-rightbar a:hover,
.pqms-account-dashboard .pqms-account-rightbar a:focus {
    background: #eef5ff;
    color: #1f7a3a !important;
}

.pqms-account-dashboard .pqms-account-section-title h2 {
    margin: 0 0 1rem;
    color: #003a78;
    font-size: 1.45rem;
    font-weight: 900;
}

.pqms-account-dashboard .pqms-account-course-list {
    display: grid;
    gap: 1rem;
}

.pqms-account-dashboard .pqms-account-course-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 210px;
    gap: 1.25rem;
    align-items: center;
    padding: 1.25rem;
}

.pqms-account-dashboard .pqms-account-course-icon {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    color: #ffffff;
    background: #003a78;
    border-radius: 8px;
    font-size: 2rem;
    font-weight: 900;
}

.pqms-account-dashboard .pqms-account-course-content h3 {
    margin: 0 0 0.35rem;
    color: #003a78;
    font-size: 1.25rem;
    font-weight: 900;
}

.pqms-account-dashboard .pqms-account-course-content p {
    margin: 0.6rem 0;
    color: #4b5563;
}

.pqms-account-dashboard .pqms-status-pill {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    color: #1f7a3a;
    background: #e8f7e8;
    border: 1px solid rgba(31, 122, 58, 0.25);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 900;
}

.pqms-account-dashboard .pqms-progress-row {
    display: grid;
    grid-template-columns: auto minmax(120px, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.8rem;
}

.pqms-account-dashboard .pqms-progress-row span,
.pqms-account-dashboard .pqms-progress-row strong {
    color: #1f2933;
    font-size: 0.9rem;
}

.pqms-account-dashboard .pqms-progress-bar {
    height: 8px;
    overflow: hidden;
    background: #dbe3ea;
    border-radius: 999px;
}

.pqms-account-dashboard .pqms-progress-bar span {
    display: block;
    height: 100%;
    background: #24a832;
}

.pqms-account-dashboard .pqms-account-course-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.pqms-account-dashboard .pqms-account-session {
    padding-left: 1.25rem;
    border-left: 1px solid rgba(0, 58, 120, 0.16);
}

.pqms-account-dashboard .pqms-account-session span,
.pqms-account-dashboard .pqms-account-session small {
    display: block;
    color: #4b5563;
}

.pqms-account-dashboard .pqms-account-session strong {
    display: block;
    margin: 0.35rem 0;
    color: #003a78;
    font-weight: 900;
}

.pqms-account-dashboard .pqms-account-rightbar {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.pqms-account-dashboard .pqms-account-rightbar section {
    padding: 1.25rem;
}

.pqms-account-dashboard .pqms-account-rightbar h2 {
    margin: 0 0 0.85rem;
    color: #003a78;
    font-size: 1.15rem;
    font-weight: 900;
}

.pqms-account-dashboard .pqms-account-rightbar p {
    color: #4b5563;
}

.pqms-account-dashboard .pqms-account-rightbar a span {
    display: block;
    margin-top: 0.2rem;
    color: #4b5563;
    font-size: 0.88rem;
    font-weight: 500;
}

@media (max-width: 1100px) {
    .pqms-account-dashboard .pqms-account-topbar,
    .pqms-account-dashboard .pqms-account-shell {
        grid-template-columns: 1fr;
    }

    .pqms-account-dashboard .pqms-account-course-card {
        grid-template-columns: 1fr;
    }

    .pqms-account-dashboard .pqms-account-session {
        padding-left: 0;
        padding-top: 1rem;
        border-left: 0;
        border-top: 1px solid rgba(0, 58, 120, 0.16);
    }
}

/* Registration and add-training course card spacing */


.pqms-registration-wizard .pqms-course-group+.pqms-course-group {
	padding-top: 0.75rem;
	border-top: 1px solid rgba(0, 58, 120, 0.1);
}

.pqms-registration-wizard .pqms-course-group-heading {
	margin-bottom: 1.15rem;
}
