.cc-df093bf7-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-bottom: 40px;
    box-sizing: border-box;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
/* Adjust padding so arrows can sit outside without cutting off the cards */
.cc-carousel {
    overflow: hidden;
    width: 100%;
    padding: 0 50px; /* Space for arrows */
    box-sizing: border-box;
}
.cc-track {
    display: flex;
    transition: transform 0.3s ease-in-out;
}

/* ===== Card style (matching catalog cards) ===== */
.cc-card {
    flex: 0 0 calc(100% / 4);
    box-sizing: border-box;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
}
.cc-card > .cc-img-wrap,
.cc-card {
    /* border-top-color is set inline per course via PHP */
}

/* Wrapper real de la tarjeta visual (img + content) */
.cc-card {
    border-top: 4px solid #854baf; /* color por defecto, sobreescrito inline */
}
.cc-card .cc-img-wrap,
.cc-card .cc-content {
    background: #ffffff;
}
.cc-card {
    background: #ffffff;
    border-radius: 20px !important;
    box-shadow: 0 10px 24px rgba(29, 60, 145, .08);
    overflow: hidden !important;
    transition: transform .22s ease, box-shadow .22s ease;
}
.cc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(24, 50, 115, .14);
}

.cc-img-wrap {
    position: relative;
    height: 180px;
    width: 100%;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}
.cc-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cc-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    font-size: .74rem;
    font-weight: 850;
    letter-spacing: .01em;
    border-radius: 999px;
    z-index: 2;
}

.cc-content {
    padding: 20px !important;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cc-title {
    font-size: 1.05rem;
    color: #0b1738;
    margin: 0 0 16px 0;
    line-height: 1.35;
    font-weight: 800;
}

.cc-meta {
    font-size: .84rem;
    color: #52607f;
    margin-bottom: 16px;
    line-height: 1.7;
}
.cc-meta strong {
    color: #0b1738;
}

.cc-cert {
    background: rgba(36, 87, 255, .08);
    padding: 10px 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    margin-top: auto;
}
.cc-cert span {
    color: #2457ff !important;
    font-size: .78rem;
    font-weight: 800;
}
.cc-cert svg path {
    stroke: #2457ff !important;
}

.cc-btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #2457ff, #7a2cff);
    color: #fff !important;
    text-align: center;
    padding: 11px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 850;
    border: 1.5px solid transparent;
    transition: opacity .2s ease, transform .2s ease;
}
.cc-btn:hover {
    opacity: .9;
    transform: translateY(-2px);
    color: #fff !important;
}

/* Nav & Dots */
.cc-nav-left, .cc-nav-right {
    position: absolute;
    top: calc(50% - 20px);
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    border: 1px solid #eaeaea;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    user-select: none;
}
.cc-nav-left i, .cc-nav-right i {
    color: #222;
    font-size: 14px;
    line-height: 1;
}
.cc-nav-left { left: 5px; }
.cc-nav-right { right: 5px; }
.cc-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    position: absolute;
    bottom: 0;
    width: 100%;
}
.cc-dot {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
}
.cc-dot.active {
    background: #2457ff;
}

/* Responsive */
@media (max-width: 1024px) {
    .cc-card { flex: 0 0 calc(100% / 2); }
}
@media (max-width: 767px) {
    .cc-card { flex: 0 0 100%; }
    .cc-carousel { padding: 0 40px; }
}