:root {
    --blue: #39c0fb;
    --dark: #2e3137;
    --dark2: #1f2126;
    --line: #e5e5e5;
}

body {
    margin: 0;
    background: #fff;
    color: #444;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

a {
    text-decoration: none;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==========================
   HEADER
========================== */

.header-area {
    padding: 30px 0 10px;
    background: #fff;
}

.logo-box {
    width: 200px;
    height: 200px;
    border: none;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .logo-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* ==========================
   TOP MENU
========================== */

.top-menu {
    margin-top: 5px;
}

    .top-menu ul {
        display: flex;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .top-menu li {
        position: relative;
    }

    .top-menu a {
        display: block;
        color: var(--blue);
        font-weight: 700;
        font-size: 15px;
        padding: 22px 18px;
        background: linear-gradient( to bottom, #383838 0%, #262626 100% );
        border-left: 1px solid #4a4a4a;
        transition: .3s;
    }

    .top-menu li:first-child a {
        border-left: none;
    }

    .top-menu a:hover {
        color: #fff;
        background: linear-gradient( to bottom, #4d4d4d, #202020 );
    }

    .top-menu .active a {
        color: #fff;
        background: linear-gradient( to bottom, #444, #222 );
    }

/* ==========================
   MOBILE MENU
========================== */

.mobile-menu {
    display: none;
}

@media(max-width:991px) {

    .top-menu {
        display: none;
    }

    .mobile-menu {
        display: block;
        margin: 15px;
        border: 1px solid #d8d8d8;
        background: #fff;
    }

    .mobile-menu-header {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        background: linear-gradient( to bottom, #383838 0%, #262626 100% );
        border-bottom: 1px solid #1b1b1b;
    }

    .mobile-menu-title {
        color: #39c0fb;
        font-size: 15px;
        font-weight: 700;
        text-transform: uppercase;
    }

    .hamburger-icon {
        width: 22px;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

        .hamburger-icon span {
            display: block;
            height: 2px;
            background: #39c0fb;
            border-radius: 2px;
        }

    .mobile-menu-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

        .mobile-menu-list li {
            border-bottom: 1px solid #e5e5e5;
        }

            .mobile-menu-list li:last-child {
                border-bottom: none;
            }

        .mobile-menu-list a {
            display: block;
            padding: 14px 16px;
            color: #555;
            transition: .2s;
        }

            .mobile-menu-list a:hover {
                background: #f5f5f5;
                color: #39c0fb;
            }
}

/* ==========================
   CONTENT
========================== */

.main-content {
    flex: 1;
    padding: 20px 0 50px;
}

.sidebar-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    border-bottom: 1px solid var(--line);
}

.sidebar-menu a {
    display: block;
    padding: 14px 0;
    color: #666;
    transition: .3s;
}

    .sidebar-menu a::before {
        content: "•";
        color: var(--blue);
        margin-right: 10px;
    }

    .sidebar-menu a:hover {
        color: var(--blue);
    }

.content-box {
    padding-left: 10px;
}

    .content-box h1 {
        color: var(--blue);
        font-size: 38px;
        font-weight: 600;
        margin-bottom: 30px;
        padding-bottom: 20px;
        border-bottom: 1px solid #ededed;
    }


/* ==========================
   IMAGE FRAME
========================== */

.welcome-frame {
    border: 4px solid #d6dbe6;
    background: #eef1f7;
    padding: 10%;
    text-align: center;
}

    .welcome-frame img {
        max-width: 100%;
    }

.img-fluid {
    max-width: 100%;
    height: auto;
}

.img-thumbnail {
    padding: 0.25rem;
    background-color: var(--bs-body-bg);
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    max-width: 100%;
    height: auto;
}

/* ==========================
   FOOTER
========================== */

.footer {
    margin-top: auto;
    background: #49515d;
    min-height: 30px;
}

.footer-inner {
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

/* ==========================
   RESPONSIVE
========================== */

@media(max-width:991px) {

    .content-box {
        padding-left: 0;
        margin-top: 30px;
    }

        .content-box h1 {
            font-size: 26px;
        }
}

@media(max-width:576px) {

    .logo-box {
        width: 100%;
        max-width: 220px;
        margin: auto;
    }

    .sidebar-menu {
        margin-bottom: 30px;
    }
}
/* =====================================
   AKTUALNOŚCI
===================================== */

.news-page {
    border: 4px solid #d6dbe6;
    background: #eef1f7;
    padding: 28px;
    min-height: 650px;
}

.news-item {
    margin-bottom: 50px;
}

.news-header {
    margin-bottom: 25px;
}

.news-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #2e2e2e;
    line-height: 1.4;
}

.news-date {
    margin-top: 8px;
    font-size: 13px;
    color: #777;
}

.news-content {
    width: 100%;
}

.news-document {
    text-align: center;
}

    .news-document img {
        max-width: 100%;
        height: auto;
        box-shadow: 0 0 8px rgba(0,0,0,.08);
    }

/* =====================================
   WIELE AKTUALNOŚCI
===================================== */

.news-item + .news-item {
    padding-top: 40px;
    border-top: 1px solid #d6dbe6;
}

/* ==================================
   PLIKI DO POBRANIA
================================== */

.downloads-page {
    padding-top: 10px;
}

.download-category {
    min-height: 120px;
}

    .download-category h3 {
        margin: 0 0 12px;
        font-size: 20px;
        font-weight: 600;
        color: var(--blue);
        line-height: 1.3;
    }

        .download-category h3 span {
            color: #222;
            font-size: .85em;
            font-weight: 700;
        }

.folder-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

    .folder-list li {
        margin-bottom: 8px;
    }

    .folder-list a {
        position: relative;
        display: inline-block;
        padding-left: 18px;
        color: #7abef2;
        transition: .2s;
    }

        .folder-list a::before {
            content: "📁";
            position: absolute;
            left: 0;
            top: 0;
        }

        .folder-list a:hover {
            color: var(--blue);
        }

.empty-category {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* ==================================
   POPULAR DOWNLOADS
================================== */

.popular-downloads {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid #dcdcdc;
}

    .popular-downloads h2 {
        margin-bottom: 20px;
        color: var(--blue);
        font-size: 36px;
        font-weight: 600;
    }

.download-files {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .download-files li {
        margin-bottom: 10px;
    }

    .download-files a {
        position: relative;
        display: inline-block;
        padding-left: 22px;
        color: #6aaee5;
        transition: .2s;
    }

        .download-files a::before {
            content: "📄";
            position: absolute;
            left: 0;
            top: 0;
        }

        .download-files a:hover {
            color: var(--blue);
        }

/* ==================================
   RESPONSIVE
================================== */

@media(max-width:991px) {

    .download-category {
        min-height: auto;
    }

    .popular-downloads {
        margin-top: 30px;
    }
}

@media(max-width:576px) {

    .download-category h3 {
        font-size: 22px;
    }

    .popular-downloads h2 {
        font-size: 26px;
    }
}
/* ==================================
   O SPÓŁDZIELNI
================================== */

.about-page {
    border: 4px solid #d6dbe6;
    background: #eef1f7;
    padding: 20px;
    min-height: 650px;
}

.about-section {
    margin-bottom: 70px;
}

    .about-section:last-child {
        margin-bottom: 0;
    }

.about-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 35px;
}

.about-title h2 {
    margin: 0;
    color: #222;
    font-size: 18px;
    font-weight: 700;
}

.about-content {
    color: #4d9f65;
    line-height: 1.6;
    font-size: 16px;
}

    .about-content p {
        margin-bottom: 14px;
    }

    .about-content a {
        color: #5aa8dd;
    }

        .about-content a:hover {
            color: var(--blue);
        }

.contact-box {
    max-width: 700px;
}

.authority-box h3 {
    margin: 0 0 10px;
    color: #4d9f65;
    font-size: 18px;
    font-weight: 600;
}

.authority-box ul {
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
}

.authority-box li {
    margin-bottom: 4px;
}

.history-box {
    max-width: 900px;
    text-align: justify;
}

    .history-box ul {
        margin: 15px 0;
        padding-left: 20px;
    }

    .history-box li {
        margin-bottom: 5px;
    }

/* ==================================
   RESPONSIVE
================================== */

@media (max-width:991px) {

    .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-section {
        margin-bottom: 50px;
    }
}

@media (max-width:576px) {

    .about-page {
        padding: 15px;
    }

    .about-title h2 {
        font-size: 20px;
    }

    .authority-box h3 {
        font-size: 17px;
    }
}
.gallery-card {
    padding: 8px;
    background: #eef1f7;
    border: 3px solid #d6dbe6;
    border-radius: 4px;
    cursor: pointer;
    transition: all .25s ease;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .gallery-card:hover {
        border-color: #39c0fb;
        box-shadow: 0 4px 12px rgba(57, 192, 251, .18);
        transform: translateY(-2px);
    }

.gallery-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border: 1px solid #fff;
}
/* ==================================
   KATEGORIA PLIKÓW
================================== */

.download-category-page {
    min-height: 650px;
}

.download-header {
    margin-bottom: 30px;
    padding-bottom: 12px;
    border-bottom: 1px solid #dcdcdc;
}

    .download-header h1 {
        margin: 0 0 12px;
        color: var(--blue);
        font-size: 34px;
        font-weight: 600;
    }

.download-subcategory {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .download-subcategory a {
        color: #7abef2;
    }

    .download-subcategory span {
        color: #666;
    }

/* ==================================
   PLIKI
================================== */

.file-list {
    margin-bottom: 40px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.file-type {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d9534f;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    flex-shrink: 0;
}

.file-details h3 {
    margin: 0 0 4px;
    font-size: 18px;
    color: #333;
}

.file-meta {
    color: #888;
    font-size: 13px;
}

/* ==================================
   PRZYCISKI
================================== */

.file-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-download-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 10px 22px;
    border: 2px solid var(--blue);
    border-radius: 999px;
    color: var(--blue);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    transition: .2s;
}

    .btn-download-outline:hover {
        background: var(--blue);
        color: #fff;
    }

/* ==================================
   TOOLBAR
================================== */

.download-toolbar {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #dcdcdc;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.download-order {
    flex: 1 1 400px;
}

.download-limit {
    flex: 0 0 180px;
}

.download-toolbar label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.download-toolbar .form-select {
    border-color: #39c0fb;
}

/* ==================================
   RESPONSIVE
================================== */

@media(max-width:991px) {

    .file-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .file-actions {
        width: 100%;
    }

    .btn-download-outline {
        flex: 1;
    }
}

@media(max-width:576px) {

    .download-header h1 {
        font-size: 26px;
    }

    .file-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .file-actions {
        flex-direction: column;
    }

    .btn-download-outline {
        width: 100%;
    }
}
/* ==================================
   ARCHIWUM
================================== */

.archive-page {
    min-height: 650px;
}

/* FILTRY */

.archive-filters {
    margin-bottom: 40px;
    padding: 20px;
    background: #eef1f7;
    border: 3px solid #d6dbe6;
}

.archive-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
}

.archive-select {
    border-color: #39c0fb;
}

.archive-actions {
    margin-top: 20px;
}

.btn-archive-filter {
    border: 2px solid var(--blue);
    background: #fff;
    color: var(--blue);
    padding: 10px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    transition: .2s;
}

    .btn-archive-filter:hover {
        background: var(--blue);
        color: #fff;
    }

/* LISTA */

.archive-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.archive-item {
    padding-bottom: 25px;
    border-bottom: 1px solid #e5e5e5;
}

    .archive-item:last-child {
        border-bottom: none;
    }

    .archive-item h2 {
        margin-bottom: 8px;
        font-size: 28px;
        font-weight: 600;
    }

        .archive-item h2 a {
            color: #333;
        }

            .archive-item h2 a:hover {
                color: var(--blue);
            }

.archive-date {
    margin-bottom: 12px;
    color: #999;
    font-size: 14px;
}

.archive-item p {
    margin-bottom: 15px;
    color: #666;
}

.archive-more {
    color: var(--blue);
    font-weight: 600;
}

.archive-preview {
    margin-top: 15px;
    max-width: 600px;
    border: 4px solid #d6dbe6;
    background: #eef1f7;
    padding: 8px;
}

    .archive-preview img {
        width: 100%;
        display: block;
    }

/* PAGINACJA */

.archive-pagination {
    margin-top: 50px;
}

    .archive-pagination .page-link {
        color: var(--blue);
        border-color: #d6dbe6;
    }

    .archive-pagination .active .page-link {
        background: var(--blue);
        border-color: var(--blue);
    }

/* RESPONSIVE */

@media(max-width:768px) {

    .archive-item h2 {
        font-size: 22px;
    }

    .archive-filters {
        padding: 15px;
    }
}
