@import url("tokens.css");
@import url("page-loader.css");
@import url("motion.css");
@import url("mega-menu.css");
@import url("lqip.css");
@import url("chatbot.css");

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-accent);
}

ul {
    list-style: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Layout */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

main {
    flex: 1;
}

.section {
    padding: var(--space-2xl) 0;
}

.section-alt {
    background: var(--color-surface);
}

.section-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
}

.section-intro {
    color: var(--color-text-muted);
    max-width: 720px;
    margin-bottom: var(--space-xl);
}

/* Header */
#site-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
    min-height: var(--header-height);
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: var(--space-md);
}

.logo-img {
    display: block;
    height: 44px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.logo-img--footer {
    height: 48px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    margin-left: auto;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    transition: transform var(--transition), opacity var(--transition);
}

.primary-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 0 var(--space-lg);
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm) var(--space-xl);
}

.nav-list > li {
    display: flex;
    align-items: center;
}

.nav-list a {
    display: inline-flex;
    align-items: center;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    padding: var(--space-sm) var(--space-xs);
    line-height: 1.4;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex-shrink: 0;
    margin-left: var(--space-md);
}

.header-auth-link {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    white-space: nowrap;
}

.header-user-menu {
    position: relative;
}

.header-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 2px solid var(--color-border);
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.02em;
    cursor: pointer;
    transition:
        border-color var(--duration-fast) var(--ease-out),
        transform var(--duration-fast) var(--ease-out),
        box-shadow var(--duration-fast) var(--ease-out);
}

.header-user-menu.is-open .header-user-avatar,
.header-user-avatar:hover {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.15);
}

.header-user-avatar:active {
    transform: scale(0.96);
}

.header-user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 120;
    min-width: 14.5rem;
    padding: var(--space-sm);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.header-user-dropdown[hidden] {
    display: none !important;
}

.header-user-dropdown-header {
    padding: 0.35rem 0.65rem 0.55rem;
}

.header-user-dropdown-name {
    margin: 0;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    line-height: 1.35;
}

.header-user-dropdown-email {
    margin: 0.15rem 0 0;
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    line-height: 1.35;
    word-break: break-word;
}

.header-user-dropdown-divider {
    height: 1px;
    margin: var(--space-xs) 0;
    background: var(--color-border);
}

.header-user-dropdown-section {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.header-user-dropdown-label {
    margin: 0;
    padding: 0.2rem 0.65rem 0.15rem;
    font-size: 0.6875rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.header-user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: none;
    border-radius: var(--radius-sm);
    background: none;
    font: inherit;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition:
        background var(--duration-fast) var(--ease-out),
        color var(--duration-fast) var(--ease-out);
}

.header-user-dropdown-icon {
    flex-shrink: 0;
    color: var(--color-text-muted);
    transition: color var(--duration-fast) var(--ease-out);
}

.header-user-dropdown-item::after {
    display: none;
}

.header-user-dropdown-logout {
    color: var(--color-error);
}

.header-user-dropdown-logout .header-user-dropdown-icon {
    color: var(--color-error);
}

@media (hover: hover) and (pointer: fine) {
    .header-user-dropdown-item:hover {
        background: rgba(232, 93, 4, 0.08);
        color: var(--color-accent);
    }

    .header-user-dropdown-item:hover .header-user-dropdown-icon {
        color: var(--color-accent);
    }

    .header-user-dropdown-logout:hover {
        background: rgba(220, 53, 69, 0.08);
        color: var(--color-error);
    }

    .header-user-dropdown-logout:hover .header-user-dropdown-icon {
        color: var(--color-error);
    }
}

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--color-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
}

.cart-badge {
    position: absolute;
    top: -0.45rem;
    right: -0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.125rem;
    height: 1.125rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 0.625rem;
    font-weight: var(--font-weight-bold);
    line-height: 1;
}

.cart-badge[hidden] {
    display: none !important;
}

/* Footer */
.site-footer {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.85);
    padding: var(--space-2xl) 0 var(--space-lg);
    margin-top: auto;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.85);
}

.site-footer a:hover {
    color: var(--color-white);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-logo {
    display: inline-block;
    margin-bottom: var(--space-sm);
}

.footer-tagline {
    margin-top: var(--space-sm);
    font-size: var(--font-size-sm);
}

.demo-note {
    margin-top: var(--space-md);
    font-size: var(--font-size-xs);
    opacity: 0.7;
    font-style: italic;
}

.footer-heading {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.footer-links li {
    margin-bottom: var(--space-xs);
}

.footer-links a {
    font-size: var(--font-size-sm);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.newsletter-form input[type="email"] {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: var(--font-size-xs);
    cursor: pointer;
}

.social-links {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: transform var(--duration-fast) var(--ease-out), opacity var(--duration-fast) var(--ease-out);
}

.social-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

@media (hover: hover) and (pointer: fine) {
    .social-link:hover {
        transform: translateY(-2px);
        opacity: 0.9;
    }
}

.payment-badges {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    align-items: center;
}

.payment-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xs);
    background: var(--color-white);
    border-radius: var(--radius-sm);
}

.payment-badge img {
    display: block;
    width: auto;
    height: 28px;
    object-fit: contain;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    font-size: var(--font-size-sm);
}

.legal-links {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.625rem 1.25rem;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-base);
    cursor: pointer;
    transition:
        background var(--duration-fast) var(--ease-out),
        color var(--duration-fast) var(--ease-out),
        border-color var(--duration-fast) var(--ease-out),
        transform var(--duration-fast) var(--ease-out),
        box-shadow var(--duration-fast) var(--ease-out);
    text-decoration: none;
    line-height: 1.4;
}

.btn:active:not(:disabled) {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: var(--color-white);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-outline-light {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-outline-light:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

.btn-sm {
    padding: 0.4rem 0.875rem;
    font-size: var(--font-size-sm);
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Forms */
.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-xs);
    color: var(--color-text);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.625rem var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.1);
    transition:
        border-color var(--duration-fast) var(--ease-out),
        box-shadow var(--duration-fast) var(--ease-out);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: var(--color-error);
}

.form-error {
    font-size: var(--font-size-xs);
    color: var(--color-error);
    margin-top: var(--space-xs);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.radio-label,
.checkbox-label-inline {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: var(--font-size-sm);
}

/* Cards */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition:
        box-shadow var(--duration-ui) var(--ease-out),
        transform var(--duration-ui) var(--ease-out),
        border-color var(--duration-ui) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .card:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-3px);
        border-color: rgba(10, 37, 64, 0.12);
    }

    .course-card:hover .course-card-image img {
        transform: scale(1.03);
    }
}

.card-body {
    padding: var(--space-lg);
}

.card-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.card-text {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

/* Course card */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.course-card {
    display: flex;
    flex-direction: column;
}

.course-card-image {
    height: 180px;
    position: relative;
    overflow: hidden;
    background: var(--color-primary-light);
}

.course-card-image img,
.insight-card-image img,
.product-hero-media img,
.event-card-image img,
.division-card-image img,
.article-hero-image img,
.learnership-intro-image img,
.split-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.course-card-image img {
    transition: transform 400ms var(--ease-out);
}

.vendor-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-sm);
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.2);
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
}

.course-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-meta {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--space-sm);
}

.badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    color: var(--color-text-muted);
}

.badge-accent {
    background: rgba(232, 93, 4, 0.1);
    color: var(--color-accent);
}

.course-price {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-top: auto;
    padding-top: var(--space-md);
}

.price-sale {
    color: var(--color-sale);
}

.price-original {
    text-decoration: line-through;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-normal);
    margin-right: var(--space-sm);
}

/* Vendor directory */
.vendor-directory-section {
    padding-top: var(--space-2xl);
}

.vendor-directory-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.vendor-directory-intro {
    margin-bottom: 0;
    max-width: 640px;
}

.vendor-directory-count {
    flex-shrink: 0;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-muted);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 999px;
}

.vendor-directory-disclaimer {
    margin-top: var(--space-2xl);
    margin-bottom: 0;
}

.catalog-search {
    position: relative;
    margin-bottom: var(--space-2xl);
    max-width: 640px;
}

.catalog-search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.catalog-search-field {
    position: relative;
}

.catalog-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    pointer-events: none;
}

.catalog-search-input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    font: inherit;
    font-size: var(--font-size-base);
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.catalog-search-input:hover {
    border-color: #c5ced8;
}

.catalog-search-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.15);
}

.catalog-search-dropdown {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    right: 0;
    z-index: 40;
    max-height: 22rem;
    overflow-y: auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.catalog-search-dropdown[hidden] {
    display: none !important;
}

.catalog-search-empty {
    margin: 0;
    padding: var(--space-lg);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    text-align: center;
}

.catalog-search-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 0.65rem 0.75rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition);
}

.catalog-search-item:last-child {
    border-bottom: 0;
}

.catalog-search-item:hover,
.catalog-search-item.is-active {
    background: var(--color-bg);
}

.catalog-search-thumb {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-search-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.catalog-search-thumb--logo img {
    object-fit: contain;
    padding: 0.35rem;
}

.catalog-search-thumb-initials {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
}

.catalog-search-item-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.catalog-search-item-title {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-primary);
    line-height: 1.35;
}

.catalog-search-item-meta {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vendor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.vendor-card {
    --vendor-accent: var(--color-primary);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.vendor-card-media {
    position: relative;
    min-height: 148px;
    padding: var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    border-bottom: 1px solid color-mix(in srgb, var(--vendor-accent) 12%, var(--color-border));
}

.vendor-card-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 84px;
}

.vendor-card-logo-img {
    width: auto;
    max-width: min(220px, 88%);
    max-height: 84px;
    height: auto;
    object-fit: contain;
    transition: transform var(--duration-ui) var(--ease-out);
}

.vendor-card-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: var(--radius-lg);
    background: var(--vendor-accent);
    color: var(--color-white);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.04em;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--vendor-accent) 28%, transparent);
}

.vendor-card-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    color: var(--vendor-accent);
    background: color-mix(in srgb, var(--vendor-accent) 10%, white);
    border: 1px solid color-mix(in srgb, var(--vendor-accent) 18%, var(--color-border));
}

.vendor-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-xl) var(--space-xl);
}

.vendor-card-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    line-height: 1.3;
}

.vendor-card-desc {
    flex: 1;
    font-size: var(--font-size-sm);
    line-height: 1.55;
    color: var(--color-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vendor-card-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--vendor-accent);
}

.vendor-card-arrow {
    display: inline-block;
    transition: transform var(--duration-ui) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .vendor-card:hover .vendor-card-logo-img {
        transform: scale(1.04);
    }

    .vendor-card:hover .vendor-card-arrow {
        transform: translateX(4px);
    }

    .vendor-card:hover .vendor-card-cta {
        color: color-mix(in srgb, var(--vendor-accent) 82%, black);
    }
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
    min-height: 74vh;
    min-height: 74dvh;
    display: flex;
    align-items: center;
    padding: var(--space-3xl) 0;
    text-align: center;
}

.hero .container {
    width: 100%;
}

.hero--image {
    position: relative;
    color: var(--color-primary);
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center left;
    text-align: left;
}

.hero--image .hero-title,
.hero--image .hero-subtitle {
    margin-left: 0;
    margin-right: auto;
}

.hero--image .hero-title {
    font-size: clamp(1.625rem, 2.8vw, 2.25rem);
    max-width: 26rem;
    line-height: 1.25;
    text-shadow:
        0 0 20px rgba(255, 255, 255, 0.95),
        0 1px 2px rgba(255, 255, 255, 0.85);
}

.hero--image .hero-subtitle {
    max-width: 24rem;
    color: var(--color-text-muted);
    opacity: 1;
    text-shadow:
        0 0 16px rgba(255, 255, 255, 0.9),
        0 1px 1px rgba(255, 255, 255, 0.75);
}

.hero--image .hero-actions {
    justify-content: flex-start;
}

/* Hero + Solutions overlap */
.hero-solutions {
    --solutions-overlap: clamp(9rem, 18vw, 14rem);
    position: relative;
}

.hero--has-solutions {
    padding-bottom: calc(var(--space-3xl) + var(--solutions-overlap));
}

.solutions-overlap-section {
    position: relative;
    z-index: 2;
    margin-top: calc(-1 * var(--solutions-overlap));
    padding-top: 0;
    padding-bottom: var(--space-2xl);
}

.solutions-overlap-section .section-title,
.solutions-overlap-section .section-intro {
    position: relative;
}

.solutions-cards .value-card {
    box-shadow: var(--shadow-md);
    background: var(--color-white);
    transition:
        transform var(--duration-fast) var(--ease-out),
        box-shadow var(--duration-fast) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .solutions-cards .value-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-lg);
    line-height: 1.15;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    opacity: 0.92;
    max-width: 720px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-actions .btn {
    padding: 0.875rem 2rem;
    font-size: var(--font-size-lg);
}

/* Value cards */
.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.value-card {
    text-align: center;
    padding: 0;
    overflow: hidden;
}

.value-card-image {
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    background: var(--color-white);
}

.value-card-image img {
    width: auto;
    height: auto;
    max-width: 88px;
    max-height: 88px;
    object-fit: contain;
    display: block;
}

.value-card .card-title,
.value-card .card-text {
    padding: 0 var(--space-lg);
}

.value-card .card-title {
    margin-top: var(--space-lg);
}

.value-card .card-text {
    padding-bottom: var(--space-xl);
}

.value-icon {
    width: 56px;
    height: 56px;
    background: rgba(232, 93, 4, 0.1);
    color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    margin: 0 auto var(--space-md);
}

/* Carousel */
.carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.carousel-section-title {
    margin-bottom: 0;
}

.carousel-controls {
    display: flex;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-primary);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition:
        background var(--duration-fast) var(--ease-out),
        border-color var(--duration-fast) var(--ease-out),
        color var(--duration-fast) var(--ease-out),
        transform var(--duration-fast) var(--ease-out);
}

.carousel-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.carousel-btn:disabled:hover {
    background: var(--color-white);
    border-color: var(--color-border);
    color: var(--color-primary);
}

.carousel-wrap {
    position: relative;
}

.carousel {
    display: flex;
    gap: var(--space-lg);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--space-md);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel .course-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
}

/* Home spotlight blocks */
.home-spotlight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.home-spotlight-grid--reverse .home-spotlight-media {
    order: 2;
}

.home-spotlight-grid--reverse .home-spotlight-content {
    order: 1;
}

.home-spotlight-media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
}

.home-spotlight-eyebrow {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.home-spotlight-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    line-height: 1.25;
    margin-bottom: var(--space-md);
}

.home-spotlight-tagline {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.home-spotlight-text {
    color: var(--color-text-muted);
    line-height: 1.65;
    margin-bottom: var(--space-xl);
    max-width: 520px;
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.testimonial-card {
    padding: var(--space-xl);
    text-align: center;
}

.testimonial-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--space-md);
    border: 3px solid var(--color-accent);
}

.testimonial-quote {
    font-style: italic;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    font-size: var(--font-size-sm);
}

.testimonial-author {
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

.testimonial-role {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

/* CTA banner */
.cta-banner {
    position: relative;
    color: var(--color-white);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    text-align: center;
    overflow: hidden;
    background: var(--color-primary);
}

.cta-banner--image {
    background-image: linear-gradient(135deg, rgba(10, 37, 64, 0.92), rgba(10, 37, 64, 0.8)), var(--cta-image);
    background-size: cover;
    background-position: center;
}

.cta-banner h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-md);
}

.cta-banner p {
    opacity: 0.9;
    margin-bottom: var(--space-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Video thumbnail */
.video-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-primary);
}

.video-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-3xl);
    color: var(--color-white);
    background: rgba(10, 37, 64, 0.35);
    pointer-events: none;
}

/* Catalog layout */
.catalog-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, #0d3154 55%, #123a5c 100%);
    color: var(--color-white);
    padding: calc(var(--header-height) + var(--space-xl)) 0 var(--space-2xl);
}

.catalog-hero--image {
    background-image: linear-gradient(135deg, rgba(10, 37, 64, 0.92), rgba(18, 58, 92, 0.88)), var(--header-image);
    background-size: cover;
    background-position: center;
}

.catalog-hero-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.catalog-breadcrumb {
    font-size: var(--font-size-sm);
}

.catalog-hero-grid {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.catalog-hero-copy {
    max-width: 640px;
}

.catalog-eyebrow {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.catalog-hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.08;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.catalog-hero-desc {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
    max-width: 520px;
}

.catalog-hero-aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-md);
    flex-shrink: 0;
}

.catalog-hero-count {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: rgba(255, 255, 255, 0.85);
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.catalog-hero-aside .btn-secondary {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.35);
}

.catalog-hero-aside .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.55);
}

.catalog-section {
    padding-top: var(--space-2xl);
}

.catalog-search--wide {
    max-width: none;
    margin-bottom: var(--space-xl);
}

.catalog-toolbar--top {
    margin-bottom: var(--space-lg);
    align-items: center;
}

.catalog-disclaimer {
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
}

.catalog-filter-toggle {
    display: none;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.6rem 1rem;
    font: inherit;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-primary);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        transform 160ms var(--ease-out);
    flex-shrink: 0;
}

.catalog-filter-toggle:active {
    transform: scale(0.97);
}

.catalog-filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
    background: var(--color-accent);
    border-radius: 999px;
}

.catalog-filters-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(10, 37, 64, 0.45);
    backdrop-filter: blur(2px);
}

.catalog-filters-backdrop[hidden] {
    display: none !important;
}

.catalog-filters-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border);
}

.catalog-filters-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

.catalog-filters-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    color: var(--color-text-muted);
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition:
        color var(--transition),
        border-color var(--transition),
        transform 160ms var(--ease-out);
}

.catalog-filters-close:active {
    transform: scale(0.97);
}

.catalog-filters-clear {
    width: 100%;
    margin-top: var(--space-md);
}

.catalog-main {
    min-width: 0;
}

.catalog-toolbar-start {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    min-width: 0;
}

.catalog-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.catalog-active-filters[hidden] {
    display: none !important;
}

.catalog-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.5rem 0.25rem 0.65rem;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    color: var(--color-primary);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 999px;
}

.catalog-filter-chip button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;
    padding: 0;
    font: inherit;
    font-size: 0.875rem;
    line-height: 1;
    color: var(--color-text-muted);
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: color var(--transition);
}

.catalog-filter-chip button:hover {
    color: var(--color-accent);
}

.filter-options--pills {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.filter-options--scroll {
    max-height: 11rem;
    overflow-y: auto;
    padding-right: var(--space-xs);
    scrollbar-width: thin;
}

.filter-pill {
    position: relative;
    cursor: pointer;
}

.filter-pill input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.filter-pill span {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    font-size: var(--font-size-sm);
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    transition:
        background var(--transition),
        border-color var(--transition),
        color var(--transition),
        transform 160ms var(--ease-out);
}

.filter-pill input:checked + span {
    color: var(--color-white);
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.filter-pill input:focus-visible + span {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
    .filter-pill:hover span {
        border-color: #c5ced8;
    }

    .filter-pill input:checked:hover + span {
        border-color: var(--color-primary);
    }
}

.filter-options--scroll .filter-pill {
    display: block;
    width: 100%;
}

.filter-options--scroll .filter-pill span {
    display: block;
    border-radius: var(--radius-sm);
}

.catalog-empty {
    background: var(--color-surface);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-lg);
}

.catalog-empty-icon {
    margin: 0 auto var(--space-md);
    color: var(--color-text-muted);
    opacity: 0.5;
}

.course-grid--catalog {
    gap: var(--space-xl);
}

.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.filter-sidebar {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    position: sticky;
    top: calc(var(--header-height) + var(--space-md));
}

.filter-group {
    margin-bottom: var(--space-lg);
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-heading {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.filter-options label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    cursor: pointer;
}

.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.catalog-count {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.load-more-wrap {
    text-align: center;
    margin-top: var(--space-xl);
}

.load-more-wrap[hidden] {
    display: none !important;
}

.sort-control {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
}

.sort-control select {
    padding: var(--space-xs) var(--space-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.empty-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
    color: var(--color-text-muted);
}

.empty-state h3 {
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

/* Product page */
.breadcrumb {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    padding-top: var(--space-lg);
}

.breadcrumb a {
    color: var(--color-text-muted);
}

.breadcrumb a:hover {
    color: var(--color-accent);
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--space-2xl);
    align-items: start;
}

/* Product page */
.product-page-section {
    padding-top: var(--space-lg);
}

.product-breadcrumb {
    padding-top: 0;
    margin-bottom: var(--space-xl);
}

.product-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-2xl);
    align-items: center;
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--color-border);
}

.product-vendor-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.35rem 0.85rem 0.35rem 0.35rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--vendor-color) 12%, white);
    color: var(--color-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-md);
    transition: transform var(--duration-fast) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .product-vendor-pill:hover {
        transform: translateY(-1px);
    }
}

.product-vendor-pill-mark {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--vendor-color);
    color: var(--color-white);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
}

.product-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: var(--space-sm);
    max-width: 28rem;
}

.product-sku {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.product-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.product-meta-chip {
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.product-meta-chip-label {
    display: block;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 0.15rem;
}

.product-meta-chip-value {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-primary);
}

.product-lead {
    color: var(--color-text-muted);
    line-height: 1.65;
    max-width: 52ch;
}

.product-hero-media {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--color-primary-light);
    min-height: 280px;
}

.product-hero-media img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
}

.product-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: var(--space-2xl);
    align-items: start;
}

.product-main {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    min-width: 0;
}

.product-details-card {
    padding: 0;
    overflow: hidden;
}

.product-tabs .tab-list {
    padding: 0 var(--space-lg);
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.product-tabs .tab-panel {
    padding: var(--space-xl);
}

.product-detail-block + .product-detail-block {
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.product-detail-heading {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.product-objectives {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.product-objectives li {
    position: relative;
    padding-left: var(--space-lg);
    color: var(--color-text-muted);
    line-height: 1.6;
}

.product-objectives li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-accent);
}

.product-note {
    margin-top: var(--space-md);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.course-sessions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.course-session-card {
    padding: var(--space-lg);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.course-session-title {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.course-session-topics {
    list-style: disc;
    padding-left: 1.25rem;
    color: var(--color-text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.product-vendor-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-lg);
    padding: var(--space-xl);
    align-items: start;
}

.product-vendor-card-logo {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
    flex-shrink: 0;
}

.product-vendor-card-eyebrow {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-xs);
}

.product-vendor-card-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.product-vendor-card-text {
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.product-vendor-card-link {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    color: var(--color-accent);
}

.product-vendor-card-link:hover {
    color: var(--color-accent-hover);
}

.product-purchase-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
}

.product-purchase-header {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.product-purchase-eyebrow {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

.product-purchase-price {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    line-height: 1.1;
}

.product-purchase-price-note {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

.product-radio-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.product-radio-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition:
        border-color var(--duration-fast) var(--ease-out),
        background var(--duration-fast) var(--ease-out);
}

.product-radio-label:has(input:checked) {
    border-color: var(--color-accent);
    background: color-mix(in srgb, var(--color-accent) 8%, white);
}

.product-radio-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
}

.product-radio-title {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-primary);
}

.product-radio-price {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    color: var(--color-accent);
}

.product-add-btn {
    width: 100%;
    margin-top: var(--space-md);
    padding: 0.9rem 1.5rem;
}

.product-purchase-footnote {
    margin-top: var(--space-md);
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    line-height: 1.5;
    text-align: center;
}

.product-related {
    margin-top: var(--space-3xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--color-border);
}

.product-related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.product-related-header .section-title {
    margin-bottom: 0;
}

.product-related-link {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    color: var(--color-accent);
    white-space: nowrap;
}

.product-related-link:hover {
    color: var(--color-accent-hover);
}

.product-related-grid .course-card {
    height: 100%;
}

.spec-strip {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--color-bg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.spec-item {
    font-size: var(--font-size-sm);
}

.spec-item strong {
    display: block;
    color: var(--color-text-muted);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-xs);
    text-transform: uppercase;
}

.purchase-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    position: sticky;
    top: calc(var(--header-height) + var(--space-md));
}

.total-price {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin: var(--space-md) 0;
}

.qty-stepper {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.qty-stepper button {
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: var(--font-size-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .qty-stepper button:hover {
        background: var(--color-bg);
    }
}

.qty-stepper button:active {
    transform: scale(0.92);
}

.qty-stepper input {
    width: 60px;
    text-align: center;
    padding: var(--space-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

/* Tabs */
.tabs {
    margin-top: var(--space-xl);
}

.tab-list {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--color-border);
    gap: var(--space-xs);
}

.tab-btn {
    padding: var(--space-md) var(--space-lg);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    font-weight: var(--font-weight-medium);
    color: var(--color-text-muted);
    transition: color var(--transition), border-color var(--transition);
}

.tab-btn:hover {
    color: var(--color-primary);
}

.tab-btn.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.tab-panel {
    display: none;
    padding: var(--space-xl) 0;
}

.tab-panel.active {
    display: block;
}

.content-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
}

.content-table th,
.content-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.content-table th {
    background: var(--color-bg);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

.vendor-overview {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
    padding: var(--space-xl);
    background: var(--color-bg);
    border-radius: var(--radius-md);
    margin-top: var(--space-xl);
}

.vendor-overview-logo {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
    flex-shrink: 0;
}

/* Cart */
.cart-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, #0d3154 55%, #123a5c 100%);
    color: var(--color-white);
    padding: calc(var(--header-height) + var(--space-xl)) 0 var(--space-2xl);
}

.cart-hero--image {
    background-image:
        linear-gradient(
            to right,
            rgba(10, 37, 64, 0.94) 0%,
            rgba(10, 37, 64, 0.72) 42%,
            rgba(10, 37, 64, 0.2) 100%
        ),
        var(--header-image);
    background-size: 100% 100%, contain;
    background-position: left, right;
    background-repeat: no-repeat, no-repeat;
}

.cart-hero-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.cart-hero-grid {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.cart-hero-copy {
    max-width: 560px;
}

.cart-eyebrow {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.cart-hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.08;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.cart-hero-desc {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
    max-width: 480px;
}

.cart-hero-count {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: rgba(255, 255, 255, 0.85);
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    flex-shrink: 0;
}

.cart-section {
    padding-top: var(--space-2xl);
}

.cart-empty {
    background: var(--color-surface);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-lg);
}

.cart-empty-icon {
    margin: 0 auto var(--space-md);
    color: var(--color-text-muted);
    opacity: 0.5;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: var(--space-2xl);
    align-items: start;
}

.cart-items-panel {
    min-width: 0;
}

.cart-items-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.cart-items-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

.cart-items-count {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-muted);
    padding: var(--space-xs) var(--space-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 999px;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.cart-item-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: var(--space-lg);
    align-items: center;
    padding: var(--space-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        transform 160ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .cart-item-card:hover {
        border-color: rgba(10, 37, 64, 0.12);
        box-shadow: var(--shadow-sm);
    }
}

.cart-item-title {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    line-height: 1.35;
    margin-bottom: var(--space-sm);
}

.cart-item-title a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

.cart-item-title a:hover {
    color: var(--color-accent);
}

.cart-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs) var(--space-md);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.cart-item-delivery {
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
}

.cart-item-pricing {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    min-width: 9rem;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg);
    border-radius: var(--radius-sm);
}

.cart-item-price-row {
    display: flex;
    justify-content: space-between;
    gap: var(--space-md);
    font-size: var(--font-size-sm);
}

.cart-item-price-label {
    color: var(--color-text-muted);
}

.cart-item-unit,
.cart-item-qty {
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
}

.cart-item-price-row--total {
    margin-top: var(--space-xs);
    padding-top: var(--space-xs);
    border-top: 1px solid var(--color-border);
}

.cart-item-total {
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

.cart-item-remove {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    font: inherit;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-error);
    background: transparent;
    border: 1px solid rgba(220, 53, 69, 0.25);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition:
        background var(--transition),
        border-color var(--transition),
        transform 160ms var(--ease-out);
    flex-shrink: 0;
}

.cart-item-remove:active {
    transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
    .cart-item-remove:hover {
        background: rgba(220, 53, 69, 0.06);
        border-color: rgba(220, 53, 69, 0.45);
    }
}

.cart-summary-panel {
    padding: var(--space-xl);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    position: sticky;
    top: calc(var(--header-height) + var(--space-md));
}

.cart-summary-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
}

.cart-checkout-btn {
    width: 100%;
    margin-top: var(--space-lg);
}

.cart-continue-link {
    display: block;
    margin-top: var(--space-md);
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.cart-continue-link:hover {
    color: var(--color-accent);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.cart-table th,
.cart-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.cart-table th {
    background: var(--color-bg);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

.cart-table .remove-btn {
    background: none;
    border: none;
    color: var(--color-error);
    cursor: pointer;
    font-size: var(--font-size-lg);
    padding: var(--space-xs);
    line-height: 1;
}

.cart-summary {
    margin-top: var(--space-xl);
    padding: var(--space-xl);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    max-width: 400px;
    margin-left: auto;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-sm);
}

.cart-summary-total {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-md);
    margin-top: var(--space-md);
}

.vat-note {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-sm);
}

/* Checkout */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--space-2xl);
    align-items: start;
}

.checkout-form-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
}

.checkout-summary {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    position: sticky;
    top: calc(var(--header-height) + var(--space-md));
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    font-size: var(--font-size-sm);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
}

.mock-payment {
    margin-top: var(--space-lg);
    padding: var(--space-lg);
    background: var(--color-bg);
    border-radius: var(--radius-md);
    opacity: 0.6;
    pointer-events: none;
}

.mock-payment-label {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: var(--space-sm);
}

/* Order confirmation */
.confirmation-box {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-lg);
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    background: rgba(26, 127, 75, 0.1);
    color: var(--color-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-3xl);
    margin: 0 auto var(--space-lg);
}

.order-number {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin: var(--space-md) 0;
}

/* Account */
.demo-banner {
    background: rgba(232, 93, 4, 0.1);
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-lg);
    text-align: center;
}

/* Account page */
.account-page {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-3xl);
}

.account-container {
    max-width: 1080px;
}

.account-eyebrow {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.account-auth {
    display: flex;
    justify-content: center;
}

.account-auth-card {
    width: 100%;
    max-width: 28rem;
    padding: var(--space-2xl);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.account-auth-intro {
    margin-bottom: var(--space-xl);
}

.account-auth-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

.account-auth-text {
    color: var(--color-text-muted);
    line-height: 1.6;
}

.account-tabs .tab-list,
.account-tab-list {
    margin-bottom: var(--space-lg);
}

.account-tab-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xs);
    padding: 0.25rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-bg);
    border-bottom: none;
}

.account-tab-btn {
    margin-bottom: 0;
    border-bottom: none;
    border-radius: 999px;
    padding: 0.625rem 1rem;
    transition:
        color var(--duration-fast) var(--ease-out),
        background var(--duration-fast) var(--ease-out),
        transform var(--duration-fast) var(--ease-out);
}

.account-tab-btn:hover {
    color: var(--color-primary);
}

.account-tab-btn.active {
    color: var(--color-primary);
    background: var(--color-white);
    border-bottom-color: transparent;
    box-shadow: var(--shadow-sm);
}

.account-tab-btn:active {
    transform: scale(0.98);
}

.account-panel {
    max-width: none;
    padding: 0;
}

.account-form .form-group:last-of-type {
    margin-bottom: var(--space-lg);
}

.account-submit-btn {
    width: 100%;
}

.account-dashboard {
    display: grid;
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    gap: var(--space-xl);
    align-items: start;
}

.account-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    position: sticky;
    top: calc(var(--header-height) + var(--space-lg));
}

.account-profile-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: linear-gradient(145deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: var(--radius-lg);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.account-profile-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    border: 2px solid rgba(255, 255, 255, 0.22);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.account-profile-name {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    line-height: 1.25;
}

.account-profile-email {
    margin-top: 0.15rem;
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.78);
    word-break: break-word;
}

.account-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.account-stat {
    padding: var(--space-md);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-align: center;
}

.account-stat-value {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    line-height: 1.1;
}

.account-stat-label {
    display: block;
    margin-top: 0.2rem;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.account-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: var(--space-sm);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.account-nav-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.75rem 0.875rem;
    border: none;
    border-radius: var(--radius-md);
    background: none;
    font: inherit;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    text-align: left;
    cursor: pointer;
    transition:
        background var(--duration-fast) var(--ease-out),
        color var(--duration-fast) var(--ease-out),
        transform var(--duration-fast) var(--ease-out);
}

.account-nav-item:hover,
.account-nav-item.active {
    background: rgba(232, 93, 4, 0.08);
    color: var(--color-accent);
}

.account-nav-item:active {
    transform: scale(0.98);
}

.account-nav-item--logout {
    margin-top: var(--space-xs);
    border-top: 1px solid var(--color-border);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding-top: calc(0.75rem + var(--space-xs));
    color: var(--color-error);
}

.account-nav-item--logout:hover {
    background: rgba(192, 57, 43, 0.08);
    color: var(--color-error);
}

.account-main {
    min-width: 0;
}

.account-panel-header {
    margin-bottom: var(--space-lg);
}

.account-panel-title {
    font-size: clamp(1.5rem, 2.5vw, 1.875rem);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

.account-panel-subtitle {
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 38rem;
}

.account-panel-shell {
    padding: var(--space-xl);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.account-panel[hidden] {
    display: none !important;
}

.account-details-form {
    max-width: 32rem;
}

.account-course-list,
.account-order-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.account-course-card,
.account-order-card {
    display: grid;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition:
        border-color var(--duration-fast) var(--ease-out),
        box-shadow var(--duration-fast) var(--ease-out),
        transform var(--duration-fast) var(--ease-out);
}

.account-course-card {
    grid-template-columns: 96px minmax(0, 1fr) auto;
    align-items: center;
}

@media (hover: hover) and (pointer: fine) {
    .account-course-card:hover,
    .account-order-card:hover {
        border-color: rgba(232, 93, 4, 0.35);
        box-shadow: var(--shadow-sm);
        transform: translateY(-1px);
    }
}

.account-course-thumb {
    width: 96px;
    height: 72px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--color-primary-light);
}

.account-course-thumb--placeholder {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
}

.account-course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-course-title {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    line-height: 1.35;
    margin-bottom: var(--space-sm);
}

.account-course-progress-meta {
    display: flex;
    justify-content: space-between;
    gap: var(--space-sm);
    margin-bottom: 0.35rem;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-muted);
}

.account-order-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.account-order-id {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

.account-order-date {
    margin-top: 0.2rem;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.account-order-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-sm);
}

.account-order-total {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

.account-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.02em;
    text-transform: capitalize;
}

.account-status-badge.is-success {
    background: rgba(26, 127, 75, 0.12);
    color: var(--color-success);
}

.account-status-badge.is-pending {
    background: rgba(232, 93, 4, 0.12);
    color: var(--color-accent);
}

.account-status-badge.is-error {
    background: rgba(192, 57, 43, 0.12);
    color: var(--color-error);
}

.account-status-badge.is-neutral {
    background: rgba(10, 37, 64, 0.08);
    color: var(--color-primary);
}

.account-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
}

.account-empty-icon {
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: var(--space-md);
    border-radius: 50%;
    background: rgba(232, 93, 4, 0.1);
    border: 1px solid rgba(232, 93, 4, 0.18);
    position: relative;
}

.account-empty-icon::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.1rem;
    height: 0.8rem;
    margin: -0.5rem 0 0 -0.55rem;
    border: 2px solid var(--color-accent);
    border-radius: 2px;
    opacity: 0.75;
}

.account-empty-icon--orders::before {
    width: 1rem;
    height: 1.15rem;
    margin: -0.58rem 0 0 -0.5rem;
    border-radius: 1px;
}

.account-empty-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.account-empty-text {
    max-width: 26rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.progress-bar {
    height: 8px;
    background: var(--color-border);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent), #f07a2d);
    border-radius: 999px;
    transition: width 320ms var(--ease-out);
}

/* Legacy aliases used elsewhere */
.dashboard-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: var(--space-xl);
    max-width: 900px;
}

.dashboard-nav {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
}

.dashboard-nav button {
    display: block;
    width: 100%;
    text-align: left;
    padding: var(--space-md);
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    transition: background var(--transition);
}

.dashboard-nav button:hover,
.dashboard-nav button.active {
    background: var(--color-bg);
    color: var(--color-accent);
}

.course-progress-card {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    align-items: center;
}

.course-progress-thumb {
    width: 96px;
    height: 72px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--color-primary-light);
}

.course-progress-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stats */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    text-align: center;
    padding: var(--space-2xl) 0;
}

.stat-item {
    padding: var(--space-lg);
}

.stat-number {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-accent);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

/* Divisions */
.divisions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.division-card {
    padding: var(--space-xl);
}

.division-card ul {
    list-style: disc;
    padding-left: var(--space-lg);
    margin-top: var(--space-md);
}

.division-card li {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

/* Insights */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.insight-card-image {
    height: 200px;
    overflow: hidden;
    background: var(--color-primary-light);
}

.article-hero-image {
    height: 360px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-xl);
    background: var(--color-primary-light);
}

.split-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.split-feature-image {
    height: 360px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-primary-light);
}

.learnership-intro-image {
    height: 320px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-xl);
    background: var(--color-primary-light);
}

/* ── Learnerships page ───────────────────────────────── */

.learnership-hero-banner {
    background: linear-gradient(135deg, var(--color-primary) 0%, #0d3154 55%, #123a5c 100%);
    color: var(--color-white);
    padding: calc(var(--header-height) + var(--space-xl)) 0 var(--space-3xl);
}

.learnership-hero-banner-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.breadcrumb--light,
.breadcrumb--light a {
    color: rgba(255, 255, 255, 0.72);
}

.breadcrumb--light a:hover {
    color: var(--color-white);
}

.breadcrumb--light span {
    color: rgba(255, 255, 255, 0.92);
}

.learnership-hero-banner-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-2xl);
    align-items: center;
}

.learnership-hero-banner-copy {
    max-width: 560px;
}

.learnership-hero-banner .learnership-eyebrow {
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.learnership-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.05;
    margin-bottom: var(--space-md);
    color: var(--color-white);
}

.learnership-hero-tagline {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: var(--font-weight-medium);
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.35;
    margin-bottom: var(--space-lg);
}

.learnership-hero-lead {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.65;
    margin-bottom: var(--space-xl);
    max-width: 520px;
}

.learnership-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.learnership-hero-banner .btn-secondary {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.35);
}

.learnership-hero-banner .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.55);
}

.learnership-contact-strip {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm) var(--space-lg);
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: var(--font-size-sm);
}

.learnership-contact-strip a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color var(--transition);
}

.learnership-contact-strip a:hover {
    color: var(--color-white);
}

.learnership-hero-banner-media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.06);
}

.learnership-hero-banner-media img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
}

.learnership-stats-section {
    padding-top: 0;
    margin-top: calc(-1 * var(--space-2xl));
    position: relative;
    z-index: 1;
}

.learnership-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.learnership-stat {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.learnership-stat-value {
    display: block;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: var(--font-weight-bold);
    color: var(--color-accent);
    line-height: 1.1;
    margin-bottom: var(--space-sm);
}

.learnership-stat-label {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    line-height: 1.45;
}

.learnership-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.learnership-split--reverse .learnership-split-content {
    order: 2;
}

.learnership-split--reverse .learnership-split-media {
    order: 1;
}

.learnership-split-content p {
    color: var(--color-text-muted);
    line-height: 1.65;
    margin-bottom: var(--space-md);
}

.learnership-split-lead {
    margin-bottom: var(--space-lg) !important;
}

.learnership-split-media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-primary-light);
}

.learnership-split-media img {
    width: 100%;
    height: auto;
    display: block;
}

.learnership-split-media--transparent {
    background: transparent;
    overflow: visible;
}

.learnership-role-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-sm) var(--space-lg);
    list-style: none;
    padding: 0;
    margin: var(--space-lg) 0 0;
}

.learnership-role-list li {
    position: relative;
    padding-left: 1.1rem;
    color: var(--color-text);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.learnership-role-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
}

.learnership-why-band {
    background: linear-gradient(180deg, #eef2f7 0%, var(--color-bg) 100%);
}

.learnership-why-band-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.learnership-benefit-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--space-md);
}

.learnership-benefit-list li {
    position: relative;
    padding: var(--space-md) var(--space-md) var(--space-md) calc(var(--space-md) + 1rem);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    line-height: 1.55;
    box-shadow: var(--shadow-sm);
}

.learnership-benefit-list li::before {
    content: "";
    position: absolute;
    left: var(--space-md);
    top: 1.2rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
}

.learnership-campus-header {
    margin-bottom: var(--space-xl);
    max-width: 760px;
}

.learnership-services-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.learnership-services-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-sm) var(--space-lg);
    list-style: none;
    padding: 0;
    margin: 0;
}

.learnership-services-list li {
    position: relative;
    padding-left: 1.1rem;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    line-height: 1.55;
}

.learnership-services-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-accent);
    font-weight: var(--font-weight-bold);
    font-size: 0.8rem;
}

.learnership-brochure-section {
    padding-top: 0;
}

.learnership-brochure-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-2xl);
    align-items: center;
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--color-primary) 0%, #123a5c 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-lg);
}

.learnership-brochure-cover {
    width: min(220px, 40vw);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    flex-shrink: 0;
}

.learnership-brochure-cover img {
    width: 100%;
    height: auto;
    display: block;
}

.learnership-brochure-copy .section-title,
.learnership-brochure-copy .section-intro {
    color: rgba(255, 255, 255, 0.92);
}

.learnership-brochure-copy .section-intro {
    color: rgba(255, 255, 255, 0.78);
    max-width: 520px;
}

.learnership-programmes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.learnership-programme-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-lg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--duration-ui) var(--ease-out);
}

.learnership-programme-card:hover {
    border-color: rgba(232, 93, 4, 0.35);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.learnership-programme-nqf {
    display: inline-flex;
    align-self: flex-start;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-accent);
    background: rgba(232, 93, 4, 0.1);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.learnership-programme-title {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    line-height: 1.35;
    margin: 0;
}

.learnership-programme-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    margin-top: auto;
    padding-top: var(--space-sm);
}

.learnership-programme-duration {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.learnership-programme-link {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-accent);
    text-decoration: none;
}

.learnership-programme-link:hover {
    text-decoration: underline;
}

.learnership-enquiry {
    max-width: 640px;
}

.learnership-form {
    margin-top: var(--space-xl);
}

.learnership-card {
    padding: 0;
    overflow: hidden;
}

.learnership-card .card-title,
.learnership-card .card-text {
    padding: 0 var(--space-lg) var(--space-xl);
}

.learnership-card .card-title {
    padding-top: var(--space-lg);
}

.division-card {
    padding: 0;
    overflow: hidden;
}

.division-card-image {
    height: 180px;
    overflow: hidden;
}

.division-card .card-title,
.division-card .card-text,
.division-card ul {
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
}

.division-card .card-title {
    margin-top: var(--space-lg);
}

.division-card ul {
    padding-bottom: var(--space-xl);
}

.insight-meta {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.article-content {
    max-width: 720px;
    margin: 0 auto;
    padding: var(--space-xl) 0 var(--space-3xl);
}

.about-content {
    max-width: 800px;
    padding-top: 0;
}

.about-split {
    align-items: stretch;
}

.about-split .split-feature-image {
    height: auto;
    min-height: 280px;
}

.about-split .about-content {
    max-width: none;
    margin: 0;
    padding: 0;
}

.about-section-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    line-height: 1.25;
    margin: 0 0 var(--space-lg);
}

.about-keyword {
    color: var(--color-accent);
}

.about-split--reverse .about-intro-image {
    order: 2;
}

.about-split--reverse .about-content {
    order: 1;
}

.about-intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content h2 {
    font-size: var(--font-size-xl);
    color: var(--color-primary);
    margin: var(--space-xl) 0 var(--space-md);
}

.article-content p {
    margin-bottom: var(--space-md);
    color: var(--color-text-muted);
}

.legal-content {
    max-width: 800px;
}

.legal-document-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.legal-document-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.legal-document-text {
    color: var(--color-text-muted);
    line-height: 1.65;
    margin-bottom: var(--space-lg);
    max-width: 720px;
}

.legal-document-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.legal-pdf-viewer {
    width: 100%;
    min-height: 70vh;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
}

.legal-content h2 {
    font-size: var(--font-size-xl);
    color: var(--color-primary);
    margin: var(--space-2xl) 0 var(--space-md);
}

.legal-content h2:first-of-type {
    margin-top: var(--space-xl);
}

.legal-content h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin: var(--space-xl) 0 var(--space-md);
}

.legal-list {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: var(--space-md);
    color: var(--color-text-muted);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.legal-content a {
    color: var(--color-accent);
    font-weight: var(--font-weight-medium);
}

.legal-content a:hover {
    color: var(--color-accent-hover);
}

/* Events */
.event-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.event-card {
    display: grid;
    grid-template-columns: 200px 72px 1fr auto;
    gap: var(--space-lg);
    padding: 0;
    align-items: center;
    overflow: hidden;
}

.event-card-image {
    height: 100%;
    min-height: 140px;
    overflow: hidden;
}

.event-date {
    text-align: center;
    min-width: 60px;
    padding: var(--space-md);
    background: var(--color-bg);
    border-radius: var(--radius-md);
}

.event-date-day {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-accent);
    line-height: 1;
}

.event-date-month {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.event-info {
    flex: 1;
    padding: var(--space-lg) 0;
}

.event-card .register-btn {
    margin-right: var(--space-lg);
}

/* Contact */
.contact-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, #0d3154 55%, #123a5c 100%);
    color: var(--color-white);
    padding: calc(var(--header-height) + var(--space-xl)) 0 var(--space-2xl);
}

.contact-hero-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-hero-grid {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.contact-hero-copy {
    max-width: 560px;
}

.contact-eyebrow {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.contact-hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.08;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.contact-hero-desc {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
    max-width: 520px;
}

.contact-hero-strip {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: min(100%, 240px);
}

.contact-hero-strip li {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-md);
}

.contact-hero-strip a {
    color: var(--color-white);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
}

.contact-hero-strip a:hover {
    color: var(--color-accent);
}

.contact-hero-strip span {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.65);
}

.contact-section {
    padding-top: var(--space-2xl);
}

.contact-form-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.contact-form-intro,
.contact-offices-intro {
    margin-bottom: 0;
}

.contact-form-header,
.contact-offices-header {
    margin-bottom: var(--space-lg);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-2xl);
    align-items: start;
}

.contact-offices-intro {
    margin-bottom: var(--space-lg);
}

.office-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.office-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.office-card:hover {
    border-color: rgba(232, 93, 4, 0.25);
    box-shadow: var(--shadow-md);
}

.office-card-map {
    position: relative;
    background: var(--color-primary-light);
}

.office-card-map .map-embed {
    display: block;
    width: 100%;
    height: 220px;
    border: 0;
    margin: 0;
}

.office-card-body {
    padding: var(--space-lg);
}

.office-card-badge {
    display: inline-block;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-accent);
    background: rgba(232, 93, 4, 0.1);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    margin-bottom: var(--space-sm);
}

.office-card-title {
    color: var(--color-primary);
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-md);
}

.office-contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-md);
    display: grid;
    gap: var(--space-sm);
}

.office-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    line-height: 1.5;
}

.office-contact-icon {
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: var(--color-accent);
}

.office-contact-list a {
    color: var(--color-primary);
    text-decoration: none;
}

.office-contact-list a:hover {
    color: var(--color-accent);
}

.office-directions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-accent);
    text-decoration: none;
}

.office-directions:hover {
    text-decoration: underline;
}

.office-directions::after {
    content: "→";
}

/* Legacy office block styles (kept for backwards compatibility) */
.office-block {
    padding: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    overflow: hidden;
}

.office-block h3,
.office-block p {
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
}

.office-block h3 {
    color: var(--color-primary);
    margin-bottom: var(--space-md);
    padding-top: var(--space-lg);
}

.office-block-image {
    height: 180px;
    overflow: hidden;
}

.office-block p {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

.map-embed {
    width: 100%;
    height: 200px;
    border: 0;
    border-radius: var(--radius-md);
    margin-top: var(--space-md);
}

/* Promotions */
.promo-ends {
    font-size: var(--font-size-xs);
    color: var(--color-sale);
    font-weight: var(--font-weight-medium);
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--space-lg);
    box-shadow: var(--shadow-lg);
    transform: translateY(100%);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    font-size: var(--font-size-sm);
    min-width: 280px;
}

.cookie-actions {
    display: flex;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.cookie-banner .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.85);
    color: var(--color-white);
}

.cookie-banner .btn-outline-light:hover {
    background: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}

.cookie-banner .btn-primary {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 37, 64, 0.45);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.modal-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: var(--font-size-2xl);
    cursor: pointer;
    color: var(--color-text-muted);
    line-height: 1;
    padding: var(--space-xs);
}

.modal-body {
    margin-bottom: var(--space-xl);
}

.modal-body-text {
    color: var(--color-text-muted);
    line-height: 1.65;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
    flex-wrap: wrap;
}

body.modal-open {
    overflow: hidden;
}

.btn-danger {
    background: var(--color-error);
    color: var(--color-white);
    border-color: var(--color-error);
}

.btn-danger:hover {
    background: #a93226;
    border-color: #a93226;
    color: var(--color-white);
}

.cookie-settings-group {
    margin-bottom: var(--space-md);
}

.cookie-settings-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-sm);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
}

/* Cookie settings modal */
.cookie-modal-overlay {
    z-index: 500;
}

.cookie-modal {
    max-width: 720px;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.cookie-modal .modal-header {
    margin-bottom: 0;
    padding: var(--space-xl) var(--space-xl) var(--space-md);
    border-bottom: 1px solid var(--color-border);
}

.cookie-modal-body {
    margin-bottom: 0;
    padding: var(--space-lg) var(--space-xl);
    overflow-y: auto;
}

.cookie-modal-footer {
    margin-bottom: 0;
    padding: var(--space-md) var(--space-xl) var(--space-xl);
    border-top: 1px solid var(--color-border);
    justify-content: flex-end;
}

.cookie-section-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.cookie-privacy-overview p {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    line-height: 1.65;
    margin-bottom: var(--space-lg);
}

.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.cookie-category {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-subtle, #f8fafc);
    overflow: hidden;
}

.cookie-category-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    cursor: pointer;
    list-style: none;
    font-weight: var(--font-weight-medium);
    color: var(--color-primary);
}

.cookie-category-summary::-webkit-details-marker {
    display: none;
}

.cookie-category-summary::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 200ms ease-out;
    flex-shrink: 0;
    margin-right: var(--space-xs);
}

.cookie-category[open] > .cookie-category-summary::before {
    transform: rotate(45deg);
}

.cookie-category-heading {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex: 1;
    min-width: 0;
}

.cookie-category-name {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
}

.cookie-category-badge {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    color: var(--color-success, #1e8449);
    background: rgba(30, 132, 73, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full, 999px);
    white-space: nowrap;
}

.cookie-category-panel {
    padding: 0 var(--space-lg) var(--space-lg);
    border-top: 1px solid var(--color-border);
    background: var(--color-white);
}

.cookie-category-desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: var(--space-md) 0;
}

.cookie-table-wrap {
    overflow-x: auto;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-xs);
}

.cookie-table th,
.cookie-table td {
    text-align: left;
    vertical-align: top;
    padding: var(--space-sm);
    border: 1px solid var(--color-border);
}

.cookie-table th {
    background: var(--color-bg-subtle, #f8fafc);
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
}

.cookie-table td:first-child {
    font-family: var(--font-mono, ui-monospace, monospace);
    white-space: nowrap;
}

.cookie-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    cursor: pointer;
}

.cookie-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-switch-track {
    width: 2.75rem;
    height: 1.5rem;
    background: var(--color-border);
    border-radius: 999px;
    transition: background-color 200ms ease-out;
    position: relative;
}

.cookie-switch-track::after {
    content: "";
    position: absolute;
    top: 0.15rem;
    left: 0.15rem;
    width: 1.2rem;
    height: 1.2rem;
    background: var(--color-white);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: transform 200ms ease-out;
}

.cookie-switch input:checked + .cookie-switch-track {
    background: var(--color-accent, #e85d04);
}

.cookie-switch input:checked + .cookie-switch-track::after {
    transform: translateX(1.25rem);
}

.cookie-switch input:focus-visible + .cookie-switch-track {
    outline: 2px solid var(--color-accent, #e85d04);
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .cookie-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-actions {
        width: 100%;
    }

    .cookie-actions .btn {
        flex: 1;
    }

    .cookie-modal .modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    .cookie-category-summary {
        padding: var(--space-sm) var(--space-md);
    }

    .cookie-category-panel {
        padding: 0 var(--space-md) var(--space-md);
    }
}

/* Toast */
.toast-container {
    position: fixed;
    top: calc(var(--header-height) + var(--space-md));
    right: var(--space-md);
    z-index: 400;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.toast {
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: var(--font-size-sm);
    max-width: 360px;
}

.toast.success {
    background: var(--color-success);
}

.toast.error {
    background: var(--color-error);
}

/* Page header */
.page-header {
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--space-2xl) 0;
}

.page-header--image {
    background-image: linear-gradient(135deg, rgba(10, 37, 64, 0.9), rgba(18, 58, 92, 0.85)), var(--header-image);
    background-size: cover;
    background-position: center;
}

.page-header h1 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
}

.page-header p {
    opacity: 0.85;
    margin-top: var(--space-sm);
}

.page-header .vendor-breadcrumb {
    padding-top: 0;
    margin-bottom: var(--space-sm);
    color: rgba(255, 255, 255, 0.75);
}

.page-header .vendor-breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
}

.page-header .vendor-breadcrumb a:hover {
    color: var(--color-white);
}

.disclaimer-note {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    font-style: italic;
    padding: var(--space-md);
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-lg);
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-solutions {
        --solutions-overlap: clamp(6rem, 12vw, 10rem);
    }

    .product-hero,
    .product-body {
        grid-template-columns: 1fr;
    }

    .product-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .purchase-panel,
    .checkout-summary,
    .filter-sidebar {
        position: static;
    }

    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .catalog-filter-toggle {
        display: inline-flex;
    }

    .catalog-filters {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 100;
        width: min(320px, 88vw);
        margin: 0;
        border-radius: 0;
        border-left: none;
        border-top: none;
        border-bottom: none;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 280ms var(--ease-drawer);
    }

    .catalog-filters.is-open {
        transform: translateX(0);
    }

    .catalog-filters-header {
        display: flex;
    }

    .catalog-hero-grid {
        flex-direction: column;
        align-items: flex-start;
    }

    .catalog-hero-aside {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

    .catalog-toolbar--top {
        flex-wrap: wrap;
    }

    .dashboard-layout,
    .account-dashboard {
        grid-template-columns: 1fr;
    }

    .account-sidebar {
        position: static;
    }

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

    .account-nav-item--logout {
        grid-column: 1 / -1;
        margin-top: 0;
        border-top: 1px solid var(--color-border);
        border-radius: var(--radius-md);
    }

    .account-course-card {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .account-course-actions {
        grid-column: 1 / -1;
    }

    .account-order-card {
        grid-template-columns: 1fr;
    }

    .account-order-meta {
        align-items: flex-start;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .vendor-directory-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
        margin-bottom: var(--space-xl);
    }

    .vendor-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .vendor-card-media {
        min-height: 132px;
        padding: var(--space-lg);
    }

    .hero {
        min-height: 70vh;
        min-height: 70dvh;
        padding: var(--space-2xl) 0;
    }

    .hero--has-solutions {
        padding-bottom: calc(var(--space-2xl) + var(--solutions-overlap));
    }

    .hero-solutions {
        --solutions-overlap: clamp(3rem, 8vw, 5rem);
    }

    .solutions-overlap-section .section-title,
    .solutions-overlap-section .section-intro {
        text-align: center;
    }

    .solutions-overlap-section .section-intro {
        margin-left: auto;
        margin-right: auto;
    }

    .hero--image {
        background-position: 65% center;
        text-align: center;
    }

    .hero--image .hero-title,
    .hero--image .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero--image .hero-actions {
        justify-content: center;
    }

    .product-purchase-card {
        order: -1;
    }

    .legal-pdf-viewer {
        min-height: 55vh;
    }

    .product-meta-grid {
        grid-template-columns: 1fr 1fr;
    }

    .product-vendor-card {
        grid-template-columns: 1fr;
    }

    .primary-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
        padding: var(--space-lg);
        justify-content: flex-start;
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition:
            transform 280ms var(--ease-drawer),
            opacity 220ms var(--ease-out),
            visibility 220ms var(--ease-out);
    }

    .primary-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

    .nav-list a {
        padding: var(--space-sm) 0;
    }

    .logo {
        margin-right: 0;
    }

    .header-actions {
        margin-left: 0;
        gap: var(--space-md);
    }

    .header-auth-link {
        display: none;
    }

    .header-user-menu {
        display: block;
    }

    .value-grid,
    .testimonial-grid,
    .stats-strip,
    .divisions-grid {
        grid-template-columns: 1fr;
    }

    .learnership-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-hero-grid {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary-panel {
        position: static;
    }

    .cart-item-card {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-md);
    }

    .cart-item-pricing {
        min-width: 0;
    }

    .cart-item-remove {
        justify-self: start;
    }

    .cart-hero-grid {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-table {
        display: block;
        overflow-x: auto;
    }

    .event-card {
        grid-template-columns: 1fr;
    }

    .event-card-image {
        min-height: 180px;
    }

    .event-info {
        padding: 0 var(--space-lg);
    }

    .event-card .register-btn {
        margin: 0 var(--space-lg) var(--space-lg);
        width: calc(100% - 2 * var(--space-lg));
    }

    .split-feature,
    .learnership-hero-banner-grid,
    .learnership-split,
    .learnership-stats-grid,
    .learnership-why-band-grid,
    .learnership-services-grid,
    .learnership-brochure-card,
    .learnership-hero,
    .learnership-brochure,
    .learnership-why-grid,
    .home-spotlight-grid {
        grid-template-columns: 1fr;
    }

    .learnership-split--reverse .learnership-split-content,
    .learnership-split--reverse .learnership-split-media {
        order: unset;
    }

    .learnership-role-list,
    .learnership-services-list {
        grid-template-columns: 1fr;
    }

    .learnership-stats-section {
        margin-top: var(--space-lg);
    }

    .learnership-brochure-card {
        padding: var(--space-xl);
    }

    .learnership-brochure-cover {
        width: min(180px, 55vw);
        margin: 0 auto;
    }

    .home-spotlight-grid--reverse .home-spotlight-media,
    .home-spotlight-grid--reverse .home-spotlight-content,
    .about-split--reverse .about-intro-image,
    .about-split--reverse .about-content {
        order: unset;
    }

    .home-spotlight-text {
        max-width: none;
    }

    .split-feature-image,
    .learnership-hero-image,
    .learnership-why-image {
        height: 240px;
    }

    .learnership-brochure-action {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 65vh;
        min-height: 65dvh;
        padding: var(--space-xl) 0;
    }

    .hero-solutions {
        --solutions-overlap: 0;
    }

    .hero--has-solutions {
        padding-bottom: var(--space-xl);
    }

    .solutions-overlap-section {
        margin-top: 0;
        padding-top: var(--space-lg);
    }

    .hero-subtitle {
        font-size: var(--font-size-base);
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        font-size: var(--font-size-base);
    }

    .cart-badge {
        font-size: var(--font-size-xs);
    }

    .learnership-stats-grid {
        grid-template-columns: 1fr;
    }

    .learnership-hero-actions .btn {
        width: 100%;
    }
}
