/* =====================================================================
   SP Jaczów — Aktualności + Szybkie linki + O nas v1.2
   Lekka sekcja zgodna z zaakceptowanym kierunkiem wizualnym.
   Typografia dziedziczona: Montserrat 400/500/600/700.
   ===================================================================== */

body.sp11-site .spj-home-hub {
    padding-block: clamp(2.75rem, 5vw, 4.25rem);
    color: #13263d;
    background: #ffffff;
}

body.sp11-site .spj-home-hub__grid {
    display: grid;
    grid-template-columns: minmax(0, 2.05fr) minmax(15rem, 0.95fr) minmax(17rem, 1.05fr);
    gap: clamp(1rem, 2.2vw, 1.5rem);
    align-items: stretch;
}

body.sp11-site .spj-home-hub__panel,
body.sp11-site .spj-home-hub__about {
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dce5ef;
    border-radius: 1.1rem;
}

body.sp11-site .spj-home-hub__panel-head {
    min-height: 4.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.4rem;
    border-bottom: 1px solid #e5ebf2;
}

body.sp11-site .spj-home-hub__panel-head--simple {
    justify-content: flex-start;
}

body.sp11-site .spj-home-hub__title {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0;
    color: #102b4e;
    font-family: inherit;
    font-size: clamp(1.35rem, 2vw, 1.65rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

body.sp11-site .spj-home-hub__title-icon {
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    display: grid;
    place-items: center;
    color: #2458ad;
}

body.sp11-site .spj-home-hub__title-icon svg {
    width: 1.65rem;
    height: 1.65rem;
}

body.sp11-site .spj-home-hub__all {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.45rem 0.55rem;
    color: #2458ad;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    border-radius: 0.55rem;
}

body.sp11-site .spj-home-hub__all:hover {
    color: #173f7b;
    text-decoration: underline;
    text-decoration-thickness: 0.1em;
    text-underline-offset: 0.16em;
}

body.sp11-site .spj-home-hub__all:focus-visible,
body.sp11-site .spj-home-hub-news-item h3 a:focus-visible,
body.sp11-site .spj-home-hub__quick-list a:focus-visible,
body.sp11-site .spj-home-hub__about-link:focus-visible {
    outline: 3px solid #ffbf47;
    outline-offset: 3px;
}

body.sp11-site .spj-home-hub__news-list {
    padding-inline: 1.4rem;
}

body.sp11-site .spj-home-hub-news-item {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(11.5rem, 15rem) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: center;
    padding-block: 1.25rem;
    border-bottom: 1px solid #e5ebf2;
}

body.sp11-site .spj-home-hub-news-item:last-child {
    border-bottom: 0;
}

body.sp11-site .spj-home-hub-news-item__media {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    aspect-ratio: 1.55 / 1;
    background: #eef4fb;
    border-radius: 0.75rem;
}

body.sp11-site .spj-home-hub-news-item__media picture,
body.sp11-site .spj-home-hub-news-item__media img {
    width: 100%;
    height: 100%;
    display: block;
}

body.sp11-site .spj-home-hub-news-item__media img {
    object-fit: cover;
}

body.sp11-site .spj-home-hub-news-item__date-tile {
    width: 100%;
    height: 100%;
    min-height: 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #173f7b;
    background: #eef4fb;
    text-align: center;
}

body.sp11-site .spj-home-hub-news-item__date-tile strong {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
}

body.sp11-site .spj-home-hub-news-item__date-tile span {
    margin-top: 0.3rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

body.sp11-site .spj-home-hub-news-item__content {
    min-width: 0;
}

body.sp11-site .spj-home-hub-news-item__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.8rem;
    color: #64758a;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.35;
}

body.sp11-site .spj-home-hub-news-item__meta > span {
    display: inline-flex;
    align-items: center;
    min-height: 1.7rem;
    padding: 0.18rem 0.55rem;
    color: #355f24;
    background: #eef7e8;
    border-radius: 0.45rem;
    font-weight: 600;
}

body.sp11-site .spj-home-hub-news-item h3 {
    margin: 0.62rem 0 0;
    color: #13263d;
    font-family: inherit;
    font-size: clamp(1.02rem, 1.6vw, 1.22rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

body.sp11-site .spj-home-hub-news-item h3 a {
    color: inherit;
    text-decoration: none;
    border-radius: 0.25rem;
}

body.sp11-site .spj-home-hub-news-item h3 a:hover {
    color: #2458ad;
    text-decoration: underline;
    text-decoration-thickness: 0.1em;
    text-underline-offset: 0.16em;
}

body.sp11-site .spj-home-hub-news-item__content > p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0.65rem 0 0;
    color: #4f6074;
    font-size: 0.92rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body.sp11-site .spj-home-hub__empty {
    padding: 1.5rem;
    color: #4f6074;
}

body.sp11-site .spj-home-hub__empty p {
    margin: 0;
}

body.sp11-site .spj-home-hub__quick-list {
    margin: 0;
    padding: 0 1.4rem;
    list-style: none;
}

body.sp11-site .spj-home-hub__quick-list li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #e5ebf2;
}

body.sp11-site .spj-home-hub__quick-list li:last-child {
    border-bottom: 0;
}

body.sp11-site .spj-home-hub__quick-list a {
    min-height: 4.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0.15rem;
    color: #2458ad;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
    border-radius: 0.35rem;
}

body.sp11-site .spj-home-hub__quick-list a:hover {
    color: #173f7b;
    text-decoration: underline;
    text-decoration-thickness: 0.1em;
    text-underline-offset: 0.16em;
}

body.sp11-site .spj-home-hub__quick-icon {
    width: 1.4rem;
    height: 1.4rem;
    flex: 0 0 1.4rem;
    display: grid;
    place-items: center;
    color: #173f7b;
    font-size: 1.05rem;
}

body.sp11-site .spj-home-hub__quick-icon svg {
    width: 1.15rem;
    height: 1.15rem;
}

body.sp11-site .spj-home-hub__about {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    color: #13263d;
    background: #f1f6fc;
    text-align: center;
}

body.sp11-site .spj-home-hub__about-icon {
    width: min(8rem, 42%);
    color: #2458ad;
}

body.sp11-site .spj-home-hub__about-icon svg {
    width: 100%;
    height: auto;
    display: block;
}

body.sp11-site .spj-home-hub__about-copy h2 {
    margin: 0;
    color: #102b4e;
    font-family: inherit;
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

body.sp11-site .spj-home-hub__about-copy p {
    max-width: 24rem;
    margin: 0.85rem auto 0;
    color: #4f6074;
    font-size: 0.9rem;
    line-height: 1.65;
}

body.sp11-site .spj-home-hub__about-link {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 1.25rem;
    padding: 0.72rem 1.15rem;
    color: #2458ad;
    background: #e2ebfa;
    border: 1px solid #d4e0f3;
    border-radius: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
}

body.sp11-site .spj-home-hub__about-link:hover {
    color: #ffffff;
    background: #2458ad;
    border-color: #2458ad;
}

@media (max-width: 72rem) {
    body.sp11-site .spj-home-hub__grid {
        grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.75fr);
    }

    body.sp11-site .spj-home-hub__news {
        grid-column: 1 / -1;
    }
}

@media (max-width: 46rem) {
    body.sp11-site .spj-home-hub {
        padding-block: 2.4rem;
    }

    body.sp11-site .spj-home-hub__grid {
        grid-template-columns: 1fr;
    }

    body.sp11-site .spj-home-hub__news {
        grid-column: auto;
    }

    body.sp11-site .spj-home-hub__panel-head {
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
        padding: 1rem;
    }

    body.sp11-site .spj-home-hub__panel-head--simple {
        flex-direction: row;
    }

    body.sp11-site .spj-home-hub__all {
        margin-left: 2.55rem;
    }

    body.sp11-site .spj-home-hub__news-list,
    body.sp11-site .spj-home-hub__quick-list {
        padding-inline: 1rem;
    }

    body.sp11-site .spj-home-hub-news-item {
        grid-template-columns: 8.5rem minmax(0, 1fr);
        gap: 1rem;
        padding-block: 1rem;
    }

    body.sp11-site .spj-home-hub-news-item__content > p {
        display: none;
    }
}

@media (max-width: 32rem) {
    body.sp11-site .spj-home-hub-news-item {
        grid-template-columns: 1fr;
    }

    body.sp11-site .spj-home-hub-news-item__media {
        aspect-ratio: 16 / 9;
    }

    body.sp11-site .spj-home-hub__about {
        padding: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.sp11-site .spj-home-hub *,
    body.sp11-site .spj-home-hub *::before,
    body.sp11-site .spj-home-hub *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}

@media (forced-colors: active) {
    body.sp11-site .spj-home-hub,
    body.sp11-site .spj-home-hub__panel,
    body.sp11-site .spj-home-hub__about,
    body.sp11-site .spj-home-hub-news-item__date-tile,
    body.sp11-site .spj-home-hub-news-item__meta > span,
    body.sp11-site .spj-home-hub__about-link {
        color: CanvasText;
        background: Canvas;
        border-color: CanvasText;
    }

    body.sp11-site .spj-home-hub__title-icon,
    body.sp11-site .spj-home-hub__about-icon,
    body.sp11-site .spj-home-hub__quick-icon {
        color: CanvasText;
    }
}

@media print {
    body.sp11-site .spj-home-hub {
        padding: 1.25rem 0;
    }

    body.sp11-site .spj-home-hub__grid {
        display: block;
    }

    body.sp11-site .spj-home-hub__panel,
    body.sp11-site .spj-home-hub__about {
        margin-bottom: 1rem;
        border: 1px solid #000000;
        border-radius: 0;
        box-shadow: none;
    }

    body.sp11-site .spj-home-hub__about-icon,
    body.sp11-site .spj-home-hub__all,
    body.sp11-site .spj-home-hub__about-link,
    body.sp11-site .spj-home-hub__quick-icon,
    body.sp11-site .spj-home-hub-news-item__media {
        display: none;
    }
}


/* --- SP Jaczów about-card decorative background v1.5.2 ---------------- */
body.sp11-site .spj-home-hub__about {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    background: linear-gradient(180deg, #fcfbff 0%, #f5efff 100%);
}

body.sp11-site .spj-home-hub__about::before {
    content: "";
    position: absolute;
    inset: auto auto -4.75rem -4.25rem;
    width: 13.5rem;
    height: 13.5rem;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(145, 181, 242, 0.22), rgba(145, 181, 242, 0.08) 55%, transparent 72%);
    pointer-events: none;
    z-index: 0;
}

body.sp11-site .spj-home-hub__about::after {
    content: "";
    position: absolute;
    right: -0.4rem;
    bottom: -0.45rem;
    width: min(68%, 19rem);
    aspect-ratio: 1122 / 1402;
    background: url("../images/decor/spj-home-hub-about-bg-v1.png") right bottom / contain no-repeat;
    opacity: 0.96;
    pointer-events: none;
    z-index: 0;
}

body.sp11-site .spj-home-hub__about-icon,
body.sp11-site .spj-home-hub__about-copy,
body.sp11-site .spj-home-hub__about-link {
    position: relative;
    z-index: 1;
}

body.sp11-site .spj-home-hub__about-copy {
    max-width: min(100%, 16.5rem);
}

body.sp11-site .spj-home-hub__about-copy p {
    max-width: 15.25rem;
    margin-left: 0;
    margin-right: 0;
}

body.sp11-site .spj-home-hub__about-link {
    color: #ffffff;
    background: linear-gradient(135deg, #8f69df 0%, #7a57cf 100%);
    border-color: #8c67dc;
}

body.sp11-site .spj-home-hub__about-link:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #7f5ed0 0%, #6947bb 100%);
    border-color: #744fc7;
}

@media (max-width: 72rem) {
    body.sp11-site .spj-home-hub__about::after {
        width: min(54%, 15rem);
        opacity: 0.88;
    }

    body.sp11-site .spj-home-hub__about-copy {
        max-width: min(100%, 15rem);
    }
}

@media (max-width: 56rem) {
    body.sp11-site .spj-home-hub__about {
        background: linear-gradient(180deg, #fcfbff 0%, #f6f1ff 100%);
    }

    body.sp11-site .spj-home-hub__about::after {
        display: none;
    }

    body.sp11-site .spj-home-hub__about::before {
        width: 9rem;
        height: 9rem;
        inset: auto auto -3rem -3rem;
        opacity: 0.8;
    }

    body.sp11-site .spj-home-hub__about-copy,
    body.sp11-site .spj-home-hub__about-copy p {
        max-width: none;
    }
}

@media (max-width: 32rem) {
    body.sp11-site .spj-home-hub__about {
        padding: 1.25rem;
        background: #f7f2ff;
    }

    body.sp11-site .spj-home-hub__about::before,
    body.sp11-site .spj-home-hub__about::after {
        display: none;
    }
}

@media (forced-colors: active) {
    body.sp11-site .spj-home-hub__about::before,
    body.sp11-site .spj-home-hub__about::after {
        display: none;
    }
}

@media print {
    body.sp11-site .spj-home-hub__about::before,
    body.sp11-site .spj-home-hub__about::after {
        display: none;
    }
}
