/*
Theme Name: Core Care Training
Theme URI: https://corecaretraining.co.uk
Author: WebStacked
Author URI: https://webstacked.co.uk
Description: Custom Elementor-compatible theme for Core Care Training. Full Customizer control over colours, typography, header, and footer.
Version: 1.6.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
Text Domain: core-care-training
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
    --cct-navy:           #2D3070;
    --cct-navy-dark:      #1a1d4a;
    --cct-navy-light:     #3d4296;
    --cct-pink:           #E8589A;
    --cct-pink-light:     #f07ab5;
    --cct-pink-pale:      #fceef5;
    --cct-white:          #ffffff;
    --cct-off-white:      #f8f7fc;
    --cct-border:         #e4e2f0;
    --cct-text-dark:      #1a1a2e;
    --cct-text-mid:       #555577;
    --cct-text-light:     #8888aa;
    --cct-header-bg:      #ffffff;
    --cct-header-height:  70px;
    --cct-footer-bg:      #1a1d4a;
    --cct-footer-text:    rgba(255,255,255,0.6);
    --cct-font-heading:   'Playfair Display', Georgia, serif;
    --cct-font-body:      'DM Sans', system-ui, sans-serif;
    --cct-h1-size:        2.75rem;
    --cct-h2-size:        2.1rem;
    --cct-h3-size:        1.6rem;
    --cct-h4-size:        1.25rem;
    --cct-h5-size:        1.05rem;
    --cct-h6-size:        0.95rem;
    --cct-body-size:      1rem;
    --cct-body-lh:        1.75;
    --cct-heading-weight: 600;
    --cct-section-pad:    80px;
    --cct-container:      1200px;
    --cct-radius:         10px;
    --cct-radius-lg:      16px;
    --cct-btn-bg:         #E8589A;
    --cct-btn-text:       #ffffff;
    --cct-btn-hover-bg:   #d0478b;
    --cct-btn-radius:     30px;
    --cct-btn-padding:    13px 30px;
    --cct-link-colour:    #E8589A;
    --cct-link-hover:     #2D3070;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--cct-font-body);
    font-size: var(--cct-body-size);
    font-weight: var(--cct-body-weight, 400);
    line-height: var(--cct-body-lh);
    color: var(--cct-text-mid);
    background-color: var(--cct-white);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--cct-link-colour);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover { color: var(--cct-link-hover); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--cct-font-heading);
    font-weight: var(--cct-heading-weight);
    color: var(--cct-text-dark);
    line-height: 1.2;
    margin: 0 0 0.75em;
}
h1 { font-size: var(--cct-h1-size); }
h2 { font-size: var(--cct-h2-size); }
h3 { font-size: var(--cct-h3-size); }
h4 { font-size: var(--cct-h4-size); }
h5 { font-size: var(--cct-h5-size); }
h6 { font-size: var(--cct-h6-size); }
p  { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.5em; margin: 0 0 1.25em; }

blockquote {
    border-left: 4px solid var(--cct-pink);
    margin: 1.5em 0;
    padding: 1em 1.5em;
    background: var(--cct-pink-pale);
    border-radius: 0 var(--cct-radius) var(--cct-radius) 0;
    font-style: italic;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.cct-container {
    max-width: var(--cct-container);
    margin: 0 auto;
    padding: 0 24px;
}
.cct-section { padding: var(--cct-section-pad) 0; }
.cct-section--navy { background: var(--cct-navy-dark); color: rgba(255,255,255,0.7); }
.cct-section--navy h1, .cct-section--navy h2, .cct-section--navy h3 { color: var(--cct-white); }
.cct-section--offwhite { background: var(--cct-off-white); }
.cct-section--pink { background: var(--cct-pink); color: rgba(255,255,255,0.85); }
.cct-section--pink h1, .cct-section--pink h2, .cct-section--pink h3 { color: var(--cct-white); }

/* ============================================================
   HEADER
   ============================================================ */
#masthead {
    background: var(--cct-header-bg);
    border-bottom: 1px solid var(--cct-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}
#masthead.scrolled { box-shadow: 0 2px 20px rgba(45,48,112,0.1); }

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--cct-header-height);
}

/* ── Logo + Text ─────────────────────────────────────────── */
.site-logo { display: flex; align-items: center; }

.site-logo__link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.site-logo__img {
    height: 52px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.site-logo__text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.2;
}

.site-logo__text-line1 {
    font-family: var(--cct-font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--cct-navy);
    display: block;
    white-space: nowrap;
}

.site-logo__text-line2 {
    font-family: var(--cct-font-body);
    font-size: 0.6875rem;
    font-weight: 400;
    color: var(--cct-pink);
    letter-spacing: 0.04em;
    display: block;
    white-space: nowrap;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
}
.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}
.main-navigation ul li { position: relative; }
.main-navigation ul li a {
    display: block;
    padding: 8px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--cct-text-mid);
    font-family: var(--cct-font-body);
    border-radius: 6px;
    transition: all 0.2s ease;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
    color: var(--cct-navy);
    background: var(--cct-off-white);
}
.main-navigation ul li ul {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--cct-white);
    border: 1px solid var(--cct-border);
    border-radius: var(--cct-radius);
    min-width: 220px;
    padding: 6px;
    box-shadow: 0 8px 30px rgba(45,48,112,0.12);
    flex-direction: column;
    gap: 2px;
    z-index: 100;
}
.main-navigation ul li:hover > ul,
.main-navigation ul li:focus-within > ul { display: flex; }
.main-navigation ul li ul li a { border-radius: 6px; font-size: 0.8125rem; }

.nav-cta-btn a,
a.nav-cta-btn {
    background: var(--cct-btn-bg) !important;
    color: var(--cct-btn-text) !important;
    padding: 9px 20px !important;
    border-radius: var(--cct-btn-radius) !important;
    font-weight: 600 !important;
    font-size: 0.8125rem !important;
    white-space: nowrap;
}
a.nav-cta-btn { display: inline-block; }
a.nav-cta-btn:hover { background: var(--cct-btn-hover-bg) !important; color: var(--cct-white) !important; }

.menu-toggle {
    display: none;
    background: none;
    border: 1.5px solid var(--cct-border);
    border-radius: 6px;
    padding: 8px 10px;
    cursor: pointer;
    color: var(--cct-navy);
    align-items: center;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.cct-btn,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
    display: inline-block;
    background: var(--cct-btn-bg);
    color: var(--cct-btn-text);
    padding: var(--cct-btn-padding);
    border-radius: var(--cct-btn-radius);
    font-family: var(--cct-font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    text-decoration: none;
    line-height: 1;
}
.cct-btn:hover { background: var(--cct-btn-hover-bg); color: var(--cct-btn-text); transform: translateY(-1px); }
.cct-btn--outline {
    background: transparent;
    border: 2px solid var(--cct-navy);
    color: var(--cct-navy);
}
.cct-btn--outline:hover { background: var(--cct-navy); color: var(--cct-white); }
.cct-btn--white { background: var(--cct-white); color: var(--cct-pink); }
.cct-btn--white:hover { background: var(--cct-off-white); color: var(--cct-pink); }

/* ============================================================
   SECTION LABELS
   ============================================================ */
.cct-section-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cct-pink);
    margin-bottom: 10px;
    font-family: var(--cct-font-body);
}
.cct-section--navy .cct-section-label { color: var(--cct-pink-light); }

/* ============================================================
   SERVICE / COURSE CARDS
   ============================================================ */
.cct-service-card {
    background: var(--cct-white);
    border: 1px solid var(--cct-border);
    border-radius: var(--cct-radius-lg);
    padding: 28px 24px;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    display: block;
}
.cct-service-card:hover {
    border-color: var(--cct-pink);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(232,88,154,0.1);
}
.cct-service-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--cct-text-dark);
    margin-bottom: 8px;
    font-family: var(--cct-font-body);
}
.cct-service-card__excerpt {
    font-size: 0.875rem;
    color: var(--cct-text-light);
    line-height: 1.6;
    margin-bottom: 14px;
}
.cct-service-card__link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--cct-pink);
}

/* ============================================================
   FORMS
   ============================================================ */
.cct-form input[type="text"],
.cct-form input[type="email"],
.cct-form input[type="tel"],
.cct-form textarea,
.cct-form select,
.wpforms-field input,
.wpforms-field textarea,
.wpforms-field select {
    width: 100%;
    border: 1.5px solid var(--cct-border);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.9375rem;
    font-family: var(--cct-font-body);
    color: var(--cct-text-dark);
    background: var(--cct-white);
    transition: border-color 0.2s ease;
    outline: none;
}
.cct-form input:focus,
.cct-form textarea:focus,
.wpforms-field input:focus,
.wpforms-field textarea:focus {
    border-color: var(--cct-pink);
    box-shadow: 0 0 0 3px rgba(232,88,154,0.1);
}

/* ============================================================
   FOOTER
   ============================================================ */
#colophon {
    background: var(--cct-footer-bg);
    color: var(--cct-footer-text);
    padding: 60px 0 0;
}
.site-footer__widgets {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo-link { display: inline-block; margin-bottom: 16px; }
.site-footer__logo { max-width: 100%; height: auto; display: block; }
.site-footer__name {
    font-family: var(--cct-font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cct-white);
    margin-bottom: 12px;
    display: block;
    text-decoration: none;
}
.site-footer__tagline {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.7;
    margin-top: 8px;
}
.footer-widget-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cct-white);
    margin-bottom: 16px;
    font-family: var(--cct-font-body);
}
.footer-widget ul { list-style: none; padding: 0; margin: 0; }
.footer-widget ul li { margin-bottom: 8px; }
.footer-widget ul li a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.45);
    transition: color 0.2s ease;
    text-decoration: none;
}
.footer-widget ul li a:hover { color: var(--cct-pink-light); }

/* Contact column content */
.footer-contact-content p {
    margin: 0 0 8px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.65;
}
.footer-contact-content p:last-child { margin-bottom: 0; }
.footer-contact-content a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-contact-content a:hover { color: var(--cct-pink-light); }

/* Bottom bar */
.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-copyright {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.3);
    line-height: 1.5;
}
.footer-copyright a { color: var(--cct-pink-light); text-decoration: none; }
.footer-copyright a:hover { color: var(--cct-white); }
.footer-legal-links { display: flex; align-items: center; gap: 10px; }
.footer-legal-links a {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}
.footer-legal-links a:hover { color: var(--cct-pink-light); }
.footer-legal-sep { color: rgba(255,255,255,0.2); font-size: 0.75rem; }

/* ============================================================
   PAGE HERO BANNERS
   ============================================================ */
.cct-page-hero {
    background: var(--cct-navy-dark);
    padding: 70px 0 60px;
    position: relative;
    overflow: hidden;
}
.cct-page-hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(232,88,154,0.08);
    right: -150px;
    top: -200px;
    pointer-events: none;
}
.cct-page-hero h1 { color: var(--cct-white); margin-bottom: 16px; }
.cct-page-hero p {
    color: rgba(255,255,255,0.6);
    font-size: 1.125rem;
    max-width: 600px;
    line-height: 1.7;
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.cct-trust-bar {
    background: var(--cct-off-white);
    border-top: 1px solid var(--cct-border);
    border-bottom: 1px solid var(--cct-border);
    padding: 14px 0;
}
.cct-trust-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}
.cct-trust-bar__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--cct-text-mid);
}
.cct-trust-bar__item::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cct-pink);
    flex-shrink: 0;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.cct-breadcrumb {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.45);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.cct-breadcrumb a { color: rgba(255,255,255,0.45); }
.cct-breadcrumb a:hover { color: var(--cct-pink-light); }
.cct-breadcrumb .current { color: var(--cct-pink-light); }
.cct-breadcrumb .sep { opacity: 0.4; }

/* ============================================================
   INFO BOX
   ============================================================ */
.cct-info-box {
    background: var(--cct-off-white);
    border-left: 4px solid var(--cct-pink);
    border-radius: 0 var(--cct-radius) var(--cct-radius) 0;
    padding: 18px 22px;
    font-size: 0.9375rem;
    color: var(--cct-text-mid);
    line-height: 1.7;
    margin: 24px 0;
}
.cct-info-box strong { color: var(--cct-navy-dark); }

/* ============================================================
   LOCATION PILLS
   ============================================================ */
.cct-location-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.cct-location-pill {
    background: var(--cct-white);
    border: 1px solid var(--cct-border);
    border-radius: 20px;
    padding: 7px 16px;
    font-size: 0.8125rem;
    color: var(--cct-navy);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
}
.cct-location-pill:hover {
    background: var(--cct-pink-pale);
    border-color: var(--cct-pink);
    color: var(--cct-pink);
}

/* ============================================================
   OUTCOMES / CHECKLIST
   ============================================================ */
.cct-outcomes { list-style: none; padding: 0; margin: 20px 0; }
.cct-outcomes li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--cct-border);
    font-size: 0.9375rem;
    color: var(--cct-text-mid);
}
.cct-outcomes li:last-child { border-bottom: none; }
.cct-outcomes li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cct-pink);
    flex-shrink: 0;
    margin-top: 8px;
}

/* ============================================================
   ELEMENTOR OVERRIDES
   ============================================================ */
.elementor-widget-text-editor p,
.elementor-widget-text-editor li { color: var(--cct-text-mid); line-height: var(--cct-body-lh); }
.elementor-widget-heading .elementor-heading-title { font-family: var(--cct-font-heading); }
.elementor-button {
    background: var(--cct-btn-bg);
    border-radius: var(--cct-btn-radius);
    font-family: var(--cct-font-body);
    font-weight: 600;
}
.elementor-section.elementor-section-boxed > .elementor-container { max-width: var(--cct-container); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    :root { --cct-h1-size: 2.2rem; --cct-h2-size: 1.75rem; --cct-section-pad: 60px; }
}

@media (max-width: 768px) {
    :root {
        --cct-h1-size: 1.875rem;
        --cct-h2-size: 1.5rem;
        --cct-h3-size: 1.3rem;
        --cct-section-pad: 48px;
        --cct-header-height: 60px;
    }
    .main-navigation {
        display: none;
        position: fixed;
        top: var(--cct-header-height);
        left: 0; right: 0; bottom: 0;
        background: var(--cct-white);
        padding: 24px;
        overflow-y: auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        border-top: 1px solid var(--cct-border);
        z-index: 999;
    }
    .main-navigation.is-open { display: flex; }
    .main-navigation ul { flex-direction: column; width: 100%; gap: 0; }
    .main-navigation ul li a {
        padding: 14px 8px;
        font-size: 1rem;
        border-radius: 0;
        border-bottom: 1px solid var(--cct-border);
    }
    .menu-toggle { display: flex; align-items: center; gap: 6px; }
    .site-footer__widgets { grid-template-columns: 1fr 1fr; gap: 32px; }
    .cct-trust-bar__inner { gap: 16px; justify-content: flex-start; }
}

@media (max-width: 600px) {
    .site-footer__bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
    .site-logo__text { display: none; }
}

@media (max-width: 480px) {
    :root { --cct-section-pad: 36px; }
    .site-footer__widgets { grid-template-columns: 1fr; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
:focus-visible { outline: 3px solid var(--cct-pink); outline-offset: 3px; }
.screen-reader-text {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px,1px,1px,1px);
    white-space: nowrap;
}
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--cct-navy);
    color: var(--cct-white);
    padding: 12px 20px;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    z-index: 9999;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ============================================================
   DYNAMIC COURSES WIDGET (Elementor — CCT Courses Grid)
   ============================================================ */

/* Flat card */
.cct-dyn-card--flat {
    background: #ffffff;
    border: 1px solid #e4e2f0;
    border-radius: 14px;
    padding: 24px 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.cct-dyn-card--flat:hover {
    border-color: var(--cct-pink);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(232,88,154,0.1);
}
.cct-dyn-card__icon-wrap {
    width: 46px;
    height: 46px;
    background: var(--cct-pink-pale);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cct-dyn-card__icon-wrap i {
    font-size: 1.2rem;
    color: var(--cct-pink);
}
.cct-dyn-card__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--cct-text-dark);
    margin: 0;
    line-height: 1.35;
    font-family: var(--cct-font-body, sans-serif);
}
.cct-dyn-card__excerpt {
    font-size: 0.875rem;
    color: var(--cct-text-light);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}
.cct-dyn-card__badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.cct-dyn-card__badge {
    background: var(--cct-pink-pale);
    color: var(--cct-pink);
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 500;
    white-space: nowrap;
}
.cct-dyn-card__link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--cct-pink);
    margin-top: auto;
}

/* Flip card — rebuilt as hover overlay (reliable in Elementor) */
.cct-dyn-card--flip {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    background: #ffffff;
    border: 1px solid #e4e2f0;
    text-decoration: none;
    display: block;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cct-dyn-card--flip:hover {
    border-color: var(--cct-pink);
    box-shadow: 0 10px 30px rgba(232,88,154,0.12);
}
.cct-dyn-card__front {
    padding: 22px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cct-dyn-card__back {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--cct-navy-dark);
    padding: 18px 20px;
    transform: translateY(100%);
    transition: transform 0.32s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-sizing: border-box;
}
.cct-dyn-card--flip:hover .cct-dyn-card__back {
    transform: translateY(0);
}
.cct-dyn-card__back-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    font-family: var(--cct-font-body, sans-serif);
}
.cct-dyn-card__back-excerpt {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cct-dyn-card__badges--back {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.cct-dyn-card__badges--back span {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
}
.cct-dyn-card__back-btn {
    display: inline-block;
    background: var(--cct-pink);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s ease;
    align-self: flex-start;
}
.cct-dyn-card__back-btn:hover {
    background: var(--cct-btn-hover-bg);
    color: #ffffff;
}
