/* Sekcja hero - Aktualności (dedykowana) */
#news-hero.hero {
  padding-top: 7rem;
  padding-bottom: 5rem;
	background: linear-gradient(135deg, rgba(196, 23, 29, .65), rgba(52, 58, 64, .65)), url('../img/21.jpg') top/cover no-repeat;
  color: #fff;
}
@media (min-width: 992px) {
  #news-hero.hero {
    padding-top: 8rem;
    padding-bottom: 7rem;
  }
}
#news-hero .display-5,
#news-hero .lead,
#news-hero .hero-subtitle {
  color: #fff !important;
}

/* Style dla kafelków kart */
.news-tile {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: none;
  will-change: transform;
}

.news-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0) 40%, rgba(196,23,29,0.08));
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  transform: translateY(10px);
}

.news-tile:hover,
.news-tile:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.news-tile:hover::after,
.news-tile:focus-within::after {
  opacity: 1;
  transform: translateY(0);
}

.news-tile img {
  object-fit: cover;
  height: 210px;
}
@media (max-width: 575.98px) {
  .news-tile img {
    height: 150px;
  }
}
/* Top banner/hero info Aktualności */
.top-banner-news {
  width: 100%;
  background: var(--tt-red);
  color: #fff;
  padding: 2.5rem 1rem 2.5rem 1rem;
  box-shadow: 0 6px 30px rgba(196,23,29,0.09);
  margin-top: 74px; /* wysokość navbara + margines */
  text-align: center;
  z-index: 10;
  position: relative;
}
.banner-title {
  font-size: 2.3rem;
  letter-spacing: 2px;
  font-weight: 700;
  margin: 0;
}
@media (max-width: 768px){
  .top-banner-news {
    padding: 1.4rem 0.6rem 1.6rem 0.6rem;
    margin-top: 65px;
  }
  .banner-title {
    font-size: 1.35rem;
    letter-spacing: 1px;
  }
}
/* Zapewnia, że sekcja newsSection nie będzie zasłonięta */
#newsSection {
	margin-top: 0.5rem;
}

/* Style dla ikon aktualizacji */
.update-icon {
	width: 40px;
	height: 40px;
	background: linear-gradient(135deg, var(--tt-red), #a31318);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.update-icon i {
	font-size: 1.2rem;
	color: #fff;
}

/* Hero dla aktualizacji */
#updates-hero.hero {
	padding-top: 7rem;
	padding-bottom: 5rem;
	background: linear-gradient(135deg, rgba(196, 23, 29, .65), rgba(52, 58, 64, .65)), url('../img/22.jpg') top/cover no-repeat;
	color: #fff;
}

@media (min-width: 992px) {
	#updates-hero.hero {
		padding-top: 8rem;
		padding-bottom: 7rem;
	}
}

#updates-hero .display-5,
#updates-hero .lead,
#updates-hero .hero-subtitle {
	color: #fff !important;
}

/* Responsywność dla aktualizacji */
@media (max-width: 768px) {
	.update-icon {
		width: 35px;
		height: 35px;
	}

	.update-icon i {
		font-size: 1rem;
	}
}

/* Hero dla strony szczegółów aktualności */
#news-detail-hero.hero {
	padding-top: 7rem;
	padding-bottom: 5rem;
	background: linear-gradient(135deg, rgba(196, 23, 29, .65), rgba(52, 58, 64, .65)), url('../img/21.jpg') top/cover no-repeat;
	color: #fff;
}

@media (min-width: 992px) {
	#news-detail-hero.hero {
		padding-top: 8rem;
		padding-bottom: 7rem;
	}
}

/* Style dla treści artykułu (Markdown) */
.news-article {
	background: #fff;
	border-radius: 0.5rem;
	padding: 2rem;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.news-article-content {
	font-size: 1.1rem;
	line-height: 1.8;
	color: #333;
}

.news-article-content h1,
.news-article-content h2,
.news-article-content h3,
.news-article-content h4,
.news-article-content h5,
.news-article-content h6 {
	margin-top: 2rem;
	margin-bottom: 1rem;
	color: var(--tt-dark);
	font-weight: 700;
}

.news-article-content h1 {
	font-size: 2.5rem;
	border-bottom: 3px solid var(--tt-red);
	padding-bottom: 0.5rem;
}

.news-article-content h2 {
	font-size: 2rem;
	border-bottom: 2px solid rgba(196, 23, 29, 0.2);
	padding-bottom: 0.5rem;
}

.news-article-content h3 {
	font-size: 1.75rem;
}

.news-article-content h4 {
	font-size: 1.5rem;
}

.news-article-content p {
	margin-bottom: 1.5rem;
}

.news-article-content ul,
.news-article-content ol {
	margin-bottom: 1.5rem;
	padding-left: 2rem;
}

.news-article-content li {
	margin-bottom: 0.5rem;
}

.news-article-content ul li {
	list-style-type: disc;
}

.news-article-content ol li {
	list-style-type: decimal;
}

.news-article-content blockquote {
	border-left: 4px solid var(--tt-red);
	padding-left: 1.5rem;
	margin: 1.5rem 0;
	color: #666;
	font-style: italic;
}

.news-article-content code {
	background-color: #f4f4f4;
	padding: 0.2rem 0.4rem;
	border-radius: 0.25rem;
	font-family: 'Courier New', monospace;
	font-size: 0.9em;
	color: #e83e8c;
}

.news-article-content pre {
	background-color: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: 0.5rem;
	padding: 1rem;
	overflow-x: auto;
	margin-bottom: 1.5rem;
}

.news-article-content pre code {
	background-color: transparent;
	padding: 0;
	color: #333;
}

.news-article-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-article-content table thead {
	background-color: var(--tt-red);
	color: #fff;
}

.news-article-content table th,
.news-article-content table td {
	padding: 0.75rem 1rem;
	text-align: left;
	border: 1px solid #dee2e6;
}

.news-article-content table tbody tr:nth-child(even) {
	background-color: #f8f9fa;
}

.news-article-content table tbody tr:hover {
	background-color: rgba(196, 23, 29, 0.05);
}

.news-article-content a {
	color: var(--tt-red);
	text-decoration: underline;
	transition: color 0.2s ease;
}

.news-article-content a:hover {
	color: #a31318;
}

.news-article-content img {
	max-width: 100%;
	height: auto;
	border-radius: 0.5rem;
	margin: 1.5rem 0;
}

.news-article-content strong {
	font-weight: 700;
	color: var(--tt-dark);
}

.news-article-content em {
	font-style: italic;
}

@media (max-width: 768px) {
	.news-article {
		padding: 1.5rem;
	}

	.news-article-content {
		font-size: 1rem;
	}

	.news-article-content h1 {
		font-size: 2rem;
	}

	.news-article-content h2 {
		font-size: 1.75rem;
	}

	.news-article-content table {
		font-size: 0.9rem;
	}

	.news-article-content table th,
	.news-article-content table td {
		padding: 0.5rem;
	}
}

/* Style dla linków w kafelkach */
.news-tile a {
	display: block;
	text-decoration: none;
	color: inherit;
}

.news-tile a:hover {
	text-decoration: none;
}

/* Style dla karuzeli - klikalne slajdy */
.news-carousel .carousel-item a {
	display: block;
	text-decoration: none;
	cursor: pointer;
}

.news-carousel .carousel-item a:hover .news-overlay {
	background: linear-gradient(0deg, rgba(0, 0, 0, .75), rgba(0, 0, 0, .3));
}

/* Style dla przycisków nawigacji między artykułami */
#newsDetailNavigation .btn-outline-danger {
	background-color: #fff;
	border-color: var(--tt-red);
	color: var(--tt-red);
	font-weight: 500;
	padding: 0.75rem 1.5rem;
	transition: all 0.25s ease;
}

#newsDetailNavigation .btn-outline-danger:hover {
	background-color: var(--tt-red);
	border-color: var(--tt-red);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(196, 23, 29, 0.3);
}

#newsDetailNavigation .btn-outline-danger:focus {
	box-shadow: 0 0 0 0.25rem rgba(196, 23, 29, 0.25);
}

/* Style dla paginacji - czerwona zamiast niebieskiej */
.pagination .page-link {
	color: var(--tt-red);
	border-color: #dee2e6;
	background-color: #fff;
}

.pagination .page-link:hover {
	color: #a31318;
	background-color: rgba(196, 23, 29, 0.1);
	border-color: var(--tt-red);
}

.pagination .page-item.active .page-link {
	background-color: var(--tt-red);
	border-color: var(--tt-red);
	color: #fff;
}

.pagination .page-item.disabled .page-link {
	color: #6c757d;
	background-color: #fff;
	border-color: #dee2e6;
	cursor: not-allowed;
	opacity: 0.6;
}

.pagination .page-item.disabled .page-link:hover {
	background-color: #fff;
	border-color: #dee2e6;
	color: #6c757d;
}

/* Hero dla strony szczegółów aktualizacji */
#updates-detail-hero.hero {
	padding-top: 7rem;
	padding-bottom: 5rem;
	background: linear-gradient(135deg, rgba(196, 23, 29, .65), rgba(52, 58, 64, .65)), url('../img/22.jpg') top/cover no-repeat;
	color: #fff;
}

@media (min-width: 992px) {
	#updates-detail-hero.hero {
		padding-top: 8rem;
		padding-bottom: 7rem;
	}
}

/* Style dla karty z treścią aktualizacji - ciemniejsze tło */
#updateDetailContent.news-article {
	background: #f8f9fa;
	border: 1px solid #e9ecef;
}

/* Style dla karty z treścią aktualności - ciemniejsze tło */
#newsDetailContent.news-article,
.news-article-bg {
	background: #f8f9fa;
	border: 1px solid #e9ecef;
}

/* Style dla przycisków nawigacji między aktualizacjami */
#updateDetailNavigation .btn-outline-danger {
	background-color: #fff;
	border-color: var(--tt-red);
	color: var(--tt-red);
	font-weight: 500;
	padding: 0.75rem 1.5rem;
	transition: all 0.25s ease;
}

#updateDetailNavigation .btn-outline-danger:hover {
	background-color: var(--tt-red);
	border-color: var(--tt-red);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(196, 23, 29, 0.3);
}

#updateDetailNavigation .btn-outline-danger:focus {
	box-shadow: 0 0 0 0.25rem rgba(196, 23, 29, 0.25);
}
