/* =============================================================================
   Kurs 13 — Agenda (Terminarz kursu)
   ============================================================================= */

.kurs13-section {
    background: var(--kurs-surface-base, #ffffff);
    padding: 4.8rem 13rem;
}

.kurs13-wrapper {
    max-width: 144rem;
    margin: 0 auto;
    padding: 0 11rem 0 3.2rem;
}

/* Layout dwukolumnowy */
.kurs13-layout {
    display: flex;
    gap: 3.2rem;
    align-items: flex-end;
}

.kurs13-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
    max-width: 71rem;
}

.kurs13-right {
    width: 40.5rem;
    flex-shrink: 0;
}

/* Nagłówek */
.kurs13-eyebrow {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--kurs-accent, #626573);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 0.8rem;
}

.kurs13-title {
    font-size: clamp(2.8rem, 2.4rem + 1.25vw, 4rem) !important;
    font-weight: 600 !important;
    color: #050709 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.03em !important;
    margin: 0 0 3.2rem !important;
}

.kurs13-desc {
    font-size: 1.6rem;
    color: #374151;
    line-height: 1.6;
    margin: 0;
}

/* Selektor edycji */
.kurs13-edition-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

/* Obszar przycisku + dropdown — tylko ten div jest position:relative */
.kurs13-edition-select-area {
    position: relative;
    width: fit-content;
    margin-bottom: 2.4rem;
}

/* Reset bazowy — tylko unset */
.kurs13-edition-selector {
    all: unset;
    box-sizing: border-box;
    cursor: pointer;
}

/* Style z wyższą specyficznością (0-2-0) — zawsze bijące Elementor reset.css (0-0-1) */
.kurs13-section .kurs13-edition-selector {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 1.6rem;
    border: 0.1rem solid #969899;
    border-radius: 2.4rem;
    background: #ffffff;
    width: fit-content;
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: #374151;
    line-height: 1.2;
    white-space: nowrap;
    outline: none;
    box-shadow: none;
    text-align: left;
}

.kurs13-section .kurs13-edition-selector:hover,
.kurs13-section .kurs13-edition-selector:focus,
.kurs13-section .kurs13-edition-selector:active,
.kurs13-section .kurs13-edition-selector:focus-visible {
    color: #374151;
    background: #ffffff;
    border-color: #374151;
    outline: none;
    box-shadow: none;
}

.kurs13-edition-label {
    font-size: 1.4rem;
    font-weight: 500;
    color: #374151;
    line-height: 1.2;
    white-space: nowrap;
}

.kurs13-edition-arrow {
    display: flex;
    color: #374151;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.kurs13-section .kurs13-edition-selector[aria-expanded="true"] .kurs13-edition-arrow {
    transform: rotate(180deg);
}

/* Dropdown — absolute względem .kurs13-edition-select-area */
.kurs13-edition-dropdown {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    z-index: 100;
    list-style: none;
    margin: 0;
    padding: 0.4rem 0;
    min-width: 16rem;
    background: #ffffff;
    border: 0.1rem solid #d4d2cf;
    border-radius: 1.2rem;
    box-shadow: 0 0.4rem 1.6rem rgba(0,0,0,0.10);
}

.kurs13-edition-option {
    padding: 0.8rem 1.6rem;
    font-size: 1.4rem;
    color: #374151;
    cursor: pointer;
    transition: background 0.15s;
    border-radius: 0.8rem;
}

.kurs13-edition-option:hover {
    background: #f4f2f0;
}

.kurs13-edition-option.is-active {
    font-weight: 600;
    color: #050709;
}

/* Lista bloków */
.kurs13-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.kurs13-item {
    background: var(--kurs-surface-light, #f9fafc);
    border-radius: 1.6rem;
}

.kurs13-item-inner {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.6rem;
    text-decoration: none;
    color: inherit;
}

.kurs13-item--link .kurs13-item-inner {
    transition: background 0.2s;
    border-radius: 1.6rem;
}

.kurs13-item--link .kurs13-item-inner:hover {
    background: var(--kurs-surface-dim, #eef0f4);
}

.kurs13-item-meta {
    display: flex;
    align-items: center;
}

/* Biała pigułka z numerem bloku i datą */
.kurs13-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #ffffff;
    border-radius: 1.2rem;
    padding: 0.6rem 0.8rem;
    min-height: 2.4rem;
}

.kurs13-block-label {
    font-size: 1.3rem;
    font-weight: 500;
    color: #374151;
    line-height: 1.2;
}

.kurs13-sep {
    font-size: 1.6rem;
    font-weight: 400;
    color: #374151;
    line-height: 1.5;
}

.kurs13-dates {
    font-size: 1.3rem;
    font-weight: 400;
    color: #374151;
    line-height: 1.5;
}

.kurs13-item-title {
    font-size: 1.6rem;
    font-weight: 500;
    color: #050709;
    line-height: 1.4;
    margin: 0;
}

/* Przycisk PDF */
.kurs13-download-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    padding: 1.4rem 1.6rem;
    background: transparent;
    border: 0.15rem solid #050709 !important;
    border-radius: 1rem;
    font-size: 1.6rem;
    color: #050709 !important;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
    box-sizing: border-box;
}

.kurs13-download-btn:hover {
    background: rgba(5, 7, 9, 0.05);
}

.kurs13-download-icon {
    display: flex;
    flex-shrink: 0;
}

/* Zdjęcie */
.kurs13-photo {
    border-radius: 2rem;
    overflow: hidden;
    width: 40.5rem;
    height: 73.4rem;
    background: var(--kurs-surface-light, #f9fafc);
}

.kurs13-photo img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

/* =============================================================================
   Responsive
   ============================================================================= */

@media (max-width: 1280px) {
    .kurs13-wrapper {
        padding: 0 2.4rem;
    }

    .kurs13-right {
        width: 45%;
    }
}

@media (max-width: 1024px) {
    .kurs13-layout {
        flex-direction: column;
    }

    .kurs13-right {
        width: 100%;
        max-width: 100%;
    }

    .kurs13-photo {
        width: 100%;
        height: auto;
        min-height: unset;
        display: flex;
        justify-content: center;
    }

    .kurs13-photo img {
        width: auto;
        height: auto;
        max-width: 100%;
        object-fit: unset;
    }
}

@media (max-width: 768px) {
    .kurs13-section {
        padding: 4.8rem 1.6rem;
    }

    .kurs13-wrapper {
        padding: 0;
    }

    .kurs13-photo {
        width: 100%;
        height: auto;
        min-height: 26rem;
    }
}

@media (max-width: 480px) {
    .kurs13-section {
        padding: 4rem 1.2rem;
    }


    .kurs13-download-btn {
        font-size: 1.4rem;
    }
}
