/**
 * Template: ms-lms-starter-theme
 * Theme Name: MasterStudy Templates Child
 * Theme URI: https://starter.stylemixthemes.com/
 * Author: StylemixThemes
 * Author URI: https://stylemixthemes.com/
 * Description: MasterStudy Templates Child Theme is the child theme for the MasterStudy Templates. With this child theme, you can customize your eLearning website appearance without changing the original templates.
 * License: GNU General Public License v2 or later
 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
 * Tags: classes, courses, Education, education center, e-commerce, learning center, tutoring, teaching, study, studying, learning, lessons, instructor, teacher, mentor
 * Text Domain: starter-text-domain
 * Version: 1.0.0
 */
/* === Wyrównanie kafelków kursów === */

/* Grid: równa wysokość kart w wierszu */
.lms-course__list {
    align-items: stretch;
}

.lms-course__list > * {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Wrapper karty: rozciągnij na pełną wysokość */
.masterstudy-course-card__wrapper,
.lms-course-full-size-image__item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Info sekcja: rozciągnij aby wypełnić resztę karty */
.masterstudy-course-card__info,
.lms-course-full-size-image__inner {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Bottom sekcja: przyciśnij do dołu */
.masterstudy-course-card__bottom,
.lms-course-full-size-image__bottom {
    margin-top: auto;
}

/* Obrazki: spójne wymiary */
.masterstudy-course-card__image,
.lms-course-full-size-image__cover img {
    object-fit: cover;
    width: 100%;
}

/* Stary styl kart: równa wysokość */
.stm_lms_courses__grid {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.stm_lms_courses__single__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.stm_lms_courses__single--inner {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.stm_lms_courses__single--bottom {
    margin-top: auto;
}

/* === Nakładanie statusu i dostępności === */

/* Status "Opublikowano" + "tylko dla członków": zapobiegaj nakładaniu */
.stm_lms_courses__single--status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    line-height: 1.4;
    overflow: visible;
    white-space: normal;
    word-break: break-word;
}

/* Upewnij się że ikona statusu nie ukrywa tekstu */
.stm_lms_courses__single--bottom {
    flex-wrap: wrap;
    gap: 4px;
}

/* Gutenberg preset bottom - zapobiegaj nakładaniu */
.lms-course-full-size-image__bottom,
.lms-course__bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

/* === Instructor dashboard: "Opublikowano" + "tylko dla członków" nakładanie === */

/* Status container: potrzebuje min-height żeby zmieścić absolute chosen */
.stm_lms_instructor_courses__single--bottom {
    min-height: 40px;
    align-items: flex-end;
}

/* Members only / cena: nie nachodzi na status */
.stm_lms_instructor_courses__single--price.members_only {
    position: relative;
    z-index: 1;
    padding-left: 5px;
    max-width: 45%;
    text-align: right;
    font-size: 12px;
    word-break: break-word;
}

.stm_lms_instructor_courses__single--price.members_only strong {
    font-size: 12px !important;
    font-weight: 500;
    line-height: 1.3;
}

/* Status chosen: ogranicz szerokość żeby nie nachodził na cenę */
.stm_lms_instructor_courses__single--status .stm_lms_instructor_courses__single--choice.chosen {
    right: auto;
    max-width: 55%;
}
