/* =======================================================
   Hledané nabídky práce — Fajn Práce
   Layout převzatý z makety hledane-nabidky, modrá paleta FP.
   BEM, prefix .hn — nezasahuje do kontejneru.
   ======================================================= */

:root {
    --hn-modra:        #0074ff;   /* primarni modra Fajn Prace */
    --hn-modra-tmava:  #005fd1;   /* tmavsi modra (hover) */
    --hn-modra-svetla: #e6f1ff;   /* velmi svetle pozadi bloku */
    --hn-oranz:        #ff8c00;   /* akcentni oranzova Fajn Prace */
    --hn-oranz-tmava:  #e67e00;   /* tmavsi oranzova (hover) */
    --hn-seda-text:    #6b7280;
    --hn-seda-bg:      #f7f7f7;
    --hn-seda-bg-2:    #f5f5f5;
}

/* ---- Hlavni nadpis ---- */
.hn__title {
    text-align: center;
    color: var(--hn-modra);
    font-size: 46px;
    line-height: 54px;
    font-weight: 500;
    margin: 42px 0 60px;
}

/* ---- Holder = barevny pruh sekce ---- */
.hn__holder {
    padding: 20px 0;
    background-color: var(--hn-seda-bg);
    position: relative;
    margin-bottom: 60px;
    border-radius: 14px;
}

.hn__holder--second {
    background: #fff;
    padding-top: 40px;
    margin-bottom: 0;
}

/* ---- Wrapper (kvuli plovoucimu stitku headline) ---- */
.hn__wrapper {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ---- Plovouci stitek nad sekci ---- */
.hn__headline {
    border-radius: 20px 20px 0 0;
    background: var(--hn-oranz);
    padding: 10px 18px;
    position: absolute;
    left: 28px;
    top: -65px;
    color: #fff;
    z-index: 1;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: .04em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hn__headline--second {
    background: var(--hn-oranz);
}

.hn__headline-ico {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: block;
}

/* ---- Mrizka bloku (Oblibene) — kompaktni, stejne velke karty ---- */
.hn__content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
}

/* Sekce Podle oboru — grid se 3 stejnymi sloupci */
.hn__content--second {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-bottom: 40px;
}

/* ---- Blok ---- */
.hn__block {
    position: relative;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* V gridu sirku ridi sloupec, ne flex/width */
.hn__content--second .hn__block {
    width: auto;
    flex-grow: 0;
    background: var(--hn-seda-bg-2);
    box-shadow: none;
}

/* ---- Nadpis bloku ---- */
.hn__block-title {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

/* Ikona oblibeneho v modrem kolecku */
.hn__block-ikona {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--hn-modra);
    color: #fff;
    overflow: hidden;
}

.hn__block-ikona svg {
    width: 20px;
    height: 20px;
}

.hn__block-ikona img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.hn__block-link {
    font-size: 16px;
    color: var(--hn-modra);
    font-weight: 500;
    padding-left: 10px;
    line-height: 1.2;
    text-decoration: none;
}

.hn__block-link:hover {
    color: var(--hn-modra-tmava);
    text-decoration: underline;
}

/* ---- Nadpis kategorie (gray varianta) ---- */
.hn__block-title--gray {
    margin: 0 0 16px 0;
}

.hn__block-cat {
    display: inline-block;
    padding-left: 0;
    margin: 0;
    font-size: 20px;
    line-height: 24px;
    font-weight: 500;
    color: var(--hn-modra);
    text-decoration: none;
}

.hn__block-cat:hover {
    color: var(--hn-modra-tmava);
    text-decoration: underline;
}

/* ---- Seznam odkazu v kategorii ---- */
.hn__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hn__list-item {
    margin-bottom: 14px;
}

.hn__list-item:last-child {
    margin-bottom: 0;
}

.hn__list-item--hidden {
    display: none;
}

.hn__item-link {
    display: block;
    color: var(--hn-modra);
    font-weight: 500;
    font-size: 15px;
    line-height: 1.3;
    text-decoration: none;
}

.hn__item-link:hover {
    color: var(--hn-modra-tmava);
    text-decoration: underline;
}

/* ---- Toggler zobrazit vice (akcentni oranzova) ---- */
.hn__toggler {
    color: var(--hn-oranz);
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    margin-top: 14px;
    user-select: none;
}

.hn__toggler:hover {
    color: var(--hn-oranz-tmava);
    text-decoration: underline;
}

/* =======================================================
   RESPONZIVITA
   ======================================================= */
@media (max-width: 900px) {
    .hn__block {
        width: calc(50% - 10px);
    }
    .hn__content--second {
        grid-template-columns: repeat(2, 1fr);
    }
    .hn__title {
        font-size: 36px;
        line-height: 42px;
        margin: 30px 0 60px;
    }
}

@media (max-width: 600px) {
    .hn__block {
        width: 100%;
    }
    .hn__content--second {
        grid-template-columns: 1fr;
    }
    .hn__title {
        font-size: 28px;
        line-height: 34px;
        margin: 20px 0 55px;
    }
    .hn__headline {
        left: 12px;
        top: -58px;
        font-size: 14px;
        padding: 9px 14px;
    }
    .hn__wrapper {
        padding: 0 10px;
    }
    .hn__holder {
        padding: 16px 0;
    }
}
