body {
    /* font-family: Arial, sans-serif; */
    background: #f2f2f2;

}

.category-title {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 15px;
    color: var(--text-main);
    border-left: 6px solid red;
    padding-left: 10px;
}

.file-box {
    display: flex;
	min-height: 70px;
	min-width: 300px;
    background: var(--bg-content);
    padding: 10px;
	align-items: center;
    margin-bottom: 1px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: var(--shadow-soft);
}

.file-box img.thumb {
    width: 60px;
    height: 60px;
    aspect-ratio: 1 / 1;   /* wymusza idealny kwadrat */
    object-fit: cover;     /* wypełnia cały kwadrat */
    border-radius: 6px;
    margin-right: 9px;
    display: block;
}



.file-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.file-info h5 {
    margin: 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.12em;

    /* RESPONSYWNE SKRACANIE */
    display: -webkit-box;
    -webkit-line-clamp: 2;      /* max 2 linie na desktopie */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

/* Na telefonie skracamy do 1 linii */
@media (max-width: 768px) {
    .file-info h5 {
        -webkit-line-clamp: 2;
		font-size: 12px;
    }
}


.file-info h5 a {
    color: #0077cc;
    text-decoration: none;
}

.file-info h5 a:hover {
    text-decoration: underline;
}
/* opis */
.file-info p {
    margin: 5px 9px 5px 2px;
    color: #525252;
	font-size: 11px;
}

/* Na telefonie opis */
@media (max-width: 768px) {
.file-info p {
    margin: 5px 9px 5px 2px;
    color: #525252;
	font-size: 11px;
    }
}

.file-meta {
    color: #777;
    font-size: 11px;
	text-transform: uppercase;
  letter-spacing: 0.10em;
}

/* Na telefonie rozmiar pobrania */
@media (max-width: 768px) {
.file-meta {
    color: #777;
    font-size: 10px;
	text-transform: uppercase;
  letter-spacing: 0.09em;
    }
}

.file-download {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.file-download a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: #ff3b3b;
	background-color: #5e0000;
    transition: 0.2s;
}

.file-download a:hover {
    background: #cc0000;
}

.file-download img {
    width: 22px;
    height: 22px;
    filter: invert(100%);
}



.files-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (max-width: 768px) {
    .files-grid {
        grid-template-columns: 1fr;
    }
}

/* WYSZUKIWARKA */
.search-box {
    margin: 20px 0;
}

#searchInput {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    outline: none;
    transition: 0.2s;
	background: var(--bg-content); 
	color: var(--text-main);
}

#searchInput:focus {
    border-color: #ff3b3b;
}


/* MENU GÓRA PODSTRONY */
.download-nav {
    display: flex;
    gap: 15px;
    margin: 20px 0;
   
}

/* Na telefonie skracamy do 1 linii */
@media (max-width: 768px) {
.download-nav {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
    }
}

.download-nav a {
    padding: 10px 10px;
    background: #5a0002;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: 0.2s;
}

/* Na telefonie skracamy do 1 linii */
@media (max-width: 768px) {
.download-nav a {
    padding: 4px 6px;
    background: #5a0002;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: 0.2s;
    }
}

.download-nav a:hover {
    background: #cc0000;
}

.download-nav a.active {
    background: #191a1b;
	color: #7f7979;
}

