/* Large LinkedIn Profile button (used on consultant pages and footer) */
.linkedin-btn-large {
    text-decoration: none !important;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 9999px;
    border: 1px solid #cbd5e1;
    background: #fff;
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.04);
    padding: 1rem 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.linkedin-btn-large:hover, .linkedin-btn-large:focus {
    color: #2563eb;
    border-color: #2563eb;
    box-shadow: 0 4px 16px 0 rgba(37,99,235,0.08);
    text-decoration: none !important;
}
.linkedin-btn-large svg {
    color: #2563eb;
    fill: #2563eb;
}
.linkedin-btn-large:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}
.not-underline {
    /* text-decoration: none !important; */
}
/* Author profile link block highlight */
.author-profile-link {
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
    padding: 20px;
    border-radius: 18px;
    box-shadow: 0 1px 4px 0 rgba(80,162,213,0.04);
}
.author-profile-link:hover, .author-profile-link:focus {
    background: linear-gradient(90deg, #f8fafc 60%, #e0f2fe 100%);
    box-shadow: 0 4px 24px 0 rgba(80,162,213,0.13);
}
.author-profile-link:hover h3,
.author-profile-link:focus h3 {
    color: #1e293b !important; /* keep name dark, not orange */
}
/* Blog section: unify with Experience Hub, equal card height, author at bottom with border */
.blog-articles-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
    justify-content: center;
}
@media (min-width: 769px) {
    .blog-articles-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5rem;
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }
}
@media (min-width: 1200px) {
    .blog-articles-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        max-width: 1200px;
    }
}

.blog-article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 420px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
    overflow: hidden;
    transition: box-shadow 0.3s, border-color 0.3s;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}
.blog-article-card:hover {
    box-shadow: 0 10px 30px rgba(80, 162, 213, 0.08);
    border-color: #bae6fd;
}
.blog-article-card .blog-card-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 0%;
    min-height: 220px;
    padding: 1rem;
    border-left-width: 4px;
    justify-content: flex-start;
}
.blog-article-card .blog-card-author {
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 48px;
    height: 56px;
    box-sizing: border-box;
}
/* Responsive grid for blog articles on homepage */
.blog-articles-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
    justify-content: center;
}
@media (min-width: 769px) {
    .blog-articles-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5rem;
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }
}
@media (min-width: 1200px) {
    .blog-articles-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        max-width: 1200px;
    }
}
/* Blog avatar sizing and rings (moved from blog.css) */
.blog-avatar { width: 34px; height: 34px; border-radius: 9999px; object-fit: cover; flex-shrink: 0; }
/* Blog article card (moved from blog.css) */
.blog-article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
    overflow: hidden;
    transition: box-shadow 0.3s, border-color 0.3s;
    background: #fff;
}
.blog-article-card:hover {
    box-shadow: 0 10px 30px rgba(80, 162, 213, 0.08);
    border-color: #bae6fd;
}
.avatar-ring-orange { box-shadow: 0 0 0 1px #fff, 0 0 0 3px #f58220; }
.avatar-ring-blue { box-shadow: 0 0 0 1px #fff, 0 0 0 3px #50a2d5; }
/* Ensure background elements never break layout width */
.page-wojciech .bg-grid-container,
.page-wojciech .geo-shape,
.page-wojciech .shape-1,
.page-wojciech .shape-2 {
    max-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    overflow-x: hidden !important;
}
@media (max-width: 768px) {
    .page-monika .geo-shape,
    .page-monika .shape-1,
    .page-monika .shape-2,
    .page-monika .shape-3,
    .page-monika .shape-4 {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .page-monika .geo-shape,
    .page-monika .shape-1,
    .page-monika .shape-2,
    .page-monika .shape-3,
    .page-monika .shape-4 {
        display: block;
        max-width: 100vw;
        max-height: 100vh;
        overflow: hidden;
    }
}
/* ==========================================
   INPERITIA - Main CSS
   Universal styles for all pages
   ========================================== */

/* Reset & Utility Base */
* {FONT-VARIANT: JIS78;box-sizing: border-box;margin: 0;padding: 0;}

/* Base & Typography */
body { 
    font-family: 'Inter', sans-serif; 
    scroll-behavior: smooth; 
    font-size: 14px; 
    overflow-x: hidden;
    background-color: white;
    color: #0f172a;
}

h1, h2, h3, h4, .nav-link, .logo-font, .logo-font-nav { 
    font-family: 'Montserrat', sans-serif; 
}

/* ==========================================
   TAILWIND UTILITY CLASSES
   ========================================== */

/* Display */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

/* Position */
.static { position: static; }
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.sticky { position: sticky; }

/* Inset */
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.top-5\% { top: 5%; }
.top-10\% { top: 10%; }
.right-0 { right: 0; }
.right-5\% { right: 5%; }
.right-8\% { right: 8%; }
.bottom-0 { bottom: 0; }
.bottom-10\% { bottom: 10%; }
.bottom-20\% { bottom: 20%; }
.left-0 { left: 0; }
.left-5\% { left: 5%; }

/* Z-index */
.z-0 { z-index: 0; }
.z-1 { z-index: 1; }
.z-2 { z-index: 2; }
.z-5 { z-index: 5; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }
.z-\[-1\] { z-index: -1; }
.z-\[-2\] { z-index: -2; }

/* Flex Direction */
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }

/* Flex Wrap */
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

/* Align Items */
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }

/* Justify Content */
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }

/* Gap */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

/* Space Between */
.space-x-10 > :not([hidden]) ~ :not([hidden]) { margin-left: 2.5rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }

/* Grid Template Columns */
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Padding */
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 {padding-top: 6rem;padding-bottom: 6rem;}
.pt-4 { padding-top: 1rem; }
.pt-8 { padding-top: 2rem; }
.pt-12 { padding-top: 3rem; }
.pt-32 { padding-top: 8rem; }
.pt-36 { padding-top: 9rem; }
.pb-12 { padding-bottom: 3rem; }
.pb-24 { padding-bottom: 6rem; }
.pr-12 { padding-right: 3rem; }
.pr-16 { padding-right: 4rem; }
.pl-12 { padding-left: 3rem; }
.pl-16 { padding-left: 4rem; }

/* Margin */
.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

/* Width */
.w-full { width: 100%; }
.w-32 { width: 8rem; }
.w-auto { width: auto; }
.w-90\% { width: 90%; }

/* Flex */
.flex-1 { flex: 1 1 0%; }

/* Height */
.h-16 { height: 4rem; }
.h-32 { height: 8rem; }
.h-70\% { height: 70%; }
.h-75\% { height: 75%; }

/* Max Width */
.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-xl { max-width: 36rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }

/* Max Height */
.max-h-\[85vh\] { max-height: 85vh; }

/* Border */
.border { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t {/* border-top-width: 1px; *//* border-top-style: solid; */}
.border-l-4 { border-left-width: 4px; border-left-style: solid; }
.border-r { border-right-width: 1px; border-right-style: solid; }
.border-r-2 { border-right-width: 2px; border-right-style: solid; }
.border-y { border-top-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-bottom-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }

/* Border Color */
.border-slate-50 { border-color: #f8fafc; }
.border-slate-100 { border-color: #f1f5f9; }
.border-slate-200 { border-color: #e2e8f0; }
.border-slate-300 { border-color: #cbd5e1; }
.border-slate-400 { border-color: #94a3b8; }
.border-slate-600 { border-color: #475569; }
.border-blue-400 { border-color: #60a5fa; }
.border-orange-400 { border-color: #fb923c; }
.border-l-blue-400 { border-left-color: #60a5fa; }
.border-l-orange-400 { border-left-color: #fb923c; }
.border-r-orange-400 { border-right-color: #fb923c; }

/* Border Radius */
.rounded { border-radius: 0.25rem; }
.rounded-full { border-radius: 9999px; }
.rounded-2xl { border-radius: 1rem; }
.rounded-\[40px\] { border-radius: 40px; }
.rounded-\[2px\] { border-radius: 2px; }

/* Background Color */
.bg-white { background-color: #ffffff; }
.bg-slate-50 { background-color: #f8fafc; }
.bg-slate-100 { background-color: #f1f5f9; }
.bg-slate-900 { background-color: #0f172a; }
.bg-white\/70 { background-color: rgba(255, 255, 255, 0.7); }
.bg-white\/95 { background-color: rgba(255, 255, 255, 0.95); }

/* Text Color */
.text-white { color: #ffffff; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-slate-800 { color: #1e293b; }
.text-slate-900 { color: #0f172a; }
.text-blue-400 { color: #60a5fa; }
.text-blue-500 { color: #3b82f6; }
.text-orange-400 { color: #fb923c; }
.text-orange-500 { color: #f97316; }

/* Font Size */
.text-\[7px\] { font-size: 7px; }
.text-\[8px\] { font-size: 8px; }
.text-\[9px\] { font-size: 9px; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-\[12px\] { font-size: 12px; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }

/* Font Weight */
.font-light { font-weight: 300; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Text Transform */
.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }

/* Letter Spacing */
.tracking-tight { letter-spacing: -0.025em; }
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-\[0\.2em\] { letter-spacing: 0.2em; }
.tracking-\[0\.5em\] { letter-spacing: 0.5em; }

/* Line Height */
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }

/* Shadow */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }

/* Backdrop Blur */
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur-md { backdrop-filter: blur(12px); }

/* Cursor */
.cursor-pointer { cursor: pointer; }

/* Pointer Events */
.pointer-events-none { pointer-events: none; }

/* User Select */
.user-select-none { user-select: none; }

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Object Fit */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.object-top { object-position: top; }

/* Transform */
.transform { transform: translateX(0) translateY(0) rotate(0) skewX(0) skewY(0) scaleX(1) scaleY(1); }

/* Transition */
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }

/* Hover States */
.hover\:opacity-80:hover { opacity: 0.8; }
.hover\:text-slate-900:hover { color: #0f172a; }
.hover\:text-blue-400:hover { color: #60a5fa; }
.hover\:text-orange-400:hover { color: #fb923c; }
.hover\:text-white:hover { color: #ffffff; }
.hover\:border-\[\#0077b5\]:hover { border-color: #0077b5; }
.hover\:bg-\[\#0077b5\]:hover { background-color: #0077b5; }
.hover\:border-slate-400:hover { border-color: #94a3b8; }
.hover\:bg-slate-100:hover { background-color: #f1f5f9; }

/* Text Decoration */
.underline { text-decoration: underline; }
.no-underline { text-decoration: none; }
.underline-offset-\[8px\] { text-underline-offset: 8px; }
.decoration-slate-700 { text-decoration-color: #334155; }

/* Media Queries - Medium screens (768px and up) */
@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:flex-row { flex-direction: row; }
    .md\:gap-0 { gap: 0; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:border-r-2 { border-right-width: 2px; border-right-style: solid; }
    .md\:border-r-orange-400 { border-right-color: #fb923c; }
    .stats-font { font-family: 'Montserrat', sans-serif; }
    .md\:text-base { font-size: 1rem; line-height: 1.5rem; }
    .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
    .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .md\:text-5xl { font-size: 3rem; line-height: 1; }
    .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
    .md\:text-7xl { font-size: 4.5rem; line-height: 1; }
}

/* Media Queries - Large screens (1024px and up) */
@media (min-width: 1024px) {
    .lg\:hidden { display: none !important; }
    .lg\:grid { display: grid !important; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .lg\:col-span-5 { grid-column: span 5 / span 5; }
    .lg\:col-span-7 { grid-column: span 7 / span 7; }
    .lg\:gap-16 { gap: 4rem; }
}

/* ==========================================
   CUSTOM STYLES
   ========================================== */

/* Logo Colors */
.color-in-gray { color: #94a3b8; }
.color-peritia-gray { color: #1e293b; }

/* Philosophy & Accent Colors */
.color-in { color: #f58220; }
.color-peritia { color: #50a2d5; }

.accent-wojciech { color: #50a2d5; }
.accent-monika { color: #f58220; }

/* ==========================================
   HOMEPAGE STYLES
   ========================================== */

/* Active Nav Animation */
a {
    transition: color 0.3s;
}

a:visited {
    color: inherit;
}

.nav-item { 
    position: relative; 
    transition: color 0.3s;
    color: #000;
    text-decoration: none;
}
.nav-item::after { 
    content: ''; 
    position: absolute; 
    bottom: -6px; 
    left: 50%; 
    width: 0; 
    height: 2px; 
    background: #94a3b8; 
    transition: all 0.3s ease-out; 
    transform: translateX(-50%); 
}
.nav-item.active { 
    color: #000; 
    font-weight: 700; 
}
.nav-item.active::after { 
    width: 100%; 
}

/* CTA Contact - Strong Call to Action */
.cta-contact { 
    color: #f58220 !important; 
    font-weight: 900 !important; 
    letter-spacing: 0.05em;
    text-decoration: none !important;
}

/* Header subtitle - increase font size */
header p {
    font-size: 12px !important;
}

/* Profile card - consultant title, bio and testimonials */
.profile-card p:has(+ .sync-comp),
.profile-card .text-blue-500,
.profile-card .text-orange-500 {
    font-size: 11px !important;
}

.sync-bio {
    font-size: 13px !important;
}

.sync-refs p.italic {
    font-size: 12px !important;
}

/* Experience Hub - change grid to 3 columns and increase text sizes */
#projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

/* Tablets - experience hub should have 2 columns */
@media (max-width: 1024px) and (min-width: 769px) {
    #projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Mobile - experience hub should have 1 column */
@media (max-width: 768px) {
    #projects-grid {
        grid-template-columns: 1fr !important;
    }
}

.project-card h4 {
    font-size: 11px !important;
}

.project-card p {
    font-size: 10px !important;
}

.project-card .detailed-tag,
.project-card .filter-tag {
    font-size: 8px !important;
}

/* Philosophy section - increase font sizes for IN and PERITIA */
#about .text-[12px].italic {
    font-size: 13px !important;
}

#about .text-[11px] {
    font-size: 12px !important;
}

/* Experience Hub filter tags - increase font size */
.tag-btn {
    font-size: 12px !important;
}

/* Stats/Numeric data - significantly increase font sizes */
.profile-card .counter {
    font-size: 32px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 900 !important;
}

.profile-card .counter ~ span {
    font-size: 9px !important;
}

/* Mobile phones - counter font weight reduced */
@media (max-width: 768px) {
    .profile-card .counter {
        font-weight: 700 !important;
    }
    
    /* LinkedIn button - no underline and keep logo black */
    .linkedin-btn {
        text-decoration: none !important;
    }
    
    .linkedin-btn:visited {
        color: #475569 !important;
    }
    
    .linkedin-btn:visited svg {
        color: #000000 !important;
        fill: #000000 !important;
    }
    
    .linkedin-btn svg {
        color: #000000 !important;
        fill: #000000 !important;
    }
}

/* Compact Experts Section */
.sync-comp { 
    margin-top: 5px; 
    margin-bottom: 10px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-wrap: wrap; 
    gap: 2px; 
}

.sync-bio { 
    min-height: 140px; 
    display: flex; 
    align-items: flex-start; 
    text-align: center; 
    line-height: 1.5; 
    overflow: visible; 
}

.sync-stats { 
    border-top: 1px solid #f1f5f9; 
    border-bottom: 1px solid #f1f5f9; 
    padding: 12px 0; 
    margin: 15px 0; 
}

/* Testimonials: Compact with Swiper */
.sync-refs { 
    height: 180px; 
    position: relative; 
    border-right: 3px solid #f1f5f9; 
    padding: 15px; 
    border-radius: 16px; 
}

.ref-bg-w { background-color: #f0f7ff; }
.ref-bg-m { background-color: #fffaf5; }

.sync-refs .swiper { 
    height: 100%; 
    padding-bottom: 28px; 
    overflow: hidden; 
}

.swiper-slide { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 0 20px; 
    text-align: center; 
    height: 100%; 
}

.swiper-slide > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.swiper-pagination { 
    position: absolute !important; 
    left: 0; 
    right: 0; 
    bottom: 6px !important; 
    height: 20px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    z-index: 5; 
}

.swiper-pagination-bullet { 
    background: #94a3b8 !important; 
    opacity: 0.4 !important; 
    width: 8px !important; 
    height: 8px !important; 
    margin: 0 4px !important; 
}

.swiper-pagination-bullet-active { 
    opacity: 1 !important; 
    background: #475569 !important; 
}

/* Buttons */
.btn-profile { 
    border: 1px solid #e2e8f0; 
    padding: 6px 20px; 
    border-radius: 4px; 
    font-size: 9px; 
    font-weight: 700; 
    text-transform: uppercase; 
    transition: 0.3s; 
    margin-top: 15px; 
    display: inline-block; 
}

.btn-profile:hover { 
    background: #f8fafc; 
    border-color: #cbd5e1; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); 
}

/* Profile cards with hover effect */
.profile-card { 
    text-decoration: none; 
    color: inherit; 
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; 
    border: 1px solid transparent; 
    border-radius: 16px; 
    padding: 16px; 
}

.profile-card:hover { 
    transform: translateY(-4px); 
    background: #fff; 
}

.profile-card.wojciech:hover { 
    box-shadow: 0 10px 30px rgba(80, 162, 213, 0.15); 
    border-color: #bae6fd; 
}

.profile-card.monika:hover { 
    box-shadow: 0 10px 30px rgba(245, 130, 32, 0.15); 
    border-color: #fed7aa; 
}

/* Tag & Filter Buttons */
.tag-btn {
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.tag-btn:hover {
    border-color: #cbd5e1;
    background-color: #f1f5f9;
    color: #475569;
    transform: translateY(-1px);
}

.tag-btn.active {
    background-color: #e0e7ff;
    color: #4f46e5;
    border-color: #c7d2fe;
}

.reset-btn {
    border: 1px solid #cbd5e1;
    background-color: white;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

.reset-btn:hover {
    border-color: #94a3b8;
    background-color: #f8fafc;
    color: #475569;
}

.linkedin-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1.5px solid #cbd5e1;
    background-color: white;
    color: #475569;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 1.5rem;
}

.linkedin-btn:hover {
    background-color: #0077b5;
    color: white;
    border-color: #0077b5;
}

.linkedin-btn:active {
    background-color: #0077b5;
    color: white;
    border-color: #0077b5;
}

.linkedin-btn svg {
    pointer-events: none;
}

/* LinkedIn Icon Link (next to name) */
.linkedin-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: all 0.3s ease;
    padding: 0.25rem;
}

.linkedin-icon-link:hover {
    color: #0077b5;
    transform: scale(1.05);
}

.linkedin-icon-link:active {
    color: #0077b5;
}

/* Credentials & Domain Knowledge styling */
.credentials-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .credentials-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .credentials-section {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

.project-hidden { 
    display: none; 
}

/* Hide tags and description on mobile */
@media (max-width: 640px) {
    #projects .hub-description {
        display: none !important;
    }
    .filter-tag,
    .detailed-tag {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        visibility: hidden !important;
    }
}

/* Mobile Experts Section */
@media (max-width: 1024px) {
    /* Remove horizontal padding on experts section to use full width */
    #experts { 
        padding-left: 0 !important; 
        padding-right: 0 !important; 
    }
    
    .mobile-experts-container {
        position: relative;
        min-height: 700px;
        height: 700px;
        overflow: hidden;
        --strip-w: 64px;
        --panel-gap: 8px;
    }

    .mobile-experts-container .profile-card {
        position: absolute;
        width: 100%;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        left: 0;
        padding: 20px;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        box-shadow: 0 6px 18px rgba(0,0,0,0.05);
        z-index: 1;
        min-height: 800px;
    }

    /* Active card takes full width minus strip */
    .mobile-experts-container.strip-right .profile-card.active {
        width: calc(100% - var(--strip-w));
        left: 0;
        border-top-right-radius: 0; 
        border-bottom-right-radius: 0; 
        box-shadow: none;
        z-index: 20;
    }
    
    .mobile-experts-container.strip-left .profile-card.active {
        width: calc(100% - var(--strip-w));
        left: var(--strip-w);
        border-top-left-radius: 0; 
        border-bottom-left-radius: 0; 
        box-shadow: none;
        z-index: 20;
    }

    .mobile-experts-container .profile-card.hidden-left {
        left: -100%;
    }

    .mobile-experts-container .profile-card.hidden-right {
        left: 100%;
    }

    /* Side panel with consultant image */
    .mobile-experts-container .side-panel {
        position: absolute;
        top: 0;
        width: var(--strip-w);
        height: 100%;
        background: linear-gradient(180deg, #f8fafc, #ffffff);
        border: 2px solid #e2e8f0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 8px;
        cursor: pointer;
        z-index: 10;
        transition: opacity 0.3s ease;
        user-select: none;
        box-shadow: inset 0 0 12px rgba(148,163,184,0.15), 0 4px 14px rgba(0,0,0,0.06);
    }

    .mobile-experts-container .side-panel-right {
        right: 0;
        border-left-width: 0;
    }
    
    .mobile-experts-container .side-panel-left {
        left: 0;
        border-right-width: 0;
    }

    .mobile-experts-container .side-panel:active {
        opacity: 0.8;
    }

    .mobile-experts-container .side-panel img {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        object-fit: cover;
        pointer-events: none;
        box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    }

    /* Disable old label ::after; use .panel-text instead */
    .mobile-experts-container .side-panel::after { 
        content: none; 
    }
    
    .mobile-experts-container .side-panel .panel-text {
        margin-top: 20px;
        writing-mode: vertical-rl;
        text-orientation: mixed;
        display: inline-block;
        color: #64748b;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        text-align: center;
    }
    
    .mobile-experts-container .side-panel .panel-text .panel-name {
        font-weight: 800;
        font-size: 11px;
        display: inline-block;
    }

    /* Side panel labels and arrows to emphasize control */
    .mobile-experts-container .side-panel::after {
        content: attr(data-label);
        position: absolute;
        top: 16px;
        left: 50%;
        transform: translateX(-50%);
        writing-mode: vertical-rl;
        transform-origin: center;
        font-size: 10px;
        letter-spacing: 0.2em;
        color: #64748b;
        opacity: 0.9;
        text-transform: uppercase;
        font-weight: 700;
    }
    
    /* remove arrow indicators on both side panels */
    .mobile-experts-container .side-panel-right::before,
    .mobile-experts-container .side-panel-left::before {
        content: none;
    }

    /* Hide testimonials on mobile phones (max-width: 640px) */
    @media (max-width: 640px) {
        .sync-bio {
            min-height: auto;
            height: auto;
        }
        .mobile-experts-container .sync-refs {
            display: none;
        }
        .mobile-experts-container .profile-card {
            padding: 12px;
            min-height: auto;
        }
        .mobile-experts-container .grid.grid-cols-3 {
            padding-top: 12px;
            padding-bottom: 12px;
            margin-top: 12px;
            margin-bottom: 12px;
        }
    }

    /* Vertical layout for stats on mobile phones */
    @media (max-width: 640px) {
        .mobile-experts-container .grid.grid-cols-3 {
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
        }
    }

    /* Horizontal layout for stats on tablets */
    @media (min-width: 641px) and (max-width: 1024px) {
        .sync-bio {
            min-height: 120px;
        }
        .mobile-experts-container .grid.grid-cols-3 {
            grid-template-columns: repeat(3, 1fr);
        }
        
        .mobile-experts-container .sync-refs {
            pointer-events: none;
            user-select: none;
        }

        .mobile-experts-container .swiper-pagination {
            pointer-events: all;
        }
    }
}

/* ==========================================
   CONSULTANT SUBPAGES - WOJCIECH ZIELINSKI
   ========================================== */

/* Technical Grid Background - Wojciech */
.bg-grid-container { 
    position: absolute; 
    inset: 0; 
    z-index: -2; 
    pointer-events: none; 
}

.technical-grid {
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, #f8fafc 1px, transparent 1px),
        linear-gradient(to bottom, #f8fafc 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 1;
    min-height: 100%;
}

.technical-grid-bold {
    position: absolute; 
    inset: 0;
    background-image: 
        linear-gradient(to right, #f1f5f9 1px, transparent 1px),
        linear-gradient(to bottom, #f1f5f9 1px, transparent 1px);
    background-size: 150px 150px;
    opacity: 0.4;
}

/* Geometric Shapes - Wojciech */
.geo-shape { 
    position: absolute; 
    z-index: -1; 
    opacity: 0.8; 
    pointer-events: none; 
}

.shape-1 { 
    width: 500px; 
    height: 500px; 
    background: #f0f7ff; 
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); 
    top: -120px; 
    right: -150px; 
    border: 1px solid #e0f2fe; 
}

.shape-2 { 
    width: 250px; 
    height: 400px; 
    border: 1px solid #f1f5f9; 
    transform: rotate(-10deg); 
    bottom: 10%; 
    left: -50px; 
}

@media (max-width: 768px) {
    .page-wojciech .bg-grid-container,
    .page-wojciech .geo-shape,
    .page-wojciech .shape-1,
    .page-wojciech .shape-2 {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .page-wojciech .bg-grid-container,
    .page-wojciech .geo-shape,
    .page-wojciech .shape-1,
    .page-wojciech .shape-2 {
        display: block;
        max-width: 100vw;
        max-height: 100vh;
        overflow: hidden;
    }
}


/* ==========================================
   CONSULTANT SUBPAGES - MONIKA ZIELINSKA
   ========================================== */

/* Geometric Shapes - Monika (override for her page) */
.shape-1.monika-shape { 
    width: 400px; 
    height: 400px; 
    background: #ffe4e6; 
    border-radius: 50%; 
    top: -80px; 
    left: -120px; 
    filter: blur(4px);
    clip-path: none;
    border: none;
}

.shape-2.monika-shape { 
    width: 300px; 
    height: 600px; 
    background: #e0f2fe; 
    transform: rotate(15deg); 
    top: 5%; 
    right: -80px; 
    border-radius: 40px; 
    filter: blur(5px);
    border: none;
}

.shape-3 { 
    width: 200px; 
    height: 200px; 
    background: #fef08a; 
    border-radius: 20px; 
    bottom: 20%; 
    left: 5%; 
    transform: rotate(-10deg); 
    filter: blur(3px); 
}

.shape-4 { 
    width: 350px; 
    height: 350px; 
    background: #ede9fe; 
    border-radius: 50%; 
    bottom: -50px; 
    right: 8%; 
    filter: blur(6px); 
}

/* ==========================================
   SHARED SUBPAGE STYLES
   ========================================== */

/* Quote Containers */
.quote-container { 
    position: relative; 
    padding: 35px 45px; 
    background: rgba(255, 255, 255, 0.9); 
    border-left: 5px solid #50a2d5; 
    border-radius: 0 4px 4px 0; 
    margin-bottom: 25px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.02); 
}

/* Monika's quote container variation */
.quote-container.monika-quote { 
    border-left: 5px solid #f58220; 
    border-radius: 0 25px 25px 0; 
    background: rgba(255, 255, 255, 0.85); 
    box-shadow: 0 4px 20px rgba(0,0,0,0.05); 
}

.quote-icon { 
    font-family: 'Montserrat', sans-serif; 
    font-size: 80px; 
    color: #50a2d5; 
    opacity: 0.08; 
    position: absolute; 
    top: -10px; 
    left: 15px; 
    line-height: 1; 
}

.quote-icon.monika-icon { 
    font-size: 100px; 
    color: #f58220; 
    opacity: 0.1; 
    top: -15px; 
    left: 10px; 
}

/* Photo Wrapper & Standing Photos */
.photo-wrapper { 
    position: relative; 
    width: 100%; 
    display: flex; 
    justify-content: center; 
    align-items: flex-start; 
}

.photo-standing { 
    position: relative; 
    z-index: 2; 
    max-height: 85vh; 
    width: auto; 
    object-fit: contain; 
    max-width: 100%;
}

/* Limit photo size for screens larger than FHD - prevent image from exceeding FHD viewport dimensions */
@media (min-width: 1920px) {
    .photo-standing {
        max-height: 800px;
        max-width: 600px;
    }
}

/* Wojciech's Engineering Frame */
.photo-engineering-frame { 
    position: absolute; 
    top: 0; 
    left: 5%; 
    width: 90%; 
    height: 70%; 
    border: 1px solid rgba(80, 162, 213, 0.15); 
    border-right: 3px solid #50a2d5; 
    z-index: 1; 
}

/* Monika's Accent Frame */
.photo-accent-frame { 
    position: absolute; 
    top: 0; 
    left: 5%; 
    width: 90%; 
    height: 75%; 
    border: 1px solid rgba(245, 130, 32, 0.2); 
    border-radius: 0 0 100px 100px; 
    z-index: 1; 
}

/* Service Cards */
.service-card { 
    transition: all 0.3s ease; 
    border: 1px solid #f1f5f9; 
    background: white; 
    border-radius: 2px; 
}

.service-card:hover { 
    transform: translateY(-5px); 
    border-color: #bae6fd; 
    box-shadow: 0 15px 35px rgba(80, 162, 213, 0.08); 
}

.service-card.monika-card:hover { 
    transform: translateY(-8px); 
    border-color: #ffedd5; 
    box-shadow: 0 20px 40px rgba(245, 130, 32, 0.12); 
}

/* Tag Pills for Subpages */
.tag-pill { 
    padding: 4px 12px; 
    border-radius: 2px; 
    font-size: 9px; 
    font-weight: 700; 
    text-transform: uppercase; 
    background: #fff; 
    color: #475569; 
    border: 1px solid #e2e8f0; 
    letter-spacing: 0.05em; 
}

.tag-pill.monika-tag { 
    padding: 4px 14px; 
    border-radius: 4px; 
}

/* Counter Numbers */
.counter-num { 
    font-size: 3rem; 
    font-weight: 900; 
    line-height: 1; 
    margin-bottom: 4px; 
    font-family: 'Montserrat', sans-serif; 
}
/* ==========================================
   MOBILE DETAIL PAGE STYLES
   ========================================== */

/* Mobile hero section with overlay */
@media (max-width: 1024px) {
    .lg\:hidden {
        display: block !important;
    }
    
    .hidden.lg\:grid {
        display: none !important;
    }
}

/* Responsive image sizing on detail pages */
@media (max-width: 768px) {
    /* Mobile hero image overlay - gradient overlay for better text contrast at bottom */
    .lg\:hidden .relative.w-full > .absolute.inset-0 {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.15) 80%, rgba(0, 0, 0, 0.5) 100%) !important;
        background-color: transparent !important;
    }
    
    /* Text on overlay - white and larger */
    .lg\:hidden h1 {
        font-size: 2.25rem;
        line-height: 1.1;
        margin-bottom: 0;
        color: white !important;
    }
    
    .lg\:hidden p.text-base {
        font-size: 1rem;
        letter-spacing: 0.1em;
        color: white !important;
    }
    
    /* Tag pills on mobile overlay - keep styling */
    .lg\:hidden .tag-pill {
        padding: 0.25rem 0.5rem;
        font-size: 0.65rem;
        border-radius: 12px;
    }
    
    /* LinkedIn icon on mobile overlay - white and larger */
    .lg\:hidden svg {
        width: 45px;
        height: 45px;
        fill: white;
    }
    
    /* Quote containers on mobile - smaller padding */
    .lg\:hidden .quote-container {
        padding: 20px 30px;
        margin-bottom: 1rem;
    }
    
    .lg\:hidden .quote-icon {
        font-size: 60px;
        top: -8px;
        left: 10px;
    }
}

/* Small phones - further adjustments */
@media (max-width: 480px) {
    .lg\:hidden.w-full img {
        height: 450px;
    }
    
    .lg\:hidden h1 {
        font-size: 2rem;
    }
    
    .lg\:hidden .absolute.inset-0 {
        padding: 1rem !important;
    }
    
    .lg\:hidden .quote-container {
        padding: 15px 20px;
    }
    
    .lg\:hidden svg {
        width: 40px;
        height: 40px;
    }
}

/* FHD+ screens - limit page width to prevent excessive expansion */
@media (min-width: 1920px) {
    body {
        margin: 0 auto;
        width: 100%;
        max-width: 1920px;
    }
    
    nav {
        left: 50%;
        transform: translateX(-50%);
        width: 1920px;
    }
    
    nav > div {
        margin-left: auto;
        margin-right: auto;
    }
    
    section {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Mobile hero gradient overlay - ensure gradient is visible */

/* Mobile: pełne przyciemnienie */
@media (max-width: 640px) {
    section.lg\:hidden .relative.w-full .absolute.inset-0.bg-black\/35 {
        background: rgba(0,0,0,0.55) !important;
        background-color: rgba(0,0,0,0.55) !important;
    }
}

/* Tablet: gradient na dole */
@media (min-width: 641px) and (max-width: 1024px) {
    section.lg\:hidden .relative.w-full .absolute.inset-0.bg-black\/35 {
        background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 60%, rgba(0,0,0,1) 100%) !important;
        background-color: transparent !important;
        height: 50%;
        bottom: 0;
        top: auto;
        position: absolute;
        width: 100%;
        pointer-events: none;
    }
}

/* Desktop: brak przyciemnienia */
@media (min-width: 1025px) {
    section.lg\:hidden .relative.w-full .absolute.inset-0.bg-black\/35 {
        background: none !important;
        background-color: transparent !important;
    }
}