/**
Theme Name: CleverBind
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cleverbind
Template: astra
*/




/* =========================================
   Baza wiedzy CleverBind - home.php
========================================= */

:root {
  --bg-color: #ffffff;
  --text-main: #1b1f35;
  --text-soft: #4a5568;
  --text-muted: #718096;
  --accent-color: #f8ab0f;
  --grad-start: #1f3b71;
  --grad-end: #1b1f35;
  --gray-light: #f8f9fa;
  --gray-border: #e2e8f0;
  --shadow-soft: 0 8px 30px rgba(27, 31, 53, 0.05);
  --container: 1160px;
  --radius: 20px;
  --section-space: 110px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  background: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Animated Background Spheres */
.bg-spheres {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
}
.sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  animation: floatSphere 20s ease-in-out infinite alternate;
}
.sphere-1 {
  width: 600px;
  height: 600px;
  background: var(--accent-color);
  top: -100px;
  left: -100px;
}
.sphere-2 {
  width: 500px;
  height: 500px;
  background: var(--grad-start);
  bottom: -100px;
  right: -100px;
  animation-delay: -5s;
}
.sphere-3 {
  width: 400px;
  height: 400px;
  background: var(--accent-color);
  top: 40%;
  left: 60%;
  animation-delay: -10s;
  opacity: 0.2;
}
@keyframes floatSphere {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(100px, 50px) scale(1.1);
  }
}

/* Animated Background Dots */
.bg-dots {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  background-image: radial-gradient(var(--gray-border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
  animation: moveDots 60s linear infinite;
}

@keyframes moveDots {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 400px 400px;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

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

.section-subtitle {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-color);
}

.section-title {
  max-width: 860px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1px;
}

.section-text {
  margin-top: 20px;
  max-width: 760px;
  font-size: 18px;
  color: var(--text-soft);
}

.text-gradient {
  background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-color);
  color: #fff;
  border: none;
  box-shadow: 0 8px 22px rgba(248, 171, 15, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(248, 171, 15, 0.34);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--gray-border);
}

.btn-secondary:hover {
  border-color: #cfd8e3;
  background: #fafbfc;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-border);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  transition: color 0.25s ease;
}

.nav a:hover {
  color: var(--accent-color);
}

.nav .nav-cta {
  margin-left: 8px;
}

.header-mobile-cta {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  padding: 160px 0 120px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -140px;
  width: 520px;
  height: 520px;
  background: radial-gradient(
    circle,
    rgba(248, 171, 15, 0.06) 0%,
    rgba(255, 255, 255, 0) 72%
  );
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  left: -180px;
  bottom: -180px;
  width: 520px;
  height: 520px;
  background: radial-gradient(
    circle,
    rgba(31, 59, 113, 0.04) 0%,
    rgba(255, 255, 255, 0) 72%
  );
  z-index: -1;
}

.hero-content {
  max-width: 860px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.6px;
}

.hero p {
  max-width: 700px;
  margin-top: 28px;
  font-size: 21px;
  line-height: 1.75;
  color: var(--text-soft);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 38px;
}

/* Simple proof */
.proof {
  padding: 40px 0;
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
  background: #ffffff; /* Changed to white */
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.proof-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.5;
}

.proof-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(248, 171, 15, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
}

/* Services -> Mindmap */
.services {
  background: transparent;
  position: relative;
}

.mindmap-container {
  position: relative;
  width: 100%;
  height: 600px;
  margin-top: 64px;
  z-index: 2;
}

#mindmap-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.mindmap-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.node {
  position: absolute;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 14px 24px;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--gray-border);
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  cursor: default;
  white-space: nowrap;
}

.node:hover {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: var(--accent-color);
  z-index: 20;
}

.center-node {
  top: 50%;
  left: 50%;
  background: var(--accent-color);
  color: #fff;
  font-size: 20px;
  padding: 24px 40px;
  border-radius: 40px;
  border: none;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(248, 171, 15, 0.3);
}

.center-node:hover {
  border-color: transparent;
}

.node-1 {
  top: 15%;
  left: 50%;
}
.node-2 {
  top: 30%;
  left: 80%;
}
.node-3 {
  top: 65%;
  left: 85%;
}
.node-4 {
  top: 85%;
  left: 65%;
}
.node-5 {
  top: 85%;
  left: 35%;
}
.node-6 {
  top: 65%;
  left: 15%;
}
.node-7 {
  top: 30%;
  left: 20%;
}

.mindmap-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.mindmap-lines line {
  stroke: var(--gray-border);
  stroke-width: 2;
  stroke-dasharray: 6 6;
}

/* Process Timeline */
.process {
  background: var(--gray-light);
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
  padding: 100px 0;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 64px auto 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 2px;
  background: var(--gray-border);
}

.timeline-item {
  position: relative;
  padding-left: 72px;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--accent-color);
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(248, 171, 15, 0.2);
  z-index: 1;
}

.timeline-content {
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--gray-border);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.timeline-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.timeline-content p {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.7;
}

@media (min-width: 769px) {
  .timeline {
    display: flex;
    justify-content: space-between;
    max-width: 100%;
    gap: 24px;
    margin-top: 80px;
  }
  .timeline::before {
    top: 24px;
    left: 5%;
    right: auto;
    bottom: auto;
    width: 90%;
    height: 2px;
  }
  .timeline-item {
    flex: 1;
    padding-left: 0;
    padding-top: 72px;
    margin-bottom: 0;
    text-align: center;
  }
  .timeline-marker {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Why */
.why-grid {
  margin-top: 64px;
}

.why-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.why-list-item {
  padding: 32px;
  border: 1px solid var(--gray-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.why-list-item h4 {
  font-size: 19px;
  font-weight: 700;
}

.why-list-item p {
  margin-top: 10px;
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1.75;
}

/* Testimonials */
.testimonials {
  background: var(--gray-light);
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
}

.shortcode-placeholder {
  background: #fff;
  border: 2px dashed var(--gray-border);
  border-radius: 16px;
  padding: 60px 20px;
  text-align: center;
  margin: 40px 0;
  color: var(--text-muted);
  font-family: monospace;
}

.testimonials-action {
  text-align: center;
  margin-top: 40px;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--accent-color), #f69204);
  padding: 100px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at top right,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 60%
  );
}

.cta-box {
  position: relative;
  z-index: 1;
}

.cta-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.cta-copy h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1px;
  color: #fff;
}

.cta-copy p {
  margin-top: 20px;
  max-width: 760px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
}

.cta-section .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.1);
  padding: 6px 12px;
  border-radius: 6px;
}

.cta-section .btn-primary {
  background: #fff;
  color: var(--accent-color);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.cta-section .btn-primary:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.cta-section .btn-secondary {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.cta-section .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* Footer */
.footer {
  padding: 48px 0;
  background: #fff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-copy {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links a {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: var(--text-main);
}

/* Mobile sticky CTA */
.mobile-sticky-cta {
  display: none;
}

/* Fade in */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
  will-change: opacity, transform;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .why-list,
  .cta-layout {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  :root {
    --section-space: 78px;
  }

  .container {
    width: min(var(--container), calc(100% - 32px));
  }

  .header-inner {
    min-height: 70px;
  }

  .nav {
    display: none;
  }

  .header-mobile-cta {
    display: inline-flex;
  }

  .hero {
    padding: 84px 0 64px;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero h1 {
    letter-spacing: -1px;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
    font-size: 18px;
  }

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

  .hero-actions .btn,
  .header-mobile-cta,
  .cta-actions .btn {
    width: 100%;
  }

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

  .mindmap-container {
    height: auto;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .mindmap-lines {
    display: none;
  }
  #mindmap-canvas {
    display: none;
  }
  .mindmap-content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }
  .node {
    position: relative;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100%;
    white-space: normal;
  }
  .node:hover {
    transform: translateY(-2px) !important;
  }
  .center-node {
    order: -1;
    margin-bottom: 16px;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-marker {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .timeline-item {
    padding-left: 60px;
  }

  .section-subtitle,
  .section-title,
  .section-text,
  .cta-copy h2,
  .cta-copy p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .why-list-item,
  .cta-box {
    text-align: left;
  }

  .why-main h3 {
    font-size: 28px;
  }

  .footer {
    padding-bottom: 96px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .mobile-sticky-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--gray-border);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px rgba(27, 31, 53, 0.05);
  }

  .mobile-sticky-cta .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .btn {
    transition: none !important;
  }

  .bg-dots {
    animation: none;
  }
}
/* Blog Layout */
.blog-page {
  padding: 120px 0 80px;
}

.blog-header {
  margin-bottom: 48px;
  text-align: center;
}

.blog-header h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.blog-header p {
  font-size: 18px;
  color: var(--text-soft);
  max-width: 600px;
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 40px;
}

.blog-main {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.blog-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

/* Featured Post */
.featured-post {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--gray-border);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.featured-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(27, 31, 53, 0.08);
}

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

.featured-post-content {
  padding: 40px;
}

.post-meta {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: flex;
  gap: 16px;
}

.post-meta span {
  color: var(--text-muted);
}

.featured-post-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-main);
}

.featured-post-excerpt {
  font-size: 17px;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Older Posts Grid */
.older-posts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--gray-border);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(27, 31, 53, 0.08);
}

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

.post-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--text-main);
}

.post-card-excerpt {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.read-more {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-color);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.read-more:hover {
  gap: 10px;
}

/* Sidebar CTA */
.sidebar-widget {
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  border-radius: 16px;
  padding: 40px 32px;
  color: #fff;
  text-align: center;
  box-shadow: 0 12px 30px rgba(31, 59, 113, 0.15);
  position: relative;
  overflow: hidden;
}

.sidebar-widget::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(
    circle,
    rgba(248, 171, 15, 0.15) 0%,
    transparent 70%
  );
}

.sidebar-widget h3 {
  font-size: 24px;
	color: #ffffff
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
}

.sidebar-widget p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  line-height: 1.6;
}

.sidebar-widget .btn {
  width: 100%;
  background: var(--accent-color);
  color: #fff;
  border: none;
}

.sidebar-widget .btn:hover {
  background: #e59d0d;
  box-shadow: 0 8px 22px rgba(248, 171, 15, 0.28);
}

/* Smaller Spheres for Blog */
.bg-spheres-small .sphere {
  filter: blur(80px);
  opacity: 0.25;
}

.bg-spheres-small .sphere-1 {
  width: 300px;
  height: 300px;
  top: -50px;
  left: -50px;
}

.bg-spheres-small .sphere-2 {
  width: 250px;
  height: 250px;
  bottom: 20%;
  right: -50px;
}

.bg-spheres-small .sphere-3 {
  width: 200px;
  height: 200px;
  top: 30%;
  left: 50%;
}

/* Responsive Blog */
@media (max-width: 1100px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }
}

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

  .featured-post-img {
    height: 250px;
  }

  .featured-post-content {
    padding: 24px;
  }

  .featured-post-title {
    font-size: 24px;
  }
}

/* WordPress blog fixes */
.blog .site-content,
.home.blog .site-content {
  position: relative;
  z-index: 1;
}

.blog-page {
  position: relative;
  z-index: 2;
}

.post-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f9fa, #edf2f7);
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.blog-pagination {
  margin-top: 12px;
}

.blog-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--gray-border);
  border-radius: 10px;
  background: #fff;
  color: var(--text-main);
  font-weight: 700;
  transition: all 0.25s ease;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

.no-posts {
  background: #fff;
  border: 1px solid var(--gray-border);
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.no-posts h2 {
  margin-bottom: 10px;
  font-size: 28px;
}

.no-posts p {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.7;
}

/* Astra width fix */
.blog #primary,
.home.blog #primary {
  width: 100%;
  margin: 0;
}

/* Kategorie bloga */
.blog-categories {
  position: relative;
  z-index: 50;
  margin-bottom: 40px;
}

.blog-categories-toggle {
  display: none !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid var(--gray-border);
  background: #fff;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.blog-categories-toggle-arrow {
  font-size: 12px;
  line-height: 1;
  transition: transform 0.22s ease;
}

.blog-categories.is-open .blog-categories-toggle-arrow {
  transform: rotate(180deg);
}

.blog-categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  overflow: visible;
}

.blog-category-item {
  position: relative;
  z-index: 1;
}

.blog-category-item.has-children:hover,
.blog-category-item.has-children:focus-within {
  z-index: 80;
}

.blog-category-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--gray-border);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 700;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
}

.blog-category-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.blog-category-item.is-active > .blog-category-btn,
.blog-category-btn.is-active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

.blog-category-arrow {
  font-size: 12px;
  line-height: 1;
}

.blog-subcategories {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--gray-border);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(27, 31, 53, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.22s ease;
  z-index: 999;
}

.blog-category-item.has-children:hover .blog-subcategories,
.blog-category-item.has-children:focus-within .blog-subcategories {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.blog-subcategory-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--gray-border);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.2s ease;
}

.blog-subcategory-link:hover,
.blog-subcategory-link.is-active {
  background: rgba(248, 171, 15, 0.1);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* zabezpieczenie na nakładanie */
.blog-grid {
  position: relative;
  z-index: 1;
}

.blog-main,
.blog-sidebar {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .blog-categories {
    margin-bottom: 32px;
  }

  .blog-categories-toggle {
    display: inline-flex;
  }

  .blog-categories-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 12px;
  }

  .blog-categories.is-open .blog-categories-list {
    display: flex;
  }

  .blog-category-item {
    width: 100%;
  }

  .blog-category-btn {
    width: 100%;
    justify-content: space-between;
    min-height: 50px;
    padding: 0 16px;
    border-radius: 14px;
  }

  .blog-subcategories {
    position: static;
    min-width: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    z-index: auto;
  }

  .blog-subcategory-link {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--gray-border);
    box-shadow: var(--shadow-soft);
  }
}

/* Astra width fix */
.blog .ast-container,
.home.blog .ast-container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.blog #primary,
.home.blog #primary {
  width: 100%;
  margin: 0;
}

@media (max-width: 768px) {
  .blog-categories-list {
    gap: 10px;
  }

  .blog-category-item {
    width: 100%;
  }

  .blog-category-btn {
    width: 100%;
    justify-content: space-between;
  }

  .blog-subcategories {
    position: static;
    min-width: auto;
    margin-top: 10px;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-radius: 12px;
  }
}

/* do wpisów */

/* =========================================
   Pojedynczy wpis blogowy
========================================= */

.single-post .site-content > .ast-container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  display: block;
}

.single-post #primary {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  float: none;
}

.single-post #secondary,
.single-post .widget-area {
  display: none !important;
}

.single-entry-page {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 80px;
}

/* HERO */
.single-entry-hero {
  position: relative;
  width: 100%;
  min-height: min(64vh, 680px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
}

.single-entry-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.single-entry-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(27, 31, 53, 0.22) 0%,
    rgba(27, 31, 53, 0.78) 100%
  );
}

.single-entry-hero__inner {
  position: relative;
  z-index: 2;
  width: min(var(--container), calc(100% - 48px));
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-top: 120px;
  padding-bottom: 72px;
}

.single-entry-hero__content {
  width: 100%;
  max-width: 880px;
  color: #fff;
}

.single-entry-meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.single-entry-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.single-entry-title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: #fff;
}

.single-entry-excerpt {
  max-width: 760px;
  margin-top: 24px;
  font-size: 20px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
}

.single-entry-actions {
  margin-top: 34px;
}

.single-entry-back-btn {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff !important;
}

.single-entry-back-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--accent-color);
  color: var(--accent-color) !important;
}

/* CONTENT */
.single-entry-content-section {
  padding: 56px 0 0;
}

.single-entry-shell {
  width: min(80%, 1180px);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.single-entry-article {
  width: 100%;
  background: #fff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(27, 31, 53, 0.07);
  padding: 40px;
  box-sizing: border-box;
}

.single-entry-content {
  color: var(--text-main);
  font-size: 17px;
  line-height: 1.8;
}

.single-entry-content > *:first-child {
  margin-top: 0;
}

.single-entry-content > *:last-child {
  margin-bottom: 0;
}

.single-entry-content h2,
.single-entry-content h3,
.single-entry-content h4 {
  text-align: left;
  margin-top: 1.8em;
  margin-bottom: 0.7em;
  line-height: 1.2;
  color: var(--text-main);
}

.single-entry-content h2 {
  font-size: clamp(28px, 3vw, 38px);
}

.single-entry-content h3 {
  font-size: clamp(22px, 2.2vw, 28px);
}

.single-entry-content h4 {
  font-size: 20px;
}

.single-entry-content p,
.single-entry-content ul,
.single-entry-content ol,
.single-entry-content blockquote {
  margin-bottom: 1.2em;
}

.single-entry-content ul,
.single-entry-content ol {
  padding-left: 1.4em;
}

.single-entry-content li {
  margin-bottom: 0.5em;
}

.single-entry-content a {
  color: var(--accent-color);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.single-entry-content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  margin: 28px auto;
  box-shadow: 0 12px 30px rgba(27, 31, 53, 0.1);
}

.single-entry-content figure {
  margin: 28px 0;
}

.single-entry-content figcaption {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}

.single-entry-content blockquote {
  margin: 28px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--accent-color);
  background: rgba(248, 171, 15, 0.08);
  border-radius: 16px;
}

.single-entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  overflow: hidden;
  border-radius: 16px;
}

.single-entry-content th,
.single-entry-content td {
  border: 1px solid rgba(27, 31, 53, 0.1);
  padding: 12px 14px;
  text-align: left;
}

.single-entry-content th {
  background: rgba(248, 171, 15, 0.08);
}

/* SHARE */
.single-entry-share {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(27, 31, 53, 0.1);
}

.single-entry-share h3 {
  text-align: left;
  margin-bottom: 14px;
  font-size: 22px;
  color: var(--text-main) !important;
}

.single-entry-share__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.single-entry-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--gray-border);
  text-decoration: none !important;
  color: var(--text-main);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(27, 31, 53, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.single-entry-share__btn:hover {
  transform: translateY(-1px);
  border-color: rgba(248, 171, 15, 0.5);
  box-shadow: 0 14px 28px rgba(27, 31, 53, 0.08);
  color: var(--accent-color);
}

.single-entry-share__icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, var(--grad-start), var(--accent-color));
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

/* NAV */
.single-entry-post-nav {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(27, 31, 53, 0.1);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.single-entry-post-nav__item {
  display: block;
  padding: 18px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--gray-border);
  text-decoration: none !important;
  color: var(--text-main);
  box-shadow: 0 10px 24px rgba(27, 31, 53, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.single-entry-post-nav__item:hover {
  transform: translateY(-1px);
  border-color: rgba(248, 171, 15, 0.5);
  box-shadow: 0 14px 28px rgba(27, 31, 53, 0.08);
  color: var(--accent-color);
}

.single-entry-post-nav__label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.single-entry-post-nav__item strong {
  display: block;
  line-height: 1.4;
  font-size: 16px;
}

.single-entry-post-nav__item--next {
  text-align: right;
}

@media (max-width: 1100px) {
  .single-entry-shell {
    width: min(88%, 1180px);
  }
}

@media (max-width: 768px) {
  .single-entry-hero__inner {
    width: min(var(--container), calc(100% - 32px));
    padding-top: 88px;
    padding-bottom: 48px;
  }

  .single-entry-excerpt {
    font-size: 17px;
  }

  .single-entry-shell {
    width: calc(100% - 32px);
  }

  .single-entry-article {
    padding: 24px;
  }

  .single-entry-content {
    font-size: 16px;
  }

  .single-entry-post-nav {
    grid-template-columns: 1fr;
  }

  .single-entry-post-nav__item--next {
    text-align: left;
  }
}