.cc-course-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px;
    width: 100%;
    margin: 0 auto;
    align-items: stretch;
}

.cc-course-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
}

.cc-course-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}

.cc-course-media {
    width: 100%;
    aspect-ratio: 16 / 8.1;
    overflow: hidden;
    background: #f3f4f6;
    flex: 0 0 auto;
}

.cc-course-image {
    width: 100%;
    height: 100% !important;
    display: block;
    object-fit: cover;
}

.cc-course-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 18px;
    background: #f1f3f5;
}

.cc-course-body {
    padding: 38px 36px 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cc-course-title {
    margin: 0 0 18px;
    color: #111;
    font-size: clamp(22px, 1.45vw, 30px);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.cc-course-short-description {
    margin: 0 0 14px;
    color: #999;
    font-size: 18px;
    line-height: 1.65;
    font-weight: 400;
}

.cc-course-description {
    color: #777;
    font-size: 16px;
    line-height: 1.65;
    margin: 0 0 28px;
}

.cc-course-description p {
    margin: 0 0 10px;
}

.cc-course-description p:last-child {
    margin-bottom: 0;
}

.cc-course-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #e6e6e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.cc-course-price {
    color: #d71939;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
}

.cc-course-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #d71939 !important;
    text-decoration: none !important;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 600;
    white-space: nowrap;
    transition: color .2s ease, transform .2s ease;
}

.cc-course-button:hover {
    color: #b91430 !important;
    transform: translateX(2px);
}

.cc-course-button span {
    font-size: 23px;
    line-height: 1;
}

.cc-no-courses {
    padding: 30px;
    text-align: center;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
}

@media (max-width: 1100px) {
    .cc-course-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
    }

    .cc-course-body {
        padding: 30px 28px 26px;
    }
}

@media (max-width: 680px) {
    .cc-course-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .cc-course-body {
        padding: 28px 22px 24px;
    }

    .cc-course-title {
        font-size: 23px;
    }

    .cc-course-short-description {
        font-size: 16px;
    }

    .cc-course-description {
        font-size: 15px;
    }

    .cc-course-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }
}
