/*!
Theme Name: BlogV1
Theme URI: https://example.com/blog4
Author: Arczi
Author URI: https://example.com
Description: Nowoczesny szablon bloga.
Version: 1.0.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU GPL v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blogV1
*/

:root {
  --cat-budownictwo: #f97316;
  --cat-narzedzia: #3b82f6;
  --cat-dachy: #ef4444;
  --cat-podloga: #a16207;
  --cat-drzwi: #ec4899;
  --cat-okna: #8b5cf6;
  --cat-remont: #22c55e;
  --cat-lazienka: #8b5cf6;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --bg-primary: #ffffff;
  --bg-secondary: #f1f5f9;
  --bg-hero: #f8fafc;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --transition: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px; line-height: 1.6; color: var(--text-primary); background-color: var(--bg-primary);
  overflow-x: hidden;
  position: relative;
  width: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 768px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ============================================
   HEADER & NAVIGATION - NEW VERSION
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .header-container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .header-container {
    padding: 0 2rem;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.site-branding {
  display: flex;
  align-items: center;
  max-width: 200px;
  height: 100%;
}

.site-branding .custom-logo-link {
  display: flex;
  align-items: center;
  max-height: 50px;
}

.site-branding .custom-logo {
  max-height: 50px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 767px) {
  .site-branding {
    max-width: 150px;
  }
  
  .site-branding .custom-logo {
    max-height: 40px;
    max-width: 130px;
  }
}

.site-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

@media (max-width: 767px) {
  .site-title {
    font-size: 1.125rem;
  }
}

.site-title .highlight {
  color: var(--cat-budownictwo);
}

/* ============================================
   NAV TOGGLE (HAMBURGER)
   ============================================ */
.nav-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 100000 !important;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
  margin: 3px 0;
}

/* Active state - X shape - FORCE WITH IMPORTANT */
.nav-toggle.active .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg) !important;
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
  opacity: 0 !important;
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg) !important;
}

/* ============================================
   MAIN NAVIGATION
   ============================================ */
.main-nav {
  display: none;
}

/* Mobile nav header - hidden by default (desktop) */
.mobile-nav-header {
  display: none;
}

/* Mobile Navigation */
@media (max-width: 1023px) {
  .main-nav {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: #ffffff !important;
    z-index: 99999 !important;
    transform: translateX(100%) !important;
    transition: transform 0.3s ease !important;
    overflow-y: auto !important;
    padding: 5rem 1.5rem 2rem !important;
    box-sizing: border-box !important;
  }

  .main-nav.nav-open {
    transform: translateX(0) !important;
  }

  /* Mobile nav header with logo - show only on mobile */
  .mobile-nav-header {
    display: flex !important;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: #ffffff;
  }

  .mobile-nav-logo {
    display: flex;
    align-items: center;
  }

  .mobile-nav-logo img {
    max-height: 40px;
    width: auto;
  }

  .mobile-nav-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-decoration: none;
  }

  .mobile-nav-logo-text .highlight {
    color: var(--cat-budownictwo);
  }

  .main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .main-nav li {
    border-bottom: 1px solid var(--border-color);
  }

  .main-nav li:last-child {
    border-bottom: none;
  }

  .main-nav a {
    display: block;
    padding: 1rem 0;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
  }

  .main-nav a:hover {
    color: var(--cat-budownictwo);
  }

  /* Submenu mobile */
  .main-nav ul ul {
    padding-left: 1rem;
    border-left: 2px solid var(--border-color);
    margin: 0 0 0.5rem 0.5rem;
  }

  .main-nav ul ul li {
    border-bottom: none;
  }

  .main-nav ul ul a {
    font-size: 1rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
  }
}

/* Desktop Navigation */
@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .main-nav {
    display: block !important;
    position: static;
    transform: none;
    background: transparent;
    padding: 0;
    z-index: auto;
  }

  .main-nav ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .main-nav li {
    position: relative;
    border-bottom: none;
  }

  .main-nav a {
    display: block;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s ease;
  }

  .main-nav a:hover {
    color: var(--cat-budownictwo);
  }

  /* Desktop Submenu */
  .main-nav ul ul {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 0.75rem;
    padding: 0.5rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
    flex-direction: column;
    gap: 0;
    margin-top: 0.5rem;
  }

  .main-nav li:hover > ul,
  .main-nav li:focus-within > ul {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .main-nav ul ul li {
    border-bottom: none;
  }

  .main-nav ul ul a {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    text-align: center;
  }

  .main-nav ul ul a:hover {
    background: var(--bg-secondary);
  }
}
  
  .main-navigation ul ul li {
    border-bottom: none;
  }
  
  .main-navigation ul ul a {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    text-align: center;
    display: block;
  }
  
  .main-navigation ul ul a:hover {
    background: var(--bg-secondary);
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ============================================
   HERO SLIDER - POPRAWIONY UKŁAD
   ============================================ */
.hero-slider { padding: 2rem 0; background: var(--bg-hero); }

/* Główny wrapper - obrazek po lewej, tekst po prawej */
.hero-main-wrapper { 
  display: grid; 
  gap: 2rem; 
  margin-bottom: 1.5rem;
}
@media (min-width: 1024px) { 
  .hero-main-wrapper { 
    grid-template-columns: 1.2fr 1fr; 
    align-items: center;
  } 
}

/* Strona z obrazkiem */
.hero-image-side { 
  border-radius: 1rem; 
  overflow: hidden; 
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero-image-link {
  display: block;
  position: relative;
}
.hero-main-img { 
  width: 100%; 
  height: auto; 
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  border-radius: 1rem;
}
.hero-image-side:hover .hero-main-img { 
  transform: scale(1.03); 
}
.hero-image-arrow {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-lg);
  z-index: 10;
  color: var(--text-primary);
}
.hero-image-side:hover .hero-image-arrow {
  opacity: 1;
  transform: translateY(0);
}

/* Strona z treścią */
.hero-content-side { 
  padding: 0;
}
@media (min-width: 1024px) {
  .hero-content-side { 
    padding: 1rem 0;
  }
}

.hero-category {
  display: inline-block; 
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem; 
  font-weight: 600; 
  text-transform: uppercase; 
  letter-spacing: 0.025em;
  color: white; 
  border-radius: 9999px; 
  margin-bottom: 1rem;
}
.hero-title { 
  font-size: 1.5rem; 
  font-weight: 700; 
  color: var(--text-primary); 
  line-height: 1.3; 
  margin-bottom: 0.75rem; 
}
@media (min-width: 768px) { 
  .hero-title { 
    font-size: 1.75rem; 
  } 
}
@media (min-width: 1024px) { 
  .hero-title { 
    font-size: 2rem; 
  } 
}
.hero-excerpt { 
  font-size: 0.9375rem; 
  color: var(--text-secondary); 
  line-height: 1.6; 
  margin-bottom: 1.5rem; 
}
.hero-meta { 
  display: flex; 
  align-items: center; 
  gap: 1rem; 
  font-size: 0.875rem; 
  color: var(--text-muted); 
  margin-bottom: 1.5rem;
}
.hero-meta span { 
  display: flex; 
  align-items: center; 
  gap: 0.375rem; 
}

/* Nawigacja slidera */
.hero-nav-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
}
.hero-nav { 
  display: flex; 
  gap: 0.5rem; 
}
.hero-nav-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-color);
  background: white;
  border-radius: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.hero-nav-btn:hover {
  border-color: var(--cat-budownictwo);
  color: var(--cat-budownictwo);
  transform: translateY(-2px);
}

.hero-dots { 
  display: flex; 
  gap: 0.5rem; 
}
.hero-dot { 
  width: 10px; 
  height: 10px; 
  border-radius: 50%; 
  background: var(--border-color); 
  cursor: pointer; 
  transition: all var(--transition); 
}
.hero-dot.active { 
  width: 28px; 
  border-radius: 5px; 
  background: var(--cat-budownictwo); 
}

/* Miniaturki na dole w rzędzie */
.hero-thumbnails-row { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 1rem;
}
@media (min-width: 640px) { 
  .hero-thumbnails-row { 
    grid-template-columns: repeat(4, 1fr); 
  } 
}
.hero-thumb-item { 
  position: relative; 
  border-radius: 0.75rem; 
  overflow: hidden; 
  aspect-ratio: 16/10; 
  cursor: pointer; 
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.hero-thumb-item:hover { 
  transform: translateY(-4px); 
  box-shadow: var(--shadow-lg);
}
.hero-thumb-item.active {
  box-shadow: 0 0 0 3px var(--cat-budownictwo);
}
.hero-thumb-img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover;
  border-radius: 0.75rem;
  transition: transform 0.4s ease;
}
.hero-thumb-item:hover .hero-thumb-img {
  transform: scale(1.05);
}
.hero-thumb-overlay { 
  position: absolute; 
  bottom: 0; 
  left: 0; 
  right: 0; 
  padding: 0.75rem; 
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent); 
  border-radius: 0 0 0.75rem 0.75rem;
}
.hero-thumb-title { 
  color: white; 
  font-size: 0.75rem; 
  font-weight: 500; 
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.hero-nav { display: flex; gap: 0.5rem; margin-top: 1rem; }
.hero-nav button { width: 40px; height: 40px; border: 1px solid var(--border-color); background: white; border-radius: 0.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.hero-nav button:hover { border-color: var(--cat-budownictwo); color: var(--cat-budownictwo); }

.hero-dots { display: flex; gap: 0.5rem; margin-top: 1rem; justify-content: flex-end; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-color); cursor: pointer; transition: all var(--transition); }
.hero-dot.active { width: 24px; border-radius: 4px; background: var(--cat-budownictwo); }

.section-title-wrapper { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 2rem; }
.section-line { flex: 1; max-width: 60px; height: 3px; border-radius: 2px; }
.section-title-link { text-decoration: none; position: relative; display: inline-block; }
.section-title { 
  font-size: 1.25rem; 
  font-weight: 700; 
  text-transform: uppercase; 
  letter-spacing: 0.05em; 
  color: var(--text-primary); 
  position: relative;
  display: inline-block;
  padding-bottom: 0.25rem;
  transition: color 0.3s ease;
}
.section-title-link:hover .section-title { color: var(--cat-color); }
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background-color: var(--cat-color);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.section-title-link:hover .section-title::after { width: 100%; }
@media (min-width: 768px) { .section-title { font-size: 1.5rem; } }

/* ============================================
   POST CARDS - Z ZAOKRĄGLENIAMI I EFEKTAMI
   ============================================ */
.post-card { 
  background: white; 
  border-radius: 1rem; 
  overflow: hidden; 
  box-shadow: var(--shadow-sm); 
  transition: all var(--transition); 
}
.post-card:hover { 
  box-shadow: var(--shadow-lg); 
  transform: translateY(-4px); 
}
.post-card-image { 
  position: relative; 
  overflow: hidden; 
  border-radius: 1rem 1rem 0 0;
}
.post-card-image img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 1rem 1rem 0 0;
}
.post-card:hover .post-card-image img { 
  transform: scale(1.05); 
}
/* Efekt shine */
.post-card-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-25deg);
  transition: left 0.6s ease;
  pointer-events: none;
  z-index: 5;
  border-radius: 1rem 1rem 0 0;
}
.post-card:hover .post-card-image::before { 
  left: 150%; 
}
.post-card-badge { 
  position: absolute; 
  top: 1rem; 
  left: 1rem; 
  padding: 0.375rem 0.875rem; 
  font-size: 0.6875rem; 
  font-weight: 700; 
  text-transform: uppercase; 
  letter-spacing: 0.05em; 
  color: white; 
  border-radius: 9999px; 
  z-index: 10; 
}
.post-card-arrow { 
  position: absolute; 
  bottom: 1rem; 
  right: 1rem; 
  width: 40px; 
  height: 40px; 
  background: white; 
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  opacity: 0; 
  transform: translateY(10px); 
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
  box-shadow: var(--shadow-md); 
  z-index: 10; 
}
.post-card:hover .post-card-arrow { 
  opacity: 1; 
  transform: translateY(0); 
}
.post-card-content { 
  padding: 1.25rem; 
}
.post-card-title { 
  font-size: 1rem; 
  font-weight: 600; 
  color: var(--text-primary); 
  line-height: 1.4; 
  margin-bottom: 0.75rem; 
  display: -webkit-box; 
  -webkit-line-clamp: 2; 
  -webkit-box-orient: vertical; 
  overflow: hidden; 
  transition: color 0.3s ease;
}
.post-card:hover .post-card-title { color: var(--cat-color); }
.post-card-meta { 
  display: flex; 
  align-items: center; 
  gap: 1rem; 
  font-size: 0.8125rem; 
  color: var(--text-muted); 
}
.post-card-meta span { 
  display: flex; 
  align-items: center; 
  gap: 0.375rem; 
}

/* Horizontal card */
.post-card-horizontal { 
  display: flex; 
  background: white; 
  border-radius: 1rem; 
  overflow: hidden; 
  box-shadow: var(--shadow-sm); 
  transition: all var(--transition); 
  position: relative;
}
.post-card-horizontal:hover { 
  box-shadow: var(--shadow-md); 
  transform: translateX(4px); 
}
.post-card-horizontal .post-card-image { 
  width: 160px; 
  height: 120px; 
  flex-shrink: 0;
  border-radius: 0.75rem;
  margin: 0.75rem;
  overflow: hidden;
  position: relative;
}
@media (max-width: 639px) {
  .post-card-horizontal .post-card-image { 
    width: 100px; 
    height: 100px; 
    margin: 0.5rem;
  }
}
.post-card-horizontal .post-card-image img {
  border-radius: 0.75rem;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.post-card-horizontal:hover .post-card-image img {
  transform: scale(1.08);
}
.post-card-horizontal .post-card-arrow {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  width: 36px;
  height: 36px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-md);
  z-index: 10;
}
.post-card-horizontal:hover .post-card-arrow {
  opacity: 1;
  transform: translateY(0);
}
.post-card-horizontal .post-card-category-badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: white;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
  width: fit-content;
}
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-md);
  z-index: 10;
}
.post-card-horizontal:hover .post-card-arrow {
  opacity: 1;
  transform: translateY(0);
}
.post-card-horizontal .post-card-content { 
  padding: 0.875rem 1rem; 
  flex: 1; 
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
}
.post-card-horizontal .post-card-title { 
  font-size: 0.9375rem; 
  margin-bottom: 0.25rem; 
  transition: color 0.3s ease;
}
.post-card-horizontal:hover .post-card-title {
  color: var(--cat-color);
}
.post-card-horizontal .post-card-meta { 
  font-size: 0.75rem; 
}

/* Featured card */
.post-card-featured { 
  background: white; 
  border-radius: 1rem; 
  overflow: hidden; 
  box-shadow: var(--shadow-sm); 
  transition: all var(--transition); 
}
.post-card-featured:hover { 
  box-shadow: var(--shadow-lg); 
}
.post-card-featured .post-card-image { 
  aspect-ratio: 16/10;
  border-radius: 1rem 1rem 0 0;
}
.post-card-featured .post-card-image img {
  border-radius: 1rem 1rem 0 0;
}
.post-card-featured .post-card-content { 
  padding: 1.25rem; 
}
.post-card-featured .post-card-title { 
  font-size: 1.125rem; 
  transition: color 0.3s ease;
}
.post-card-featured:hover .post-card-title {
  color: var(--cat-color);
}

/* Featured post in layout-featured-side */
.featured-post {
  height: 100%;
}
.featured-post .post-card-featured {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.featured-post .post-card-featured > a {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.featured-post .post-card-featured .post-card-image {
  flex: 1;
  min-height: 250px;
}
.featured-post .post-card-featured .post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-section { padding: 3rem 0; }
.category-section:nth-child(odd) { background: var(--bg-secondary); }

.posts-grid { display: grid; gap: 1.5rem; }
.posts-grid-4 { grid-template-columns: repeat(1, 1fr); }
@media (min-width: 640px) { .posts-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .posts-grid-4 { grid-template-columns: repeat(4, 1fr); } }

.posts-grid-3 { grid-template-columns: repeat(1, 1fr); }
@media (min-width: 640px) { .posts-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .posts-grid-3 { grid-template-columns: repeat(3, 1fr); } }

.posts-grid-2 { grid-template-columns: repeat(1, 1fr); }
@media (min-width: 640px) { .posts-grid-2 { grid-template-columns: repeat(2, 1fr); } }

.posts-grid-2 { grid-template-columns: repeat(1, 1fr); }
@media (min-width: 768px) { .posts-grid-2 { grid-template-columns: repeat(2, 1fr); } }

.layout-featured-side { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .layout-featured-side { grid-template-columns: 1.5fr 1fr; } }
.side-posts { 
  display: flex; 
  flex-direction: column; 
  gap: 0.75rem; 
  justify-content: space-between;
  height: 100%;
}

/* Side posts horizontal cards - aligned with featured image */
.side-posts .post-card-horizontal { 
  flex: 1;
  padding: 0.75rem;
  display: flex;
  align-items: center;
}
.side-posts .post-card-horizontal > a {
  display: flex;
  width: 100%;
  align-items: center;
}
.side-posts .post-card-horizontal .post-card-image { 
  width: 110px; 
  height: 80px; 
  margin: 0;
  border-radius: 0.5rem;
  flex-shrink: 0;
}
.side-posts .post-card-horizontal .post-card-image img {
  border-radius: 0.5rem;
}
.side-posts .post-card-horizontal .post-card-content { 
  padding: 0 0 0 0.875rem; 
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.side-posts .post-card-horizontal .post-card-category-badge {
  font-size: 0.625rem;
  padding: 0.25rem 0.625rem;
  margin-bottom: 0.5rem;
  width: fit-content;
}
.side-posts .post-card-horizontal .post-card-title {
  font-size: 0.9375rem;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  -webkit-line-clamp: 2;
}
.side-posts .post-card-horizontal .post-card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.side-posts .post-card-horizontal .post-card-arrow {
  width: 28px;
  height: 28px;
  bottom: 0.25rem;
  right: 0.25rem;
}
@media (min-width: 768px) { 
  .side-posts .post-card-horizontal .post-card-image { 
    width: 130px; 
    height: 95px; 
  }
  .side-posts .post-card-horizontal .post-card-title {
    font-size: 1rem;
  }
}

.layout-with-sidebar { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .layout-with-sidebar { grid-template-columns: 1fr 320px; } }

/* Sidebar Widgets */
.post-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-widget { background: white; border-radius: 1rem; padding: 1.5rem; box-shadow: var(--shadow-sm); }
.sidebar-widget h3 { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.025em; color: var(--text-primary); margin-bottom: 1.25rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border-color); }

/* Custom HTML Widget */
.sidebar-custom-html .custom-html-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.sidebar-custom-html .custom-html-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}
.sidebar-custom-html .custom-html-content iframe,
.sidebar-custom-html .custom-html-content embed,
.sidebar-custom-html .custom-html-content object {
    max-width: 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
}
.sidebar-custom-html .custom-html-content table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.sidebar-custom-html .custom-html-content table th,
.sidebar-custom-html .custom-html-content table td {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
}

/* Sidebar Search */
.sidebar-search .search-form { display: flex; gap: 0.5rem; }
.sidebar-search .search-field { flex: 1; padding: 0.75rem 1rem; border: 1px solid var(--border-color); border-radius: 0.5rem; font-size: 0.9375rem; transition: border-color 0.3s ease; }
.sidebar-search .search-field:focus { outline: none; border-color: var(--cat-budownictwo); }
.sidebar-search .search-submit { width: 44px; height: 44px; background: var(--cat-budownictwo); color: white; border: none; border-radius: 0.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.sidebar-search .search-submit:hover { background: var(--text-primary); }

/* Sidebar Categories */
.category-list { list-style: none; padding: 0; margin: 0; }
.category-list li { border-bottom: 1px solid var(--border-color); }
.category-list li:last-child { border-bottom: none; }
.category-list a { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0; color: var(--text-primary); transition: all 0.3s ease; }
.category-list a:hover { color: var(--cat-color, var(--cat-budownictwo)); padding-left: 0.5rem; }
.category-list .cat-name { font-weight: 500; }
.category-list .cat-count { background: var(--bg-secondary); color: var(--text-muted); font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.5rem; border-radius: 9999px; min-width: 24px; text-align: center; }

/* Sidebar Recent Posts - Large Images */
.sidebar-recent-posts { display: flex; flex-direction: column; gap: 1rem; }
.sidebar-recent-post { display: flex; flex-direction: column; gap: 0.75rem; }
.recent-post-image { display: block; border-radius: 0.75rem; overflow: hidden; aspect-ratio: 16/10; }
.recent-post-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.recent-post-image:hover img { transform: scale(1.05); }
.recent-post-content { display: flex; flex-direction: column; gap: 0.375rem; }
.recent-post-cat { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.025em; }
.recent-post-title { font-size: 0.9375rem; font-weight: 600; color: var(--text-primary); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.3s ease; }
.recent-post-title:hover { color: var(--cat-budownictwo); }
.recent-post-date { font-size: 0.8125rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.375rem; }

/* Widget Post (old style) */
.widget-post { display: flex; gap: 0.875rem; padding: 0.875rem 0; border-bottom: 1px solid var(--border-color); }
.widget-post:last-child { border-bottom: none; padding-bottom: 0; }
.widget-post:first-child { padding-top: 0; }
.widget-post-thumb { 
  width: 70px; 
  height: 70px; 
  border-radius: 0.5rem; 
  overflow: hidden; 
  flex-shrink: 0;
  transition: all var(--transition);
}
.widget-post-thumb:hover {
  transform: scale(1.05);
}
.widget-post-thumb img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover;
  border-radius: 0.5rem;
  transition: transform 0.3s ease;
}
.widget-post-thumb:hover img {
  transform: scale(1.1);
}
.widget-post-content { flex: 1; }
.widget-post-title { 
  font-size: 0.875rem; 
  font-weight: 500; 
  color: var(--text-primary); 
  line-height: 1.4; 
  display: -webkit-box; 
  -webkit-line-clamp: 2; 
  -webkit-box-orient: vertical; 
  overflow: hidden; 
  margin-bottom: 0.25rem; 
  transition: color 0.3s ease;
}
.widget-post:hover .widget-post-title { color: var(--cat-budownictwo); }
.widget-post-date { font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.25rem; }
.widget-post { 
  display: flex; 
  gap: 0.875rem; 
  padding: 0.875rem 0; 
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
  border-radius: 0.5rem;
}
.widget-post:hover { 
  background-color: var(--bg-secondary);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}
.widget-post-thumb { 
  width: 70px; 
  height: 70px; 
  border-radius: 0.5rem; 
  overflow: hidden; 
  flex-shrink: 0;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}
.widget-post:hover .widget-post-thumb {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.widget-post-thumb img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover;
  border-radius: 0.5rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.widget-post:hover .widget-post-thumb img {
  transform: scale(1.1);
}

.layout-masonry { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .layout-masonry { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .layout-masonry { grid-template-columns: repeat(3, 1fr); } .layout-masonry .post-card:first-child { grid-row: span 2; } .layout-masonry .post-card:first-child .post-card-image { aspect-ratio: 3/4; } }

.layout-horizontal-list { display: grid; gap: 1rem; }
@media (min-width: 768px) { .layout-horizontal-list { grid-template-columns: repeat(2, 1fr); } }

.horizontal-card { display: flex; background: white; border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow-sm); transition: all var(--transition); position: relative; }
.horizontal-card:hover { box-shadow: var(--shadow-md); }
.horizontal-card-image { 
  width: 160px; 
  height: 120px; 
  flex-shrink: 0; 
  overflow: hidden;
  border-radius: 0.75rem;
  position: relative;
  margin: 0.75rem;
}
@media (min-width: 768px) { 
  .horizontal-card-image { 
    width: 180px; 
    height: 135px; 
  } 
}
@media (max-width: 639px) { 
  .horizontal-card-image { 
    width: 100px; 
    height: 100px; 
    margin: 0.5rem;
  } 
}
.horizontal-card-image img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 0.75rem;
}
.horizontal-card:hover .horizontal-card-image img {
  transform: scale(1.08);
}
.horizontal-card .post-card-arrow {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-md);
  z-index: 10;
}
.horizontal-card:hover .post-card-arrow {
  opacity: 1;
  transform: translateY(0);
}
.horizontal-card-content { padding: 1rem 1.25rem; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.horizontal-card-badge { display: inline-block; padding: 0.25rem 0.625rem; font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: white; border-radius: 9999px; margin-bottom: 0.5rem; width: fit-content; }
.horizontal-card-title { 
  font-size: 1rem; 
  font-weight: 600; 
  color: var(--text-primary); 
  line-height: 1.4; 
  margin-bottom: 0.5rem; 
  display: -webkit-box; 
  -webkit-line-clamp: 2; 
  -webkit-box-orient: vertical; 
  overflow: hidden; 
  transition: color 0.3s ease;
}
.horizontal-card:hover .horizontal-card-title { color: var(--cat-color); }
.horizontal-card-excerpt { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 0.75rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.horizontal-card-meta { display: flex; align-items: center; gap: 1rem; font-size: 0.75rem; color: var(--text-muted); }
.horizontal-card-meta span { display: flex; align-items: center; gap: 0.25rem; }

.carousel-container { display: flex; gap: 1.5rem; overflow-x: auto; scroll-behavior: smooth; padding-bottom: 1rem; scrollbar-width: none; }
.carousel-container::-webkit-scrollbar { display: none; }

.single-post { 
  padding: 2rem 0; 
  overflow-x: hidden;
  width: 100%;
}
.single-post-layout { 
  display: grid; 
  gap: 2rem; 
  overflow-x: hidden;
  width: 100%;
}

.post-main {
  overflow-x: hidden;
  width: 100%;
  min-width: 0;
}
@media (min-width: 1024px) { .single-post-layout { grid-template-columns: 1fr 320px; } }
.single-post-header { margin-bottom: 1.5rem; }
.single-post-category { display: inline-block; padding: 0.375rem 1rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: white; border-radius: 9999px; margin-bottom: 1rem; }
.single-post-title { 
  font-size: 1.5rem; 
  font-weight: 700; 
  color: var(--text-primary); 
  line-height: 1.3; 
  margin-bottom: 1rem; 
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
@media (min-width: 768px) { .single-post-title { font-size: 2.25rem; } }
.single-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; font-size: 0.875rem; color: var(--text-secondary); }
.single-post-meta span { display: flex; align-items: center; gap: 0.375rem; }
.single-post-image { border-radius: 1rem; overflow: hidden; margin-bottom: 1.5rem; }
.single-post-image img { width: 100%; height: auto; }
.single-post-content { 
  font-size: 1rem; 
  line-height: 1.8; 
  color: var(--text-primary); 
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
.single-post-content p { 
  margin-bottom: 1.25rem; 
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.single-post-content h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 1rem; }
.single-post-content h3 { font-size: 1.25rem; font-weight: 600; margin: 1.5rem 0 0.75rem; }
.single-post-content ul, .single-post-content ol { 
  margin: 1rem 0 1rem 1.5rem; 
  padding-left: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.single-post-content li { 
  margin-bottom: 0.5rem; 
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
.single-post-content img { max-width: 100%; height: auto; }
.single-post-content a { word-wrap: break-word; overflow-wrap: break-word; }

/* Prevent overflow for all post content elements */
.single-post-content * {
  max-width: 100%;
}

/* Handle iframes (YouTube, etc.) */
.single-post-content iframe,
.single-post-content embed,
.single-post-content object {
  max-width: 100%;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
}

/* Handle pre/code blocks */
.single-post-content pre,
.single-post-content code {
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

/* Handle figures */
.single-post-content figure {
  margin: 1.5rem 0;
  max-width: 100%;
}

.single-post-content figure img {
  width: 100%;
  height: auto;
}

/* Handle blockquotes */
.single-post-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--cat-budownictwo);
  background: var(--bg-secondary);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Tables in post content */
.single-post-content table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.875rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.single-post-content table thead {
  background: var(--bg-secondary);
}

.single-post-content table th,
.single-post-content table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  min-width: 120px;
}

.single-post-content table th {
  font-weight: 600;
  color: var(--text-primary);
}

.single-post-content table tbody tr:hover {
  background: var(--bg-secondary);
}

/* Post content wrapper */
.post-content-wrapper {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .post-content-wrapper {
    padding: 2rem;
  }
}

/* Sidebar widgets as separate boxes */
.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-widget {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-widget h3 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

/* Better space usage - wider container for posts */
@media (min-width: 1280px) {
  .single-post .container {
    max-width: 1200px;
  }
}

@media (min-width: 1536px) {
  .single-post .container {
    max-width: 1400px;
  }
}

/* Mobile post content fixes */
@media (max-width: 767px) {
  .single-post {
    padding: 1rem 0;
  }
  
  .post-content-wrapper {
    padding: 1rem;
    border-radius: 0.75rem;
  }
  
  .single-post-title {
    font-size: 1.25rem;
    line-height: 1.35;
  }
  
  .single-post-content {
    font-size: 0.9375rem;
    line-height: 1.7;
  }
  
  .single-post-content h2 {
    font-size: 1.25rem;
  }
  
  .single-post-content h3 {
    font-size: 1.125rem;
  }
  
  .single-post-content table {
    font-size: 0.75rem;
  }
  
  .single-post-content table th,
  .single-post-content table td {
    padding: 0.5rem;
    min-width: 80px;
  }
  
  .single-post-content ul,
  .single-post-content ol {
    margin-left: 1rem;
    padding-left: 0.5rem;
  }
}

.author-box { display: flex; gap: 1rem; padding: 1.5rem; background: var(--bg-secondary); border-radius: 1rem; margin-top: 2rem; }
.author-avatar { width: 70px; height: 70px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name { font-size: 1.125rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.25rem; }
.author-bio { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

.site-footer { background: var(--text-primary); color: white; padding: 2rem 0; margin-top: 3rem; }
.footer-inner { display: flex; flex-direction: column; gap: 1.5rem; }

/* Footer Pages Section */
.footer-pages-section {
    text-align: center;
}
.footer-pages-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.9);
}

/* Footer Pages List - Vertical (default) */
.footer-pages-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block;
}
.footer-pages-list li {
    margin-bottom: 0.5rem;
}
.footer-pages-list a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}
.footer-pages-list a:hover {
    color: white;
}

/* Footer Pages List - Horizontal */
.footer-pages-list.horizontal {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
}
.footer-pages-list.horizontal li {
    margin-bottom: 0;
    display: inline-flex;
    align-items: center;
}
.footer-pages-list.horizontal li:not(:last-child)::after {
    content: "|";
    margin: 0 0.75rem;
    color: rgba(255,255,255,0.3);
}

.footer-copyright {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100%; left: 50%; transform: translateX(-50%); background: var(--text-primary); color: white; padding: 0.75rem 1.5rem; border-radius: 0 0 0.5rem 0.5rem; z-index: 10000; transition: top var(--transition); }
.skip-link:focus { top: 0; }

.alignleft { float: left; margin-right: 1.5em; margin-bottom: 1.5em; }
.alignright { float: right; margin-left: 1.5em; margin-bottom: 1.5em; }
.aligncenter { clear: both; display: block; margin-left: auto; margin-right: auto; margin-bottom: 1.5em; }

/* Pagination - Horizontal */
.pagination { display: flex; justify-content: center; margin-top: 3rem; }
.pagination ul { display: flex; align-items: center; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.pagination li { display: flex; }
.pagination a, .pagination .current { display: flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 0.75rem; border-radius: 0.5rem; font-size: 0.9375rem; font-weight: 500; transition: all 0.3s ease; }
.pagination a { background: white; border: 1px solid var(--border-color); color: var(--text-primary); }
.pagination a:hover { border-color: var(--cat-budownictwo); color: var(--cat-budownictwo); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.pagination .current { background: var(--cat-budownictwo); color: white; border: 1px solid var(--cat-budownictwo); }
.pagination .prev, .pagination .next { padding: 0; }
.pagination .dots { color: var(--text-muted); padding: 0 0.5rem; }

.breadcrumbs { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--text-secondary); }
.breadcrumbs a:hover { color: var(--cat-budownictwo); }
.breadcrumbs .separator { margin: 0 0.5rem; }

/* Comments Area */
.comments-area { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border-color); }
.comments-header { margin-bottom: 2rem; }
.comments-title { font-size: 1.25rem; font-weight: 700; display: flex; align-items: center; gap: 0.75rem; color: var(--text-primary); }
.comments-title svg { color: var(--cat-budownictwo); }

/* Comment List */
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list ol { list-style: none; margin-left: 2rem; margin-top: 1.5rem; }
.comment { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); }
.comment:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

/* Comment Body */
.comment-body { display: flex; gap: 1rem; }
.comment-avatar { flex-shrink: 0; }
.comment-avatar img { border-radius: 50%; width: 60px; height: 60px; }
.comment-content { flex: 1; }

/* Comment Meta */
.comment-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.comment-author { font-weight: 600; color: var(--text-primary); font-size: 1rem; }
.comment-author a { color: var(--text-primary); }
.comment-author a:hover { color: var(--cat-budownictwo); }
.comment-date { font-size: 0.8125rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.375rem; }

/* Comment Text */
.comment-text { font-size: 0.9375rem; line-height: 1.7; color: var(--text-secondary); margin-bottom: 0.75rem; }
.comment-text p { margin-bottom: 0.75rem; }
.comment-text p:last-child { margin-bottom: 0; }

/* Comment Actions */
.comment-actions { display: flex; align-items: center; gap: 1rem; }
.comment-actions a { font-size: 0.8125rem; font-weight: 500; color: var(--text-muted); transition: color 0.3s ease; }
.comment-actions a:hover { color: var(--cat-budownictwo); }
.comment-reply-link { color: var(--cat-budownictwo) !important; }
.comment-awaiting-moderation { font-size: 0.875rem; color: var(--cat-budownictwo); font-style: italic; margin-top: 0.5rem; }

/* Comment Form */
.comment-form-wrapper { margin-top: 2rem; padding: 1.5rem; background: var(--bg-secondary); border-radius: 1rem; }
.comment-respond h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 1.25rem; color: var(--text-primary); }
.comment-form { display: flex; flex-direction: column; gap: 1rem; }
.comment-form p { margin: 0; }
.comment-form label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--text-primary); margin-bottom: 0.5rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 0.875rem 1rem; border: 1px solid var(--border-color); border-radius: 0.5rem; font-size: 0.9375rem; transition: border-color 0.3s ease; background: white; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--cat-budownictwo); }
.comment-form textarea { resize: vertical; min-height: 120px; }
.comment-form-author, .comment-form-email, .comment-form-url { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 768px) { .comment-form-author, .comment-form-email, .comment-form-url { grid-template-columns: 1fr; } }
.form-submit { margin-top: 0.5rem; }
.form-submit .submit-btn { background: var(--cat-budownictwo); color: white; border: none; padding: 0.875rem 2rem; font-size: 0.9375rem; font-weight: 600; border-radius: 0.5rem; cursor: pointer; transition: all 0.3s ease; }
.form-submit .submit-btn:hover { background: var(--text-primary); transform: translateY(-2px); }

/* Comments Navigation */
.comments-navigation { margin-top: 2rem; display: flex; justify-content: space-between; }
.comments-navigation a { font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); transition: color 0.3s ease; }
.comments-navigation a:hover { color: var(--cat-budownictwo); }

/* No Comments */
.no-comments { font-size: 0.9375rem; color: var(--text-muted); text-align: center; padding: 2rem; background: var(--bg-secondary); border-radius: 0.5rem; }

.error-404 { text-align: center; padding: 4rem 0; }
.error-404 .page-title { font-size: 6rem; font-weight: 700; color: var(--cat-budownictwo); line-height: 1; margin-bottom: 1rem; }

.archive-page { padding: 2rem 0; }
.search-page { padding: 2rem 0; }

/* ============================================
   MOBILE RESPONSIVENESS IMPROVEMENTS
   ============================================ */

/* Body lock when menu is open */
body.menu-is-open {
  overflow: hidden;
}

/* Mobile section padding */
@media (max-width: 767px) {
  .category-section {
    padding: 2rem 0;
  }
  
  /* Hero slider mobile improvements */
  .hero-slider {
    padding: 1rem 0;
  }
  
  .hero-main-wrapper {
    gap: 1rem;
  }
  
  .hero-main-img {
    aspect-ratio: 16/12;
    border-radius: 0.75rem;
  }
  
  .hero-title {
    font-size: 1.25rem;
    line-height: 1.35;
  }
  
  .hero-excerpt {
    font-size: 0.875rem;
    -webkit-line-clamp: 3;
  }
  
  .hero-meta {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  .hero-meta span {
    font-size: 0.8125rem;
  }
  
  /* Thumbnails row mobile */
  .hero-thumbnails-row {
    gap: 0.5rem;
  }
  
  .hero-thumb-item {
    flex: 1;
    min-width: 0;
  }
  
  .hero-thumb-img {
    aspect-ratio: 16/10;
    border-radius: 0.5rem;
  }
  
  .hero-thumb-overlay {
    padding: 0.375rem;
  }
  
  .hero-thumb-title {
    font-size: 0.625rem;
    -webkit-line-clamp: 2;
  }
  
  /* Section title mobile */
  .section-title-wrapper {
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }
  
  .section-title {
    font-size: 1rem;
  }
  
  .section-line {
    max-width: 30px;
  }
  
  /* Post cards mobile */
  .post-card-image {
    aspect-ratio: 16/12;
    border-radius: 0.75rem;
  }
  
  .post-card-content {
    padding: 1rem;
  }
  
  .post-card-title {
    font-size: 0.9375rem;
  }
  
  .post-card-badge {
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.625rem;
    font-size: 0.625rem;
  }
  
  .post-card-arrow {
    width: 36px;
    height: 36px;
    bottom: 0.75rem;
    right: 0.75rem;
  }
  
  /* Horizontal cards mobile */
  .post-card-horizontal .post-card-image {
    width: 90px;
    height: 70px;
    margin: 0.5rem;
    border-radius: 0.5rem;
  }
  
  .post-card-horizontal .post-card-content {
    padding: 0.5rem 0.5rem 0.5rem 0.75rem;
  }
  
  .post-card-horizontal .post-card-category-badge {
    font-size: 0.5625rem;
    padding: 0.2rem 0.5rem;
  }
  
  .post-card-horizontal .post-card-title {
    font-size: 0.8125rem;
    -webkit-line-clamp: 2;
  }
  
  .post-card-horizontal .post-card-meta {
    font-size: 0.6875rem;
  }
  
  /* Featured side layout mobile */
  .layout-featured-side {
    gap: 1rem;
  }
  
  .side-posts {
    gap: 0.75rem;
  }
  
  .side-posts .post-card-horizontal .post-card-image {
    width: 80px;
    height: 60px;
  }
  
  .side-posts .post-card-horizontal .post-card-title {
    font-size: 0.75rem;
  }
  
  /* Featured post mobile */
  .featured-post .post-card-featured .post-card-image {
    min-height: 180px;
  }
  
  .post-card-featured .post-card-title {
    font-size: 1rem;
  }
  
  /* Container mobile padding */
  .container {
    padding: 0 0.75rem;
  }
  
  /* Single post mobile */
  .single-post-layout {
    gap: 1.5rem;
  }
  
  .single-post-header {
    margin-bottom: 1.5rem;
  }
  
  .single-post-title {
    font-size: 1.5rem;
  }
  
  .single-post-image {
    margin-bottom: 1.5rem;
  }
  
  .single-post-content {
    font-size: 1rem;
  }
  
  /* Sidebar mobile */
  .post-sidebar {
    gap: 1rem;
  }
  
  .sidebar-widget {
    padding: 1rem;
  }
  
  .sidebar-recent-post .recent-post-image {
    aspect-ratio: 16/10;
  }
  
  /* Footer mobile */
  .site-footer {
    padding: 2rem 0 1.5rem;
  }
  
  .footer-widgets {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-widget h4 {
    font-size: 0.9375rem;
  }
  
  .footer-copyright {
    padding-top: 1.5rem;
    font-size: 0.8125rem;
  }
  
  /* Pagination mobile */
  .pagination a,
  .pagination .current {
    min-width: 40px;
    height: 40px;
    font-size: 0.875rem;
  }
  
  /* Comments mobile */
  .comment-body {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .comment-avatar img {
    width: 48px;
    height: 48px;
  }
  
  .comment-form-wrapper {
    padding: 1rem;
  }
}

/* Tablet improvements */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-title {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 1.125rem;
  }
  
  .post-card-title {
    font-size: 0.9375rem;
  }
}
