.course-card-edit-dropdown {
    border-top-right-radius: 8px;
}

.course-card {
    box-shadow: 0 4px 40px rgba(0, 0, 0, .1);
    width: 300px;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    background: #fff;
    height: auto;
    min-height: 0;
    align-self: flex-start;
}

.course-card:hover {
    box-shadow: 0 4px 40px rgba(0, 0, 0, .2);
}

.course-card-picture-section {
    display: flex;
    height: 200px;
}

.course-card-picture-section img {
    height: 200px;
    width: 300px;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
}

.course-card-bonus-section {
    display: flex;
    position: absolute;
    width: max-content;
    gap: 10px;
    height: 30px;
    justify-content: end;
    align-items: center;
    padding: 5px 10px;
    background: rgba(210, 181, 0, 0.59);
    color: #ffffff;
    font-weight: bold;
    border-radius: 8px 0 8px 0;
    border-bottom: 1px dashed white;
    border-right: 1px dashed white;
}

.course-card-cashback-section {
    display: flex;
    width: max-content;
    gap: 10px;
    height: 30px;
    margin-top: -30px;
    justify-content: end;
    align-items: center;
    padding: 5px 10px;
    background: #4caf5094;
    color: #ffffff;
    font-weight: bold;
    border-top-right-radius: 8px;
    border-top: 1px dashed white;
    border-right: 1px dashed white;
}

.course-card-edit {
    display: flex;
    border-radius: 0;
    box-shadow: none;
    border: none;
    justify-content: space-between;
    text-align: center;
    align-items: center;
    padding: 0 10px;
    font-size: 12px;
    height: 34px;
}

.course-card-edit a {
    background: #fff;
    color: #000;
    box-shadow: none;
    border: none;
}

.course-card-course-information-section {
    display: flex;
    height: auto;
    min-height: 0;
    width: 100%;
    flex: 0 0 auto;
}

.course-card-course-information-section-title {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.course-card-course-information-section-title p {
    width: 100%;
    display: flex;
    cursor: pointer;
    justify-content: center;
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
}

.course-card-course-information-section-title i {
    cursor: pointer;
    margin-left: 5px;
}

/* ================================
   Progress preview only
   Does NOT change normal/admin card layout
   ================================ */

.course-card-with-progress {
    overflow: visible;
}

.course-card-with-progress .course-card-course-information-section {
    display: block;
    height: auto;
    width: 100%;
}

.course-card-with-progress .course-card-course-information-section-title {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.course-card-with-progress .course-card-course-information-section-title p {
    width: 100%;
    display: flex;
    cursor: pointer;
    justify-content: center;
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
    text-align: center;
}

.course-card-with-progress .course-card-course-information-section-title i {
    cursor: pointer;
    margin-left: 5px;
}

.course-progress-preview {
    position: relative;
    width: auto;
    margin: 0 12px 12px 12px;
    padding: 9px 10px 10px 10px;
    box-sizing: border-box;
    border-radius: 9px;
    background: #f8f6fd;
}

.course-progress-line {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.course-progress-title {
    font-size: 12px;
    font-weight: 600;
    color: #3d366d;
    white-space: nowrap;
}

.course-progress-percent {
    font-size: 12px;
    font-weight: 700;
    color: #2fa84f;
    white-space: nowrap;
}

.course-progress-bar {
    width: 100%;
    height: 7px;
    background: #e5e5e5;
    border-radius: 999px;
    overflow: hidden;
}

.course-progress-fill {
    height: 100%;
    background: #35b454;
    border-radius: 999px;
    transition: width 0.25s ease;
}

.course-progress-bottom {
    margin-top: 5px;
    text-align: right;
}

.course-progress-lessons {
    font-size: 12px;
    color: #555;
}

.course-progress-continue {
    display: block;
    text-decoration: none;
}

.course-progress-details-button {
    width: 100%;
    margin-top: 8px;
    padding: 7px 10px;
    border: none;
    border-radius: 8px;
    background: #f0edf8;
    color: #3d366d;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.course-progress-details-button:hover {
    background: #e4def2;
}

.course-progress-details-button.active {
    background: #2fb7ae;
    color: #fff;
}

.course-progress-details {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 100;
    max-height: 230px;
    overflow-y: auto;
    padding: 8px 10px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #e5e1ef;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.course-progress-details.open {
    display: block;
}

.course-progress-lesson {
    display: grid;
    grid-template-columns: 16px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid #f0eef6;
}

.course-progress-lesson:last-child {
    border-bottom: none;
}

.course-progress-lesson-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
}

.course-progress-lesson-main {
    min-width: 0;
}

.course-progress-lesson-title {
    margin: 0 0 4px 0;
    font-size: 12px;
    font-weight: 500;
    color: #222;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.course-progress-lesson-mini-bar {
    width: 100%;
    height: 4px;
    background: #ececf2;
    border-radius: 999px;
    overflow: hidden;
}

.course-progress-lesson-mini-fill {
    height: 100%;
    background: #35b454;
    border-radius: 999px;
}

.course-progress-lesson-status {
    font-size: 12px;
    font-weight: 700;
    color: #444;
    white-space: nowrap;
}

.course-progress-lesson.completed .course-progress-lesson-icon {
    background: #e6f7ea;
    color: #2fa84f;
}

.course-progress-lesson.completed .course-progress-lesson-status {
    color: #2fa84f;
}

.course-progress-lesson.need-repeat .course-progress-lesson-icon {
    background: #fff4df;
    color: #d98200;
}

.course-progress-lesson.need-repeat .course-progress-lesson-status {
    color: #d98200;
}

.course-progress-lesson.not-started .course-progress-lesson-icon {
    background: #eeeeee;
    color: #888;
}

.course-progress-lesson.not-started .course-progress-lesson-status {
    color: #888;
}

.cards-wrapper-read-courses {
    align-items: flex-start;
}
