/* Reset i podstawowe style */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #1e293b;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Portal Header - górna część z logo */
.header-top {
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 1rem 0;
}

.header-top-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: #1e293b;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.logo:hover {
  color: #1e3a8a;
  transform: translateY(-2px);
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #ea580c;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover::after {
  width: 100%;
}

/* Portal Navbar - niebieski pasek nawigacyjny (klasa navbar-red zachowana dla kompatybilności) */
.navbar-red {
  background-color: #1e3a8a !important;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Na desktopie zawsze widoczny */
@media (min-width: 769px) {
  .navbar-red {
    max-height: none !important;
    overflow: visible !important;
  }
}

/* Na mobile ukryty domyślnie */
@media (max-width: 768px) {
  .navbar-red {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  /* Pokazuj niebieski navbar gdy hamburger jest checked */
  header:has(.mobile-menu-checkbox:checked) .navbar-red {
    max-height: 500px;
  }
}

.navbar-red .container {
  padding: 0 20px;
  background-color: transparent !important;
}

.navbar-red .flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.navbar-red .nav-menu {
  display: flex;
  gap: 0;
  align-items: center;
  flex-wrap: wrap;
  padding: 0;
  list-style: none;
  background-color: transparent;
}

.navbar-red .nav-link {
  text-decoration: none;
  color: #fff !important;
  font-weight: 500;
  padding: 1rem 1.5rem;
  display: inline-block !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  visibility: visible !important;
  opacity: 1 !important;
  background-color: transparent !important;
  position: relative;
  overflow: hidden;
}

.navbar-red .nav-link::before {
  display: none;
}

.navbar-red .nav-link::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: 0;
}

.navbar-red .nav-link:hover {
  background-color: #1e40af;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar-red .nav-link:hover::before {
  display: none;
}

.navbar-red .nav-link:hover::after {
  width: 300px;
  height: 300px;
}

.navbar-red .nav-link.active {
  background-color: #1e40af;
}

.navbar-red .nav-link.active::before {
  display: none;
}

/* Portal Container */
.portal-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 20px;
}

/* Hero Section */
.hero-section {
  background-color: #f1f5f9;
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.hero-section .portal-container {
  padding: 0 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.05) 0%, rgba(234, 88, 12, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  pointer-events: none;
}

.hero-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 32px rgba(30, 58, 138, 0.2);
}

.hero-card:hover::before {
  opacity: 1;
}

.hero-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hero-card-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 60%;
  overflow: hidden;
  background-color: #f5f5f5;
}

.hero-card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-card:hover .hero-card-image {
  transform: scale(1.1);
}

.hero-card-image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-category-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #ea580c;
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.3);
}

.hero-card:hover .hero-category-tag {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.4);
}

.hero-card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-card-description {
  font-size: 0.9375rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

.hero-card-date {
  font-size: 0.875rem;
  color: #94a3b8;
}

/* Category Page Styles */
.category-page-header {
  margin-bottom: 2rem;
}

.category-page-title {
  font-size: 2rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.category-page-description {
  font-size: 1.125rem;
  color: #64748b;
  line-height: 1.6;
}

/* Category Articles Grid - wszystkie artykuły w układzie grid */
.category-articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (max-width: 968px) {
  .category-articles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.category-featured-article {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-featured-article:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.category-featured-article-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.category-featured-article-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  background-color: #f5f5f5;
}

.category-featured-article-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-featured-article-image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.category-featured-article-content {
  padding: 2rem;
}

.category-featured-article-tag {
  display: inline-block;
  background-color: #ea580c;
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.category-featured-article-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.category-featured-article-excerpt {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.category-featured-article-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #94a3b8;
}

.category-featured-article-author {
  font-weight: 500;
  color: #64748b;
}

.category-featured-article-separator {
  color: #ccc;
}

.category-featured-article-date {
  color: #94a3b8;
}

/* Category Posts List - pozostałe artykuły */
.category-posts-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.category-post-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.category-post-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: #ea580c;
  transform: scaleY(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: bottom;
  border-radius: 8px 0 0 8px;
}

.category-post-item:hover {
  box-shadow: 0 8px 24px rgba(30, 58, 138, 0.12);
  transform: translateX(4px);
  border-color: #1e3a8a;
}

.category-post-item:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}

.category-post-item-image {
  flex-shrink: 0;
  width: 200px;
  height: 150px;
  overflow: hidden;
  border-radius: 6px;
}

.category-post-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-post-item-content {
  flex: 1;
}

.category-post-item-content h3 {
  margin-bottom: 0.75rem;
}

.category-post-item-content h3 a {
  text-decoration: none;
  color: #1e293b;
  font-size: 1.25rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.category-post-item-content h3 a:hover {
  color: #1e3a8a;
}

.category-post-item-content p {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.category-post-item-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: #94a3b8;
}

.category-post-item-author a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.3s ease;
}

.category-post-item-author a:hover {
  color: #1e3a8a;
}

@media (max-width: 768px) {
  .category-post-item {
    flex-direction: column;
  }
  
  .category-post-item-image {
    width: 100%;
    height: 200px;
  }
  
  .category-featured-article-content {
    padding: 1.5rem;
  }
  
  .category-featured-article-title {
    font-size: 1.5rem;
  }
}

/* Category Section */
.category-section {
  margin-bottom: 3rem;
}

.category-header {
  margin-bottom: 1.5rem;
  position: relative;
}

.category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
  text-align: center;
}

.category-line {
  height: 2px;
  background-color: #ea580c;
  width: 100%;
  margin-top: 0.5rem;
}

/* Category Layout - duży obrazek po lewej, lista po prawej */
.category-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (max-width: 968px) {
  .category-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Category Featured - duży obrazek po lewej */
.category-featured {
  width: 100%;
}

.category-featured-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.category-featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.05) 0%, rgba(234, 88, 12, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  pointer-events: none;
}

.category-featured-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 12px 32px rgba(30, 58, 138, 0.2);
}

.category-featured-card:hover::before {
  opacity: 1;
}

.category-featured-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.category-featured-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  background-color: #f5f5f5;
}

.category-featured-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-featured-card:hover .category-featured-image {
  transform: scale(1.08);
}

.category-featured-image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.category-featured-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: #ea580c;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.3);
}

.category-featured-card:hover .category-featured-tag {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.5);
}

.category-featured-date {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 10;
}

.category-featured-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  font-size: 1.75rem;
  font-weight: 600;
  color: #fff;
  padding: 2rem 1.5rem 1.5rem;
  margin: 0;
  line-height: 1.3;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  z-index: 10;
}

.category-featured-content {
  padding: 2rem;
}

.category-featured-description {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.6;
}

.category-featured-cta {
  margin-top: 1.5rem;
  text-align: center;
}

.btn-category {
  background-color: #ea580c;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.3);
}

.btn-category::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-category:hover {
  background-color: #c2410c;
  transform: translateY(-3px) scale(1.05);
  color: #fff;
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.4);
}

.btn-category:hover::before {
  width: 300px;
  height: 300px;
}

.btn-category:active {
  transform: translateY(-1px) scale(1.02);
}

/* Category Sidebar - lista miniaturek po prawej */
.category-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.category-sidebar-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.category-sidebar-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: #ea580c;
  transform: scaleY(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: bottom;
}

.category-sidebar-item:hover {
  transform: translateX(8px);
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.15);
}

.category-sidebar-item:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}

.category-sidebar-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  gap: 1rem;
  padding: 1rem;
}

.category-sidebar-image-wrapper {
  flex-shrink: 0;
  width: 120px;
  height: 90px;
  border-radius: 6px;
  overflow: hidden;
  background-color: #f5f5f5;
}

.category-sidebar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-sidebar-item:hover .category-sidebar-image {
  transform: scale(1.1);
}

.category-sidebar-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.category-sidebar-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.category-sidebar-date {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.category-sidebar-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 968px) {
  .category-sidebar-image-wrapper {
    width: 100px;
    height: 75px;
  }
  
  .category-featured-content {
    padding: 1.5rem;
  }
  
  .category-featured-title-overlay {
    font-size: 1.5rem;
    padding: 1.5rem 1rem 1rem;
  }
}

/* Portal Card */
.portal-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.portal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.portal-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Featured Card - większa karta */
.portal-card-featured {
  grid-column: span 2;
  grid-row: span 2;
}

@media (max-width: 768px) {
  .portal-card-featured {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* Standard Card */
.portal-card-standard {
  grid-column: span 1;
}

/* Portal Card Image */
.portal-card-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 60%;
  overflow: hidden;
  background-color: #f5f5f5;
}

.portal-card-featured .portal-card-image-wrapper {
  padding-top: 70%;
}

.portal-card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-card-image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Category Tag - pomarańczowy tag na obrazku */
.portal-category-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #ea580c;
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 10;
}

/* Portal Card Content */
.portal-card-content {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portal-card-featured .portal-card-content {
  padding: 1.5rem;
}

.portal-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portal-card-featured .portal-card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  -webkit-line-clamp: 3;
}

.portal-card-description {
  font-size: 0.9375rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portal-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

.portal-card-date {
  font-size: 0.875rem;
  color: #94a3b8;
}

/* Header i nawigacja - stare style dla kompatybilności */
.navbar:not(.navbar-red) {
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Mobile menu toggle - ukryty checkbox */
.mobile-menu-checkbox {
  display: none;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 30px;
  height: 25px;
  justify-content: space-between;
}

/* Pokazuj hamburger na mobile */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
}

.mobile-menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #1e293b;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Hamburger menu dla niebieskiego navbaru */
.navbar-red .mobile-menu-toggle span {
  background-color: #fff;
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* Override dla navbar-red */
.navbar-red .nav-menu {
  display: flex !important;
}

.nav-link {
  text-decoration: none;
  color: #1e293b;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #1e3a8a;
}

/* Override dla navbar-red */
.navbar-red .nav-link {
  color: #fff !important;
}

.navbar-red .nav-link:hover {
  color: #fff !important;
  background-color: #1e40af;
}

/* Mobile menu styles */
@media (max-width: 768px) {
  /* Animacja hamburgera gdy jest checked */
  header:has(.mobile-menu-checkbox:checked) .mobile-menu-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }
  
  header:has(.mobile-menu-checkbox:checked) .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  
  header:has(.mobile-menu-checkbox:checked) .mobile-menu-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  /* Portal navbar mobile - niebieski navbar */
  .navbar-red .flex {
    flex-wrap: wrap;
  }

  .navbar-red .nav-menu {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0;
  }

  .navbar-red .nav-link {
    padding: 1rem 1.5rem;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
  }

  .navbar-red .nav-link:last-child {
    border-bottom: none;
  }

  .navbar-red .nav-link:hover {
    background-color: #1e40af;
  }
}

/* Main content */
main {
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}

/* Posts grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.post-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.03) 0%, rgba(234, 88, 12, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  pointer-events: none;
}

.post-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 32px rgba(30, 58, 138, 0.15);
  border-color: #1e3a8a;
}

.post-card:hover::before {
  opacity: 1;
}

.post-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-card-content {
  padding: 1.5rem;
}

.post-card h3 {
  margin-bottom: 0.5rem;
}

.post-card h3 a {
  text-decoration: none;
  color: #1e293b;
}

.post-card h3 a:hover {
  color: #1e3a8a;
}

.post-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 1rem;
}

/* Posts list */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.post-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

.post-item-image {
  flex-shrink: 0;
  width: 200px;
  height: 150px;
  overflow: hidden;
  border-radius: 4px;
}

.post-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-item-content {
  flex: 1;
}

.post-item h2 {
  margin-bottom: 0.5rem;
}

.post-item h2 a {
  text-decoration: none;
  color: #1e293b;
}

.post-item h2 a:hover {
  color: #1e3a8a;
}

.post-item-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 1rem;
}

.post-category,
.post-author {
  color: #1e3a8a;
}

.post-category a,
.post-author a {
  color: inherit;
  text-decoration: none;
}

.post-category a:hover,
.post-author a:hover {
  text-decoration: underline;
}

/* Article layout */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 968px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
}

.article-content {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .article-content {
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  .container {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
}

.article-image {
  margin-bottom: 2rem;
}

.article-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.article-header {
  margin-bottom: 2rem;
}

.article-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: #64748b;
}

.article-body {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 100%;
  overflow-x: hidden;
}

.article-body h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-body p {
  margin-bottom: 1rem;
}

.article-body ul,
.article-body ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

/* Article Tables */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: table;
  table-layout: auto;
  max-width: 100%;
}

.article-body thead {
  background-color: #1e3a8a;
  color: #fff;
}

.article-body thead th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-body tbody tr {
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.2s ease;
}

.article-body tbody tr:last-child {
  border-bottom: none;
}

.article-body tbody tr:hover {
  background-color: #f9f9f9;
}

.article-body tbody tr:nth-child(even) {
  background-color: #fafafa;
}

.article-body tbody tr:nth-child(even):hover {
  background-color: #f5f5f5;
}

.article-body tbody td {
  padding: 1rem 1.5rem;
  font-size: 1rem;
  color: #1e293b;
  line-height: 1.6;
}

.article-body tbody td:first-child {
  font-weight: 500;
  color: #1e293b;
}

.article-body tfoot {
  background-color: #f5f5f5;
  font-weight: 600;
}

.article-body tfoot td {
  padding: 1rem 1.5rem;
  font-size: 0.9375rem;
  color: #64748b;
}

/* Responsive tables */
@media (max-width: 768px) {
  .article-body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* Wszystkie elementy w article-body nie mogą przekraczać szerokości */
  .article-body > *:not(table) {
    max-width: 100%;
    overflow-x: hidden;
  }
  
  /* Tabele w kontenerze z przewijaniem poziomym */
  .article-body table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 2rem 0;
    box-sizing: border-box;
    position: relative;
    table-layout: auto;
  }
  
  /* Wewnętrzna tabela - zachowaj strukturę tabeli */
  .article-body table thead {
    display: table-header-group;
  }
  
  .article-body table tbody {
    display: table-row-group;
  }
  
  .article-body table tfoot {
    display: table-footer-group;
  }
  
  .article-body table tr {
    display: table-row;
  }
  
  .article-body table th,
  .article-body table td {
    display: table-cell;
  }
  
  /* Wewnętrzna tabela może być szersza - wymusi przewijanie */
  .article-body table thead,
  .article-body table tbody,
  .article-body table tfoot {
    width: auto;
    min-width: 100%;
  }
  
  .article-body thead th,
  .article-body tbody td,
  .article-body tfoot td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
  
  .article-body thead th {
    font-size: 0.8125rem;
  }
}

/* Table wrapper for better scrolling on mobile */
.article-body .table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  -webkit-overflow-scrolling: touch;
}

.article-body .table-wrapper table {
  margin: 0;
  min-width: 600px;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: #f5f5f5;
  border-radius: 8px;
}

.tags-label {
  font-weight: 600;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: #1e3a8a;
  color: #fff;
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.875rem;
  transition: background-color 0.3s ease;
}

.tag:hover {
  background-color: #1e40af;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.related-posts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.related-posts h2 {
  margin-bottom: 1.5rem;
}

/* Sidebar */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-section {
  background-color: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
}

.sidebar-section h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.sidebar-list {
  list-style: none;
}

.sidebar-list li {
  margin-bottom: 0.5rem;
}

.sidebar-list a {
  text-decoration: none;
  color: #1e293b;
  transition: color 0.3s ease;
}

.sidebar-list a:hover {
  color: #1e3a8a;
}

/* Paginacja */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.pagination-numbers {
  display: flex;
  gap: 0.5rem;
}

.pagination-link {
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: #1e293b;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.pagination-link:hover {
  background-color: #f5f5f5;
}

.pagination-active {
  background-color: #1e3a8a;
  color: #fff;
  border-color: #1e3a8a;
}

.pagination-active:hover {
  background-color: #1e40af;
}

/* Authors */
.authors-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.author-card {
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-align: center;
}

.author-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
}

.author-content h2 {
  margin-bottom: 0.5rem;
}

.author-content h2 a {
  text-decoration: none;
  color: #1e293b;
}

.author-content h2 a:hover {
  color: #1e3a8a;
}

.author-posts-count {
  color: #64748b;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.author-header {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e0e0e0;
}

.author-header-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-header-content h1 {
  margin-bottom: 1rem;
}

.author-bio {
  font-size: 1.125rem;
  color: #64748b;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #ea580c;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.3);
  font-weight: 500;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover {
  background-color: #c2410c;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.4);
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:active {
  transform: translateY(0) scale(1.02);
}

.text-center {
  text-align: center;
}

.category-description,
.tag-description {
  font-size: 1.125rem;
  color: #64748b;
  margin-bottom: 2rem;
}

/* Error 404 page */
.error-404 {
  text-align: center;
  padding: 4rem 2rem;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.error-404 h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #1e293b;
}

.error-404 p {
  font-size: 1.125rem;
  color: #64748b;
  margin-bottom: 1rem;
}

.error-404 a {
  color: #1e3a8a;
  text-decoration: none;
  font-weight: 500;
}

.error-404 a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background-color: #f1f5f9;
  border-top: 1px solid #e0e0e0;
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
  color: #64748b;
}

/* Portal Footer - niebieski footer (klasa footer-red zachowana dla kompatybilności) */
.footer-red {
  background-color: #1e3a8a;
  color: #fff;
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-red .footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-red .footer-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  overflow: hidden;
}

.footer-red .footer-nav a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: 0;
}

.footer-red .footer-nav a:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-red .footer-nav a:hover::before {
  width: 300px;
  height: 300px;
}

.footer-separator {
  color: #fff;
  margin: 0 0.5rem;
}

.footer-copyright {
  color: #fff;
  font-size: 0.875rem;
  margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .post-item {
    flex-direction: column;
  }
  
  .post-item-image {
    width: 100%;
    height: 200px;
  }
  
  .article-title {
    font-size: 2rem;
  }
  
  .author-header {
    flex-direction: column;
    text-align: center;
  }
}

/* About Section - sekcja O nas na stronie głównej */
.about-section {
  background-color: #f1f5f9;
  padding: 4rem 0;
  margin-top: 4rem;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #1e293b;
  margin-bottom: 1.5rem;
}

.about-intro {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #64748b;
  margin-bottom: 3rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
  text-align: left;
}

.about-highlight h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e3a8a;
  margin-bottom: 1rem;
}

.about-highlight p {
  font-size: 1rem;
  line-height: 1.7;
  color: #64748b;
}

.about-cta {
  margin-top: 2rem;
}

.about-cta .btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  background-color: #ea580c;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

.about-cta .btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.about-cta .btn:hover {
  background-color: #c2410c;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.4);
}

.about-cta .btn:hover::before {
  width: 400px;
  height: 400px;
}

@media (max-width: 768px) {
  .about-section {
    padding: 3rem 0;
    margin-top: 3rem;
  }

  .about-title {
    font-size: 2rem;
  }

  .about-intro {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .about-highlights {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .about-highlight h3 {
    font-size: 1.25rem;
  }
}

/* ============================================
   NOWOCZESNE ANIMACJE I EFEKTY
   ============================================ */

/* Fade-in animation dla elementów */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Pulse animation dla CTA */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(234, 88, 12, 0.5);
  }
}

/* Shimmer effect dla kart */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Animacje dla elementów przy załadowaniu */
.hero-card,
.category-featured-card,
.category-sidebar-item,
.post-card {
  animation: fadeInUp 0.6s ease-out backwards;
}

.hero-card:nth-child(1) { animation-delay: 0.1s; }
.hero-card:nth-child(2) { animation-delay: 0.2s; }
.hero-card:nth-child(3) { animation-delay: 0.3s; }
.hero-card:nth-child(4) { animation-delay: 0.4s; }

/* Animacje dla linków */
a {
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:not(.btn):not(.nav-link):not(.logo):hover {
  color: #1e3a8a;
  text-decoration: underline;
  text-decoration-color: #ea580c;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

/* Animacje dla tagów */
.tag {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.tag:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.tag:hover::before {
  left: 100%;
}

/* Animacje dla obrazków w artykułach */
.article-image img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-image:hover img {
  transform: scale(1.05);
}

/* Animacje dla paginacji */
.pagination-link {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.pagination-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 4px;
  background-color: rgba(30, 58, 138, 0.1);
  transform: scale(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination-link:hover::before {
  transform: scale(1);
}

.pagination-link:hover {
  border-color: #1e3a8a;
  transform: translateY(-2px);
}

/* Animacje dla sidebar */
.sidebar-list a {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding-left: 0.5rem;
}

.sidebar-list a::before {
  content: '→';
  position: absolute;
  left: -1rem;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #ea580c;
}

.sidebar-list a:hover {
  padding-left: 1rem;
  color: #1e3a8a;
}

.sidebar-list a:hover::before {
  opacity: 1;
  left: 0;
}

/* Animacje dla autorów */
.author-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.author-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(30, 58, 138, 0.15);
}

.author-image {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.author-card:hover .author-image {
  transform: scale(1.1);
}

/* Animacje dla sekcji "O nas" */
.about-highlight {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1.5rem;
  border-radius: 8px;
}

.about-highlight:hover {
  background-color: rgba(30, 58, 138, 0.05);
  transform: translateY(-4px);
}

.about-highlight h3 {
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-highlight:hover h3 {
  color: #ea580c;
}

/* Smooth transitions dla wszystkich interaktywnych elementów */
button,
input[type="submit"],
input[type="button"] {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading state dla przycisków */
.btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid #fff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Hover effect dla kategorii w menu - podkreślenie wyłączone */
.navbar-red .nav-link {
  position: relative;
}

/* Animacje dla placeholder obrazków */
.hero-card-image-placeholder,
.category-featured-image-placeholder,
.category-sidebar-image-placeholder {
  animation: shimmer 2s infinite;
  background: linear-gradient(
    90deg,
    #f1f5f9 0%,
    #e2e8f0 50%,
    #f1f5f9 100%
  );
  background-size: 200% 100%;
}

/* Focus states dla dostępności */
.btn:focus,
.nav-link:focus,
a:focus {
  outline: 2px solid #ea580c;
  outline-offset: 2px;
}

/* Reduced motion - szanuj preferencje użytkownika */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

