/* Modern public pages: Teachers, Courses and combined Gallery. */
.cc-public-page {
    --public-blue: var(--cc-primary, #0b4edb);
    --public-navy: var(--cc-navy, #062d6d);
    --public-gold: var(--cc-secondary, #ffb703);
    --public-card: #ffffff;
    --public-bg: #f4f7fc;
    --public-text: #25334b;
    --public-muted: #64748b;
    background: var(--public-bg);
    color: var(--public-text);
    min-height: 65vh;
}
.cc-public-hero {
    position: relative;
    overflow: hidden;
    padding: 58px 0;
    color: #fff;
    background:
        radial-gradient(circle at 85% 20%, rgba(255,255,255,.18), transparent 25%),
        linear-gradient(130deg, var(--public-navy), var(--public-blue));
}
.cc-public-hero::before,
.cc-public-hero::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.12);
}
.cc-public-hero::before { right: -80px; top: -145px; }
.cc-public-hero::after { left: 38%; bottom: -225px; }
.cc-public-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 22px;
}
.cc-public-hero-icon {
    width: 78px;
    height: 78px;
    flex: 0 0 78px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    color: var(--public-navy);
    background: linear-gradient(145deg, #fff, #e7efff);
    box-shadow: 0 20px 40px rgba(0,0,0,.18);
    font-size: 32px;
    transform: rotate(-4deg);
}
.cc-public-eyebrow {
    margin: 0 0 6px;
    color: #ffe48a;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: .3px;
}
.cc-public-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.14;
    font-weight: 900;
}
.cc-public-hero h1 + p {
    max-width: 680px;
    margin: 12px 0 0;
    color: rgba(255,255,255,.82);
    font-size: 16px;
    line-height: 1.75;
}
.cc-public-body { padding: 56px 0 76px; }
.cc-public-toolbar,
.cc-gallery-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
    padding: 14px;
    border: 1px solid #e1e9f5;
    border-radius: 18px;
    background: rgba(255,255,255,.86);
    box-shadow: 0 12px 30px rgba(30, 64, 128, .06);
}
.cc-public-search {
    width: min(100%, 370px);
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 15px;
    border: 1px solid #dbe5f2;
    border-radius: 14px;
    background: #fff;
    color: var(--public-blue);
}
.cc-public-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    box-shadow: none;
    background: transparent;
    color: #1e293b;
    font: inherit;
}
.cc-public-search input::placeholder { color: #94a3b8; }
.cc-public-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.cc-public-filters button {
    min-height: 42px;
    padding: 8px 15px;
    border: 1px solid #dfe7f2;
    border-radius: 999px;
    background: #fff;
    color: #475569;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}
.cc-public-filters button:hover,
.cc-public-filters button.is-active {
    border-color: var(--public-blue);
    background: var(--public-blue);
    color: #fff;
    transform: translateY(-1px);
}
.cc-public-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 999px;
    background: #eaf1ff;
    color: var(--public-navy);
    font-weight: 700;
}
.cc-public-count strong { color: var(--public-blue); font-size: 18px; }

/* Teachers */
.cc-teacher-directory {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}
.cc-teacher-directory-card {
    overflow: hidden;
    border: 1px solid #e1e9f4;
    border-radius: 22px;
    background: var(--public-card);
    box-shadow: 0 14px 32px rgba(24, 58, 116, .07);
    transition: transform .25s ease, box-shadow .25s ease;
}
.cc-teacher-directory-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 22px 44px rgba(24, 58, 116, .14);
}
.cc-teacher-photo {
    position: relative;
    display: block;
    aspect-ratio: 4 / 4.4;
    overflow: hidden;
    background: linear-gradient(145deg, #eaf1ff, #f8fbff);
}
.cc-teacher-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cc-teacher-directory-card:hover .cc-teacher-photo img { transform: scale(1.055); }
.cc-teacher-photo > span:first-child { width: 100%; height: 100%; display: grid; place-items: center; color: #9ab0d0; font-size: 58px; }
.cc-teacher-view {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.94);
    color: var(--public-blue);
    box-shadow: 0 8px 20px rgba(0,0,0,.14);
}
.cc-teacher-card-body { padding: 20px; text-align: center; }
.cc-teacher-card-label {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--public-blue);
    font-size: 11px;
    font-weight: 800;
}
.cc-teacher-card-body h2 { margin: 10px 0 4px; font-size: 18px; line-height: 1.35; }
.cc-teacher-card-body h2 a { color: #12294f; }
.cc-teacher-designation { min-height: 24px; margin: 0 0 15px; color: var(--public-muted); font-size: 13px; }
.cc-teacher-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cc-teacher-card-actions a {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid #dce6f4;
    border-radius: 11px;
    color: var(--public-navy);
    font-size: 13px;
    font-weight: 800;
}
.cc-teacher-card-actions a:first-child { background: var(--public-blue); border-color: var(--public-blue); color: #fff; }

/* Courses */
.cc-modern-course-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.cc-modern-course-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid color-mix(in srgb, var(--course-accent) 24%, #e1e8f3);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 15px 36px rgba(26, 61, 123, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}
.cc-modern-course-card:hover { transform: translateY(-7px); box-shadow: 0 24px 46px rgba(26, 61, 123, .15); }
.cc-modern-course-media {
    position: relative;
    display: block;
    height: 210px;
    overflow: hidden;
    background: linear-gradient(145deg, color-mix(in srgb, var(--course-accent) 10%, #fff), #f7f9fd);
}
.cc-modern-course-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.cc-modern-course-card:hover .cc-modern-course-media img { transform: scale(1.055); }
.cc-modern-course-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--course-accent); font-size: 68px; }
.cc-modern-course-icon {
    position: absolute;
    left: 18px;
    bottom: 16px;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--course-accent);
    color: #fff;
    box-shadow: 0 12px 26px color-mix(in srgb, var(--course-accent) 34%, transparent);
    font-size: 21px;
}
.cc-modern-course-content { display: flex; flex-direction: column; flex: 1; padding: 21px; }
.cc-modern-course-meta { min-height: 24px; display: flex; flex-wrap: wrap; gap: 8px 12px; color: #64748b; font-size: 12px; }
.cc-modern-course-meta span { display: inline-flex; align-items: center; gap: 5px; }
.cc-modern-course-meta i { color: var(--course-accent); }
.cc-modern-course-content h2 { margin: 10px 0 9px; font-size: 21px; line-height: 1.35; }
.cc-modern-course-content h2 a { color: #12294f; }
.cc-modern-course-content p { flex: 1; margin: 0 0 18px; color: #5f6f87; line-height: 1.7; font-size: 14px; }
.cc-public-card-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--course-accent) 10%, #fff);
    color: var(--course-accent);
    font-weight: 800;
}
.cc-public-card-button:hover { background: var(--course-accent); color: #fff; }

/* Combined gallery */
.cc-gallery-toolbar { align-items: stretch; }
.cc-gallery-filters button { display: inline-flex; align-items: center; gap: 7px; border-radius: 13px; }
.cc-gallery-filters button strong {
    min-width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #edf2fb;
    color: #44546d;
    font-size: 11px;
}
.cc-gallery-filters button.is-active strong { background: rgba(255,255,255,.2); color: #fff; }
.cc-combined-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.cc-gallery-item {
    overflow: hidden;
    border: 1px solid #e1e9f4;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(24, 58, 116, .07);
    transition: transform .25s ease, box-shadow .25s ease;
}
.cc-gallery-item:hover { transform: translateY(-6px); box-shadow: 0 22px 42px rgba(24, 58, 116, .14); }
.cc-gallery-item-media { position: relative; display: block; height: 250px; overflow: hidden; background: #eaf0f8; }
.cc-gallery-item-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.cc-gallery-item:hover img { transform: scale(1.06); }
.cc-gallery-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #9ab0d0; font-size: 62px; }
.cc-gallery-item-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(4,21,49,.62)); }
.cc-gallery-type {
    position: absolute;
    z-index: 2;
    left: 14px;
    top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: var(--public-navy);
    font-size: 12px;
    font-weight: 800;
}
.cc-gallery-open,
.cc-gallery-play {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.94);
    color: var(--public-blue);
    box-shadow: 0 12px 28px rgba(0,0,0,.2);
    transform: translate(-50%, -42%) scale(.86);
    opacity: 0;
    transition: .25s ease;
}
.cc-gallery-play { opacity: 1; transform: translate(-50%, -50%); color: #e11d48; }
.cc-gallery-item:hover .cc-gallery-open { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cc-gallery-item:hover .cc-gallery-play { transform: translate(-50%, -50%) scale(1.08); }
.cc-gallery-item-body { padding: 17px 18px 19px; }
.cc-gallery-item-body h2 { margin: 0 0 7px; font-size: 17px; line-height: 1.45; }
.cc-gallery-item-body h2 a { color: #12294f; }
.cc-gallery-item-body small { display: inline-flex; align-items: center; gap: 6px; color: #74839a; }

.cc-directory-empty {
    padding: 58px 20px;
    border: 1px dashed #cdd9e9;
    border-radius: 20px;
    background: rgba(255,255,255,.8);
    text-align: center;
    color: #64748b;
}
.cc-directory-empty i { display: block; margin-bottom: 12px; color: #a8b8cf; font-size: 42px; }
.cc-directory-empty p { margin: 0; font-weight: 700; }
[hidden] { display: none !important; }

html[data-cc-theme="dark"] .cc-public-page {
    --public-card: #11213a;
    --public-bg: #081426;
    --public-text: #e8f1ff;
    --public-muted: #a6b8d0;
}
html[data-cc-theme="dark"] .cc-public-toolbar,
html[data-cc-theme="dark"] .cc-gallery-toolbar,
html[data-cc-theme="dark"] .cc-public-search,
html[data-cc-theme="dark"] .cc-public-filters button,
html[data-cc-theme="dark"] .cc-teacher-directory-card,
html[data-cc-theme="dark"] .cc-modern-course-card,
html[data-cc-theme="dark"] .cc-gallery-item,
html[data-cc-theme="dark"] .cc-directory-empty { background: #11213a; border-color: #223754; }
html[data-cc-theme="dark"] .cc-public-search input,
html[data-cc-theme="dark"] .cc-teacher-card-body h2 a,
html[data-cc-theme="dark"] .cc-modern-course-content h2 a,
html[data-cc-theme="dark"] .cc-gallery-item-body h2 a { color: #eef5ff; }
html[data-cc-theme="dark"] .cc-teacher-designation,
html[data-cc-theme="dark"] .cc-modern-course-content p,
html[data-cc-theme="dark"] .cc-gallery-item-body small { color: #a6b8d0; }
html[data-cc-theme="dark"] .cc-admission-contact-body { color: inherit; }

@media (max-width: 1100px) {
    .cc-teacher-directory { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cc-modern-course-grid, .cc-combined-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .cc-public-hero { padding: 42px 0; }
    .cc-public-hero-inner { align-items: flex-start; gap: 15px; }
    .cc-public-hero-icon { width: 58px; height: 58px; flex-basis: 58px; border-radius: 17px; font-size: 24px; }
    .cc-public-hero h1 { font-size: 31px; }
    .cc-public-body { padding: 34px 0 54px; }
    .cc-public-toolbar, .cc-gallery-toolbar { flex-direction: column; align-items: stretch; }
    .cc-public-search { width: auto; }
    .cc-public-filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 3px; }
    .cc-public-filters button { flex: 0 0 auto; }
    .cc-teacher-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .cc-modern-course-grid, .cc-combined-gallery-grid { grid-template-columns: 1fr; gap: 16px; }
    .cc-modern-course-media, .cc-gallery-item-media { height: 220px; }
}
@media (max-width: 480px) {
    .cc-public-hero-inner { display: block; }
    .cc-public-hero-icon { margin-bottom: 16px; }
    .cc-public-hero h1 { font-size: 28px; }
    .cc-teacher-directory { grid-template-columns: 1fr; }
    .cc-teacher-photo { aspect-ratio: 4 / 3.8; }
}

/* v5.8: management teachers + homepage-matching compact course cards */
.cc-teacher-qualification {
    min-height: 22px;
    margin: -8px 0 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #66758b;
    font-size: 12px;
}
.cc-teacher-qualification i { color: var(--public-blue); }
.cc-course-page-compact { overflow: visible; }
.cc-course-page-compact .cc-course-grid { margin: 0; }
.cc-course-page-compact .cc-course-card h3 a { color: inherit; }
.cc-course-page-compact .cc-course-card h3 a:hover { color: inherit; }

.cc-teacher-profile-card {
    display: grid;
    grid-template-columns: minmax(280px, 410px) minmax(0, 1fr);
    gap: 36px;
    padding: 28px;
    border: 1px solid #e1e9f4;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(23, 57, 116, .09);
}
.cc-teacher-profile-photo {
    min-height: 440px;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(145deg, #edf4ff, #f8fbff);
}
.cc-teacher-profile-photo img { width: 100%; height: 100%; min-height: 440px; display: block; object-fit: cover; }
.cc-teacher-profile-photo > span { min-height: 440px; display: grid; place-items: center; color: #9ab0d0; font-size: 92px; }
.cc-teacher-profile-content { min-width: 0; padding: 12px 5px; }
.cc-teacher-profile-content h2 { margin: 10px 0 4px; color: #12294f; font-size: clamp(30px, 4vw, 46px); line-height: 1.18; }
.cc-teacher-profile-designation { margin: 0 0 24px; color: var(--public-blue); font-size: 17px; font-weight: 800; }
.cc-teacher-profile-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cc-teacher-profile-info > div {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e3eaf4;
    border-radius: 15px;
    background: #f9fbff;
}
.cc-teacher-profile-info > div > i {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #eaf2ff;
    color: var(--public-blue);
}
.cc-teacher-profile-info span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cc-teacher-profile-info small { color: #75849a; font-size: 11px; }
.cc-teacher-profile-info strong { overflow-wrap: anywhere; color: #1b3155; font-size: 13px; }
.cc-teacher-subjects { margin-top: 24px; }
.cc-teacher-subjects h3 { margin: 0 0 11px; color: #18315a; font-size: 18px; }
.cc-teacher-subjects > div { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-teacher-subjects span { padding: 8px 11px; border-radius: 999px; background: #edf4ff; color: #174f9a; font-size: 12px; font-weight: 700; }
.cc-teacher-profile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.cc-teacher-profile-actions .cc-public-card-button { min-width: 150px; background: var(--public-blue); color: #fff; }
.cc-teacher-back-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 15px;
    border: 1px solid #d8e3f2;
    border-radius: 12px;
    color: #173d71;
    font-weight: 800;
}
html[data-cc-theme="dark"] .cc-teacher-qualification { color: #a6b8d0; }
html[data-cc-theme="dark"] .cc-teacher-profile-card { background: #11213a; border-color: #223754; }
html[data-cc-theme="dark"] .cc-teacher-profile-content h2,
html[data-cc-theme="dark"] .cc-teacher-profile-info strong,
html[data-cc-theme="dark"] .cc-teacher-subjects h3 { color: #eef5ff; }
html[data-cc-theme="dark"] .cc-teacher-profile-info > div { background: #142640; border-color: #29405f; }
html[data-cc-theme="dark"] .cc-teacher-profile-info small { color: #a6b8d0; }
html[data-cc-theme="dark"] .cc-teacher-subjects span { background: #183151; color: #cfe2ff; }
html[data-cc-theme="dark"] .cc-teacher-back-link { border-color: #2b4567; color: #dceaff; }
@media (max-width: 900px) {
    .cc-teacher-profile-card { grid-template-columns: 1fr; gap: 23px; }
    .cc-teacher-profile-photo, .cc-teacher-profile-photo img, .cc-teacher-profile-photo > span { min-height: 360px; }
}
@media (max-width: 600px) {
    .cc-teacher-profile-card { padding: 16px; border-radius: 20px; }
    .cc-teacher-profile-photo, .cc-teacher-profile-photo img, .cc-teacher-profile-photo > span { min-height: 300px; }
    .cc-teacher-profile-info { grid-template-columns: 1fr; }
    .cc-teacher-profile-actions { flex-direction: column; }
    .cc-teacher-profile-actions a { width: 100%; box-sizing: border-box; }
}

/* v5.9 Management Board, Officers, Employees and Teachers */
.cc-management-board-hero {
    background:
        radial-gradient(circle at 88% 18%, rgba(255,255,255,.2), transparent 24%),
        linear-gradient(132deg, #071f4b 0%, #0b4edb 58%, #0f8fc9 100%);
}
.cc-management-directory-page .cc-public-hero {
    background:
        radial-gradient(circle at 86% 18%, rgba(255,255,255,.18), transparent 25%),
        linear-gradient(132deg, color-mix(in srgb, var(--group-accent) 62%, #071f4b), var(--group-accent));
}
.cc-management-directory-page .cc-public-hero-icon {
    color: var(--group-accent);
}
.cc-management-intro {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
}
.cc-management-intro > span,
.cc-management-latest-heading span {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eaf1ff;
    color: var(--public-blue);
    font-size: 12px;
    font-weight: 800;
}
.cc-management-intro h2,
.cc-management-latest-heading h2 {
    margin: 12px 0 8px;
    color: #102a56;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
}
.cc-management-intro p {
    margin: 0;
    color: var(--public-muted);
    line-height: 1.8;
}
.cc-management-group-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 52px;
}
.cc-management-group-card {
    position: relative;
    overflow: hidden;
    padding: 26px;
    border: 1px solid color-mix(in srgb, var(--group-accent) 24%, #dfe7f2);
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--group-accent) 13%, transparent), transparent 34%),
        #fff;
    box-shadow: 0 16px 38px rgba(23, 57, 116, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}
.cc-management-group-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: var(--group-accent);
}
.cc-management-group-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 48px rgba(23, 57, 116, .15);
}
.cc-management-group-icon {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: color-mix(in srgb, var(--group-accent) 12%, #fff);
    color: var(--group-accent);
    font-size: 27px;
}
.cc-management-group-count {
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    align-items: baseline;
    gap: 4px;
    color: var(--public-muted);
    font-size: 12px;
}
.cc-management-group-count strong {
    color: var(--group-accent);
    font-size: 28px;
    line-height: 1;
}
.cc-management-group-card h2 {
    margin: 20px 0 8px;
    color: #102a56;
    font-size: 24px;
}
.cc-management-group-card p {
    min-height: 88px;
    margin: 0 0 20px;
    color: #64748b;
    line-height: 1.75;
    font-size: 14px;
}
.cc-management-group-card > a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 15px;
    border-radius: 13px;
    background: var(--group-accent);
    color: #fff;
    font-weight: 800;
}
.cc-management-latest-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin: 0 0 24px;
}
.cc-management-latest-heading h2 {
    margin-bottom: 0;
    font-size: clamp(25px, 3vw, 34px);
}
.cc-management-page-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 24px;
    padding: 10px;
    border: 1px solid #e1e9f5;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(30, 64, 128, .06);
}
.cc-management-page-nav a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 12px;
    color: #45566f;
    font-weight: 800;
}
.cc-management-page-nav a:hover,
.cc-management-page-nav a.is-active {
    background: var(--group-accent, var(--public-blue));
    color: #fff;
}
.cc-management-toolbar .cc-public-count {
    background: color-mix(in srgb, var(--group-accent) 10%, #fff);
}
.cc-management-toolbar .cc-public-count strong,
.cc-management-toolbar .cc-public-count i {
    color: var(--group-accent);
}
.cc-management-member-card {
    border-top: 4px solid var(--group-accent, var(--public-blue));
}
.cc-management-member-card .cc-teacher-card-label {
    background: color-mix(in srgb, var(--group-accent, var(--public-blue)) 10%, #fff);
    color: var(--group-accent, var(--public-blue));
}
.cc-management-member-card .cc-teacher-card-actions a:first-child {
    border-color: var(--group-accent, var(--public-blue));
    background: var(--group-accent, var(--public-blue));
}
.cc-teacher-card-actions.cc-single-action {
    grid-template-columns: 1fr;
}

/* Modern single member profile */
.cc-member-profile-card {
    display: grid;
    grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
    gap: 34px;
    padding: 28px;
    border: 1px solid #e1e9f4;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(23, 57, 116, .1);
}
.cc-member-profile-photo {
    position: relative;
    min-height: 470px;
    overflow: hidden;
    border-radius: 23px;
    background: linear-gradient(145deg, #edf4ff, #f8fbff);
}
.cc-member-profile-photo img {
    width: 100%;
    height: 100%;
    min-height: 470px;
    display: block;
    object-fit: cover;
}
.cc-member-profile-photo > span:first-child {
    min-height: 470px;
    display: grid;
    place-items: center;
    color: #9ab0d0;
    font-size: 92px;
}
.cc-member-role-badge {
    position: absolute;
    left: 18px;
    bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    color: var(--public-blue);
    font-weight: 900;
    box-shadow: 0 10px 28px rgba(0,0,0,.16);
}
.cc-member-profile-content {
    min-width: 0;
    padding: 12px 6px;
}
.cc-member-profile-content h2 {
    margin: 12px 0 4px;
    color: #102a56;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.16;
}
.cc-member-profile-designation {
    margin: 0 0 24px;
    color: var(--public-blue);
    font-size: 18px;
    font-weight: 800;
}
.cc-member-profile-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 26px;
}
.cc-member-profile-info > div {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e3eaf4;
    border-radius: 15px;
    background: #f8fbff;
}
.cc-member-profile-info > div > i {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #e8f0ff;
    color: var(--public-blue);
}
.cc-member-profile-info span {
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.cc-member-profile-info small {
    color: #7a899e;
    font-size: 11px;
}
.cc-member-profile-info strong {
    overflow-wrap: anywhere;
    color: #263b5d;
    font-size: 13px;
}
.cc-member-profile-bio {
    color: #52627a;
    line-height: 1.85;
}
.cc-member-profile-bio h3 {
    margin: 0 0 12px;
    color: #102a56;
    font-size: 22px;
}
.cc-member-profile-bio img {
    border-radius: 16px;
}
.cc-member-profile-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #e5ebf4;
}
.cc-member-profile-actions a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 12px;
    font-weight: 800;
}
.cc-member-back {
    border: 1px solid #dbe5f2;
    background: #fff;
    color: #294467;
}
.cc-member-call {
    background: var(--public-blue);
    color: #fff;
}

html[data-cc-theme="dark"] .cc-management-intro h2,
html[data-cc-theme="dark"] .cc-management-latest-heading h2,
html[data-cc-theme="dark"] .cc-management-group-card h2,
html[data-cc-theme="dark"] .cc-member-profile-content h2,
html[data-cc-theme="dark"] .cc-member-profile-bio h3 {
    color: #eef5ff;
}
html[data-cc-theme="dark"] .cc-management-group-card,
html[data-cc-theme="dark"] .cc-management-page-nav,
html[data-cc-theme="dark"] .cc-member-profile-card,
html[data-cc-theme="dark"] .cc-member-back {
    background: #11213a;
    border-color: #223754;
}
html[data-cc-theme="dark"] .cc-management-group-card p,
html[data-cc-theme="dark"] .cc-member-profile-bio {
    color: #a9bad0;
}
html[data-cc-theme="dark"] .cc-member-profile-info > div {
    background: #0c1a2e;
    border-color: #223754;
}
html[data-cc-theme="dark"] .cc-member-profile-info strong,
html[data-cc-theme="dark"] .cc-member-back {
    color: #eef5ff;
}

@media (max-width: 980px) {
    .cc-management-group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cc-member-profile-card { grid-template-columns: 1fr; }
    .cc-member-profile-photo { min-height: 420px; }
    .cc-member-profile-photo img { min-height: 420px; }
}
@media (max-width: 680px) {
    .cc-management-group-grid { grid-template-columns: 1fr; }
    .cc-management-group-card p { min-height: 0; }
    .cc-management-page-nav { overflow-x: auto; flex-wrap: nowrap; }
    .cc-management-page-nav a { flex: 0 0 auto; }
    .cc-member-profile-card { padding: 16px; border-radius: 20px; }
    .cc-member-profile-photo,
    .cc-member-profile-photo img,
    .cc-member-profile-photo > span:first-child { min-height: 360px; }
    .cc-member-profile-info { grid-template-columns: 1fr; }
    .cc-member-profile-content h2 { font-size: 30px; }
}
