/* =========================================================
   1. GŁÓWNA STRUKTURA I TŁO STRONY (1372px)
   ========================================================= */

body {
    background-image: url('https://gbp-trabkiwielkie.pl/panwladek/media/templates/site/cassiopeia/images/page.png?v=1') !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    background-position: center top !important;
    background-size: cover !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* GŁÓWNA RAMKA STRONY (1372px) Z MLECZNYM TŁEM */
.site-wrapper {
    width: 1372px !important;
    max-width: 1372px !important;
    margin: 0 auto !important;
    background-color: rgba(255, 255, 255, 0.45) !important;
    border: 3px solid #2d3748 !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4) !important;
    box-sizing: border-box !important;
}

/* KONTENERY GŁÓWNE */
.container-header,
.container-main,
.container-footer {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 !important;
}

/* =========================================================
   2. BANER GÓRNY I NAGŁÓWEK
   ========================================================= */

.site-wrapper .container-header {
    margin: 0 !important;
    padding: 0 !important;
}

.site-wrapper .header {
    background-image: url('https://gbp-trabkiwielkie.pl/panwladek/media/templates/site/cassiopeia_panwladek/images/header.jpg') !important;
    background-repeat: no-repeat !important;
    background-position: center top !important;
    background-size: 100% 100% !important;
    height: 330px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ukrycie logo tekstowego Cassiopeia oraz paska wyszukiwania w nagłówku */
.navbar-brand,
.brand-logo,
.site-brand,
a.brand,
.header-search {
    display: none !important;
}

.container-header .header-w,
.container-header .grid-child {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* =========================================================
   3. MENU POZIOME - WYRÓWNANE DO BANERU
   ========================================================= */

.mod-menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    list-style: none !important;
    margin: 0 auto !important; 
    padding: 0 !important;
    background: linear-gradient(to bottom, #4a5568, #2d3748) !important;
    width: 100% !important;
    max-width: 1367px !important;
    border: 1px solid #1a202c !important;
    border-top: none !important;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.25) !important;
    box-sizing: border-box !important;
}

.mod-menu li {
    flex: 1 !important;
    text-align: center !important;
    position: relative !important;
}

.mod-menu li:not(:last-child)::after {
    content: "" !important;
    position: absolute !important;
    right: 0 !important;
    top: 20% !important;
    height: 60% !important;
    width: 2px !important;
    background: #627284 !important;
    box-shadow: 1px 0px 1px rgba(0, 0, 0, 0.8) !important;
}

.mod-menu a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 48px !important;
    padding: 5px 8px !important;
    color: #f7fafc !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
    letter-spacing: 0.5px !important;
    transition: all 0.2s ease-in-out !important;
}

.mod-menu a:hover {
    background-color: #ff7700 !important;
    color: #ffffff !important;
    text-shadow: 0px 1px 3px rgba(0,0,0,0.6) !important;
}

.mod-menu li.active > a,
.mod-menu li.current > a,
.mod-menu a.active {
    background: linear-gradient(to bottom, #ff7700, #e65c00) !important;
    color: #ffffff !important;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5) !important;
}

/* =========================================================
   4. ROZCIĄGNIĘCIE I SKLEJENIE WSZYSTKICH SEKCJI I MODUŁÓW
   ========================================================= */

.container-main, 
.container-component,
.container-banner,
.container-top-a,
.container-top-b,
.container-bottom-a,
.container-bottom-b,
.grid-child,
main,
.row,
[class*="container-"] {
    max-width: 1367px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    gap: 0 !important;
}

/* Wyczyszczenie marginesów i ramek w modułach */
.card, 
.card-body,
.mod-custom,
.site-container,
#main-content,
.module,
.module-body,
div[class*="mod-"] {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    width: 100% !important;
}

/* Usuwa niewidzialne odstępy w modułach Custom HTML */
.mod-custom p,
.mod-custom h1,
.mod-custom h2,
.mod-custom h3,
.mod-custom div {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.mod-custom table,
.mod-custom img {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* =========================================================
   5. RESETY MARGINESÓW DLA "POJEDYNCZEGO ARTYKUŁU"
   ========================================================= */

.com-content-article,
.com-content-article .page-header,
.com-content-article .item-page,
.com-content-article__body,
.com-content-article div,
.item-page,
.page-header,
#main-content {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border: none !important;
}

.com-content-article__body {
    background: transparent !important;
}

.com-content-article__body p,
.com-content-article__body ul,
.com-content-article__body ol {
    margin-top: 0 !important;
    margin-bottom: 1.2rem !important;
    line-height: 1.6 !important;
}

/* =========================================================
   6. UNIWERSALNE POMARAŃCZOWE BELKI
   ========================================================= */

/* GŁÓWNY NAGŁÓWEK KATEGORII ORAZ POJEDYNCZEGO ARTYKUŁU */
h1,
.page-title,
.page-header h1, 
.page-header h2,
.blog .page-header h1,
.blog .page-header h2,
.com-content-category .page-header h1,
.com-content-category .page-header h2,
.com-content-category-blog .page-header h1,
.com-content-article .page-header h1,
.com-content-article h1,
.item-page h1 {
    background: linear-gradient(to bottom, #ff7700, #e65c00) !important;
    color: #ffffff !important;
    display: block !important;
    width: 100% !important;
    padding: 8px 10px !important;
    margin-top: 0 !important;
    margin-bottom: 2px !important;
    text-align: center !important;
    font-weight: bold !important;
    box-sizing: border-box !important;
    font-size: 20px !important;
    text-transform: uppercase !important;
    border: none !important;
    text-decoration: none !important;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* TYTUŁY ARTYKUŁÓW WEWNĄTRZ LISTY BLOGA */
.blog-item .item-title,
.blog .item-title h2,
.blog .item-title a,
.item-title,
.item-title a {
    background: linear-gradient(to bottom, #ff7700, #e65c00) !important;
    color: #ffffff !important;
    display: block !important;
    width: 100% !important;
    padding: 8px 10px !important;
    margin-top: 5px !important;
    margin-bottom: 5px !important;
    text-align: center !important;
    font-weight: bold !important;
    box-sizing: border-box !important;
    font-size: 18px !important;
    text-transform: uppercase !important;
    border: none !important;
    text-decoration: none !important;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* UKRYCIE METADANYCH ("Szczegóły", "Kategoria") */
.article-info,
.blog .article-info,
.com-content-category .article-info,
.com-content-category-blog .article-info,
dl.article-info {
    display: none !important;
}

/* ODSTĘP MIĘDZY CAŁYMI WPISAMI */
.blog-item,
.com-content-category-blog__item,
.com-content-category-blog .items-row,
.com-content-category-blog .blog-items > div {
    margin-bottom: 10px !important;
    padding-bottom: 10px !important;
    background-color: rgba(187, 196, 208, 0.75) !important;
    overflow: hidden !important;
}

/* =========================================================
   7. STYLIZACJA PRZYCISKÓW "WSTECZ" I "WIĘCEJ..."
   ========================================================= */

.art-button-wrapper {
    display: inline-block !important;
    margin: 10px 0 !important;
}

.art-button,
a.art-button,
.readon,
a.readon,
.art-button-wrapper a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(to bottom, #ff7700, #e65c00) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    padding: 8px 18px !important;
    border-radius: 4px !important;
    border: 1px solid #cc5200 !important;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.2s ease-in-out !important;
    cursor: pointer !important;
}

/* PRZYCISK "Więcej..." Z JOOMLA (.readmore) - W PRAWEJ KOLUMNIE POD TEKSTEM */
.readmore,
p.readmore,
div.readmore {
    grid-column: 2 !important; /* Wychodzi do prawej kolumny pod opis */
    display: block !important;
    margin-top: 10px !important;
    margin-bottom: 5px !important;
    clear: none !important;
    float: none !important;
    width: auto !important;
}

.readmore .btn,
.readmore .btn-secondary,
a.btn.btn-secondary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(to bottom, #ff7700, #e65c00) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    padding: 6px 14px !important;
    border-radius: 4px !important;
    border: 1px solid #cc5200 !important;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.2s ease-in-out !important;
    cursor: pointer !important;
}

.readmore .btn:hover,
.readmore .btn-secondary:hover,
a.btn.btn-secondary:hover,
.art-button:hover,
a.art-button:hover,
.readon:hover,
a.readon:hover {
    background: linear-gradient(to bottom, #ff8811, #ff6600) !important;
    color: #ffffff !important;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.35) !important;
    text-decoration: none !important;
}

.readmore .btn .icon-chevron-right,
.readmore .btn span {
    color: #ffffff !important;
    margin-right: 5px !important;
}

/* =========================================================
   8. STYLOWANIE PAGINACJI
   ========================================================= */

.pagination-wrapper,
.com-content-category-blog__navigation,
nav.pagination,
div.pagination {
    background-color: rgba(240, 244, 248, 0.85) !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 18px 15px 25px 15px !important;
    margin-top: 15px !important;
    margin-bottom: 30px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 15px !important;
    justify-items: center !important;
    align-items: center !important;
}

.pagination-counter,
.com-content-category-blog__counter,
.counter,
p.counter {
    grid-row: 1 !important;
    text-align: center !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    font-size: 15px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.pagination,
ul.pagination {
    grid-row: 2 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.pagination li {
    margin: 0 !important;
    padding: 0 !important;
}

.pagination .page-link,
.pagination a,
.pagination span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 42px !important;
    height: 36px !important;
    padding: 0 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out !important;
}

.pagination .active .page-link,
.pagination .active span,
.pagination li.active a {
    background: linear-gradient(to bottom, #ff7700, #e65c00) !important;
    border-color: #cc5200 !important;
    color: #ffffff !important;
    font-weight: bold !important;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.pagination a.page-link:hover,
.pagination a:hover {
    background-color: #ff7700 !important;
    color: #ffffff !important;
    border-color: #cc5200 !important;
}

/* =========================================================
   9. STYLOWANIE SEKCJI FILMY I BANERÓW GÓRNYCH
   ========================================================= */

.filmy-sekcja {
    background-color: rgba(187, 196, 208, 0.75) !important;
    margin-top: 20px !important;
    margin-bottom: 25px !important;
    box-sizing: border-box !important;
    border: 1px solid #a2b0c2 !important;
}

.filmy-naglowek {
    background: linear-gradient(to bottom, #ff7700, #e65c00) !important;
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: bold !important;
    text-align: center !important;
    padding: 8px 15px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.filmy-siatka {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
    gap: 15px !important;
    padding: 15px !important;
    justify-items: center !important;
    align-items: center !important;
}

.film-item {
    width: 100% !important;
    max-width: 200px !important;
    background-color: #ffffff !important;
    padding: 4px !important;
    border-radius: 4px !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    box-sizing: border-box !important;
}

.film-item video {
    width: 100% !important;
    height: auto !important;
    max-height: 180px !important;
    display: block !important;
    border-radius: 2px !important;
}

/* BANER GÓRNY Z BOKSAMI (FB / E-PITY / SZUKAJ) */
.baner-gorny {
    background-color: rgba(187, 196, 208, 0.75) !important;
    border: 1px solid #a2b0c2 !important;
    border-radius: 6px !important;
    margin-top: 15px !important;
    margin-bottom: 20px !important;
    padding: 10px 15px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
}

.baner-fb img,
.baner-fb .fb-ico {
    height: 45px !important;
    max-height: 45px !important;
    width: auto !important;
    display: block !important;
    transition: transform 0.2s ease !important;
}

.baner-fb:hover img {
    transform: scale(1.05) !important;
}

.baner-fb {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
    color: #1e293b !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    background-color: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 6px 12px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
}

.baner-fb strong {
    color: #0d5aa7 !important;
    text-decoration: underline !important;
}

.baner-fb:hover strong {
    color: #ff6600 !important;
}

.baner-pity-box {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    background-color: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 6px 12px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
}

.pity-teksty {
    display: flex !important;
    flex-direction: column !important;
    text-align: right !important;
    line-height: 1.2 !important;
}

.pity-naglowek {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
}

.pity-podpis {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #0d5aa7 !important;
}

.baner-pity-box img,
.baner-pity-box .pity-banner-img {
    height: 48px !important;
    max-height: 48px !important;
    width: auto !important;
    display: block !important;
    border-radius: 4px !important;
    transition: opacity 0.2s ease !important;
}

.baner-pity-box a:hover img {
    opacity: 0.85 !important;
}

.baner-szukaj {
    display: flex !important;
    align-items: center !important;
    background-color: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 6px 12px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
    height: 60px !important;
    box-sizing: border-box !important;
    width: 300px;
}

.baner-szukaj form {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    width: 100% !important;
}

.input-szukaj {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    font-size: 14px !important;
    color: #1e293b !important;
    width: 100% !important;
    padding: 4px 0 4px 28px !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%2364748b"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    background-size: 18px 18px !important;
}

.input-szukaj::placeholder {
    color: #64748b !important;
    opacity: 0.9 !important;
}

/* =========================================================
   10. FIX DLA CASSIOPEIA GRID (BEZ BOCZNYCH MARGINESÓW)
   ========================================================= */

body.wrapper-fluid .site-grid,
.site-grid {
    grid-template-columns: [full-start main-start] 1fr [main-end full-end] !important;
    grid-gap: 0 !important;
    gap: 0 !important;
}

@media (min-width: 992px) {
    body.wrapper-fluid .site-grid,
    .site-grid {
        grid-template-areas:
            "banner"
            "top-a"
            "top-b"
            "comp"
            "bot-a"
            "bot-b" !important;
    }
}

.site-grid > [class*="container-"],
.site-grid > .grid-child {
    grid-column: main-start / main-end !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* =========================================================
   11. PEŁNOSZEROKOŚCIOWA STOPKA (FOOTER)
   ========================================================= */

.container-footer,
footer,
.footer,
.site-footer {
    width: 100% !important;
    max-width: 1372px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background-color: #2d3748 !important;
    border: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

.container-footer *,
footer *,
.footer *,
.site-footer * {
    color: #ffffff !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 10px 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    background: transparent !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* =========================================================
   12. UKŁAD ARTYKUŁÓW Z SZABLONÓW (GRID 2-KOLUMNOWY)
   ========================================================= */

.art-grid-container {
    display: grid !important;
    grid-template-columns: 300px 1fr !important;
    gap: 0 15px !important;
    align-items: start !important;
    margin-bottom: 10px !important;
}

.art-left-col {
    grid-column: 1 !important;
    width: 300px !important;
}

.art-main-img {
    width: 300px !important;
    height: 200px !important;
    object-fit: cover !important;
    border: 2px solid #a2b0c2 !important;
    display: block !important;
}

.art-right-col {
    grid-column: 2 !important;
    min-width: 0 !important;
}

.art-right-col p {
    margin-top: 0 !important;
}

.art-gallery-box {
    text-align: right !important;
    width: 100% !important;
}