.ldcc-lessons-grid-wrapper {
    width: 100%;
    direction: rtl;
}

.ldcc-lessons-grid {
    display: grid;
    grid-template-columns: repeat(var(--ldcc-columns-desktop, 4), minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ldcc-lesson-card {
    background-color: #144992;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-align: right;
}

.ldcc-lesson-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    background-color: #f7931e;
    color: #ffffff;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

.ldcc-lesson-image {
    order: 0;
    aspect-ratio: 16 / 9;
    overflow: visible;
    width: 100%;
    position: relative;
}

.ldcc-lesson-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

.ldcc-lesson-card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 20px 24px;
    flex: 1;
    order: 1;
}

.ldcc-lesson-badge--no-image {
    position: static;
    box-shadow: none;
    pointer-events: auto;
}

.ldcc-completed-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #28a745;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
}

.ldcc-completed-badge svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.ldcc-completed-badge-icon {
    display: inline-flex;
}

.ldcc-lesson-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    text-align: right;
}

.ldcc-lesson-lock-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 8px;
}

.ldcc-lesson-lock-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.ldcc-lesson-lock-icon svg {
    width: 100%;
    height: 100%;
}

.ldcc-lesson-date {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    display: block;
    width: 100%;
    text-align: inherit;
}

.ldcc-lesson-date.is-recording {
    color: #9ad0ff;
    font-weight: 600;
}

.ldcc-lesson-date.is-recording.no-video {
    opacity: 0;
    pointer-events: none;
}

/* Buttons Container */
.ldcc-lesson-buttons {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    width: 100%;
}

.ldcc-lesson-button {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    font-weight: 600;
    background-color: #F6AD55 !important;
    color: #08295E !important;
    padding: 12px 16px;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
    position: relative;
    align-self: center;
    width: 100%;
}

/* When inside buttons container, remove margin-top */
.ldcc-lesson-buttons .ldcc-lesson-button {
    margin-top: 0;
}

.ldcc-lesson-button:hover {
    background-color: #ffffff !important;
    color: #08295E !important;
}

.ldcc-lesson-button.is-disabled {
    cursor: not-allowed;
    background-color: #9aa2b1;
    opacity: 0.65;
    transform: none;
}

.ldcc-lesson-button.is-disabled:hover {
    background-color: #9aa2b1;
}

/* Tooltip styles for lesson button - using global tooltip styles */
.ldcc-lesson-button[data-ldcc-tooltip] {
    position: relative;
}

/* Zoom Button - Blue Zoom Brand Color */
.ldcc-zoom-button {
    background-color: #2D8CFF !important;
    color: #FFFFFF !important;
}

.ldcc-zoom-button:hover {
    background-color: #1E6FD9 !important;
    color: #FFFFFF !important;
}

.ldcc-zoom-button.is-disabled {
    background-color: #9aa2b1 !important;
    color: #ffffff !important;
    opacity: 0.65;
}

.ldcc-zoom-button.is-disabled:hover {
    background-color: #9aa2b1 !important;
}

/* Preparation Button - Keep Orange Style */
.ldcc-preparation-button {
    background-color: #F6AD55 !important;
    color: #08295E !important;
}

.ldcc-preparation-button:hover {
    background-color: #ffffff !important;
    color: #08295E !important;
}

.ldcc-preparation-button.is-disabled {
    background-color: #9aa2b1 !important;
    color: #ffffff !important;
    opacity: 0.65;
}

.ldcc-preparation-button.is-disabled:hover {
    background-color: #9aa2b1 !important;
}

.ldcc-lessons-grid-message {
    direction: rtl;
    text-align: right;
}

@media (max-width: 1024px) {
    .ldcc-lessons-grid {
        grid-template-columns: repeat(var(--ldcc-columns-tablet, 2), minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .ldcc-lessons-grid {
        grid-template-columns: repeat(var(--ldcc-columns-mobile, 1), minmax(0, 1fr));
        gap: 16px;
    }
    
    .ldcc-lesson-lock-icon {
        width: 16px;
        height: 16px;
    }
    
    .ldcc-lesson-lock-icon-wrapper {
        margin-bottom: 6px;
    }
}

