/* Homepage collection: original technology imagery and the shared home palette. */
.ct-home-camps { padding: 90px 0 72px; color: var(--ct-ink); scroll-margin-top: 100px; }
.ct-home-camps-heading { margin: 0 auto 46px; }
.ct-home-camps-eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--ct-accent); font-size: 14px; font-weight: 650; margin: 0 0 15px; }
.ct-home-camps-eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 5px var(--ct-soft); }
.ct-home-camps-title { font-size: clamp(30px,3.25vw,44px); line-height: 1.6; font-weight: 800; color: var(--ct-ink); margin: 0; letter-spacing: -.7px; }
.ct-home-camps-title > span:last-child { display: inline-block; position: relative; color: var(--ct-accent); }
.ct-home-camps-underline { position: absolute; width: 100%; height: 12px; inset: auto 0 -3px; }
.ct-home-camps-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; align-items: start; }
.ct-home-camp { min-width: 0; overflow: hidden; border: 1px solid var(--ct-line); border-radius: 24px; background: var(--ct-surface); box-shadow: 0 14px 38px -30px #37214d45; transition: border-color .25s, box-shadow .25s; }
.ct-home-camp:hover, .ct-home-camp:focus-within { border-color: var(--ct-accent); box-shadow: 0 22px 44px -28px #57357955; }
.ct-home-camp--featured { border-color: var(--ct-accent); box-shadow: 0 18px 45px -25px #7750b24d; }
.ct-home-camp-cover { display: grid; place-items: center; position: relative; overflow: hidden; height: 178px; background: var(--ct-surface); border-bottom: 1px solid var(--ct-line); color: var(--ct-accent); }
.ct-home-camp--full .ct-home-camp-cover { background: #7750b2; color: #fff; }
.ct-home-camp-edition { position: absolute; top: 17px; left: 20px; display: inline-flex; align-items: center; min-height: 30px; padding: 4px 10px; border: 1px solid var(--ct-line); border-radius: 7px; background: var(--ct-soft); color: var(--ct-accent); font: 750 13px/1.4 ui-monospace,monospace; letter-spacing: .65px; }
.ct-home-camp--full .ct-home-camp-edition { color: #fff; background: #ffffff16; border-color: #ffffff55; }
.ct-home-camp-original { width: 100px; height: 100px; object-fit: contain; }
.ct-home-camp:is(:hover,:focus-within) :is(.ct-home-camp-original,.ct-home-camp-custom-art) { animation: tada .5s ease; }
.ct-home-camp-custom-art { display: block; width: 100%; height: 100%; object-fit: contain; padding: 32px; }
.ct-home-camp-fallback { display: grid; place-items: center; height: 100%; font: 600 32px/1 monospace; }
.ct-home-camp-content { padding: 23px; }
.ct-home-camp-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--ct-accent); font-size: 12px; font-weight: 750; margin-bottom: 16px; padding-bottom: 15px; border-bottom: 1px solid var(--ct-line); }
.ct-home-camp-meta > span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.ct-home-camp-meta > span:first-child::before { content: ''; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.ct-home-camp-count { display: inline-flex; align-items: center; gap: 7px; color: var(--ct-ink); font-size: 12px; font-weight: 650; white-space: nowrap; }
.ct-home-camp-count b { color: var(--ct-accent); font: 600 23px/1.2 ui-monospace,monospace; }
.ct-home-camp h3 { font-size: 22px; line-height: 1.55; letter-spacing: -.3px; color: var(--ct-ink); margin: 5px 0 14px; min-height: 69px; font-weight: 750; }
.ct-home-camp h3 a { color: inherit; text-decoration: none; }
.ct-home-camp h3 a:hover { color: inherit; }
.ct-home-camp h3 a:hover .ct-home-camp-title-emphasis { text-decoration: underline; text-underline-offset: 5px; }
.ct-home-camp-title-line, .ct-home-camp-title-emphasis { display: block; }
.ct-home-camp-title-emphasis { color: var(--ct-accent); }
.ct-home-camp-copy--primary { min-height: 0; }
.ct-home-camp-subtitle { display: flex; align-items: center; min-height: 43px; margin: 0; color: var(--ct-muted); font-size: 13px; line-height: 1.65; font-weight: 600; }
.ct-home-camp-technologies { color: var(--ct-accent); font-size: 13px; line-height: 1.8; margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.ct-home-camp-copy--primary .ct-home-camp-technologies { min-height: 43px; display: flex; align-items: center; }
.ct-home-camp-using { margin: 0 0 9px; font-size: 12px; line-height: 1.5; font-weight: 700; color: var(--ct-accent); }
.ct-home-camp-tools .ct-home-camp-subjects { grid-template-columns: repeat(var(--ct-home-tool-columns,2),minmax(0,1fr)); gap: 7px; }
.ct-home-camp-tools .ct-home-camp-subjects a { justify-content: center; gap: 4px; padding: 6px; min-height: 46px; font-size: 11px; }
.ct-home-camp-tools .ct-home-camp-subject-icon { flex-basis: 22px; }
.ct-home-camp-tools .ct-home-camp-subject-icon img { width: 22px; height: 22px; }
.ct-home-camp-tools .ct-home-camp-subject-arrow { display: none; }
.ct-home-camp-tools .ct-home-camp-subjects a > span[dir] { white-space: nowrap; }
.ct-home-camp-copy--translation { border: 0; border-radius: 0; padding: 0; min-height: 132px; margin: 12px 0 23px; background: transparent; }
.ct-home-camp-copy--translation[lang="en"] :is(p,span) { font-family: var(--tp-ff-body,'Outfit'),Arial,sans-serif !important; }
.ct-home-camp-copy--translation .ct-home-camp-subtitle { display: flex; align-items: flex-start; gap: 10px; min-height: 32px; font-size: 11px; line-height: 1.5; margin: 0 0 10px; font-weight: 500; color: var(--ct-muted); }
.ct-home-camp-copy--translation[lang="en"] .ct-home-camp-subtitle { font-size: 10px; letter-spacing: .65px; text-transform: uppercase; }
.ct-home-camp-copy--translation .ct-home-camp-subtitle::before { content: ''; flex: 0 0 18px; height: 2px; margin-top: 6px; border-radius: 2px; background: var(--ct-accent); }
.ct-home-camp-translated-title { color: var(--ct-ink); font-size: 19px; line-height: 1.35; letter-spacing: -.25px; font-weight: 600; min-height: 52px; margin: 0; }
.ct-home-camp-copy--translation .ct-home-camp-technologies { display: flex; align-items: center; gap: 8px; color: var(--ct-muted); font-size: 12px; line-height: 1.6; font-weight: 400; margin-bottom: 21px; }
.ct-home-camp-copy--translation .ct-home-camp-code-mark { flex: 0 0 auto; color: var(--ct-accent); font-family: ui-monospace,monospace !important; font-size: 13px; font-weight: 650; letter-spacing: -.7px; }
.ct-home-camp-curriculum { border-top: 1px solid var(--ct-line); padding-top: 17px; }
.ct-home-camp-subjects { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 0; margin: 0; list-style: none; }
.ct-home-camp-subjects li { min-width: 0; }
.ct-home-camp-subjects a { display: flex; align-items: center; gap: 7px; min-height: 48px; height: 100%; padding: 7px 8px; background: var(--ct-page); color: var(--ct-ink); border: 1px solid var(--ct-line); border-radius: 10px; font: 600 11px/1.4 Arial,sans-serif; text-decoration: none; transition: background .2s,border-color .2s; }
.ct-home-camp-subjects a:hover { background: var(--ct-soft); border-color: var(--ct-accent); }
.ct-home-camp-subjects a > span:not(.ct-home-camp-subject-icon):not(.ct-home-camp-subject-arrow) { overflow-wrap: anywhere; }
.ct-home-camp-subject-icon { flex: 0 0 26px; display: grid; place-items: center; }
.ct-home-camp-subject-icon img { object-fit: contain; width: 26px; height: 26px; }
.ct-home-camp-subject-arrow { margin-inline-start: auto; color: var(--ct-accent); font-size: 12px; }
.ct-home-camp-subjects small { display: block; font-family: inherit; font-size: 10px; color: var(--ct-muted); margin-top: 3px; }
.ct-home-camp-more { margin-top: 0; }
.ct-home-camp-more summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; color: var(--ct-accent); font-size: 12px; font-weight: 650; cursor: pointer; list-style: none; border-radius: 7px; }
.ct-home-camp-more summary::-webkit-details-marker { display: none; }
.ct-home-camp-plus { display: grid; place-items: center; flex: 0 0 22px; width: 22px; height: 22px; padding: 0; color: var(--ct-accent); background: var(--ct-soft); border: 1px solid color-mix(in srgb,var(--ct-accent) 55%,var(--ct-line)); border-radius: 50%; line-height: 0; box-shadow: 0 1px 2px #37214d12; transition: transform .2s,background .2s,color .2s; }
.ct-home-camp-plus svg { display: block; width: 12px; height: 12px; }
.ct-home-camp-plus path { stroke-width: 2.5; }
.ct-home-camp-more summary:hover .ct-home-camp-plus, .ct-home-camp-more summary:focus-visible .ct-home-camp-plus { color: var(--ct-surface); background: var(--ct-accent); border-color: var(--ct-accent); }
.ct-home-camp-open, .ct-home-camp-more[open] .ct-home-camp-closed { display: none; }
.ct-home-camp-more[open] .ct-home-camp-open { display: inline; }
.ct-home-camp-more[open] .ct-home-camp-plus { transform: rotate(45deg); }
.ct-home-camp-more[open] .ct-home-camp-subjects { padding: 12px 0 8px; }
.ct-home-camp-empty { min-height: 44px; color: var(--ct-muted); font-size: 13px; line-height: 2; margin: 0; }
.ct-home-camp-actions { display: flex; align-items: center; justify-content: space-between; flex-direction: row-reverse; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--ct-line); margin-top: 13px; padding-top: 18px; }
.ct-home-camp-cta { display: inline-flex; justify-content: space-between; align-items: center; gap: 28px; min-height: 44px; padding: 9px 17px; border: 1px solid var(--ct-accent); background: var(--ct-surface); color: var(--ct-accent); border-radius: 11px; font-size: 13px; font-weight: 750; text-decoration: none; transition: background .2s,color .2s; }
.ct-home-camp--featured .ct-home-camp-cta { background: #7750b2; color: #fff; border-color: #7750b2; }
.ct-home-camp-cta:hover { background: #5b378d; border-color: #5b378d; color: #fff; }
.ct-home-camp-cta > span { font: 20px/1 sans-serif; }
.ct-home-camp-action-note { font-size: 11px; color: var(--ct-ink); font-weight: 650; }
.ct-home-camps :is(a,summary):focus-visible { outline: 3px solid var(--ct-accent); outline-offset: 4px; }
.ct-home-camps-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--ct-line); margin-top: 32px; padding-top: 23px; }
.ct-home-camps-footer p { color: var(--ct-muted); font-size: 13px; margin: 0; }
.ct-home-camps-footer a { display: inline-flex; align-items: center; gap: 15px; color: var(--ct-accent); font-size: 13px; font-weight: 700; text-decoration: none; }
.ct-home-camps-footer a:hover { text-decoration: underline; }
.ct-home-camps-admin { margin-top: 30px; padding: 20px; border: 1px dashed var(--ct-accent); border-radius: 16px; background: var(--ct-soft); }
.ct-home-camps-admin > summary { cursor: pointer; color: var(--ct-accent); font-weight: 700; }
.ct-home-camps-admin > p { margin-top: 14px; color: var(--ct-muted); }
.ct-home-camps-admin > a { display: inline-block; color: var(--ct-accent); text-decoration: underline; margin-bottom: 20px; }
.ct-home-camps-admin .pricing-admin-controls { right: auto !important; left: 12px; opacity: 1 !important; }
.ct-home-camps-admin .tp-pricing-5-list > div { text-align: left !important; }
[dir="ltr"] .ct-home-camp-actions { flex-direction: row; }
html[data-ct-lesson-theme="dark"] .ct-home-camp-cover { background: var(--ct-soft); color: var(--ct-accent); }
html[data-ct-lesson-theme="dark"] .ct-home-camp--full .ct-home-camp-cover { background: #644093; color: #fff; }
html[data-ct-lesson-theme="dark"] .ct-home-camp-subject-icon { border-radius: 5px; background: #f3edf8; padding: 2px; }
html[data-ct-lesson-theme="dark"] .ct-home-camp-subject-icon img { width: 22px; height: 22px; }
html[data-ct-lesson-theme="dark"] .ct-home-camp-tools .ct-home-camp-subject-icon img { width: 18px; height: 18px; }
@media (min-width: 768px) and (max-width: 991px) {
    .ct-home-camps-grid { gap: 15px; }
    .ct-home-camp-content { padding: 17px; }
    .ct-home-camp-cover { height: 160px; }
    .ct-home-camp-meta { flex-wrap: wrap; }
    .ct-home-camp-subjects { grid-template-columns: 1fr; }
    .ct-home-camp h3 { min-height: 64px; font-size: 20px; }
    .ct-home-camp-copy--primary { min-height: 280px; }
    .ct-home-camp-copy--translation { min-height: 153px; padding: 0; }
    .ct-home-camp-copy--translation .ct-home-camp-subtitle { min-height: 45px; }
    .ct-home-camp-translated-title { font-size: 17px; }
    .ct-home-camp-tools .ct-home-camp-subjects { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .ct-home-camp-tools .ct-home-camp-subjects li:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .ct-home-camp-subtitle { min-height: 64px; }
    .ct-home-camp-action-note { display: none; }
}
@media (max-width: 767px) {
    .ct-home-camps { padding: 60px 0 45px; }
    .ct-home-camps-heading { margin-bottom: 30px; }
    .ct-home-camps-title { font-size: 29px; line-height: 1.6; }
    .ct-home-camps-grid { grid-template-columns: minmax(0,1fr); gap: 24px; max-width: 500px; margin-inline: auto; }
    .ct-home-camp-cover { height: 165px; }
    .ct-home-camp h3 { min-height: 0; font-size: 22px; }
    .ct-home-camp-subtitle { min-height: 0; }
    .ct-home-camp-copy--primary { min-height: 0; }
    .ct-home-camp-copy--translation { min-height: 0; margin-top: 12px; }
    .ct-home-camp-content { padding: 22px; }
    .ct-home-camps-footer { flex-direction: column; align-items: flex-start; gap: 14px; line-height: 1.8; }
    .ct-home-camps-footer a { align-self: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
    .ct-home-camps *, .ct-home-camps *::before, .ct-home-camps *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 359px) {
    .ct-home-camp-tools .ct-home-camp-subjects { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .ct-home-camp-tools .ct-home-camp-subjects li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
