/* =========================================================
   CASSIOPEIA_TEST - USER.CSS
   Wersja portalowa / magazynowa
   ========================================================= */

/* ---------- BAZA ---------- */

:root {
    --portal-bg: #f5f5f5;
    --portal-surface: #ffffff;
    --portal-border: #e9e9e9;
    --portal-text: #222222;
    --portal-muted: #6f6f6f;
    --portal-accent: #e24b4b;
    --portal-dark: #1f1f1f;
    --portal-shadow: 0 8px 26px rgba(0, 0, 0, 0.06);
    --portal-radius: 0;
}

html,
body {
    background: var(--portal-bg);
    color: var(--portal-text);
}

body.site {
    background: var(--portal-bg);
    color: var(--portal-text);
    line-height: 1.6;
}

/* ---------- TYPOGRAFIA ---------- */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #202020;
    font-weight: 800;
    line-height: 1.2;
}

a {
    text-decoration: none;
    transition: 0.2s ease;
}

a:hover {
    text-decoration: none;
}

/* ---------- UKRYWANIE ZBĘDNYCH ELEMENTÓW ---------- */

.icons,
.article-info dd svg,
.article-info-term,
.metismenu.mod-menu .metismenu-item-icon {
    display: none !important;
}

/* ---------- HEADER / TOP ---------- */

.portal-header-wrap {
    background: #ffffff;
    border-bottom: 2px solid var(--portal-accent);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
    z-index: 20;
}

.portal-header-inner {
    width: min(1400px, 94%);
    margin: 0 auto;
    padding: 26px 0 18px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    align-items: center;
}

.portal-brand .navbar-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.portal-brand .brand-logo,
.portal-brand .navbar-brand a {
    font-size: 2.25rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: #4a4a4a;
}

.portal-brand .brand-logo img.logo {
    max-height: 54px;
    width: auto;
}

.site-description {
    font-size: 0.92rem;
    color: var(--portal-muted);
}

.portal-nav-wrap {
    display: grid;
    gap: 14px;
    justify-items: stretch;
}

.portal-below-top {
    width: 100%;
}

.portal-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

/* ---------- MENU ---------- */

.portal-nav-row .mod-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.portal-nav-row .mod-menu > li,
.portal-nav-row .mod-menu > .nav-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

.portal-nav-row .mod-menu > li > a,
.portal-nav-row .mod-menu > .nav-item > a {
    display: inline-flex;
    align-items: center;
    padding: 10px 2px;
    color: #535353;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
}

.portal-nav-row .mod-menu > li > a:hover,
.portal-nav-row .mod-menu > .nav-item > a:hover,
.portal-nav-row .mod-menu > li.active > a,
.portal-nav-row .mod-menu > .nav-item.current > a {
    color: var(--portal-accent);
    border-bottom-color: var(--portal-accent);
}

/* ---------- SEARCH ---------- */

.container-search {
    min-width: 240px;
    max-width: 320px;
    width: 100%;
}

.container-search .mod-finder,
.container-search .finder,
.container-search form {
    margin: 0;
}

.container-search input[type="search"],
.container-search input[type="text"],
.container-search .form-control {
    width: 100%;
    min-height: 42px;
    border: 1px solid #dddddd;
    border-radius: 0;
    box-shadow: none;
    padding: 10px 14px;
    background: #ffffff;
}

.container-search button,
.container-search .btn {
    border-radius: 0;
    border: 1px solid var(--portal-accent);
    background: var(--portal-accent);
    color: #ffffff;
    min-height: 42px;
    padding: 8px 16px;
}

.container-search button:hover,
.container-search .btn:hover {
    background: #cf3f3f;
    border-color: #cf3f3f;
}

/* ---------- GŁÓWNE WRAPPERy ---------- */

.portal-main {
    width: min(1400px, 94%);
    margin: 28px auto 40px;
}

.portal-box,
.portal-component,
.portal-hero-side,
.portal-feature-box,
.portal-main-top > *,
.portal-sidebar > *,
.portal-bottom > * {
    background: var(--portal-surface);
    border: 1px solid var(--portal-border);
    box-shadow: none;
}

/* ---------- TYTUŁY BLOKÓW ---------- */

.portal-module-title,
.moduletable > h3,
.card-header,
.module-title,
h3.mod-title {
    margin: 0 0 14px;
    padding-bottom: 6px;
    display: inline-block;
    border-bottom: 3px solid var(--portal-accent);
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #2a2a2a;
}

/* ---------- HERO ---------- */

.portal-hero {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 20px;
    margin-bottom: 30px;
}

.portal-hero-side,
.portal-feature-box {
    overflow: hidden;
    position: relative;
    min-height: 220px;
    background: #ffffff;
}

.portal-hero-right {
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 20px;
}

.portal-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.portal-hero-main img,
.portal-hero-side img,
.portal-feature-box img {
    width: 100%;
    height: auto;
    display: block;
}

.portal-hero-main .card,
.portal-hero-side .card,
.portal-feature-box .card {
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.portal-hero-main .card-body,
.portal-hero-side .card-body,
.portal-feature-box .card-body {
    padding: 20px;
}

.portal-hero-main h1,
.portal-hero-main h2,
.portal-hero-main h3 {
    font-size: clamp(1.6rem, 2.5vw, 2.4rem);
    margin-bottom: 12px;
}

.portal-hero-side h1,
.portal-hero-side h2,
.portal-hero-side h3,
.portal-feature-box h1,
.portal-feature-box h2,
.portal-feature-box h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.portal-hero-main p,
.portal-hero-side p,
.portal-feature-box p {
    color: #555;
    margin-bottom: 0;
}

/* ---------- UKŁAD TREŚCI ---------- */

.portal-content {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 340px;
    gap: 30px;
    align-items: start;
}

.portal-news {
    min-width: 0;
}

.portal-main-top {
    margin-bottom: 24px;
}

.portal-main-top > * {
    padding: 20px;
}

.portal-component {
    padding: 24px;
}

/* ---------- BREADCRUMBS ---------- */

.portal-breadcrumbs {
    margin-bottom: 16px;
}

.breadcrumb {
    margin: 0;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid var(--portal-border);
    border-radius: 0;
    font-size: 0.92rem;
}

/* ---------- TREŚĆ ARTYKUŁU ---------- */

.portal-component article,
.portal-component .item-page,
.portal-component .com-content-article,
.portal-component .blog-item {
    max-width: 100%;
}

.portal-component .page-header h1,
.portal-component .page-header h2,
.portal-component .item-title {
    font-size: clamp(1.5rem, 2.1vw, 2.2rem);
    margin-bottom: 12px;
}

.portal-component .article-info,
.portal-component .contentinfo,
.portal-main-top .article-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    color: var(--portal-muted);
    font-size: 0.88rem;
    margin-bottom: 12px;
    padding: 0;
    list-style: none;
}

.portal-component img,
.portal-main-top img,
.portal-sidebar img,
.portal-bottom img {
    max-width: 100%;
    height: auto;
}

.portal-component .readmore .btn,
.portal-main-top .readmore .btn,
.portal-sidebar .readmore .btn {
    border-radius: 0;
    background: var(--portal-accent);
    border: 1px solid var(--portal-accent);
    color: #fff;
    font-weight: 700;
    padding: 9px 16px;
}

.portal-component .readmore .btn:hover,
.portal-main-top .readmore .btn:hover,
.portal-sidebar .readmore .btn:hover {
    background: #cf3f3f;
    border-color: #cf3f3f;
}

/* ---------- BLOG / LISTY ARTYKUŁÓW ---------- */

.blog-items,
.items-row {
    row-gap: 20px;
}

.blog-item,
.item-content,
.com-content-category-blog__item,
.category-module li,
.latestnews li,
.newsflash-item {
    background: #ffffff;
}

.blog-item {
    padding-bottom: 10px;
}

.blog-item + .blog-item {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #eeeeee;
}

.blog-item .item-image img,
.item-image img {
    display: block;
    width: 100%;
    height: auto;
}

.latestnews,
.category-module,
.archive-module,
.relateditems,
.mostread {
    list-style: none;
    margin: 0;
    padding: 0;
}

.latestnews li,
.category-module li,
.archive-module li,
.relateditems li,
.mostread li {
    padding: 10px 0;
    border-bottom: 1px solid #efefef;
}

.latestnews li:last-child,
.category-module li:last-child,
.archive-module li:last-child,
.relateditems li:last-child,
.mostread li:last-child {
    border-bottom: 0;
}

.latestnews a,
.category-module a,
.archive-module a,
.relateditems a,
.mostread a {
    color: #2c2c2c;
    font-weight: 600;
}

.latestnews a:hover,
.category-module a:hover,
.archive-module a:hover,
.relateditems a:hover,
.mostread a:hover {
    color: var(--portal-accent);
}

/* ---------- SIDEBAR ---------- */

.portal-sidebar {
    display: grid;
    gap: 20px;
}

.portal-sidebar > * {
    padding: 20px;
}

.portal-sidebar .mod-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.portal-sidebar .mod-menu li {
    border-bottom: 1px solid #efefef;
    margin: 0;
}

.portal-sidebar .mod-menu li:last-child {
    border-bottom: 0;
}

.portal-sidebar .mod-menu a {
    display: block;
    padding: 10px 0;
    color: #2a2a2a;
    font-weight: 600;
}

.portal-sidebar .mod-menu a:hover {
    color: var(--portal-accent);
}

/* ---------- KARTY / MODUŁY ---------- */

.card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.card-body {
    padding: 0;
}

.card-header {
    background: transparent;
    border: 0;
}

.moduletable,
.module-card,
.custom,
.mod-custom {
    position: relative;
}

/* ---------- DOLNE SEKCJE ---------- */

.portal-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.portal-bottom > * {
    padding: 20px;
}

/* ---------- FOOTER ---------- */

.portal-footer-wrap {
    background: var(--portal-dark);
    color: #ffffff;
    margin-top: 40px;
}

.portal-footer-inner {
    width: min(1400px, 94%);
    margin: 0 auto;
    padding: 24px 0;
}

.portal-footer-wrap a {
    color: #ffffff;
}

.portal-footer-wrap a:hover {
    color: #ffdede;
}

/* ---------- BUTTONY ---------- */

.btn,
button,
input[type="submit"],
input[type="button"] {
    border-radius: 0;
}

.btn-primary,
button.btn-primary {
    background: var(--portal-accent);
    border-color: var(--portal-accent);
}

.btn-primary:hover,
button.btn-primary:hover {
    background: #cf3f3f;
    border-color: #cf3f3f;
}

/* ---------- PAGINACJA ---------- */

.pagination {
    gap: 6px;
    flex-wrap: wrap;
}

.pagination .page-link,
.pagination a,
.pagination span {
    border-radius: 0 !important;
}

/* ---------- FORMULARZE ---------- */

.form-control,
input[type="text"],
input[type="email"],
input[type="search"],
textarea,
select {
    border-radius: 0;
    box-shadow: none;
}

.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
    border-color: var(--portal-accent);
    box-shadow: none;
}

/* ---------- RESPONSYWNOŚĆ ---------- */

@media (max-width: 1100px) {
    .portal-hero,
    .portal-content,
    .portal-bottom {
        grid-template-columns: 1fr;
    }

    .portal-hero-right {
        grid-template-rows: auto auto;
    }

    .portal-sidebar {
        order: 2;
    }
}

@media (max-width: 900px) {
    .portal-header-inner {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .portal-nav-row {
        justify-content: flex-start;
    }

    .portal-brand .brand-logo,
    .portal-brand .navbar-brand a {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .portal-main {
        width: min(96%, 96%);
        margin-top: 18px;
    }

    .portal-feature-grid {
        grid-template-columns: 1fr;
    }

    .portal-component,
    .portal-main-top > *,
    .portal-sidebar > *,
    .portal-bottom > * {
        padding: 16px;
    }

    .portal-hero {
        gap: 16px;
    }
}

@media (max-width: 576px) {
    .portal-nav-row {
        gap: 10px;
    }

    .container-search {
        min-width: 100%;
        max-width: 100%;
    }

    .portal-brand .brand-logo,
    .portal-brand .navbar-brand a {
        font-size: 1.55rem;
    }

    .portal-hero-main h1,
    .portal-hero-main h2,
    .portal-hero-main h3 {
        font-size: 1.4rem;
    }
}


/* pełna szerokość strony */
.container,
.container-header,
.container-topbar,
.container-banner,
.container-top-a,
.container-top-b,
.container-component,
.container-sidebar-right,
.container-sidebar-left,
.container-footer {
    max-width: 100% !important;
    width: 100% !important;
}

/* grid główny */
.site-grid {
    max-width: 1400px;
    margin: 0 auto;
}

/* hero pełna szerokość */
.container-banner {
    max-width: 100% !important;
    width: 100% !important;
}

/* popraw marginesy */
body {
    margin: 0;
    padding: 0;
}

.portal-nav-row {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 24px !important;
    flex-wrap: nowrap !important;
}

.portal-nav-row .mod-menu,
.portal-nav-row ul.mod-menu,
.portal-nav-row ul {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 24px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.portal-nav-row .mod-menu li,
.portal-nav-row ul li,
.portal-nav-row .nav-item {
    display: inline-flex !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.portal-nav-row .mod-menu li a,
.portal-nav-row ul li a,
.portal-nav-row .nav-item a {
    display: inline-flex !important;
    align-items: center !important;
    padding: 6px 0 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    border-bottom: 2px solid transparent !important;
}

.portal-nav-row .mod-menu li a:hover,
.portal-nav-row ul li a:hover,
.portal-nav-row .nav-item a:hover,
.portal-nav-row .current a,
.portal-nav-row .active a {
    border-bottom-color: #e24b4b !important;
}

/* ---------- DOPRACOWANIE WIZUALNE ---------- */

/* Pasek below-top: pełna szerokość, treść w kolumnie jak header */
.portal-header-wrap > .portal-below-top {
    width: 100%;
    margin: 0;
    padding: 0;
    border-top: 1px solid #e8ecf3;
    background: #f0f3f9;
}

.portal-header-wrap > .portal-below-top .mod-custom,
.portal-header-wrap > .portal-below-top .moduletable,
.portal-header-wrap > .portal-below-top .custom {
    max-width: min(1400px, 94%);
    margin-left: auto;
    margin-right: auto;
    padding: 14px 3% 18px;
    box-sizing: border-box;
}

.portal-header-wrap > .portal-below-top img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.07);
}

/* Baner / moduł w pasie — lepsze „wcięcie” w styl strony */
.portal-header-wrap > .portal-below-top .mod-custom img,
.portal-header-wrap > .portal-below-top a img {
    margin-top: 4px;
}

/* Hero główny: mniej pustej przestrzeni, treść od góry */
.portal-hero-main .card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    min-height: 0;
}

.portal-hero-left {
    min-height: 0 !important;
    justify-content: flex-start !important;
    padding-top: 18px;
    padding-bottom: 18px;
}

.portal-hero-left h2 {
    font-size: clamp(1.8rem, 2.5vw, 2.25rem) !important;
    line-height: 1.22;
    margin-bottom: 6px !important;
}

.portal-hero-main h1,
.portal-hero-main h2,
.portal-hero-main h3 {
    font-size: clamp(1.8rem, 2.5vw, 2.35rem);
    line-height: 1.22;
}

.portal-hero-main p,
.portal-hero-left p {
    flex: 0 1 auto;
    margin-bottom: 0;
    color: #4a4a4a;
}

/* Lista artykułów: wyraźnie niższa hierarchia niż hero */
.portal-component .blog-item h2,
.portal-component .blog-item h3,
.portal-component .blog-item .item-title {
    font-size: clamp(1.15rem, 1.55vw, 1.42rem) !important;
    line-height: 1.3;
    font-weight: 800;
}

.portal-component .page-header h1,
.portal-component .item-page .page-header h1 {
    font-size: clamp(1.35rem, 2vw, 1.85rem);
}

/* Menu: większy odstęp między tekstem a podkreśleniem */
.portal-nav-row .mod-menu li a,
.portal-nav-row ul.mod-menu li a,
.portal-nav-row .nav-item a {
    padding-top: 4px !important;
    padding-bottom: 12px !important;
}

/* Ul w wyszukiwarce nie może dziedziczyć flex-row z .portal-nav-row ul */
.portal-nav-row .container-search ul,
.portal-nav-row .container-search ol {
    display: revert !important;
    flex-direction: revert !important;
    align-items: revert !important;
    justify-content: revert !important;
    gap: revert !important;
    list-style: revert !important;
    margin: revert !important;
    padding: revert !important;
}

/* Sidebar: spójne karty jak reszta portalu */
.portal-sidebar > * {
    padding: 18px;
    border-radius: 6px;
    box-sizing: border-box;
}

.portal-sidebar .moduletable,
.portal-sidebar .mod-custom {
    border-radius: 6px;
}

/* Tło strony jak w makiecie portalu */
body.site {
    background: #f5f7fb;
}

/* Obrazy w głównym bloku hero — zaokrąglenie jak w liście */
.portal-hero-main .item-image img {
    border-radius: 6px;
}

/* =========================
   HERO + kafle (top-a)
========================= */

.container-top-a {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* LEWA DUŻA WIADOMOŚĆ */
.container-top-a > .moduletable:first-child {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    min-height: 320px;
}

/* PRAWA KOLUMNA */
.container-top-a > .moduletable:not(:first-child) {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* MAŁE KAFLE */
.container-top-a .moduletable:not(:first-child) .mod-custom {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
}

/* TYTUŁY */
.container-top-a h1,
.container-top-a h2,
.container-top-a h3 {
    font-weight: 700;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 900px) {
    .container-top-a {
        grid-template-columns: 1fr;
    }
}

/* =========================
   HERO + kafle - poprawka pod rzeczywisty DOM
========================= */

.portal-hero {
    display: grid;
    grid-template-columns: 2fr 1.15fr;
    gap: 20px;
    align-items: stretch;
}

.portal-hero-main h1,
.portal-hero-main h2,
.portal-hero-main h3 {
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 12px;
    font-weight: 800;
}

.portal-hero-main p {
    font-size: 1rem;
    color: #555;
}

.portal-hero-right {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 18px;
}

.portal-hero-side {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.portal-hero-side img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin-bottom: 12px;
}

.portal-hero-side h1,
.portal-hero-side h2,
.portal-hero-side h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.portal-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.portal-feature-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    min-height: 180px;
}

.portal-feature-box img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin-bottom: 10px;
}

.portal-feature-box h1,
.portal-feature-box h2,
.portal-feature-box h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.portal-feature-box p {
    color: #666;
    font-size: 0.95rem;
}

@media (max-width: 1100px) {
    .portal-hero {
        grid-template-columns: 1fr;
    }

    .portal-feature-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .portal-feature-grid {
        grid-template-columns: 1fr;
    }

    .portal-hero-main {
        min-height: 260px;
        padding: 18px;
    }

    .portal-hero-main h1,
    .portal-hero-main h2,
    .portal-hero-main h3 {
        font-size: 1.5rem;
    }
}

/* =========================
   HERO portalowy - zdjęcie + overlay
========================= */

.portal-hero-main {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    padding: 0 !important;
    background-image: url('https://piasecznik.pl/images/Gemini_Generated_Image_4jk23a4jk23a4jk2.png') !important;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-color: #1f1f1f !important;
    border-radius: 14px;
}

.portal-hero-main::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.78), rgba(0,0,0,0.18));
    z-index: 1;
}

.portal-hero-main > * {
    position: relative;
    z-index: 2;
}

.portal-hero-main .moduletable,
.portal-hero-main .mod-custom,
.portal-hero-main .custom,
.portal-hero-main .card,
.portal-hero-main .card-body {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    height: 100%;
}

.portal-hero-main .mod-custom,
.portal-hero-main .custom,
.portal-hero-main .card-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 420px;
    padding: 28px !important;
}

.portal-hero-main h1,
.portal-hero-main h2,
.portal-hero-main h3 {
    color: #ffffff !important;
    font-size: clamp(2rem, 3vw, 3rem) !important;
    line-height: 1.05 !important;
    margin: 0 0 12px !important;
    font-weight: 800 !important;
    max-width: 85%;
}

.portal-hero-main p {
    color: rgba(255,255,255,0.92) !important;
    font-size: 1rem;
    margin: 0 0 14px !important;
    max-width: 72%;
}

.portal-hero-main a {
    color: #ffffff !important;
}

.portal-hero-main .readmore a,
.portal-hero-main .btn,
.portal-hero-main .tm-hero-button {
    display: inline-block;
    width: fit-content;
    background: #e24b4b !important;
    color: #ffffff !important;
    border: 1px solid #e24b4b !important;
    border-radius: 0;
    padding: 10px 16px;
    font-weight: 700;
    text-decoration: none !important;
}

.portal-hero-main .readmore a:hover,
.portal-hero-main .btn:hover,
.portal-hero-main .tm-hero-button:hover {
    background: #cf3f3f !important;
    border-color: #cf3f3f !important;
}

@media (max-width: 700px) {
    .portal-hero-main {
        min-height: 300px;
    }

    .portal-hero-main .mod-custom,
    .portal-hero-main .custom,
    .portal-hero-main .card-body {
        min-height: 300px;
        padding: 18px !important;
    }

    .portal-hero-main h1,
    .portal-hero-main h2,
    .portal-hero-main h3 {
        max-width: 100%;
        font-size: 1.6rem !important;
    }

    .portal-hero-main p {
        max-width: 100%;
    }
}

/* =========================
   HERO PRO STYLE
========================= */

/* mocniejszy gradient */
.portal-hero-main::before {
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85) 0%,
        rgba(0,0,0,0.55) 40%,
        rgba(0,0,0,0.15) 100%
    ) !important;
}

/* animacja zoom */
.portal-hero-main {
    transition: transform 0.5s ease, box-shadow 0.3s ease;
}

.portal-hero-main:hover {
    transform: scale(1.015);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

/* tekst niżej */
.portal-hero-main .mod-custom,
.portal-hero-main .custom,
.portal-hero-main .card-body {
    justify-content: flex-end;
    padding-bottom: 40px !important;
}

/* większy tytuł */
.portal-hero-main h1,
.portal-hero-main h2,
.portal-hero-main h3 {
    text-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

/* przycisk bardziej "portalowy" */
.portal-hero-main .readmore a,
.portal-hero-main .btn {
    background: #e53935 !important;
    border: none !important;
    padding: 12px 18px;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.portal-hero-main .readmore a:hover,
.portal-hero-main .btn:hover {
    background: #c62828 !important;
}

/* HERO FIX - pełne wypełnienie zdjęciem */
.portal-hero-main {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.portal-hero-main:hover {
    transform: scale(1.015);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

/* MINI HERO - prawy górny box */
.portal-hero-side .moduletable:first-child {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    min-height: 140px;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    color: #fff;
}

/* tło obraz */
.portal-hero-side .moduletable:first-child::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('/images/Gemini_Generated_Image_4jk23a4jk23a4jk2.png') center center / cover no-repeat;
    z-index: 1;
}

/* overlay */
.portal-hero-side .moduletable:first-child::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.2));
    z-index: 2;
}

/* tekst */
.portal-hero-side .moduletable:first-child * {
    position: relative;
    z-index: 3;
    color: #fff !important;
}

/* hover */
.portal-hero-side .moduletable:first-child:hover {
    transform: scale(1.02);
    transition: 0.3s;
}

/* MINI HERO - stylowanie całego .portal-hero-side */
.portal-hero-side {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    min-height: 170px;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    background: transparent !important;
}

/* obraz tła */
.portal-hero-side::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('https://piasecznik.pl/images/Gemini_Generated_Image_4jk23a4jk23a4jk2.png') center center / cover no-repeat;
    z-index: 1;
}

/* overlay */
.portal-hero-side::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0.18));
    z-index: 2;
}

/* wszystko wewnątrz nad overlayem */
.portal-hero-side > * {
    position: relative;
    z-index: 3;
    width: 100%;
}

/* wyczyść białe tła wewnątrz */
.portal-hero-side .moduletable,
.portal-hero-side .mod-custom,
.portal-hero-side .custom,
.portal-hero-side .card,
.portal-hero-side .card-body {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* tekst */
.portal-hero-side h1,
.portal-hero-side h2,
.portal-hero-side h3,
.portal-hero-side p,
.portal-hero-side a,
.portal-hero-side span,
.portal-hero-side div {
    color: #ffffff !important;
}

.portal-hero-side h1,
.portal-hero-side h2,
.portal-hero-side h3 {
    font-size: 1.2rem !important;
    line-height: 1.15 !important;
    margin: 0 0 8px !important;
    font-weight: 800 !important;
}

.portal-hero-side p {
    font-size: 0.92rem;
    margin: 0 !important;
    color: rgba(255,255,255,0.92) !important;
}

/* hover */
.portal-hero-side {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portal-hero-side:hover {
    transform: scale(1.02);
    box-shadow: 0 16px 30px rgba(0,0,0,0.18);
}

/* MINI HERO PRO STYLE */
.portal-hero-side {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    min-height: 170px;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    background: transparent !important;
    cursor: pointer;
}

/* obraz */
.portal-hero-side::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('https://piasecznik.pl/images/Gemini_Generated_Image_4jk23a4jk23a4jk2.png') center center / cover no-repeat;
    z-index: 1;
    transition: transform 0.6s ease;
}

/* overlay lepszy */
.portal-hero-side::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85) 0%,
        rgba(0,0,0,0.55) 40%,
        rgba(0,0,0,0.15) 100%
    );
    z-index: 2;
}

/* tekst */
.portal-hero-side > * {
    position: relative;
    z-index: 3;
    width: 100%;
}

/* usuń białe tła */
.portal-hero-side .moduletable,
.portal-hero-side .card,
.portal-hero-side .card-body {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* typografia */
.portal-hero-side h1,
.portal-hero-side h2,
.portal-hero-side h3 {
    font-size: 1.3rem !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    margin: 0 0 6px !important;
    color: #fff !important;
}

/* opis */
.portal-hero-side p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85) !important;
    margin: 0 !important;
}

/* hover - zoom obrazu */
.portal-hero-side:hover::before {
    transform: scale(1.08);
}

/* hover - lekki lift */
.portal-hero-side:hover {
    transform: translateY(-4px);
}

/* smooth */
.portal-hero-side {
    transition: all 0.3s ease;
}

/* MINI HERO - FINAL UX IMPROVEMENT */

/* więcej wysokości */
.portal-hero-side {
    min-height: 190px !important;
    padding: 22px !important;
}

/* tekst niżej (bardziej portalowo) */
.portal-hero-side > * {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

/* tytuł bardziej wyraźny */
.portal-hero-side h1,
.portal-hero-side h2,
.portal-hero-side h3 {
    font-size: 1.4rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.3px;
}

/* label "Aktualności" mniejsze */
.portal-hero-side .category-name,
.portal-hero-side .tag,
.portal-hero-side small {
    font-size: 0.7rem !important;
    opacity: 0.85;
    margin-bottom: 6px;
}

/* hover bardziej żywy */
.portal-hero-side:hover::after {
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.9),
        rgba(0,0,0,0.6),
        rgba(0,0,0,0.2)
    );
}

/* RIGHT COLUMN NEWS STACK */

/* odstępy między modułami */
.portal-hero-side + .moduletable,
.portal-hero-side + div,
.portal-hero-side ~ .moduletable {
    margin-top: 14px;
}

/* wszystkie boxy w sidebar jako news */
.portal-hero-side + *,
.portal-hero-side ~ * {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* hover jak news */
.portal-hero-side + *:hover,
.portal-hero-side ~ *:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

/* obrazki w sidebar */
.portal-hero-side ~ img,
.portal-hero-side ~ .moduletable img {
    border-radius: 10px;
}

/* usuń "kartkowy" styl */
.portal-hero-side ~ .card,
.portal-hero-side ~ .moduletable,
.portal-hero-side ~ .custom {
    background: #ffffff;
    padding: 12px !important;
}

/* tytuły newsów */
.portal-hero-side ~ h3,
.portal-hero-side ~ h4 {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
}

/* RIGHT COLUMN - dolne boksy w .portal-feature-grid */

.portal-feature-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
}

.portal-feature-box {
    background: #ffffff !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    padding: 14px !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
    min-height: 220px;
}

.portal-feature-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.12) !important;
}

.portal-feature-box img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 10px !important;
    margin-bottom: 10px !important;
}

.portal-feature-box h1,
.portal-feature-box h2,
.portal-feature-box h3,
.portal-feature-box h4 {
    font-size: 1rem !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    margin: 0 0 8px !important;
}

.portal-feature-box p {
    font-size: 0.92rem !important;
    color: #666 !important;
    margin: 0 !important;
}

.portal-feature-box .moduletable,
.portal-feature-box .mod-custom,
.portal-feature-box .custom,
.portal-feature-box .card,
.portal-feature-box .card-body {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

@media (max-width: 700px) {
    .portal-feature-grid {
        grid-template-columns: 1fr !important;
    }

    .portal-feature-box {
        min-height: auto;
    }
}

/* HERO i MINI HERO - UX kliknięcia */
.portal-hero-main,
.portal-hero-side {
    cursor: pointer;
}

.portal-hero-main a,
.portal-hero-side a {
    position: relative;
    z-index: 5;
}

.portal-hero-main:hover,
.portal-hero-side:hover {
    filter: brightness(1.03);
}

/* ALERT BOX - prawy dolny box */
.portal-feature-box:last-child {
    background: linear-gradient(135deg, #c62828, #e53935) !important;
    color: #ffffff !important;
    border: 0 !important;
    box-shadow: 0 12px 24px rgba(198, 40, 40, 0.28) !important;
}

.portal-feature-box:last-child h1,
.portal-feature-box:last-child h2,
.portal-feature-box:last-child h3,
.portal-feature-box:last-child h4,
.portal-feature-box:last-child p,
.portal-feature-box:last-child a,
.portal-feature-box:last-child span,
.portal-feature-box:last-child div {
    color: #ffffff !important;
}

.portal-feature-box:last-child h1,
.portal-feature-box:last-child h2,
.portal-feature-box:last-child h3,
.portal-feature-box:last-child h4 {
    font-size: 1.05rem !important;
    font-weight: 900 !important;
    margin-bottom: 8px !important;
}

.portal-feature-box:last-child:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 28px rgba(198, 40, 40, 0.36) !important;
}

/* RIGHT COLUMN - dolne boksy w .portal-feature-grid */

.portal-feature-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
}

.portal-feature-box {
    background: #ffffff !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    padding: 14px !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
    min-height: 220px;
}

.portal-feature-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.12) !important;
}

.portal-feature-box img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 10px !important;
    margin-bottom: 10px !important;
}

.portal-feature-box h1,
.portal-feature-box h2,
.portal-feature-box h3,
.portal-feature-box h4 {
    font-size: 1rem !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    margin: 0 0 8px !important;
}

.portal-feature-box p {
    font-size: 0.92rem !important;
    color: #666 !important;
    margin: 0 !important;
}

.portal-feature-box .moduletable,
.portal-feature-box .mod-custom,
.portal-feature-box .custom,
.portal-feature-box .card,
.portal-feature-box .card-body {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

@media (max-width: 700px) {
    .portal-feature-grid {
        grid-template-columns: 1fr !important;
    }

    .portal-feature-box {
        min-height: auto;
    }
}