:root {
    --szkolenia-primary: #2c3e50;
    --szkolenia-accent: #26CBC5;
    --szkolenia-bg-light: #e1e1e1;
    --szkolenia-text-main: #333333;
    --szkolenia-text-muted: #666666;
}

.szkolenie-wrapper {
    width: 1200px;
    margin: 0 auto;
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 15px;
    padding-right: 15px;
}

/* --- Top Section (Header) --- */
.szkolenie-top-section {
    background-color: var(--szkolenia-bg-light);
    margin-top: 77px; /* Account for fixed navbar */
    padding: 40px 0;
    width: 100%;
    color: var(--szkolenia-text-main);
    box-sizing: border-box;
}

.szkolenie-grid-container {
    display: flex;
    flex-direction: row;
    gap: 40px; /* Space between image and text */
    align-items: flex-start; /* Do not stretch items height */
}

/* Image */
.szkolenie-image-wrapper {
    flex: 0 0 auto;
    width: auto;
    max-width: 40%; /* Prevent taking too much space */
}

.szkolenie-image-wrapper img {
    height: auto;
    width: auto;
    max-height: 400px; /* Reasonable limit to match the text column with badges */
    max-width: 100%;
    display: block;
    object-fit: contain;
}

/* Text Content Wrapper */
.szkolenie-info-wrapper {
    flex: 1; /* Take remaining space */
    display: flex;
    flex-direction: column;
}

/* Breadcrumbs */
.szkolenie-breadcrumbs {
    font-size: 0.87em;
    text-transform: uppercase;
    color: var(--szkolenia-text-main);
    margin-bottom: 10px;
}

.szkolenie-breadcrumbs a {
    text-decoration: none;
    color: var(--szkolenia-text-main);
    transition: color 0.3s;
}

.szkolenie-breadcrumbs a:hover {
    text-decoration: underline;
    color: var(--szkolenia-accent);
}

.szkolenie-breadcrumbs a::after {
    content: ' /';
    color: var(--szkolenia-text-main);
}

.szkolenie-breadcrumbs a:last-child::after {
    content: '';
}

/* Title */
.szkolenie-title {
    font-size: 2.2em;
    line-height: 1.2;
    text-transform: uppercase;
    margin: 0 0 20px 0;
    color: var(--szkolenia-text-main);
    font-weight: normal;
}

/* Meta Data List */
.szkolenie-meta-list {
    font-size: 1.1em;
}

.meta-row {
    margin-bottom: 12px;
    line-height: 1.5;
    display: flex; /* Flexbox for table-like alignment */
    align-items: baseline;
}

.meta-row strong {
    text-transform: uppercase;
    color: var(--szkolenia-text-muted);
    font-weight: bold;
    margin-right: 20px;
    flex: 0 0 140px; /* Fixed width for the label column */
}

.meta-row span {
    color: var(--szkolenia-text-main);
    font-weight: normal;
    flex: 1; /* Take remaining space */
}

.meta-cel {
    display: block;
    margin-top: 20px;
}

.meta-cel strong {
    display: block;
    margin-bottom: 5px;
    color: var(--szkolenia-accent);
    flex: auto; /* Reset flex for block display */
}

.cel-content {
    /* Optional styling for the Goal description */
}

/* Badges (Certificates) */
.szkolenie-badges {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.badge-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.badge-icon {
    color: var(--szkolenia-accent);
    font-weight: bold;
    font-size: 1.2em;
    margin-right: 10px;
}

.badge-item a {
    color: var(--szkolenia-text-main);
    text-decoration: underline;
}

.badge-item a:hover {
    color: var(--szkolenia-accent);
    text-decoration: none;
}

/* --- Main Content Section --- */
.entry-content {
    max-width: 100%;
}

.entry-content h2 {
    font-size: 1.6em;
    text-transform: uppercase;
    margin: 40px 0 20px 0;
    color: var(--szkolenia-text-main);
    font-weight: normal;
}

.entry-content p {
    margin-bottom: 20px;
}

/* Lists styling */
.entry-content ul {
    margin: 20px 0 30px 0;
    list-style: none;
    padding: 0;
}

.entry-content ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.entry-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background-color: var(--szkolenia-accent);
}

/* --- Mobile / Tablet Responsive --- */
@media (max-width: 980px) {

    .szkolenie-grid-container {
        display: flex;
        flex-direction: column;
        grid-gap: 0;
        gap: 0;
    }

    .szkolenie-info-wrapper {
        display: contents; /* Ungroup to allow reordering with image */
    }

    .szkolenie-breadcrumbs {
        order: 0;
        margin-bottom: 15px;
        text-align: center;
        width: 100%;
    }

    .szkolenie-title {
        order: 1;
        text-align: center;
        margin-bottom: 20px;
        font-size: 1.8em;
    }

    .szkolenie-image-wrapper {
        order: 2;
        margin-bottom: 30px;
        width: 100%;
        max-width: 100%; /* Allow full width on mobile */

        /* Reset for mobile flow */
        height: auto;
        display: flex;
        justify-content: center;
    }

    .szkolenie-image-wrapper img {
        height: auto;
        width: auto;
        max-width: 100%;
        max-height: 250px;
        object-fit: contain;
    }

    .szkolenie-meta-list {
        order: 3;
    }

    .szkolenie-badges {
        order: 4; /* Ensure badges appear after meta list on mobile too */
        /* display contents prevents the margin-top/border from working as expected on wrapper if it was not display:contents.
           But wait, szkolenie-info-wrapper is display:contents, so badges are children of grid-container now.
           We need to style them appropriately. */
         margin-top: 20px;
    }

    .meta-row {
        flex-direction: column; /* Stack label and value on mobile if needed, or keep row */
    }

    .meta-row strong {
        flex: auto;
        margin-bottom: 2px;
    }

    .meta-row {
        margin-bottom: 20px;
    }
}
