.team-member {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
}
.member-image {
  flex-shrink: 0;
}
.team-member-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: block;
  margin: 0;
}
.website-link {
  margin-left: 1em;
}
/* === AI Packages Card Styles === */
.card {
  flex: 1 1 280px;
  max-width: 320px;
  background: #f8f8fa;
  border-radius: 12px;
  padding: 24px 20px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  width: 100%;
}

.spacer {
  flex-grow: 1;
}

ul {
  text-align: left;
  padding-left: 18px;
  margin: 0 0 16px;
}

:root {
  /* Define your brand colors as CSS variables */
  --color-primary: #0a4731; /* Deep Forest Green */
  --color-secondary: #2a8c6a; /* Brighter Green/Teal */
  --color-accent-blue: #4a90e2; /* Muted Professional Blue */
  --color-dark-text: #333333;
  --color-light-bg: #f8f8f8;
  --color-white: #ffffff;
  --color-light-grey: #eaf2f8; /* Light blue from about section, or a very subtle grey */
  --color-border: #dddddd;

  /* ADD: desktop content width cap  ───────────────────────────── */
  --page-max: 72rem;      /* 72 × 16 px  = 1152 px */

  /* Cookie banner design tokens */
  --kc-bg: #f6f7f8;            /* light gray background */
  --kc-text: #2f2f2f;          /* body text */
  --kc-muted: #6a6a6a;         /* secondary text */
  --kc-border: #e6e6e6;        /* subtle borders */

  --kc-brand: #0b6b48;         /* Kunke CTA green */
  --kc-brand-press: #0a5a3d;   /* pressed/hover state */
  --kc-link: #0b6b48;          /* same as brand for links */

  --kc-btn-radius: 12px;       /* match “AI dla firm” button radius */
  --kc-btn-h: 42px;            /* compact height */
  --kc-gap: 12px;              /* compact spacing */
  --kc-maxw: 1100px;           /* banner content width */
  --kc-shadow: 0 8px 24px rgba(0,0,0,.08);

  --kc-anim: 240ms cubic-bezier(.2,.8,.2,1);
}
/* Smooth scrolling for in-page anchor links */
html {
  scroll-behavior: smooth;
}


body {
  font-family: 'Inter', sans-serif; /* Applied Inter for body font */
  margin: 0;
  line-height: 1.6;
  color: var(--color-dark-text);
  background-color: var(--color-light-bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif; /* Applied Inter for heading font */
  color: var(--color-primary);
  margin-top: 0;
  margin-bottom: 0.5em;
}

h1 {
  font-size: 2.8em;
  margin-bottom: 0.5em;
}
h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 30px;
}

/* Header & Navigation */
header {
  background-color: var(--color-white);   /* now white */
  color: var(--color-primary);            /* keep text/links green */
  padding: 1rem 0;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}
nav a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: bold;
  padding: 0.5rem 1rem;
  transition: background-color 0.3s ease;
  border-radius: 5px;
}
nav a:hover {
  background-color: rgba(255, 255, 255, 0.2); /* Semi-transparent white on hover */
}

/* Sections */
section {
  padding: 40px 20px;
  margin-inline: auto;

  /* NEW: fluid until 90 % viewport, then stop at var(--page-max) */
  width: min(90%, var(--page-max));
}
#hero {
  background-color: var(--color-light-bg);
  text-align: center;
  padding: 60px 20px 50px; /* More padding at top */
}
#hero p {
  font-size: 1.2em;
  color: var(--color-dark-text);
  max-width: 700px; /* Limit paragraph width for readability */
  margin: 1em auto;
}
.text-gradient {
    /* Adjusted gradient to fit brand colors better */
    background-image: linear-gradient(45deg, var(--color-secondary), var(--color-accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
#about {
  background-color: var(--color-light-grey); /* Using the light grey/blue variable */
}
#services {
  background-color: var(--color-white);
}
#contact {
  background-color: var(--color-light-bg);
}

/* Service Items */
.service-item {
/* ...rest of your CSS... */
}
/* === Hero “Get in Touch” button ================================ */
.cta-btn {
  display: inline-block;
  background-image: linear-gradient(45deg, #0a4731 0%, #187650 100%); /* subtle green gradient */
  color: var(--color-white);
  padding: 18px 36px;        /* default for small screens */
  font-size: 1.15rem;        /* default for small screens */
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.4s ease, transform 0.2s ease;
}

.cta-btn:hover {
  background-image: linear-gradient(45deg, #d4af37 0%, #b8922d 100%); /* warm gold */
  transform: translateY(-3px);  /* nice lift effect */
}

@media (min-width: 768px) {
  .cta-btn {
    padding: 14px 28px;      /* smaller on desktop */
    font-size: 1rem;         /* better proportion */
  }
}

@media (min-width: 1536px) {     /* 1536 px = Tailwind’s 2xl */
  :root { --page-max: 87.5rem; } /* 87.5 × 16 px = 1400 px */
}

/* === BLOG CARDS =================================================== */
.blog-grid {
  display: grid;
  gap: 32px;
}

/* 1-column on mobiles, 2-col from 640 px wide */
@media (min-width: 640px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Hero / featured card spans full width */
.blog-card.big {
  grid-column: 1 / -1;
}

.blog-card {
  background: #f8f8fa;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
  transition: transform .2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
}

.blog-card h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  color: var(--color-primary);
}

.blog-card p.desc {
  margin: 0 0 12px;
  color: #555;
  line-height: 1.4;
  font-size: .95rem;
}

.blog-card a {
  text-decoration: none;
}

/* date */
.blog-card time {
  display: block;
  font-size: .8rem;
  color: #888;
  margin-bottom: 4px;
}

/* Blog Header */
.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  max-width: var(--page-max);
  margin: 0 auto;
  font-size: 0.9rem;
}

.breadcrumb {
  color: #666;
}

.breadcrumb a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.follow-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.follow-link:hover {
  color: var(--color-secondary);
}

/* Blog Title Section */
.blog-title-section {
  text-align: center;
  padding: 40px 20px;
  max-width: var(--page-max);
  margin: 0 auto;
}

.blog-title-section h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  color: var(--color-primary);
}

.blog-title-section .subtitle {
  font-size: 1.2rem;
  color: #666;
  margin: 0;
}

/* Hero Workshop Section */
.blog-hero {
  max-width: calc(var(--page-max) - 80px);
  margin: 40px auto;
  padding: 0 40px;
}

.hero-block {
  display: flex;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.hero-image {
  flex: 1;
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  max-height: 300px;
}

.hero-content {
  flex: 1;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--color-primary);
  text-align: left;
}

.hero-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 30px;
}

.hero-arrow {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: var(--color-secondary);
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-block:hover .hero-arrow {
  opacity: 1;
  transform: translateY(-50%) translateX(5px);
}

/* Blog Posts Grid */
.blog-grid-section {
  max-width: calc(var(--page-max) - 80px);
  margin: 80px auto;
  padding: 0 40px;
}

.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-post-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.blog-post-card a {
  text-decoration: none;
  color: inherit;
}

.post-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f5f5f5;
}

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

.blog-post-card h3 {
  padding: 20px;
  font-size: 1.1rem;
  color: var(--color-primary);
  margin: 0;
  line-height: 1.4;
}

/* All Posts Section */
.all-posts-section {
  max-width: calc(var(--page-max) - 80px);
  margin: 80px auto;
  padding: 0 40px;
}

.all-posts-section h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--color-primary);
  text-align: left;
}

/* Team member image size */
.team-member-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: block;
  margin: 0 auto;
}

.all-posts-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.post-list-item {
  padding: 25px 0;
  border-bottom: 1px solid #e0e0e0;
}

.post-list-item:last-child {
  border-bottom: none;
}

.post-list-item time {
  font-size: 0.9rem;
  color: #888;
  display: block;
  margin-bottom: 8px;
}

.post-list-item h3 {
  font-size: 1.4rem;
  margin: 0 0 10px 0;
}

.post-list-item h3 a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-list-item h3 a:hover {
  color: var(--color-secondary);
}

.post-list-item p {
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* Blog Footer */
.blog-footer {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid #e0e0e0;
  margin-top: 80px;
}

.blog-footer a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.blog-footer a:hover {
  color: var(--color-secondary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .blog-header {
    padding: 15px 20px;
    font-size: 0.85rem;
  }

  .blog-title-section h1 {
    font-size: 2rem;
  }

  .hero-block {
    flex-direction: column;
  }

  .hero-content {
    padding: 40px 30px;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .hero-arrow {
    position: static;
    transform: none;
    margin-top: 20px;
    align-self: flex-end;
  }

  .blog-posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .all-posts-section {
    margin: 40px auto;
  }
}

/* === Blog Article Styles === */

/* Hero Image Section */
.hero-image-container {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  margin-bottom: 0;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-image-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

.hero-content-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 80px 40px 40px;
}

.hero-text-container {
  max-width: 1200px;
  margin: 0 auto;
}

.hero-title {
  color: white;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-meta time {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  font-weight: 500;
}

.hero-tags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-tag {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Main Article Layout */
.article-main {
  background: #fafafa;
  min-height: 100vh;
  padding: 4rem 0;
}

.article-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  padding: 0 2rem;
  align-items: start;
}

.article-content {
  background: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
}

.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: sticky;
  top: 2rem;
}

.sidebar-widget {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

.sidebar-widget h3 {
  color: var(--color-primary);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--color-secondary);
  padding-bottom: 0.5rem;
}

.sidebar-widget p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.article-description {
  font-style: italic;
  color: #555;
  font-size: 1.05rem;
}

.sidebar-cta {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
}

.sidebar-cta:hover {
  background: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Legacy article styles - kept for compatibility */
.article-header {
  text-align: center;
  margin-bottom: 3rem;
}

.article-header h1 {
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.article-meta {
  color: #666;
  font-size: 0.95rem;
}

.article-meta time {
  display: block;
  margin-bottom: 0.5rem;
}

.tags {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.tag {
  background: var(--color-secondary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Enhanced Prose styles for blog content */
.prose {
  color: #374151;
  line-height: 1.8;
  font-size: 1.1rem;
  max-width: none;
}

.prose p {
  margin-bottom: 1.75rem;
  text-align: justify;
  hyphens: auto;
}

.prose p:first-of-type {
  font-size: 1.2rem;
  font-weight: 500;
  color: #1f2937;
  line-height: 1.6;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
  color: var(--color-primary);
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  scroll-margin-top: 2rem;
}

.prose h1 {
  font-size: 2.5rem;
  border-bottom: 3px solid var(--color-secondary);
  padding-bottom: 0.5rem;
}

.prose h2 {
  font-size: 2rem;
  position: relative;
  padding-left: 1rem;
}

.prose h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 4px;
  height: 2rem;
  background: var(--color-secondary);
  border-radius: 2px;
}

.prose h3 {
  font-size: 1.6rem;
  color: var(--color-secondary);
}

.prose h4 {
  font-size: 1.3rem;
  color: #4b5563;
}

.prose ul, .prose ol {
  margin-bottom: 2rem;
  padding-left: 2rem;
}

.prose ul {
  list-style: none;
}

.prose ul li {
  position: relative;
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
}

.prose ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: bold;
  font-size: 1.1rem;
}

.prose ol li {
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

.prose li p {
  margin-bottom: 0.5rem;
}

.prose strong {
  font-weight: 700;
  color: var(--color-primary);
  background: linear-gradient(120deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

.prose em {
  font-style: italic;
  color: #6b7280;
}

.prose code {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.9em;
  color: #dc2626;
  font-family: 'Courier New', monospace;
}

.prose blockquote {
  border-left: 4px solid var(--color-secondary);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  background: #f8fafc;
  border-radius: 0 8px 8px 0;
  position: relative;
}

.prose blockquote::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  font-size: 4rem;
  color: var(--color-secondary);
  opacity: 0.3;
  font-family: serif;
}

.prose blockquote p {
  font-style: italic;
  color: #4b5563;
  margin-bottom: 0;
  font-size: 1.05rem;
}

/* Special styling for key points */
.prose p:has(strong:first-child) {
  background: linear-gradient(135deg, #fef3c7 0%, #f0f9ff 100%);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--color-secondary);
  margin: 2rem 0;
}

/* Article navigation */
.article-nav {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.back-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: var(--color-secondary);
}

/* Blog header removed - no longer needed */

/* Responsive Design for Blog Articles */
@media (max-width: 1024px) {
  .article-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 800px;
  }
  
  .article-sidebar {
    position: static;
    order: -1;
  }
  
  .sidebar-widget {
    padding: 1.5rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-content-overlay {
    padding: 60px 30px 30px;
  }
}

@media (max-width: 768px) {
  .hero-image-container {
    height: 350px;
    border-radius: 0 0 16px 16px;
  }
  
  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero-content-overlay {
    padding: 40px 20px 20px;
  }
  
  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .article-main {
    padding: 2rem 0;
  }
  
  .article-container {
    padding: 0 1rem;
    gap: 1.5rem;
  }
  
  .article-content {
    padding: 2rem 1.5rem;
    border-radius: 12px;
  }
  
  .prose {
    font-size: 1rem;
  }
  
  .prose h1 {
    font-size: 2rem;
  }
  
  .prose h2 {
    font-size: 1.6rem;
  }
  
  .prose h3 {
    font-size: 1.3rem;
  }
  
  .prose p:first-of-type {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .hero-image-container {
    height: 280px;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-content-overlay {
    padding: 30px 15px 15px;
  }
  
  .article-content {
    padding: 1.5rem 1rem;
  }
  
  .sidebar-widget {
    padding: 1rem;
  }
  
  .prose ul li {
    padding-left: 1rem;
  }
  
  .prose h2 {
    padding-left: 0.75rem;
  }
  
  .prose h2::before {
    width: 3px;
    height: 1.5rem;
    top: 0.25rem;
  }
}

/* Print styles for better article printing */
@media print {
  .hero-image-container,
  .article-sidebar,
  .blog-header,
  .article-nav,
  footer {
    display: none !important;
  }
  
  .article-main {
    background: white;
    padding: 0;
  }
  
  .article-container {
    grid-template-columns: 1fr;
    max-width: none;
    padding: 0;
  }
  
  .article-content {
    box-shadow: none;
    border: none;
    padding: 0;
  }
  
  .prose {
    font-size: 12pt;
    line-height: 1.6;
  }
  
  .prose h1, .prose h2, .prose h3 {
    color: black;
  }
}