/* ========================================
   UNIFIED DESIGN SYSTEM
   Profesjonalizm, czytelność, data/consulting
   ======================================== */

/* ----------------------------------------
   0. SEMANTIC HTML5 RESET
   Zapewnia, że elementy semantyczne nie zmieniają wyglądu
   ---------------------------------------- */

/* Reset dla elementów semantycznych - zachowaj jako block bez dodatkowych stylów */
article, aside, main, section, nav, figure {
    display: block;
}

/* Header wewnątrz strony - nie wpływa na site-header */
.site-header {
    display: block;
}

/* Nie resetuj footer - ma własne style w .site-footer */

/* Aside jako sidebar - dziedziczy style z col-md-* */
aside.col-md-4,
aside.col-md-2 {
    display: block;
}

/* Article jako card - dziedziczy style z .card */
article.card {
    display: flex;
    flex-direction: column;
}

/* Figure dla obrazów - reset */
figure.featured-image-container {
    margin: 0;
    padding: 0;
}

/* ----------------------------------------
   1. HERO SECTIONS - Ujednolicony ciemny gradient
   Subtelny, nie dominujący
   ---------------------------------------- */

/* Wrapper dla hero - pełna szerokość */
.hero-wrapper {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

/* Row banner container - reset Bootstrap styles */
.row.banner-container {
    margin: 0;
    padding: 0;
    border-radius: 0 !important;
    width: 100%;
    max-width: 100%;
}

/* Main hero styling */
.hero-dark,
.masthead_orange,
.banner-container {
    position: relative;
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #1e293b 100%);
    padding: 1.75rem 0;
    overflow: hidden;
    border-radius: 0 !important;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

/* Ukryj stary banner image */
.banner-container .banner-image {
    display: none;
}

.banner-container .overlay-text {
    position: relative;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero geometric accents - mniejsze */
.hero-dark::before,
.masthead_orange::before,
.banner-container::before {
    content: '';
    position: absolute;
    top: 15%;
    right: 8%;
    width: 70px;
    height: 70px;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 6px;
    transform: rotate(12deg);
    pointer-events: none;
}

.hero-dark::after,
.masthead_orange::after,
.banner-container::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 15%;
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 4px;
    transform: rotate(-8deg);
    pointer-events: none;
}

/* Hero text - mniejszy */
.hero-dark h1,
.hero-dark h4,
.masthead_orange h4,
.overlay-text-content,
.banner-container h1,
.banner-container h4 {
    color: #ffffff !important;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    position: relative;
    z-index: 1;
}

.overlay-text-content {
    text-shadow: none;
}

/* Żółty akcent dla pierwszej części */
.overlay-text-content .accent,
.hero-dark .accent {
    color: #fbbf24;
}

/* ----------------------------------------
   HERO UNIFIED - Nowa ujednolicona klasa
   ---------------------------------------- */
.hero-unified {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #1e293b 100%);
    padding: 1.5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-unified::before {
    content: '';
    position: absolute;
    top: 15%;
    right: 8%;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 6px;
    transform: rotate(12deg);
    pointer-events: none;
}

.hero-unified::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 14%;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 4px;
    transform: rotate(-8deg);
    pointer-events: none;
}

.hero-unified .hero-content,
.hero-unified h1.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 0 2.5rem;
    color: #ffffff;
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    font-weight: 600;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

/* Compact hero variant - for shorter banners */
.hero-unified.hero-compact .hero-content,
.hero-unified.hero-compact h1.hero-content {
    font-size: clamp(0.95rem, 1.8vw, 1.12rem);
    padding: 0 2rem 0 2.25rem;
}

.hero-unified h1.hero-content {
    margin-top: 0;
    margin-bottom: 0;
}

.hero-unified .hero-content .accent {
    color: #fbbf24;
}

@media (max-width: 768px) {
    .hero-unified {
        padding: 1.25rem 0;
    }
    
    .hero-unified .hero-content {
        padding: 0 1rem 0 1.25rem;
        font-size: 0.98rem;
    }

    .hero-unified.hero-compact .hero-content {
        padding: 0 1rem 0 1.1rem;
        font-size: 0.95rem;
    }
    
    .hero-unified::before,
    .hero-unified::after {
        display: none;
    }
}

/* ----------------------------------------
   2. SIDEBAR - Ujednolicony styl
   ---------------------------------------- */
/* Ukryj certyfikaty */
.certificates-section,
.certyfikaty-section,
[class*="certyfikat"],
.moje-certyfikaty,
.sidebar .card-body .d-flex.gap-2 {
    display: none !important;
}

/* Social Proof Numbers */
.social-proof-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin: 1.25rem 0;
    text-align: center;
}

.social-proof-box .proof-item {
    padding: 0.5rem;
}

.social-proof-box .proof-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #334155;
    line-height: 1.2;
}

.social-proof-box .proof-label {
    display: block;
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* Sidebar CTA Banner */
.sidebar-cta-banner {
    display: block;
    background: linear-gradient(135deg, #1e3a5f 0%, #2b4a6f 50%, #1e3a5f 100%);
    border-radius: 12px;
    padding: 1.25rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    position: sticky;
    top: 1rem;
    overflow: hidden;
}

@media (max-width: 991px) {
    .sidebar-cta-banner {
        position: static;
    }
}

.sidebar-cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.sidebar-cta-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 58, 95, 0.3);
    text-decoration: none;
}

.sidebar-cta-banner .cta-banner-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.sidebar-cta-banner .cta-banner-icon i {
    font-size: 1.25rem;
    color: #ffffff;
}

.sidebar-cta-banner .cta-banner-content h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.375rem;
    line-height: 1.4;
}

.sidebar-cta-banner .cta-banner-content p {
    font-size: 0.85rem;
    color: #93c5fd;
    margin-bottom: 0;
    line-height: 1.4;
}

.sidebar-cta-banner .cta-banner-arrow {
    margin-top: 1rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: rgba(245, 158, 11, 0.15);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.2s;
}

.sidebar-cta-banner .cta-banner-arrow i {
    font-size: 0.875rem;
    color: #f59e0b;
}

.sidebar-cta-banner .cta-banner-arrow::before {
    content: 'Napisz do mnie';
    font-size: 0.8rem;
    font-weight: 600;
    color: #f59e0b;
}

.sidebar-cta-banner:hover .cta-banner-arrow {
    background: rgba(245, 158, 11, 0.25);
}

/* ----------------------------------------
   3. CTA BUTTONS - Amber/Żółty styl
   ---------------------------------------- */
.btn-cta-primary,
.btn-danger {
    display: inline-block;
    background-color: #f59e0b !important;
    color: #ffffff !important;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    border: none !important;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.15s, transform 0.1s;
}

.btn-cta-primary:hover,
.btn-danger:hover {
    background-color: #d97706 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    text-decoration: none;
}

/* Secondary CTA Button - Outline style */
.btn-cta-secondary {
    display: inline-block;
    background-color: transparent;
    color: #f59e0b;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    border: 2px solid #f59e0b;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.15s, color 0.15s, transform 0.1s;
    margin-top: 1rem;
}

.btn-cta-secondary:hover {
    background-color: #f59e0b;
    color: #ffffff;
    transform: translateY(-1px);
    text-decoration: none;
}

/* ----------------------------------------
   4. BLOG/POST LISTS
   ---------------------------------------- */
/* Post item cards */
.post-item,
.card.mb-4 {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.post-item:hover,
.card.mb-4:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.card-body {
    padding: 1.5rem;
}

/* Post tag */
.post-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #2563eb;
    background-color: #eff6ff;
    padding: 0.125rem 0.625rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

/* Post title */
.card-title,
.post-item h2 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.card-title a,
.post-item h2 a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.15s;
}

.card-title a:hover,
.post-item h2 a:hover {
    color: #2563eb;
}

/* Post excerpt */
.card-text {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.65;
}

/* Post meta */
.text-muted {
    font-size: 0.8rem !important;
    color: #6b7280 !important;
}

/* ----------------------------------------
   5. PORADY/TIPS LIST
   ---------------------------------------- */
/* Intro box - jasny styl z niebieskim akcentem */
.alert-info,
.tips-intro {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
    color: #1e3a5f !important;
    border: 1px solid #bae6fd !important;
    border-left: 4px solid #0284c7 !important;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.alert-info p,
.tips-intro p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #1e3a5f;
}

/* Tags filter */
.tags-filter,
.list-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding: 0;
    margin-bottom: 1rem;
}

.tags-filter a,
.list-inline-item a {
    font-size: 0.8rem;
    color: #2563eb;
    text-decoration: none;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    background: #f1f5f9;
    transition: background-color 0.15s, color 0.15s;
}

.tags-filter a:hover,
.list-inline-item a:hover {
    background-color: #e0e7ff;
    color: #1e40af;
}

/* Tips list items */
.porady-list-item {
    padding: 0.875rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 0.625rem;
    background: #ffffff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.porady-list-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.porady-list-item a {
    color: #1d4ed8;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.5;
}

/* Sidebar bio card - spójna typografia */
.sidebar-bio-card p,
.sidebar-bio-card .card-text {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.65;
}

.porady-list-item a:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* ----------------------------------------
   6. SINGLE POST/TIP VIEW
   ---------------------------------------- */
/* Post header */
.post-detail h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

/* Post content typography */
.post-detail .card-text,
.post-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #374151;
}

.post-detail .card-text p,
.post-content p {
    margin-bottom: 1.25rem;
}

.post-detail .card-text h2,
.post-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.post-detail .card-text h3,
.post-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

/* Links in content */
.post-detail .card-text a,
.post-content a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-detail .card-text a:hover,
.post-content a:hover {
    color: #1d4ed8;
}

/* Inline code */
.post-detail code:not(pre code),
.post-content code:not(pre code) {
    background-color: #f1f5f9;
    color: #0f172a;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.875em;
    font-family: ui-monospace, 'Fira Code', monospace;
    border: 1px solid #e2e8f0;
}

/* Code blocks */
.post-detail pre,
.post-content pre,
pre {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
    padding: 1.25rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.85rem;
    line-height: 1.6;
    border: 1px solid #334155;
}

.post-detail pre code,
.post-content pre code,
pre code {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    font-size: inherit;
    color: inherit !important;
}

/* Flesz porady – czytelne sekcje i kod (bez ikon, ładne kopiowanie) */
.flesz-tip {
    font-size: 1rem;
    line-height: 1.7;
}
.flesz-tip .flesz-section {
    margin-bottom: 2rem;
}
.flesz-tip .flesz-section:last-child {
    margin-bottom: 0;
}
.flesz-tip .flesz-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #e5e7eb;
}
/* Sekcja kodu: prosty blok, monospace, bez ikon i etykiet */
.flesz-tip pre.flesz-code {
    display: block;
    margin: 1rem 0;
    padding: 1rem 1.25rem;
    font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: auto;
    background-color: #1e293b;
    color: #e2e8f0;
    border: 1px solid #334155;
    border-radius: 6px;
}
.flesz-tip pre.flesz-code::before,
.flesz-tip pre.flesz-code::after {
    display: none !important;
}
.flesz-tip pre.flesz-code code {
    padding: 0;
    background: none;
    border: none;
    font-size: inherit;
    color: inherit;
    white-space: pre-wrap;
}

/* Lists in content */
.post-detail ul,
.post-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.post-detail li,
.post-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* Images in content */
.post-detail img,
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    border: 1px solid #e5e7eb;
}

/* Featured image */
.featured-image-container {
    margin-bottom: 1.5rem;
}

.featured-image-container img {
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* ----------------------------------------
   7. THEMATIC PAGES (GA4, Piwik PRO)
   ---------------------------------------- */
.alert-secondary {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9) !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 4px solid #2563eb !important;
    border-radius: 8px;
    color: #374151 !important;
}

.alert-secondary strong {
    color: #1e293b;
}

.alert-secondary a {
    color: #2563eb;
}

/* ----------------------------------------
   8. PAGINATION
   ---------------------------------------- */
.pagination {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 2rem;
    justify-content: center;
}

.pagination .page-item .page-link {
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    background-color: #ffffff;
    transition: all 0.15s;
}

.pagination .page-item .page-link:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
}

.pagination .page-item.active .page-link {
    background-color: #1e40af;
    border-color: #1e40af;
    color: #ffffff;
}

/* ----------------------------------------
   9. FOOTER - Multi-column grid layout
   ---------------------------------------- */
.site-footer {
    background: #0f172a !important;
    color: #e2e8f0;
    margin-top: 3rem;
    width: 100%;
}

.site-footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ---- Column grid ---- */
.site-footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 2rem 2.5rem;
    padding: 3rem 0 2rem;
}

.site-footer .footer-col {
    text-align: left;
}

/* ---- Headings ---- */
.site-footer .footer-heading {
    color: #fbbf24;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(251, 191, 36, 0.25);
}

.site-footer .footer-heading--social {
    margin-top: 1.5rem;
}

/* ---- Link lists ---- */
.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.site-footer ul li a {
    color: #cbd5e1;
    font-size: 0.82rem;
    text-decoration: none;
    transition: color 0.15s, padding-left 0.15s;
    display: inline-block;
    line-height: 1.5;
}

.site-footer ul li a:hover {
    color: #fff;
    padding-left: 3px;
}

/* ---- Social icons ---- */
.site-footer .footer-social {
    display: flex;
    gap: 0.6rem;
}

.site-footer .footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,0.07);
    color: #cbd5e1;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.site-footer .footer-social a:hover {
    background: #fbbf24;
    color: #0f172a;
    transform: translateY(-2px);
}

.site-footer .footer-social .fa {
    margin: 0;
}

/* ---- Bottom bar ---- */
.site-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    text-align: center;
}

.site-footer .copyright-text {
    margin: 0;
    color: #94a3b8;
    font-size: 0.78rem;
    line-height: 1.8;
}

.site-footer .made-with {
    margin: 0.75rem 0 0;
    color: #64748b;
    font-size: 0.75rem;
}

.site-footer .made-with .fa-heart {
    color: #f59e0b;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .site-footer .footer-content {
        padding: 0 1.25rem;
    }
    .site-footer .footer-grid {
        gap: 1.75rem;
        padding: 2rem 0 1.5rem;
    }
}

/* ----------------------------------------
   10. ALERT/CTA BOXES
   ---------------------------------------- */
/* Dark CTA box */
.cta-box-dark,
.alert-warning {
    background: linear-gradient(135deg, #334155, #1e293b) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px;
    padding: 1.5rem;
}

.cta-box-dark p,
.alert-warning p {
    color: #e2e8f0;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.cta-box-dark strong,
.alert-warning strong {
    color: #93c5fd;
}

.cta-box-dark hr,
.alert-warning hr {
    border-color: rgba(255,255,255,0.15);
    margin: 1rem 0;
}

.cta-box-dark a,
.alert-warning a,
.alert-warning .alert-link {
    color: #fbbf24 !important;
    text-decoration: underline;
    font-weight: 500;
}

.cta-box-dark a:hover,
.alert-warning a:hover {
    color: #fcd34d !important;
}

/* Promo box - niebieskie tło */
.promo-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.promo-box .badge {
    background-color: #2563eb !important;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-right: 0.5rem;
}

.promo-box a {
    color: #1e40af;
    font-weight: 500;
    text-decoration: none;
}

.promo-box a:hover {
    text-decoration: underline;
}

/* ----------------------------------------
   11. RESPONSIVE
   ---------------------------------------- */
@media (max-width: 1024px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        order: 2;
        margin-top: 2rem;
    }
    
    .main-content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-dark,
    .masthead_orange,
    .banner-container {
        padding: 1.5rem 0;
    }
    
    .hero-dark h1,
    .masthead_orange h4,
    .overlay-text-content {
        font-size: 1.25rem !important;
    }
    
    .hero-dark::before,
    .hero-dark::after,
    .masthead_orange::before,
    .masthead_orange::after,
    .banner-container::before,
    .banner-container::after {
        display: none;
    }
    
    .post-detail h1 {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .social-proof-box {
        grid-template-columns: 1fr 1fr;
    }
    
    .social-proof-box .proof-number {
        font-size: 1.5rem;
    }
}

/* ----------------------------------------
   12. DATA NEWS STYLING
   ---------------------------------------- */
.data-news-header {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #2563eb;
}

.data-news-item {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.data-news-item:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.data-news-date {
    font-family: ui-monospace, 'Fira Code', monospace;
    font-size: 0.7rem;
    color: #9ca3af;
    flex-shrink: 0;
    background: #f1f5f9;
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
}

.data-news-content {
    font-size: 0.85rem;
    color: #4b5563;
    line-height: 1.5;
}

.data-news-content a {
    color: #2563eb;
    text-decoration: none;
}

.data-news-content a:hover {
    text-decoration: underline;
}

/* ----------------------------------------
   14. NEWS FEED (SHORTS) - X/Twitter Style
   ---------------------------------------- */
.news-feed {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.news-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eff1f3;
    transition: background-color 0.15s;
}

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

.news-item:hover {
    background-color: #f8fafc;
}

/* Content area */
.news-content {
    width: 100%;
}

/* Body - main content */
.news-body {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #1e293b;
    word-wrap: break-word;
}

.news-body p {
    margin: 0 0 0.5rem 0;
}

.news-body p:last-child {
    margin-bottom: 0;
}

.news-body a {
    color: #2563eb;
    text-decoration: none;
}

.news-body a:hover {
    text-decoration: underline;
}

/* Hashtags and mentions */
.news-body a[href*="tag"],
.news-body .hashtag {
    color: #2563eb;
    font-weight: 500;
}

/* Footer with date */
.news-footer {
    margin-top: 0.625rem;
    padding-top: 0.5rem;
}

.news-date {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Code in news items */
.news-body code {
    background-color: #f1f5f9;
    color: #0f172a;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.85em;
    font-family: ui-monospace, 'Fira Code', monospace;
}

.news-body pre {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
    padding: 0.875rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 0.625rem 0;
    font-size: 0.8rem;
    line-height: 1.5;
}

/* Images in news */
.news-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-top: 0.625rem;
    border: 1px solid #e5e7eb;
}

/* Responsive */
@media (max-width: 640px) {
    .news-item {
        padding: 0.875rem 1rem;
    }
    
    .news-body {
        font-size: 0.9rem;
    }
    
    .news-date {
        font-size: 0.75rem;
    }
}

/* ----------------------------------------
   18. SIDEBAR PHOTO WITH ACCENT FRAME
   ---------------------------------------- */
.sidebar-photo-standalone {
    padding-right: 15px;
    padding-bottom: 15px;
    display: flex;
    justify-content: center;
}

.sidebar-photo-wrapper {
    position: relative;
    width: 96%;
}

.sidebar-photo {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.sidebar-photo-accent {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 100%;
    height: 100%;
    border: 4px solid #F09C10;
    border-radius: 12px;
    z-index: 0;
}

/* ----------------------------------------
   17. OFFER SIDEBAR STICKY
   ---------------------------------------- */
.sidebar-sticky-wrapper {
    position: sticky;
    top: 1rem;
}

@media (max-width: 991px) {
    .sidebar-sticky-wrapper {
        position: static;
    }
}

/* ----------------------------------------
   16. PROFILE CARD SIDEBAR
   ---------------------------------------- */
.profile-card-sidebar {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    position: sticky;
    top: 1.5rem;
}

.profile-card-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #f59e0b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.profile-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-card-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.profile-card-title {
    font-size: 0.9rem;
    color: #f59e0b;
    font-weight: 500;
    margin-bottom: 1rem;
}

.profile-card-desc {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.profile-card-cta {
    display: inline-block;
    background-color: #f59e0b;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.15s, transform 0.1s;
}

.profile-card-cta:hover {
    background-color: #d97706;
    color: #ffffff;
    transform: translateY(-1px);
}

@media (max-width: 991px) {
    .profile-card-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
}

/* ----------------------------------------
   15. CLEAN HEADER (for wide pages)
   ---------------------------------------- */
.site-header-clean {
    background: #ffffff;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.site-header-clean .header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

@media (max-width: 768px) {
    .site-header-clean {
        padding: 0.75rem 0;
    }
    
    .site-header-clean .header-container {
        padding: 0 1rem;
    }
    
    .site-header-clean .header-logo img {
        height: 40px;
    }
}

/* ----------------------------------------
   19. SEARCH RESULTS PAGE
   ---------------------------------------- */
/* Results info */
.search-results-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-results-info .results-count {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

/* Result items */
.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-result-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.search-result-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.search-result-item .result-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.search-result-item .result-type {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.result-type-blog {
    background: #eff6ff;
    color: #2563eb;
}

.result-type-tip {
    background: #f0fdf4;
    color: #16a34a;
}

.result-type-tableau {
    background: #fef3c7;
    color: #d97706;
}

.result-type-rec {
    background: #fce7f3;
    color: #db2777;
}

.search-result-item .result-date {
    font-size: 0.8rem;
    color: #9ca3af;
}

.search-result-item .result-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.search-result-item .result-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.15s;
}

.search-result-item .result-title a:hover {
    color: #2563eb;
}

.search-result-item .result-excerpt {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* No results */
.search-no-results {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px dashed #e2e8f0;
}

.search-no-results .no-results-icon {
    width: 60px;
    height: 60px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.search-no-results .no-results-icon i {
    font-size: 1.5rem;
    color: #94a3b8;
}

.search-no-results h3 {
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.search-no-results p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

/* Section title */
.search-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #f59e0b;
    display: inline-block;
}

/* Error box */
.search-error-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.search-error-box i {
    color: #ef4444;
    font-size: 1.1rem;
    margin-top: 0.1rem;
}

.search-error-box p {
    margin: 0;
    color: #991b1b;
    font-size: 0.9rem;
}

/* Service box */
.search-service-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 1.5rem;
}

.search-service-box h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.search-service-box p {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 1rem;
}

/* Sidebar */
.search-sidebar {
    position: sticky;
    top: 1rem;
}

.search-tips-card,
.search-popular-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.25rem;
}

.search-tips-card h5,
.search-popular-card h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-tips-card h5 i,
.search-popular-card h5 i {
    color: #f59e0b;
}

.search-tips-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-tips-card ul li {
    font-size: 0.85rem;
    color: #64748b;
    padding: 0.375rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.search-tips-card ul li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: #94a3b8;
    font-weight: 600;
}

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

.popular-tags a {
    font-size: 0.8rem;
    color: #2563eb;
    background: #eff6ff;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.popular-tags a:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

/* ----------------------------------------
   13. UTILITY CLASSES
   ---------------------------------------- */
.mb-section {
    margin-bottom: 2rem;
}

.mt-section {
    margin-top: 2rem;
}

/* Hide header gradient bar for cleaner look */
.site-header-bar {
    display: none;
}

/* Blue divider - hide */
.blue-divider {
    display: none;
}

/* ----------------------------------------
   20. TOP SEARCH BAR
   ---------------------------------------- */
.top-search-bar {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 0;
    line-height: 1;
    height: 24px;
    display: flex;
    align-items: center;
}

.top-search-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.top-bar-contact {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.top-bar-contact a {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    color: #6b7280;
    font-size: 0.65rem;
    text-decoration: none;
}

.top-bar-contact a:hover {
    color: #1d4ed8;
}

.top-bar-contact i {
    font-size: 0.6rem;
    color: #9ca3af;
}

.top-bar-contact a:hover i {
    color: #1d4ed8;
}

.top-bar-social {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.top-bar-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.65rem;
    padding: 0 2px;
}

.top-bar-social a:hover {
    color: #1d4ed8;
}

/* Top bar right group */
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

/* Language switcher PL / EN */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.65rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 0.15rem 0.45rem;
    line-height: 1;
}

.lang-switcher .lang-globe {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-right: 0.15rem;
}

.lang-switcher .lang-link {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    padding: 0.05rem 0.2rem;
    border-radius: 2px;
    transition: all 0.15s;
}

.lang-switcher .lang-link:hover {
    color: #2b3673;
    background: #f1f5f9;
    text-decoration: none;
}

.lang-switcher .lang-link-active {
    color: #fff;
    background: #2b3673;
    font-weight: 600;
}

.lang-switcher .lang-link-active:hover {
    color: #fff;
    background: #3d4a8c;
}

.lang-switcher .lang-sep {
    color: #d1d5db;
    user-select: none;
    font-size: 0.6rem;
}

.top-search-trigger {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    background: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #6b7280;
    font-size: 0.65rem;
    padding: 0;
    margin: 0;
    cursor: pointer;
    white-space: nowrap;
}

.top-search-trigger:hover,
.top-search-trigger:focus,
.top-search-trigger:active {
    color: #1d4ed8;
    background: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.top-search-trigger i {
    font-size: 0.5rem;
}

@media (max-width: 768px) {
    .top-bar-contact,
    .top-bar-social {
        display: none;
    }
    
    .top-search-trigger span {
        display: none;
    }
}

/* ----------------------------------------
   21. TOOLS DROPDOWN MENU
   ---------------------------------------- */
/* Hide default Bootstrap caret */
.nav-tools-link::after {
    display: none !important;
}

.nav-tools-link .nav-dropdown-icon {
    font-size: 0.75rem;
    margin-left: 0.25rem;
    transition: transform 0.2s;
    vertical-align: middle;
}

.nav-tools-link[aria-expanded="true"] .nav-dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu-tools {
    min-width: 280px;
    padding: 0.5rem 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    background: #ffffff;
    z-index: 1200;
}

/* Mega menu (columns/rows) */
.dropdown-menu-tools.dropdown-menu-mega {
    width: min(980px, calc(100vw - 2rem));
    max-width: min(980px, calc(100vw - 2rem));
    padding: 0.75rem;
}

.dropdown-menu-tools .dropdown-mega-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 0.75rem 1rem;
}

.dropdown-menu-tools .dropdown-mega-col {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.5rem 0;
    overflow: hidden;
}

.dropdown-menu-tools .dropdown-mega-col .dropdown-header {
    padding-top: 0.6rem;
}

.dropdown-menu-tools .dropdown-mega-col .dropdown-item {
    padding-left: 1rem;
    padding-right: 1rem;
}

.dropdown-menu-tools .dropdown-mega-col .dropdown-divider {
    margin: 0.4rem 0;
}

.dropdown-menu-tools .dropdown-header {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    padding: 0.75rem 1rem 0.375rem;
    margin-top: 0.25rem;
}

.dropdown-menu-tools .dropdown-header:first-child {
    margin-top: 0;
}

.dropdown-menu-tools .dropdown-header i {
    margin-right: 0.375rem;
    color: #f59e0b;
}

.dropdown-menu-tools .dropdown-item {
    font-size: 0.875rem;
    color: #374151;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    transition: background 0.15s, color 0.15s;
}

.dropdown-menu-tools .dropdown-item i {
    width: 18px;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
}

.dropdown-menu-tools .dropdown-item:hover {
    background: #f0f9ff;
    color: #2563eb;
}

.dropdown-menu-tools .dropdown-item:hover i {
    color: #3b82f6;
}

.dropdown-menu-tools .dropdown-divider {
    margin: 0.375rem 0;
    border-color: #f1f5f9;
}

/* Hover-based dropdown (for clickable parent link) */
@media (min-width: 992px) {
    .nav-tools-dropdown .dropdown-menu-tools {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
    }

    .nav-tools-dropdown .dropdown-menu-tools.show {
        display: block;
        margin-top: 0;
    }

    /* Mega menu centered under navbar (not under item) */
    .navbar {
        position: relative;
    }
    .nav-tools-dropdown {
        position: static;
    }
    .nav-tools-dropdown .dropdown-menu-tools.dropdown-menu-mega {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}

/* Mobile dropdown */
@media (max-width: 991px) {
    .dropdown-menu-tools {
        position: static !important;
        float: none;
        width: 100%;
        min-width: 100%;
        margin-top: 0;
        border: none;
        box-shadow: none;
        background: #f8fafc;
        border-radius: 0;
        padding: 0.5rem 0;
    }

    .dropdown-menu-tools.dropdown-menu-mega {
        width: 100%;
        max-width: 100%;
        padding: 0.5rem 0;
        transform: none;
    }

    .dropdown-menu-tools .dropdown-mega-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .dropdown-menu-tools .dropdown-mega-col {
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 0;
    }
    
    .dropdown-menu-tools .dropdown-item {
        padding-left: 2rem;
    }
    
    .dropdown-menu-tools .dropdown-header {
        padding-left: 1.5rem;
    }
}

/* ----------------------------------------
   22. TOOLS BOX ON HOMEPAGE
   ---------------------------------------- */
.tools-showcase {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.tools-showcase::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.tools-showcase-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.tools-showcase-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tools-showcase-icon i {
    font-size: 1rem;
    color: #ffffff;
}

.tools-showcase-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.tools-showcase-header p {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 0.625rem;
}

.tool-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.75rem 0.875rem;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.tool-card:hover {
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.12);
    transform: translateY(-2px);
    text-decoration: none;
}

.tool-card-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tool-card-icon i {
    font-size: 0.9rem;
    color: #3b82f6;
}

.tool-card:hover .tool-card-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.tool-card:hover .tool-card-icon i {
    color: #ffffff;
}

.tool-card-content {
    flex: 1;
    min-width: 0;
}

.tool-card-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e293b;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tool-card-desc {
    font-size: 0.68rem;
    color: #64748b;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tools-showcase-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

/* Featured Tool Card */
.tool-card-featured {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    border-color: #3b82f6 !important;
}

.tool-card-featured .tool-card-icon {
    background: rgba(255, 255, 255, 0.2) !important;
}

.tool-card-featured .tool-card-icon i {
    color: #ffffff !important;
}

.tool-card-featured .tool-card-name {
    color: #ffffff !important;
}

.tool-card-featured .tool-card-desc {
    color: rgba(255, 255, 255, 0.85) !important;
}

.tool-card-featured:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
    border-color: #2563eb !important;
}

/* Featured Tool Card - Green variant */
.tool-card-featured-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border-color: #10b981 !important;
}

.tool-card-featured-green .tool-card-icon {
    background: rgba(255, 255, 255, 0.2) !important;
}

.tool-card-featured-green .tool-card-icon i {
    color: #ffffff !important;
}

.tool-card-featured-green .tool-card-name {
    color: #ffffff !important;
}

.tool-card-featured-green .tool-card-desc {
    color: rgba(255, 255, 255, 0.85) !important;
}

.tool-card-featured-green:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    border-color: #059669 !important;
}

/* Post Tool Card Featured */
.post-tool-card-featured {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    border-color: #3b82f6 !important;
}

.post-tool-card-featured .post-tool-icon {
    background: rgba(255, 255, 255, 0.2) !important;
}

.post-tool-card-featured .post-tool-icon i {
    color: #ffffff !important;
}

.post-tool-card-featured .post-tool-name {
    color: #ffffff !important;
}

.post-tool-card-featured .post-tool-desc {
    color: rgba(255, 255, 255, 0.85) !important;
}

.post-tool-card-featured:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
    border-color: #2563eb !important;
}

/* Post Tool Card - Green variant */
.post-tool-card-featured-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border-color: #10b981 !important;
}

.post-tool-card-featured-green .post-tool-icon {
    background: rgba(255, 255, 255, 0.2) !important;
}

.post-tool-card-featured-green .post-tool-icon i {
    color: #ffffff !important;
}

.post-tool-card-featured-green .post-tool-name {
    color: #ffffff !important;
}

.post-tool-card-featured-green .post-tool-desc {
    color: rgba(255, 255, 255, 0.85) !important;
}

.post-tool-card-featured-green:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    border-color: #059669 !important;
}

/* GA4 Encyclopedia Promo Box */
.ga4-encyclopedia-promo {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 16px;
    text-decoration: none;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ga4-encyclopedia-promo::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -15%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.ga4-encyclopedia-promo:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.3);
    text-decoration: none;
    color: #ffffff;
}

.ga4-promo-icon {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ga4-promo-icon i {
    font-size: 1.75rem;
    color: #ffffff;
}

.ga4-promo-content {
    flex: 1;
    position: relative;
}

.ga4-promo-badge {
    display: inline-block;
    background: #fbbf24;
    color: #1e293b;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

.ga4-promo-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.375rem;
    color: #ffffff;
}

.ga4-promo-content p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.9);
    margin: 0 0 0.75rem;
    line-height: 1.5;
}

.ga4-promo-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
}

.ga4-promo-features li {
    display: flex;
    align-items: center;
    gap: 0.325rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.9);
}

.ga4-promo-features i {
    color: #86efac;
    font-size: 0.75rem;
}

.ga4-promo-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
    background: rgba(255,255,255,0.2);
    padding: 0.4rem 0.875rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.ga4-encyclopedia-promo:hover .ga4-promo-cta {
    background: rgba(255,255,255,0.3);
}

@media (max-width: 640px) {
    .ga4-encyclopedia-promo {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }
    
    .ga4-promo-icon {
        width: 56px;
        height: 56px;
    }
    
    .ga4-promo-icon i {
        font-size: 1.5rem;
    }
    
    .ga4-promo-content h3 {
        font-size: 1.125rem;
    }
    
    .ga4-promo-features {
        justify-content: center;
    }
}

.tools-showcase-footer a {
    color: #2563eb;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.tools-showcase-footer a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .tools-showcase {
        padding: 1.25rem;
    }
}

/* ----------------------------------------
   23. CTA CONSULTATION BOX
   ---------------------------------------- */
.cta-consultation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fcd34d;
    border-left: 4px solid #f59e0b;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
}

.cta-consultation-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
}

.cta-consultation-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cta-consultation-icon i {
    font-size: 1.25rem;
    color: #ffffff;
}

.cta-consultation-text h4 {
    margin: 0 0 0.375rem;
    font-size: 1rem;
    font-weight: 700;
    color: #92400e;
}

.cta-consultation-text p {
    margin: 0;
    font-size: 0.875rem;
    color: #a16207;
    line-height: 1.5;
}

.cta-consultation-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

.cta-consultation-btn:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
    text-decoration: none;
}

.cta-consultation-btn i {
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.cta-consultation-btn:hover i {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .cta-consultation {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .cta-consultation-content {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-consultation-btn {
        justify-content: center;
    }
}

/* ----------------------------------------
   25. POST FOOTER BOXES
   Tools, Related Articles, Tips at end of posts
   ---------------------------------------- */

.post-footer-boxes {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

/* Common Section Header */
.post-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.post-section-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.post-section-icon i {
    font-size: 1.25rem;
    color: #ffffff;
}

.post-section-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.post-section-subtitle {
    margin: 0.25rem 0 0 0;
    font-size: 0.875rem;
    color: #64748b;
}

/* --- 1. Tools Showcase Box --- */
.post-tools-showcase {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.post-tools-showcase::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.post-tools-showcase .post-section-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.post-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.post-tool-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.post-tool-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
    text-decoration: none;
}

.post-tool-card:focus {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
}

.post-tool-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.post-tool-icon i {
    font-size: 1rem;
    color: #3b82f6;
}

.post-tool-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.post-tool-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
}

.post-tool-desc {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.125rem;
}

.post-tools-footer {
    margin-top: 1.5rem;
    text-align: center;
}

/* --- 2. Related Articles Box --- */
.post-related-articles {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.post-related-articles .post-section-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.post-related-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.post-related-item {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.post-related-item:hover {
    border-color: #10b981;
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.12);
}

.post-related-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: inherit;
}

.post-related-link:hover {
    text-decoration: none;
}

.post-related-link:focus {
    outline: 3px solid #10b981;
    outline-offset: 2px;
    border-radius: 10px;
}

.post-related-content {
    flex: 1;
    min-width: 0;
}

.post-related-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.post-related-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    margin: 0 0 0.25rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-related-date {
    font-size: 0.75rem;
    color: #94a3b8;
}

.post-related-arrow {
    color: #10b981;
    font-size: 0.875rem;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.post-related-item:hover .post-related-arrow {
    transform: translateX(3px);
}

/* --- 3. Latest Flesz (Short News) Box --- */
.post-latest-flesz {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border: 1px solid #fde047;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.post-latest-flesz .post-section-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.post-flesz-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.post-flesz-item {
    background: #ffffff;
    border: 1px solid #fde68a;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.post-flesz-item:hover {
    border-color: #f59e0b;
    box-shadow: 0 2px 12px rgba(245, 158, 11, 0.15);
}

.post-flesz-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: inherit;
}

.post-flesz-link:hover {
    text-decoration: none;
}

.post-flesz-link:focus {
    outline: 3px solid #f59e0b;
    outline-offset: 2px;
    border-radius: 10px;
}

.post-flesz-date {
    font-size: 0.75rem;
    font-weight: 600;
    color: #92400e;
    background: #fef3c7;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    flex-shrink: 0;
}

.post-flesz-content {
    flex: 1;
    font-size: 0.9rem;
    color: #1e293b;
    line-height: 1.5;
}

.post-flesz-arrow {
    color: #d97706;
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.post-flesz-item:hover .post-flesz-arrow {
    transform: translateX(3px);
}

.post-flesz-footer {
    margin-top: 1.5rem;
    text-align: center;
}

/* --- Responsive Design --- */
@media (max-width: 991px) {
    .post-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .post-footer-boxes {
        margin-top: 2rem;
    }
    
    .post-tools-showcase,
    .post-related-articles,
    .post-latest-flesz {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .post-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .post-section-icon {
        width: 42px;
        height: 42px;
    }
    
    .post-tools-grid {
        grid-template-columns: 1fr;
    }
    
    .post-related-link,
    .post-flesz-link {
        padding: 0.875rem 1rem;
    }
}

/* ----------------------------------------
   26. GA4 ENCYCLOPEDIA
   Interactive events reference
   ---------------------------------------- */

.ga4-encyclopedia {
    padding: 2rem 0 4rem;
}

/* Header */
.encyclopedia-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.encyclopedia-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem;
}

.encyclopedia-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    margin: 0 0 1rem;
}

.encyclopedia-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: #64748b;
}

.encyclopedia-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.encyclopedia-meta i {
    color: #3b82f6;
}

/* Search & Filter Controls */
.encyclopedia-controls {
    margin-bottom: 2rem;
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.search-box i.fa-search {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
}

.search-box input {
    width: 100%;
    padding: 1rem 3rem 1rem 2.75rem;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.clear-search-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1rem;
}

.clear-search-btn:hover {
    color: #64748b;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tab:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.filter-tab.active {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

.filter-tab i {
    font-size: 0.875rem;
}

/* Category Description */
.category-description {
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.category-description p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

/* Results Info */
.results-info {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #64748b;
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

/* Event Card */
.event-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.event-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.12);
    transform: translateY(-2px);
}

.event-card:focus {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
}

.event-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.event-category-badge {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.category-automatic {
    background: #dbeafe;
    color: #1e40af;
}

.category-enhanced {
    background: #f3e8ff;
    color: #7c3aed;
}

.category-ecommerce {
    background: #d1fae5;
    color: #047857;
}

.category-lead {
    background: #fef3c7;
    color: #92400e;
}

.category-gaming {
    background: #fce7f3;
    color: #be185d;
}

.category-general {
    background: #f1f5f9;
    color: #475569;
}

.event-platform {
    font-size: 0.75rem;
    color: #94a3b8;
}

.event-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.5rem;
    font-family: 'Consolas', 'Monaco', monospace;
}

.event-description {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 1rem;
}

.event-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-params-count {
    font-size: 0.75rem;
    color: #94a3b8;
}

.event-view-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #3b82f6;
    background: #eff6ff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.event-view-btn:hover {
    background: #3b82f6;
    color: #ffffff;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
}

.no-results i {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.25rem;
    color: #475569;
    margin: 0 0 0.5rem;
}

/* Modal */
.event-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    color: #64748b;
    transition: all 0.2s;
    z-index: 1;
}

.modal-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.modal-header {
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.modal-event-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem;
    font-family: 'Consolas', 'Monaco', monospace;
}

.modal-platform {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.modal-body {
    padding: 1.5rem 2rem 2rem;
}

.modal-description {
    font-size: 1rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modal-section {
    margin-bottom: 1.5rem;
}

.modal-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-section h3 i {
    color: #3b82f6;
}

/* Parameters Table */
.parameters-table-wrapper {
    overflow-x: auto;
}

.parameters-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.parameters-table th {
    text-align: left;
    padding: 0.75rem;
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
}

.parameters-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
}

.parameters-table code {
    background: #f1f5f9;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #3b82f6;
}

.required-badge {
    display: inline-block;
    padding: 0.125rem 0.375rem;
    background: #fef2f2;
    color: #dc2626;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 4px;
}

/* Code Block */
.code-block {
    position: relative;
    background: #1e293b;
    border-radius: 8px;
    overflow: hidden;
}

.code-block pre {
    margin: 0;
    padding: 1.25rem;
    overflow-x: auto;
}

.code-block code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.8rem;
    color: #e2e8f0;
    line-height: 1.6;
    white-space: pre;
}

.copy-code-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-code-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Quick Reference */
.quick-reference {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.quick-reference h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-reference h2 i {
    color: #3b82f6;
}

.reference-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.reference-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
}

.reference-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.75rem;
}

.reference-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.reference-card li {
    font-size: 0.875rem;
    color: #475569;
    padding: 0.375rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.reference-card li:last-child {
    border-bottom: none;
}

.reference-card code {
    background: #e2e8f0;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #dc2626;
}

/* Responsive */
@media (max-width: 768px) {
    .encyclopedia-header h1 {
        font-size: 1.5rem;
    }
    
    .encyclopedia-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filter-tabs {
        gap: 0.375rem;
    }
    
    .filter-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        border-radius: 12px 12px 0 0;
        max-height: 95vh;
    }
    
    .modal-header,
    .modal-body {
        padding: 1.25rem;
    }
    
    .modal-event-name {
        font-size: 1.25rem;
    }
    
    .parameters-table {
        font-size: 0.8rem;
    }
    
    .parameters-table th,
    .parameters-table td {
        padding: 0.5rem;
    }
}

/* Nawigacja: link AI (tech accent) */
.navbar-nav .nav-link-ai {
    font-weight: 600;
    letter-spacing: 0.02em;
}
