/*
Theme Name: Kadence Child - TrustedOne Redesign
Template: kadence
Author: Bartosz Lewicki + Codex
Version: 1.0.3
Description: Child theme dla trustedone.pl - redesign UX/UI 2025
*/

:root {
  --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  --font-heading: var(--font-primary);

  --fs-display: clamp(2.75rem, 6vw, 4rem);
  --fs-h1: clamp(2.5rem, 5vw, 3.5rem);
  --fs-h2: clamp(2rem, 4vw, 2.75rem);
  --fs-h3: clamp(1.5rem, 3vw, 2rem);
  --fs-h4: clamp(1.25rem, 2.8vw, 1.75rem);
  --fs-h5: clamp(1.125rem, 2vw, 1.35rem);
  --fs-h6: clamp(1rem, 1.8vw, 1.125rem);
  --fs-lead: clamp(1.125rem, 2.5vw, 1.5rem);
  --fs-body: clamp(1rem, 2vw, 1.125rem);
  --fs-button: clamp(0.95rem, 1.4vw, 1.05rem);
  --fs-small: clamp(0.825rem, 1.2vw, 0.95rem);
  --fs-caption: clamp(0.75rem, 1vw, 0.85rem);

  --lh-heading: 1.2;
  --lh-body: 1.6;

  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 8rem;

  --content-max-width: 1200px;

  --section-padding-mobile: 10rem;
  --section-padding-desktop: 11.25rem;

  --color-primary: #425359;
  --color-secondary: #538EA6;
  --color-accent: #66ADD9;
  --color-text: #333333;
  --color-hero-text: #1b2529;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8F9FA;
  --color-border: #E0E0E0;

  --header-height: 152px;
  --header-height-mobile: 120px;
  --header-bg-initial: rgba(255, 255, 255, 0);
  --header-bg-scrolled: rgba(255, 255, 255, 0.98);
  --header-shadow-scrolled: 0 2px 16px rgba(66, 83, 89, 0.08);
  --header-transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  margin: 0;
  overflow-x: clip;  /* maintain sticky header while hiding horizontal overflow */
  position: relative;
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: var(--lh-heading);
  margin: 0 0 var(--space-sm);
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

h4 {
  font-size: var(--fs-h4);
}

h5 {
  font-size: var(--fs-h5);
}

h6 {
  font-size: var(--fs-h6);
}

p {
  margin: 0 0 var(--space-sm);
}

.screen-reader-text {
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
}

.screen-reader-text:focus {
  position: static;
  clip: auto;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.5rem 1rem;
  background: var(--color-bg);
  color: var(--color-primary);
  z-index: 1001;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--header-bg-initial);
  transition: var(--header-transition);
  backdrop-filter: blur(6px);
}

.site-header.is-scrolled {
  background-color: var(--header-bg-scrolled);
  box-shadow: var(--header-shadow-scrolled);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 1rem var(--space-md);
  max-width: var(--content-max-width);
  margin: 0 auto;
  min-height: var(--header-height);
}

.header-branding {
  display: flex;
  align-items: center;
  flex-shrink: 0; /* Prevent logo from shrinking on wide screens */
}

.header-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0; /* Prevent logo from shrinking on wide screens */
}

.header-logo img {
  height: 96px !important;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

.header-navigation {
  display: flex;
  align-items: center;
  gap: 1.5rem; /* spacing between menu and language switcher */
  max-width: 100%;
  overflow: visible;
}

.header-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 100%;
}

/* Hide Polylang language links from menu (they appear in language-toggle dropdown instead) */
.header-menu .lang-item {
  display: none !important;
}

.header-menu a {
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  position: relative;
  padding: 0.75rem 0;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.header-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background-color: var(--color-secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.header-menu a:hover,
.header-menu a:focus {
  color: var(--color-secondary);
}

.header-menu a:hover::after,
.header-menu a:focus::after {
  transform: scaleX(1);
}

.header-menu li.is-active a {
  color: var(--color-secondary);
}

.header-menu li.is-active a::after {
  transform: scaleX(1);
}

.header-language {
  position: relative;
  display: flex;
  align-items: center;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(83, 142, 166, 0.15);
  background-color: rgba(83, 142, 166, 0.08);
  color: var(--color-primary);
  font-weight: 600;
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  min-height: 44px;
}

.language-toggle:hover,
.language-toggle:focus {
  background-color: rgba(83, 142, 166, 0.16);
  border-color: rgba(83, 142, 166, 0.3);
  color: var(--color-secondary);
}

.language-toggle:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

.language-flag img {
  width: 16px;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.language-icon {
  font-size: calc(var(--fs-caption) * 0.85);
  line-height: 1;
  transform: translateY(1px);
}

.language-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: auto;
  right: 0;
  transform: none;
  background: var(--color-bg);
  border-radius: 14px;
  box-shadow: 0 18px 32px rgba(27, 37, 41, 0.18);
  padding: 0.35rem 0.45rem;
  min-width: 110px;
  width: max-content;
  list-style: none;
  margin: 0;
  display: none;
  z-index: 1010;
  border: 1px solid rgba(224, 224, 224, 0.55);
}

.header-language.is-open .language-menu {
  display: block;
}

.language-menu-item {
  margin: 0;
  width: 100%;
}

.language-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.55rem 1.1rem;
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 600;
  font-size: var(--fs-button);
  transition: background-color 0.2s ease, color 0.2s ease;
  min-height: 40px;
  text-align: center;
}

.language-menu-item.is-active .language-link,
.language-link:hover,
.language-link:focus {
  background-color: rgba(83, 142, 166, 0.12);
  color: var(--color-secondary);
}

.header-mobile-languages {
  margin-top: var(--space-md);
  padding: var(--space-sm);
  border-top: 1px solid rgba(224, 224, 224, 0.6);
  border-radius: 14px;
  background-color: rgba(83, 142, 166, 0.05);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.header-mobile-languages-title {
  font-size: var(--fs-caption);
  font-weight: 600;
  color: rgba(51, 51, 51, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.header-mobile-languages-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.header-mobile-language a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--color-primary);
  padding: 0.75rem 0.5rem;
  min-height: 44px;
  border-radius: 12px;
}

.header-mobile-language.is-active a {
  color: var(--color-secondary);
  background-color: rgba(83, 142, 166, 0.14);
}

.header-mobile-language .language-flag img {
  box-shadow: none;
}

.header-toggle {
  display: none;
  align-items: center;
  gap: var(--space-xs);
  background: none;
  border: none;
  color: var(--color-text);
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem;
}

.header-toggle-box {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
}

.header-toggle-bar {
  width: 22px;
  height: 2px;
  background-color: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header-mobile-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  height: 100vh;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  background-color: var(--color-bg);
  padding: var(--space-md) var(--space-sm) calc(var(--space-md) + env(safe-area-inset-bottom, 28px));
  box-shadow: -2px 0 16px rgba(27, 37, 41, 0.1);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  overflow-y: auto;
}

.header-mobile-panel.is-open {
  transform: translateX(0);
}

.header-mobile-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.header-mobile-menu a {
  font-size: var(--fs-button);
  font-weight: 600;
  text-decoration: none;
  color: var(--color-primary);
  padding: 0.75rem 0;
  display: flex;
  align-items: center;
  min-height: 44px;
}

.header-mobile-menu li.is-active a {
  color: var(--color-secondary);
}

body.is-menu-open {
  overflow: hidden;
}

body.is-menu-open .header-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

body.is-menu-open .header-toggle-bar:nth-child(2) {
  opacity: 0;
}

body.is-menu-open .header-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 80px);
}

.section-padding {
  padding: var(--section-padding-desktop) var(--space-md);
}

@media (max-width: 768px) {
  .section-padding {
    padding: var(--section-padding-mobile) var(--space-sm);
  }
}


.news-archive .section-padding {
  padding-top: var(--space-xl);
}

@media (max-width: 768px) {
  .news-archive .section-padding {
    padding-top: var(--space-lg);
  }
}

/* Hide Kadence hero globally, enable only on home */
body:not(.home) .entry-hero.page-hero-section {
  display: none !important;
}

.home .entry-hero.page-hero-section {
  display: flex;
}

/* Hero Section - Kadence Theme Specific */
.hero-section {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--section-padding-desktop) var(--space-md);
  min-height: 80vh;
  overflow: hidden;
  color: var(--color-hero-text);
  background-color: var(--color-bg);
  width: 100%;
  margin: 0 auto;
}

.hero-section .hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, 720px);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin: 0 auto;
}

.hero-section h1 {
  font-size: var(--fs-display);
  line-height: var(--lh-heading);
  color: var(--color-hero-text);
}

.hero-section .hero-lead {
  font-size: var(--fs-lead);
  color: var(--color-hero-text);
}

.hero-kicker {
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(27, 37, 41, 0.7);
  margin-bottom: var(--space-xs);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.hero-section .hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.85rem 1.85rem;
  border-radius: 999px;
  background-color: var(--color-secondary);
  color: var(--color-bg);
  font-size: var(--fs-button);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero-section .hero-cta:hover,
.hero-section .hero-cta:focus-visible {
  background-color: var(--color-accent);
  transform: translateY(-2px);
}

.hero-section .hero-cta.hero-cta--secondary {
  background-color: rgba(83, 142, 166, 0.12);
  color: var(--color-hero-text);
  border: 1px solid rgba(83, 142, 166, 0.35);
}

.hero-section .hero-cta.hero-cta--secondary:hover,
.hero-section .hero-cta.hero-cta--secondary:focus-visible {
  background-color: rgba(83, 142, 166, 0.24);
  color: var(--color-hero-text);
  border-color: rgba(83, 142, 166, 0.5);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-media picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.2) contrast(1.08);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.38) 55%, rgba(255, 255, 255, 0.72) 100%);
  z-index: 1;
}

@media (max-width: 1024px) {
  .hero-section {
    min-height: 70vh;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: var(--section-padding-mobile) var(--space-sm);
    min-height: 60vh;
    text-align: left;
  }

  .hero-section .hero-content {
    width: 100%;
  }

  .hero-actions {
    gap: var(--space-xs);
  }
}

/* Kadence default hero tweaks */
.entry-hero .entry-hero-container-inner {
  background: transparent !important;
}

.entry-hero .entry-title,
.entry-hero .page-title {
  display: none !important;
}

/* Header logo override note
   Kadence customizer can be used to point to /wp-content/uploads/redesign-images/logo/trustedone-logo-1-trans.svg
   If template override required, copy parent template-parts/header/site-branding.php and update <img> src accordingly. */

/* Team Section */
.team-section {
  padding: var(--section-padding-desktop) var(--space-md);
  background-color: var(--color-bg-alt);
}

.team-section .section-title {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  max-width: var(--content-max-width);
  margin: 0 auto;
}

@media (max-width: 768px) {
  .team-section {
    padding: var(--section-padding-mobile) var(--space-sm);
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* Icons */
.icon {
  display: inline-flex;
  width: 128px;
  height: auto;
}

.icon img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.icon img:hover {
  transform: translateY(-4px);
}

@media (max-width: 768px) {
  .icon {
    width: 64px;
  }
}

.hero-lead {
  max-width: 640px;
  color: rgba(27, 37, 41, 0.85);
}

.section-light {
  background-color: var(--color-bg);
}

.section-dark {
  background: linear-gradient(135deg, rgba(66, 83, 89, 0.95), rgba(83, 142, 166, 0.9));
  color: var(--color-bg);
}

.section-dark h2,
.section-dark p {
  color: var(--color-bg);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-lg);
}

.section-header p {
  color: rgba(51, 51, 51, 0.8);
}

.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.85);
}

.value-grid,
.services-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.value-card,
.service-card {
  padding: var(--space-md);
  background-color: var(--color-bg);
  border-radius: 16px;
  border: 1px solid rgba(224, 224, 224, 0.6);
  box-shadow: 0 10px 24px rgba(66, 83, 89, 0.08);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover,
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 32px rgba(66, 83, 89, 0.12);
}

.value-card h3,
.service-card h3,
.about-card h3,
.clients-item h3,
.team-member .team-summary h3 {
  font-size: 1.1rem; /* Reduced from var(--fs-h3) = 1.25rem to prevent word breaks */
  hyphens: none;
  overflow-wrap: normal;
}

.value-card p,
.service-card p {
  font-size: var(--fs-body);
  color: rgba(51, 51, 51, 0.85);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.section-dark .value-card,
.section-dark .service-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--color-bg);
}

.section-dark .value-card p,
.section-dark .service-card p {
  color: rgba(255, 255, 255, 0.85);
}

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

.cta-section.section-padding {
  padding-bottom: calc(var(--space-md) * 0.75);
}

.cta-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  background-color: var(--color-accent);
  color: var(--color-bg);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-primary:hover {
  background-color: var(--color-secondary);
  transform: translateY(-2px);
}

.cta-secondary {
  color: var(--color-bg);
  font-weight: 600;
  text-decoration: underline;
}

.page-content .content-inner {
  max-width: 960px;
  margin: 0 auto;
}

/* ==========================================
   BLOG PAGES
   ========================================== */

.blog-container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 2.5rem var(--space-md) var(--space-xl) var(--space-md);
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-xl);
  align-items: start;
}

/* Single Post Content */
.blog-content {
  background: var(--color-bg);
  border-radius: 8px;
  padding: 0 var(--space-md) var(--space-md) var(--space-md);
}

.breadcrumbs {
  font-size: var(--fs-small);
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.breadcrumbs a {
  color: var(--color-secondary);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.entry-header {
  margin-bottom: var(--space-lg);
}

.entry-title {
  font-size: var(--fs-h1);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

.entry-meta {
  display: flex;
  gap: var(--space-md);
  font-size: var(--fs-small);
  color: var(--color-text);
}

.entry-meta .author {
  color: var(--color-secondary);
  font-weight: 500;
}

.entry-featured-image {
  margin-bottom: var(--space-lg);
  border-radius: 8px;
  overflow: hidden;
}

.entry-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.entry-content {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
}

.entry-content p {
  margin-bottom: var(--space-md);
}

.entry-content h2,
.entry-content h3 {
  color: var(--color-primary);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-md);
}

.entry-tags {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.tags-label {
  font-weight: 600;
  color: var(--color-primary);
  margin-right: var(--space-sm);
}

.entry-tags a {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  border-radius: 20px;
  font-size: var(--fs-small);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.entry-tags a:hover {
  background: var(--color-secondary);
  color: white;
}

/* Sidebar */
.blog-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.widget-area {
  background: var(--color-bg-alt);
  border-radius: 8px;
  padding: var(--space-lg);
}

.widget {
  margin-bottom: var(--space-lg);
}

.widget:last-child {
  margin-bottom: 0;
}

.widget-title {
  font-size: var(--fs-h5);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

/* Search Widget - szeroki input z lupką */
.widget-search .search-form {
  width: 100% !important;
  display: block !important; /* Nadpisz globalne flex-direction: column */
  flex-direction: row !important;
}

.widget-search .search-form-field {
  width: 100% !important;
  max-width: 100% !important;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem; /* Więcej odstępu między inputem a buttonem */
  padding: 0.5rem !important; /* Jednolity padding */
}

.widget-search .search-form-input {
  flex: 1 !important; /* Wypełnij całą dostępną przestrzeń */
  width: auto !important; /* Auto - niech flex decyduje */
  max-width: none !important;
  font-size: var(--fs-small); /* 0.825-0.95rem */
  border: none !important;
  background: transparent !important;
  padding: 0.25rem 0.5rem !important; /* Mniejszy padding = więcej miejsca na tekst */
  min-width: 0 !important;
}

.widget-search .search-form-input:focus {
  outline: none;
}

.widget-search .search-form-submit {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0;
  background: var(--color-secondary);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.widget-search .search-form-submit:hover {
  background: var(--color-accent);
}

/* Ukryj tekst "Szukaj", pokaż tylko ikonę lupki */
.widget-search .search-form-submit span {
  display: none;
}

/* Ikonka lupki (SVG inline) */
.widget-search .search-form-submit::before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="white" stroke-width="2"%3E%3Cpath stroke-linecap="round" stroke-linejoin="round" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"/%3E%3C/svg%3E');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Ukryj ikony Kadence w sidebarze */
.widget-search .kadence-search-icon-wrap {
  display: none;
}

/* Recent Posts Widget */
.recent-posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-post-item {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
  display: flow-root; /* Nowoczesny clearfix - NIE ucina tekstu */
}

.recent-post-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.recent-post-thumbnail {
  float: left; /* Tekst oblewa obrazek */
  width: 50px; /* Zmniejszone z 60px - więcej miejsca na tekst */
  height: 50px;
  margin-right: 0.65rem; /* 10-11px odstęp od tekstu */
  margin-bottom: 0.5rem; /* Odstęp od dołu jeśli tekst wraca */
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.recent-post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-post-info {
  /* Tekst naturalnie oblewa float thumbnail */
  /* overflow: hidden tworzy block formatting context, ale NIE ucina tekstu */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.recent-post-title {
  font-size: var(--fs-small); /* Zmniejszone z --fs-body: 0.825-0.95rem */
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  line-height: 1.3; /* Zmniejszone z 1.4 - mniej rozstrzelenia */
  display: block; /* Blokowy element */
  margin-bottom: 0.35rem; /* Odstęp od autora */
  hyphens: none; /* NIE dziel słów - pilnuj aby nie ciąć */
  word-break: normal; /* Normalne łamanie słów - tylko na spacji */
  overflow-wrap: break-word; /* Łam tylko długie słowa jeśli nie ma spacji */
}

.recent-post-title:hover {
  color: var(--color-secondary);
}

.recent-post-author {
  font-size: var(--fs-caption); /* Mniejsza czcionka - 0.75-0.85rem */
  color: rgba(51, 51, 51, 0.6); /* Jaśniejszy kolor - mniej dominujący */
  display: block; /* Nowa linia */
  margin-top: 0.25rem; /* Odstęp od tytułu */
}

/* Tags Widget */
.widget-tags a {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  background: white;
  color: var(--color-primary);
  border-radius: 20px;
  font-size: var(--fs-small);
  text-decoration: none;
  transition: all 0.2s ease;
}

.widget-tags a:hover {
  background: var(--color-secondary);
  color: white;
}

/* Archive Page */
.archive-header {
  margin-bottom: var(--space-xl);
}

.archive-title {
  font-size: var(--fs-h1);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.archive-description {
  font-size: var(--fs-body);
  color: var(--color-text);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.post-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(66, 83, 89, 0.12);
}

.post-card-image {
  display: block;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.post-card-content {
  padding: var(--space-md);
}

.post-card-title {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-sm);
}

.post-card-title a {
  color: var(--color-primary);
  text-decoration: none;
}

.post-card-title a:hover {
  color: var(--color-secondary);
}

.post-card-meta {
  font-size: var(--fs-small);
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.post-card-excerpt {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
}

/* Pagination */
.archive-pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.archive-pagination .page-numbers {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  background: white;
  color: var(--color-primary);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.archive-pagination .page-numbers:hover,
.archive-pagination .page-numbers.current {
  background: var(--color-secondary);
  color: white;
}

@media (max-width: 1024px) {
  .header-navigation {
    display: none;
  }

  .header-toggle {
    display: inline-flex;
  }

  .value-grid,
  .services-grid,
  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Fix for medium-width screens (between tablet and wide desktop) */
@media (min-width: 1025px) and (max-width: 1680px) {
  .header-navigation {
    gap: 1rem; /* tighter spacing between menu and language switcher on medium screens */
  }

  .header-menu {
    gap: 1rem; /* compact menu spacing: 16px */
  }

  .header-menu a {
    font-size: 0.9rem; /* 14.4px - readable but compact */
    padding: 0.75rem 0.5rem;
  }

  .language-toggle {
    font-size: 0.85rem; /* 13.6px - slightly larger for readability */
    padding: 0.5rem 0.9rem; /* more balanced padding */
  }

  /* Compact dropdown aligned to toggle button right edge */
  .language-menu {
    left: auto;
    right: 0;
    transform: none;
    min-width: 110px; /* keeps dropdown compact but prevents wrapping */
    width: max-content;
    padding: 0.35rem 0.45rem;
  }

  .language-menu-item {
    width: 100%;
  }

  .language-menu .language-link {
    min-height: 40px;
    justify-content: center;
    padding: 0.55rem 1.1rem; /* centered text with balanced horizontal padding */
    text-align: center;
    font-size: 0.9rem; /* 14.4px - matches menu items for consistency */
    width: 100%;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0.75rem var(--space-sm);
    min-height: var(--header-height-mobile);
  }

  section[id] {
    scroll-margin-top: calc(var(--header-height-mobile) + 72px);
  }

  .cta-section.section-padding {
    padding-bottom: var(--space-md);
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .value-grid,
  .services-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .value-card,
  .service-card {
    padding: var(--space-sm);
  }

  .cta-inner {
    align-items: stretch;
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-primary,
  .cta-secondary {
    width: 100%;
  }

  /* Blog Mobile Responsive */
  .blog-container {
    grid-template-columns: 1fr;
    padding: 2rem var(--space-sm) var(--space-lg) var(--space-sm);
    gap: var(--space-lg);
  }

  .blog-content {
    padding: var(--space-md);
  }

  .blog-sidebar {
    position: static;
  }

  .entry-title {
    font-size: var(--fs-h2);
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .archive-title {
    font-size: var(--fs-h2);
  }
}

.value-card .icon,
.service-card .icon,
.about-card .icon {
  margin-bottom: var(--space-sm);
}

.value-card .icon img,
.service-card .icon img,
.about-card .icon img,
.cta-inner .icon img {
  width: 128px;
  height: auto;
}

.section-dark .icon img {
  filter: brightness(1.2);
}

@media (max-width: 768px) {
  .value-card .icon img,
  .service-card .icon img,
  .about-card .icon img,
  .cta-inner .icon img {
    width: 64px;
  }
}

.team-member {
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg);
  border-radius: 16px;
  padding: var(--space-md);
  border: 1px solid rgba(224, 224, 224, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.team-member .team-photo img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.team-member .team-summary {
  margin-top: var(--space-sm);
}

.team-member .team-summary h3 {
  color: var(--color-primary);
}

.team-member .team-role {
  color: var(--color-secondary);
  font-size: var(--fs-body);
}

.team-member .team-bio {
  position: absolute;
  inset: var(--space-sm);
  padding: var(--space-md);
  background: rgba(66, 83, 89, 0.95);
  color: var(--color-bg);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.team-member .team-bio p {
  color: rgba(255, 255, 255, 0.9);
}

.team-member .team-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.team-member .team-link {
  color: var(--color-bg);
  font-weight: 600;
  text-decoration: underline;
}

.team-member .team-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--color-bg);
  font-size: var(--fs-h4);
  cursor: pointer;
  line-height: 1;
}

.team-member:hover,
.team-member.is-expanded {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(66, 83, 89, 0.12);
}

.team-member:hover .team-photo img,
.team-member.is-expanded .team-photo img {
  transform: scale(0.95);
  filter: saturate(1.05);
}

.team-member:hover .team-bio,
.team-member.is-expanded .team-bio,
.team-member:focus-within .team-bio {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .team-member {
    padding: var(--space-sm);
  }

  .team-member .team-bio {
    position: static;
    background: rgba(66, 83, 89, 0.95);
    margin-top: var(--space-sm);
    display: none;
    inset: auto;
  }

  .team-member.is-expanded .team-bio {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .team-member .team-close {
    position: absolute;
    top: var(--space-xs);
    right: var(--space-xs);
    font-size: var(--fs-h4);
    padding: var(--space-xs);
    min-width: 44px;
    min-height: 44px;
    pointer-events: auto;
    z-index: 10;
    cursor: pointer;
  }

  .team-member .team-bio {
    position: relative;
  }

  .team-member.is-expanded .team-bio,
  .team-member:focus-within .team-bio {
    position: relative;
  }
}

.site-footer {
  padding: var(--space-md) var(--space-md);
  border-top: 1px solid var(--color-border);
  font-size: var(--fs-small);
  color: rgba(51, 51, 51, 0.7);
}

.footer-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  justify-content: space-between;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-nav a {
  color: rgba(51, 51, 51, 0.85);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  min-height: 44px;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.footer-nav a:hover,
.footer-nav a:focus {
  text-decoration: none;
  background-color: rgba(83, 142, 166, 0.12);
  color: var(--color-secondary);
}

@media (max-width: 768px) {
  .site-footer {
    padding: var(--space-sm) var(--space-sm);
    text-align: center;
  }

  .footer-inner {
    justify-content: center;
  }

  .footer-nav {
    justify-content: center;
  }
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-lg);
}

.about-card {
  padding: var(--space-md);
  background-color: var(--color-bg);
  border-radius: 16px;
  border: 1px solid rgba(224, 224, 224, 0.6);
  box-shadow: 0 10px 24px rgba(66, 83, 89, 0.08);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 32px rgba(66, 83, 89, 0.12);
}

.about-card p {
  font-size: var(--fs-body);
  color: rgba(51, 51, 51, 0.85);
}

/* Insights */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}

.insights-card {
  background-color: var(--color-bg);
  border-radius: 16px;
  border: 1px solid rgba(224, 224, 224, 0.6);
  box-shadow: 0 10px 24px rgba(66, 83, 89, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.insights-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 32px rgba(66, 83, 89, 0.12);
}

/* Thumbnail image */
.insights-thumbnail {
  display: block;
  overflow: hidden;
  width: 100%;
}

.insights-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.insights-card:hover .insights-img {
  transform: scale(1.05);
}

/* Content padding (all except thumbnail) */
.insights-card > *:not(.insights-thumbnail) {
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.insights-card > time:first-of-type {
  padding-top: var(--space-md);
}

.insights-card > .insights-link {
  padding-bottom: var(--space-md);
  margin-top: auto;
}

.insights-card h3 {
  margin: var(--space-sm) 0;
}

.insights-card h3 a {
  color: var(--color-primary);
  text-decoration: none;
}

.insights-card h3 a:hover {
  color: var(--color-secondary);
}

.insights-card p {
  margin: 0 0 var(--space-sm) 0;
  color: var(--color-text);
  line-height: var(--lh-body);
}

.insights-meta {
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(66, 83, 89, 0.65);
}

.insights-link {
  font-weight: 600;
  color: var(--color-secondary);
  text-decoration: none;
}

.insights-link:hover {
  text-decoration: underline;
}

.archive-search {
  margin: var(--space-lg) 0 var(--space-xl) 0;
  display: flex;
  justify-content: center;
}

.archive-search .search-form {
  width: 100%;
  max-width: 600px;
}

/* Dedykowane style dla formularza w archiwum - używamy nowych klas */
.archive-search .search-form-field {
  background: white;
  border: 2px solid rgba(66, 83, 89, 0.2);
  border-radius: 12px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.archive-search .search-form-field:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(66, 83, 89, 0.1);
}

.archive-search .search-form-input {
  font-size: var(--fs-body);
}

/* Ukryj domyślne ikony Kadence w custom formularzu */
.archive-search .kadence-search-icon-wrap,
.search-results .kadence-search-icon-wrap {
  display: none;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}

.news-card {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md);
  background-color: var(--color-bg);
  border-radius: 16px;
  border: 1px solid rgba(224, 224, 224, 0.6);
  box-shadow: 0 10px 24px rgba(66, 83, 89, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 32px rgba(66, 83, 89, 0.12);
}

.news-thumb {
  flex: 0 0 96px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.news-meta {
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(66, 83, 89, 0.65);
}

.news-title {
  font-size: var(--fs-h5);
  margin: 0;
}

.news-title a {
  color: var(--color-primary);
  text-decoration: none;
}

.news-title a:hover,
.news-title a:focus {
  text-decoration: underline;
}

.news-excerpt {
  margin: 0;
  color: rgba(51, 51, 51, 0.85);
}

.news-link {
  margin-top: auto;
  font-weight: 600;
  color: var(--color-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0;
}

.news-link:hover,
.news-link:focus {
  text-decoration: underline;
}

.news-empty {
  text-align: center;
  color: rgba(51, 51, 51, 0.7);
}

.news-archive .section-header h1 {
  font-size: var(--fs-h2);
}

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

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .news-card {
    flex-direction: column;
  }

  .news-thumb {
    flex: none;
    width: 100%;
    height: 180px;
  }
}

.section-actions {
  margin-top: var(--space-lg);
  text-align: center;
}

.section-link {
  font-weight: 600;
  color: var(--color-secondary);
  text-decoration: underline;
}

/* Clients */
.clients-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.clients-item {
  padding: var(--space-md);
  background-color: var(--color-bg);
  border-radius: 12px;
  border: 1px solid rgba(224, 224, 224, 0.6);
  box-shadow: 0 8px 20px rgba(66, 83, 89, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clients-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 32px rgba(66, 83, 89, 0.12);
}

.clients-badge {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: var(--space-sm);
}

.clients-badge img {
  max-height: 64px;
  width: auto;
  display: block;
}

.clients-badge .icon {
  width: 64px;
}

.clients-item h3 {
  margin-bottom: var(--space-xs);
}

.clients-note {
  margin-top: var(--space-md);
  text-align: center;
  color: rgba(51, 51, 51, 0.8);
}

/* ==========================================
   GENERIC PAGES & UTILITY TEMPLATES
   ========================================== */

.generic-page .page-hero,
.search-results .page-hero,
.error-404 .error-hero {
  display: grid;
  gap: var(--space-lg);
  position: relative;
  background: var(--color-bg);
  border-radius: 32px;
  box-shadow: 0 18px 32px rgba(66, 83, 89, 0.08);
}

.wp-block-cover,
.wp-block-group.alignfull,
.wp-block-cover.alignfull {
  max-width: 100vw;
  width: 100%;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
}

.wp-block-cover img,
.wp-block-cover video {
  width: 100%;
  height: auto;
}

.page-hero-inner,
.error-hero-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  text-align: left;
}

.page-hero-title,
.error-hero-inner h1 {
  font-size: var(--fs-h1);
  color: var(--color-primary);
  margin: 0;
}

.page-hero-lead,
.error-lead {
  font-size: var(--fs-lead);
  color: rgba(66, 83, 89, 0.85);
  margin-bottom: var(--space-sm);
}

.page-hero-meta,
.error-lead {
  max-width: 640px;
}

.page-hero-meta,
.breadcrumbs {
  font-size: var(--fs-small);
  color: rgba(66, 83, 89, 0.7);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2xs);
}

.breadcrumbs-separator {
  color: rgba(66, 83, 89, 0.45);
}

.page-hero-media img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 18px 32px rgba(66, 83, 89, 0.18);
}

.generic-page .page-content {
  padding: var(--space-xl) var(--space-md) var(--space-xl) var(--space-md);
}

.generic-page .page-content .content-inner {
  max-width: 860px;
  margin: 0 auto;
}

.generic-page .page-content img {
  border-radius: 12px;
  max-width: 100%;
  height: auto;
}

.generic-page .page-links {
  margin-top: var(--space-lg);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(224, 224, 224, 0.7);
}

.search-results .search-hero-form,
.error-search {
  max-width: 640px;
}

.search-body {
  padding: 0 var(--space-md) var(--space-xl) var(--space-md);
}

.search-body .content-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.posts-grid--search {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.search-empty {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg);
  border-radius: 18px;
  background: var(--color-bg-alt);
  border: 1px solid rgba(224, 224, 224, 0.7);
  max-width: 640px;
}

.search-empty p {
  margin: 0;
  font-size: var(--fs-body);
}

.error-404 .error-actions,
.search-empty {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.error-search-intro {
  font-size: var(--fs-small);
  color: rgba(66, 83, 89, 0.7);
  margin-bottom: var(--space-2xs);
}

.error-links {
  padding: var(--space-lg) var(--space-md) var(--space-xl) var(--space-md);
  background: var(--color-bg);
}

.error-links .content-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.error-links h2 {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-sm);
}

.error-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.error-link-list a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: 0.75rem 1.5rem;
  background: rgba(83, 142, 166, 0.12);
  border-radius: 999px;
  font-weight: 600;
  color: var(--color-secondary);
  text-decoration: none;
}

.error-link-list a:hover,
.error-link-list a:focus {
  background: rgba(83, 142, 166, 0.24);
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.search-form-field {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  border-radius: 999px;
  border: 1px solid rgba(83, 142, 166, 0.25);
  background: rgba(83, 142, 166, 0.08);
  padding: 0.35rem 0.35rem 0.35rem 0.85rem;
}

.search-form-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: var(--fs-body);
  color: var(--color-primary);
  padding: 0.4rem 0;
}

.search-form-input:focus {
  outline: none;
}

.search-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  background: var(--color-secondary);
  color: var(--color-bg);
  border: none;
  border-radius: 999px;
  font-size: var(--fs-button);
  font-weight: 600;
  padding: 0.55rem 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.search-form-submit:hover,
.search-form-submit:focus-visible {
  background: var(--color-accent);
  transform: translateY(-1px);
}

.search-form-label {
  display: none;
}

@media (min-width: 1025px) {
  .page-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }

  .page-hero-media {
    display: block;
  }
}

@media (max-width: 1024px) {
  .page-hero-media {
    display: none;
  }

  .generic-page .page-content,
  .search-body {
    padding: var(--space-lg) var(--space-sm);
  }

  .error-links {
    padding: var(--space-lg) var(--space-sm) var(--space-xl) var(--space-sm);
  }
}

@media (max-width: 768px) {
  .page-hero-title,
  .error-hero-inner h1 {
    font-size: var(--fs-h2);
  }

  .page-hero-lead,
  .error-lead {
    font-size: var(--fs-body);
  }

  .error-link-list {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* CTA details */
.cta-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  align-items: center;
  text-align: center;
}

.cta-address p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.cta-email a {
  color: var(--color-bg);
  font-weight: 600;
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .insights-grid,
  .clients-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .about-grid {
    gap: var(--space-md);
  }

  .insights-grid,
  .clients-list {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .insights-card,
  .clients-item {
    padding: var(--space-sm);
  }
}

/* ============================================================================
   TEMPORAL VISUALIZATION SYSTEM (Chmura Trendów)
   ============================================================================ */

/* === COLOR VARIABLES === */
:root {
  /* Status colors */
  --trend-new: #66ADD9;        /* Bright cyan - nowość */
  --trend-rising: #2ECC71;     /* Green - awans */
  --trend-stable: #95A5A6;     /* Gray - stabilny */
  --trend-falling: #E74C3C;    /* Red - spadek */

  /* Chmura1 accent (muted teal) */
  --chmura1-primary: #538EA6;
  --chmura1-gradient: linear-gradient(135deg, #538EA6, #66ADD9);

  /* Chmura2 accent (will be defined separately) */
  --chmura2-primary: #2ECC71;
}

/* === STATUS INDICATOR BADGES === */
.trend-status {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.trend-status--new {
  background: var(--trend-new);
  color: white;
}

.trend-status--new::before {
  content: '↑ ';
  font-size: 1rem;
}

.trend-status--rising {
  background: var(--trend-rising);
  color: white;
}

.trend-status--rising::before {
  content: '↗ ';
  font-size: 1rem;
}

.trend-status--stable {
  background: var(--trend-stable);
  color: white;
}

.trend-status--stable::before {
  content: '→ ';
  font-size: 1rem;
}

.trend-status--falling {
  background: var(--trend-falling);
  color: white;
}

.trend-status--falling::before {
  content: '↘ ';
  font-size: 1rem;
}

/* === WORD CLOUD STATUS COLORING === */
.wordcloud-word {
  transition: opacity 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.wordcloud-word[data-status="new"] {
  color: var(--trend-new);
  opacity: 1;
}

.wordcloud-word[data-status="rising"] {
  color: var(--trend-rising);
  opacity: 1;
}

.wordcloud-word[data-status="stable"] {
  color: var(--trend-stable);
  opacity: 0.85;
}

.wordcloud-word[data-status="falling"] {
  color: var(--trend-falling);
  opacity: 0.75;
}

.wordcloud-word:hover {
  opacity: 1 !important;
  transform: scale(1.05);
}

/* === CHANGE INDICATOR === */
.trend-change {
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.25rem;
}

.trend-change--positive {
  color: var(--trend-rising);
}

.trend-change--negative {
  color: var(--trend-falling);
}

.trend-change--neutral {
  color: var(--trend-stable);
}

/* === TREND QUEUE (LIST) === */
.trend-queue {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.trend-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.trend-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateX(4px);
}

.trend-item .trend-status {
  flex-shrink: 0;
}

.trend-time {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

/* ============================================================================
   HOMEPAGE TRENDY SECTION
   ============================================================================ */

.trendy-section {
  padding: var(--section-padding-desktop);
  background: var(--color-surface);
}

.trendy-section .section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.trendy-source {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.trendy-source__label {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #475569;
}

/* === TOGGLE BUTTONS (Chmura1 ↔ Chmura2) === */
.trendy-toggle {
  display: inline-flex;
  gap: 0.5rem;
  justify-content: center;
  background: rgba(148, 163, 184, 0.2);
  padding: 0.35rem;
  border-radius: 999px;
}

.toggle-btn {
  padding: 0.6rem 1.35rem;
  border: none;
  background: transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #475569;
}

.toggle-btn:hover {
  color: var(--chmura1-primary);
}

.toggle-btn.active {
  background: var(--chmura1-primary);
  color: white;
}

.toggle-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.25);
}

/* === TRENDY PREVIEW (TOP 8 WORDS AS CARDS) === */
.trendy-preview {
  margin: 3rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-lg);
}

.trendy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: contents !important;
}

.trendy-list__item {
  min-height: 120px;
}

.trendy-list__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md);
  background-color: var(--color-bg);
  border-radius: 16px;
  border: 1px solid rgba(224, 224, 224, 0.6);
  box-shadow: 0 10px 24px rgba(66, 83, 89, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  justify-content: center;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.trendy-list__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 32px rgba(66, 83, 89, 0.12);
}

.trendy-list__card:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.trendy-list__item:last-child {
  border-bottom: none;
}

.trendy-list__rank {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trendy-list__text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.trendy-list__value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-accent);
}

.trendy-list__change {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.trendy-list__change--positive {
  color: #047857;
}

.trendy-list__change--negative {
  color: #c2410c;
}

.trendy-list__change--neutral {
  color: #475569;
}

.trendy-list__time {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(224, 224, 224, 0.4);
}

/* === TRENDY ROWS (Two separate sections: Search + News) === */
.trendy-row {
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.trendy-row:not(:last-of-type) {
  border-bottom: 1px solid rgba(224, 224, 224, 0.3);
}

.trendy-row-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  text-align: center;
}

.trendy-row-description {
  font-size: 0.9rem;
  color: #64748b;
  text-align: center;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.trendy-summary {
  margin: 3rem 0 2rem;
  width: 100%;
  padding: 2rem;
  font-size: 1.05rem;
  color: #1e293b;
  text-align: center;
  line-height: 1.8;
  background: rgba(102, 173, 217, 0.08);
  border-left: 4px solid var(--color-accent);
  border-radius: 8px;
}

.trendy-summary-top {
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1rem;
  display: block;
}

.trendy-summary-details {
  font-size: 0.95rem;
  color: #475569;
  margin-top: 1rem;
  line-height: 1.7;
}

.trendy-loading,
.trendy-error,
.trendy-empty {
  text-align: center;
  padding: 3rem;
  color: var(--color-text-secondary);
  font-size: 1.125rem;
}

/* === TRENDY CTA === */
.trendy-cta {
  margin-top: 2rem;
  text-align: center;
}

.trendy-cta .btn {
  font-size: 1.125rem;
  padding: 1rem 2rem;
}

/* ============================================================================
   RESPONSIVE (MOBILE)
   ============================================================================ */

@media (max-width: 1024px) {
  .trendy-section {
    padding: var(--section-padding-tablet);
  }

  .trendy-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trendy-summary {
    margin: 1.5rem 0;
  }
}

@media (max-width: 768px) {
  .trendy-section {
    padding: var(--section-padding-mobile);
  }

  .trendy-preview {
    grid-template-columns: 1fr;
  }

  .trendy-source {
    gap: 0.5rem;
  }

  .trendy-row {
    margin-bottom: 2rem;
    padding: 1.5rem 0;
  }

  .trendy-row-title {
    font-size: 1.25rem;
  }

  .trendy-row-description {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  .trendy-toggle {
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
  }

  .toggle-btn {
    width: 100%;
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
  }

  .trendy-summary {
    margin: 1.5rem 0;
    padding: 1.5rem;
  }

  .trendy-cta .btn {
    width: 100%;
    font-size: 1rem;
  }

  .trendy-list__item {
    padding: var(--space-sm);
  }

  .trendy-list__text {
    font-size: 1rem;
  }

  .trendy-list__value {
    font-size: 1.25rem;
  }
}

/* ============================================================================
   AKTUALNOSCI NEWS PAGE - 2025 DESIGN TRENDS
   ============================================================================ */

/* === COLOR PALETTE (minimal + 1 accent) === */
:root {
  --news-accent: #538EA6;          /* Primary accent color (muted teal) */
  --news-accent-light: #66ADD9;    /* Light accent for hover states */
  --news-bg-white: #FFFFFF;        /* Clean white background */
  --news-bg-offwhite: #F8F9FA;     /* Off-white for sections (easier on eyes) */
  --news-text-primary: #1b2529;    /* Dark text (high contrast) */
  --news-text-secondary: #475569;  /* Secondary text */
  --news-border: rgba(224, 224, 224, 0.6); /* Subtle borders */
}

/* === HERO SECTION (Featured Article) === */
.news-hero {
  position: relative;
  isolation: isolate;
  min-height: 600px;
  overflow: hidden;
  border-radius: 24px;
  margin-bottom: var(--space-xl);
  box-shadow: 0 18px 42px rgba(27, 37, 41, 0.12);
}

.news-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.news-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
}

.news-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(27, 37, 41, 0) 0%,
    rgba(27, 37, 41, 0.45) 40%,
    rgba(27, 37, 41, 0.85) 100%
  );
  z-index: 1;
}

.news-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 600px;
  padding: var(--space-xl) var(--space-lg);
  max-width: 960px;
}

.news-hero-category {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(83, 142, 166, 0.95);
  color: white;
  font-size: var(--fs-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 6px;
  margin-bottom: var(--space-sm);
  width: fit-content;
}

.news-hero-category-icon {
  width: 16px;
  height: 16px;
}

.news-hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem); /* Oversized typography (2025 trend) */
  line-height: 1.15;
  color: white;
  margin-bottom: var(--space-sm);
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.news-hero-excerpt {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-md);
  max-width: 640px;
}

.news-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.85rem;
  background: var(--news-accent);
  color: white;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.3s ease, transform 0.3s ease;
  width: fit-content;
}

.news-hero-cta:hover {
  background: var(--news-accent-light);
  transform: translateY(-2px);
}

/* === MASTHEAD CAROUSEL === */
.news-carousel {
  position: relative;
  margin-bottom: var(--space-xl);
  overflow: hidden;
}

.news-carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.news-carousel-title {
  font-size: var(--fs-h3);
  color: var(--news-text-primary);
  margin: 0;
}

.news-carousel-controls {
  display: flex;
  gap: var(--space-xs);
}

.news-carousel-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid var(--news-border);
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.news-carousel-arrow:hover {
  background: var(--news-accent);
  border-color: var(--news-accent);
  color: white;
  transform: scale(1.08);
}

.news-carousel-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.news-carousel-track {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  padding-bottom: var(--space-sm);
}

.news-carousel-track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.news-carousel-card {
  flex: 0 0 calc(33.333% - var(--space-lg)); /* 3 cards visible */
  min-width: 300px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(27, 37, 41, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.news-carousel-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(27, 37, 41, 0.16);
}

.news-carousel-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.news-carousel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-carousel-card:hover .news-carousel-image img {
  transform: scale(1.08);
}

.news-carousel-content {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex: 1;
}

.news-carousel-category {
  font-size: var(--fs-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--news-accent);
}

.news-carousel-card-title {
  font-size: var(--fs-h5);
  font-weight: 600;
  color: var(--news-text-primary);
  line-height: 1.4;
  margin: 0;
}

.news-carousel-excerpt {
  font-size: var(--fs-small);
  color: var(--news-text-secondary);
  line-height: 1.6;
  flex: 1;
}

.news-carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.news-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(83, 142, 166, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.news-carousel-dot.active {
  background: var(--news-accent);
  width: 28px;
  border-radius: 5px;
}

/* === CATEGORY TABS === */
.news-categories {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xs);
}

.news-categories::-webkit-scrollbar {
  display: none;
}

.news-category-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: white;
  border: 1px solid var(--news-border);
  border-radius: 999px;
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--news-text-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
  cursor: pointer;
}

.news-category-tab:hover,
.news-category-tab.active {
  background: var(--news-accent);
  border-color: var(--news-accent);
  color: white;
}

.news-category-icon {
  width: 18px;
  height: 18px;
}

/* === F-PATTERN ARTICLE GRID === */
.news-articles-grid {
  display: grid;
  grid-template-columns: 2fr 1fr; /* F-pattern: wide left, narrow right */
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.news-main-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.news-sidebar-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* === LARGE ARTICLE CARD (Main Column) === */
.news-article-large {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(27, 37, 41, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.news-article-large:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(27, 37, 41, 0.12);
}

.news-article-large-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.news-article-large-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.news-article-large-content {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  justify-content: center;
}

.news-article-large-title {
  font-size: clamp(1.6rem, 2vw, 2.2rem);
  font-weight: 700;
  color: var(--news-text-primary);
  line-height: 1.25;
  margin: 0;
}

.news-article-large-excerpt {
  font-size: 0.95rem;
  color: var(--news-text-secondary);
  line-height: 1.5;
}

/* === TOP STORY CAROUSEL === */
.top-story-section {
  margin-bottom: 3rem;
  position: relative;
}

.top-story-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.top-story-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.top-story-slide.active {
  display: grid;
  opacity: 1;
}

/* Carousel navigation dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--color-primary, #425359);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  padding: 0;
}

.carousel-dot:hover {
  background: var(--color-secondary, #538EA6);
  border-color: var(--color-secondary, #538EA6);
  transform: scale(1.1);
}

.carousel-dot.active {
  background: var(--color-primary, #425359);
}

.carousel-dot:focus {
  outline: 2px solid var(--color-accent, #66ADD9);
  outline-offset: 2px;
}

/* Ensure carousel slides use existing news-article-large styles */
.top-story-carousel.carousel-static .top-story-slide {
  display: grid;
  opacity: 1;
}

/* === SMALL ARTICLE CARD (Sidebar) === */
.news-article-small {
  display: flex;
  gap: var(--space-sm);
  background: white;
  border-radius: 12px;
  padding: var(--space-sm);
  box-shadow: 0 4px 12px rgba(27, 37, 41, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.news-article-small:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(27, 37, 41, 0.1);
}

.news-article-small-image {
  flex: 0 0 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
}

.news-article-small-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-article-small-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  flex: 1;
}

.news-article-small-title {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--news-text-primary);
  line-height: 1.4;
  margin: 0;
}

.news-article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-caption);
  color: var(--news-text-secondary);
}

.news-article-geo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: rgba(83, 142, 166, 0.1);
  border-radius: 4px;
  font-weight: 600;
}

.news-geo-icon {
  width: 14px;
  height: 14px;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .news-carousel-card {
    flex: 0 0 calc(50% - var(--space-lg)); /* 2 cards on tablet */
  }

  .news-articles-grid {
    grid-template-columns: 1fr;
  }

  .news-article-large {
    grid-template-columns: 1fr;
  }

  .news-article-large-image {
    height: 240px;
  }
}

@media (max-width: 768px) {
  .news-hero {
    min-height: 480px;
  }

  .news-hero-content {
    min-height: 480px;
    padding: var(--space-lg) var(--space-md);
  }

  .news-hero-title {
    font-size: var(--fs-h2);
  }

  .news-carousel-card {
    flex: 0 0 85%; /* 1 card on mobile, swipe-enabled */
  }

  .news-carousel-arrow {
    display: none; /* Hide arrows on mobile */
  }

  .news-article-large {
    grid-template-columns: 1fr;
  }

  .news-article-large-image {
    height: 200px;
  }

  .news-article-large-content {
    padding: var(--space-md);
  }

  .news-categories {
    gap: var(--space-xs);
  }

  .news-category-tab {
    font-size: var(--fs-caption);
    padding: 0.65rem 1rem;
  }
}

/* ============================================================================
   PAGE DISCLAIMERS
   ============================================================================ */

.page-disclaimer {
  margin: clamp(2rem, 5vw, 3.5rem) auto;
  padding: 0 1rem;
  max-width: min(960px, 94%);
}

.page-disclaimer .container {
  margin: 0 auto;
}

.page-disclaimer__inner {
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  background: #fff;
  padding: 1.75rem 2rem;
  box-shadow: 0 16px 45px -35px rgba(15, 23, 42, 0.6);
  font-size: 0.86rem;
  line-height: 1.6;
  color: #3f4a5a;
}

.page-disclaimer__inner p {
  margin-bottom: 0.8rem;
}

.page-disclaimer__inner p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .page-disclaimer__inner {
    padding: 1.35rem 1.4rem;
    font-size: 0.83rem;
  }
}

.page-disclaimer__inner a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.page-disclaimer--home .page-disclaimer__inner {
  background: rgba(248, 250, 252, 0.96);
}

/* RESPONSIVE LOGO HEIGHT - Mobile only (without !important to allow media query overrides) */
@media (max-width: 1023px) {
  .header-logo img,
  .site-header .header-logo img {
    height: 70px !important;
    width: auto !important;
  }
}

/* Desktop: Logo ALWAYS 96px from 1024px onwards - covers all desktop sizes including ultrawide */
@media (min-width: 1024px) {
  .header-logo img,
  .site-header .header-logo img,
  header .header-logo img,
  .site-header header .header-logo img {
    height: 96px !important;
    min-height: 96px !important;
  }
}

/* ============================================================================
   CAROUSEL SYSTEM (Aktualności News Archive)
   ============================================================================ */

/* Carousel Container */
[data-carousel] {
  position: relative;
  overflow: hidden;
  padding: 0;
  margin: 0 auto;
}

/* Carousel Track (slides container) */
[data-carousel-track] {
  display: flex;
  gap: var(--space-lg);
  transition: transform 0.3s ease-out;
  will-change: transform;
}

/* Individual Slide */
[data-carousel-slide] {
  flex: 0 0 auto;
  width: calc((100% - (var(--space-lg) * 4)) / 5); /* 5 slides on desktop */
  scroll-snap-align: start;
}

/* Card Styling */
.carousel-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-bg);
  border-radius: 16px;
  border: 1px solid rgba(224, 224, 224, 0.6);
  box-shadow: 0 10px 24px rgba(66, 83, 89, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 32px rgba(66, 83, 89, 0.12);
}

.carousel-card:focus-within {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Card Image */
.carousel-card__image {
  position: relative;
  width: 100%;
  padding-top: 60%; /* 5:3 aspect ratio */
  overflow: hidden;
  background: var(--color-bg-alt);
}

.carousel-card__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.carousel-card:hover .carousel-card__image img {
  transform: scale(1.05);
}

/* Lazy loading placeholder */
.carousel-card__image img[data-src] {
  opacity: 0;
}

.carousel-card__image img:not([data-src]) {
  opacity: 1;
}

/* Card Body */
.carousel-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md);
  flex-grow: 1;
}

/* Card Meta */
.carousel-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-small);
  color: rgba(66, 83, 89, 0.7);
}

.carousel-card__date {
  font-weight: 500;
}

.carousel-card__category {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  background: rgba(83, 142, 166, 0.12);
  color: var(--color-secondary);
  border-radius: 999px;
  font-size: var(--fs-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Card Title */
.carousel-card__title {
  font-size: var(--fs-h5);
  line-height: var(--lh-heading);
  margin: 0;
  font-weight: 700;
  color: var(--color-primary);
}

.carousel-card__title a {
  color: inherit;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-card__title a:hover,
.carousel-card__title a:focus {
  color: var(--color-secondary);
  text-decoration: underline;
}

/* Card Excerpt */
.carousel-card__excerpt {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: rgba(51, 51, 51, 0.85);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Link */
.carousel-card__link {
  margin-top: auto;
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--color-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.carousel-card__link:hover,
.carousel-card__link:focus {
  color: var(--color-accent);
  text-decoration: underline;
}

.carousel-card__link::after {
  content: '→';
  font-size: 1.2em;
  transition: transform 0.3s ease;
}

.carousel-card__link:hover::after {
  transform: translateX(4px);
}

/* Carousel Controls Container */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

/* Navigation Buttons */
.carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--color-secondary);
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0;
}

.carousel-btn:hover:not(:disabled) {
  background: var(--color-secondary);
  color: var(--color-bg);
  transform: scale(1.1);
}

.carousel-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: rgba(83, 142, 166, 0.3);
}

.carousel-btn--prev::before {
  content: '←';
}

.carousel-btn--next::before {
  content: '→';
}

/* Dots Navigation */
.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--color-secondary);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot:hover {
  background: rgba(83, 142, 166, 0.5);
  transform: scale(1.2);
}

.carousel-dot:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.carousel-dot.is-active {
  background: var(--color-secondary);
  transform: scale(1.3);
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================================================
   RESPONSIVE BREAKPOINTS
   ============================================================================ */

/* Tablet: 3 slides per view */
@media (min-width: 768px) and (max-width: 1023px) {
  [data-carousel-track] {
    gap: var(--space-md);
  }

  [data-carousel-slide] {
    width: calc((100% - (var(--space-md) * 2)) / 3);
  }

  .carousel-card__body {
    padding: var(--space-sm);
  }

  .carousel-card__title {
    font-size: var(--fs-h6);
  }

  .carousel-card__excerpt {
    font-size: var(--fs-small);
  }
}

/* Mobile: 1 slide per view (full-width swipe) */
@media (max-width: 767px) {
  [data-carousel-track] {
    gap: var(--space-sm);
  }

  [data-carousel-slide] {
    width: 100%;
  }

  .carousel-card {
    margin: 0 var(--space-sm);
  }

  .carousel-card__body {
    padding: var(--space-sm);
  }

  .carousel-card__title {
    font-size: var(--fs-h6);
    -webkit-line-clamp: 2;
  }

  .carousel-card__excerpt {
    font-size: var(--fs-small);
    -webkit-line-clamp: 3;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .carousel-controls {
    gap: var(--space-sm);
    margin-top: var(--space-md);
  }
}

/* ============================================================================
   MICROINTERACTIONS & ANIMATIONS
   ============================================================================ */

/* Smooth scroll for carousel track */
[data-carousel-track] {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Focus visible states */
@supports selector(:focus-visible) {
  .carousel-btn:focus {
    outline: none;
  }

  .carousel-dot:focus {
    outline: none;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  [data-carousel-track] {
    transition: none;
    scroll-behavior: auto;
  }

  .carousel-card,
  .carousel-card__image img,
  .carousel-btn,
  .carousel-dot {
    transition: none;
  }
}

/* High contrast mode adjustments */
@media (prefers-contrast: high) {
  .carousel-card {
    border: 2px solid currentColor;
  }

  .carousel-btn {
    border-width: 3px;
  }

  .carousel-dot {
    border-width: 3px;
  }
}

/* Print styles - show all cards */
@media print {
  [data-carousel-track] {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    transform: none !important;
  }

  [data-carousel-slide] {
    width: 100% !important;
    page-break-inside: avoid;
  }

  .carousel-controls {
    display: none;
  }

  .carousel-card:hover {
    transform: none;
    box-shadow: 0 10px 24px rgba(66, 83, 89, 0.08);
  }
}

/* ============================================================================
   AKTUALNOŚCI ARCHIVE PAGE – CATEGORY ROWS
   ========================================================================= */

.aktualnosci-archive {
  padding: 2.5rem 0 3rem;
  background: #f9fafb;
}

.aktualnosci-archive .container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1rem;
}

.aktualnosci-header {
  text-align: center;
  margin-bottom: 1.8rem;
}

.aktualnosci-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary, #2563eb);
  margin-bottom: 0.35rem;
}

.page-title {
  font-size: clamp(2.5rem, 3vw, 3rem);
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.75rem;
}

.aktualnosci-title {
  font-size: clamp(2.6rem, 3.4vw, 3.25rem);
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 1rem;
}

.aktualnosci-subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #475569;
  margin: 0 auto 1rem;
  max-width: 780px;
}

.aktualnosci-lede {
  max-width: 760px;
  margin: 0 auto 0.5rem;
  font-size: 1.125rem;
  color: #475569;
  line-height: 1.6;
}

.aktualnosci-lede-secondary {
  font-size: 0.9rem;
  color: #64748b;
}

.category-carousel {
  margin-bottom: 2rem;
  padding: 1.75rem 1.25rem 1.25rem;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 18px rgba(15, 23, 42, 0.08);
}

.category-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.category-title {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 600;
  margin: 0;
  color: #1f2933;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-subtitle {
  font-size: 0.9rem;
  color: #94a3b8;
  margin: 0;
}

.category-icon {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.5rem;
  vertical-align: middle;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.category-updated {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-secondary, #2a9d8f);
  background: rgba(42, 157, 143, 0.1);
  padding: 0.25rem 0.625rem;
  border-radius: 20px;
  white-space: nowrap;
}

.category-updated svg {
  opacity: 0.8;
}

@media (max-width: 640px) {
  .category-updated {
    display: none;
  }
}

.carousel-row {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar but keep functionality */
.carousel-row::-webkit-scrollbar {
  height: 6px;
}

.carousel-row::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.carousel-row::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.carousel-row::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Card sizing for horizontal scroll - 3 visible cards */
.carousel-row .aktu-card {
  flex: 0 0 calc((100% - 3rem) / 3);
  min-width: calc((100% - 3rem) / 3);
  scroll-snap-align: start;
}

@media (max-width: 1024px) {
  .carousel-row .aktu-card {
    flex: 0 0 calc((100% - 1.25rem) / 2);
    min-width: calc((100% - 1.25rem) / 2);
  }
}

@media (max-width: 640px) {
  .carousel-row .aktu-card {
    flex: 0 0 85%;
    min-width: 85%;
  }
}

.aktu-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.07);
  scroll-snap-align: start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.aktu-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.12);
}

.aktu-card__media img,
.aktu-thumb--placeholder {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.aktu-thumb--placeholder {
  background: #e2e8f0;
}

.aktu-card__content {
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.aktu-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #64748b;
}

/* Source link styling - smaller, more subtle */
.aktu-meta a {
  font-size: 12px;
  color: #666;
  font-weight: normal;
  text-decoration: none;
}

.aktu-meta a:hover {
  text-decoration: underline;
}

.geo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.6rem 0.15rem 0.4rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0f172a;
}

.geo-badge img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.geo-badge__label {
  line-height: 1;
}

.category-chip {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-weight: 500;
}

.aktu-card__title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.aktu-card__title a {
  color: #0f172a;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.aktu-card__title a:hover {
  color: var(--color-primary, #2563eb);
}

.aktu-card__excerpt {
  margin: 0;
  color: #475569;
  font-size: 0.85rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-hero-card {
  margin-bottom: 1.5rem;
}

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

  .news-article-large-image {
    height: 240px;
  }
}

.rss-top-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.rss-top-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rss-top-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  color: #0f172a;
}

.rss-top-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #6b7280;
}

.aktualnosci-category-block {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-top: none;
}

.aktualnosci-category-block:first-of-type {
  border-top: none;
}

.aktu-empty--compact {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0.5rem 0 0;
}

.category-rss-grid {
  margin-top: 1.5rem !important;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem !important;
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  border-left: none !important;
  border-right: none !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Strengthen blue line removal with parent selector */
.carousel-row + .category-rss-grid,
.aktu-empty + .category-rss-grid,
section.aktualnosci-category-block .category-rss-grid {
  border-top: none !important;
  margin-top: 1.5rem !important;
  padding-top: 0 !important;
}

.rss-news-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.9rem;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.07);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rss-news-card h4 {
  margin: 0;
  font-size: 0.95rem;
  color: #0f172a;
  line-height: 1.4;
}

.rss-news-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #6b7280;
}

.rss-news-card-meta span:first-child {
  font-size: 0.75rem !important;
  font-weight: 500;
}

.rss-news-card-meta span,
.rss-news-card-meta time {
  color: inherit;
}

.articles-pagination {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.pagination-heading {
  margin: 0 0 0.25rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2933;
}

.pagination-info {
  margin: 0 0 1rem;
  color: #64748b;
  font-size: 0.92rem;
}

.articles-pagination ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.articles-pagination li {
  display: inline-block;
}

.articles-pagination a,
.articles-pagination span.page-numbers.current {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  text-decoration: none;
  color: #1f2933;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.articles-pagination a:hover {
  background-color: #f3f4f6;
  border-color: #111827;
}

.articles-pagination span.page-numbers.current {
  background-color: #111827;
  color: #fff;
  border-color: #111827;
  font-weight: 600;
}

/* ==========================================
   "O TYM MÓWI ŚWIAT" - GEOGRAPHICAL NEWS
   ========================================== */

.geo-news-section {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 2px solid #e5e7eb;
}

.geo-news-section .section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.geo-news-section .section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary, #1a1a1a);
  margin: 0 0 0.5rem 0;
}

.geo-news-section .section-header p {
  font-size: 1.125rem;
  color: #64748b;
  margin: 0;
}

.geo-region {
  margin-bottom: 3rem;
}

.geo-region:last-child {
  margin-bottom: 0;
}

.geo-region-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.geo-region-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary, #1a1a1a);
  margin: 0;
}

.geo-icon {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

@media (max-width: 768px) {
  .geo-news-section .section-header h2 {
    font-size: 1.5rem;
  }

  .geo-region-header h3 {
    font-size: 1.25rem;
  }

  .geo-icon {
    width: 1.5rem;
    height: 1.5rem;
  }
}

.entry-content h1,
.single-post .entry-content h1,
article.post .entry-content h1:not(.entry-title) {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  color: #1a1a1a;
  line-height: 1.5;
}

.entry-content h2,
.single-post .entry-content h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #1f2933;
  line-height: 1.5;
}

.entry-title {
  font-size: clamp(2.2rem, 2.8vw, 2.6rem) !important;
  font-weight: 700;
}

@media (max-width: 768px) {
  .aktualnosci-archive {
    padding: 2.2rem 0;
  }

  .category-carousel {
    padding: 1.25rem 1rem;
    margin-bottom: 1.5rem;
  }

  .carousel-row {
    gap: 0.75rem;
  }

  .aktu-card {
    min-width: 210px;
  }

  .rss-top-grid,
  .category-rss-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   TrustedOne LABS Section
   ============================================= */
.labs-section {
  background-color: var(--color-bg);
}

.labs-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.labs-card {
  padding: var(--space-md);
  background-color: var(--color-bg);
  border-radius: 16px;
  border: 1px solid rgba(224, 224, 224, 0.6);
  box-shadow: 0 10px 24px rgba(66, 83, 89, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.labs-card:hover,
.labs-card:focus {
  transform: translateY(-6px);
  box-shadow: 0 18px 32px rgba(66, 83, 89, 0.12);
  border-color: var(--color-secondary);
  text-decoration: none;
}

.labs-card .icon {
  margin-bottom: var(--space-xs);
}

.labs-card .icon img {
  width: 96px;
  height: auto;
  transition: transform 0.3s ease;
}

.labs-card:hover .icon img {
  transform: scale(1.08);
}

.labs-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0;
  line-height: 1.4;
  hyphens: none;
  overflow-wrap: normal;
}

/* Responsive: tablet */
@media (max-width: 1024px) {
  .labs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Responsive: mobile */
@media (max-width: 640px) {
  .labs-grid {
    grid-template-columns: 1fr;
  }

  .labs-card .icon img {
    width: 72px;
  }

  .labs-card h3 {
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   NEWS PORTAL HEADER
   Two-tier navigation for /aktualnosci/ and /en/news/
   ========================================================================== */

/* TOP BAR */
.news-topbar {
  background: var(--color-primary, #1a2530);
  color: #fff;
  font-size: 0.8125rem;
  line-height: 1;
}

.news-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
}

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

.news-topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-topbar-link:hover {
  color: #fff;
}

.news-topbar-icon {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

/* Language switcher in top bar */
.news-topbar-lang {
  position: relative;
}

.news-topbar-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  padding: 0.375rem 0.75rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.news-topbar-lang-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.8);
}

.news-topbar-lang-icon {
  font-size: 0.75rem;
  opacity: 0.9;
}

.news-topbar-lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.25rem;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  list-style: none;
  padding: 0.25rem 0;
  min-width: 120px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.news-topbar-lang[data-language].is-open .news-topbar-lang-menu,
.news-topbar-lang-toggle[aria-expanded="true"] + .news-topbar-lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.news-topbar-lang-item a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--color-primary, #1a2530);
  text-decoration: none;
  font-size: 0.8125rem;
}

.news-topbar-lang-item a:hover {
  background: #f5f5f5;
}

.news-topbar-lang-item.is-active a {
  font-weight: 600;
  color: var(--color-secondary, #2a9d8f);
}

/* DATE/TIME BAR */
.news-datetime-bar {
  background: linear-gradient(180deg, #1a2530 0%, #243040 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.news-datetime-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.375rem 1rem;
}

.news-datetime-icon {
  opacity: 0.7;
  color: #fff;
}

.news-datetime {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.02em;
}

.news-datetime-separator {
  margin: 0 0.375rem;
  color: rgba(255, 255, 255, 0.5);
}

.news-datetime-holiday {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.news-datetime-holiday-label {
  color: #ffd700;
  font-weight: 600;
}

.news-datetime-holiday-name {
  color: rgba(255, 255, 255, 0.9);
}

.news-datetime-your-day {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

/* Mobile optimization for datetime bar */
@media (max-width: 768px) {
  .news-datetime-inner {
    padding: 0.5rem 0.75rem;
    gap: 0.375rem;
    flex-wrap: wrap;
  }

  .news-datetime-holiday {
    flex-basis: 100%;
    justify-content: center;
  }
}

/* SEARCH OVERLAY */
.news-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.news-search-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.news-search-overlay-inner {
  width: 100%;
  max-width: 640px;
  padding: 0 1.5rem;
  transform: translateY(-20px);
  transition: transform 0.25s ease;
}

.news-search-overlay.is-open .news-search-overlay-inner {
  transform: translateY(0);
}

.news-search-form {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.news-search-input {
  flex: 1;
  border: none;
  padding: 1rem 1.25rem;
  font-size: 1.125rem;
  background: transparent;
  outline: none;
}

.news-search-input::placeholder {
  color: #999;
}

.news-search-submit {
  padding: 1rem;
  background: var(--color-secondary, #2a9d8f);
  border: none;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.news-search-submit:hover {
  background: var(--color-primary, #1a2530);
}

.news-search-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.news-search-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.news-search-hint {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

/* MAIN HEADER */
.news-header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 100;
}

.news-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  gap: 1.5rem;
}

.news-header-brand {
  flex-shrink: 0;
}

.news-header-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
}

.news-header-logo img {
  height: 48px;
  width: auto;
}

.news-header-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-primary, #1a2530);
  letter-spacing: -0.02em;
}

.news-header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.news-header-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-header-menu > li > a,
.news-header-more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text, #333);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}

.news-header-menu > li > a:hover,
.news-header-more-toggle:hover {
  background: #f5f5f5;
  color: var(--color-primary, #1a2530);
}

.news-header-more-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
}

/* World dropdown icon */
.news-header-world-icon {
  width: 16px;
  height: 16px;
  margin-right: 0.25rem;
  opacity: 0.7;
  vertical-align: -2px;
}

.news-header-world .news-header-more-toggle {
  color: var(--color-secondary, #2a9d8f);
  font-weight: 600;
}

.news-header-world .news-header-more-toggle:hover {
  background: rgba(42, 157, 143, 0.08);
}

/* Dropdown in main nav */
.news-header-more {
  position: relative;
}

.news-header-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  margin-top: 0.5rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  list-style: none;
  padding: 0.5rem 0;
  min-width: 160px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.news-header-more[data-dropdown].is-open .news-header-dropdown,
.news-header-more-toggle[aria-expanded="true"] + .news-header-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.news-header-dropdown li a {
  display: block;
  padding: 0.625rem 1.25rem;
  color: var(--color-text, #333);
  text-decoration: none;
  font-size: 0.875rem;
}

.news-header-dropdown li a:hover {
  background: #f5f5f5;
  color: var(--color-primary, #1a2530);
}

/* Actions (search) */
.news-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.news-header-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--color-text, #333);
  transition: background 0.2s ease;
}

.news-header-search:hover {
  background: #f5f5f5;
}

/* Mobile toggle */
.news-header-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--color-text, #333);
}

.news-header-toggle-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 24px;
  height: 24px;
}

.news-header-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.news-header-toggle-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Mobile panel */
.news-mobile-panel {
  display: none;
  background: #fff;
  border-top: 1px solid #e5e5e5;
  padding: 1rem 1.5rem 1.5rem;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.news-mobile-panel[aria-hidden="false"] {
  display: block;
}

.news-mobile-section {
  margin-bottom: 1.5rem;
}

.news-mobile-section:last-child {
  margin-bottom: 0;
}

.news-mobile-section-title {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  margin-bottom: 0.75rem;
}

.news-mobile-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.news-mobile-menu li a {
  display: inline-block;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text, #333);
  text-decoration: none;
  background: #f5f5f5;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.news-mobile-menu li a:hover {
  background: #e5e5e5;
}

.news-mobile-menu li.is-active a {
  background: var(--color-primary, #1a2530);
  color: #fff;
}

/* Body offset for sticky header */
body.news-portal {
  padding-top: 0;
}

body.news-portal .site-main {
  margin-top: 0;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .news-header-nav {
    display: none;
  }

  .news-header-toggle {
    display: flex;
  }

  .news-header-actions {
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .news-topbar-inner {
    padding: 0.375rem 1rem;
  }

  .news-topbar-nav {
    gap: 1rem;
  }

  .news-topbar-link span:not(.news-topbar-icon) {
    display: none;
  }

  .news-header-inner {
    padding: 0.625rem 1rem;
  }

  .news-header-logo img {
    height: 36px;
  }

  .news-header-title {
    font-size: 1.125rem;
  }
}

/* ==========================================================================
   SINGLE POST TEMPLATE
   ========================================================================== */

.single-post-main {
  background: #f8f9fa;
  min-height: 100vh;
}

.single-post-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Breadcrumb */
.single-post-breadcrumb {
  padding: 1rem 0;
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.single-post-breadcrumb-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.breadcrumb-back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--color-primary, #1a2530);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.breadcrumb-back:hover {
  color: var(--color-secondary, #2a9d8f);
}

.breadcrumb-separator {
  color: #ccc;
}

.breadcrumb-category {
  color: var(--color-secondary, #2a9d8f);
  text-decoration: none;
}

.breadcrumb-category:hover {
  text-decoration: underline;
}

/* Header */
.single-post-header {
  padding: 2rem 0;
  background: #fff;
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.single-post-header-inner {
  max-width: 800px;
  margin: 0 auto;
}

.single-post-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--color-secondary, #2a9d8f);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 3px;
  margin-bottom: 1rem;
}

.single-post-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary, #1a2530);
  margin: 0 0 1rem;
}

.single-post-excerpt {
  font-size: 1.25rem;
  color: #555;
  line-height: 1.5;
  margin: 0 0 1.5rem;
}

.single-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: #666;
}

.single-post-date {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.single-post-date svg {
  opacity: 0.6;
}

.single-post-updated {
  color: var(--color-secondary, #2a9d8f);
}

/* Thumbnail */
.single-post-thumbnail {
  margin: 0 -1rem 2rem;
}

.single-post-image {
  width: 100%;
  height: auto;
  display: block;
}

.single-post-thumbnail-caption {
  max-width: 800px;
  margin: 0.5rem auto 0;
  padding: 0 1rem;
  font-size: 0.8125rem;
  color: #666;
  font-style: italic;
}

/* Content */
.single-post-content {
  background: #fff;
  padding: 2rem;
  margin: 0 -1rem;
  border-radius: 0;
}

.single-post-content p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #333;
  margin-bottom: 1.5rem;
}

.single-post-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary, #1a2530);
  margin: 2rem 0 1rem;
}

.single-post-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary, #1a2530);
  margin: 1.5rem 0 0.75rem;
}

.single-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.single-post-content blockquote {
  border-left: 4px solid var(--color-secondary, #2a9d8f);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #555;
}

.single-post-content ul,
.single-post-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.single-post-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Footer / Tags */
.single-post-footer {
  background: #fff;
  padding: 1.5rem 2rem;
  margin: 0 -1rem;
  border-top: 1px solid #e5e5e5;
}

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

.single-post-tag {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: #f0f0f0;
  color: #555;
  font-size: 0.8125rem;
  text-decoration: none;
  border-radius: 20px;
  transition: background 0.2s ease, color 0.2s ease;
}

.single-post-tag:hover {
  background: var(--color-secondary, #2a9d8f);
  color: #fff;
}

/* Share */
.single-post-share {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  padding: 1.5rem 2rem;
  margin: 0 -1rem;
  border-top: 1px solid #e5e5e5;
}

.single-post-share-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #333;
}

.single-post-share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #f0f0f0;
  color: #555;
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
}

.single-post-share-link:hover {
  background: var(--color-primary, #1a2530);
  color: #fff;
}

/* Related Posts */
.single-post-related {
  padding: 3rem 0;
}

.single-post-related-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.single-post-related-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary, #1a2530);
  margin: 0 0 1.5rem;
}

.single-post-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.related-post-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.related-post-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.related-post-thumbnail {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.related-post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-post-card:hover .related-post-image {
  transform: scale(1.05);
}

.related-post-content {
  padding: 1rem;
}

.related-post-title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.5rem;
}

.related-post-title a {
  color: var(--color-primary, #1a2530);
  text-decoration: none;
}

.related-post-title a:hover {
  color: var(--color-secondary, #2a9d8f);
}

.related-post-date {
  font-size: 0.75rem;
  color: #888;
}

/* NEWS FOOTER */
.news-footer {
  background: var(--color-primary, #1a2530);
  color: #fff;
  padding: 2.5rem 0;
}

.news-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.news-footer-brand {
  flex-shrink: 0;
}

.news-footer-logo img {
  height: 40px;
  width: auto;
  opacity: 0.9;
}

.news-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.news-footer-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.news-footer-nav a:hover {
  color: #fff;
}

.news-footer-copy {
  text-align: right;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.news-footer-copy p {
  margin: 0;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .single-post-title {
    font-size: 1.75rem;
  }

  .single-post-excerpt {
    font-size: 1.0625rem;
  }

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

  .single-post-content p {
    font-size: 1rem;
  }

  .single-post-related-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .related-post-card {
    display: flex;
  }

  .related-post-thumbnail {
    width: 120px;
    flex-shrink: 0;
    aspect-ratio: 1;
  }

  .related-post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .news-footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .news-footer-copy {
    text-align: center;
  }
}
