:root {
    --cp-teal: #0f766e;
    --cp-teal-dark: #095f59;
    --cp-blue: #2563eb;
    --cp-orange: #f97316;
    --cp-ink: #182230;
    --cp-muted: #667085;
    --cp-line: #e4eaec;
    --cp-bg: #f6f8f8;
}

.cp-page {
    color: var(--cp-ink);
    background: var(--cp-bg);
}

.cp-main {
    min-height: 760px;
    padding-top: 79px;
}

.cp-page .portal-button {
    min-height: 44px;
    font-size: 14px;
}

.cp-page .portal-field label,.cp-page .portal-input,.cp-page .portal-select,.cp-page .portal-textarea {
    font-size: 14px;
}

.cp-page .portal-textarea {
    line-height: 23px;
}

.cp-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 18px 0;
    color: #64748b;
    font-size: 13px;
}

.cp-breadcrumb i {
    color: #b9c4ca;
    font-size: 11px;
}

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

.cp-hero {
    color: #fff;
    background: linear-gradient(120deg,#085c59,#0f766e 65%,#11867b);
}

.cp-hero .content-container {
    padding-top: 44px;
    padding-bottom: 43px;
}

.cp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #baf3e7;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.cp-hero h1 {
    margin: 9px 0 9px;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -.6px;
}

.cp-hero p {
    max-width: 760px;
    margin: 0;
    color: #daf8f2;
    font-size: 15px;
    line-height: 25px;
}

.cp-content {
    padding: 42px 0 70px;
}

.cp-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) 285px;
    align-items: start;
    gap: 26px;
}

.cp-layout-wide {
    display: grid;
    grid-template-columns: 255px minmax(0,1fr);
    align-items: start;
    gap: 26px;
}

.cp-sticky {
    position: sticky;
    top: 98px;
}

.cp-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.cp-section-head h2 {
    margin: 0 0 5px;
    font-size: 24px;
    font-weight: 900;
}

.cp-section-head p {
    margin: 0;
    color: var(--cp-muted);
    font-size: 14px;
    line-height: 22px;
}

.cp-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.cp-search {
    position: relative;
    flex: 1;
}

.cp-search i {
    position: absolute;
    top: 50%;
    left: 14px;
    color: #8a98a3;
    transform: translateY(-50%);
}

.cp-search input {
    width: 100%;
    height: 44px;
    padding: 0 14px 0 41px;
    border: 1px solid var(--cp-line);
    border-radius: 10px;
    outline: 0;
    background: #fff;
    font-size: 14px;
}

.cp-search input:focus {
    border-color: #7dcfc7;
    box-shadow: 0 0 0 3px rgba(15,118,110,.09);
}

.cp-toolbar select {
    min-width: 170px;
    height: 44px;
    line-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--cp-line);
    border-radius: 10px;
    color: #475467;
    background: #fff;
    font-size: 14px;
}

.cp-toolbar .portal-select-wrap {
    width: auto;
    min-width: 170px;
    flex: 0 0 auto;
}

.cp-toolbar .portal-select-trigger {
    height: 44px;
    min-width: 170px;
    border-radius: 10px;
    font-size: 14px;
}

.cp-tabs {
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid var(--cp-line);
    background: #fff;
}

.cp-tab {
    position: relative;
    min-height: 52px;
    padding: 0 18px;
    border: 0;
    color: #667085;
    background: transparent;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.cp-tab.active {
    color: var(--cp-teal);
}

.cp-tab.active::after {
    position: absolute;
    right: 15px;
    bottom: -1px;
    left: 15px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    content: "";
    background: var(--cp-teal);
}

.cp-pane {
    display: none;
}

.cp-pane.active {
    display: block;
}

.cp-filter-card {
    padding: 18px;
}

.cp-filter-card h2 {
    margin: 0 0 15px;
    font-size: 17px;
    font-weight: 850;
}

.cp-filter-group {
    padding: 16px 0;
    border-top: 1px solid #edf1f2;
}

.cp-filter-group strong {
    display: block;
    margin-bottom: 9px;
    font-size: 14px;
}

.cp-filter-option {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 9px 0;
    color: #475467;
    font-size: 14px;
    cursor: pointer;
}

.cp-filter-option input {
    width: 16px;
    height: 16px;
    accent-color: var(--cp-teal);
}

.cp-pill {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    align-self: flex-start;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--cp-teal);
    background: #e7f7f4;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.cp-pill.blue {
    color: #1d4ed8;
    background: #e8f0ff;
}

.cp-pill.orange {
    color: #c2410c;
    background: #ffedd5;
}

.cp-pill.purple {
    color: #7e22ce;
    background: #f3e8ff;
}

.cp-pagination {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 27px;
}

.cp-pagination button,
.cp-pagination a {
    display: inline-grid;
    place-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 11px;
    border: 1px solid var(--cp-line);
    border-radius: 8px;
    color: #475467;
    background: #fff;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
}

.cp-pagination button.active,
.cp-pagination a.active {
    border-color: var(--cp-teal);
    color: #fff;
    background: var(--cp-teal);
}

.cp-news-image-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 180px;
    color: #94a3b8;
    background: #eef5f4;
    font-size: 2rem;
}

.cp-toolbar-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0;
}

.cp-load-more {
    display: flex;
    justify-content: center;
    padding-top: 20px;
}

/* Forum */
.cp-post-list {
    display: grid;
    gap: 13px;
}

.cp-post-card {
    display: grid;
    grid-template-columns: 48px minmax(0,1fr);
    gap: 14px;
    padding: 19px;
}

.cp-avatar {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    color: #fff;
    background: var(--cp-teal);
    font-size: 15px;
    font-weight: 850;
}

.cp-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cp-post-author {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
    color: #667085;
    font-size: 13px;
}

.cp-post-author strong {
    color: #344054;
    font-size: 14px;
}

.cp-post-card h2,.cp-post-card h3 {
    margin: 0 0 7px;
    font-size: 18px;
    font-weight: 850;
    line-height: 25px;
}

.cp-post-card h2 a:hover,.cp-post-card h3 a:hover,
a.cp-post-card:hover h2,a.cp-post-card:hover h3 {
    color: var(--cp-teal);
}

a.cp-post-card {
    cursor: pointer;
    transition: box-shadow .15s ease, border-color .15s ease;
}

a.cp-post-card:hover {
    border-color: color-mix(in srgb, var(--cp-teal) 35%, #e4e7ec);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.cp-post-card p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 12px;
    color: #52606d;
    font-size: 14px;
    line-height: 23px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.cp-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    color: #74828d;
    font-size: 13px;
}

.cp-post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cp-post-card.pinned {
    border-color: #b7ded9;
    background: #f8fffd;
}

.cp-side-list {
    margin: 0;
    padding: 7px 18px;
    list-style: none;
}

.cp-side-list li {
    border-bottom: 1px solid #edf1f2;
}

.cp-side-list li:last-child {
    border-bottom: 0;
}

.cp-side-list a,.cp-side-list button {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 0;
    border: 0;
    color: #475467;
    background: transparent;
    font-size: 14px;
    text-align: left;
}

.cp-side-list a:hover,.cp-side-list button:hover {
    color: var(--cp-teal);
}

.cp-side-list b {
    color: #98a2b3;
    font-size: 12px;
}

.cp-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 9px;
    border: 1px solid var(--cp-line);
    border-bottom: 0;
    border-radius: 9px 9px 0 0;
    background: #f8fafb;
}

.cp-editor-toolbar button {
    width: 34px;
    height: 32px;
    border: 0;
    border-radius: 6px;
    color: #475467;
    background: transparent;
}

.cp-editor-toolbar button:hover {
    background: #e8efef;
}

.cp-editor-toolbar + .portal-textarea {
    border-radius: 0 0 9px 9px;
}

.cp-upload-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px;
    border: 1px dashed #cbd8dc;
    border-radius: 9px;
    color: #667085;
    background: #fafcfc;
    font-size: 13px;
}

.ebook-counter,.cp-counter {
    display: block;
    margin-top: 5px;
    color: #98a2b3;
    font-size: 12px;
    text-align: right;
}

.cp-detail-post {
    padding: 25px;
}

.cp-detail-post h1 {
    margin: 13px 0 15px;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.3;
}

.cp-detail-post p,.cp-detail-post li {
    color: #3f4d59;
    font-size: 15px;
    line-height: 27px;
}

.cp-detail-post blockquote {
    margin: 20px 0;
    padding: 16px 18px;
    border-left: 4px solid var(--cp-teal);
    color: #315c57;
    background: #eff9f7;
    font-size: 15px;
    line-height: 25px;
}

.cp-attachments {
    display: grid;
    gap: 8px;
    margin-top: 20px;
}

.cp-attachment {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
    padding: 11px 13px;
    overflow: hidden;
    border: 1px solid var(--cp-line);
    border-radius: 9px;
    color: #475467;
    font-size: 14px;
}

.cp-attachment > span {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.cp-attachment > span strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cp-attachment > i:first-child,
.cp-attachment > i.ms-auto {
    flex: 0 0 auto;
}

.cp-attachment i {
    color: #dc2626;
    font-size: 20px;
}

.cp-reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding-top: 18px;
    border-top: 1px solid #edf1f2;
}

.cp-reaction {
    min-height: 38px;
    padding: 0 11px;
    border: 1px solid var(--cp-line);
    border-radius: 999px;
    color: #475467;
    background: #fff;
    font-size: 13px;
}

.cp-reaction.active {
    border-color: #8dd2cb;
    color: var(--cp-teal);
    background: #eaf8f5;
}

.cp-comment {
    display: grid;
    grid-template-columns: 42px minmax(0,1fr);
    gap: 12px;
    padding: 18px 0;
    border-top: 1px solid #edf1f2;
}

.cp-comment .cp-avatar {
    width: 40px;
    height: 40px;
}

.cp-comment-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 5px;
}

.cp-comment-head strong {
    font-size: 14px;
}

.cp-comment-head time {
    color: #98a2b3;
    font-size: 12px;
}

.cp-comment p {
    margin: 0;
    color: #475467;
    font-size: 14px;
    line-height: 23px;
}

.cp-comment-actions {
    display: flex;
    gap: 14px;
    margin-top: 8px;
}

.cp-comment-actions button,
.cp-comment-actions a {
    border: 0;
    color: #667085;
    background: transparent;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.cp-detail-post .cp-richtext {
    color: #3f4d59;
    font-size: 15px;
    line-height: 27px;
}

.cp-detail-post .cp-richtext img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.cp-detail-post .cp-richtext h2,
.cp-detail-post .cp-richtext h3 {
    margin-top: 1.25rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.cp-reactions form.d-contents {
    display: contents;
}

form.cp-reaction-form-row {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
}

a.cp-reaction {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.cp-report-overlay {
    position: fixed;
    inset: 0;
    z-index: 9100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.45);
}

.cp-report-dialog {
    width: 420px;
    max-width: 92vw;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

/* Groups */
.cp-card-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}

.cp-group-card {
    overflow: hidden;
}

.cp-group-cover {
    position: relative;
    height: 135px;
    overflow: hidden;
    background: linear-gradient(135deg,#0f766e,#22a69b);
}

.cp-group-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .82;
}

.cp-group-logo {
    position: absolute;
    bottom: -25px;
    left: 18px;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 4px solid #fff;
    border-radius: 15px;
    color: #fff;
    background: #126f68;
    font-size: 17px;
    font-weight: 900;
}

.cp-group-body {
    padding: 37px 18px 18px;
}

.cp-group-body h2,.cp-group-body h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 850;
}

.cp-group-body p {
    display: -webkit-box;
    min-height: 46px;
    overflow: hidden;
    margin: 0 0 14px;
    color: #5f6d78;
    font-size: 14px;
    line-height: 23px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.cp-group-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    color: #667085;
    font-size: 13px;
}

.cp-group-banner {
    position: relative;
    height: 245px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(120deg,#0b5d59,#147f75);
}

.cp-group-banner > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .32;
}

.cp-group-banner-copy {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

.cp-group-banner-copy h1 {
    margin: 8px 0 6px;
    font-size: 30px;
    font-weight: 900;
}

.cp-group-banner-copy p {
    margin: 0;
    color: #d9f7f2;
    font-size: 14px;
}

.cp-group-nav {
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid var(--cp-line);
    background: #fff;
}

.cp-group-nav button,
.cp-group-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    padding: 0 18px;
    border: 0;
    color: #667085;
    background: transparent;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.cp-group-nav button.active,
.cp-group-nav a.active {
    color: var(--cp-teal);
    box-shadow: inset 0 -3px 0 var(--cp-teal);
}

.cp-resource-list {
    display: grid;
    gap: 10px;
}

.cp-resource {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    padding: 14px;
    border: 1px solid var(--cp-line);
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
}

.cp-resource > i {
    flex: 0 0 auto;
    color: var(--cp-teal);
    font-size: 25px;
}

.cp-resource div {
    min-width: 0;
    flex: 1 1 auto;
}

.cp-resource strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.cp-resource span {
    color: #7b8994;
    font-size: 12px;
}

.cp-member-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 11px;
}

.cp-member {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px;
    border: 1px solid var(--cp-line);
    border-radius: 10px;
}

.cp-member strong {
    display: block;
    font-size: 14px;
}

.cp-member span {
    color: #fff;
    font-size: 12px;
}

.cp-schedule-item {
    display: grid;
    grid-template-columns: 58px minmax(0,1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid #edf1f2;
}

.cp-date-block {
    padding: 8px;
    border-radius: 9px;
    color: var(--cp-teal);
    background: #e9f8f5;
    text-align: center;
}

.cp-date-block strong {
    display: block;
    font-size: 20px;
}

.cp-date-block span {
    font-size: 11px;
    text-transform: uppercase;
}

.cp-schedule-item h3 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 850;
}

.cp-schedule-item p {
    margin: 0;
    color: #667085;
    font-size: 13px;
}

/* Mentors */
.cp-mentor-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}

.cp-mentor-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 21px;
    text-align: center;
}

.cp-mentor-card > img {
    width: 82px;
    height: 82px;
    margin: 0 auto;
    border-radius: 18px;
    object-fit: cover;
}

.cp-mentor-avatar-fallback {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    margin: 0 auto;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg,#0f766e,#22a69b);
    font-size: 28px;
    font-weight: 900;
}

.cp-history-avatar {
    width: 58px;
    height: 58px;
    margin: 0;
    border-radius: 13px;
    font-size: 20px;
}

.cp-mentor-card h2 a,
.cp-history-item h3 a {
    color: inherit;
    text-decoration: none;
}

.cp-mentor-card h2 a:hover,
.cp-history-item h3 a:hover {
    color: var(--cp-teal);
}

.cp-mentor-card h2,.cp-mentor-card h3 {
    margin: 13px 0 4px;
    font-size: 18px;
    font-weight: 850;
}

.cp-mentor-role {
    min-height: 42px;
    margin: 0;
    color: #667085;
    font-size: 13px;
    line-height: 20px;
}

.cp-rating {
    color: #f59e0b;
    font-size: 13px;
    font-weight: 800;
}

.cp-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 13px 0;
}

.cp-tags span {
    padding: 5px 8px;
    border-radius: 999px;
    color: var(--cp-teal);
    background: #e8f7f4;
    font-size: 11px;
    font-weight: 800;
}

.cp-tag-check {
    position: relative;
    display: inline-flex;
    margin: 0;
    cursor: pointer;
}

.cp-tag-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cp-tag-check span {
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--cp-teal);
    background: #e8f7f4;
    font-size: 11px;
    font-weight: 800;
    transition: .15s ease;
}

.cp-tag-check input:checked + span {
    border-color: var(--cp-teal);
    color: #fff;
    background: var(--cp-teal);
}

.cp-tag-check input:focus-visible + span {
    outline: 2px solid var(--cp-teal);
    outline-offset: 2px;
}

.cp-group-body h2 a {
    color: inherit;
    text-decoration: none;
}

.cp-group-body h2 a:hover {
    color: var(--cp-teal);
}

.cp-mentor-card > p:not(.cp-mentor-role) {
    display: -webkit-box;
    min-height: 66px;
    overflow: hidden;
    color: #53616c;
    font-size: 14px;
    line-height: 22px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.cp-mentor-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
}

.cp-history-list {
    display: grid;
    gap: 12px;
}

.cp-history-item {
    display: grid;
    grid-template-columns: 62px minmax(0,1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 16px;
}

.cp-history-item img {
    width: 58px;
    height: 58px;
    border-radius: 13px;
    object-fit: cover;
}

.cp-history-item h3 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 850;
}

.cp-history-item p {
    margin: 0;
    color: #667085;
    font-size: 13px;
    line-height: 21px;
}

.cp-mentor-profile {
    padding: 27px;
    text-align: center;
}

.cp-mentor-profile > img {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    object-fit: cover;
}

.cp-mentor-profile h1 {
    margin: 16px 0 4px;
    font-size: 25px;
    font-weight: 900;
}

.cp-mentor-profile > p {
    color: #667085;
    font-size: 14px;
    line-height: 22px;
}

.cp-profile-stats {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    margin: 19px 0;
    border: 1px solid var(--cp-line);
    border-radius: 11px;
}

.cp-profile-stats div {
    padding: 13px 8px;
    border-right: 1px solid var(--cp-line);
}

.cp-profile-stats div:last-child {
    border-right: 0;
}

.cp-profile-stats strong {
    display: block;
    font-size: 17px;
}

.cp-profile-stats span {
    color: #667085;
    font-size: 11px;
}

.cp-profile-content {
    padding: 25px;
}

.cp-profile-content h2 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 900;
}

.cp-profile-content h3 {
    margin: 23px 0 9px;
    font-size: 16px;
    font-weight: 850;
}

.cp-profile-content p,.cp-profile-content li {
    color: #475467;
    font-size: 15px;
    line-height: 26px;
}

.cp-booking {
    padding: 20px;
}

.cp-booking h2 {
    margin: 0 0 5px;
    font-size: 19px;
    font-weight: 900;
}

.cp-booking > p {
    color: #667085;
    font-size: 14px;
}

.cp-date-row,.cp-slot-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 7px;
    margin: 12px 0;
}

.cp-date-choice,.cp-slot {
    min-height: 48px;
    padding: 7px;
    border: 1px solid var(--cp-line);
    border-radius: 8px;
    color: #475467;
    background: #fff;
    font-size: 12px;
    font-weight: 750;
    text-align: center;
}

a.cp-date-choice,a.cp-slot {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.cp-mentor-profile .cp-mentor-profile-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 4px;
    border-radius: 24px;
    font-size: 36px;
}

.cp-date-choice.active,.cp-slot.active {
    border-color: #74c9c1;
    color: var(--cp-teal);
    background: #eaf8f5;
}

/* Events and news */
.cp-event-grid,.cp-news-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}

.cp-event-card,.cp-news-card {
    overflow: hidden;
}

.cp-event-image,.cp-news-image {
    position: relative;
    height: 190px;
    overflow: hidden;
}

.cp-event-image img,.cp-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.cp-event-image-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 190px;
    color: #94a3b8;
    background: linear-gradient(135deg,#e8f7f4,#dbeafe);
    font-size: 2rem;
}

.cp-event-body h2 a {
    color: inherit;
    text-decoration: none;
}

.cp-event-body h2 a:hover {
    color: var(--cp-teal);
}

.cp-event-card:hover img,.cp-news-card:hover img {
    transform: scale(1.04);
}

.cp-event-date {
    position: absolute;
    top: 12px;
    left: 12px;
    min-width: 54px;
    padding: 7px;
    border-radius: 9px;
    color: var(--cp-teal);
    background: #fff;
    box-shadow: 0 5px 14px rgba(0,0,0,.15);
    text-align: center;
}

.cp-event-date strong {
    display: block;
    font-size: 20px;
}

.cp-event-date span {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.cp-event-body,.cp-news-body {
    padding: 18px;
}

.cp-event-body h2,.cp-event-body h3,.cp-news-body h2,.cp-news-body h3 {
    display: -webkit-box;
    min-height: 50px;
    overflow: hidden;
    margin: 9px 0 8px;
    font-size: 18px;
    font-weight: 850;
    line-height: 25px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.cp-event-body p,.cp-news-body p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 13px;
    color: #596773;
    font-size: 14px;
    line-height: 23px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.cp-event-meta {
    display: grid;
    gap: 7px;
    margin-bottom: 14px;
    color: #667085;
    font-size: 13px;
}

.cp-event-meta span {
    display: flex;
    gap: 7px;
}

.cp-capacity {
    margin-bottom: 13px;
}

.cp-capacity-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    color: #667085;
    font-size: 12px;
}

.cp-progress {
    height: 6px;
    overflow: hidden;
    border-radius: 5px;
    background: #e7ecee;
}

.cp-progress span {
    display: block;
    height: 100%;
    background: var(--cp-teal);
}

.cp-event-hero {
    position: relative;
    min-height: 390px;
    overflow: hidden;
    color: #fff;
    background: #18353a;
}

.cp-event-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .34;
}

.cp-event-hero::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg,rgba(6,31,35,.86),rgba(6,31,35,.22));
}

.cp-event-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 850px;
    padding-top: 80px;
    padding-bottom: 60px;
}

.cp-event-hero-copy h1 {
    margin: 12px 0 14px;
    font-size: 38px;
    font-weight: 900;
    line-height: 1.2;
}

.cp-event-hero-copy p {
    max-width: 720px;
    color: #def5f2;
    font-size: 15px;
    line-height: 25px;
}

.cp-event-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.cp-event-facts span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    font-size: 13px;
}

.cp-detail-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) 320px;
    align-items: start;
    gap: 26px;
}

.cp-article {
    padding: 27px;
}

.cp-article h2 {
    margin: 0 0 13px;
    font-size: 23px;
    font-weight: 900;
}

.cp-article h3 {
    margin: 25px 0 10px;
    font-size: 18px;
    font-weight: 850;
}

.cp-article p,.cp-article li {
    color: #45535f;
    font-size: 15px;
    line-height: 27px;
}

.cp-speaker {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 0;
    border-top: 1px solid #edf1f2;
}

.cp-speaker img {
    width: 62px;
    height: 62px;
    border-radius: 14px;
    object-fit: cover;
}

.cp-speaker strong {
    display: block;
    font-size: 15px;
}

.cp-speaker span {
    display: block;
    color: #667085;
    font-size: 13px;
}

.cp-speaker-avatar-fallback {
    display: grid;
    place-items: center;
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg,#0f766e,#22a69b);
    font-size: 20px;
    font-weight: 900;
}

.cp-event-map iframe {
    width: 100%;
    height: 300px;
    border: 0;
    border-radius: 10px;
}

.cp-register-card {
    padding: 21px;
}

.cp-register-card h2 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 900;
}

.cp-register-card > p {
    color: #667085;
    font-size: 14px;
    line-height: 22px;
}

.cp-fact-list {
    margin: 15px 0;
    padding: 0;
    list-style: none;
}

.cp-fact-list li {
    display: flex;
    gap: 9px;
    padding: 10px 0;
    border-top: 1px solid #edf1f2;
    color: #475467;
    font-size: 14px;
    line-height: 21px;
}

.cp-fact-list i {
    color: var(--cp-teal);
}

.cp-news-feature {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    overflow: hidden;
    margin-bottom: 24px;
}

.cp-news-feature img {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
}

.cp-news-feature-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
}

.cp-news-feature h2 {
    margin: 11px 0;
    font-size: 27px;
    font-weight: 900;
    line-height: 1.3;
}

.cp-news-feature p {
    color: #586673;
    font-size: 15px;
    line-height: 24px;
}

.cp-news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    color: #7b8994;
    font-size: 12px;
}

.cp-news-article-head {
    max-width: 850px;
    margin: 0 auto;
    padding: 32px 0 25px;
    text-align: center;
}

.cp-news-article-head h1 {
    margin: 13px 0;
    font-size: 38px;
    font-weight: 900;
    line-height: 1.25;
}

.cp-news-article-cover {
    width: 100%;
    max-height: 570px;
    border-radius: 16px;
    object-fit: cover;
}

.cp-news-article {
    margin: 0 auto;
    padding: 30px;
}

.cp-news-article .lead {
    color: #334155;
    font-size: 18px;
    font-weight: 600;
    line-height: 30px;
}

.cp-news-article p,.cp-news-article li {
    color: #45535f;
    font-size: 16px;
    line-height: 29px;
}

.cp-news-article h2 {
    margin: 30px 0 12px;
    font-size: 24px;
    font-weight: 900;
}

.cp-share-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 20px;
    border-top: 1px solid #edf1f2;
}

@media(max-width: 1199.98px) {
    .cp-card-grid,.cp-mentor-grid,.cp-event-grid,.cp-news-grid {
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width: 991.98px) {
    .cp-main {
        padding-top:72px;
    }

    .cp-layout,.cp-layout-wide,.cp-detail-layout {
        grid-template-columns: 1fr;
    }

    .cp-sticky {
        position: static;
    }

    .cp-filter-card {
        display: grid;
        grid-template-columns: repeat(2,1fr);
        gap: 0 20px;
    }

    .cp-filter-card h2 {
        grid-column: 1/-1;
    }

    .cp-mentor-profile {
        text-align: left;
    }
}

@media(max-width: 767.98px) {
    .cp-hero h1,.cp-event-hero-copy h1,.cp-news-article-head h1 {
        font-size:30px;
    }

    .cp-content {
        padding: 32px 0 52px;
    }

    .cp-section-head,.cp-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .cp-toolbar select {
        width: 100%;
    }

    .cp-toolbar .portal-select-wrap {
        width: 100%;
        min-width: 0;
    }

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

    .cp-filter-card h2 {
        grid-column: auto;
    }

    .cp-card-grid,.cp-mentor-grid,.cp-event-grid,.cp-news-grid,.cp-member-grid {
        grid-template-columns: 1fr;
    }

    .cp-post-card {
        grid-template-columns: 38px minmax(0,1fr);
        padding: 15px;
    }

    .cp-avatar {
        width: 38px;
        height: 38px;
    }

    .cp-detail-post,.cp-article,    .cp-news-article {
        padding: 20px;
    }

    .cp-detail-post h1 {
        font-size: 24px;
    }

    .cp-news-feature {
        grid-template-columns: 1fr;
    }

    .cp-news-feature img {
        min-height: 220px;
    }

    .cp-history-item {
        grid-template-columns: 52px minmax(0,1fr);
    }

    .cp-history-item > :last-child {
        grid-column: 1/-1;
    }

    .cp-schedule-item {
        grid-template-columns: 52px minmax(0,1fr);
    }

    .cp-schedule-item > :last-child {
        grid-column: 1/-1;
    }

    .cp-date-row,.cp-slot-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

/* Blazor MainLayout: header sticky — không chừa 79px như mockup */
.cp-page .cp-main,
.cp-main {
    padding-top: 0;
    min-height: 0;
}

/* Nhóm học tập của tôi */
.cp-my-groups-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.cp-my-groups-tabs-card {
    flex: 0 1 auto;
    width: fit-content;
    max-width: 100%;
    padding: 6px 8px;
    margin-bottom: 0;
    overflow: hidden;
}

.cp-my-groups-tabs-card .cp-tabs {
    display: flex;
    gap: 2px;
    margin: 0;
    overflow: visible;
    border-bottom: 0;
    background: transparent;
}

.cp-my-groups-tabs-card .cp-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    color: #667085;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    transition: color .15s ease, background .15s ease;
}

.cp-my-groups-tabs-card .cp-tab i {
    margin: 0 !important;
    font-size: 14px;
}

.cp-my-groups-tabs-card .cp-tab:hover {
    color: var(--cp-teal);
    background: #f0faf8;
}

.cp-my-groups-tabs-card .cp-tab.active {
    color: var(--cp-teal);
    background: #eaf9f6;
}

.cp-my-groups-tabs-card .cp-tab.active::after {
    display: none;
}

.cp-my-groups-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.cp-my-groups-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.cp-my-groups-section-head h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 20px;
    font-weight: 850;
}

.cp-group-card-managed {
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.22);
}

.cp-group-body h2 a {
    color: inherit;
    text-decoration: none;
}

.cp-group-body h2 a:hover {
    color: var(--cp-teal);
}

.cp-my-groups-empty .portal-card-body {
    max-width: 520px;
    margin: 0 auto;
}

.cp-news-article .cp-richtext img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.cp-comment-thread {
    margin-left: 24px;
    border-left: 2px solid #edf1f2;
    padding: 6px 0 6px 12px;
    margin-top: 10px;
}

.cp-comment-form {
    margin-bottom: 18px;
}

.cp-comment-form .portal-textarea {
    width: 100%;
}

.cp-comment-reply-form {
    margin-top: 8px;
}
