/* --- FIREBLADE NEWS STYLE --- */

.news-container {
    max-width: 900px;
    margin: 10px;
    padding: 0 20px;
    font-family: 'Roboto', Arial, sans-serif;
    color: #d1cdc7;
	font-size: 18px;
}

.news-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #f33;
    text-shadow: 0 0 10px rgba(255,0,0,0.4);
}

.news-meta {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 20px;
}

.news-image {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    margin-bottom: 0;
    box-shadow: 0 0 20px rgba(0,0,0,0.6);
}

.news-content {
    font-size: 18px;
    line-height: 1.7;
    color: #d1cdc7;
}

.news-content p {
    margin-bottom: 18px;
}

.news-content img {
    max-width: 100%;
    border-radius: 12px;
    /* margin: 2px 0; */
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.news-back {
    display: inline-block;
    margin-top: 30px;
    padding: 10px 20px;
    background: #5a0002;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: 0.2s;
}

.news-back:hover {
    background: #cc0000;
}

.page {
  background: #141516;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 18px 18px 22px 18px;
}



.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    display: flex;
    gap: 15px;
    background: #141516;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-main);
    box-shadow: var(--shadow-soft);
}

.news-item:hover {
    background: #1d1f20;
}

.news-thumb {
    width: auto;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
}

.news-info h3 {
    margin: 0;
    font-size: 20px;
    color: var(--text-main);
}

.news-info h3:hover {
    color: var(--accent);
}

.news-date {
    font-size: 13px;
    color: var(--text-muted);
}

.pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.page-btn {
    padding: 8px 16px;
    background: #5a0002;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.2s;
}

.page-btn:hover {
    background: #cc0000;
}

.page-info {
    color: var(--text-muted);
    font-size: 14px;
}



.update {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: grey;
  margin: 1px 0 20px 0;
  display: block;
  text-align: left;
}


.news-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
	font-size: 14px;
}

.news-nav a {
    color: #e53935;
    font-weight: 600;
    text-decoration: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* desktop */
    gap: 10px;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* telefon */
    }
}


.gallery-grid img {
  display: block;
  border: none;
  margin: 0;
  width: auto;                 /* jak wcześniej */
  height: auto;
  filter: brightness(0.9);      /* lekko przygaszone domyślnie */
  transition: filter 0.3s ease; /* płynna animacja */
   border-radius: 12px; /* zaokrąglone rogi miniatur */
}

.news-photo  {
  /* usuń stare display:-moz-inline-stack / inline-block / *display:inline */
  display: block;
  position: relative;
  vertical-align: top;
  margin: 0;                 /* odstęp bierzemy z gap na kontenerze */
  width: auto;
  font-family: Trebuchet, Tahoma, Arial, sans-serif;
  font-size: 11px;
  font-weight: normal;
  text-decoration: none;
  text-align: center;
  opacity: 0.87;
  outline: none;
  
}



/* link */
.news-photo a {
  margin: 0;
  
}

/* hover */
.news-photo:hover,
.news-photo a:hover {
  opacity: 1;
  transform: scale(1.02); 
  transition: 0.2s ease;
}

/* obrazek */
.news-photo img {
  display: block;
  border: none;
  margin: 0;
  width: auto;                 /* jak wcześniej */
  height: auto;
  filter: brightness(0.9);      /* lekko przygaszone domyślnie */
  transition: filter 0.3s ease; /* płynna animacja */
   border-radius: 12px; /* zaokrąglone rogi miniatur */
}

/* po najechaniu */
.news-photo:hover img {
  filter: brightness(1.2);      /* mocniejsze podświetlenie */
}

@media (max-width: 900px) {
 .news-photo img {
    width: 170px;
  }
}

@media (max-width: 600px) {
 .news-photo img {
    max-width: 150px;
  }
}

@media (max-width: 500px) {
.news-photo img {
    max-width: 130px;
  }
}


/* .gallery-grid figure {
    margin: 0;
    padding: 0;
} */

/* po najechaniu */
/* .gallery-grid:hover img {
  filter: brightness(1.2);      /* mocniejsze podświetlenie */
} */

/* .news-photo:hover,
.news-photo a:hover {
  opacity: 1;
  transform: scale(1.02); 
  transition: 0.2s ease;
} */

/* .news-photo img {
  display: block;
  border: none;
  margin: 0;
  width: auto;                 /* jak wcześniej */
  height: auto;
  filter: brightness(0.9);      /* lekko przygaszone domyślnie */
  transition: filter 0.3s ease; /* płynna animacja */
   border-radius: 12px; /* zaokrąglone rogi miniatur */
} */

/* .gallery-grid img {
    width: 100%;
    height: auto;
    display: block;
} */

/* --- FILTER BAR FOR NEWS SEARCH --- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 24px;
    padding: 18px;
    background: #222;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.filter-bar input[type="text"] {
    width: auto;
    height: 40px;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    background: #222;
    color: #FFF;
}

.filter-bar button,
.filter-bar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 0;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
}

.filter-bar button {
    background: #c1121f;
    color: #FFF;
    cursor: pointer;
}

.filter-bar a {
    background: #444;
    color: #FFF;
}

@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-bar input[type="text"] {
        width: auto;
    }
}




